/* /Components/Layout/AuthLayout.razor.rz.scp.css */
.auth-panel[b-6iebft9hsy] {
    --auth-accent: #2f4f9e;
    --auth-link: #2f5bd3;
    --auth-primary: #5072be;
    --auth-primary-hover: #4262aa;
    --auth-border: #d5dce6;
    --auth-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
    --auth-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5v-3a4 4 0 0 1 8 0v3M12 14.5v2.5'/%3E%3C/svg%3E");
    --auth-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c.8-3.9 3.9-6 7.5-6s6.7 2.1 7.5 6'/%3E%3C/svg%3E");
    --auth-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --auth-icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E");
    width: min(100%, 31.25rem);
    margin: auto;
}

    .auth-panel[b-6iebft9hsy]  .auth-card {
        padding: clamp(1.25rem, 3.6vh, 2rem) clamp(1.25rem, 4vw, 1.75rem);
        border: 1px solid rgba(255, 255, 255, 0.75);
        border-radius: 16px;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 248, 0.92));
        box-shadow: 0 18px 40px -12px rgba(30, 45, 80, 0.35), 0 2px 6px rgba(30, 45, 80, 0.08);
    }

    .auth-panel[b-6iebft9hsy]  .auth-eyebrow {
        margin: 0 0 0.2rem;
        color: var(--auth-accent);
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .auth-panel[b-6iebft9hsy]  .auth-title {
        margin: 0 0 clamp(0.75rem, 2.4vh, 1.25rem);
        color: #0f1115;
        font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
        font-weight: 700;
        line-height: 1.2;
    }

    .auth-panel[b-6iebft9hsy]  .auth-title-stacked {
        margin-bottom: 0;
    }

    .auth-panel[b-6iebft9hsy]  .auth-subtitle {
        margin: 0.15rem 0 clamp(1rem, 3vh, 1.75rem);
        color: var(--auth-accent);
        font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
        font-weight: 500;
        line-height: 1.25;
    }

    .auth-panel[b-6iebft9hsy]  .auth-form {
        display: flex;
        flex-direction: column;
        gap: clamp(0.65rem, 2.2vh, 1.15rem);
    }

    .auth-panel[b-6iebft9hsy]  .auth-field {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .auth-panel[b-6iebft9hsy]  .auth-label {
        margin: 0;
        color: #111827;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .auth-panel[b-6iebft9hsy]  .auth-input {
        position: relative;
    }

        .auth-panel[b-6iebft9hsy]  .auth-input::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0.85rem;
            width: 1.35rem;
            height: 1.35rem;
            transform: translateY(-50%);
            background: var(--auth-input-icon) no-repeat center / contain;
            pointer-events: none;
        }

    .auth-panel[b-6iebft9hsy]  .auth-input-mail {
        --auth-input-icon: var(--auth-icon-mail);
    }

    .auth-panel[b-6iebft9hsy]  .auth-input-lock {
        --auth-input-icon: var(--auth-icon-lock);
    }

    .auth-panel[b-6iebft9hsy]  .auth-input-user {
        --auth-input-icon: var(--auth-icon-user);
    }

    .auth-panel[b-6iebft9hsy]  .auth-control {
        height: 2.6rem;
        padding-left: 3.25rem;
        border: 1px solid var(--auth-border);
        border-radius: 8px;
        background-color: #ffffff;
        color: #111827;
        font-size: 0.95rem;
    }

        .auth-panel[b-6iebft9hsy]  .auth-control::placeholder {
            color: #a8b3c2;
        }

        .auth-panel[b-6iebft9hsy]  .auth-control:focus {
            border-color: #5b7ec6;
            box-shadow: 0 0 0 0.2rem rgba(80, 114, 190, 0.2);
        }

        .auth-panel[b-6iebft9hsy]  .auth-control::-ms-reveal {
            display: none;
        }

    .auth-panel[b-6iebft9hsy]  .auth-input:has(password-reveal) .auth-control {
        padding-right: 3rem;
    }

    .auth-panel[b-6iebft9hsy]  password-reveal:not(:defined) {
        display: none;
    }

    .auth-panel[b-6iebft9hsy]  .auth-reveal {
        position: absolute;
        top: 50%;
        right: 0.45rem;
        width: 2rem;
        height: 2rem;
        padding: 0;
        border: 0;
        border-radius: 6px;
        transform: translateY(-50%);
        background: transparent var(--auth-icon-eye) no-repeat center / 1.3rem;
        cursor: pointer;
    }

        .auth-panel[b-6iebft9hsy]  .auth-reveal[aria-pressed="true"] {
            background-image: var(--auth-icon-eye-off);
        }

        .auth-panel[b-6iebft9hsy]  .auth-reveal:hover {
            background-color: #eef2f8;
        }

        .auth-panel[b-6iebft9hsy]  .auth-reveal:focus-visible {
            outline: 2px solid var(--auth-link);
            outline-offset: 1px;
        }

    .auth-panel[b-6iebft9hsy]  .validation-message,
    .auth-panel[b-6iebft9hsy]  .validation-errors {
        margin: 0;
        font-size: 0.82rem;
    }

    .auth-panel[b-6iebft9hsy]  .alert {
        margin-bottom: 1rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.88rem;
    }

    .auth-panel[b-6iebft9hsy]  .auth-options {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem 1rem;
        font-size: 0.92rem;
    }

        .auth-panel[b-6iebft9hsy]  .auth-options .form-check-label {
            color: #4b5563;
        }

    .auth-panel[b-6iebft9hsy]  .form-check-input:checked {
        border-color: #6f92d6;
        background-color: #6f92d6;
    }

    .auth-panel[b-6iebft9hsy]  .auth-link {
        color: var(--auth-link);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .auth-panel[b-6iebft9hsy]  .auth-btn {
        display: block;
        width: 100%;
        height: 2.6rem;
        border-radius: 8px;
        font-size: 1.05rem;
        font-weight: 600;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .auth-panel[b-6iebft9hsy]  .auth-btn-primary {
        border: 1px solid var(--auth-primary);
        background-color: var(--auth-primary);
        color: #ffffff;
    }

        .auth-panel[b-6iebft9hsy]  .auth-btn-primary:hover {
            background-color: var(--auth-primary-hover);
        }

    .auth-panel[b-6iebft9hsy]  .auth-btn-outline {
        border: 1px solid #8a94a3;
        background-color: transparent;
        color: #5b6472;
    }

        .auth-panel[b-6iebft9hsy]  .auth-btn-outline:hover {
            background-color: rgba(255, 255, 255, 0.7);
            color: #1f2328;
        }

    .auth-panel[b-6iebft9hsy]  .auth-btn:focus-visible {
        outline: 2px solid var(--auth-link);
        outline-offset: 2px;
    }

    /* The passkey element only carries form state; it must not take a flex gap slot. */
    .auth-panel[b-6iebft9hsy]  passkey-submit {
        display: none;
    }

    .auth-panel[b-6iebft9hsy]  .auth-divider {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-block: clamp(0rem, 1vh, 0.5rem);
        color: #6b7280;
        font-size: 0.95rem;
    }

        .auth-panel[b-6iebft9hsy]  .auth-divider::before,
        .auth-panel[b-6iebft9hsy]  .auth-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background-color: var(--auth-border);
        }

    .auth-panel[b-6iebft9hsy]  .auth-footnote {
        margin: clamp(0.75rem, 2.6vh, 1.5rem) 0 0;
        color: #1f2328;
        font-size: 0.92rem;
        text-align: center;
    }
/* /Components/Layout/BackdropImage.razor.rz.scp.css */
/* Viewport-pinned, right-sized artwork on its own compositor layer: rescales cheaply on resize and never scrolls. */
.backdrop-image[b-e6egi8n3n4] {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}
/* /Components/Layout/BrandShell.razor.rz.scp.css */
/* Full-viewport, non-scrolling frame shared by the landing, sign in and register pages. */
.brand-shell[b-5xq1cmq07y] {
    --shell-gutter: clamp(1rem, 3.2vw, 2.75rem);
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background-color: #c8d3e3;
    color: #1f2328;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

.brand-shell-landing[b-5xq1cmq07y] {
    background-color: #c5e3ff;
}

.brand-shell-landing[b-5xq1cmq07y]  .backdrop-image {
    object-position: 72% center;
}

.brand-shell-header[b-5xq1cmq07y] {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.85rem, 4vh, 2rem) var(--shell-gutter) 0;
    pointer-events: none;
}

    .brand-shell-header > *[b-5xq1cmq07y] {
        pointer-events: auto;
    }

.brand-shell-psa[b-5xq1cmq07y] {
    display: block;
    flex-shrink: 0;
}

    .brand-shell-psa img[b-5xq1cmq07y] {
        display: block;
        width: clamp(84px, 8.5vw, 136px);
        height: auto;
    }

.brand-shell-nav[b-5xq1cmq07y] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

    .brand-shell-nav[b-5xq1cmq07y]  .brand-shell-link {
        padding: 0.4rem 0.85rem;
        border-radius: 999px;
        color: #1f2328;
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.15s ease;
    }

        .brand-shell-nav[b-5xq1cmq07y]  .brand-shell-link:hover {
            background-color: rgba(255, 255, 255, 0.6);
        }

        .brand-shell-nav[b-5xq1cmq07y]  .brand-shell-link.active {
            background-color: rgba(137, 166, 208, 0.55);
            font-weight: 600;
        }

        .brand-shell-nav[b-5xq1cmq07y]  .brand-shell-link:focus-visible {
            outline: 2px solid #2f5bd3;
            outline-offset: 2px;
        }

.brand-shell-main[b-5xq1cmq07y] {
    grid-row: 2;
    grid-column: 1;
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 0;
    padding: 1rem var(--shell-gutter);
    overflow: hidden;
}

/* Forms may outgrow very short screens; scroll inside the shell rather than the page. */
.brand-shell-auth .brand-shell-main[b-5xq1cmq07y] {
    overflow-y: auto;
}

.brand-shell-footer[b-5xq1cmq07y] {
    grid-row: 3;
    grid-column: 1;
    position: relative;
    z-index: 1;
    padding: 0 var(--shell-gutter) clamp(0.75rem, 3.2vh, 1.75rem);
    pointer-events: none;
}

    .brand-shell-footer img[b-5xq1cmq07y] {
        display: block;
        width: 50vw;
        height: auto;
    }

@media (max-width: 640.98px) {
    .brand-shell-footer img[b-5xq1cmq07y] {
        width: 70vw;
    }
}

/* Narrow screens: fade the top so the landing title stays legible over the artwork. */
@media (max-width: 899.98px) {
    .brand-shell-landing[b-5xq1cmq07y]  .backdrop-image {
        object-position: 72% 100%;
    }

    .brand-shell-landing[b-5xq1cmq07y]::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(180deg, rgba(232, 240, 251, 0.95) 0%, rgba(232, 240, 251, 0.6) 40%, rgba(232, 240, 251, 0) 65%);
        pointer-events: none;
    }
}

/* Roomy screens: content centres on the whole viewport, header and footer overlay it. */
@media (min-width: 900px) and (min-height: 640px) {
    .brand-shell-main[b-5xq1cmq07y] {
        grid-row: 1 / -1;
        padding-block: 1.5rem;
    }

    /* Forms are tall; keep the footer row reserved so the wide logo never slides under the card. */
    .brand-shell-auth .brand-shell-main[b-5xq1cmq07y] {
        grid-row: 1 / 3;
    }
}
/* /Components/Layout/LandingLayout.razor.rz.scp.css */
.landing-content[b-f98w7eukhv] {
    align-self: flex-start;
    margin-top: clamp(1rem, 6vh, 3rem);
}

@media (min-width: 900px) and (min-height: 640px) {
    .landing-content[b-f98w7eukhv] {
        margin-top: 21vh;
        padding-left: clamp(0rem, 2.8vw, 3rem);
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-80ycaomcus] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Own stacking context so the z-index:-1 backdrop sits above the page colour but below all content. */
    isolation: isolate;
    background-color: var(--body-bg);
    color: var(--body-color);
}

/* Dark theme keeps the artwork's shape but dims it to the dark surface palette. */
.page[data-theme="dark"][b-80ycaomcus]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: rgba(13, 17, 23, 0.86);
    pointer-events: none;
}

