/* /Components/Layout/Breadcrumbs.razor.rz.scp.css */
.app-breadcrumbs[b-7f8wcr13qy] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #8a7460;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}

.app-breadcrumb-home[b-7f8wcr13qy] {
    color: #8a5a2b;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.app-breadcrumb-sep[b-7f8wcr13qy] { color: #c9b8a4; }

.app-breadcrumb-link[b-7f8wcr13qy] {
    color: #8a7460;
    text-decoration: none;
    white-space: nowrap;
}

.app-breadcrumb-link:hover[b-7f8wcr13qy] { color: #8a5a2b; text-decoration: underline; }

.app-breadcrumb-current[b-7f8wcr13qy] {
    color: #5a4030;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-7g4a33h8in] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-7g4a33h8in] {
    flex: 1;
    min-width: 0;            /* let main shrink so wide grids scroll internally instead of overflowing */
    min-height: 0;           /* and let main's column children be height-constrained (#74) */
    display: flex;
    flex-direction: column;
}

.sidebar[b-7g4a33h8in] {
    background-image: linear-gradient(180deg, var(--zg-sidebar-top, #20130a) 0%, var(--zg-sidebar-mid, #3a2316) 45%, var(--zg-sidebar-top, #20130a) 100%);   /* ADR-0109 slots */
    border-right: 1px solid rgba(217, 173, 109, 0.16);
}

/* Fixed top bar (ADR-0013) — top of the content column; breadcrumbs left, account right. */
.app-topbar[b-7g4a33h8in] {
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--app-topbar-height, 44px);
    flex-shrink: 0;          /* fixed-height bar; never compress when content is tall (#74) */
    padding: 0 1.5rem;
    /* Solid bg, NO backdrop-filter: blur made .app-topbar the containing block for position:fixed children,
       trapping top-bar overlays to the 44px bar. Content doesn't scroll under it, so the frost was never needed. */
    background: var(--zg-topbar-bg, #fbf7f2);   /* ADR-0109 slots */
    border-bottom: 1px solid rgba(217, 173, 109, 0.28);
}

/* flex:1 + overflow:hidden so the left group truncates instead of overflowing onto the right cluster */
.app-topbar-left[b-7g4a33h8in] { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 0.85rem; }

.app-topbar-company-badge[b-7g4a33h8in] {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a5a2b;
    background: rgba(138, 90, 43, 0.10);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.app-topbar-right[b-7g4a33h8in] { display: flex; align-items: center; gap: 0.85rem; flex: 0 0 auto; }

.app-topbar-user[b-7g4a33h8in] {
    font-size: 0.82rem;
    color: #5a4030;
    text-decoration: none;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-user:hover[b-7g4a33h8in] { text-decoration: underline; }
.app-topbar-logout-form[b-7g4a33h8in] { margin: 0; }

.app-topbar-logout[b-7g4a33h8in] {
    background: none;
    border: 1px solid rgba(138, 90, 43, 0.35);
    color: #8a5a2b;
    font-size: 0.78rem;
    padding: 3px 11px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.app-topbar-logout:hover[b-7g4a33h8in] { background: rgba(138, 90, 43, 0.08); }

.top-row[b-7g4a33h8in] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-7g4a33h8in]  a, .top-row[b-7g4a33h8in]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-7g4a33h8in]  a:hover, .top-row[b-7g4a33h8in]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-7g4a33h8in]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-7g4a33h8in] {
        justify-content: space-between;
    }

    .top-row[b-7g4a33h8in]  a, .top-row[b-7g4a33h8in]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-7g4a33h8in] {
        flex-direction: row;
        height: 100vh;        /* cap the app shell at the viewport so content scrolls INSIDE, never the page (#74) */
        overflow: hidden;
    }

    .sidebar[b-7g4a33h8in] {
        width: 300px;   /* BL-103: wider rail, big icons + words */
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.18s ease;
    }

    .page.compact .sidebar[b-7g4a33h8in] {
        width: 64px;
        z-index: 20;   /* keep hover-flyout labels above the fixed grid-shell pages */
    }

    .top-row[b-7g4a33h8in] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-7g4a33h8in]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-7g4a33h8in], article[b-7g4a33h8in] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* Compact-mode reaches into NavMenu via ::deep so we don't have to
       coordinate state across two components. */
    .page.compact .sidebar[b-7g4a33h8in]  .nav-label,
    .page.compact .sidebar[b-7g4a33h8in]  .nav-section,
    .page.compact .sidebar[b-7g4a33h8in]  .brand-full {
        display: none;
    }

    .page:not(.compact) .sidebar[b-7g4a33h8in]  .brand-compact {
        display: none;
    }

    .page.compact .sidebar[b-7g4a33h8in]  .nav-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page.compact .sidebar[b-7g4a33h8in]  .nav-link {
        justify-content: center;
        padding: 0;
    }

    .page.compact .sidebar[b-7g4a33h8in]  .bi {
        margin-right: 0;
    }

    /* Collapsed rail: the per-section Dashboard links (.nav-dash) get a warm tinted tile + ring
       so they read as section anchors, clearly distinct from the plain feature icons. The active
       dashboard keeps its gold gradient. Compact-only — expanded shows section headers + labels. */
    .page.compact .sidebar[b-7g4a33h8in]  .nav-link.nav-dash:not(.active) {
        background: rgba(217, 173, 109, 0.15);
        box-shadow: inset 0 0 0 1px rgba(217, 173, 109, 0.32);
    }

    .page.compact .sidebar[b-7g4a33h8in]  .nav-link.nav-dash:not(.active):hover {
        background: rgba(217, 173, 109, 0.26);
    }

    /* Compact rail: on hover, float a flyout chip just right of the 64px rail so the
       icon-only rail isn't cryptic. The chip is a ::after pseudo-element whose text is
       the link's full aria-label (e.g. "Finance Dashboard"), NOT the in-rail .nav-label
       (which is just "Dashboard" and stays display:none in compact mode). The rail is
       set overflow:visible so the chip can escape the 64px width. */
    .page.compact .sidebar[b-7g4a33h8in]  .nav-scrollable {
        overflow: visible;
    }

    .page.compact .sidebar[b-7g4a33h8in]  .nav-link {
        position: relative;
    }

    .page.compact .sidebar[b-7g4a33h8in]  .nav-link:hover::after {
        content: attr(aria-label);
        position: absolute;
        left: calc(100% + 0.45rem);
        top: 50%;
        transform: translateY(-50%);
        background: #2a1a10;
        color: #f5e9d5;
        padding: 0.3rem 0.65rem;
        border-radius: 7px;
        white-space: nowrap;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.2;
        border: 1px solid rgba(217, 173, 109, 0.35);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        z-index: 1300;
        pointer-events: none;
    }
}

/* Chrome-free 3D viewer (/viewer, owner request): hide the top bar and let the viewer-shell fill the
   content area. The nav is collapsed to the 64px rail via the existing .page.compact rules. */
.page.viewer-mode .app-topbar[b-7g4a33h8in] { display: none; }
.page.viewer-mode .content[b-7g4a33h8in] { padding: 0 !important; }

/* ADR-0113 (#56): kiosk shell — hide the ERP topbar; the skinny KioskNavRail replaces NavMenu in the sidebar. */
.page.kiosk-mode .app-topbar[b-7g4a33h8in] { display: none; }

#blazor-error-ui[b-7g4a33h8in] {
    color-scheme: light only;
    background: #2A1A10;
    color: #fdecec;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.85rem 3rem 0.85rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    max-height: 40vh;
    overflow-y: auto;
    border-top: 2px solid #d9ad6d;
}

    #blazor-error-ui strong[b-7g4a33h8in] {
        color: #d9ad6d;
        margin-right: 0.5rem;
    }

    #blazor-error-ui #blazor-error-message[b-7g4a33h8in] {
        white-space: pre-wrap;
        word-break: break-word;
        color: #f5f0e6;
    }

    #blazor-error-ui .reload[b-7g4a33h8in] {
        color: #d9ad6d;
        margin-left: 0.75rem;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss[b-7g4a33h8in] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: #d9ad6d;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-k2dnu68smy] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-k2dnu68smy] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-k2dnu68smy] {
    min-height: 4.25rem;
    background-color: rgba(0,0,0,0.28);
    border-bottom: 1px solid rgba(217, 173, 109, 0.18);
    display: flex;
    align-items: center;
}

.navbar-brand[b-k2dnu68smy] {
    color: #d9ad6d !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo block — wordmark + thin tracked caption (Aedium-style). Full width so the
   company badge in .brand-line can right-justify across from the wordmark. */
.brand-full[b-k2dnu68smy] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.1;
    width: 100%;
}

