/* /Components/Layout/MainLayout.razor.rz.scp.css */
.site-header[b-tgel62rqs5] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.site-nav[b-tgel62rqs5] {
    position: relative;
    max-width: 1600px; /* Wider than the page so the links and the account menu fit on one line. */
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-group[b-tgel62rqs5] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand[b-tgel62rqs5] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand-mark[b-tgel62rqs5] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    background: url("/favicon.svg") center / cover no-repeat;
    box-shadow: var(--shadow-sm);
}

.brand-text[b-tgel62rqs5] {
    font-size: 0.98rem;
    white-space: nowrap;
}

.links[b-tgel62rqs5] {
    display: flex;
    align-items: center;
}

.link-list[b-tgel62rqs5] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.link-list[b-tgel62rqs5]  .nav-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.6rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.link-list[b-tgel62rqs5]  .nav-link:hover {
    background: var(--primary-soft);
    color: var(--text);
}

.link-list[b-tgel62rqs5]  .nav-link.active {
    color: var(--text);
    background: var(--primary-soft);
}

/* Menu groups (Settings …): dropdowns on desktop. */
.nav-group[b-tgel62rqs5] {
    position: relative;
}

.nav-group[b-tgel62rqs5]  .nav-caret {
    color: var(--muted-2);
    transition: transform var(--transition);
}

.nav-group[data-open="true"][b-tgel62rqs5]  .nav-caret {
    transform: rotate(180deg);
}

.nav-sub[b-tgel62rqs5] {
    list-style: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 51;
    display: none;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.nav-group[data-open="true"] .nav-sub[b-tgel62rqs5] {
    display: grid;
    gap: 1px;
}

.nav-sub[b-tgel62rqs5]  .nav-link {
    width: 100%;
    padding: 0.5rem 0.65rem;
}

.nav-scrim[b-tgel62rqs5] {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.actions[b-tgel62rqs5] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[b-tgel62rqs5] .theme-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

[b-tgel62rqs5] .theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--primary-soft);
}

[b-tgel62rqs5] .theme-icon {
    font-size: 14px;
    line-height: 1;
}

.menu-button[b-tgel62rqs5] {
    appearance: none;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    line-height: 0;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), background var(--transition);
}

.menu-button:hover[b-tgel62rqs5] {
    border-color: var(--border-strong);
    background: var(--primary-soft);
}