main[b-80ycaomcus] {
    flex: 1;
    min-width: 0;
}

/* Floating side panel: a rounded card inset from the viewport edges. z-index keeps its edge
   toggle and the account drop-up above page content. */
.sidebar[b-80ycaomcus] {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin: 0.75rem;
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    background: var(--sidebar-bg);
    box-shadow: 0 8px 28px rgba(31, 53, 112, 0.1);
}

/* Home's photo is busy behind the menu (racks, signage), so its panel is frosted rather than
   tinted. The blur sits on a pseudo-element so the panel never becomes the containing block for
   the account menu's fixed click-outside catcher. */
.page-home .sidebar[b-80ycaomcus] {
    background: transparent;
}

    .page-home .sidebar[b-80ycaomcus]::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(240, 246, 253, 0.7) 100%);
        backdrop-filter: blur(16px) saturate(140%);
        pointer-events: none;
    }

.page-home[data-theme="dark"] .sidebar[b-80ycaomcus]::before {
    background: var(--sidebar-bg);
    backdrop-filter: none;
}

.page[data-theme="dark"] .sidebar[b-80ycaomcus] {
    box-shadow: none;
}

.sidebar-toggle[b-80ycaomcus] {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--sidebar-border);
    background: var(--panel-bg);
    color: var(--text-secondary);
    cursor: pointer;
}

    .sidebar-toggle:hover[b-80ycaomcus] {
        background-color: var(--chrome-hover);
        color: var(--sidebar-text-strong);
    }

    .sidebar-toggle:focus-visible[b-80ycaomcus] {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

/* Narrow screens: the panel is a drawer above the content; the toggle sits right-aligned in its logo row. */
@media (max-width: 640.98px) {
    .sidebar-toggle[b-80ycaomcus] {
        top: 0.85rem;
        right: 0.85rem;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 8px;
    }
}

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

    .sidebar[b-80ycaomcus] {
        position: sticky;
        top: 1rem;
        flex-shrink: 0;
        width: 264px;
        height: calc(100vh - 2rem);
        margin: 1rem 0 1rem 1rem;
        transition: width 0.2s ease;
    }

    .sidebar-collapsed .sidebar[b-80ycaomcus] {
        width: 76px;
    }

    /* Tab hung on the panel's right edge, vertically centred, so it stays reachable when collapsed. */
    .sidebar-toggle[b-80ycaomcus] {
        top: 50%;
        right: -16px;
        width: 16px;
        height: 64px;
        border-left: none;
        border-radius: 0 8px 8px 0;
        transform: translateY(-50%);
        box-shadow: 4px 2px 10px rgba(31, 53, 112, 0.08);
    }

    article[b-80ycaomcus] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-menu[b-hv57rtj38b] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Sidebar icons share one box so every glyph lines up in the rail. */
.nav-icon[b-hv57rtj38b] {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
}

.nav-body[b-hv57rtj38b] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.nav-item[b-hv57rtj38b] {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-hv57rtj38b] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-hv57rtj38b] {
        padding-bottom: 1rem;
    }

    .nav-item[b-hv57rtj38b]  a {
        color: var(--sidebar-text);
        border-radius: 8px;
        height: 2.5rem;
        padding: 0 0.75rem;
        display: flex;
        align-items: center;
        font-weight: 500;
        text-decoration: none;
    }

.nav-item[b-hv57rtj38b]  a.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-text-strong);
    font-weight: 600;
}

.nav-item[b-hv57rtj38b]  a:hover {
    background-color: var(--chrome-hover);
    color: var(--sidebar-text-strong);
}

.nav-scrollable[b-hv57rtj38b] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* PSA logo, centred at the top of the panel. */
.nav-brand[b-hv57rtj38b] {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    padding: 1.1rem 1rem 0.5rem;
}

    .nav-brand img[b-hv57rtj38b] {
        display: block;
        width: 116px;
        max-width: 100%;
        height: auto;
        transition: width 0.2s ease;
    }

/* The logo is black line-art on transparency; flip it to near-white on the dark panel. */
[data-theme="dark"] .nav-brand img[b-hv57rtj38b] {
    filter: invert(1) brightness(0.92);
}

/* "Input" / "Output" group labels; the underline doubles as the group separator. */
.nav-section[b-hv57rtj38b] {
    margin: 0.9rem 1rem 0.4rem;
    padding: 0 0.25rem 0.3rem;
    border-bottom: 1px solid var(--sidebar-rule);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* User menu pinned to the bottom, under a separator. */
.nav-footer[b-hv57rtj38b] {
    flex-shrink: 0;
    margin: 0 1rem;
    padding: 0.6rem 0 0.9rem;
    border-top: 1px solid var(--sidebar-rule);
}

/* ── Collapsed sidebar ────────────────────────────────────────────────── */

/* Narrow screens: the sidebar is a drawer, so collapsing leaves only the logo row. */
@media (max-width: 640.98px) {
    .nav-menu.collapsed .nav-scrollable[b-hv57rtj38b],
    .nav-menu.collapsed .nav-footer[b-hv57rtj38b] {
        display: none;
    }

    .nav-brand[b-hv57rtj38b] {
        justify-content: flex-start;
        padding: 0.85rem 1rem;
    }

        .nav-brand img[b-hv57rtj38b] {
            width: 92px;
        }
}

@media (min-width: 641px) {
    .nav-menu.collapsed .nav-brand[b-hv57rtj38b] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

        .nav-menu.collapsed .nav-brand img[b-hv57rtj38b] {
            width: 52px;
        }

    .nav-menu.collapsed .nav-label[b-hv57rtj38b] {
        display: none;
    }

    /* The label text goes; its underline stays as the group separator. */
    .nav-menu.collapsed .nav-section[b-hv57rtj38b] {
        height: 0;
        margin: 0.75rem 0.85rem 0.6rem;
        padding: 0;
        overflow: hidden;
    }

    .nav-menu.collapsed .nav-footer[b-hv57rtj38b] {
        margin: 0 0.5rem;
    }

    .nav-menu.collapsed .nav-footer[b-hv57rtj38b]  .account-trigger {
        justify-content: center;
        padding: 0.3rem 0;
    }

    .nav-menu.collapsed .nav-footer[b-hv57rtj38b]  .account-identity,
    .nav-menu.collapsed .nav-footer[b-hv57rtj38b]  .account-chevron {
        display: none;
    }

    .nav-menu.collapsed .nav-item[b-hv57rtj38b] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .nav-menu.collapsed .nav-item[b-hv57rtj38b]  a {
        justify-content: center;
        padding: 0;
    }

    .nav-menu.collapsed .nav-item[b-hv57rtj38b]  a .nav-icon {
        margin-right: 0;
    }
}
/* /Components/Layout/UserMenu.razor.rz.scp.css */
.account-menu[b-8hrqnrskx4] {
    position: relative;
}

.account-trigger[b-8hrqnrskx4] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    list-style: none;
}

.account-trigger[b-8hrqnrskx4]::-webkit-details-marker {
    display: none;
}

.account-trigger[b-8hrqnrskx4]::marker {
    content: "";
}

.account-trigger:hover[b-8hrqnrskx4],
.account-menu[open] .account-trigger[b-8hrqnrskx4] {
    background-color: var(--chrome-hover);
    border-color: var(--panel-border);
}

.account-menu[open] .account-chevron[b-8hrqnrskx4] {
    transform: rotate(180deg);
}

.account-avatar[b-8hrqnrskx4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0969da 0%, #6639ba 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.account-identity[b-8hrqnrskx4] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.account-handle[b-8hrqnrskx4] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-fullname[b-8hrqnrskx4] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.account-chevron[b-8hrqnrskx4] {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

/* Invisible full-viewport catcher so a click anywhere outside dismisses the menu. */
.account-backdrop[b-8hrqnrskx4] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

/* Drop-up: the trigger sits at the foot of the side panel, so the menu opens above it. */
.account-dropdown[b-8hrqnrskx4] {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 0;
    z-index: 50;
    width: 260px;
    padding: 0.35rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
    box-shadow: 0 -8px 24px var(--panel-shadow);
}

.account-email[b-8hrqnrskx4] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem 0.65rem;
    border-bottom: 1px solid var(--panel-border);
}