/* Top brand line: wordmark left, Land/Operator badge right-justified across from it. */
.brand-line[b-k2dnu68smy] {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.brand-text[b-k2dnu68smy] {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #e5cca9;
}

.brand-company[b-k2dnu68smy] {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(229, 204, 169, 0.92);
    white-space: nowrap;
}

.brand-tag[b-k2dnu68smy] {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(217, 173, 109, 0.62);
    white-space: nowrap;
}

.brand-mark-compact[b-k2dnu68smy] {
    height: 2.8rem;
    width: auto;
    display: block;
}

.bi[b-k2dnu68smy] {
    display: inline-block;
    position: relative;
    width: 1.6rem;    /* BL-103: big icons */
    height: 1.6rem;
    margin-right: 0.8rem;
    top: -1px;
    background-size: cover;
    flex: 0 0 1.6rem;
}

.bi-house-door-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

/* Distinct icons so the compact (icon-only) sidebar is readable. */
.bi-images-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M4.502 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3'/%3E%3Cpath d='M14.002 13a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2V5A2 2 0 0 1 2 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2 2 2 0 0 1 2 2v6a2 2 0 0 1-2 2zM14 2H4a1 1 0 0 0-1 1h9.002a2 2 0 0 1 2 2v7A1 1 0 0 0 15 11V3a1 1 0 0 0-1-1M2.002 4a1 1 0 0 0-1 1v8l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094l1.777 1.947V5a1 1 0 0 0-1-1z'/%3E%3C/svg%3E");
}

.bi-tools-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1.5 1.5 0 0 0 .363 1.555l4.625 4.626a1.5 1.5 0 0 0 2.121 0l1.415-1.414a1.5 1.5 0 0 0 0-2.122l-4.626-4.625a1.5 1.5 0 0 0-1.555-.364l-.914.305-1.585-1.585.286-.286A1.5 1.5 0 0 0 9.678 4.31L7.78 2.413l1.452-1.452L8.474.203 7.022 1.654zM2.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3'/%3E%3C/svg%3E");
}

.bi-folder-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 4a3 3 0 0 1-2.12-.879l-.83-.828A1 1 0 0 0 6.173 2H2.5a1 1 0 0 0-1 .981L1.546 4zm-2.95-1.707L7.708 3.293A2 2 0 0 0 9.122 4H14.5a1.5 1.5 0 0 1 1.484 1.706l-1 7A1.5 1.5 0 0 1 13.5 14h-12A1.5 1.5 0 0 1 .015 12.706L1.236 3.706A1.5 1.5 0 0 1 1.5 1h4.672a2 2 0 0 1 1.415.586z'/%3E%3C/svg%3E");
}

.bi-box-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5l2.404.961L10.404 2zm3.564 1.426L5.596 5 8 5.961 14.154 3.5zm3.25 1.7-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.687.706-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.706 2.687 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.687-.706 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.706-2.687-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.858 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

.bi-stack-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z'/%3E%3Cpath d='m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z'/%3E%3C/svg%3E");
}

.bi-cash-stack-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1H1zm7 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3Cpath d='M0 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5zm3 0a2 2 0 0 1-2 2v4a2 2 0 0 1 2 2h10a2 2 0 0 1 2-2V7a2 2 0 0 1-2-2H3z'/%3E%3C/svg%3E");
}

.bi-wallet2-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M12.136.326A1.5 1.5 0 0 1 14 1.78V3h.5A1.5 1.5 0 0 1 16 4.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 13.5v-9a1.5 1.5 0 0 1 1.432-1.499zM5.562 3H13V1.78a.5.5 0 0 0-.621-.484zM1.5 4a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5z'/%3E%3C/svg%3E");
}

.bi-truck-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 3.5A1.5 1.5 0 0 1 1.5 2h9A1.5 1.5 0 0 1 12 3.5V5h1.02a1.5 1.5 0 0 1 1.17.563l1.481 1.85a1.5 1.5 0 0 1 .329.938V10.5a1.5 1.5 0 0 1-1.5 1.5H14a2 2 0 1 1-4 0H5a2 2 0 1 1-3.998-.085A1.5 1.5 0 0 1 0 10.5zm1.294 7.456A2 2 0 0 1 4.732 11h5.536a2 2 0 0 1 .732-.732V3.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5zM12 10a2 2 0 0 1 1.732 1h.768a.5.5 0 0 0 .5-.5V8.35a.5.5 0 0 0-.11-.312l-1.48-1.85A.5.5 0 0 0 13.02 6H12zm-9 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2m9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
}

.bi-cup-hot-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M.5 6a.5.5 0 0 0-.488.608l1.652 7.434A2.5 2.5 0 0 0 4.104 16h5.792a2.5 2.5 0 0 0 2.44-1.958l.131-.59a3 3 0 0 0 1.3-5.854l.221-.99A.5.5 0 0 0 13.5 6zM13 12.5a2 2 0 0 1-.316-.025l.867-3.898A2 2 0 0 1 13 12.5'/%3E%3C/svg%3E");
}

.bi-key-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2M2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2'/%3E%3C/svg%3E");
}

.bi-upload-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z'/%3E%3C/svg%3E");
}

.bi-people-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3Cpath d='M5.216 14A2.24 2.24 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.3 6.3 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E");
}

.bi-cash-coin-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8m5-4a5 5 0 1 1-10 0 5 5 0 0 1 10 0'/%3E%3Cpath d='M9.438 11.944c.047.596.518 1.06 1.363 1.116v.44h.375v-.443c.875-.061 1.386-.529 1.386-1.207 0-.618-.39-.936-1.09-1.1l-.296-.07v-1.2c.376.043.614.248.671.532h.658c-.047-.575-.54-1.024-1.329-1.073V8.5h-.375v.45c-.747.073-1.255.522-1.255 1.158 0 .562.378.92 1.007 1.066l.248.061v1.272c-.384-.058-.639-.27-.696-.563h-.668zm1.36-1.354c-.369-.085-.569-.26-.569-.522 0-.294.216-.514.572-.578v1.1zm.432.746c.449.104.655.272.655.569 0 .339-.257.571-.709.614v-1.195z'/%3E%3Cpath d='M1 0a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4.083q.088-.517.258-1H3a2 2 0 0 0-2-2V3a2 2 0 0 0 2-2h10a2 2 0 0 0 2 2v3.528c.38.34.717.728 1 1.154V1a1 1 0 0 0-1-1z'/%3E%3Cpath d='M9.998 5.083 10 5a2 2 0 1 0-3.132 1.65 6 6 0 0 1 3.13-1.567'/%3E%3C/svg%3E");
}

.bi-credit-card-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H0zm0 3v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7zm3 2h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1'/%3E%3C/svg%3E");
}

.bi-grid-1x2-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 1a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1Zm9 0a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1V1Zm0 9a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-5Z'/%3E%3C/svg%3E");
}

.bi-calendar-week-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z'/%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
}

.bi-table-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z'/%3E%3C/svg%3E");
}

/* Per-section dashboard icons (ADR-0013): each section's Dashboard gets a distinct,
   section-representative glyph instead of the repeated grid icon — building = Project,
   rising graph = Finance, speedometer = Operations, shield-lock = Admin. */
.bi-building-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3v-3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V16h3a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1zm1 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-6 3A.5.5 0 0 1 4.5 5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-6 3A.5.5 0 0 1 4.5 8h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-graph-up-arrow-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M0 0h1v15h15v1H0V0Zm10 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V4.9l-3.613 4.417a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61L13.445 4H10.5a.5.5 0 0 1-.5-.5Z'/%3E%3C/svg%3E");
}

.bi-speedometer2-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4M3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707M2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10m9.5 0a.5.5 0 0 1 .5-.5H14a.5.5 0 0 1 0 1h-1.5a.5.5 0 0 1-.5-.5m.754-4.246a.39.39 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.39.39 0 0 0-.029-.518z'/%3E%3Cpath fill-rule='evenodd' d='M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A8 8 0 0 1 0 10m8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.533 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3'/%3E%3C/svg%3E");
}

.bi-shield-lock-fill-nav-menu[b-k2dnu68smy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.8 11.8 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7 7 0 0 0 1.048-.625 11.8 11.8 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.54 1.54 0 0 0-1.044-1.263 63 63 0 0 0-2.887-.87C9.843.266 8.69 0 8 0m0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5'/%3E%3C/svg%3E");
}

.nav-item[b-k2dnu68smy] {
    font-size: 1.02rem;   /* BL-103: bigger words */
    padding-bottom: 0.15rem;
}

    .nav-item:first-of-type[b-k2dnu68smy] {
        padding-top: 0.25rem;
    }

    .nav-item:last-of-type[b-k2dnu68smy] {
        padding-bottom: 1rem;
    }

    .nav-item[b-k2dnu68smy]  .nav-link {
        color: rgba(245, 233, 213, 0.85);
        background: none;
        border: none;
        border-radius: 7px;
        height: 2.9rem;   /* BL-103: taller rows for the bigger icon + label */
        display: flex;
        align-items: center;
        line-height: 2.9rem;
        width: 100%;
        font-family: 'Inter', system-ui, sans-serif;
        font-weight: 500;
        font-size: 1.02rem;
        letter-spacing: 0.005em;
        padding-left: 0.85rem;
        transition: background-color .12s ease, color .12s ease;
    }

.nav-item[b-k2dnu68smy]  a.active {
    background: linear-gradient(90deg, #e0b878 0%, #d9ad6d 100%);
    color: #2a1a10;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(217, 173, 109, 0.35);
}

.nav-item[b-k2dnu68smy]  a.active .bi {
    /* Medium brown (~#5A4030) on the tan active background. */
    filter: brightness(0) saturate(100%) invert(22%) sepia(18%) saturate(900%) hue-rotate(346deg) brightness(92%) contrast(88%);
}

/* Compact-mode sidebar: center Z153 wordmark under the 64px rail. */
.page.compact .top-row[b-k2dnu68smy],
.page.compact .top-row .container-fluid[b-k2dnu68smy] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
}