.hamburger[b-tgel62rqs5] {
    width: 1.4rem;
    height: 1.1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar[b-tgel62rqs5] {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 999px;
}

.page[b-tgel62rqs5] {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 16px 64px;
}

/* Theme toggle shows its icon only until there's room for the label. */
@media (max-width: 1440px) {
    [b-tgel62rqs5] .theme-label {
        display: none;
    }
}

/* Narrower desktops: the links sit tighter. */
@media (min-width: 1200px) and (max-width: 1440px) {
    .link-list[b-tgel62rqs5] {
        gap: 0.1rem;
    }

    .link-list[b-tgel62rqs5]  .nav-link {
        padding: 0.35rem 0.45rem;
    }
}

/* Folded menu (tablets and small laptops): the hamburger opens a panel under the header where the groups show as
   headed lists in columns. */
@media (max-width: 1199.98px) {
    .menu-button[b-tgel62rqs5] {
        display: inline-flex;
    }

    .links[b-tgel62rqs5] {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 60;
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 0.75rem 1rem 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .links[data-open="true"][b-tgel62rqs5] {
        display: block;
    }

    .link-list[b-tgel62rqs5] {
        display: block;
        columns: 4 170px;
        column-gap: 1.5rem;
    }

    .link-list > li[b-tgel62rqs5] {
        break-inside: avoid;
        margin-bottom: 2px;
    }

    .link-list[b-tgel62rqs5]  .nav-link {
        width: 100%;
        padding: 0.55rem 0.6rem;
    }

    .nav-group[b-tgel62rqs5] {
        padding-top: 0.4rem;
    }

    /* A plain link after a group gets a rule, so it doesn't read as one of the group's. */
    .link-list > .nav-group + li:not(.nav-group)[b-tgel62rqs5] {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .link-list .nav-group-btn[b-tgel62rqs5] {
        cursor: default;
        padding: 0.2rem 0.6rem;
        background: none;
        color: var(--muted-2);
        font-size: var(--fs-micro);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .nav-group[b-tgel62rqs5]  .nav-caret {
        display: none;
    }

    .nav-sub[b-tgel62rqs5],
    .nav-group[data-open="true"] .nav-sub[b-tgel62rqs5] {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: none;
    }
}

/* Phones: a bottom bar (Dashboard … More) instead of the hamburger. More opens the same menu
   as a sheet just above the bar. */
.bottom-bar[b-tgel62rqs5] {
    display: none;
}

@media (max-width: 760px) {
    .site-header[b-tgel62rqs5] {
        background: var(--surface);
        backdrop-filter: none; /* Else the menu sheet (position: fixed) would be placed inside the header. */
    }

    .menu-button[b-tgel62rqs5] {
        display: none;
    }

    .page[b-tgel62rqs5] {
        padding-bottom: calc(var(--bottom-bar-h, 64px) + 32px);
    }

    .links[b-tgel62rqs5] {
        position: fixed;
        top: auto;
        bottom: var(--bottom-bar-h, 64px);
        max-height: calc(100dvh - var(--bottom-bar-h, 64px) - 72px);
        padding: 1rem 0.9rem 1.1rem;
        border: 1px solid var(--border);
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
    }

    .link-list[b-tgel62rqs5] {
        columns: 2 140px;
        column-gap: 1rem;
    }

    .link-list[b-tgel62rqs5]  .nav-link {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .nav-scrim[b-tgel62rqs5] {
        background: rgba(15, 23, 42, 0.38);
    }

    .bottom-bar[b-tgel62rqs5] {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr); /* As many columns as items. */
        height: var(--bottom-bar-h, 64px);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--border-strong);
        box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
    }
}

.bottom-bar[b-tgel62rqs5]  .bb-item {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-bar[b-tgel62rqs5]  .bb-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-bar[b-tgel62rqs5]  .bb-item.active {
    color: var(--primary);
}

.bottom-bar[b-tgel62rqs5]  .bb-item.active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28%;
    right: 28%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--primary);
}

.bottom-bar[b-tgel62rqs5]  .bb-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

.bb-icon[b-tgel62rqs5] {
    position: relative;
    display: inline-flex;
}

.bb-badge[b-tgel62rqs5] {
    position: absolute;
    top: -5px;
    inset-inline-start: 14px;
    min-width: 17px;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}

/* Phones: the brand mark alone (it still links home), and tighter spacing, so the header
   buttons fit a 360px screen without the page scrolling sideways. */
@media (max-width: 420px) {
    [b-tgel62rqs5] .theme-label {
        display: none;
    }

    .site-nav[b-tgel62rqs5] {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .brand-group[b-tgel62rqs5] {
        gap: 0.5rem;
        min-width: 0;
    }

    .brand-text[b-tgel62rqs5] {
        display: none;
    }

    .brand-mark[b-tgel62rqs5] {
        width: 1.6rem;
        height: 1.6rem;
    }

    .actions[b-tgel62rqs5] {
        gap: 0.3rem;
    }
}

#blazor-error-ui[b-tgel62rqs5] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-tgel62rqs5] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.nav-badge[b-tgel62rqs5] {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: var(--surface);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ==========================================================================
   Menu position (Settings › Appearance): html[data-nav] is "top" (the header above), "left" or "right" (this
   sidebar, with the header slimmed to the account actions). Left and right are the sides of the screen, in
   Arabic too. Desktop: full sidebar or an icon rail (html[data-nav-rail]); below 1200px a drawer from its side.
   ========================================================================== */

.sidebar[b-tgel62rqs5] {
    display: none;
}

html[data-nav-side] .app-shell[b-tgel62rqs5] {
    display: flex;
    min-height: 100vh;
}

html[dir="rtl"][data-nav="left"] .app-shell[b-tgel62rqs5],
html:not([dir="rtl"])[data-nav="right"] .app-shell[b-tgel62rqs5] {
    flex-direction: row-reverse;
}

html[data-nav-side] .app-main[b-tgel62rqs5] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* A flex item with auto margins would shrink to its content (and wide tables would push it past the screen). */
html[data-nav-side] .page[b-tgel62rqs5] {
    width: 100%;
}

/* The sidebar already takes the side space, so the page fills the rest instead of floating in the middle. */
html[data-nav-side] .page[b-tgel62rqs5] {
    max-width: none;
    margin: 0;
    padding-inline: 24px;
}

/* The header keeps the account actions; the links and the brand live in the sidebar. */
html[data-nav-side] .links[b-tgel62rqs5] {
    display: none !important;
}

html[data-nav-side] .brand-group > .brand[b-tgel62rqs5] {
    display: none;
}

html[data-nav-side] .site-nav[b-tgel62rqs5] {
    max-width: none;
    min-height: var(--sidebar-head-h);
}

html[data-nav-side] .sidebar[b-tgel62rqs5] {
    position: sticky;
    top: 0;
    z-index: 40;
    flex: none;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
}

html[data-nav="left"] .sidebar[b-tgel62rqs5] {
    border-right: 1px solid var(--sidebar-line);
}

html[data-nav="right"] .sidebar[b-tgel62rqs5] {
    border-left: 1px solid var(--sidebar-line);
}

.sb-head[b-tgel62rqs5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: var(--sidebar-head-h);
    padding-inline: 16px 12px;
    border-bottom: 1px solid var(--sidebar-line);
}

.sidebar .brand[b-tgel62rqs5] {
    min-width: 0;
    color: var(--sidebar-strong);
}

.sidebar .brand-mark[b-tgel62rqs5] {
    width: 1.75rem;
    height: 1.75rem;
}

.sidebar .brand-text[b-tgel62rqs5] {
    font-size: 1.05rem;
}

.sb-close[b-tgel62rqs5] {
    appearance: none;
    display: none;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--sidebar-ink);
    cursor: pointer;
}

.sb-close:hover[b-tgel62rqs5] {
    background: var(--sidebar-hover);
}

.sb-nav[b-tgel62rqs5] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 10px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-line) transparent;
}