.account-signed-in[b-8hrqnrskx4] {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.account-email-value[b-8hrqnrskx4] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-menu-item[b-8hrqnrskx4] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.account-menu-item:hover[b-8hrqnrskx4] {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.account-dropdown form[b-8hrqnrskx4] {
    margin: 0;
}

.account-signout[b-8hrqnrskx4] {
    margin-top: 0.25rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--panel-border);
    border-radius: 0 0 8px 8px;
    color: #cf222e;
}

.account-signout:hover[b-8hrqnrskx4] {
    color: #a40e26;
}

.account-icon[b-8hrqnrskx4] {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.bi-gear[b-8hrqnrskx4] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/%3E%3Cpath d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/%3E%3Cpath d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319z'/%3E%3C/svg%3E");
}

.bi-person-gear[b-8hrqnrskx4] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm.256 7a4.474 4.474 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10c.26 0 .507.009.74.025.226-.341.527-.65.899-.875C9.267 9.016 8.651 9 8 9c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h5.256Z'/%3E%3Cpath d='M11.886 9.46c.18-.613 1.048-.613 1.229 0l.043.148a.64.64 0 0 0 .921.382l.136-.074c.561-.306 1.175.308.87.869l-.075.136a.64.64 0 0 0 .382.92l.149.045c.612.18.612 1.048 0 1.229l-.15.043a.64.64 0 0 0-.38.921l.074.136c.305.561-.309 1.175-.87.87l-.136-.075a.64.64 0 0 0-.92.382l-.045.149c-.18.612-1.048.612-1.229 0l-.043-.15a.64.64 0 0 0-.921-.38l-.136.074c-.561.305-1.175-.309-.87-.87l.075-.136a.64.64 0 0 0-.382-.92l-.148-.045c-.613-.18-.613-1.048 0-1.229l.148-.043a.64.64 0 0 0 .382-.921l-.074-.136c-.306-.561.308-1.175.869-.87l.136.075a.64.64 0 0 0 .92-.382l.045-.148ZM12 12.998a.998.998 0 1 0 0-1.996.998.998 0 0 0 0 1.996Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm.256 7a4.474 4.474 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10c.26 0 .507.009.74.025.226-.341.527-.65.899-.875C9.267 9.016 8.651 9 8 9c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h5.256Z'/%3E%3Cpath d='M11.886 9.46c.18-.613 1.048-.613 1.229 0l.043.148a.64.64 0 0 0 .921.382l.136-.074c.561-.306 1.175.308.87.869l-.075.136a.64.64 0 0 0 .382.92l.149.045c.612.18.612 1.048 0 1.229l-.15.043a.64.64 0 0 0-.38.921l.074.136c.305.561-.309 1.175-.87.87l-.136-.075a.64.64 0 0 0-.92.382l-.045.149c-.18.612-1.048.612-1.229 0l-.043-.15a.64.64 0 0 0-.921-.38l-.136.074c-.561.305-1.175-.309-.87-.87l.075-.136a.64.64 0 0 0-.382-.92l-.148-.045c-.613-.18-.613-1.048 0-1.229l.148-.043a.64.64 0 0 0 .382-.921l-.074-.136c-.306-.561.308-1.175.869-.87l.136.075a.64.64 0 0 0 .92-.382l.045-.148ZM12 12.998a.998.998 0 1 0 0-1.996.998.998 0 0 0 0 1.996Z'/%3E%3C/svg%3E");
}

.bi-info-circle[b-8hrqnrskx4] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.bi-question-circle[b-8hrqnrskx4] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z'/%3E%3C/svg%3E");
}

.bi-box-arrow-right[b-8hrqnrskx4] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
}
/* /Components/Pages/About.razor.rz.scp.css */
.about-page[b-h67ga0r0qo] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
}

.page-header[b-h67ga0r0qo] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo[b-h67ga0r0qo] {
    --logo-size: 64px;
}

.page-header h1[b-h67ga0r0qo] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header .subtitle[b-h67ga0r0qo] {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.panel[b-h67ga0r0qo] {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--panel-border, #e2e8f0);
    border-radius: 14px;
    background: var(--panel-bg, #ffffff);
    box-shadow: 0 1px 2px var(--panel-shadow, rgba(15, 23, 42, 0.05));
}

.panel p[b-h67ga0r0qo] {
    margin: 0;
    color: var(--text-secondary, #475569);
}

.panel-title[b-h67ga0r0qo] {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    font-weight: 700;
}

.fact-grid[b-h67ga0r0qo] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 0;
}

.fact dt[b-h67ga0r0qo] {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
}

.fact dd[b-h67ga0r0qo] {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    overflow-wrap: anywhere;
}

.stack-list[b-h67ga0r0qo] {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
}

.credits[b-h67ga0r0qo] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.credits .copyright[b-h67ga0r0qo] {
    font-weight: 600;
    color: var(--text-secondary, #475569);
}

.credits-label[b-h67ga0r0qo] {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
}
/* /Components/Pages/Animation.razor.rz.scp.css */
/* Canvas palette. The renderer reads these custom properties with getComputedStyle,
   so the schematic follows the app theme without any colour literals in JavaScript. */
.anim-page[b-yo1yucjwf6] {
    --wh-bg: #f8fafc;
    --wh-outline: #cbd5e1;
    --wh-edge: #b6c2d1;
    --wh-rack-fill: #e2e8f0;
    --wh-rack-occupied: #0284c7;
    --wh-rack-stroke: #94a3b8;
    --wh-rack-label: #334155;
    --wh-rack-highlight-fill: rgba(245, 158, 11, .32);
    --wh-rack-highlight-stroke: #d97706;
    --wh-point-label: #475569;
    --wh-point-fallback: #64748b;
    --wh-trail: rgba(2, 132, 199, .55);
    --wh-entity-stroke: #0f172a;
    --wh-entity-nose: #0f172a;
    --wh-entity-label: #1e293b;
    --wh-entity-fallback: #64748b;
    --wh-pallet-fill: #f59e0b;
    --wh-pallet-stroke: #78350f;
    --wh-hover-stroke: #e11d48;
    --wh-hover-fill: rgba(225, 29, 72, .16);
    --wh-floorplan-opacity: .7;
    --wh-cp-aisle: #94a3b8;
    --wh-cp-charging: #16a34a;
    --wh-cp-docking: #dc2626;
    --wh-cp-drivethru: #9333ea;
    --wh-cp-parking: #ea580c;
    --wh-cp-path: #0284c7;
    --wh-cp-staging: #ca8a04;
    --wh-cp-standby: #db2777;
    --wh-eq-forklift: #f97316;
    --wh-eq-reachtruck: #2563eb;
    --wh-eq-palletjack: #059669;
    --wh-eq-truck: #64748b;
    --wh-eq-container: #7c3aed;
    --wh-eq-pallet: #eab308;
    --wh-eq-staff: #db2777;

    --anim-surface: #ffffff;
    --anim-border: #e2e8f0;
    --anim-text: #0f172a;
    --anim-muted: #64748b;

    /* Vertical chrome outside this page: 3.5rem app top row + 1.1rem/2rem content padding. */
    --anim-chrome: 6.6rem;

    display: flex;
    flex-direction: column;
    gap: .6rem;
    height: calc(100dvh - var(--anim-chrome));
    min-height: 26rem;
    color: var(--anim-text);
    outline: none;
}

.anim-page[data-theme="dark"][b-yo1yucjwf6] {
    --wh-bg: #0b1220;
    --wh-outline: #334155;
    --wh-edge: #3f4d63;
    --wh-rack-fill: #1e293b;
    --wh-rack-occupied: #38bdf8;
    --wh-rack-stroke: #475569;
    --wh-rack-label: #cbd5e1;
    --wh-rack-highlight-fill: rgba(251, 191, 36, .28);
    --wh-rack-highlight-stroke: #fbbf24;
    --wh-point-label: #cbd5e1;
    --wh-point-fallback: #94a3b8;
    --wh-trail: rgba(56, 189, 248, .6);
    --wh-entity-stroke: #0b1220;
    --wh-entity-nose: #0b1220;
    --wh-entity-label: #e2e8f0;
    --wh-entity-fallback: #94a3b8;
    --wh-pallet-fill: #fbbf24;
    --wh-pallet-stroke: #451a03;
    --wh-hover-stroke: #fb7185;
    --wh-hover-fill: rgba(251, 113, 133, .22);
    --wh-floorplan-opacity: .8;
    --wh-cp-aisle: #64748b;
    --wh-cp-charging: #4ade80;
    --wh-cp-docking: #f87171;
    --wh-cp-drivethru: #c084fc;
    --wh-cp-parking: #fb923c;
    --wh-cp-path: #38bdf8;
    --wh-cp-staging: #facc15;
    --wh-cp-standby: #f472b6;
    --wh-eq-forklift: #fb923c;
    --wh-eq-reachtruck: #60a5fa;
    --wh-eq-palletjack: #34d399;
    --wh-eq-truck: #94a3b8;
    --wh-eq-container: #a78bfa;
    --wh-eq-pallet: #facc15;
    --wh-eq-staff: #f472b6;

    --anim-surface: #111c2e;
    --anim-border: #26354d;
    --anim-text: #e2e8f0;
    --anim-muted: #94a3b8;
}

/* ------------------------------------------------------------------ header */

.anim-header[b-yo1yucjwf6] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
}

.anim-title h1[b-yo1yucjwf6] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.anim-title p[b-yo1yucjwf6] {
    margin: .1rem 0 0;
    color: var(--anim-muted);
    font-size: .8rem;
}

.anim-run-picker[b-yo1yucjwf6] {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.anim-run-picker label[b-yo1yucjwf6] {
    color: var(--anim-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.anim-run-picker select[b-yo1yucjwf6],
.anim-speed select[b-yo1yucjwf6] {
    min-width: 12rem;
    max-width: 22rem;
    padding: .3rem .5rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
    color: var(--anim-text);
    font-size: .82rem;
}

.anim-speed select[b-yo1yucjwf6] {
    min-width: 8rem;
}

.anim-alert[b-yo1yucjwf6] {
    padding: .5rem .7rem;
    border: 1px solid #f59e0b;
    border-radius: .375rem;
    background: rgba(245, 158, 11, .12);
    font-size: .82rem;
}

/* ------------------------------------------------------------------ facts */

.anim-facts[b-yo1yucjwf6] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: .4rem;
    flex: 0 0 auto;
}

.anim-fact[b-yo1yucjwf6] {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    padding: .3rem .5rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
}

.anim-fact-label[b-yo1yucjwf6] {
    color: var(--anim-muted);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.anim-fact-value[b-yo1yucjwf6] {
    font-size: .85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.anim-facts-toggle[b-yo1yucjwf6] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* Points up while the facts are shown (click to fold them away), down once folded. */
.anim-chevron[b-yo1yucjwf6] {
    width: .4rem;
    height: .4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(2px) rotate(-135deg);
    opacity: .7;
}

.anim-chevron.is-collapsed[b-yo1yucjwf6] {
    transform: translateY(-2px) rotate(45deg);
}

/* ------------------------------------------------------------------ viewer */

/* Toolbar, stage and transport: the block that goes fullscreen. */
.anim-viewer[b-yo1yucjwf6] {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1 1 0;
    min-height: 0;
}

/* Covers the whole viewport (navigation panel included) even when the browser refuses the
   Fullscreen API; with it, the same element is also lifted into the browser's top layer. */
.anim-viewer.is-fullscreen[b-yo1yucjwf6] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: .75rem;
    background: var(--body-bg, #f6f8fa);
}

.anim-btn.anim-fullscreen-toggle[b-yo1yucjwf6] {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 4;
    min-width: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: color-mix(in srgb, var(--anim-surface) 88%, transparent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
    font-size: 1.05rem;
    line-height: 1;
}

.anim-fullscreen-note[b-yo1yucjwf6] {
    display: none;
    margin: 0;
    color: var(--anim-muted);
    font-size: .72rem;
    text-align: center;
}

.anim-viewer.is-fullscreen .anim-fullscreen-note[b-yo1yucjwf6] {
    display: block;
}

/* ------------------------------------------------------------------ toolbar */

.anim-toolbar[b-yo1yucjwf6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.anim-toolbar-group[b-yo1yucjwf6] {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.anim-menus[b-yo1yucjwf6] {
    flex-wrap: wrap;
}

.anim-btn[b-yo1yucjwf6] {
    min-width: 2rem;
    padding: .28rem .55rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
    color: var(--anim-text);
    font-size: .8rem;
    line-height: 1.4;
    cursor: pointer;
}

.anim-btn:hover:not(:disabled)[b-yo1yucjwf6] {
    border-color: var(--wh-cp-path);
}

.anim-btn:disabled[b-yo1yucjwf6] {
    opacity: .5;
    cursor: not-allowed;
}

.anim-btn-primary[b-yo1yucjwf6] {
    border-color: var(--wh-cp-path);
    background: var(--wh-cp-path);
    color: #ffffff;
}

.anim-zoom[b-yo1yucjwf6] {
    min-width: 3.5rem;
    color: var(--anim-muted);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* Filter dropdowns are created by the canvas module, so they need ::deep. */
[b-yo1yucjwf6] .anim-menu {
    position: relative;
}

[b-yo1yucjwf6] .anim-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
    color: var(--anim-text);
    font-size: .8rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

[b-yo1yucjwf6] .anim-menu > summary::-webkit-details-marker {
    display: none;
}

[b-yo1yucjwf6] .anim-menu > summary::after {
    content: "";
    width: .35rem;
    height: .35rem;
    margin-left: .1rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .6;
}

[b-yo1yucjwf6] .anim-menu[open] > summary {
    border-color: var(--wh-cp-path);
}

[b-yo1yucjwf6] .anim-menu-count {
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--anim-border);
    color: var(--anim-muted);
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
}

[b-yo1yucjwf6] .anim-menu-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + .25rem);
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    max-height: 20rem;
    padding: .3rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .22);
    overflow-y: auto;
}

[b-yo1yucjwf6] .anim-menu-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem .4rem;
    border-radius: .25rem;
    font-size: .78rem;
    cursor: pointer;
}

[b-yo1yucjwf6] .anim-menu-item:hover {
    background: var(--anim-border);
}

[b-yo1yucjwf6] .anim-menu-item input {
    accent-color: var(--wh-cp-path);
    cursor: pointer;
}

[b-yo1yucjwf6] .anim-menu-all {
    margin-bottom: .2rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--anim-border);
    font-weight: 600;
}

[b-yo1yucjwf6] .anim-menu-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
}

/* ------------------------------------------------------------------ stage */

.anim-stage[b-yo1yucjwf6] {
    position: relative;
    flex: 1 1 0;
    min-height: 12rem;
    border: 1px solid var(--anim-border);
    border-radius: .5rem;
    background: var(--wh-bg);
    overflow: hidden;
}

.anim-stage canvas[b-yo1yucjwf6] {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

/* Arrow while pointing at something inspectable; the hand belongs to panning. */
.anim-stage canvas.is-inspecting[b-yo1yucjwf6] {
    cursor: default;
}

.anim-stage canvas.is-panning[b-yo1yucjwf6],
.anim-stage canvas.is-panning.is-inspecting[b-yo1yucjwf6] {
    cursor: grabbing;
}

.anim-hint[b-yo1yucjwf6] {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    margin: 0;
    padding: .2rem .5rem;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--anim-surface) 85%, transparent);
    color: var(--anim-muted);
    font-size: .68rem;
    pointer-events: none;
}

.anim-tooltip[b-yo1yucjwf6] {
    position: absolute;
    z-index: 5;
    max-width: 18rem;
    padding: .45rem .6rem;
    border: 1px solid var(--anim-border);
    border-radius: .375rem;
    background: var(--anim-surface);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    color: var(--anim-text);
    font-size: .75rem;
    pointer-events: none;
}

/* Callout tail pointing back at the hovered or clicked spot on the canvas. */
.anim-tooltip[b-yo1yucjwf6]::after {
    content: "";
    position: absolute;
    width: .5rem;
    height: .5rem;
    background: var(--anim-surface);
    border: 1px solid var(--anim-border);
    transform: rotate(45deg);
}

.anim-tooltip[data-arrow^="top"][b-yo1yucjwf6]::after {
    top: -.28rem;
    border-right: 0;
    border-bottom: 0;
}

.anim-tooltip[data-arrow^="bottom"][b-yo1yucjwf6]::after {
    bottom: -.28rem;
    border-left: 0;
    border-top: 0;
}

.anim-tooltip[data-arrow$="left"][b-yo1yucjwf6]::after {
    left: .55rem;
}

.anim-tooltip[data-arrow$="right"][b-yo1yucjwf6]::after {
    right: .55rem;
}

.anim-tooltip.is-pinned[b-yo1yucjwf6] {
    border-color: var(--wh-hover-stroke);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .3);
}

.anim-tooltip.is-pinned[b-yo1yucjwf6]::after {
    border-color: var(--wh-hover-stroke);
}

[b-yo1yucjwf6] .anim-tip-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .15rem;
    color: var(--anim-muted);
}

