body {
    font-size: 11px;
    font-weight: 400;
}

.loadingDiv {
    display:none;
    z-index:1003;
    background:rgba(150,150,150,.8);
    position:fixed;
    width:100%;
    height:100%;
}

.loadingDiv .loader {
    position:fixed;
    color:white;
    font-size:x-large;
    width:20%;
    margin: 5% auto;
    top:20%;
    left: 0;
    right: 0;
}

.floatingError {
    display:none;
    position:fixed;
    top:50%;
    left:25%;
    width:50%;
    z-index:1004;
}

.hidden {
    display:none;
}

/* Hide these items (such as links) until the page loads; Javascript will unhide them */
.hidden-until-loaded {
    visibility: hidden;
}
/* Note: Javascript also hides "hide-after-loaded" elements after the page loads */

.crowded-heading {
    padding-bottom: 3px;
    padding-top: 3px;
}

.circular-bar {
    text-align:center;
}

.circular-bar canvas {
    display:inline;
}

.table-responsive {/* Need to override to remove auto overflow. */
    min-height: .01%;
    overflow:hidden;
}

.footer {
    background-color: #fff;
    padding: 20px;
}

/* footer */
#carpayFooter {
    color: #60606B !important;
    padding-top: 20px;
    font-family: Roboto-Regular, sans-serif !important;
    font-size: 14px !important;
}

.carpay-logo {
    float:left;
    padding-top:15px;
    margin-left:25px;
    height: 60px;
}

.carpay-logo img {
    /*margin-left:50%;*/
}

.carpay-logo-login {
    float:left;
    margin-top:7px;
    margin-left:25px;
}

.carpay-text-color {
    color: #2A5AA7;
}

.flash-message {
    padding:10px;
    margin:5px 15px 5px 15px;
    border-width:1px;
    border-style:solid;
    border-radius:5px;
}

.btn.btn-primary {
    background-color: #2A5AA7 !important;
    border-color: #2A5AA7 !important;
}

.btn.btn-primary.btn-default-size {
    width: 15em;
}

.lang-es .btn.btn-primary.btn-default-size {
    width: 22em;
}

.btn.btn-line {
    color: #2A5AA7;
    border-color: #2A5AA7 !important;
}

body .content-body {
    padding-right:0;
    padding-left:0;
    padding-top:5px;
    border-radius: 0;
    margin-left: 0px;
    margin-right: 0px;
}

body ul.nav-main li span, body ul.nav-main li i{
    font-size: 11px !important;
}

.error-message {
    border-color: #ebccd1;
    color: #a94442;
}

.padding-small {
    padding: 5px;
}

.padding-top-medium {
    padding-top: 20px;
}

.opened-menu {
    margin-top: 60px;
}

.dealer-sub-header {
    margin-top: 60px;
    height: 50px;
    background-color: #2A5AA7;
    width: 100%;
    padding: 5px 2% 5px 2%;
}

.header-dealer-name {
    font-size: 18px;
    color: #fff;
    display: inline-block;
    white-space: nowrap;
}

.header-dealer-group {
    display: block;
    text-align: right;
    white-space: nowrap;
}

.inner-wrapper {
    padding-top: 0 !important;
}

.content-body-groups, .content-body-no-groups {
    margin-top: 57px;
}

.negative-dollar {
    /* Accounting standards show negative numbers in parentheses.  This is just
    a standardized class to show it. */
    color:red;
}

.negative-dollar::before {
    content:"(";
}

.negative-dollar::after{
    content:")";
}


.userbox-container {
    text-align: right;
}

.mfp-wrap {
    width: 80% !important;
    position: fixed;
    left: 10% !important;
}

.inner-logo-container {
    min-width: 220px;
    height: 60px;
    float: left;
    width: 210px;
}

.inner-logo-header-dealer-name {
    height: 50px;
    width: 100%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
}

.signupButtonContainer {
    min-width: 240px;
    width: 8%;
    float: right;
    padding-top: 0px;
    text-align: right;
    padding-right: 30px;
}

.signupButton {
    background-color: #278806;
    border-color: #278806;
    color: #fff;
}

