/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-oypign6xvz] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main[b-oypign6xvz] {
    flex: 1;
}

.sidebar[b-oypign6xvz] {
    background-color: #0d1117;
    border-right: 1px solid #1c232c;
}

.top-row[b-oypign6xvz] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-oypign6xvz]  a, .top-row .btn-link[b-oypign6xvz] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-oypign6xvz] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-oypign6xvz] {
        display: none;
    }

    .top-row.auth[b-oypign6xvz] {
        justify-content: space-between;
    }

    .top-row a[b-oypign6xvz], .top-row .btn-link[b-oypign6xvz] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-oypign6xvz] {
        flex-direction: row;
    }

    .sidebar[b-oypign6xvz] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        /* Column layout so the brand row stays put and the nav list (below) scrolls on its own
           when the menu is taller than the viewport; the sidebar itself never scrolls. */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .top-row[b-oypign6xvz] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .main > *[b-oypign6xvz] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-64qwkay8y9] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-64qwkay8y9] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand[b-64qwkay8y9] {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Menu items render inside the child NavItem component, so style them via ::deep
   from the scoped ul.nav ancestor. */
.nav[b-64qwkay8y9]  .oi {
    width: 1.5rem;
    font-size: 1rem;
    text-align: center;
    margin-right: 0.4rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-section[b-64qwkay8y9] {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 0.9rem 1.5rem 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0.4rem;
}

    .nav-section:first-child[b-64qwkay8y9] {
        border-top: 0;
        margin-top: 0;
    }

.nav[b-64qwkay8y9]  .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav[b-64qwkay8y9]  .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav[b-64qwkay8y9]  .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav[b-64qwkay8y9]  .nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav[b-64qwkay8y9]  .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-64qwkay8y9] {
        display: none;
    }

    /* Keep the brand row pinned at the top of the flex-column sidebar. */
    .top-row[b-64qwkay8y9] {
        flex: 0 0 auto;
    }

    .collapse[b-64qwkay8y9] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Fill the remaining sidebar height and scroll internally when the menu outgrows the
           viewport. min-height:0 lets this flex item shrink below its content so overflow-y can
           actually scroll; overscroll-behavior stops the scroll from chaining to the page. */
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        padding-bottom: 0.5rem;

        /* Firefox */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    }

    /* WebKit/Chromium: a slim, rounded, inset thumb that fades in and brightens to the brand
       accent on hover. The track stays transparent so it blends into the dark sidebar. */
    .collapse[b-64qwkay8y9]::-webkit-scrollbar {
        width: 10px;
    }

    .collapse[b-64qwkay8y9]::-webkit-scrollbar-track {
        background: transparent;
    }

    .collapse[b-64qwkay8y9]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.16);
        border-radius: 8px;
        border: 2px solid transparent;   /* inset via a transparent border + padding-box clip */
        background-clip: padding-box;
        transition: background-color 0.15s ease;
    }

    .collapse:hover[b-64qwkay8y9]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.28);
        background-clip: padding-box;
    }

    .collapse[b-64qwkay8y9]::-webkit-scrollbar-thumb:hover {
        background-color: rgba(var(--csb-accent-rgb), 0.85);
        background-clip: padding-box;
    }
}
