/************ header ************/
.cofast-main-content {
    padding-top: 10rem;
    min-height: 100rem;
}

#header {
    position: fixed;
    top: 0;
    z-index: 99999;
    width: 100%;
    background-color: #FBFCFD;
}

#header .dropdown-menu {
    -webkit-box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, .175);
    box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, .175);
}

#header .navbar-light {
    padding: 0;
}

.header-top {
    padding: 0.5rem 0;
    font-size: 1.3rem;
}

.header-top .contact-info {
    color: var(--white);
}

.header-top .contact-info a,
.header-top .auth-links a {
    margin: 0 1rem;
    text-decoration: none;
}

.header-top .contact-info a:hover,
.header-top .auth-links a:hover {
    text-decoration: underline;
}

.header-top {
    display: table;
    width: 100%;
    border-bottom: 1px solid var(--cofast-border);
    padding: 0.5rem;
    font-size: 1.3rem;
}

.ul-header-top {
    font-weight: 500;
    color: var(--cofast-blue);
}

.header-top .ul-header-top > li {
    list-style: none;
    float: left;
}

.header-top .ul-header-top > li > a {
    font-weight: 500;
}

.header-top .ul-header-top > li.line-stretch {
    margin: -0.4rem 1.4rem;
    font-size: 1.8rem;
}

.header-top .ul-header-top i {
    width: 2rem;
}

.header-top .dropdown-toggle::after {
    position: relative;
    top: 0.3rem;
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    font-size: 1.6rem;
}

.header-top .drop-top-menu {
    top: 2.2rem;
    background: #fbfcfd;
    border-radius: 0.4rem;
    padding: 0;
    right: 0 !important;
    left: unset !important;
    z-index: 99999999;
}

.header-top .drop-top-menu li {
    font-size: 1.3rem;
}

.header-top .drop-top-menu li a {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
}

.header-top .drop-top-menu li:last-child a {
    border-bottom: none;
}

#navbar {
    position: relative;
    margin-right: 5rem;
}

#navbar ul li.active {
    color: var(--cofast-blue);
}

#navbar > ul > li {
    position: relative;
}

#navbar > ul > li:hover > a {
    color: var(--cofast-blue) !important;
    background-color: transparent;
}

.navbar-brand {
    padding: 0;
    height: 6.4rem;
}

.navbar-brand img {
    height: 100%;
}

#navbar ul li .nav-link {
    padding: 2.4rem 1.7rem;
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

#navbar > ul > li {
    position: relative;
}

#navbar > ul > li.has-sub > a:before {
    position: absolute;
    top: 3.2rem;
    right: 1.1rem;
    display: block;
    width: 0.2rem;
    height: 0.8rem;
    background: #000;
    content: '';
    -webkit-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

#navbar > ul > li.has-sub > a:after {
    position: absolute;
    top: 3.5rem;
    right: 0.8rem;
    width: 0.8rem;
    height: 0.2rem;
    display: block;
    background: #000;
    content: '';
}

#navbar > ul > li.has-sub.active > a:before,
#navbar > ul > li.has-sub.active > a:after {
    background-color: var(--cofast-blue);
}

#navbar > ul > li:hover,
#navbar ul li.active:hover,
#navbar ul li.active,
#navbar ul li.has-sub.active:hover {
    background: var(--white) !important;
    transition: background 0.3s ease;
}

#navbar ul ul li {
    transition: all 0.25s ease;
    background: var(--white);
}

#navbar ul ul li a {
    display: inline-block;
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    padding: 1.1rem 1.5rem;
    width: 100%;
    font-size: 1.3rem;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: color 0.25s ease, background-color 0.25s ease;
}

#navbar ul ul li:last-child a {
    border-bottom: none;
}

#navbar .has-sub .list-option-logistics {
    position: absolute;
    left: 0.6rem;
    top: 6rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#navbar li:hover > .list-option-logistics > li {
    height: 100%;
    transition: height 0.25s ease;
}

#navbar > ul > li.has-sub:hover .list-option-logistics > li:hover {
    background-color: #f8f9fa;
}

#navbar > ul > li.has-sub:hover > a:before {
    background: #000;
    top: 2.3rem;
    height: 0;
}

#navbar > ul > li.has-sub .list-option-logistics {
    position: absolute;
    left: 0.6rem;
    top: 5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 999;
    min-width: 22rem;
}

#navbar > ul > li.has-sub:hover > .list-option-logistics {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0px 4px 15px -10px rgb(156 156 156 / 55%);
    border-radius: 10px;
    overflow: hidden;
}

#navbar > ul > li.has-sub:hover > .list-option-logistics li a {
    white-space: normal;
    transition: all .2s;
}

#navbar > ul > li.has-sub:hover > .list-option-logistics li:hover a {
    color: var(--cofast-blue) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

.header-bottom {
    border-bottom: 1px solid var(--cofast-border);
}

.header-bottom .nav-language {
    position: absolute;
    top: 2.4rem;
    right: 1rem;
}

