/* FONTS */

@font-face {
    font-family: abbVoice;
    src: url(../fonts/ABBvoice_W_Rg.woff2);
    src: url(../fonts/ABBvoice_W_Rg.woff);
}

@font-face {
    font-family: abbVoiceLight;
    src: url(../fonts/ABBvoice_W_Lt.woff2);
    src: url(../fonts/ABBvoice_W_Lt.woff);
}

@font-face {
    font-family: abbVoiceMedium;
    src: url(../fonts/ABBvoice_W_Lt.woff2);
    src: url(../fonts/ABBvoice_W_Lt.woff);
}

@font-face {
    font-family: abbVoiceBold;
    src: url(../fonts/ABBvoice_W_Bd.woff2);
    src: url(../fonts/ABBvoice_W_Bd.woff);
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/MaterialIcons-Regular.woff2);
    src: url(../fonts/MaterialIcons-Regular.woff)
}

/* HTML */

html {
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* APP BAR */

a {
    word-break: break-all !important;
    text-decoration: none;
    color: #ff000f;
    font-size: 14px;
    letter-spacing: 1px;
}

.abb-appbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none;
}

.abb-page__header__logo-simple {
    background: url(../assets/abb-logo-33px.svg) no-repeat 100%;
    background-size: 88px 33px;
    width: 88px;
    height: 33px;
    display: inline-block;
    margin-left: 24px;
}

.icon-with-text {
    position: relative;
    top: 5px;
}


.abb-page__header__logo-simple {
    margin-top: auto;
    margin-bottom: auto
}

#language-widget {
    margin-right: 32px;
    margin-top: auto;
    margin-bottom: auto;
}

/* CONTENT */

.mdc-toolbar__section {
    z-index: 5;
    flex: none;
}

.mdc-toolbar__section--align-start {
    margin-right: auto;
}

.content {
    height: calc(100vh - 48px);
    box-sizing: border-box;
    background: #f0f0f0;
    margin-top: 48px;
}

.page-content {
    background: #f0f0f0;
    display: none;
}

.cards-container {
    padding: 32px 50px 16px 50px;
    max-width: 600px;
    margin: auto;
}

.mdc-card {
    background: #fff;
    margin: 0 0;
}

.mdc-card__actions--center {
    text-align: center;
}

.abb-cursor {
    color: #ff000f;
}

.mdc-card__title {
    --margin-bottom: 16px;
}

.mdc-card__subtitle {
    letter-spacing: normal;
}