.merchantApplicationButton {
    background-color: #278806;
    border-color: #278806;
    color: #fff;
}

.signupButtonContainerMobile {
    min-width: 180px;
    width: 100%;
    padding-top: 12px;
    text-align: center;
}

.signupMobileBlock {
    display: none;
}

.bg-platform-blue {
    background-color: #2A5AA7;
    color: #fff;
}

.trialBanner {
    float: right;
    padding-top: 18px;
    text-align: right;
    display: flex;
}

.trialBannerMobile {
    display: none;
}

.signupButtonAnimated {
    animation: customWobble 11s infinite;
}

@-webkit-keyframes customShake {
    0%, 50% {
        -webkit-transform: translateX(0);
        opacity: 1;
    }

    10%, 30% {
        -webkit-transform: translateX(-10px);
    }

    20%, 40% {
        -webkit-transform: translateX(10px);
    }
}

@-moz-keyframes customShake {
    0%, 50% {
        -moz-transform: translateX(0);
        opacity: 1;
    }

    10%, 30% {
        -moz-transform: translateX(-10px);
    }

    20%, 40% {
        -moz-transform: translateX(10px);
    }
}

@-o-keyframes customShake {
    0%, 50% {
        -o-transform: translateX(0);
        opacity: 1;
    }

    10%, 30% {
        -o-transform: translateX(-10px);
    }

    20%, 40% {
        -o-transform: translateX(10px);
    }
}

@keyframes customShake {
    0%, 50% {
        transform: translateX(0);
        opacity: 1;
    }

    10%, 30%{
        transform: translateX(-10px);
    }

    20%, 40%{
        transform: translateX(10px);
    }
}

.customShake {
    -webkit-animation-name: customShake;
    -moz-animation-name: customShake;
    -o-animation-name: customShake;
    animation-name: customShake;
}

@-webkit-keyframes customWiggle {
    0% {
        -webkit-transform: skewX(9deg);
    }

    3% {
        -webkit-transform: skewX(-8deg);
    }

    6% {
        -webkit-transform: skewX(7deg);
    }

    9% {
        -webkit-transform: skewX(-6deg);
    }

    12% {
        -webkit-transform: skewX(5deg);
    }

    15% {
        -webkit-transform: skewX(-4deg);
    }

    18% {
        -webkit-transform: skewX(3deg);
    }

    21% {
        -webkit-transform: skewX(-2deg);
    }

    24% {
        -webkit-transform: skewX(1deg);
    }

    27% {
        -webkit-transform: skewX(0deg);
    }

    30% {
        -webkit-transform: skewX(0deg);
        opacity: 1;
    }
}

@-moz-keyframes customWiggle {
    0% {
        -moz-transform: skewX(9deg);
    }

    3% {
        -moz-transform: skewX(-8deg);
    }

    6% {
        -moz-transform: skewX(7deg);
    }

    9% {
        -moz-transform: skewX(-6deg);
    }

    12% {
        -moz-transform: skewX(5deg);
    }

    15% {
        -moz-transform: skewX(-4deg);
    }

    18% {
        -moz-transform: skewX(3deg);
    }

    21% {
        -moz-transform: skewX(-2deg);
    }

    24% {
        -moz-transform: skewX(1deg);
    }

    27% {
        -moz-transform: skewX(0deg);
    }

    30% {
        -moz-transform: skewX(0deg);
        opacity: 1;
    }
}

@-o-keyframes customWiggle {
    0% {
        -o-transform: skewX(9deg);
    }

    3% {
        -o-transform: skewX(-8deg);
    }

    6% {
        -o-transform: skewX(7deg);
    }

    9% {
        -o-transform: skewX(-6deg);
    }

    12% {
        -o-transform: skewX(5deg);
    }

    15% {
        -o-transform: skewX(-4deg);
    }

    18% {
        -o-transform: skewX(3deg);
    }

    21% {
        -o-transform: skewX(-2deg);
    }

    24% {
        -o-transform: skewX(1deg);
    }

    27% {
        -o-transform: skewX(0deg);
    }

    30% {
        -o-transform: skewX(0deg);
        opacity: 1;
    }
}