.sb-list[b-tgel62rqs5],
.sb-list ul[b-tgel62rqs5] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-section + .sb-section[b-tgel62rqs5] {
    margin-top: 8px;
}

/* Section headings fold their section (nav.js); the caret turns when folded. */
.sb-heading[b-tgel62rqs5] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 1px;
    padding: 5px 10px 3px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: start;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.sb-heading:hover[b-tgel62rqs5] {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

.sb-heading:focus-visible[b-tgel62rqs5] {
    outline: 2px solid var(--highlight);
    outline-offset: -2px;
}

.sb-heading[b-tgel62rqs5]  .sb-caret {
    flex: none;
    margin-inline-start: auto;
    opacity: 0.8;
    transition: transform var(--transition);
}

.sb-heading[aria-expanded="false"][b-tgel62rqs5]  .sb-caret {
    transform: rotate(-90deg);
}

[dir="rtl"] .sb-heading[aria-expanded="false"][b-tgel62rqs5]  .sb-caret {
    transform: rotate(90deg);
}

/* A folded section keeps only the link to the current page. Not in the icon rail, which always shows every icon. */
html:not([data-nav-rail])[data-nav-closed~="overview"] .sb-section[data-group="overview"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="academics"] .sb-section[data-group="academics"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="admissions"] .sb-section[data-group="admissions"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="students"] .sb-section[data-group="students"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="settings"] .sb-section[data-group="settings"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="staff"] .sb-section[data-group="staff"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="schedule"] .sb-section[data-group="schedule"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="attendance"] .sb-section[data-group="attendance"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="learning"] .sb-section[data-group="learning"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="exams"] .sb-section[data-group="exams"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="results"] .sb-section[data-group="results"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="fees"] .sb-section[data-group="fees"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="accounting"] .sb-section[data-group="accounting"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
html:not([data-nav-rail])[data-nav-closed~="admin"] .sb-section[data-group="admin"] > ul > li:not(:has(> .active))[b-tgel62rqs5] {
    display: none;
}

/* Below 1200px there is no rail (the drawer always shows names), so folding applies there whatever was saved. */
@media (max-width: 1199.98px) {
    html[data-nav-closed~="overview"] .sb-section[data-group="overview"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="academics"] .sb-section[data-group="academics"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="admissions"] .sb-section[data-group="admissions"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="students"] .sb-section[data-group="students"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="settings"] .sb-section[data-group="settings"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="staff"] .sb-section[data-group="staff"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="schedule"] .sb-section[data-group="schedule"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="attendance"] .sb-section[data-group="attendance"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="learning"] .sb-section[data-group="learning"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="exams"] .sb-section[data-group="exams"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="results"] .sb-section[data-group="results"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="fees"] .sb-section[data-group="fees"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="accounting"] .sb-section[data-group="accounting"] > ul > li:not(:has(> .active))[b-tgel62rqs5],
    html[data-nav-closed~="admin"] .sb-section[data-group="admin"] > ul > li:not(:has(> .active))[b-tgel62rqs5] {
        display: none;
    }
}

.sidebar[b-tgel62rqs5]  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 34px;
    margin-bottom: 1px;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    color: var(--sidebar-ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.sidebar[b-tgel62rqs5]  .nav-link .icon {
    flex: none;
    color: var(--sidebar-muted);
}

.sidebar[b-tgel62rqs5]  .nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

.sidebar[b-tgel62rqs5]  .nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-strong);
}

.sidebar[b-tgel62rqs5]  .nav-link.active .icon {
    color: var(--highlight);
}

/* Gold marker on the current page, at the outer edge of the sidebar. */
.sidebar[b-tgel62rqs5]  .nav-link.active::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: var(--highlight);
}

