/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-skme899au1] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-skme899au1] {
    flex: 1;
}

.sidebar[b-skme899au1] {
    background: transparent;
}

.top-row[b-skme899au1] {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row-user[b-skme899au1] {
    font-size: .85rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.top-row-user .bi[b-skme899au1] {
    font-size: 1rem;
    color: #1a3560;
}

@media (max-width: 640.98px) {
    .top-row[b-skme899au1] {
        justify-content: space-between;
    }
}

@media (min-width: 641px) {
    .page[b-skme899au1] {
        flex-direction: row;
    }

    .sidebar[b-skme899au1] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-skme899au1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-skme899au1], article[b-skme899au1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.page[b-skme899au1] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-skme899au1] {
    flex: 1;
}

#blazor-error-ui[b-skme899au1] {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-skme899au1] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.top-row[b-skme899au1] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-skme899au1]  a, .top-row[b-skme899au1]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-skme899au1]  a:hover, .top-row[b-skme899au1]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-skme899au1]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-skme899au1] {
        justify-content: space-between;
    }

    .top-row[b-skme899au1]  a, .top-row[b-skme899au1]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-skme899au1] {
        flex-direction: row;
    }

    .sidebar[b-skme899au1] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-skme899au1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-skme899au1]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-skme899au1], article[b-skme899au1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-skme899au1] {
    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-skme899au1] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════
   NavMenu – CRuMbs sidebar navigation
   Mirrors the branding panel from Login.razor
   ═══════════════════════════════════════════════════ */