@keyframes customWiggle {
    0% {
        transform: skewX(9deg);
    }

    3% {
        transform: skewX(-8deg);
    }

    6% {
        transform: skewX(7deg);
    }

    9% {
        transform: skewX(-6deg);
    }

    12% {
        transform: skewX(5deg);
    }

    15% {
        transform: skewX(-4deg);
    }

    18% {
        transform: skewX(3deg);
    }

    21% {
        transform: skewX(-2deg);
    }

    24% {
        transform: skewX(1deg);
    }

    27% {
        transform: skewX(0deg);
    }

    30% {
        transform: skewX(0deg);
        opacity: 1;
    }
}

.customWiggle {
    -webkit-animation-name: customWiggle;
    -moz-animation-name: customWiggle;
    -o-animation-name: customWiggle;
    animation-name: customWiggle;
    -webkit-animation-timing-function: ease-in;
    -moz-animation-timing-function: ease-in;
    -o-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
}


/* originally authored by Nick Pettit - https: //github.com/nickpettit/glide */
@-webkit-keyframes customWobble {
    0% {
        -webkit-transform: translateX(0%);
    }

    2% {
        -webkit-transform: translateX(-1%) rotate(-1.5deg);
    }

    4% {
        -webkit-transform: translateX(1%) rotate(1.5deg);
    }

    6% {
        -webkit-transform: translateX(-1%) rotate(-1.5deg);
    }

    8% {
        -webkit-transform: translateX(1%) rotate(1.5deg);
    }

    10% {
        -webkit-transform: translateX(-1%) rotate(-1.5deg);
    }

    12% {
        -webkit-transform: translateX(0%);
        opacity: 1;
    }
}

@-moz-keyframes customWobble {
    0% {
        -moz-transform: translateX(0%);
    }

    2% {
        -moz-transform: translateX(-1%) rotate(-1.5deg);
    }

    4% {
        -moz-transform: translateX(1%) rotate(1.5deg);
    }

    6% {
        -moz-transform: translateX(-1%) rotate(-1.5deg);
    }

    8% {
        -moz-transform: translateX(1%) rotate(1.5deg);
    }

    10% {
        -moz-transform: translateX(-1%) rotate(-1.5deg);
    }

    12% {
        -moz-transform: translateX(0%);
        opacity: 1;
    }
}

