html.mis-navigation-enabled body > .top-navbar,
html.mis-navigation-enabled body > .topbar,
html.mis-navigation-enabled body > .help-header {
    display: none !important;
}

.mis-nav {
    --mis-nav-offset-top: 0px;
    --mis-nav-offset-right: 0px;
    --mis-nav-offset-left: 0px;
    position: sticky;
    top: 0;
    z-index: 5000;
    min-height: 54px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 20px;
    margin:
        calc(0px - var(--mis-nav-offset-top))
        calc(0px - var(--mis-nav-offset-right))
        25px
        calc(0px - var(--mis-nav-offset-left));
    color: #fff;
    background: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mis-nav,
.mis-nav * {
    box-sizing: border-box;
}

.mis-nav__brand,
.mis-nav__home,
.mis-nav__department > summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.mis-nav__brand {
    margin-right: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.mis-nav__brand-icon {
    margin-right: 7px;
}

.mis-nav__home:hover,
.mis-nav__department > summary:hover {
    color: #fff;
}

.mis-nav__home.active,
.mis-nav__department.active > summary,
.mis-nav__department[open] > summary {
    color: #3498db;
    border-bottom-color: #3498db;
}

.mis-nav__department {
    position: relative;
}

.mis-nav__department > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.mis-nav__department > summary::-webkit-details-marker {
    display: none;
}

.mis-nav__department > summary::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
}

.mis-nav__menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 225px;
    padding: 6px 0;
    border: 1px solid #d7e1eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.mis-nav__menu a {
    display: block;
    padding: 9px 13px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.mis-nav__menu a:hover,
.mis-nav__menu a.active {
    color: #1f2937;
    background: #eaf4fb;
}

.mis-nav__external {
    margin-left: 5px;
    color: #7f8c8d;
    font-size: 11px;
}

.mis-nav__user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7e2ec;
    font-size: 12px;
    white-space: nowrap;
}

.mis-nav__logout {
    padding: 6px 11px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #e74c3c;
    font-weight: 800;
    cursor: pointer;
}

.mis-nav__toggle {
    display: none;
    align-self: center;
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid #52697e;
    border-radius: 4px;
    color: #fff;
    background: #1f2d3a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mis-nav-error {
    padding: 12px 18px;
    color: #842029;
    background: #f8d7da;
    border-bottom: 1px solid #f1aeb5;
    font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 1100px) {
    .mis-nav {
        flex-wrap: wrap;
        min-height: 52px;
        padding: 0 12px;
        gap: 0;
    }

    .mis-nav__brand {
        min-height: 52px;
        margin-right: 0;
    }

    .mis-nav__toggle {
        display: block;
    }

    .mis-nav__home,
    .mis-nav__department,
    .mis-nav__user {
        display: none;
        width: 100%;
    }

    .mis-nav.nav-open .mis-nav__home,
    .mis-nav.nav-open .mis-nav__department {
        display: block;
    }

    .mis-nav.nav-open .mis-nav__user {
        display: flex;
        margin: 5px 0 12px;
        padding-top: 10px;
        border-top: 1px solid #405467;
        white-space: normal;
    }

    .mis-nav__home,
    .mis-nav__department > summary {
        min-height: 42px;
        padding: 0 5px;
    }

    .mis-nav__department {
        position: static;
    }

    .mis-nav__menu {
        position: static;
        min-width: 0;
        margin-bottom: 7px;
        border-color: #405467;
        background: #31475b;
        box-shadow: none;
    }

    .mis-nav__menu a {
        color: #d7e2ec;
    }

    .mis-nav__menu a:hover,
    .mis-nav__menu a.active {
        color: #fff;
        background: #3b5369;
    }
}