/* ── Shell container ──────────────────────────────── */
.nav-shell[b-3tnkq4cuqf] {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #0f1f3d 0%, #1a3560 55%, #1b4f72 100%);
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Dot-grid texture (matches login panel) */
.nav-bg-grid[b-3tnkq4cuqf] {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* Glowing amber orb (matches login panel) */
.nav-orb[b-3tnkq4cuqf] {
    position: absolute;
    bottom: -90px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,.14) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

/* ── Brand header ─────────────────────────────────── */
.nav-header[b-3tnkq4cuqf] {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.2rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.nav-logo-link[b-3tnkq4cuqf] {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.nav-icon-wrap[b-3tnkq4cuqf] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(251,191,36,.18);
    border: 1px solid rgba(251,191,36,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fbbf24;
    flex-shrink: 0;
}

/* Reset Bootstrap Icons default margin inside icon wrap */
.nav-icon-wrap .bi[b-3tnkq4cuqf] {
    width: auto;
    height: auto;
    margin-right: 0;
    background-image: none;
}

.nav-brand-name[b-3tnkq4cuqf] {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.nav-accent[b-3tnkq4cuqf] {
    color: #fbbf24;
}

/* ── Mobile hamburger ─────────────────────────────── */
.nav-toggler[b-3tnkq4cuqf] {
    display: none;
}

.nav-hamburger[b-3tnkq4cuqf] {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px 2px;
}

.nav-hamburger span[b-3tnkq4cuqf] {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,.65);
    border-radius: 2px;
    transition: background .15s;
}

.nav-hamburger:hover span[b-3tnkq4cuqf] {
    background: #fff;
}

/* ── Scrollable nav body ──────────────────────────── */
.nav-scrollable[b-3tnkq4cuqf] {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.nav-scrollable[b-3tnkq4cuqf]::-webkit-scrollbar { width: 3px; }
.nav-scrollable[b-3tnkq4cuqf]::-webkit-scrollbar-track { background: transparent; }
.nav-scrollable[b-3tnkq4cuqf]::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.12);
    border-radius: 2px;
}

/* ── Nav items container ──────────────────────────── */
.nav-items[b-3tnkq4cuqf] {
    flex: 1;
    padding: .5rem 0 .25rem;
}

/* ── Section labels ───────────────────────────────── */
.nav-section-label[b-3tnkq4cuqf] {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(251,191,36,.55);
    padding: 1rem 1.4rem .3rem;
    margin: 0;
}

/* ── Nav link items (via ::deep for NavLink child) ── */
.nav-items[b-3tnkq4cuqf]  .nav-link-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .7rem;
    margin: .1rem .65rem;
    border-radius: 9px;
    text-decoration: none;
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}

.nav-items[b-3tnkq4cuqf]  .nav-link-item:hover {
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.07);
}

.nav-items[b-3tnkq4cuqf]  .nav-link-item.active {
    color: #fff;
    background: rgba(251,191,36,.1);
    border-left-color: #fbbf24;
}

/* Icon tile */
.nav-icon-tile[b-3tnkq4cuqf] {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

/* Reset .bi inside tiles */
.nav-icon-tile .bi[b-3tnkq4cuqf] {
    width: auto;
    height: auto;
    margin-right: 0;
    background-image: none;
    top: 0;
}

.nav-items[b-3tnkq4cuqf]  .nav-link-item:hover .nav-icon-tile {
    background: rgba(255,255,255,.11);
    color: rgba(255,255,255,.9);
}

.nav-items[b-3tnkq4cuqf]  .nav-link-item.active .nav-icon-tile {
    background: rgba(251,191,36,.2);
    color: #fbbf24;
}

/* ── Sub-items (indented children under a parent section) ── */
.nav-items[b-3tnkq4cuqf]  .nav-link-sub {
    margin-left: 1.4rem;
    padding-left: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}

.nav-items[b-3tnkq4cuqf]  .nav-link-sub .nav-icon-tile {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: .72rem;
}

.nav-items[b-3tnkq4cuqf]  .nav-link-sub:hover {
    color: rgba(255,255,255,.85);
}

.nav-items[b-3tnkq4cuqf]  .nav-link-sub.active {
    color: #fff;
    background: rgba(251,191,36,.08);
    border-left-color: rgba(251,191,36,.5);
}

.nav-items[b-3tnkq4cuqf]  .nav-link-sub.active .nav-icon-tile {
    background: rgba(251,191,36,.15);
    color: #fbbf24;
}

/* ── User card ────────────────────────────────────── */
.nav-user[b-3tnkq4cuqf] {
    margin: .5rem .65rem 0;
    padding: .8rem .9rem;
    border-radius: 11px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nav-user-avatar[b-3tnkq4cuqf] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(251,191,36,.18);
    border: 1.5px solid rgba(251,191,36,.38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.nav-user-avatar .bi[b-3tnkq4cuqf] {
    width: auto;
    height: auto;
    margin-right: 0;
    background-image: none;
    top: 0;
}

.nav-user-info[b-3tnkq4cuqf] {
    flex: 1;
    min-width: 0;
}

.nav-user-name[b-3tnkq4cuqf] {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-role[b-3tnkq4cuqf] {
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.4);
}

.nav-user-actions[b-3tnkq4cuqf] {
    display: flex;
    gap: .25rem;
}

.nav-user-btn[b-3tnkq4cuqf] {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.5);
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.nav-user-btn .bi[b-3tnkq4cuqf] {
    width: auto;
    height: auto;
    margin-right: 0;
    background-image: none;
    top: 0;
}

.nav-user-btn:hover[b-3tnkq4cuqf] {
    background: rgba(255,255,255,.13);
    color: #fff;
}

/* ── Login prompt (unauthenticated) ───────────────── */
.nav-login-prompt[b-3tnkq4cuqf] {
    margin: .5rem .65rem 0;
}

.nav-login-btn[b-3tnkq4cuqf] {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .72rem 1rem;
    border-radius: 10px;
    background: rgba(251,191,36,.14);
    border: 1px solid rgba(251,191,36,.28);
    color: #fbbf24;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 600;
    transition: background .15s;
}

.nav-login-btn .bi[b-3tnkq4cuqf] {
    width: auto;
    height: auto;
    margin-right: 0;
    background-image: none;
    top: 0;
}

.nav-login-btn:hover[b-3tnkq4cuqf] {
    background: rgba(251,191,36,.24);
    color: #fbbf24;
}

/* ── Responsive: mobile collapse ──────────────────── */
@media (max-width: 640px) {
    .nav-hamburger[b-3tnkq4cuqf] {
        display: flex;
    }

    .nav-scrollable[b-3tnkq4cuqf] {
        display: none;
    }

    .nav-toggler:checked ~ .nav-scrollable[b-3tnkq4cuqf] {
        display: flex;
    }
}

/* ── Desktop: full-height sticky sidebar ──────────── */
@media (min-width: 641px) {
    .nav-shell[b-3tnkq4cuqf] {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .nav-scrollable[b-3tnkq4cuqf] {
        display: flex;
    }
}
