:root {
    --blue: #0b4f8a;
    --blue2: #0e68b1;
    --soft: #eef6fc;
    --line: #d6e6f2;
    --text: #102a43;
    --muted: #5f7182;
    --danger: #b42318;
    --ok: #0f766e;
    --header-h: 3.25rem;
    --subnav-h: 2.75rem;
    --status-h: 2rem;
    --side-w: 13rem;
}

* {
    box-sizing: border-box;
}

body {
   margin: 0;
   font-family: "Exo 2", Calibri, Candara, "Segoe UI", Segoe, Optima, Arial, system-ui, -apple-system, sans-serif;
   background: #f7fbff;
   color: var(--text);
}

a {
    color: inherit;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(11, 79, 138, .12);
}

.topbar {
    min-height: var(--header-h);
    display: flex;
    align-items: stretch;
    background: var(--blue);
    color: #fff;
}

.menu-toggle {
    display: none;
    align-self: center;
    margin: .45rem .75rem .45rem auto;
    width: 2.75rem;
    height: 2.4rem;
    padding: .45rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #fff;
    color: var(--blue);
}

.menu-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    border-radius: 999px;
    transition: transform .18s ease, opacity .18s ease;
}

.app-header.is-menu-open .menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.app-header.is-menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.app-header.is-menu-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
}

.main-nav-group {
    display: contents;
}

.mobile-sub-nav,
.mobile-submenu-indicator {
    display: none;
}

.main-nav-link,
.sub-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0 .95rem;
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.main-nav-link:hover,
.main-nav-link:focus-visible {
    background: var(--blue2);
    color: #fff;
}

.main-nav-link.is-active {
    background: #fff;
    color: var(--blue);
    font-weight: 700;
}

.sub-nav {
    min-height: var(--subnav-h);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    background: var(--blue2);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.sub-nav-link {
    border-right-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.sub-nav-link:hover,
.sub-nav-link:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.sub-nav-link.is-active {
    background: #fff;
    color: var(--blue2);
    font-weight: 700;
}

.status-bar {
    position: sticky;
    top: calc(var(--header-h) + var(--subnav-h));
    z-index: 900;
    min-height: var(--status-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .35rem 1.25rem;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.side-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--subnav-h) + var(--status-h) + 1.53rem);
    right: 1rem;
    z-index: 800;
    width: var(--side-w);
    display: grid;
    gap: .35rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(16, 42, 67, .09);
}

.side-nav strong {
    color: var(--blue);
    font-size: .9rem;
    padding: .25rem .35rem .4rem;
}

.side-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.25rem;
    padding: .45rem .6rem;
    text-decoration: none;
    border-radius: .55rem;
    color: var(--text);
    background: var(--soft);
    border: 1px solid transparent;
}

.side-nav a:hover,
.side-nav a:focus-visible {
    border-color: var(--line);
    background: #fff;
    color: var(--blue);
}

.app-main {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

body:has(.side-nav) .app-main {
    padding-right: calc(var(--side-w) + 2.5rem);
}

.page-card,
.login-box {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(18, 38, 63, .08);
}

.footer,
.app-footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

button,
.button,
input[type="submit"] {
    border: 0;
    border-radius: .65rem;
    background: var(--blue);
    color: #fff;
    padding: .65rem .9rem;
    font: inherit;
    cursor: pointer;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--blue2);
}

input,
select,
textarea {
    font: inherit;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: .55rem;
    padding: .55rem .65rem;
    background: #fff;
}

@media (max-width: 1100px) {
    .side-nav {
        position: sticky;
        top: calc(var(--header-h) + var(--subnav-h) + var(--status-h));
        width: auto;
        margin: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    }

    body:has(.side-nav) .app-main {
        padding-right: 1.5rem;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: auto;
        --subnav-h: auto;
    }

    .topbar {
        display: flex;
        align-items: center;
        min-height: 3.25rem;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .js-ready .main-nav,
    .js-ready .sub-nav {
        display: none;
    }

    .js-ready .app-header.is-menu-open .main-nav,
    .js-ready .app-header.is-menu-open .sub-nav {
        display: flex;
    }

    .main-nav,
    .sub-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .main-nav {
        position: absolute;
        top: 3.25rem;
        left: 0;
        right: 0;
        max-height: calc(100vh - 3.25rem);
        overflow-y: auto;
        background: var(--blue);
        box-shadow: 0 14px 30px rgba(16, 42, 67, .18);
    }

    .sub-nav {
        border-top: 1px solid rgba(255, 255, 255, .18);
        box-shadow: 0 14px 30px rgba(16, 42, 67, .14);
    }

    .main-nav-group {
        display: block;
    }

    .mobile-submenu-indicator {
        display: inline-flex;
        margin-left: auto;
        font-size: 1.1rem;
        line-height: 1;
        transition: transform .18s ease;
    }

    .main-nav-group.is-mobile-open .mobile-submenu-indicator {
        transform: rotate(180deg);
    }

    .mobile-sub-nav {
        display: none;
        background: rgba(255, 255, 255, .08);
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .main-nav-group.is-mobile-open .mobile-sub-nav {
        display: block;
    }

    .mobile-sub-nav-link {
        display: flex;
        align-items: center;
        min-height: 2.65rem;
        width: 100%;
        padding: 0 .95rem 0 1.75rem;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        background: rgba(255, 255, 255, .05);
    }

    .mobile-sub-nav-link:hover,
    .mobile-sub-nav-link:focus-visible {
        background: rgba(255, 255, 255, .18);
    }

    .mobile-sub-nav-link.is-active {
        background: #fff;
        color: var(--blue2);
        font-weight: 700;
        border-left: .35rem solid currentColor;
        padding-left: 1.4rem;
    }

    .main-nav-link,
    .sub-nav-link {
        justify-content: flex-start;
        gap: .5rem;
        min-height: 2.85rem;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .main-nav-link.is-active,
    .sub-nav-link.is-active {
        border-left: .35rem solid currentColor;
    }

    .status-bar {
        position: static;
        flex-wrap: wrap;
    }

    .side-nav {
        position: static;
        margin: 1rem;
        grid-template-columns: 1fr;
    }

    body:has(.side-nav) .app-main,
    .app-main {
        padding: 1rem;
    }
}

.page-card > h2[id] {
    scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + var(--status-h) + 1rem);
}