[b-yo1yucjwf6] .anim-tip-row b {
    color: var(--anim-text);
    font-weight: 600;
}

[b-yo1yucjwf6] .anim-tip-hint {
    display: block;
    margin-top: .4rem;
    padding-top: .3rem;
    border-top: 1px solid var(--anim-border);
    color: var(--anim-muted);
    font-size: .68rem;
}

/* ------------------------------------------------------------------ transport */

.anim-transport[b-yo1yucjwf6] {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: .4rem .75rem;
    padding: .45rem .7rem;
    border: 1px solid var(--anim-border);
    border-radius: .5rem;
    background: var(--anim-surface);
}

.anim-transport-buttons[b-yo1yucjwf6] {
    display: flex;
    gap: .25rem;
}

/* Every player control is the same square with a 1rem glyph. */
.anim-transport-buttons .anim-btn[b-yo1yucjwf6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 0;
    height: 2rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.anim-speed[b-yo1yucjwf6] {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--anim-muted);
    font-size: .76rem;
}

.anim-clock[b-yo1yucjwf6] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.anim-elapsed[b-yo1yucjwf6] {
    color: var(--anim-muted);
    font-size: .7rem;
}

.anim-slider[b-yo1yucjwf6] {
    display: block;
    width: 100%;
    accent-color: var(--wh-cp-path);
}

/* The slider and its alert strip share one grid cell so the marks line up with the track. */
.anim-slider-wrap[b-yo1yucjwf6] {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    padding-top: .55rem;
}

.anim-alert-ticks[b-yo1yucjwf6] {
    position: absolute;
    inset: 0 .5rem auto .5rem;
    height: .5rem;
    pointer-events: none;
}

.anim-alert-tick[b-yo1yucjwf6] {
    position: absolute;
    top: 0;
    height: 100%;
    min-width: 2px;
    border-radius: 1px;
    background: #e11d48;
    box-shadow: 0 0 0 1px rgba(225, 29, 72, .35);
    pointer-events: auto;
}

/* Staging congestion and injected remediations last a while, so they read as bands. */
.anim-alert-tick-alert_staging[b-yo1yucjwf6] {
    background: rgba(225, 29, 72, .55);
}

.anim-alert-tick-actioninjection[b-yo1yucjwf6] {
    background: rgba(37, 99, 235, .6);
}

/* ------------------------------------------------------------------ alerts */

.anim-alert-picker[b-yo1yucjwf6] {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    color: var(--anim-muted);
    font-size: .76rem;
}

.anim-alert-picker select[b-yo1yucjwf6] {
    max-width: 26rem;
}