.page.compact .navbar-brand.brand-compact[b-k2dnu68smy] {
    margin: 0 auto;
    text-align: center;
}

.nav-item[b-k2dnu68smy]  .nav-link:hover {
    background-color: rgba(217, 173, 109, 0.14);
    color: #ffffff;
}

/* Grouped-section labels (Project / Operations / Admin). */
.nav-section[b-k2dnu68smy] {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(217, 173, 109, 0.5);
    padding: 0 1.25rem;
    margin: 0.9rem 0 0.3rem;
}

.nav-section:first-child[b-k2dnu68smy] {
    margin-top: 0.5rem;
}

/* Thin warm scrollbar for the rail. */
.nav-scrollable[b-k2dnu68smy]::-webkit-scrollbar { width: 7px; }
.nav-scrollable[b-k2dnu68smy]::-webkit-scrollbar-track { background: transparent; }
.nav-scrollable[b-k2dnu68smy]::-webkit-scrollbar-thumb { background: rgba(217, 173, 109, 0.22); border-radius: 4px; }
.nav-scrollable[b-k2dnu68smy]::-webkit-scrollbar-thumb:hover { background: rgba(217, 173, 109, 0.38); }

.nav-scrollable[b-k2dnu68smy] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-k2dnu68smy] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-k2dnu68smy] {
        display: none;
    }

    .nav-scrollable[b-k2dnu68smy] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus. Subtract the REAL brand-block height (4.25rem min-height,
           NavMenu.razor.css .top-row) — the old 3.5rem left the scroller ~0.75rem too tall, so it always
           over-scrolled and exposed a ~10px strip of page background at the bottom. dvh keeps it correct on
           mobile where the collapsing address bar makes vh overshoot. */
        height: calc(100dvh - 4.25rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9caojj03a1],
.components-reconnect-repeated-attempt-visible[b-9caojj03a1],
.components-reconnect-failed-visible[b-9caojj03a1],
.components-pause-visible[b-9caojj03a1],
.components-resume-failed-visible[b-9caojj03a1],
.components-rejoining-animation[b-9caojj03a1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-retrying[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-failed[b-9caojj03a1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9caojj03a1] {
    display: block;
}


#components-reconnect-modal[b-9caojj03a1] {
    background-color: white;
    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-9caojj03a1 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-9caojj03a1 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-9caojj03a1 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-9caojj03a1]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-9caojj03a1 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-9caojj03a1 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-9caojj03a1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-9caojj03a1 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-9caojj03a1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-9caojj03a1] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-9caojj03a1] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-9caojj03a1] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-9caojj03a1] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-9caojj03a1] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-9caojj03a1] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-9caojj03a1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-9caojj03a1] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-9caojj03a1 {
    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/Layout/UserMenu.razor.rz.scp.css */
.app-usermenu[b-exhc3vguiy] { position: relative; }

.app-usermenu > summary[b-exhc3vguiy] {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #3a2a1a;
}
.app-usermenu > summary[b-exhc3vguiy]::-webkit-details-marker { display: none; }
.app-usermenu > summary[b-exhc3vguiy]::marker { content: ""; }
.app-usermenu > summary:hover[b-exhc3vguiy] { background: rgba(138, 90, 43, .08); }

.app-usermenu-caret[b-exhc3vguiy] { font-size: 10px; color: #9a8a75; }

.app-usermenu-panel[b-exhc3vguiy] {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1400;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(60, 40, 20, .16);
    padding: 5px;
}

.app-usermenu-label[b-exhc3vguiy] {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9a8a75;
    padding: 6px 10px 2px;
}

.app-usermenu-item[b-exhc3vguiy] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: #3a2a1a;
    text-decoration: none;
    border-radius: 6px;
}
.app-usermenu-item:hover[b-exhc3vguiy] { background: rgba(138, 90, 43, .10); }
.app-usermenu-logout[b-exhc3vguiy] { color: #b02020; }
.app-usermenu-logout:hover[b-exhc3vguiy] { background: rgba(176, 32, 32, .08); }

.app-usermenu-divider[b-exhc3vguiy] { height: 1px; background: rgba(138, 90, 43, .15); margin: 5px 8px; }
/* /Components/Pages/Files.razor.rz.scp.css */
/* Files browser (backlog 316): left folder tree + right per-folder tab content.
   Child-component classes (tree rows, tabs — rendered by App* wrappers) don't carry this
   component's scope attr, so they're targeted via ::deep under the Files-owned .files-split. */

.files-split[b-2r3c4gsd84] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 0;
    overflow: hidden;
}

/* ---- Left tree pane ---- */
.files-tree-pane[b-2r3c4gsd84] {
    flex: 0 0 260px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--zg-surface);
    border: 1px solid var(--zg-border);
    border-radius: var(--zg-radius);
    overflow: hidden;
}

.files-tree-head[b-2r3c4gsd84] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--zg-border);
}

.files-tree-title[b-2r3c4gsd84] {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--zg-muted);
}

.files-tree-body[b-2r3c4gsd84] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.35rem 0.25rem;
}

/* ---- Right content pane ---- */
.files-content-pane[b-2r3c4gsd84] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-left: 0.5rem;
}

.files-trail[b-2r3c4gsd84] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.35rem 0.1rem;
    color: var(--zg-muted);
}

.files-trail-sep[b-2r3c4gsd84] { color: var(--zg-muted); opacity: 0.6; }
.files-trail-cur[b-2r3c4gsd84] { font-weight: 600; }

.files-grid-wrap[b-2r3c4gsd84] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.files-empty-pane[b-2r3c4gsd84] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--zg-muted);
    opacity: 0.8;
}

.files-tree-hint[b-2r3c4gsd84] {
    color: var(--zg-muted);
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

/* ---- Tree rows (rendered by FilesFolderTree via App* wrappers) ---- */
.files-split[b-2r3c4gsd84]  .files-tree-row {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.25rem;
    border-radius: var(--zg-radius-sm, 4px);
    white-space: nowrap;
}
.files-split[b-2r3c4gsd84]  .files-tree-row:hover { background: rgba(0, 0, 0, 0.05); }
.files-split[b-2r3c4gsd84]  .files-tree-row.is-selected { background: rgba(0, 0, 0, 0.08); }

.files-split[b-2r3c4gsd84]  .files-tree-twist {
    flex: 0 0 auto;
    padding: 0;
}
.files-split[b-2r3c4gsd84]  .files-tree-twist--leaf {
    display: inline-block;
    width: 1.5rem;
}

.files-split[b-2r3c4gsd84]  .files-tree-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.files-split[b-2r3c4gsd84]  .files-tree-fico { flex: 0 0 auto; }

/* ---- Tab strip (rendered by FilesTabStrip) ---- */
.files-split[b-2r3c4gsd84]  .files-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--zg-border);
    min-height: 2rem;
}
.files-split[b-2r3c4gsd84]  .files-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.1rem 0.15rem 0.1rem 0.5rem;
    border: 1px solid var(--zg-border);
    border-bottom: none;
    border-radius: var(--zg-radius-sm, 4px) var(--zg-radius-sm, 4px) 0 0;
    background: transparent;
    white-space: nowrap;
}
.files-split[b-2r3c4gsd84]  .files-tab.is-active {
    background: var(--zg-surface);
    border-color: var(--zg-border-strong, var(--zg-border));
}
.files-split[b-2r3c4gsd84]  .files-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0.15rem 0.1rem;
    cursor: pointer;
    color: inherit;
    font: inherit;
    max-width: 16rem;
    overflow: hidden;
}
.files-split[b-2r3c4gsd84]  .files-tab-text {
    overflow: hidden;
    text-overflow: ellipsis;
}
.files-split[b-2r3c4gsd84]  .files-tab-ico { flex: 0 0 auto; }
.files-split[b-2r3c4gsd84]  .files-tab-close { flex: 0 0 auto; opacity: 0.7; }
.files-split[b-2r3c4gsd84]  .files-tab-close:hover { opacity: 1; }
/* /Components/Pages/Finance/ChecksTab.razor.rz.scp.css */
/* The wrapper exists ONLY to carry this component's CSS scope attribute for ::deep — display:contents
   removes its box so ErpGridV2 stays a direct flex child of the section panel (else the grid's flex
   height chain breaks and .erp-grid-v2-body collapses to 0 — the "8 records but blank" bug). */
.checks-register-wrap[b-z561xvbvwo] {
    display: contents;
}

/* Numbering-gap flag (owner 2026-07-16): thick gold rule above a check that follows a gap. */
[b-z561xvbvwo] .check-gap-row td {
    border-top: 3px solid #d9ad6d !important;
}