.mdc-button:not(:disabled) {
    color: var(--mdc-theme-secondary, #fff);
}

.section-user-details {
    letter-spacing: normal;
    font-size: 16px;
    line-height: 24px;
}

.mdc-layout-grid {
    padding: 8px;
}

.mdc-layout-grid__label {
    color: #6E6E6E;
}

/* textfield */

.mdc-layout-grid__cell {
    margin: 0;
    word-wrap: break-word;
    --margin-top: 24px !important;
}

@media all and (max-width: 840px) {
    .mdc-layout-grid__cell {
        margin-top: 32px !important;
        grid-column-end: span 12 !important;
    }
}

/* textfield */
.mdc-textfield {
    display: block;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    margin-bottom: 4px;
}

.textfield--dense {
    margin-bottom: 4px;
}

.mdc-textfield__input {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mdc-textfield__input:focus {
    border-color: black;
}

.mdc-textfield-helptext {
    font-size: 0.65rem;
}

.mdc-textfield:not(.mdc-textfield--upgraded) .mdc-textfield__input:focus {
    border-color: #6E6E6E;
}

.mdc-textfield--upgraded:not(.mdc-textfield--fullwidth):not(.mdc-textfield--box) {
    display: grid;
    margin-top: 8px;
}

.mdc-textfield + .mdc-textfield-helptext {
    display: none;
    margin-bottom: 0 !important;
}

.mdc-textfield--invalid + .mdc-textfield-helptext--validation-msg {
    display: block !important;
}

.whitespace-validation-msg {
    opacity: 1;
    color: rgba(0, 0, 0, 0.87);
}

.mdc-textfield--disabled .mdc-textfield__input, .mdc-textfield--disabled .mdc-textfield__label, .mdc-textfield--disabled + .mdc-textfield-helptext {
    color: rgba(0, 0, 0, 0.5);
}

.mdc-textfield__input {
    width: 100%;
    padding-bottom: 2px !important;
    height: 24px;
}

.mdc-textfield__label {
    bottom: 2px !important;
}

.mdc-textfield__label.negative-margin {
    left: 45px !important;
}

.mdc-textfield__label--float-above {
    transform: translateY(-60%) scale(.75);
    width: 1000px;
}

/* dropdown menu */
.mdc-dropdown--upgraded {
    display: grid;
    position: relative;
    box-sizing: border-box;
    margin-top: -12px;
}

.dropdown-input {
    width: auto !important;
    font-size: 16px;
    letter-spacing: 0.64px;
    height: auto;
}

.mdc-select {
    display: block !important;
    width: inherit !important;
    max-width: 100% !important;
    position: relative;
}

.mdc-select--open {
    background-color: rgba(0, 0, 0, 0.06);
} 

.mdc-select-fixed {
    position: absolute !important;
    left: 0 !important;
    top: 30px !important;
    width: auto !important;
    max-width: inherit !important;
    max-height: 400px !important;
    min-height: 300px !important;
    overflow: auto;
}

.mdc-select-fixed > .mdc-list {
    width: auto !important;
}

.mdc-select-fixed-language {
    position: fixed !important;
    width: auto !important;
    top: 0 !important;
    right: 0 !important;
}

.mdc-simple-menu {
    width: 100% !important;
    max-width: calc(100vw - 40px);
    z-index: 1;
}

.mdc-select__menu .mdc-list-item {
    white-space: normal !important;
    line-height: 120%;
    padding-right: 0 !important;
}

.mdc-select--language {
    width: auto !important;
    color: #757575;
}

.mdc-toolbar__section--align-end i {
    max-width: 24px;
}

@media all and (max-width: 300px) {
    .standard-language-chooser > span {
        display: none;
    }

    .mdc-select-fixed-language {
        height: calc(100% - 57px) !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        top: 57px !important;
    }
}

.dropdown-input-label {
    display: inline-block;
    position: relative;
    left: 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    bottom: 0 !important;
    /*margin-top: -16px !important;*/
}

.dropdown-input .mdc-select__selected-text {
    white-space: normal !important;
    line-height: 120%;
    padding-bottom: 4px;
    padding-top: 4px;
}

@media all and (max-width: 840px) {
    .dropdown-input-label--security-question {
        bottom: 16px;
    }

    #security-question .mdc-select__menu .mdc-list-item {
        font-size: 0.8rem;
    }
}

/* flat button */
.mdc-button:not(:disabled)::after {
    background-color: rgba(255, 0, 16, 0.16);
}

.mdc-button:not(:disabled)::before {
    background-color: rgba(255, 0, 16, 0.16);
}

/* brand button */
.brand-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #fff;
    clear: both;
    display: block;
    height: 40px;
    line-height: 40px;
    border-radius: 43px;
    background: #ff000f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 24px;
    margin: 24px 0;
    border: 0;
    min-width: 250px;
    text-align: center;
    transition: background-color .25s
}

.brand-button--center {
    margin-left: auto;
    margin-right: auto
}

.brand-button:hover:enabled {
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .2)
}

.brand-button:active {
    background-color: #cc000c
}

.brand-button:disabled {
    color: rgba(0, 0, 0, 0.26);
    background-color: rgba(79, 79, 79, 0.26);
}

.brand-button--smaller {
    min-width: 100px;
    margin: 0;
}

@media all and (max-width: 300px) {
    .brand-button {
        font-size: 12px;
        min-width: 120px !important;
        max-width: 90%;
    }
}

/* brand link */
.brand-link {
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 18px;
}

.brand-link--red {
    text-decoration: none;
    color: #ff000f;
    display: inline;
}

/* warnings */
.warning-div__cell {
    display: none;
}