/* Sits over the canvas rather than beside it: the alert belongs to what is on screen. */
.anim-alert-overlay[b-yo1yucjwf6] {
    position: absolute;
    top: .6rem;
    left: .6rem;
    right: 3rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(225, 29, 72, .55);
    border-radius: .45rem;
    background: rgba(225, 29, 72, .16);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.anim-alert-row[b-yo1yucjwf6] {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-size: .78rem;
    line-height: 1.35;
}

.anim-alert-badge[b-yo1yucjwf6] {
    flex: none;
    padding: .05rem .4rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.anim-alert-text[b-yo1yucjwf6] {
    color: var(--anim-text, inherit);
}

/* ------------------------------------------------------------------ smaller viewports */

/* Short screens (FHD at 125-150% scaling, split windows): drop the optional prose so the
   canvas keeps as much of the fixed height budget as possible. */
@media (max-height: 900px) {
    .anim-page[b-yo1yucjwf6] {
        min-height: 24rem;
        gap: .45rem;
    }

    .anim-viewer[b-yo1yucjwf6] {
        gap: .45rem;
    }

    .anim-title p[b-yo1yucjwf6],
    .anim-hint[b-yo1yucjwf6] {
        display: none;
    }

    .anim-fact[b-yo1yucjwf6] {
        padding: .25rem .45rem;
    }
}

@media (max-width: 900px) {
    .anim-page[b-yo1yucjwf6] {
        height: auto;
        min-height: 0;
    }

    .anim-header[b-yo1yucjwf6] {
        align-items: stretch;
        flex-direction: column;
    }

    .anim-run-picker select[b-yo1yucjwf6] {
        flex: 1;
        min-width: 0;
    }

    .anim-facts[b-yo1yucjwf6] {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    }

    /* Phones and tablets: a tall fixed stage the user pans and pinches around. */
    .anim-viewer[b-yo1yucjwf6] {
        flex: none;
    }

    .anim-stage[b-yo1yucjwf6] {
        height: 62dvh;
        min-height: 17rem;
    }

    .anim-viewer.is-fullscreen .anim-stage[b-yo1yucjwf6] {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
    }

    .anim-transport[b-yo1yucjwf6] {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .anim-transport-buttons[b-yo1yucjwf6] {
        justify-content: space-between;
    }

    .anim-btn[b-yo1yucjwf6] {
        min-width: 2.4rem;
        padding: .4rem .55rem;
    }
}
/* /Components/Pages/Dashboard.razor.rz.scp.css */
.dashboard[b-wunyj1gvjh] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard *[b-wunyj1gvjh] {
    min-width: 0;
}

.dashboard-header[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d1117 0%, #1f3d7a 100%);
    color: #f6f8fa;
}

.dashboard-header h1[b-wunyj1gvjh] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.subtitle[b-wunyj1gvjh] {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #b6c2cf;
}

.selectors[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.selector[b-wunyj1gvjh] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 260px;
}

.selector label[b-wunyj1gvjh] {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b6c2cf;
}

.report-download[b-wunyj1gvjh] {
    align-self: flex-end;
    font-weight: 600;
    white-space: nowrap;
}

.panel[b-wunyj1gvjh] {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
    box-shadow: 0 1px 2px var(--panel-shadow);
}

.panel h2[b-wunyj1gvjh] {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-head[b-wunyj1gvjh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-head h2[b-wunyj1gvjh] {
    margin-bottom: 1rem;
}

.customer-filter[b-wunyj1gvjh] {
    width: auto;
    min-width: 12rem;
    margin-bottom: 1rem;
}

.category-filter[b-wunyj1gvjh] {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.summary-panel[b-wunyj1gvjh] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-main[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.summary-meta[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-chip[b-wunyj1gvjh] {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.chip-completed[b-wunyj1gvjh] {
    background: rgba(26, 127, 55, 0.15);
    color: #1a7f37;
}

.chip-running[b-wunyj1gvjh] {
    background: rgba(9, 105, 218, 0.15);
    color: #0969da;
}

.chip-queued[b-wunyj1gvjh] {
    background: rgba(191, 135, 0, 0.18);
    color: #9a6700;
}

.chip-failed[b-wunyj1gvjh] {
    background: rgba(207, 34, 46, 0.15);
    color: #cf222e;
}

.chip-cancelled[b-wunyj1gvjh] {
    background: var(--surface-hover);
    color: var(--text-muted);
}

.run-progress[b-wunyj1gvjh] {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--progress-track);
}

.run-progress-fill[b-wunyj1gvjh] {
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.run-progress-hint[b-wunyj1gvjh] {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted, #6b7280);
}

/* ── KPI cards (dynamic widths) ───────────────────────────────────────── */

/* Cards size to their content and stretch so every row is justified edge to edge. */
.card-grid[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.kpi-card[b-wunyj1gvjh] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: min(100%, 10rem);
    padding: 1rem 1.25rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
    box-shadow: 0 1px 2px var(--panel-shadow);
}

.kpi-label[b-wunyj1gvjh] {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    overflow-wrap: break-word;
}

.kpi-value[b-wunyj1gvjh] {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    overflow-wrap: break-word;
}

.kpi-hint[b-wunyj1gvjh] {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Utilization gauges ───────────────────────────────────────────────── */

.gauge-grid[b-wunyj1gvjh] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.gauge-card[b-wunyj1gvjh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.gauge[b-wunyj1gvjh] {
    width: 150px;
    height: 150px;
}

/* Track and value share the same 3/4 (270 deg) sweep so 100% fills the whole track. */
.ring-track[b-wunyj1gvjh] {
    fill: none;
    stroke: var(--progress-track);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 235.62 314.16;
    transform: rotate(135deg);
    transform-origin: 50% 50%;
}

.ring-value[b-wunyj1gvjh] {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(135deg);
    transform-origin: 50% 50%;
}

.ring-text[b-wunyj1gvjh] {
    font-size: 24px;
    font-weight: 700;
    fill: var(--text-primary);
}

.gauge-name[b-wunyj1gvjh] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.gauge-hint[b-wunyj1gvjh] {
    margin-top: -0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gauge-group-title[b-wunyj1gvjh] {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

    .gauge-grid + .gauge-group-title[b-wunyj1gvjh] {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--panel-border);
    }

/* ── Staff daily utilization distribution ─────────────────────────────── */

/* Chart, band table and the min/max gauges side by side; they stack on narrow screens. */
.distribution-layout[b-wunyj1gvjh] {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1.5rem;
}

.distribution-table[b-wunyj1gvjh] {
    margin: 0;
}

.distribution-gauges[b-wunyj1gvjh] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rep-table .centered[b-wunyj1gvjh] {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1199.98px) {
    .distribution-layout[b-wunyj1gvjh] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .distribution-chart[b-wunyj1gvjh] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640.98px) {
    .distribution-layout[b-wunyj1gvjh] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Tabs ─────────────────────────────────────────────────────────────── */

.tab-bar[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--panel-border);
}

.tab[b-wunyj1gvjh] {
    position: relative;
    padding: 0.55rem 0.95rem;
    border: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tab:hover:not(:disabled)[b-wunyj1gvjh] {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.tab:disabled[b-wunyj1gvjh] {
    opacity: 0.4;
    cursor: not-allowed;
}

.tab.active[b-wunyj1gvjh] {
    color: var(--text-primary);
}

.tab.active[b-wunyj1gvjh]::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    bottom: -1px;
    left: 0.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

/* ── Insight callouts ─────────────────────────────────────────────────── */

.insight-grid[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.insight[b-wunyj1gvjh] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
    min-width: min(100%, 12rem);
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--panel-border);
    border-left-width: 4px;
    border-radius: 10px;
    background: var(--panel-bg);
}

.insight-good[b-wunyj1gvjh] {
    border-left-color: #1a7f37;
}

.insight-warn[b-wunyj1gvjh] {
    border-left-color: #bf8700;
}

.insight-bad[b-wunyj1gvjh] {
    border-left-color: #cf222e;
}

.insight-label[b-wunyj1gvjh] {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.insight-headline[b-wunyj1gvjh] {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    overflow-wrap: break-word;
}

.insight-detail[b-wunyj1gvjh] {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Scenario switches ────────────────────────────────────────────────── */

.switch-grid[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.switch[b-wunyj1gvjh] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.switch-state[b-wunyj1gvjh] {
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.switch.on .switch-state[b-wunyj1gvjh] {
    background: rgba(26, 127, 55, 0.18);
    color: #1a7f37;
}

.switch.off .switch-state[b-wunyj1gvjh] {
    background: var(--surface-hover);
    color: var(--text-muted);
}

/* ── Space occupancy range bars ───────────────────────────────────────── */

.occupancy-list[b-wunyj1gvjh] {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

.occupancy-head[b-wunyj1gvjh] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.occupancy-name[b-wunyj1gvjh] {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.occupancy-caption[b-wunyj1gvjh] {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.occupancy-track[b-wunyj1gvjh] {
    position: relative;
    height: 22px;
    border-radius: 6px;
    background: var(--progress-track);
}

.occupancy-whisker[b-wunyj1gvjh] {
    position: absolute;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--text-muted);
}

.occupancy-box[b-wunyj1gvjh] {
    position: absolute;
    top: 3px;
    bottom: 3px;
    min-width: 2px;
    border-radius: 4px;
    background: var(--accent);
    opacity: 0.75;
}

.occupancy-median[b-wunyj1gvjh] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-primary);
}

/* ── Charts ───────────────────────────────────────────────────────────── */

.chart-grid[b-wunyj1gvjh] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 1.25rem;
}

.span-full[b-wunyj1gvjh] {
    grid-column: 1 / -1;
}

.stage-chart h3[b-wunyj1gvjh] {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.loading[b-wunyj1gvjh] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 0;
    color: var(--text-muted);
}

.empty-state[b-wunyj1gvjh] {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--empty-border);
    border-radius: 12px;
    background: var(--empty-bg);
    color: var(--text-muted);
    text-align: center;
}

.empty-state p[b-wunyj1gvjh] {
    margin: 0;
}

.table-scroll[b-wunyj1gvjh] {
    overflow-x: auto;
}

.rep-table[b-wunyj1gvjh] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rep-table th[b-wunyj1gvjh] {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--panel-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.rep-table.wrap-head th[b-wunyj1gvjh] {
    white-space: normal;
    vertical-align: bottom;
}

.rep-table td[b-wunyj1gvjh] {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-secondary);
}

.rep-table .numeric[b-wunyj1gvjh] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rep-table td.gap[b-wunyj1gvjh] {
    color: #cf222e;
    font-weight: 600;
}

.rep-table tr.row-total td[b-wunyj1gvjh] {
    font-weight: 600;
    color: var(--text-primary);
}

.rep-table.facts th[b-wunyj1gvjh] {
    width: 12rem;
    border-bottom: 1px solid var(--panel-border);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
    vertical-align: top;
}

/* Long ledgers stay inside the panel instead of pushing the page down. */
.table-tall[b-wunyj1gvjh] {
    max-height: 26rem;
    overflow-y: auto;
}

.muted-note[b-wunyj1gvjh] {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* /Components/Pages/GetHelp.razor.rz.scp.css */
.get-help-page[b-g1260osj3d] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
}

.page-header h1[b-g1260osj3d] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header .subtitle[b-g1260osj3d] {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.panel[b-g1260osj3d] {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--panel-border, #e2e8f0);
    border-radius: 14px;
    background: var(--panel-bg, #ffffff);
    box-shadow: 0 1px 2px var(--panel-shadow, rgba(15, 23, 42, 0.05));
}

.panel h2[b-g1260osj3d] {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.panel p[b-g1260osj3d] {
    margin: 0;
    color: var(--text-secondary, #475569);
}

.steps[b-g1260osj3d] {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary, #475569);
}

.steps li[b-g1260osj3d] {
    margin-bottom: 0.4rem;
}

.steps a[b-g1260osj3d] {
    color: var(--bs-primary, #006bb7);
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Signed-in Home: NUS co-brand above the two-tone title, sitting directly on the warehouse photo. */
.hero-content[b-dab3y8aooz] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.25rem, 4vh, 2.25rem);
    padding: clamp(0.25rem, 1.5vh, 1rem) 0 0;
}

.cobrand[b-dab3y8aooz] {
    display: block;
    width: clamp(16rem, 40vw, 34rem);
    max-width: 100%;
    height: auto;
}

/* NUS co-brand: navy lettering on light, white lettering on dark. */
.cobrand-dark[b-dab3y8aooz],
[data-theme="dark"] .cobrand-light[b-dab3y8aooz] {
    display: none;
}

[data-theme="dark"] .cobrand-dark[b-dab3y8aooz] {
    display: block;
}

.hero-title[b-dab3y8aooz] {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin: 0;
    color: #2b2b2b;
    font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

    .hero-title span[b-dab3y8aooz] {
        color: #2f4f9e;
    }

[data-theme="dark"] .hero-title[b-dab3y8aooz] {
    color: #e6edf3;
}

    [data-theme="dark"] .hero-title span[b-dab3y8aooz] {
        color: #79a6f2;
    }

@media (max-width: 640.98px) {
    .cobrand[b-dab3y8aooz] {
        width: 85%;
    }
}

.landing-title[b-dab3y8aooz] {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    margin: 0;
    font-size: clamp(2.25rem, 1.2rem + 4vw, 4.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.landing-title-primary[b-dab3y8aooz] {
    color: #2b2b2b;
}

.landing-title-accent[b-dab3y8aooz] {
    color: #2f4f9e;
    font-size: 0.92em;
}
/* /Components/Pages/Settings.razor.rz.scp.css */
.settings-page[b-9u33wx4tko] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1100px;
}

.settings-identity[b-9u33wx4tko] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-avatar[b-9u33wx4tko] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0969da 0%, #6639ba 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.settings-header h1[b-9u33wx4tko] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-header .subtitle[b-9u33wx4tko] {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.settings-grid[b-9u33wx4tko] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.span-full[b-9u33wx4tko] {
    grid-column: 1 / -1;
}

.panel[b-9u33wx4tko] {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
    box-shadow: 0 1px 2px var(--panel-shadow);
}

.panel-head[b-9u33wx4tko] {
    margin-bottom: 1rem;
}

.panel h2[b-9u33wx4tko] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-description[b-9u33wx4tko] {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Theme picker ─────────────────────────────────────────────────────── */

.theme-options[b-9u33wx4tko] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.theme-card[b-9u33wx4tko] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 200px;
    padding: 0.75rem;
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    cursor: pointer;
}

.theme-card:hover[b-9u33wx4tko] {
    border-color: var(--text-muted);
}

.theme-card.selected[b-9u33wx4tko] {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.theme-card input[b-9u33wx4tko] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-name[b-9u33wx4tko] {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-preview[b-9u33wx4tko] {
    display: flex;
    flex-direction: column;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

.preview-bar[b-9u33wx4tko] {
    height: 14px;
}

.preview-body[b-9u33wx4tko] {
    display: flex;
    flex: 1;
}

.preview-side[b-9u33wx4tko] {
    width: 34%;
}

.preview-main[b-9u33wx4tko] {
    flex: 1;
}

.theme-preview-light .preview-bar[b-9u33wx4tko] {
    background: #ffffff;
    border-bottom: 1px solid #d0d7de;
}

.theme-preview-light .preview-side[b-9u33wx4tko] {
    background: #ffffff;
    border-right: 1px solid #d0d7de;
}

.theme-preview-light .preview-main[b-9u33wx4tko] {
    background: #f6f8fa;
}

.theme-preview-dark .preview-bar[b-9u33wx4tko] {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.theme-preview-dark .preview-side[b-9u33wx4tko] {
    background: #161b22;
    border-right: 1px solid #30363d;
}

.theme-preview-dark .preview-main[b-9u33wx4tko] {
    background: #0d1117;
}
/* /Components/Pages/Simulation.razor.rz.scp.css */
.sim-page[b-7i4lp047s3] {
    max-width: 84rem;
}

.sim-header[b-7i4lp047s3] {
    margin-bottom: 1.5rem;
}

.sim-header h1[b-7i4lp047s3] {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.subtitle[b-7i4lp047s3] {
    margin: 0.25rem 0 0;
    color: var(--bs-secondary-color, #6b7280);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- scenario list */

.sim-toolbar[b-7i4lp047s3] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sim-scenarios[b-7i4lp047s3] {
    padding: 1rem 1.15rem;
    border: 1px solid var(--bs-border-color, #d0d7de);
    border-radius: 0.6rem;
    background: var(--bs-body-bg, #fff);
}

.sim-scenarios h2[b-7i4lp047s3] {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.sim-param[b-7i4lp047s3] {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.sim-param.is-ok[b-7i4lp047s3] {
    color: #052c65;
    background: #cfe2ff;
}

.sim-param.is-missing[b-7i4lp047s3] {
    color: #842029;
    background: #f1aeb5;
}

.sim-row-actions[b-7i4lp047s3] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.sim-scenario-table .sim-status-chip[b-7i4lp047s3] {
    font-size: 0.68rem;
}

.sim-history-loading[b-7i4lp047s3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6b7280);
}

.sim-history-empty[b-7i4lp047s3] {
    margin: 0;
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6b7280);
}

.sim-history-name[b-7i4lp047s3] {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- delete dialog */

.sim-modal-backdrop[b-7i4lp047s3] {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(1, 4, 9, 0.5);
}

.sim-modal[b-7i4lp047s3] {
    width: min(30rem, 100%);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.75rem;
    background: var(--panel-bg, #fff);
    color: var(--text-primary, inherit);
    box-shadow: 0 1rem 2.5rem var(--panel-shadow, rgba(31, 35, 40, 0.2));
}

.sim-modal h2[b-7i4lp047s3] {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.sim-modal p[b-7i4lp047s3] {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, inherit);
}

.sim-modal-actions[b-7i4lp047s3] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

/* ---------------------------------------------------------------- table */

.sim-customer-table[b-7i4lp047s3] {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sim-customer-table th[b-7i4lp047s3],
.sim-customer-table td[b-7i4lp047s3] {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--bs-border-color, #d0d7de);
    vertical-align: middle;
}

.sim-customer-table th[b-7i4lp047s3] {
    font-weight: 600;
    color: var(--bs-secondary-color, #6b7280);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.sim-customer-table tbody tr:last-child td[b-7i4lp047s3] {
    border-bottom: none;
}

.sim-row-count[b-7i4lp047s3] {
    display: block;
    color: var(--bs-secondary-color, #6b7280);
    font-size: 0.78rem;
}

.sim-customer-actions[b-7i4lp047s3] {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.table-scroll[b-7i4lp047s3] {
    overflow-x: auto;
}

.sim-run-error[b-7i4lp047s3] {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.sim-run-error pre[b-7i4lp047s3] {
    margin: 0.35rem 0 0;
    max-height: 12rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    color: inherit;
}

/* ---------------------------------------------------------------- run progress */

.sim-row-progress[b-7i4lp047s3] {
    width: 8rem;
    height: 0.4rem;
    margin-top: 0.35rem;
}

.sim-editing-badge[b-7i4lp047s3] {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: rgba(130, 80, 223, 0.14);
    color: #8250df;
    font-size: 0.72rem;
    font-weight: 600;
}

.sim-scenario-table tr.is-busy td:not(.sim-customer-actions)[b-7i4lp047s3] {
    opacity: 0.7;
}

.sim-status-chip[b-7i4lp047s3] {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #6b7280;
}

.sim-status-chip.is-queued[b-7i4lp047s3] {
    background: #bf8700;
}

.sim-status-chip.is-running[b-7i4lp047s3] {
    background: #0969da;
}

.sim-status-chip.is-completed[b-7i4lp047s3] {
    background: #1a7f37;
}

.sim-status-chip.is-failed[b-7i4lp047s3] {
    background: #cf222e;
}

.sim-status-chip.is-cancelled[b-7i4lp047s3] {
    background: #6b7280;
}

.sim-progress-track[b-7i4lp047s3] {
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(125, 133, 144, 0.25);
}

.sim-progress-fill[b-7i4lp047s3] {
    height: 100%;
    border-radius: 999px;
    background: #0969da;
    transition: width 0.35s ease;
}

/* A queued run has no percentage yet, so the bar sweeps instead of filling. */
.sim-progress-fill.is-indeterminate[b-7i4lp047s3] {
    background: repeating-linear-gradient(
        115deg,
        #bf8700 0 0.75rem,
        rgba(191, 135, 0, 0.45) 0.75rem 1.5rem);
    background-size: 200% 100%;
    animation: sim-sweep-b-7i4lp047s3 1.1s linear infinite;
}

@keyframes sim-sweep-b-7i4lp047s3 {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -3rem 0;
    }
}
/* /Components/Scenario/ScenarioPage.razor.rz.scp.css */
.scn-page[b-ulczh80prn] {
    max-width: 84rem;
}

.scn-page[b-ulczh80prn]  .scn-header {
    margin-bottom: 1rem;
}

.scn-page[b-ulczh80prn]  .scn-back {
    font-size: 0.85rem;
    text-decoration: none;
}

.scn-page[b-ulczh80prn]  .scn-header h1 {
    margin: 0.25rem 0 0;
    font-size: 1.75rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.scn-page[b-ulczh80prn]  .scn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--panel-border, #d0d7de);
}

.scn-page[b-ulczh80prn]  .scn-footer p {
    flex: 1 1 20rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-actions-note {
    flex: 1 1 20rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-actions-note.is-warning {
    color: #9a6700;
}

.scn-page[b-ulczh80prn]  .scn-autosave {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-autosave.is-error {
    color: #cf222e;
}

/* ---------------------------------------------------------------- tabs */

.scn-page[b-ulczh80prn]  .scn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--panel-border, #d0d7de);
}

.scn-page[b-ulczh80prn]  .scn-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: -1px;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem 0.5rem 0 0;
    background: transparent;
    color: var(--text-secondary, #424a53);
    font-weight: 500;
    cursor: pointer;
}

.scn-page[b-ulczh80prn]  .scn-tab:hover:not(:disabled) {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-tab.is-active {
    border-color: var(--panel-border, #d0d7de);
    border-bottom-color: var(--panel-bg, #fff);
    background: var(--panel-bg, #fff);
    color: var(--accent, #0969da);
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.scn-page[b-ulczh80prn]  .scn-tab-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.scn-page[b-ulczh80prn]  .scn-tab-dot.is-filled {
    background: #1a7f37;
}

.scn-page[b-ulczh80prn]  .scn-tab-dot.is-missing {
    background: #bf8700;
}

/* ---------------------------------------------------------------- panels (child tabs) */

.scn-page[b-ulczh80prn]  .scn-panel {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.6rem;
    background: var(--panel-bg, #fff);
}

.scn-page[b-ulczh80prn]  .scn-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scn-page[b-ulczh80prn]  .scn-panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-panel-sub {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-empty {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px dashed var(--empty-border, #d0d7de);
    border-radius: 0.5rem;
    background: var(--empty-bg, #f6f8fa);
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.scn-page[b-ulczh80prn]  .scn-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: rgba(125, 133, 144, 0.18);
    color: var(--text-muted, #6b7280);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.scn-page[b-ulczh80prn]  .scn-badge.is-pending {
    background: rgba(191, 135, 0, 0.16);
    color: #9a6700;
}

.scn-page[b-ulczh80prn]  .scn-separator {
    margin: 1.75rem 0 1.25rem;
    border-color: var(--panel-border, #d0d7de);
    opacity: 1;
}

.scn-page[b-ulczh80prn]  .scn-icon {
    flex: none;
}

/* ---------------------------------------------------------------- cards */

.scn-page[b-ulczh80prn]  .scn-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1rem;
}

.scn-page[b-ulczh80prn]  .scn-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.65rem;
    background: var(--panel-bg, #fff);
    box-shadow: 0 1px 3px var(--panel-shadow, rgba(31, 35, 40, 0.06));
}

.scn-page[b-ulczh80prn]  .scn-card-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.scn-page[b-ulczh80prn]  .scn-card-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

/* Compact cards: wide enough for the three skill chips on one line, fields laid out in a grid. */
.scn-page[b-ulczh80prn]  .scn-card-grid.is-wide {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 29rem), 1fr));
    gap: 0.85rem;
}

.scn-page[b-ulczh80prn]  .scn-card.is-compact {
    gap: 0.7rem;
    padding: 0.8rem 0.9rem 0.9rem;
}

.scn-page[b-ulczh80prn]  .scn-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.6rem;
}

.scn-page[b-ulczh80prn]  .scn-fields.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

.scn-page[b-ulczh80prn]  .scn-field.is-wide {
    grid-column: 1 / -1;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-field {
    gap: 0.25rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-field-label {
    font-size: 0.66rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-segmented {
    max-width: 100%;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-segmented-option {
    gap: 0.25rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.8rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-chips {
    gap: 0.35rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-chip {
    gap: 0.3rem;
    padding: 0.2rem 0.6rem 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-stepper-btn {
    width: 1.8rem;
    font-size: 0.95rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-stepper-input {
    width: 3rem;
    padding: 0.2rem;
    font-size: 0.85rem;
}

.scn-page[b-ulczh80prn]  .is-compact .scn-icon-btn {
    width: 1.8rem;
    height: 1.8rem;
}

@media (max-width: 480px) {
    .scn-page[b-ulczh80prn]  .scn-fields,
    .scn-page[b-ulczh80prn]  .scn-fields.is-three {
        grid-template-columns: minmax(0, 1fr);
    }
}

.scn-page[b-ulczh80prn]  .scn-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--text-secondary, #424a53);
    cursor: pointer;
}

.scn-page[b-ulczh80prn]  .scn-icon-btn:hover:not(:disabled) {
    border-color: var(--panel-border, #d0d7de);
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-icon-btn.is-danger:hover:not(:disabled) {
    color: #cf222e;
}

.scn-page[b-ulczh80prn]  .scn-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.scn-page[b-ulczh80prn]  .scn-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.scn-page[b-ulczh80prn]  .scn-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
}

/* ---------------------------------------------------------------- segmented radios */

.scn-page[b-ulczh80prn]  .scn-segmented {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-self: flex-start;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.45rem;
    overflow: hidden;
}

.scn-page[b-ulczh80prn]  .scn-segmented-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scn-page[b-ulczh80prn]  .scn-segmented-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-right: 1px solid var(--panel-border, #d0d7de);
    font-size: 0.85rem;
    color: var(--text-secondary, #424a53);
    cursor: pointer;
    user-select: none;
}

.scn-page[b-ulczh80prn]  .scn-segmented-option:last-of-type {
    border-right: none;
}

.scn-page[b-ulczh80prn]  .scn-segmented-option:hover {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-segmented-option.is-selected {
    background: var(--accent, #0969da);
    color: #fff;
}

.scn-page[b-ulczh80prn]  .scn-segmented-input:focus-visible + .scn-segmented-option {
    outline: 2px solid var(--accent, #0969da);
    outline-offset: -2px;
}

.scn-page[b-ulczh80prn]  .scn-segmented.is-disabled {
    opacity: 0.5;
}

.scn-page[b-ulczh80prn]  .scn-segmented.is-disabled .scn-segmented-option {
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- toggle chips */

.scn-page[b-ulczh80prn]  .scn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.scn-page[b-ulczh80prn]  .scn-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary, #424a53);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

.scn-page[b-ulczh80prn]  .scn-chip:hover {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-chip.is-on {
    border-color: var(--accent, #0969da);
    background: rgba(9, 105, 218, 0.12);
    color: var(--accent, #0969da);
    font-weight: 600;
}

/* ---------------------------------------------------------------- number stepper */

.scn-page[b-ulczh80prn]  .scn-stepper {
    display: inline-flex;
    align-self: flex-start;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.45rem;
    overflow: hidden;
}

.scn-page[b-ulczh80prn]  .scn-stepper-btn {
    width: 2.1rem;
    border: none;
    background: var(--empty-bg, #f6f8fa);
    color: var(--text-primary, inherit);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.scn-page[b-ulczh80prn]  .scn-stepper-btn:hover:not(:disabled) {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scn-page[b-ulczh80prn]  .scn-stepper-input {
    width: 4rem;
    padding: 0.3rem 0.25rem;
    border: none;
    border-left: 1px solid var(--panel-border, #d0d7de);
    border-right: 1px solid var(--panel-border, #d0d7de);
    background: var(--panel-bg, #fff);
    color: var(--text-primary, inherit);
    text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.scn-page[b-ulczh80prn]  .scn-stepper-input::-webkit-outer-spin-button,
.scn-page[b-ulczh80prn]  .scn-stepper-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.scn-page[b-ulczh80prn]  .scn-stepper.is-disabled {
    opacity: 0.5;
}

/* ---------------------------------------------------------------- work schedule */

.scn-page[b-ulczh80prn]  .scn-schedule h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-schedule-row {
    display: grid;
    grid-template-columns: 9rem minmax(0, 11rem) max-content minmax(0, 11rem);
    justify-content: start;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.scn-page[b-ulczh80prn]  .scn-schedule-label {
    font-weight: 500;
}

.scn-page[b-ulczh80prn]  .scn-schedule-dash {
    color: var(--text-muted, #6b7280);
}

@media (max-width: 640px) {
    .scn-page[b-ulczh80prn]  .scn-schedule-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .scn-page[b-ulczh80prn]  .scn-schedule-label {
        grid-column: 1 / -1;
    }
}

/* ---------------------------------------------------------------- equipment */

.scn-page[b-ulczh80prn]  .scn-equipment-hero {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.scn-page[b-ulczh80prn]  .scn-equipment-type {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, inherit);
}

.scn-page[b-ulczh80prn]  .scn-equipment-model {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}

/* Right-hand drawer: overlays the page so opening the catalog never pushes the cards down. */
.scn-page[b-ulczh80prn]  .scn-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(1, 4, 9, 0.35);
}

.scn-page[b-ulczh80prn]  .scn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1071;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: min(30rem, 100vw);
    padding: 1.1rem 1.2rem;
    border-left: 1px solid var(--panel-border, #d0d7de);
    background: var(--panel-bg, #fff);
    color: var(--text-primary, inherit);
    box-shadow: -0.75rem 0 2rem var(--panel-shadow, rgba(31, 35, 40, 0.2));
    animation: scn-drawer-in-b-ulczh80prn 0.18s ease-out;
}

@keyframes scn-drawer-in-b-ulczh80prn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scn-page[b-ulczh80prn]  .scn-drawer {
        animation: none;
    }
}

.scn-page[b-ulczh80prn]  .scn-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scn-page[b-ulczh80prn]  .scn-drawer-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

[data-theme="dark"] .scn-page[b-ulczh80prn]  .scn-drawer .btn-close {
    filter: invert(1);
}

.scn-page[b-ulczh80prn]  .scn-drawer-status {
    padding: 0.45rem 0.65rem;
    border-left: 3px solid #1a7f37;
    border-radius: 0.3rem;
    background: rgba(26, 127, 55, 0.1);
    font-size: 0.82rem;
}

.scn-page[b-ulczh80prn]  .scn-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.55rem;
}

.scn-page[b-ulczh80prn]  .scn-drawer-section.is-scroll {
    flex: 1;
    min-height: 0;
}

.scn-page[b-ulczh80prn]  .scn-drawer-section h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-catalog {
    flex: 1;
    min-height: 0;
    margin-right: -0.4rem;
    padding-right: 0.4rem;
    overflow-y: auto;
}

.scn-page[b-ulczh80prn]  .scn-catalog-group {
    margin: 0.7rem 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-catalog-group:first-child {
    margin-top: 0.2rem;
}

.scn-page[b-ulczh80prn]  .scn-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scn-page[b-ulczh80prn]  .scn-catalog-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.5rem;
}

.scn-page[b-ulczh80prn]  .scn-catalog-item:hover {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-catalog-art {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-left: 3px solid var(--brand-accent, #0969da);
    border-radius: 0.45rem;
    background: color-mix(in srgb, var(--brand-accent, #0969da) 12%, transparent);
    color: var(--text-primary, inherit);
}

.scn-page[b-ulczh80prn]  .scn-catalog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.scn-page[b-ulczh80prn]  .scn-catalog-title {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.scn-page[b-ulczh80prn]  .scn-catalog-meta {
    font-size: 0.74rem;
    color: var(--text-muted, #6b7280);
}

/* ---------------------------------------------------------------- strategies */

.scn-page[b-ulczh80prn]  .scn-strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.scn-page[b-ulczh80prn]  .scn-strategy.is-full {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.scn-page[b-ulczh80prn]  .scn-strategy:not(.is-full) {
    align-self: stretch;
    height: 100%;
}

/* No 2-column step: with three cards it always leaves one orphan hanging beside an empty cell. */
@media (max-width: 991px) {
    .scn-page[b-ulczh80prn]  .scn-strategy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.scn-page[b-ulczh80prn]  .scn-strategy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.scn-page[b-ulczh80prn]  .scn-strategy-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-strategy.is-off .scn-strategy-part,
.scn-page[b-ulczh80prn]  .scn-strategy.is-off > .scn-panel-sub {
    opacity: 0.6;
}

.scn-page[b-ulczh80prn]  .scn-strategy-subtitle,
.scn-page[b-ulczh80prn]  .scn-strategy-part h4 {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-strategy-part {
    padding: 0.75rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.5rem;
}

.scn-page[b-ulczh80prn]  .scn-strategy-part.is-placeholder {
    background: var(--empty-bg, #f6f8fa);
    color: var(--text-muted, #6b7280);
    opacity: 0.6;
    cursor: not-allowed;
}

.scn-page[b-ulczh80prn]  .scn-drag-list {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.scn-page[b-ulczh80prn]  .scn-drag-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.45rem;
    background: var(--panel-bg, #fff);
    cursor: grab;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.scn-page[b-ulczh80prn]  .scn-drag-item[draggable="false"] {
    cursor: default;
}

.scn-page[b-ulczh80prn]  .scn-drag-item.is-dragging {
    opacity: 0.5;
}

.scn-page[b-ulczh80prn]  .scn-drag-item.is-over {
    border-color: var(--accent, #0969da);
    background: rgba(9, 105, 218, 0.08);
}

.scn-page[b-ulczh80prn]  .scn-drag-grip {
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-drag-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--accent, #0969da);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .scn-drag-text {
    flex: 1;
    font-size: 0.875rem;
}

.scn-page[b-ulczh80prn]  .scn-drag-buttons {
    display: inline-flex;
}

/* ---------------------------------------------------------------- Scenario tab (file inputs, customers) */

.scn-page[b-ulczh80prn]  .scn-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.scn-page[b-ulczh80prn]  .scn-date-row .form-control {
    max-width: 14rem;
}

.scn-page[b-ulczh80prn]  .sim-required {
    color: #cf222e;
}

.scn-page[b-ulczh80prn]  .sim-file-error {
    margin-top: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-left: 3px solid #cf222e;
    background: rgba(207, 34, 46, 0.08);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: #cf222e;
}

.scn-page[b-ulczh80prn]  .sim-file-ok {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #1a7f37;
}

.scn-page[b-ulczh80prn]  .sim-customers {
    margin: 1.75rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.6rem;
}

.scn-page[b-ulczh80prn]  .sim-customers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.scn-page[b-ulczh80prn]  .sim-customers-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .sim-customers-empty {
    margin: 0.75rem 0 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.875rem;
}

.scn-page[b-ulczh80prn]  .sim-customer-editor {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--panel-border, #d0d7de);
    border-radius: 0.5rem;
    background: rgba(13, 110, 253, 0.03);
}

.scn-page[b-ulczh80prn]  .sim-customer-editor-actions {
    display: flex;
    gap: 0.5rem;
}

.scn-page[b-ulczh80prn]  .sim-customer-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.scn-page[b-ulczh80prn]  .sim-customer-table th,
.scn-page[b-ulczh80prn]  .sim-customer-table td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--panel-border, #d0d7de);
    vertical-align: middle;
}

.scn-page[b-ulczh80prn]  .sim-customer-table th {
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.scn-page[b-ulczh80prn]  .sim-customer-table tbody tr:last-child td {
    border-bottom: none;
}

.scn-page[b-ulczh80prn]  .sim-row-count {
    display: block;
    color: var(--text-muted, #6b7280);
    font-size: 0.78rem;
}

.scn-page[b-ulczh80prn]  .sim-customer-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.scn-page[b-ulczh80prn]  .table-scroll {
    overflow-x: auto;
}

.scn-page[b-ulczh80prn]  .sim-upload-progress {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.scn-page[b-ulczh80prn]  .sim-progress-track {
    flex: 1;
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(125, 133, 144, 0.25);
}

.scn-page[b-ulczh80prn]  .sim-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: #0969da;
    transition: width 0.35s ease;
}

.scn-page[b-ulczh80prn]  fieldset[disabled] {
    opacity: 0.55;
}

/* ---------------------------------------------------------------- CSV preview drawer */

.scn-page[b-ulczh80prn]  .scn-stored-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.scn-page[b-ulczh80prn]  .scn-stored-file .sim-file-ok {
    margin-top: 0;
}

.scn-page[b-ulczh80prn]  .scn-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.scn-page[b-ulczh80prn]  .sim-customer-actions .btn + .btn {
    margin-left: 0.35rem;
}

.scn-page[b-ulczh80prn]  .cp-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.scn-page[b-ulczh80prn]  .scn-drawer.is-preview {
    width: min(84rem, 94vw);
    gap: 0.65rem;
}

.scn-page[b-ulczh80prn]  .scn-preview-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scn-page[b-ulczh80prn]  .scn-preview-file {
    overflow: hidden;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scn-page[b-ulczh80prn]  .scn-preview-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.scn-page[b-ulczh80prn]  .scn-icon-btn.is-active {
    border-color: var(--panel-border, #d0d7de);
    color: var(--accent, #0969da);
}

.scn-page[b-ulczh80prn]  .scn-preview-count {
    margin-left: 0.4rem;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
}

.scn-page[b-ulczh80prn]  .scn-preview-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(18rem, 100%);
    margin: 0 0 0 auto;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-preview-search .scn-icon {
    position: absolute;
    left: 0.55rem;
    pointer-events: none;
}

.scn-page[b-ulczh80prn]  .scn-preview-search .form-control {
    padding-left: 1.9rem;
}

/* Column picker: a transparent full-screen layer closes it on any outside click, no JavaScript needed. */
.scn-page[b-ulczh80prn]  .scn-preview-menu-anchor {
    position: relative;
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-dismiss {
    position: fixed;
    inset: 0;
    z-index: 4;
}

.scn-page[b-ulczh80prn]  .scn-preview-menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: 16rem;
    max-height: min(26rem, 60vh);
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.5rem;
    background: var(--panel-bg, #fff);
    box-shadow: 0 0.5rem 1.5rem var(--panel-shadow, rgba(31, 35, 40, 0.2));
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid var(--panel-border, #d0d7de);
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-list {
    overflow-y: auto;
    padding: 0.3rem 0;
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-item:hover {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-preview-menu-item .form-check-input {
    flex: none;
    margin: 0;
}

.scn-page[b-ulczh80prn]  .scn-preview-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.45rem;
}

.scn-page[b-ulczh80prn]  .scn-preview-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

/* Fixed row height keeps <Virtualize> ItemSize (24 px) accurate. */
.scn-page[b-ulczh80prn]  .scn-preview-table th,
.scn-page[b-ulczh80prn]  .scn-preview-table td {
    height: 24px;
    padding: 0.2rem 0.6rem;
    border-right: 1px solid var(--grid-line, #eaeef2);
    border-bottom: 1px solid var(--grid-line, #eaeef2);
    background: var(--panel-bg, #fff);
    white-space: nowrap;
    vertical-align: middle;
}

.scn-page[b-ulczh80prn]  .scn-preview-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom-color: var(--panel-border, #d0d7de);
    background: var(--empty-bg, #f6f8fa);
    color: var(--text-primary, inherit);
    font-weight: 600;
    text-align: center;
}

.scn-page[b-ulczh80prn]  .scn-preview-table td.is-num {
    text-align: right;
}

.scn-page[b-ulczh80prn]  .scn-preview-table td.is-date,
.scn-page[b-ulczh80prn]  .scn-preview-table td.is-flag {
    text-align: center;
}

.scn-page[b-ulczh80prn]  .scn-preview-table .is-select,
.scn-page[b-ulczh80prn]  .scn-preview-table .is-rownum {
    position: sticky;
    z-index: 1;
}

.scn-page[b-ulczh80prn]  .scn-preview-table th.is-select,
.scn-page[b-ulczh80prn]  .scn-preview-table th.is-rownum {
    z-index: 3;
}

.scn-page[b-ulczh80prn]  .scn-preview-table .is-select {
    left: 0;
    width: 2rem;
    min-width: 2rem;
    padding: 0;
    text-align: center;
}

.scn-page[b-ulczh80prn]  .scn-preview-table .is-rownum {
    left: 2rem;
    min-width: 3.2rem;
    border-right-color: var(--panel-border, #d0d7de);
    color: var(--text-muted, #6b7280);
    text-align: right;
}

.scn-page[b-ulczh80prn]  .scn-preview-table .form-check-input {
    width: 0.85rem;
    height: 0.85rem;
    margin: 0;
    vertical-align: middle;
}

.scn-page[b-ulczh80prn]  .scn-preview-table tbody tr:hover > td {
    background: var(--surface-hover, #eef1f4);
}

.scn-page[b-ulczh80prn]  .scn-preview-table tbody tr.is-selected > td {
    background: color-mix(in srgb, var(--accent, #0969da) 14%, var(--panel-bg, #fff));
}

.scn-page[b-ulczh80prn]  .scn-preview-table td.scn-preview-empty {
    height: auto;
    padding: 1.5rem;
    color: var(--text-muted, #6b7280);
    text-align: center;
    white-space: normal;
}

/* Phones and narrow tablets: the drawer becomes a full-screen sheet; the table still scrolls both ways. */
@media (max-width: 767.98px) {
    .scn-page[b-ulczh80prn]  .scn-drawer.is-preview {
        width: 100vw;
        padding: 0.75rem;
        border-left: none;
    }

    .scn-page[b-ulczh80prn]  .scn-preview-toolbar {
        flex-wrap: wrap;
    }

    .scn-page[b-ulczh80prn]  .scn-preview-search {
        order: 1;
        width: 100%;
    }
}

/* ---------------------------------------------------------------- customer profiles */

.scn-page[b-ulczh80prn]  .cp-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .cp-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.scn-page[b-ulczh80prn]  .cp-toolbar .btn,
.scn-page[b-ulczh80prn]  .cp-head-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.scn-page[b-ulczh80prn]  .cp-add {
    margin-bottom: 1rem;
    gap: 0.35rem;
}

.scn-page[b-ulczh80prn]  .cp-add-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.scn-page[b-ulczh80prn]  .cp-add-row .form-control,
.scn-page[b-ulczh80prn]  .cp-add-row .form-select {
    flex: 1 1 18rem;
    max-width: 32rem;
}

.scn-page[b-ulczh80prn]  .cp-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.scn-page[b-ulczh80prn]  a.cp-name {
    text-decoration: none;
}

.scn-page[b-ulczh80prn]  a.cp-name:hover {
    text-decoration: underline;
}

.scn-page[b-ulczh80prn]  .scn-badge.is-builtin {
    background: rgba(9, 105, 218, 0.12);
    color: var(--accent, #0969da);
}

.scn-page[b-ulczh80prn]  .scn-badge.is-missing {
    margin-left: 0;
    background: rgba(207, 34, 46, 0.12);
    color: #cf222e;
}

.scn-page[b-ulczh80prn]  .cp-pill {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(125, 133, 144, 0.16);
    color: var(--text-muted, #6b7280);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.scn-page[b-ulczh80prn]  .cp-name + .cp-pill,
.scn-page[b-ulczh80prn]  .scn-badge + .cp-pill {
    display: table;
}

.scn-page[b-ulczh80prn]  .cp-pill.is-on {
    background: rgba(26, 127, 55, 0.12);
    color: #1a7f37;
}

.scn-page[b-ulczh80prn]  .cp-file-name {
    display: block;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scn-page[b-ulczh80prn]  .cp-file-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.scn-page[b-ulczh80prn]  .cp-upload-btn {
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
}

.scn-page[b-ulczh80prn]  .cp-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.scn-page[b-ulczh80prn]  .cp-name-field {
    max-width: 32rem;
}

.scn-page[b-ulczh80prn]  .cp-section-title {
    margin: 1.25rem 0 0;
    font-size: 1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .cp-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 1rem;
    margin-top: 0.85rem;
}

.scn-page[b-ulczh80prn]  .cp-file-card {
    gap: 0.5rem;
}

.scn-page[b-ulczh80prn]  .cp-no-file {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .cp-busy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .cp-generate {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.scn-page[b-ulczh80prn]  .cp-generate .form-check-label {
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.scn-page[b-ulczh80prn]  .cp-basic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 1rem;
}

.scn-page[b-ulczh80prn]  .cp-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-option-list {
    display: flex;
    flex-direction: column;
}

.scn-page[b-ulczh80prn]  .cp-option-row {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--panel-border, #d0d7de);
}

.scn-page[b-ulczh80prn]  .cp-option-row:first-child {
    border-top: none;
    padding-top: 0;
}

.scn-page[b-ulczh80prn]  .cp-option-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
}

.scn-page[b-ulczh80prn]  .cp-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.scn-page[b-ulczh80prn]  .cp-radios .form-check-label {
    font-variant-numeric: tabular-nums;
}

.scn-page[b-ulczh80prn]  .cp-customer-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-table-title {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-volume-table {
    margin-top: 0.5rem;
}

.scn-page[b-ulczh80prn]  .cp-volume-table th[scope="row"] {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    white-space: nowrap;
}

.scn-page[b-ulczh80prn]  .cp-volume-table tbody tr:last-child th {
    border-bottom: none;
}

.scn-page[b-ulczh80prn]  .cp-volume-table thead th:not(:first-child) {
    text-align: center;
}

.scn-page[b-ulczh80prn]  .cp-num {
    width: 7rem;
    margin: 0 auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.scn-page[b-ulczh80prn]  .cp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(1, 4, 9, 0.5);
}

.scn-page[b-ulczh80prn]  .cp-modal {
    width: min(30rem, 100%);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--panel-border, #d0d7de);
    border-radius: 0.75rem;
    background: var(--panel-bg, #fff);
    color: var(--text-primary, inherit);
    box-shadow: 0 1rem 2.5rem var(--panel-shadow, rgba(31, 35, 40, 0.2));
}

.scn-page[b-ulczh80prn]  .cp-modal h2 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-modal p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, inherit);
}

.scn-page[b-ulczh80prn]  .cp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

@media (max-width: 640px) {
    .scn-page[b-ulczh80prn]  .cp-option-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .scn-page[b-ulczh80prn]  .cp-basic-grid,
    .scn-page[b-ulczh80prn]  .cp-file-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.scn-page[b-ulczh80prn]  .cp-customers-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.scn-page[b-ulczh80prn]  .cp-customers-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.scn-page[b-ulczh80prn]  .cp-customers-intro .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