[b-z561xvbvwo] .check-gap-note {
    color: #b8860b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: 8px;
    white-space: nowrap;
}
/* /Components/Pages/Finance/PayBillsFlyout.razor.rz.scp.css */
.pay-edit-link[b-nlsdmp52iq] {
    margin-left: 8px; padding: 1px 8px; font-size: .72rem; font-weight: 600;
    border: 1px solid #d8cdb8; border-radius: 999px; background: #fff; color: #6b5a3f; cursor: pointer;
    vertical-align: middle;
}
.pay-edit-link:hover[b-nlsdmp52iq] { background: #f3ece0; border-color: #c8b998; }
/* /Components/Pages/Food/InventoryTab.razor.rz.scp.css */
/* Inventory item cards — rendered in the ErpGrid card view (List|Cards toggle).
   The .erp-card-deck container (grid layout, auto-fill 210px columns) and the
   .erp-card-wrapper per-card shell come from app.css / ErpGrid — not repeated here.
   Stock low/out hues deliberately mirror the menu-card-zoom stk-low/stk-out palette
   so the coloring language is consistent across the Food module. */

.inv-card[b-8ab7gpg370] {
    border: 1px solid #e7ddcf;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inv-card-header[b-8ab7gpg370] {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f0e9df;
}

.inv-card-name[b-8ab7gpg370] {
    font-weight: 600;
    font-size: 13px;
    color: #4a3a26;
    line-height: 1.25;
}

.inv-card-cat[b-8ab7gpg370] {
    font-size: 11px;
    color: #8a7a63;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
}

.inv-card-body[b-8ab7gpg370] {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inv-card-row[b-8ab7gpg370] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
}

.inv-card-label[b-8ab7gpg370] {
    color: #b0a48f;
    font-size: 11px;
    white-space: nowrap;
}

.inv-card-value[b-8ab7gpg370] {
    font-weight: 600;
    color: #5b4a33;
    white-space: nowrap;
}

/* On-hand quantity — default (healthy) state */
.inv-card-qty[b-8ab7gpg370] {
    font-weight: 600;
    color: #5b4a33;
    white-space: nowrap;
}

/* Below reorder — amber (mirrors stk-low in app.css menu-card-zoom palette) */
.inv-card-qty--low[b-8ab7gpg370] {
    color: #9a6b00;
}

/* Out of stock — red (mirrors stk-out in app.css menu-card-zoom palette) */
.inv-card-qty--out[b-8ab7gpg370] {
    color: #a4503e;
    font-weight: 700;
}

.inv-card-badge[b-8ab7gpg370] {
    display: inline-block;
    margin-left: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    vertical-align: 1px;
    padding: 1px 4px;
    border-radius: 3px;
}

.inv-card-badge--low[b-8ab7gpg370] {
    background: #fbe7c6;
    color: #9a6b00;
}

.inv-card-badge--out[b-8ab7gpg370] {
    background: #f6d2cc;
    color: #a4503e;
}

/* Sparkline in card view */
.inv-card-spark[b-8ab7gpg370] { padding: 4px 8px 8px; }
.inv-card-spark-svg[b-8ab7gpg370] { width: 100%; height: auto; }

/* Grid row shading lives in GLOBAL app.css (tr.inv-row-low/out) — a scoped ::deep rule can't reach the
   MudDataGrid <tr>, which is rendered by the shared ErpGrid component (different CSS scope). */
/* /Components/Pages/Food/MenuItemRecord.razor.rz.scp.css */
/* Back link above the tabs */
.menu-record-back[b-mhngglcec5] { padding: .4rem .25rem .1rem; }

/* Per-tab identity header — big title + category (left), stock badge + price (right). On every tab. */
.menu-record-head[b-mhngglcec5] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1rem .35rem;
}
.menu-record-head-title h1[b-mhngglcec5] {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.05;
    color: #4a3a26;
}
.menu-record-head-sub[b-mhngglcec5] {
    margin-top: .2rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a7a63;
}
.menu-record-head-meta[b-mhngglcec5] { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.menu-record-head-price[b-mhngglcec5] { font-size: 1.35rem; font-weight: 700; color: #4a3a26; }

/* Overview: large image on the left (card-hover size), content on the right */
.menu-record-overview[b-mhngglcec5] {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: .25rem 1rem 1rem;
    flex-wrap: wrap;
}
.menu-record-bigimg[b-mhngglcec5] { flex: 0 0 468px; max-width: 468px; width: 100%; }
.menu-record-bigimg-img[b-mhngglcec5] {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;   /* #87: full image, no bottom crop */
    background: #fff;       /* white letterbox filler */
}
.menu-record-bigimg-ph[b-mhngglcec5] {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f6f1e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbb89a;
}
.menu-record-overview-body[b-mhngglcec5] { flex: 1 1 340px; min-width: 0; }

.menu-record-light[b-mhngglcec5] {
    font-size: .8rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 999px;
}

.menu-record-light.light-ok[b-mhngglcec5] { background: #dcfce7; color: #166534; }
.menu-record-light.light-low[b-mhngglcec5] { background: #fef3c7; color: #92400e; }
.menu-record-light.light-out[b-mhngglcec5] { background: #fee2e2; color: #991b1b; }

.menu-record-flame[b-mhngglcec5] {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: #d97706;
    font-weight: 700;
}

/* Overview / Sales blocks */
.menu-record-block[b-mhngglcec5] {
    padding: 1rem;
    border-bottom: 1px solid var(--mud-palette-divider, #eef0f2);
}

.menu-record-block-head[b-mhngglcec5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.menu-record-notes[b-mhngglcec5] {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--mud-palette-text-secondary, #64748b);
    font-size: .85rem;
}

/* Size-price board */
.menu-size-board[b-mhngglcec5] {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.menu-size-tile[b-mhngglcec5] {
    min-width: 84px;
    padding: .5rem .75rem;
    border: 1px solid var(--mud-palette-divider, #e5e7eb);
    border-radius: 10px;
    text-align: center;
}

.menu-size-tile.default[b-mhngglcec5] {
    border-color: #8a5a2b;
    background: #fdf6ee;
}

.menu-size-tile-label[b-mhngglcec5] {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mud-palette-text-secondary, #64748b);
}

.menu-size-tile-price[b-mhngglcec5] {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Sales small-multiple bars */
.menu-sales-bars[b-mhngglcec5] {
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* Grow from the baseline on first paint (no chart lib — CSS only). */
.menu-sales-bar[b-mhngglcec5] {
    fill: #13c2c2;
    transform-box: fill-box;
    transform-origin: bottom;
    animation: menu-bar-grow-b-mhngglcec5 .5s ease-out both;
}

@keyframes menu-bar-grow-b-mhngglcec5 {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.menu-sales-qty[b-mhngglcec5] {
    font-size: 11px;
    font-weight: 700;
    fill: var(--mud-palette-text-primary, #1f2937);
}

.menu-sales-label[b-mhngglcec5] {
    font-size: 11px;
    font-weight: 600;
    fill: var(--mud-palette-text-secondary, #64748b);
}

.menu-sales-rev[b-mhngglcec5] {
    font-size: 10px;
    fill: var(--mud-palette-text-secondary, #94a3b8);
}

.menu-sales-rankchip[b-mhngglcec5] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .5rem;
    border-radius: 8px;
    background: var(--mud-palette-background-grey, #f1f5f9);
    font-size: .8rem;
}
/* /Components/Pages/Food/PurchaseOrderRecord.razor.rz.scp.css */
/* Printable PO doc. White bg + padding so html2canvas/native-print captures a clean A4-ish page even
   though the surrounding record-panel already provides the on-screen white fill; centered on wide panels. */
.po-print[b-ce1wnsdofp] { max-width: 880px; margin: 0 auto; background: #fff; padding: 8px 6px; }

.po-print-head[b-ce1wnsdofp] { display: flex; justify-content: space-between; gap: 2rem; }
.po-print-from[b-ce1wnsdofp] { min-width: 0; }
.po-print-meta[b-ce1wnsdofp] { text-align: right; flex-shrink: 0; }

.po-print-company[b-ce1wnsdofp] { font-weight: 600; font-size: 1.05rem; }
.po-print-muted[b-ce1wnsdofp] { color: var(--mud-palette-text-secondary); font-size: .85rem; }
.po-print-label[b-ce1wnsdofp] { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem;
    color: var(--mud-palette-text-secondary); margin-bottom: .15rem; }
.po-print-doctitle[b-ce1wnsdofp] { font-weight: 700; letter-spacing: .06em; font-size: 1.1rem; margin-bottom: .35rem; }

/* PO meta key/value grid (right column). */
.po-print-fields[b-ce1wnsdofp] { display: grid; grid-template-columns: auto auto; gap: .1rem .75rem;
    justify-content: end; margin: 0; }
.po-print-fields dt[b-ce1wnsdofp] { color: var(--mud-palette-text-secondary); font-size: .8rem; text-align: right; }
.po-print-fields dd[b-ce1wnsdofp] { margin: 0; font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; }

.po-print-lines td[b-ce1wnsdofp], .po-print-lines th[b-ce1wnsdofp] { font-size: .85rem; }
.po-print-lines td[b-ce1wnsdofp] { font-variant-numeric: tabular-nums; }
.po-print-total td[b-ce1wnsdofp] { border-top: 2px solid var(--mud-palette-divider); }
/* /Components/Pages/Food/PurchaseOrdersTab.razor.rz.scp.css */
/* Purchase-order card — rendered by ErpGrid's card view (List|Cards toggle).
   The outer .erp-card-deck container and .erp-card-wrapper are global (app.css / ErpGrid.razor);
   everything here is scoped to this component and prefixed .po-card-* to avoid collisions. */

.po-card[b-c658ias0m3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #e7ddcf;
    border-radius: 8px;
    background: #fdfaf6;
    padding: 12px 14px 10px;
    min-height: 100px;
    box-shadow: 0 1px 3px rgba(90,60,20,.06);
    transition: box-shadow .15s, border-color .15s;
}

.po-card:hover[b-c658ias0m3] {
    box-shadow: 0 3px 10px rgba(90,60,20,.13);
    border-color: #d0c0a8;
}

/* ---- header row: PO number left, status chip right ---- */
.po-card-header[b-c658ias0m3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.po-card-number[b-c658ias0m3] {
    font-weight: 700;
    font-size: 13px;
    color: #4a3a26;
    white-space: nowrap;
}

/* Chip size tweak — MudChip already handles colour; just tighten the vertical margin. */
.po-card-chip.mud-chip[b-c658ias0m3] {
    margin: 0;
}

/* ---- supplier name ---- */
.po-card-supplier[b-c658ias0m3] {
    font-size: 13px;
    color: #5b4a33;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- footer row: total left, date right ---- */
.po-card-footer[b-c658ias0m3] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}

.po-card-total[b-c658ias0m3] {
    font-weight: 700;
    font-size: 14px;
    color: #3b2e1a;
    font-variant-numeric: tabular-nums;
}

.po-card-meta[b-c658ias0m3] {
    font-size: 11px;
    color: #9a8a72;
    white-space: nowrap;
}

/* ---- line count ---- */
.po-card-lines[b-c658ias0m3] {
    font-size: 11px;
    color: #b0a48f;
}

/* Right-align the typed value in the "Receive now" numeric field so it matches its right-aligned header. */
[b-c658ias0m3] .po-num-right input { text-align: right; }

/* BL-361 footer-bar follow-up: panel content is a column — header fixed, ONLY the lines region scrolls. */
.poe[b-c658ias0m3] { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.poe-lines[b-c658ias0m3] { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* Owner 2026-07-19: icons cluster stays put regardless of which state button a row carries. */
.po-tools[b-c658ias0m3] { display: inline-flex; gap: 2px; white-space: nowrap; }
.po-card-actions[b-c658ias0m3] { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--mud-palette-lines-default, #eee3d2); }
/* /Components/Pages/Gallery.razor.rz.scp.css */
.gallery-header[b-wek9zw1lfm] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.image-wrapper[b-wek9zw1lfm] {
    position: relative;
}

.video-badge[b-wek9zw1lfm] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-duration[b-wek9zw1lfm] {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.image-detail video[b-wek9zw1lfm] {
    max-width: 100%;
    max-height: 70vh;
    background: #000;
}

.gallery-header h1[b-wek9zw1lfm] {
    margin: 0;
    color: #2d5016;
}

.gallery-stats[b-wek9zw1lfm] {
    color: #666;
    font-size: 0.9rem;
}

.filter-bar[b-wek9zw1lfm] {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f5f5f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-group[b-wek9zw1lfm] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label[b-wek9zw1lfm] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.filter-group input[b-wek9zw1lfm],
.filter-group select[b-wek9zw1lfm] {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-clear[b-wek9zw1lfm] {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-clear:hover[b-wek9zw1lfm] {
    background: #e0e0e0;
}

.image-grid[b-wek9zw1lfm] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.image-card[b-wek9zw1lfm] {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-card:hover[b-wek9zw1lfm] {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.image-wrapper[b-wek9zw1lfm] {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eee;
}

.image-wrapper img[b-wek9zw1lfm] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info[b-wek9zw1lfm] {
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-date[b-wek9zw1lfm] {
    font-size: 0.8rem;
    color: #666;
}

.comment-count[b-wek9zw1lfm] {
    font-size: 0.75rem;
    color: #2d5016;
    font-weight: 500;
}

.loading[b-wek9zw1lfm], .empty-state[b-wek9zw1lfm] {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state h2[b-wek9zw1lfm] {
    color: #666;
}

.load-more[b-wek9zw1lfm] {
    text-align: center;
    padding: 2rem;
}

.load-more button[b-wek9zw1lfm] {
    padding: 0.6rem 2rem;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.load-more button:hover[b-wek9zw1lfm] {
    background: #3d6b20;
}

/* Image detail overlay */
.image-overlay[b-wek9zw1lfm] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: start;
    overflow-y: auto;
    padding: 2rem;
}

.image-detail[b-wek9zw1lfm] {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.image-detail > img[b-wek9zw1lfm] {
    width: 100%;
    display: block;
}

.close-btn[b-wek9zw1lfm] {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-info[b-wek9zw1lfm] {
    padding: 1rem 1.5rem;
}

.detail-info h3[b-wek9zw1lfm] {
    margin: 0 0 0.5rem;
}

.detail-info p[b-wek9zw1lfm] {
    margin: 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
}

.tags[b-wek9zw1lfm] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag[b-wek9zw1lfm] {
    background: #e8f0e0;
    color: #2d5016;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.comments-section[b-wek9zw1lfm] {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.comments-section h4[b-wek9zw1lfm] {
    margin: 0 0 0.75rem;
}

.comment[b-wek9zw1lfm] {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment strong[b-wek9zw1lfm] {
    color: #2d5016;
}

.comment-date[b-wek9zw1lfm] {
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.5rem;
}

.comment p[b-wek9zw1lfm] {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.add-comment[b-wek9zw1lfm] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-comment input[b-wek9zw1lfm],
.add-comment textarea[b-wek9zw1lfm] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.add-comment textarea[b-wek9zw1lfm] {
    min-height: 60px;
    resize: vertical;
}

.add-comment button[b-wek9zw1lfm] {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-comment button:disabled[b-wek9zw1lfm] {
    background: #ccc;
    cursor: not-allowed;
}
/* /Components/Pages/Payroll/EmployeeRecord.razor.rz.scp.css */
/* PDF-capture region (ADR-0045 R1). Force a clean light page so html2canvas raster has no MudBlazor
   dark-theme bleed; the export button sits outside this region so it isn't grabbed. */
.pdf-capture[b-rwetqz33es] {
    background: #fff;
    color: #1a1a1a;
}

/* NOTE: buttons are dropped from the PDF in pdf-export.js's html2canvas `onclone` (clone-only), NOT here —
   a permanent `.pdf-capture .mud-button-root { display:none }` rule used to hide the live on-screen edit
   buttons too. Do not re-add a display:none here. */

/* #62: Overview tab two-column — overview fields on the left, a contact + emergency-contacts
   container on the right (owner request). Stacks on narrow screens. */
.record-overview-2col[b-rwetqz33es] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
/* BL-82: both columns (and the Pay & Tax pair) are cards. */
.record-card[b-rwetqz33es] {
    background: var(--zg-surface-soft, #faf6ee);
    border: 1px solid var(--zg-border, #e8e1d3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    min-width: 0;
}
.paytax-2col[b-rwetqz33es] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .paytax-2col[b-rwetqz33es] { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .record-overview-2col[b-rwetqz33es] { grid-template-columns: 1fr; }
}

/* BL-82: per-tab identity header — big employee name on every tab (mirrors .menu-record-head). */
.emp-record-head[b-rwetqz33es] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    /* left inset measured so the title text lines up with the first card's text (BL-82). */
    padding: 1rem 1rem .35rem 21px;
}
.emp-record-head-title h1[b-rwetqz33es] {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.05;
    color: #4a3a26;
}
.emp-record-head-sub[b-rwetqz33es] {
    margin-top: .2rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a7a63;
}
/* /Components/Pages/Payroll/Employees.razor.rz.scp.css */
/* Employee card — List|Cards toggle (ErpGrid CardTemplate).
   The outer .erp-card-deck grid is defined in app.css and applied by ErpGrid automatically.
   Card width is driven by the deck's auto-fill columns (minmax 210px, 1fr). */

.emp-card[b-spsocgckof] {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2d9cf;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    padding: 18px 14px 14px;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    transition: box-shadow .14s ease, border-color .14s ease;
}

.emp-card:hover[b-spsocgckof] {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
    border-color: #c5b89e;
    text-decoration: none;
}

/* Avatar circle with initials */
.emp-card-avatar[b-spsocgckof] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0ebe3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emp-card-initials[b-spsocgckof] {
    font-size: 18px;
    font-weight: 700;
    color: #7a6549;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.emp-card-body[b-spsocgckof] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    width: 100%;
}

.emp-card-name[b-spsocgckof] {
    font-weight: 700;
    font-size: 13px;
    color: #3a2e22;
    line-height: 1.3;
}

.emp-card-basis[b-spsocgckof] {
    font-size: 11.5px;
    color: #8a7a63;
    line-height: 1.35;
}

.emp-card-status[b-spsocgckof] {
    margin-top: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 20px;
}

.emp-card-active[b-spsocgckof] {
    background: #e6f4ea;
    color: #2e7d32;
}

.emp-card-inactive[b-spsocgckof] {
    background: #fce8e6;
    color: #c62828;
}
/* /Components/Shared/Ai/AskChat.razor.rz.scp.css */
.ask-chat[b-nqt1ibkx2a] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ask-chat-turns[b-nqt1ibkx2a] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ask-chat-empty[b-nqt1ibkx2a] {
    text-align: center;
    color: var(--mud-palette-text-secondary);
    padding: 2rem 1rem;
}

.ask-bubble[b-nqt1ibkx2a] {
    max-width: 85%;
    padding: 0.55rem 0.8rem;
    border-radius: 0.8rem;
    white-space: pre-wrap;
    line-height: 1.4;
}

.ask-bubble--user[b-nqt1ibkx2a] {
    align-self: flex-end;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-bottom-right-radius: 0.2rem;
}

.ask-bubble--assistant[b-nqt1ibkx2a] {
    align-self: flex-start;
    background: var(--mud-palette-background-grey);
    border: 1px solid var(--mud-palette-lines-default);
    border-bottom-left-radius: 0.2rem;
}

.ask-status[b-nqt1ibkx2a] {
    display: flex;
    align-items: center;
    color: var(--mud-palette-text-secondary);
    font-style: italic;
}

.ask-citations[b-nqt1ibkx2a] {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ask-chat-input[b-nqt1ibkx2a] {
    flex: 0 0 auto;
    display: flex;
    gap: 0.4rem;
    align-items: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.ask-chat-input > :first-child[b-nqt1ibkx2a] {
    flex: 1 1 auto;
}

/* Rendered markdown answer (Markdig HTML). ::deep reaches the injected elements — scoped CSS can't tag them.
   Override the bubble's pre-wrap so the HTML controls spacing, not literal newlines. */
.ask-answer[b-nqt1ibkx2a] { white-space: normal; }
.ask-answer[b-nqt1ibkx2a]  > :first-child { margin-top: 0; }
.ask-answer[b-nqt1ibkx2a]  > :last-child { margin-bottom: 0; }
.ask-answer[b-nqt1ibkx2a]  h1, .ask-answer[b-nqt1ibkx2a]  h2, .ask-answer[b-nqt1ibkx2a]  h3, .ask-answer[b-nqt1ibkx2a]  h4 { font-size: 1rem; font-weight: 700; margin: .7rem 0 .3rem; }
.ask-answer[b-nqt1ibkx2a]  p { margin: .4rem 0; }
.ask-answer[b-nqt1ibkx2a]  ul, .ask-answer[b-nqt1ibkx2a]  ol { margin: .3rem 0; padding-left: 1.25rem; }
.ask-answer[b-nqt1ibkx2a]  li { margin: .12rem 0; }
.ask-answer[b-nqt1ibkx2a]  code { background: var(--mud-palette-background-grey, #eef0f2); padding: .05rem .3rem; border-radius: 4px; font-size: .85em; }
.ask-answer[b-nqt1ibkx2a]  pre { background: #1e1e1e; color: #eee; padding: .55rem .7rem; border-radius: 6px; overflow-x: auto; font-size: .8rem; }
.ask-answer[b-nqt1ibkx2a]  pre code { background: none; padding: 0; color: inherit; }
.ask-answer[b-nqt1ibkx2a]  table { border-collapse: collapse; width: 100%; margin: .45rem 0; font-size: .8rem; }
.ask-answer[b-nqt1ibkx2a]  th, .ask-answer[b-nqt1ibkx2a]  td { border: 1px solid var(--mud-palette-lines-default, #e0e0e0); padding: .25rem .45rem; text-align: left; }
.ask-answer[b-nqt1ibkx2a]  th { background: rgba(0,0,0,.04); font-weight: 600; }
.ask-answer[b-nqt1ibkx2a]  blockquote { border-left: 3px solid var(--mud-palette-lines-default, #ddd); margin: .45rem 0; padding-left: .6rem; color: var(--mud-palette-text-secondary, #666); }
.ask-answer[b-nqt1ibkx2a]  a { color: #1d5e8c; }
.ask-answer[b-nqt1ibkx2a]  hr { border: none; border-top: 1px solid var(--mud-palette-lines-default, #e0e0e0); margin: .6rem 0; }
/* /Components/Shared/Ai/AskZiggiLauncher.razor.rz.scp.css */
.ask-trigger[b-ig34dkpweg] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    background: transparent;
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    font: inherit;
}

.ask-trigger:hover[b-ig34dkpweg] {
    background: var(--mud-palette-action-default-hover);
}

.ask-trigger-label[b-ig34dkpweg] {
    font-size: 0.85rem;
}
/* /Components/Shared/Alerts/AlertBell.razor.rz.scp.css */
.alert-bell[b-0w8vypnuno] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    background: transparent;
    color: var(--mud-palette-text-primary);
    cursor: pointer;
}

.alert-bell:hover[b-0w8vypnuno] {
    background: var(--mud-palette-action-default-hover);
}

.alert-bell-badge[b-0w8vypnuno] {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
/* /Components/Shared/AppBusyOverlay.razor.rz.scp.css */
/* Busy-overlay polish. MudOverlay centers its ChildContent already; this stacks the spinner over the
   status message in a small, themed pill so the overlay reads as a deliberate "working…" state rather
   than a bare spinner. All colors come from the mud palette so it tracks light/dark themes. */

.zg-busy-overlay__panel[b-jajlnts6oi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.75rem;
    border-radius: var(--mud-default-borderradius);
    background-color: var(--mud-palette-surface);
    box-shadow: var(--mud-elevation-4);
    text-align: center;
}

.zg-busy-overlay__msg[b-jajlnts6oi] {
    color: var(--mud-palette-text-primary);
    font-weight: 500;
}
/* /Components/Shared/AppButton.razor.rz.scp.css */
/* Count bubble polish. MudBadge renders its own markup, so reach it via ::deep.
   Give the bubble a touch more breathing room + a subtle lift so it reads as a
   real notification pill, and quiet the zero-state down to a muted grey. */

[b-78dklsjcvd] .zg-appbtn-badge {
    /* Give the overlapping bubble room to the RIGHT of the label so the number doesn't sit on
       top of the last characters; margin keeps the whole thing off the next control. */
    padding-right: 0.85rem;
    margin-right: 0.25rem;
}

[b-78dklsjcvd] .zg-appbtn-badge .mud-badge {
    font-weight: 600;
    min-width: 1.15rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Zero state: Color.Surface can be near-invisible, so force a quiet grey pill
   with muted text — "0 accounts" should read as "none set up", not as an alert. */
[b-78dklsjcvd] .zg-appbtn-badge--zero .mud-badge {
    background-color: var(--mud-palette-action-disabled-background) !important;
    color: var(--mud-palette-text-secondary) !important;
    box-shadow: none;
}
/* /Components/Shared/AppCounterpartySelect.razor.rz.scp.css */
.acs[b-uxi51b9res] { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }

.acs-kind[b-uxi51b9res] { flex: 0 0 auto; min-width: 140px; }
.acs-pick[b-uxi51b9res] { flex: 1 1 200px; min-width: 180px; }
.acs-name[b-uxi51b9res] { flex: 1 1 200px; min-width: 180px; }

/* "acts like a dropdown until you tell it new" — the New trigger */
.acs-new[b-uxi51b9res] {
    flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 8px;
    border: 1px dashed var(--mud-palette-primary, #7a5a3a); background: transparent;
    color: var(--mud-palette-primary, #7a5a3a); cursor: pointer; font-weight: 600; white-space: nowrap;
}
.acs-new:hover[b-uxi51b9res] { background: rgba(122, 90, 58, .08); }

/* New mode: the combo area becomes a text entry with the NEW badge floating on the right INSIDE it */
.acs-newbox[b-uxi51b9res] { flex: 1 1 220px; min-width: 200px; display: inline-flex; align-items: center; gap: 6px; }
.acs-inputwrap[b-uxi51b9res] { position: relative; flex: 1 1 auto; min-width: 0; }
.acs-inputwrap[b-uxi51b9res]  input { padding-right: 3.4rem; }   /* reserve room so text never runs under the badge */
.acs-badge[b-uxi51b9res] {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none;
    background: var(--mud-palette-warning, #e6a23c); color: #fff; font-size: .62rem; font-weight: 800;
    letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}

.acs-x[b-uxi51b9res], .acs-ok[b-uxi51b9res] {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.acs-x[b-uxi51b9res] { border: 1px solid #e3d8c5; background: #fff; color: #8a7a66; }
.acs-x:hover[b-uxi51b9res] { background: #f3ece0; }
.acs-ok[b-uxi51b9res] { border: none; background: #4a2613; color: #fff; }
.acs-ok:disabled[b-uxi51b9res] { opacity: .5; cursor: default; }

.acs-dup[b-uxi51b9res] {
    display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: #a8320f;
    background: #fbeee7; border: 1px solid #f0d3c6; border-radius: 8px; padding: 3px 10px; cursor: pointer;
}
.acs-dup:hover[b-uxi51b9res] { background: #f6e2d8; }
/* /Components/Shared/AppNotice.razor.rz.scp.css */
/* single-line clamp + inline Details link */
.zg-notice[b-qzb7elevk2]  .zg-alert-msg { min-width: 0; }
.zg-notice-line[b-qzb7elevk2] { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.zg-notice-text[b-qzb7elevk2] { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zg-notice-more[b-qzb7elevk2] {
    flex: 0 0 auto; border: none; background: none; padding: 0; cursor: pointer;
    font: inherit; font-weight: 700; text-decoration: underline; color: inherit;
}
.zg-notice-dtext[b-qzb7elevk2] { margin: 0 0 8px; }
.zg-notice-list[b-qzb7elevk2] { margin: 0; padding-left: 1.2rem; max-height: 50vh; overflow-y: auto; }
.zg-notice-list li[b-qzb7elevk2] { margin: 2px 0; }
/* /Components/Shared/AppPage.razor.rz.scp.css */
/* AppPage header row: title left, actions right. The shell flex chains
   (.grid-shell / .erp-shell / .grid-region) are global in app.css/theme-polish.css. */
.app-page-header[b-omv6x1ojwn] {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.app-page-title[b-omv6x1ojwn] {
    margin: 0;
}

/* Scroll variant: the whole body scrolls as one panel. */
.app-page-scroll[b-omv6x1ojwn] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: .5rem;
}
/* /Components/Shared/AppSectionTab.razor.rz.scp.css */
/* The active panel body — mirrors .erp-shell .mud-tab-panel so a child .erp-fill grid fills + scrolls
   its own body, while a form/report tab scrolls as a whole. */
.ast-body[b-k85gcgufhr] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
/* /Components/Shared/AppSectionTabs.razor.rz.scp.css */
/* Folder-style section tabs fused to one full-height panel (ADR-0026 / Option B).
   Layout mirrors .erp-shell .mud-tabs so .erp-fill grids inside scroll their own body. */
.app-sectiontabs[b-we8fxeoxj0] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.app-sectiontabs-bar[b-we8fxeoxj0] {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    flex: 0 0 auto;
}

.app-sectiontab[b-we8fxeoxj0] {
    appearance: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    font-size: 13px;
    font-weight: 400;
    color: #7a6a55;
    padding: 9px 16px;
    margin-bottom: -1px;
    background: #f1ece2;
    border: 1px solid rgba(138, 90, 43, .10);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.app-sectiontab:hover[b-we8fxeoxj0] { color: #3a2a1a; background: #ece4d6; }

.app-sectiontab.active[b-we8fxeoxj0] {
    color: #3a2a1a;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-bottom: none;
    z-index: 1;
}

/* the thin brown cap on the active tab only */
.app-sectiontab-cap[b-we8fxeoxj0] { display: none; }
.app-sectiontab.active .app-sectiontab-cap[b-we8fxeoxj0] {
    display: block;
    position: absolute;
    left: 7px; right: 7px; top: 0;
    height: 2px;
    background: #8a5a2b;
    border-radius: 2px 2px 0 0;
}

/* red count badge (ADR-0049 review queue) — draws attention while drafts/conflicts wait */
.app-sectiontab-badge[b-we8fxeoxj0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 7px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: #d32f2f;
    border-radius: 9px;
    vertical-align: middle;
}

/* error tone — the whole tab stands out red (e.g. the review queue while items wait). */
.app-sectiontab--error[b-we8fxeoxj0] { color: #d32f2f; font-weight: 600; border-color: rgba(211, 47, 47, .35); }
.app-sectiontab--error:hover[b-we8fxeoxj0] { color: #b71c1c; background: #fbe9e7; }
.app-sectiontab--error.active[b-we8fxeoxj0] { color: #b71c1c; border-color: rgba(211, 47, 47, .5); }
.app-sectiontab--error.active .app-sectiontab-cap[b-we8fxeoxj0] { background: #d32f2f; }

/* right-aligned toolbar slot inside the tab bar */
.app-sectiontabs-toolbar[b-we8fxeoxj0] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
}

/* the one constant-bg, full-height container the active tab fuses into */
.app-sectiontabs-panel[b-we8fxeoxj0] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;            /* the panel never scrolls — .erp-fill grids inside do */
    background: #ffffff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-radius: 0 0 8px 8px;  /* square top (tabs sit on it), rounded bottom */
    padding: 8px 12px;
}
/* /Components/Shared/CommandPalette/CommandPaletteHost.razor.rz.scp.css */
/* Trigger chip in the top bar */
.cmdk-trigger[b-yclwn0g9mm] {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 32px;
    padding: 0 .5rem 0 .55rem;
    margin-left: .5rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 260px;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default, #d8d8e0);
    border-radius: 8px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-secondary, #6b6b76);
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .12s, color .12s;
}
.cmdk-trigger:hover[b-yclwn0g9mm] { border-color: var(--mud-palette-primary, #5b4ef0); color: var(--mud-palette-text-primary, #2a2a32); }
.cmdk-trigger-label[b-yclwn0g9mm] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-trigger-kbd[b-yclwn0g9mm] {
    margin-left: .25rem;
    padding: .05rem .35rem;
    border-radius: 5px;
    border: 1px solid var(--mud-palette-lines-default, #d8d8e0);
    background: var(--mud-palette-background-grey, #f3f3f7);
    font-size: .72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Overlay — hidden until the JS module adds .cmdk-open (zero server round-trip to open) */
.cmdk-root[b-yclwn0g9mm] { display: none; position: fixed; inset: 0; z-index: 2000; }
.cmdk-root.cmdk-open[b-yclwn0g9mm] { display: block; }
.cmdk-scrim[b-yclwn0g9mm] { position: absolute; inset: 0; background: rgba(20, 20, 28, .38); }
.cmdk-panel[b-yclwn0g9mm] {
    position: relative;
    margin: 10vh auto 0;
    width: min(640px, calc(100vw - 2rem));
    max-height: 64vh;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface, #fff);
    border: 1px solid var(--mud-palette-lines-default, #e2e2ea);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(20, 20, 40, .28);
    overflow: hidden;
    animation: cmdk-pop-b-yclwn0g9mm .12s ease-out;
}
@keyframes cmdk-pop-b-yclwn0g9mm { from { transform: translateY(-6px); opacity: .6; } to { transform: none; opacity: 1; } }

.cmdk-input[b-yclwn0g9mm] {
    border: none;
    outline: none;
    padding: 1rem 1.1rem;
    font-size: 1.02rem;
    background: transparent;
    color: var(--mud-palette-text-primary, #23232b);
    border-bottom: 1px solid var(--mud-palette-lines-default, #ececf2);
}
.cmdk-input[b-yclwn0g9mm]::placeholder { color: var(--mud-palette-text-disabled, #a6a6b2); }

.cmdk-results[b-yclwn0g9mm] { overflow-y: auto; padding: .35rem 0; }
.cmdk-status[b-yclwn0g9mm], .cmdk-empty[b-yclwn0g9mm] { padding: .8rem 1.1rem; color: var(--mud-palette-text-secondary, #8a8a96); font-size: .86rem; }

.cmdk-group[b-yclwn0g9mm] { padding: .15rem 0; }
.cmdk-group-title[b-yclwn0g9mm] {
    padding: .35rem 1.1rem .2rem;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mud-palette-text-secondary, #9a9aa6);
}
.cmdk-item[b-yclwn0g9mm] {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    width: 100%;
    padding: .5rem 1.1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--mud-palette-text-primary, #23232b);
}
.cmdk-item-selected[b-yclwn0g9mm] { background: var(--mud-palette-action-default-hover, rgba(91, 78, 240, .10)); box-shadow: inset 3px 0 0 var(--mud-palette-primary, #5b4ef0); }
.cmdk-item-title[b-yclwn0g9mm] { font-size: .92rem; }
.cmdk-item-subtitle[b-yclwn0g9mm] { font-size: .78rem; color: var(--mud-palette-text-secondary, #9a9aa6); margin-left: auto; }

.cmdk-footer[b-yclwn0g9mm] {
    display: flex;
    gap: 1rem;
    padding: .5rem 1.1rem;
    border-top: 1px solid var(--mud-palette-lines-default, #ececf2);
    font-size: .74rem;
    color: var(--mud-palette-text-secondary, #9a9aa6);
}
.cmdk-footer span[b-yclwn0g9mm] { display: inline-flex; align-items: center; gap: .25rem; }
.cmdk-footer kbd[b-yclwn0g9mm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    padding: 0 .3rem;
    border: 1px solid var(--mud-palette-lines-default, #d8d8e0);
    border-radius: 4px;
    background: var(--mud-palette-background-grey, #f3f3f7);
    color: var(--mud-palette-text-primary, #3a3a44);   /* key glyphs inherit currentColor — were white-on-grey (BL-18) */
    /* Key glyphs are MudIcon (inline SVG) — no symbol-font dependency, so they can't render as tofu boxes the way
       the old Unicode ↑/↓/↵ did. The monospace family is just for the textual "Esc" key. */
    font-family: ui-monospace, monospace;
    line-height: 1;
}

/* Narrow top bars: collapse the chip to icon-only so it never competes for room. */
@media (max-width: 900px) {
    .cmdk-trigger-label[b-yclwn0g9mm], .cmdk-trigger-kbd[b-yclwn0g9mm] { display: none; }
}

/* Full-bleed palette on small screens. */
@media (max-width: 560px) {
    .cmdk-panel[b-yclwn0g9mm] { margin: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .cmdk-results[b-yclwn0g9mm] { flex: 1 1 auto; }
}
/* /Components/Shared/RecordPage.razor.rz.scp.css */
/* RecordPage identity strip (ADR-0029) — visual tokens ported from Aedium .aed-student-strip,
   scoped to this component (mirrors the Breadcrumbs.razor.css scoping precedent). */
/* Fills the grid-shell so the folder panel below can be full-height (matches the section pages). */
.record-page[b-ribs3pqfe2] { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

.record-strip[b-ribs3pqfe2] {
    flex: 0 0 auto;
    display: flex; align-items: flex-start; gap: 1.5rem;
    padding-bottom: 12px; border-bottom: 1px solid rgba(138, 90, 43, .25);
}
.record-strip-main[b-ribs3pqfe2] { flex: 1 1 auto; min-width: 0; }

.record-title[b-ribs3pqfe2] {
    margin: 0; line-height: 1.2; font-size: 20px; font-weight: 700; color: #3a2a1a;
    display: flex; align-items: baseline; gap: .5rem;
}
.record-refreshing[b-ribs3pqfe2] { font-size: 11px; font-weight: 500; color: #a8631a; }
.record-subtitle[b-ribs3pqfe2] { margin-top: 2px; font-size: 12.5px; color: #7a6a55; }

.record-chips[b-ribs3pqfe2] { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; align-self: center; flex: 0 0 auto; }
.record-chip[b-ribs3pqfe2] {
    font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
    background: rgba(138, 90, 43, .12); color: #6a4a2a;
}
.record-chip.tone-error[b-ribs3pqfe2] { background: rgba(200, 40, 40, .12); color: #b02020; }
.record-chip.tone-warning[b-ribs3pqfe2] { background: rgba(201, 123, 31, .16); color: #a8631a; }
.record-chip.tone-info[b-ribs3pqfe2] { background: rgba(40, 110, 160, .12); color: #1f6aa0; }

.record-kpis[b-ribs3pqfe2] { display: flex; gap: 1.25rem; }
.record-kpi[b-ribs3pqfe2] { text-align: right; }
.record-kpi-value[b-ribs3pqfe2] { font-size: 18px; font-weight: 700; color: #3a2a1a; }
.record-kpi-label[b-ribs3pqfe2] { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: #9a8a75; }

.record-actions[b-ribs3pqfe2] { display: flex; align-items: center; gap: .5rem; }

/* The body fills the rest of the page and flexes its children: the RecordTabs bar (natural height)
   over the .record-tabbody folder panel (fills + scrolls its own content — like the section pages). */
.record-body[b-ribs3pqfe2] {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    padding-top: 10px;
}
.record-body[b-ribs3pqfe2]  .record-tabs { flex: 0 0 auto; }
.record-body[b-ribs3pqfe2]  .record-tabbody {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-radius: 0 0 8px 8px;   /* square top (the active tab fuses onto it), rounded bottom */
    padding: 12px 14px;
}

/* Fill mode: same full-height white panel, all corners rounded (no tab fused on top). */
.record-panel[b-ribs3pqfe2] {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-radius: 8px;
    padding: 16px 18px;
}
:root[data-theme="dark"] .record-panel[b-ribs3pqfe2] { background: var(--mud-palette-surface, #23201c); }

/* ::deep pierces into the consumer-provided tab body so record field lists style uniformly. */
.record-body[b-ribs3pqfe2]  .record-fields {
    display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; max-width: 680px; margin: 0;
}
.record-body[b-ribs3pqfe2]  .record-fields dt {
    font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: #9a8a75; align-self: center;
}
.record-body[b-ribs3pqfe2]  .record-fields dd { margin: 0; font-size: 14px; color: #3a2a1a; }
.record-body[b-ribs3pqfe2]  .record-section-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: #8a5a2b; margin: 4px 0 10px;
}
/* /Components/Shared/RecordTabs.razor.rz.scp.css */
/* RecordTabs — folder tabs matching AppSectionTabs (the section-tab convention). The active tab fuses
   into the consumer's .record-tabbody panel below (styled in RecordPage.razor.css). Tabs stay
   URL-driven anchors (each is a real /x/{id}/{tab} route — shareable, back-button-friendly). */
.record-tabs[b-mnrmihvdmk] {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: flex-end;
    margin: 0;
}
/* Right-justified record title on the tab row; sits centered and wraps with the tabs when they overflow. */
.record-tabs-right[b-mnrmihvdmk] {
    margin-left: auto;
    align-self: center;
    padding: 0 4px 4px;
}

.record-tab[b-mnrmihvdmk] {
    appearance: none;          /* reset native <button> chrome (in-component mode renders buttons) */
    font-family: inherit;
    cursor: pointer;
    position: relative;
    padding: 9px 16px;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 400;
    color: #7a6a55;
    text-decoration: none;
    white-space: nowrap;
    background: #f1ece2;
    border: 1px solid rgba(138, 90, 43, .10);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.record-tab:hover[b-mnrmihvdmk] { color: #3a2a1a; background: #ece4d6; }

.record-tab.active[b-mnrmihvdmk] {
    color: #3a2a1a;
    font-weight: 500;
    background: #fff;
    border: 1px solid rgba(138, 90, 43, .22);
    border-bottom: none;
    z-index: 1;
}
/* the thin brown cap on the active tab (no markup change — pseudo-element) */
.record-tab.active[b-mnrmihvdmk]::before {
    content: "";
    position: absolute;
    left: 7px; right: 7px; top: 0;
    height: 2px;
    background: #8a5a2b;
    border-radius: 2px 2px 0 0;
}
/* /Components/Shared/SidePanel.razor.rz.scp.css */
/* Scrim: covers the page when open; fades in/out. Sits below MudBlazor dialogs (1400) and popovers
   so dropdowns/date-pickers inside a form still render above the panel. */
.zg-sp-scrim[b-uftcik19bm] {
    position: fixed;
    inset: var(--app-topbar-height, 44px) 0 0 0;   /* start below the fixed top bar (ADR-0013) */
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1390;
}

.zg-sp-scrim--open[b-uftcik19bm] {
    opacity: 1;
    pointer-events: auto;
}

/* The panel itself — anchored full-height to the right, slides in via transform. */
.zg-sp[b-uftcik19bm] {
    position: fixed;
    top: var(--app-topbar-height, 44px);   /* sit just below the fixed top bar (ADR-0013) */
    right: 0;
    bottom: 0;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, inherit);
    box-shadow: -4px 0 18px rgba(0, 0, 0, .22);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1391;
    overflow: hidden;
}

.zg-sp--open[b-uftcik19bm] {
    transform: translateX(0);
}

.zg-sp--quarter[b-uftcik19bm]   { width: 25vw; min-width: 360px; }
.zg-sp--third[b-uftcik19bm]     { width: 33vw; min-width: 400px; }
.zg-sp--half[b-uftcik19bm]      { width: 50vw; min-width: 480px; }
.zg-sp--twothirds[b-uftcik19bm] { width: 66vw; min-width: 560px; }
.zg-sp--full[b-uftcik19bm]      { width: 100vw; }

.zg-sp-header[b-uftcik19bm] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 20px;
    border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.zg-sp-body[b-uftcik19bm] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px;
}

.zg-sp-footer[b-uftcik19bm] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 12px 16px;
    border-top: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.zg-sp-footer-extra[b-uftcik19bm] { flex: 0 1 auto; }
.zg-sp-footer-main[b-uftcik19bm]  { display: flex; gap: .5rem; margin-left: auto; }

/* Owner 2026-07-18: footer buttons only — a size up from the app default (::deep reaches page-supplied ones). */
.zg-sp-footer button[b-uftcik19bm],
.zg-sp-footer[b-uftcik19bm]  button {
    font-size: 1rem;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
}

/* Tablet / mobile: take the whole screen. */
@media (max-width: 768px) {
    .zg-sp[b-uftcik19bm] { width: 100vw !important; min-width: 0 !important; }
}
/* /Components/Shared/StateRuleFriendlyView.razor.rz.scp.css */
/* Friendly rule-set view (ADR-0060 §F) — compact two-column definition list per group. */
.zg-friendly-group[b-sfpg2rxb8n] {
    margin-bottom: 1rem;
}

.zg-friendly-h[b-sfpg2rxb8n] {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 0.35rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.zg-friendly-dl[b-sfpg2rxb8n] {
    display: grid;
    grid-template-columns: minmax(11em, 16em) 1fr;
    gap: 0.2rem 1rem;
    margin: 0;
    font-size: 0.875rem;
}

.zg-friendly-dl dt[b-sfpg2rxb8n] {
    color: var(--mud-palette-text-secondary);
}

.zg-friendly-dl dd[b-sfpg2rxb8n] {
    margin: 0;
}

.zg-friendly-val[b-sfpg2rxb8n] {
    font-weight: 500;
}

.zg-friendly-clarify[b-sfpg2rxb8n] {
    display: block;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.3;
}

.zg-friendly-advanced[b-sfpg2rxb8n] {
    margin-top: 0.5rem;
}

.zg-friendly-advanced > summary[b-sfpg2rxb8n] {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.4rem;
}

/* Single-column on narrow screens. */
@media (max-width: 600px) {
    .zg-friendly-dl[b-sfpg2rxb8n] {
        grid-template-columns: 1fr;
        gap: 0 0;
    }
    .zg-friendly-dl dd[b-sfpg2rxb8n] {
        margin-bottom: 0.4rem;
    }
}