@-o-keyframes customWobble {
    0% {
        -o-transform: translateX(0%);
    }

    2% {
        -o-transform: translateX(-1%) rotate(-1.5deg);
    }

    4% {
        -o-transform: translateX(1%) rotate(1.5deg);
    }

    6% {
        -o-transform: translateX(-1%) rotate(-1.5deg);
    }

    8% {
        -o-transform: translateX(1%) rotate(1.5deg);
    }

    10% {
        -o-transform: translateX(-1%) rotate(-1.5deg);
    }

    12% {
        -o-transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes customWobble {
    0% {
        transform: translateX(0%);
    }

    2% {
        transform: translateX(-1%) rotate(-1.5deg);
    }

    4% {
        transform: translateX(1%) rotate(1.5deg);
    }

    6% {
        transform: translateX(-1%) rotate(-1.5deg);
    }

    8% {
        transform: translateX(1%) rotate(1.5deg);
    }

    10% {
        transform: translateX(-1%) rotate(-1.5deg);
    }

    12% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.customWobble {
    -webkit-animation-name: customWobble;
    -moz-animation-name: customWobble;
    -o-animation-name: customWobble;
    animation-name: customWobble;
}

.show-on-mobile {
    display: none;
}

.header .header-right {
    height: 57px;
}

.notifications .notification-menu .notification-title{
    background-color: #2A5AA7;
}

.notifications .notification-menu:before, .notifications .notification-icon:before {
    border-bottom-color: #2A5AA7;
}

.notifications .notification-menu .notification-title .label-default {
    background-color: #0088cc;
}



@media only screen and (min-width: 767px)  and (max-width: 1440px) {
    .login-inner-wrapper {
        display: table;
        table-layout: fixed;
        overflow: hidden;
        width: 100%;
    }

    .header-dealer-name {
        display: block;
    }
    header.header-nav-menu .header-btn-collapse-nav {
        margin-right: 20px !important;
    }
}

@media only screen and (min-width: 992px)  and (max-width: 1039px) {
    body .content-body {
        padding:  5px;
    }

    .login-inner-wrapper {
        display: table;
        table-layout: fixed;
        overflow: hidden;
        width: 100%;
    }

    .header-dealer-name {
        display: block;
    }
    header.header-nav-menu .header-btn-collapse-nav {
        margin-right: 20px !important;
    }
}

@media only screen and (min-width: 1040px)  and (max-width: 1111px) {
    body .content-body {
        padding:  5px;
    }

    .login-inner-wrapper {
        display: table;
        table-layout: fixed;
        overflow: hidden;
        width: 100%;
    }

    .header-dealer-name {
        display: block;
    }
    header.header-nav-menu .header-btn-collapse-nav {
        margin-right: 20px !important;
    }
}
@media only screen and (max-width: 992px) and (min-width: 768px) {
    .header.header-nav-menu .header-right {
        position: inherit;
    }
}

@media only screen and (max-width: 767px) {
    body .content-body {
        padding:  5px;
        margin-left: 0;
        margin-right: 0;
    }

    body .content-body-groups {
        margin-top: 0;
    }

    .padding-small {
        padding: 0;
    }

    .userbox .profile-picture {
        display: inline-block !important;
    }

    .userbox {
        float: right;
        margin-left: 0;
    }

    .userbox-container {
        min-width: 120px;
        margin-right: 75px;
    }


    .notifications {
        float: none;
    }

    #carpayHeaderBar {
        margin-top: 60px;
    }

    .margin-login-templates {
        margin-top: 0;
    }
    header.header-nav-menu .header-btn-collapse-nav {
        margin-right: 20px !important;
    }

    .login-inner-wrapper {
        display: table;
        margin-top: 0 !important;
        padding-top: 20px !important;
        table-layout: fixed;
        overflow: hidden;
        width: 100%;
    }

    .dealer-sub-header {
        margin-top: 59px;
    }

    .header-dealer-name {
        display: none;
    }

    .mfp-wrap {
        width: 98% !important;
        position: fixed;
        left: 1% !important;
    }

    .inner-logo-container {
        min-width: 165px;
        max-width: 40%;
    }
    .inner-logo-container img {
        width: 100%;
    }

    .text-image-div {
        display: none;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block;
    }

    .header .header-right {
        margin-top: 0;
    }
}

@media only screen and (max-width: 1000px) {
    .signupMobileBlock{
        display: block;
    }

    .signupTopBlock{
        display: none;
    }

    .trialBannerMobile {
        display: block;
    }

    .trialBanner {
        display: none;
    }

    .hide-on-mobile-sm {
        display: none !important;
    }

    .inner-logo-header-dealer-name {
        display: none;
    }
}

.padding-top-medium {
    padding-top: 20px;
}

.opened-menu {
    margin-top: 60px;
}

.login-layout .logo {
    margin-top: 35px;
    margin-left: 15px;
}

.userbox.open .dropdown-menu {
    left: -105px !important;
    padding: 0 !important;
    top: 45px !important;
}

.required {
    display: block !important;
}

/* Header Bar */

#carpayHeaderBar {
    background-color: #2A5AA7;
    color: #FFF;
    height: 60px;
    padding-top: 18px;
    /*margin-bottom: 25px; */
    padding-left: 32px;
    margin-top: 60px;
}

.inner-body-sign {
    margin: 0 auto;
    max-width: 500px;
    padding: 0 15px;
    width: 100%;
    min-height: 59vh;
}

.login-inner-wrapper {
    display: table;
    table-layout: fixed;
    overflow: hidden;
    width: 100%;
}

.display-inline-block {
    display: inline-block;
}

.center-pills {
    display: inline-block;
}

input[type=text], input[type=password] {
    display: block;
    width: 100%;
    padding: 6px 12px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

input[type=text]:disabled, input[readonly] {
    background-color:lightgray;
}

.header.header-nav-menu .header-nav-main nav > ul > li > a.dropdown-toggle:after {
    border-color: #2A5AA7 transparent transparent transparent !important;;
}

.header.header-nav-menu .header-nav-main nav > ul > li.open > a,
.header.header-nav-menu .header-nav-main nav > ul > li:hover > a,
.header.header-nav-menu .header-nav-main nav > ul > li.active > a {
    background: #2A5AA7 !important;;
}

.header.header-nav-menu .header-nav-main nav > ul > li.dropdown .dropdown-menu {
    border-top: 5px solid #2A5AA7 !important;;
}

.header.header-nav-menu .header-nav-main nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > a:after {
    border-color: transparent transparent transparent #2A5AA7 !important;;
}

.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.open > a:before,
.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li:hover > a:before,
.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.active > a:before {
    background-color: #2A5AA7 !important;;
}

.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.open > a.dropdown-toggle:after,
.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li:hover > a.dropdown-toggle:after,
.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.active > a.dropdown-toggle:after {
    border-color: #2A5AA7 transparent transparent transparent !important;;
}

.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.dropdown .dropdown-menu {
    border-top: 5px solid #2A5AA7 !important;;
}

.header.header-nav-menu.header-nav-top-line .header-nav-main nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > a:after {
    border-color: transparent transparent transparent #2A5AA7 !important;
}

ul.nav-main > li > a{
    padding: 4px 25px !important;
}

ul.nav-main > li > ul > li > a {
    padding: 3px 15px 3px 57px !important;
}

ul.nav-main > li > ul {
    padding: 0 !important;
}

ul.nav-main li.nav-parent > a:after {
    padding: 4px 25px !important;
}

.navbar-bottom ul {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

@media (max-height: 650px) {
    .navbar-main {
        height: 100%;
        max-height: none;
    }

    .navbar-bottom {
        height: 100%;
        max-height: none;
    }

    .navbar-bottom ul {
        position: relative;
    }
}

@media (max-width: 991px) {
    .header.header-nav-menu .header-nav-main nav > ul.nav-pills > li.active > a,
    .header.header-nav-menu .header-nav-main nav > ul.nav-pills > li.active > a:hover,
    .header.header-nav-menu .header-nav-main nav > ul.nav-pills > li.active > a:focus {
        background-color: #2A5AA7 !important;
        color: #fff;
    }

    .header.header-nav-menu .header-nav-main nav > ul.nav-pills > li > a {
        color: #2A5AA7;
    }

    .header.header-nav-menu .header-nav-main nav > ul.nav-pills > li > a:hover {
        background-color: #2A5AA7 !important;
        color: #fff;
    }

    .header-btn-collapse-nav {
        background: #2A5AA7 !important;
        color: #ffffff;
    }

    .navbar-main {
        height: 100%;
        max-height: none;
    }

    .navbar-bottom {
        height: 100%;
        max-height: none;
    }

    .navbar-bottom ul {
        position: relative;
    }
}

.text-msg-image {
    margin-top: -60px;
}

.tab-content.no-tab-style {
    background-color: inherit;
    padding: 0 10px 0  10px;
}

.switch.switch-primary .ios-switch .on-background {
    background: #2A5AA7 !important;
}

.customer-header-text {
    font-size: 14px;
    padding:7px;
}
.d-flex-inline {
    display: inline-flex !important;
}

.customer-name-col {
    max-width: 300px;
    min-width: 100px;
    white-space: normal;
}

.table .pagination {
    float: right;
}

#menu .nav-active a {
    font-weight: 600;
    color: #777;
}

ul.nav-main > li.nav-active > a {
    box-shadow: 3px 0 0 #777 inset !important;
}

.data-tables-export-buttons button {
    padding: 4px 10px !important;
}

html .pagination > li.active a, html.dark .pagination > li.active a {
    background-color: #2A5AA7 !important;
}

.block-toggle-checkbox {
    margin: 0 !important;
}

.notification-toggle-checkbox {
    margin: 0 !important;
}

.action-links-td {
    padding: 4px 8px 0px 8px !important;
}

input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button {
    position: relative;
    bottom: 3px;
}

.multiselect-container label {
    padding: 5px;
}

.header .separator {
    margin: 0;
}

.notifications {
    margin: 11px 6px 0 0;
}

#customer-select-dropdown-container {
    min-width: 175px;
}

.error-input {
    border:1px solid red !important;
}

.notification-menu .title {
    font-size: 11px;
}

.notification-menu .message {
    font-size: 10px;
}

.notification-menu .image i {
    border-radius: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    width: 28px;
    position: relative;
    top: 5px;
}

.badge-danger {
    background: #d2322d;
    color: #FFF;
}

.badge.badge-danger.notification {
    position: relative;
    bottom: 1px;
    padding: 2px 7px;
    font-size: 8px;
    font-weight: 600;
}

.list-zebra {
    display: block;
    width: 100%;
    list-style: none inside;
    padding: 0;
}

.list-zebra li:nth-child(odd) {
    background-color: #e2e2e2;
}

.list-zebra--2-cols li {
    display: grid;
    grid: auto / 1fr auto;
    width: 100%;
    gap: 24px;
    padding: 2px 2px 2px 12px;
    place-items: center start;
}


.list-zebra--2-cols li > span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: 1;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    max-width: 100%;
    white-space: nowrap;
}