.header-bottom .nav-language .dropdown-toggle::after {
    position: absolute;
    top: 0.9rem;
    left: 3rem;
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.header-bottom .nav-language .dropdown-menu {
    left: -7rem;
}

.header-bottom .nav-language .dropdown-menu {
    padding: 0;
}

.header-bottom .nav-language .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    width: 100%;
}

.header-bottom .nav-language .dropdown-menu > li:last-child > a {
    border-bottom: none;
}

.header-bottom .nav-language .dropdown-menu > li > a img {
    position: relative;
    top: -0.1rem;
    margin-right: 0.5rem;
}

.header-bottom .nav-language .dropdown-toggle {
    padding: 0 1rem;
    display: inline-block;
}

.header-bottom .nav-language .dropdown-toggle:hover {
    background-color: transparent;
}

.header-bottom .nav-language .dropdown-menu > li:hover {
    background-color: #f8f9fa;
}

/************ Responsive ************/
@media (max-width: 1200px) {
    #navbar {
        display: none;
        margin-right: 0;
        width: 100%;
    }

    #header .container {
        width: 100%;
        max-width: 100%;
    }

    .navbar-brand {
        margin: 0 auto;
        height: 5rem;
    }

    .header-bottom .nav-language {
        top: 1.6rem;
        right: 6rem;
    }

    .button-menu {
        width: 5.5rem;
        height: 4rem;
        position: absolute;
        right: 0;
        top: 0.4rem;
        cursor: pointer;
        z-index: 12399994;
    }

    .button-menu:before {
        transition: all 0.3s ease;
        position: absolute;
        top: 1.6rem;
        right: 2rem;
        display: block;
        height: 0.2rem;
        width: 2rem;
        background: #006BCE;
        content: '';
    }

    .button-menu:after {
        position: absolute;
        top: 2.1rem;
        right: 2rem;
        display: block;
        height: 0.7rem;
        width: 2rem;
        border-top: 2px solid #006BCE;
        border-bottom: 2px solid #006BCE;
        content: '';
    }

    .button-menu.menu-opened:before {
        top: 2.3rem;
        background: #006BCE;
        width: 1.9rem;
        transform: rotate(-45deg);
    }

    .button-menu.menu-opened:after {
        transition: all 0.3s ease;
        top: 2.3rem;
        border: 0;
        height: 0.2rem;
        width: 1.9rem;
        background: #006BCE;
        transform: rotate(45deg);
    }

    #navbar ul {
        width: 100%;
        padding: 0;
        margin-right: 0;
    }

    #navbar > ul > li {
        background: #333333;
        width: 100%;
        border-top: 0.1rem solid #444;
    }

    #navbar ul li a,
    #navbar ul ul li a {
        width: 100%;
        border-bottom: 0;
    }

    #navbar ul li .nav-link {
        padding: 1.4rem;
        color: #fff;
    }

    #header .container-fluid {
        flex-direction: column;
        padding: 0;
    }

    #navbar ul li.active {
        background: #333333 !important;
    }

    #navbar > ul > li.has-sub:hover > .list-option-logistics {
        opacity: 0;
    }

    #navbar > ul > li.has-sub > a:before,
    #navbar > ul > li.has-sub > a:after {
        display: none;
    }

    #header .dropdown-menu {
        width: 12rem;
    }


    .header-bottom .nav-language .dropdown-menu {
        position: absolute;
    }

    #navbar .submenu-button {
        position: absolute;
        z-index: 999;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid #444;
        height: 5.2rem;
        width: 4.6rem;
        cursor: pointer;
    }

    #navbar .submenu-button:before {
        position: absolute;
        top: 1.9rem;
        right: 2.2rem;
        display: block;
        width: 0.3rem;
        height: 0.8rem;
        background: #ddd;
        content: '';
    }

    #navbar .submenu-button:after {
        position: absolute;
        top: 2.2rem;
        right: 2rem;
        width: 0.8rem;
        height: 0.2rem;
        display: block;
        background: #ddd;
        content: '';
    }

    #navbar .submenu-button.submenu-opened {
        background: #262626;
    }

    #navbar .submenu-button.submenu-opened:before {
        display: none;
    }

    #navbar > ul > li.has-sub .list-option-logistics {
        left: 0;
        right: 0.6rem;
        z-index: -1;
    }

    #navbar ul ul li {
        background: #333 !important;
        width: 100%;
        border-top: 1px solid #444;
    }

    #navbar ul ul li:hover {
        background: #363636 !important;
    }

    #navbar ul ul li a {
        padding-left: 2.5rem;
        color: #ddd;
        background: none;
        width: 100%;
        max-width: 100%;
        font-size: 1.5rem;
    }
}

#div-version-info {
    position: fixed;
    right: 1.6rem;
    bottom: 1rem;
    z-index: 999999;
}

@media (max-width: 768px) {
    .hidden-xs {
        display: none !important;
    }

    .button-menu:before {
        height: 0.3rem;
    }

    .button-menu:after {
        height: 0.8rem;
    }

    .cofast-main-content {
        padding-top: 8.2rem;
    }
}
