/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-obxr09thhw] {
    position: relative;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: var(--body-bg);
    color: var(--text-primary);
}

/*
   NavMenu owns the whole shell (sidebar, rail collapse, mobile top bar, drawer,
   scrim) and renders its state classes on its own root elements. This wrapper is
   therefore neutralised with display: contents so the fixed-position elements
   inside NavMenu are positioned against the viewport instead of a transformed /
   sized ancestor. The effective sidebar width is published on .page as
   --current-sidebar-w by NavMenu's global style block (via :has()):
     desktop expanded  -> var(--sidebar-w)   (268px)
     desktop rail      -> var(--sidebar-w-rail) (76px)
     mobile/tablet     -> 0px (top bar + drawer instead)
*/
.nav-container[b-obxr09thhw] {
    display: contents;
}

main[b-obxr09thhw] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    position: relative;
    margin-left: var(--current-sidebar-w, 0px);
    transition: margin-left var(--dur-med) var(--ease);
}

.content[b-obxr09thhw] {
    flex: 1;
    padding: 0rem;
    overflow-y: auto;
    position: relative;
    background-color: var(--body-bg);
    transition: padding var(--dur-med) var(--ease);
}

/* Desktop (≥1024px): clear the fixed top bar that NavMenu renders over the
   content area (mirrors NavMenu's mobile clearance for its fixed mobile bar). */
@media (min-width: 1024px) {
    .content[b-obxr09thhw] {
        padding-top: var(--topbar-h);
    }
}

    .content[b-obxr09thhw]::-webkit-scrollbar {
        width: 8px;
    }

    .content[b-obxr09thhw]::-webkit-scrollbar-track {
        background: transparent;
    }

    .content[b-obxr09thhw]::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb);
        border-radius: 4px;
    }

        .content[b-obxr09thhw]::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover);
        }

/* Blazor Error UI */
#blazor-error-ui[b-obxr09thhw] {
    background-color: var(--content-bg);
    color: var(--text-primary);
    bottom: 0;
    box-shadow: 0 -2px 8px var(--shadow-color);
    display: none;
    left: 0;
    padding: 1rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid var(--primary-color);
}

.theme-dark #blazor-error-ui[b-obxr09thhw] {
    background-color: var(--sidebar-bg);
}

#blazor-error-ui .dismiss[b-obxr09thhw] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

    #blazor-error-ui .dismiss:hover[b-obxr09thhw] {
        background-color: var(--nav-hover);
        color: var(--primary-color);
    }