.form-checkbox-wrapper .checkbox {

}

.form-checkbox-wrapper .checkbox label {
    display: flex !important;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.form-checkbox-wrapper .checkbox label * {
    vertical-align: middle;
    margin: 4px 4px 4px 0 !important;
}

#menu > ul > li.conversations-nav-item.unread > a > span::after {
    margin-left: 5px;
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background-color: #2A5AA7;
}

/* Language selector submenu in userbox */
.userbox .dropdown-submenu {
    position: relative;
}

.userbox .dropdown-submenu > a {
    padding-right: 25px !important;
}

/*.userbox .dropdown-submenu > a:after {*/
/*    content: "\f105";*/
/*    font-family: FontAwesome;*/
/*    margin-left: 8px;*/
/*    font-size: 12px;*/
/*    color: #7d7d7d;*/
/*}*/

.userbox .dropdown-submenu > ul.dropdown-menu {
    display: block !important;
    position: absolute !important;
    /* Appear to the left since userbox is on the right edge of screen */
    left: auto !important;
    right: 100% !important;
    top: -5px !important;
    margin-right: -10px;
    min-width: 120px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 9999;
    /* Fade out transition with 500ms delay */
    visibility: hidden;
    opacity: 0;
    /*pointer-events: none;*/
    transition: opacity 0.2s ease-out 0.5s, visibility 0s linear 0.7s;
}