.warning-div {
    width: 100%;
    font-size: 16px;
    border: 1px solid #D1D1D1;
    position: relative;
    display: inline-block;
    word-wrap: break-word !important;
}

.warning-div.green:before {
    background-color: green;
}

.warning-div.red:before {
    background-color: #ff000f;
}

.warning-div:before {
    content: "";
    width: 4px;
    top: -1px;
    bottom: -1px;
    left: -4px;
    background-color: #FFD100;
    position: absolute;
}

.warning-info {
    padding-left: 16px;
    padding-right: 8px;
}

.warning-info > a {
    word-wrap: break-word !important;
}

/* FOOTER */

.footer {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 48px;
    width: 100%;
}

.footer a {
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
    word-break: break-word !important;
}

.footer a:hover {
    color: #a0a0a0;
}

/* MEDIA */

@media all and (min-width: 426px) {
    .mdc-card {
        padding: 16px 32px;
    }

    .mdc-layout-grid__inner {
        margin: 16px 8px;
    }
}

@media all and (max-width: 425px) {
    .cards-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mdc-card {
        padding: 0;
    }

    .mdc-layout-grid__inner {
        margin: 8px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

@media all and (min-width: 960px) {
    .content {
        margin-top: 64px;
        height: calc(100vh - 64px);
    }

    .cards-container {
        width: 600px;
    }
}


@media all and (max-width: 600px) {
    .content {
        margin-top: 56px;
        height: calc(100vh - 56px);
    }
}

/*//////////////////////////////// 
//////////////FONTS///////////////
////////////////////////////////*/

.hidden {
    display: none;
}

.recaptcha-div {
    margin-top: 16px;
}

.error-msg-margin-bottom {
    margin-bottom: 16px;
}

.additional-margin-top {
    margin-top: 16px;
}

.additional-margin-bottom {
    margin-bottom: 16px;
}

/*//////////////////////////////// 
//////////////OTHERS///////////////
////////////////////////////////*/
/* checkbox */
.abb-checkbox {
    margin-left: -11px;
}

.security-answer-read-only-label {
    display: block;
    position: relative;
    transform: scale(0.75, 0.75);
}

@-webkit-keyframes autofill {
    to {
        color: #666;
        background: transparent;
    }
}

.mdc-textfield__input:-webkit-autofill {
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}

.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background {
    border-color: #ff000f;
    background-color: #ff000f;
}

@media (max-width: 959px) and (orientation: landscape) {
    .mdc-toolbar__row {
        min-height: 64px !important;
    }
}

.mdc-card__actions {
    display: inline-block !important;
}

.mdc-button {
    float: right;
}

.mdc-temporary-drawer__drawer {
    max-width: 250px !important;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .mdc-layout-grid__cell {
        margin: 0;
        margin-bottom: 24px !important;
    }

    .mdc-layout-grid__cell--span-12, .mdc-layout-grid__cell--span-12-desktop {
        width: 100% !important;
    }

    .mdc-layout-grid__cell--span-6, .mdc-layout-grid__cell--span-6-desktop {
        width: calc(50% - 10px) !important;
    }

    .ie-last-name {
        margin-left: 20px !important;
    }

    .brand-button {
        margin-top: 0px !important;
    }

    .login-widget {
        position: relative;
        top: 14px;
    }

    .mdc-button--compact {
        color: #ff000f !important;
    }

    /*#country-input-mdc {
        margin-top: -16px !important;
    }*/
}

@media (-ms-high-contrast: active), (-ms-high-contrast: none) and (max-width: 840px) {
    .ie-last-name {
        margin-left: 0 !important;
    }

    .mdc-layout-grid__cell--span-6, .mdc-layout-grid__cell--span-6-desktop {
        width: 100% !important;
        display: block !important;
    }

    .mdc-menu-anchor {
        vertical-align: central;
    }
}

input:invalid {
    outline: none !important;
}

.mdc-select-fixed.smaller-menu > .mdc-list {
    min-height: 120px !important;
    max-height: 220px !important;
}

.smaller-menu {
    min-height: 120px !important;
    max-height: 220px !important;
}