/* /Auth/Login.razor.rz.scp.css */
/* ── Login Page ─────────────────────────────────────────────── */

.login-container[b-z9wi9pe7yj] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #16243a 0%, #2563eb 100%);
    padding: 1rem;
    box-sizing: border-box;
}

.login-card[b-z9wi9pe7yj] {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-brand[b-z9wi9pe7yj] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.35rem;
}

.login-brand-mark[b-z9wi9pe7yj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding-right: 5px;
    color: #2563eb;
}

.login-brand-text[b-z9wi9pe7yj] {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.login-brand-name[b-z9wi9pe7yj] {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #16243a;
}

.login-brand-sub[b-z9wi9pe7yj] {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #5b86c9;
}

.login-subtitle[b-z9wi9pe7yj] {
    color: #6c757d;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.form-group[b-z9wi9pe7yj] {
    margin-bottom: 1rem;
}

.form-group label[b-z9wi9pe7yj] {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

[b-z9wi9pe7yj] .form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

[b-z9wi9pe7yj] .form-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-login[b-z9wi9pe7yj] {
    width: 100%;
    padding: 0.6rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-login:hover:not(:disabled)[b-z9wi9pe7yj] {
    background: #1d4ed8;
}

.btn-login:disabled[b-z9wi9pe7yj] {
    opacity: 0.65;
    cursor: not-allowed;
}

.alert-error[b-z9wi9pe7yj] {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    font-size: 0.875rem;
}

.alert-success[b-z9wi9pe7yj] {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    border-radius: 4px;
    font-size: 0.875rem;
}

.login-hint[b-z9wi9pe7yj] {
    margin: -0.25rem 0 0.75rem 0;
    color: #6c757d;
    font-size: 0.78rem;
    line-height: 1.35;
}

.login-footer[b-z9wi9pe7yj] {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eceff3;
    text-align: center;
}

.link-button[b-z9wi9pe7yj] {
    background: none;
    border: none;
    padding: 0;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.link-button:hover[b-z9wi9pe7yj] {
    color: #1d4ed8;
    text-decoration: underline;
}
/* /Components/WorkbookViewerLite.razor.rz.scp.css */
/* Read-only HTML workbook grid. Layout goals:
   - One scroll container; native scrolling drives everything (no interop).
   - Header row pinned with position:sticky top; row-number column pinned left.
   - Fixed cell widths so the virtualized rows line up with the header.
   The px constants here MUST match ROW_HEIGHT / ROW_NUM_WIDTH / COL_WIDTH in the
   component's @code block, or the header and body columns drift apart and
   Virtualize mis-estimates scroll height. */

/* Flex column root: tabs and the truncation note size to content, the scroll
   grid takes the remaining height — so its horizontal scrollbar stays inside
   the pane even when the sheet-tab strip renders. */
.wvl-root[b-wnnvn18ff2] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.wvl-tabs[b-wnnvn18ff2] {
    flex: 0 0 auto;
    display: flex;
    gap: 2px;
    padding: 4px 4px 0;
    background: var(--surface-sunken, #f1f3f5);
    border-bottom: 1px solid var(--line, #dee2e6);
    overflow-x: auto;
}

.wvl-tab[b-wnnvn18ff2] {
    border: 1px solid var(--line, #dee2e6);
    border-bottom: none;
    background: var(--surface-page, #fff);
    color: var(--ink-muted, #6c757d);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    white-space: nowrap;
}

.wvl-tab.active[b-wnnvn18ff2] {
    color: var(--brand-accent, #0d6efd);
    font-weight: 600;
    background: var(--surface-card, #fff);
    box-shadow: inset 0 -2px 0 var(--brand-accent, #0d6efd);
}

.wvl-scroll[b-wnnvn18ff2] {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    background: var(--surface-card, #fff);
    /* Crisp tabular text */
    font-variant-numeric: tabular-nums;
}

.wvl-grid[b-wnnvn18ff2] {
    position: relative;
    /* width set inline from column count */
}

.wvl-row[b-wnnvn18ff2] {
    display: flex;
    height: 24px; /* == ROW_HEIGHT */
}

.wvl-cell[b-wnnvn18ff2] {
    flex: 0 0 120px; /* == COL_WIDTH */
    width: 120px;
    box-sizing: border-box;
    padding: 0 6px;
    line-height: 23px;
    font-size: 12px;
    color: var(--ink, #212529);
    border-right: 1px solid var(--line, #e9ecef);
    border-bottom: 1px solid var(--line, #e9ecef);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--surface-card, #fff);
}

/* Row-number gutter — pinned to the left edge. */
.wvl-rownum[b-wnnvn18ff2] {
    flex: 0 0 56px; /* == ROW_NUM_WIDTH */
    width: 56px;
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: center;
    color: var(--ink-muted, #6c757d);
    background: var(--surface-sunken, #f8f9fa);
    border-right: 1px solid var(--line-strong, #ced4da);
    font-size: 11px;
}

/* Header row — pinned to the top. */
.wvl-head[b-wnnvn18ff2] {
    position: sticky;
    top: 0;
    z-index: 2;
}

.wvl-colhead[b-wnnvn18ff2] {
    text-align: center;
    font-weight: 600;
    color: var(--ink-muted, #495057);
    background: var(--surface-sunken, #f1f3f5);
    border-bottom: 1px solid var(--line-strong, #ced4da);
}

/* Top-left corner — pinned both ways, above everything. */
.wvl-corner[b-wnnvn18ff2] {
    position: sticky;
    left: 0;
    z-index: 3;
    flex: 0 0 56px;
    width: 56px;
    background: var(--surface-sunken, #e9ecef);
    border-right: 1px solid var(--line-strong, #ced4da);
    border-bottom: 1px solid var(--line-strong, #ced4da);
}

/* Selected source row highlight. */
.wvl-row.selected .wvl-cell[b-wnnvn18ff2] {
    background: var(--brand-accent-soft, #cfe2ff);
}

.wvl-row.selected .wvl-rownum[b-wnnvn18ff2] {
    background: var(--brand-accent, #0d6efd);
    color: #fff;
}

.wvl-row:hover .wvl-cell[b-wnnvn18ff2] {
    background: var(--surface-sunken, #f1f3f5);
    cursor: pointer;
}

.wvl-row.selected:hover .wvl-cell[b-wnnvn18ff2] {
    background: var(--brand-accent-soft, #cfe2ff);
}

.wvl-truncated[b-wnnvn18ff2] {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--ink-muted, #6c757d);
    background: var(--surface-sunken, #fff3cd);
    border-top: 1px solid var(--line, #dee2e6);
}
/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-qap8dqjydg] {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    background: #f4f7fb;
    overflow: hidden;
}

.sidebar[b-qap8dqjydg] {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #16243a;
}

main[b-qap8dqjydg] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.main-content[b-qap8dqjydg] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 18px 20px 24px;
    overflow: hidden;
}

@media (max-width: 1120px) {
    .app-shell[b-qap8dqjydg] {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .sidebar[b-qap8dqjydg] {
        position: static;
        height: auto;
    }

    .main-content[b-qap8dqjydg] {
        padding: 14px;
        overflow: visible;
    }
}

.client-update-banner[b-qap8dqjydg] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    color: #7c2d12;
    border-bottom: 1px solid #f59e0b;
    font-size: 0.88rem;
    font-weight: 600;
    flex-shrink: 0;
}

.client-update-refresh[b-qap8dqjydg] {
    border: 0;
    background: transparent;
    color: #9a3412;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.nav-shell[b-p9lx5lewx7] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px 14px;
    color: #eef5ff;
}

.brand-block[b-p9lx5lewx7] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 2px 6px 10px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark[b-p9lx5lewx7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding-right: 5px;
    color: #bfdbfe;
}

.brand-text[b-p9lx5lewx7] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
}

.brand-name[b-p9lx5lewx7] {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #ffffff;
}

.brand-subtitle[b-p9lx5lewx7] {
    margin-top: 2px;
    color: #9fb6d1;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

.menu-toggle[b-p9lx5lewx7] {
    display: none;
    width: 36px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span[b-p9lx5lewx7] {
    display: block;
    width: 16px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
}

.nav-scrollable[b-p9lx5lewx7] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.nav-stack[b-p9lx5lewx7] {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

a.nav-item[b-p9lx5lewx7] {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #dce8f7;
    text-decoration: none !important;
}

a.nav-item:hover[b-p9lx5lewx7] {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none !important;
}

a.nav-item.active[b-p9lx5lewx7] {
    border-color: rgba(246, 199, 93, 0.34);
    background: #f4f7fb;
    color: #172033;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    text-decoration: none !important;
}

a.nav-item:focus-visible[b-p9lx5lewx7] {
    outline: 2px solid #f6c75d;
    outline-offset: 2px;
}

.nav-icon[b-p9lx5lewx7] {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

a.nav-item.active .nav-icon[b-p9lx5lewx7] {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

a.nav-item.active .nav-icon[b-p9lx5lewx7]  svg {
    color: #fff;
}

.nav-icon[b-p9lx5lewx7]::before,
.nav-icon[b-p9lx5lewx7]::after {
    content: "";
    position: absolute;
    border-radius: 2px;
}

.nav-icon-library[b-p9lx5lewx7]::before {
    left: 8px;
    top: 8px;
    width: 18px;
    height: 20px;
    border: 2px solid currentColor;
    border-top-width: 5px;
}

.nav-icon-workbench[b-p9lx5lewx7]::before {
    left: 7px;
    top: 9px;
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
}

.nav-icon-workbench[b-p9lx5lewx7]::after {
    left: 12px;
    top: 14px;
    width: 10px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.nav-icon-formats[b-p9lx5lewx7]::before {
    left: 8px;
    top: 8px;
    width: 18px;
    height: 20px;
    border: 2px solid currentColor;
}

.nav-icon-formats[b-p9lx5lewx7]::after {
    left: 13px;
    top: 14px;
    width: 8px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.nav-icon-offers[b-p9lx5lewx7]::before {
    left: 8px;
    top: 10px;
    width: 18px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.nav-icon-offers[b-p9lx5lewx7]::after {
    left: 16px;
    top: 7px;
    width: 2px;
    height: 20px;
    background: currentColor;
}

.nav-text[b-p9lx5lewx7] {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nav-title[b-p9lx5lewx7] {
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.15;
}

.nav-caption[b-p9lx5lewx7] {
    color: #aebfd3;
    font-size: 0.72rem;
    line-height: 1.1;
}

a.nav-item.active .nav-caption[b-p9lx5lewx7] {
    color: #5f6b7a;
}

.nav-footer[b-p9lx5lewx7] {
    margin-top: auto;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.small-label[b-p9lx5lewx7] {
    margin-bottom: 6px;
    color: #a9bfd8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.storage-line[b-p9lx5lewx7] {
    font-size: 0.84rem;
    line-height: 1.4;
}

.muted[b-p9lx5lewx7] {
    color: #b9c9dc;
}

@media (max-width: 1120px) {
    .nav-shell[b-p9lx5lewx7] {
        min-height: 0;
        padding: 12px;
    }

    .brand-block[b-p9lx5lewx7] {
        padding-bottom: 12px;
    }

    .menu-toggle[b-p9lx5lewx7] {
        display: block;
    }

    .collapse[b-p9lx5lewx7] {
        display: none;
    }

    .nav-stack[b-p9lx5lewx7] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 12px;
    }

    a.nav-item[b-p9lx5lewx7] {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 68px;
        text-align: center;
    }

    .nav-caption[b-p9lx5lewx7] {
        display: none;
    }

    .nav-footer[b-p9lx5lewx7] {
        display: none;
    }
}

@media (min-width: 1121px) {
    .collapse[b-p9lx5lewx7] {
        display: flex;
    }
}
/* /Layout/UserMenu.razor.rz.scp.css */
/* Account menu pinned to the bottom of the dark sidebar. The popover opens
   upward (above the trigger) since there is no room below. */
.user-menu[b-pqe26o756a] {
    position: relative;
    margin-top: auto;
    padding-top: 14px;
}

.user-trigger[b-pqe26o756a] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #eef5ff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.user-trigger:hover[b-pqe26o756a],
.user-trigger.open[b-pqe26o756a] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.user-avatar[b-pqe26o756a] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.user-meta[b-pqe26o756a] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.user-name[b-pqe26o756a] {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role[b-pqe26o756a] {
    font-size: .72rem;
    color: #aebfd3;
    line-height: 1.1;
}

.user-caret[b-pqe26o756a] {
    flex: 0 0 auto;
    color: #aebfd3;
    font-size: .7rem;
}

.user-popover[b-pqe26o756a] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    padding: 6px;
    z-index: 61;
}

.user-popover-head[b-pqe26o756a] {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 4px;
}

.user-popover-name[b-pqe26o756a] {
    font-weight: 700;
    color: #16243a;
    font-size: .92rem;
}

.user-popover-email[b-pqe26o756a] {
    color: #6b7a90;
    font-size: .8rem;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-popover-item[b-pqe26o756a] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #16243a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.user-popover-item:hover[b-pqe26o756a] {
    background: #f1f5fb;
}

.user-popover-icon[b-pqe26o756a] {
    font-size: .95rem;
    color: #6b7a90;
}

.user-backdrop[b-pqe26o756a] {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: transparent;
}