.userbox.open .dropdown-menu .dropdown-menu {
    padding: 5px 0 0 !important;
}

.userbox.open .dropdown-menu > ul.dropdown-menu {
    padding: 5px 0 0 !important;
}

/* Bridge area to prevent hover loss when moving to submenu */
.userbox .dropdown-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
}

.userbox .dropdown-submenu:hover > ul.dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    /* Instant appear on hover */
    transition: opacity 0.15s ease-in, visibility 0s linear;
}

/* Highlight "Language" when submenu is open */
.userbox .dropdown-submenu:hover > a {
    background: #0088cc;
    color: #fff !important;
}

/* Close submenu immediately when hovering other menu items */
.userbox .dropdown-menu:has(> li:not(.dropdown-submenu):hover) .dropdown-submenu > ul.dropdown-menu {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important;
}

.userbox .dropdown-submenu .dropdown-menu li {
    margin-bottom: 5px;
}

.userbox .dropdown-submenu .dropdown-menu a {
    white-space: nowrap;
    border-radius: 2px;
    color: #7d7d7d;
    display: block;
    font-size: 1.2rem;
    line-height: 19px;
    padding: 5px 10px;
}

html.dark .userbox .dropdown-submenu > .dropdown-menu,
html.header-dark .userbox .dropdown-submenu > .dropdown-menu {
    background: #282d36;
}

html.dark .userbox .dropdown-submenu > a:after,
html.header-dark .userbox .dropdown-submenu > a:after {
    color: #C3C3C3;
}
