html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.tep-maintenance-ribbon {
    background: #c62828;
    color: #fff;
    padding: 10px 0;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 2000;
}

    .tep-maintenance-ribbon a {
        color: #fff;
        text-decoration: underline;
    }

#page-topbar .tep-portal-menu {
    width: max-content !important; 
    min-width: 780px !important; 
    max-width: min(1200px, calc(100vw - 24px)) !important; 
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

#page-topbar .tep-portal-menu-end {
    right: 12px !important;
    left: auto !important;
    transform: none !important;
}

#page-topbar .tep-portal-menu .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
}

#page-topbar .tep-portal-menu .col-lg-4 {
    flex: 0 0 auto !important; 
    width: auto !important;
    max-width: none !important;
    min-width: 260px !important; 
}

#page-topbar .tep-portal-menu .col-lg-0 {
    flex: 0 0 auto !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
}

    #page-topbar .tep-portal-menu .col-lg-0 > div {
        width: 1px !important;
    }

#page-topbar .tep-portal-menu a.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: .5rem;
    width: 100% !important;
    white-space: nowrap !important; 
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

    #page-topbar .tep-portal-menu a.dropdown-item i {
        flex: 0 0 1.25rem;
        width: 1.25rem;
        text-align: center;
    }

@media (max-width: 991.98px) {
    #page-topbar .tep-portal-menu {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-height: 70vh;
        overflow-x: hidden; 
    }

        #page-topbar .tep-portal-menu .row {
            flex-wrap: wrap !important;
        }

        #page-topbar .tep-portal-menu .col-lg-4 {
            flex: 0 0 100% !important;
            width: 100% !important;
            min-width: 0 !important;
        }
}