html[data-nav="left"] .sidebar[b-tgel62rqs5]  .nav-link.active::before {
    left: -10px;
}

html[data-nav="right"] .sidebar[b-tgel62rqs5]  .nav-link.active::before {
    right: -10px;
}

.sidebar[b-tgel62rqs5]  .nav-link:focus-visible,
.sb-collapse:focus-visible[b-tgel62rqs5],
.sb-close:focus-visible[b-tgel62rqs5] {
    outline: 2px solid var(--highlight);
    outline-offset: -2px;
    box-shadow: none;
}

/* Labels wrap rather than clip, so nothing in the menu is cut off. */
.sidebar[b-tgel62rqs5]  .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar .nav-badge[b-tgel62rqs5] {
    flex: none;
    margin-left: 0;
    margin-inline-start: auto;
    color: #fff;
}

.sb-foot[b-tgel62rqs5] {
    padding: 8px 10px;
    border-top: 1px solid var(--sidebar-line);
}

.sb-collapse[b-tgel62rqs5] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: 0.86rem;
    text-align: start;
    cursor: pointer;
}

.sb-collapse:hover[b-tgel62rqs5] {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

/* The chevrons point the way the sidebar folds: towards its own edge. */
.sb-collapse[b-tgel62rqs5]  .sb-collapse-icon {
    flex: none;
    transition: transform var(--transition);
}

html[data-nav="right"] .sb-collapse[b-tgel62rqs5]  .sb-collapse-icon {
    transform: scaleX(-1);
}

/* Icon rail (desktop): icons only, names as tooltips, headings become thin rules. */
@media (min-width: 1200px) {
    html[data-nav-side][data-nav-rail] .sidebar[b-tgel62rqs5] {
        width: var(--sidebar-rail);
    }

    html[data-nav-rail] .sb-head[b-tgel62rqs5] {
        justify-content: center;
        padding-inline: 0;
    }

    html[data-nav-rail] .sidebar[b-tgel62rqs5]  .nav-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    html[data-nav-rail] .sb-heading[b-tgel62rqs5] {
        height: 1px;
        margin: 6px 10px;
        padding: 0;
        overflow: hidden;
        background: var(--sidebar-line);
        color: transparent;
        pointer-events: none;
    }

    html[data-nav-rail] .sb-section:first-child .sb-heading[b-tgel62rqs5] {
        display: none;
    }

    html[data-nav-rail] .sb-nav[b-tgel62rqs5] {
        padding-inline: 8px;
    }

    html[data-nav-rail] .sidebar[b-tgel62rqs5]  .nav-link,
    html[data-nav-rail] .sb-collapse[b-tgel62rqs5] {
        justify-content: center;
        padding-inline: 0;
    }

    html[data-nav="left"][data-nav-rail] .sidebar[b-tgel62rqs5]  .nav-link.active::before {
        left: -8px;
    }

    html[data-nav="right"][data-nav-rail] .sidebar[b-tgel62rqs5]  .nav-link.active::before {
        right: -8px;
    }

    /* The count sits on the corner of the icon. */
    html[data-nav-rail] .sidebar .nav-badge[b-tgel62rqs5] {
        position: absolute;
        top: 1px;
        inset-inline-end: 4px;
        min-width: 16px;
        margin: 0;
        padding: 0 4px;
        font-size: 10px;
        line-height: 16px;
        box-shadow: 0 0 0 2px var(--sidebar-bg);
    }

    html[data-nav="left"][data-nav-rail] .sb-collapse[b-tgel62rqs5]  .sb-collapse-icon {
        transform: rotate(180deg);
    }

    html[data-nav="right"][data-nav-rail] .sb-collapse[b-tgel62rqs5]  .sb-collapse-icon {
        transform: none;
    }
}

/* Tablets and phones: the sidebar is a drawer from its side; the header gets the brand back and (tablets) the menu
   button opens it. On phones More in the bottom bar opens it. */
@media (max-width: 1199.98px) {
    html[data-nav-side] .sidebar[b-tgel62rqs5] {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 60;
        width: min(300px, 86vw);
        height: 100%;
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        transition: transform 180ms ease, visibility 0s linear 180ms;
    }

    html[data-nav="left"] .sidebar[b-tgel62rqs5] {
        left: 0;
        transform: translateX(-100%);
    }

    html[data-nav="right"] .sidebar[b-tgel62rqs5] {
        right: 0;
        transform: translateX(100%);
    }

    html[data-nav-side] .sidebar[data-open="true"][b-tgel62rqs5] {
        transform: none;
        visibility: visible;
        transition: transform 180ms ease;
    }

    .sb-close[b-tgel62rqs5] {
        display: grid;
    }

    /* The rail is a desktop choice; the drawer always shows names. */
    .sb-foot[b-tgel62rqs5] {
        display: none;
    }

    html[data-nav-side] .brand-group > .brand[b-tgel62rqs5] {
        display: inline-flex;
    }

    html[data-nav-side] .nav-scrim[b-tgel62rqs5] {
        z-index: 55;
        background: var(--sidebar-scrim);
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-nav-side] .sidebar[b-tgel62rqs5],
    html[data-nav-side] .sidebar[data-open="true"][b-tgel62rqs5] {
        transition: none;
    }
}

/* Small phones hide the brand name in the header; the drawer has room for it. */
@media (max-width: 420px) {
    .sidebar .brand-text[b-tgel62rqs5] {
        display: inline;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-15rke8kz3l],
.components-reconnect-repeated-attempt-visible[b-15rke8kz3l],
.components-reconnect-failed-visible[b-15rke8kz3l],
.components-pause-visible[b-15rke8kz3l],
.components-resume-failed-visible[b-15rke8kz3l],
.components-rejoining-animation[b-15rke8kz3l] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-retrying[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-failed[b-15rke8kz3l],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-15rke8kz3l] {
    display: block;
}


#components-reconnect-modal[b-15rke8kz3l] {
    background-color: var(--surface);
    color: var(--text);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-15rke8kz3l 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-15rke8kz3l 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-15rke8kz3l 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-15rke8kz3l]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-15rke8kz3l 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-15rke8kz3l {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-15rke8kz3l {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-15rke8kz3l {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-15rke8kz3l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-15rke8kz3l] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-15rke8kz3l] {
    border: 0;
    background-color: var(--primary);
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-15rke8kz3l] {
        background-color: var(--primary-2);
    }

    #components-reconnect-modal button:active[b-15rke8kz3l] {
        background-color: var(--primary);
    }

.components-rejoining-animation[b-15rke8kz3l] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-15rke8kz3l] {
        position: absolute;
        border: 3px solid var(--primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-15rke8kz3l 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-15rke8kz3l] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-15rke8kz3l {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/AppearanceSettings.razor.rz.scp.css */
/* Menu position: three cards, each with a small drawing of the layout. */
.nav-choices[b-1oekp1xo30] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.nav-choice[b-1oekp1xo30] {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-choice:hover[b-1oekp1xo30] {
    border-color: var(--primary-line);
}

.nav-choice:focus-visible[b-1oekp1xo30] {
    outline: none;
    box-shadow: var(--ring);
}

.nav-choice[aria-checked="true"][b-1oekp1xo30] {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

/* The drawing: a navy menu strip and a page with a few lines. Previews stay physical (left is left). */
.nav-preview[b-1oekp1xo30] {
    direction: ltr;
    display: flex;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.nav-preview-top[b-1oekp1xo30] {
    flex-direction: column;
}

.nav-preview-right[b-1oekp1xo30] {
    flex-direction: row-reverse;
}

.np-bar[b-1oekp1xo30] {
    flex: none;
    width: 28%;
    background: var(--sidebar-bg);
    background-image: linear-gradient(var(--highlight), var(--highlight));
    background-repeat: no-repeat;
    background-size: 3px 10px;
    background-position: 0 22px;
}

.nav-preview-right .np-bar[b-1oekp1xo30] {
    background-position: 100% 22px;
}

.nav-preview-top .np-bar[b-1oekp1xo30] {
    width: auto;
    height: 18px;
    background-size: 18px 3px;
    background-position: 22px 100%;
}

.np-body[b-1oekp1xo30] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.np-line[b-1oekp1xo30] {
    height: 6px;
    width: 70%;
    border-radius: 3px;
    background: var(--border-strong);
}

.np-short[b-1oekp1xo30] {
    width: 45%;
}

.np-block[b-1oekp1xo30] {
    flex: 1 1 auto;
    border-radius: 4px;
    background: var(--border);
}

.nav-choice-text[b-1oekp1xo30] {
    display: grid;
    gap: 2px;
}

.nav-choice-label[b-1oekp1xo30] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-choice-dot[b-1oekp1xo30] {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
}

.nav-choice[aria-checked="true"] .nav-choice-dot[b-1oekp1xo30] {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 3px var(--surface);
    background: var(--primary);
}

.nav-choice-hint[b-1oekp1xo30] {
    padding-inline-start: 24px;
    color: var(--muted);
    font-size: var(--fs-small);
}

.appearance-stack[b-1oekp1xo30] {
    display: grid;
    gap: 16px;
    max-width: 880px;
}

.tips[b-1oekp1xo30] {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-inline-start: 20px;
    color: var(--muted);
    font-size: var(--fs-small);
}
