/* _content/FinDocAI.Web/Components/FormBuilder/DocFieldRenderer.razor.rz.scp.css */
/* Component-scoped CSS for DocFieldRenderer.
   Blazor compiles these into selectors with a [b-xxxxxx] attribute,
   giving them higher specificity than app.css and Bootstrap. */

/* ── Grid-column span on the outer wrapper (parent is .inv-fields-grid) ── */
.inv-fw-full[b-yllstv82n3]   { grid-column: span 12; }
.inv-fw-half[b-yllstv82n3]   { grid-column: span 6;  }
.inv-fw-third[b-yllstv82n3]  { grid-column: span 4;  }

@media (max-width: 720px) {
    .inv-fw-half[b-yllstv82n3],
    .inv-fw-third[b-yllstv82n3] { grid-column: span 12; }
}

/* ── Field shell ──────────────────────────────────────────────── */
.inv-field[b-yllstv82n3] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    min-width: 0;            /* allow flex item to shrink in CSS Grid track */
    box-sizing: border-box;
}

.inv-field-label[b-yllstv82n3] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.15rem;
    line-height: 1.25;
}

.inv-field-icon[b-yllstv82n3] {
    font-size: 0.82rem;
    opacity: 0.85;
    color: #4f6ef7;
}

.inv-field-required-mark[b-yllstv82n3] {
    color: #ef4444;
    margin-left: 0.15rem;
    font-weight: 700;
}

.inv-field-warn-icon[b-yllstv82n3] {
    margin-left: auto;
    font-size: 0.85rem;
    color: #f59e0b;
}

/* ── Inputs / selects / textareas ─────────────────────────────── */
/* Element selectors + class — beats `.form-control` from Bootstrap
   without needing !important. */
input.inv-field-input[b-yllstv82n3],
select.inv-field-input[b-yllstv82n3],
textarea.inv-field-input[b-yllstv82n3] {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5rem 0.65rem;
    height: auto;
    min-height: 2.4rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #0f172a;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #d4d8e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: auto;
    -webkit-appearance: auto;
}

textarea.inv-field-input[b-yllstv82n3] {
    min-height: 4.75rem;
    resize: vertical;
    overflow: auto;
}

input.inv-field-input:focus[b-yllstv82n3],
select.inv-field-input:focus[b-yllstv82n3],
textarea.inv-field-input:focus[b-yllstv82n3] {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.18);
}

input.inv-field-input:disabled[b-yllstv82n3],
select.inv-field-input:disabled[b-yllstv82n3],
textarea.inv-field-input:disabled[b-yllstv82n3] {
    background-color: #f8f9fa;
    color: #475569;
    cursor: not-allowed;
}

input.inv-field-input.is-invalid[b-yllstv82n3] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* warn modifier */
.inv-field--warn .inv-field-label[b-yllstv82n3]  { color: #b45309; }
.inv-field--warn input.inv-field-input[b-yllstv82n3],
.inv-field--warn select.inv-field-input[b-yllstv82n3],
.inv-field--warn textarea.inv-field-input[b-yllstv82n3] {
    border-color: #f59e0b;
}

/* ── Read-only display ────────────────────────────────────────── */
.inv-field-readonly[b-yllstv82n3] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    min-height: 2.4rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #0f172a;
    word-break: break-word;
}

/* ── Currency wrapper ─────────────────────────────────────────── */
.inv-field-currency-wrap[b-yllstv82n3] {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid #d4d8e0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.inv-field-currency-symbol[b-yllstv82n3] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 0.6rem;
    background: #f3f4f6;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    border-right: 1px solid #d4d8e0;
    user-select: none;
}

input.inv-field-input.inv-field-input--currency[b-yllstv82n3] {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    text-align: right;
    box-shadow: none;
}

input.inv-field-input.inv-field-input--currency:focus[b-yllstv82n3] {
    box-shadow: none;
}

/* ── Validation message ───────────────────────────────────────── */
.invalid-feedback[b-yllstv82n3] {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #ef4444;
}

/* ── Form-check (checkbox) ────────────────────────────────────── */
.form-check[b-yllstv82n3] {
    display: flex;
    align-items: center;
    min-height: 2.4rem;
}
/* _content/FinDocAI.Web/Components/FormBuilder/DocSectionRenderer.razor.rz.scp.css */
/* Component-scoped CSS for DocSectionRenderer.
   Polished card styling shared by every form section — Document Header,
   Vendor / Bill-To, Amounts (summary card), Line Items (repeating table),
   Additional Information (dynamic key/value), Extraction Warnings.
   Section-specific flourishes live in the dedicated rule blocks below. */

.inv-section[b-1kpp9ruyjr] {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 1rem;
    overflow: visible;       /* don't clip nested grid items */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.inv-section:hover[b-1kpp9ruyjr] {
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
}

.inv-section-header[b-1kpp9ruyjr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    border-radius: 12px 12px 0 0;
}

/* Section icon + title layout — bigger icon badge so each section is
   instantly identifiable, title typography that reads as a heading
   instead of competing with field labels. */
.inv-section-header > span:first-child[b-1kpp9ruyjr] {
    gap: 0.6rem !important;
}

.inv-section-header .bi[b-1kpp9ruyjr] {
    width: 28px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border-radius: 8px;
    font-size: 0.92rem !important;
    opacity: 1 !important;
    box-shadow: 0 1px 0 rgba(79, 70, 229, 0.08);
}

.inv-section-header .fw-700[b-1kpp9ruyjr] {
    font-size: 0.95rem !important;
    color: #0f172a;
    letter-spacing: -0.005em;
}

.inv-section-header .badge[b-1kpp9ruyjr] {
    margin-left: 0.35rem;
}

.inv-section-body[b-1kpp9ruyjr] {
    padding: 1.1rem 1.1rem 1.15rem;
}

/* The 12-column field grid lives directly inside .inv-section-body. */
.inv-fields-grid[b-1kpp9ruyjr] {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 0.85rem;
    row-gap: 0.7rem;
    width: 100%;
    align-items: start;
}

/* ::deep — let DocFieldRenderer's outer wrapper participate as a
   grid item even when scoped. (Blazor scoped CSS does not pass
   through child components by default.) */
[b-1kpp9ruyjr] .inv-fw-full   { grid-column: span 12; }
[b-1kpp9ruyjr] .inv-fw-half   { grid-column: span 6;  }
[b-1kpp9ruyjr] .inv-fw-third  { grid-column: span 4;  }

@media (max-width: 720px) {
    [b-1kpp9ruyjr] .inv-fw-half,
    [b-1kpp9ruyjr] .inv-fw-third { grid-column: span 12; }
}

/* ============================================================
   AMOUNTS — world-class summary card layout
   ============================================================
   Replaces the uniform 8-cell grid that made the total visually
   indistinguishable from a tax row. New structure:
     • Left: Subtotal + tax ladder + Total Tax (stacked rows)
     • Right: Hero card with the Total Amount in big brand colour
     • Bottom: Payment status row (Paid green, Balance Due amber)
   The reviewer's eye lands on the headline number first, then
   reads top-to-bottom for the math (Subtotal + Tax = Total). */

.inv-summary[b-1kpp9ruyjr] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.inv-summary-grid[b-1kpp9ruyjr] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.inv-summary-left[b-1kpp9ruyjr] {
    background: #fafbfd;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.inv-summary-row[b-1kpp9ruyjr] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 11rem);
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #475569;
    min-height: 32px;
}

.inv-summary-row-strong[b-1kpp9ruyjr] {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.92rem;
}

.inv-summary-label[b-1kpp9ruyjr] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.inv-summary-tax[b-1kpp9ruyjr] {
    color: #64748b;
    font-size: 0.8rem;
}

.inv-summary-tax .bi[b-1kpp9ruyjr] {
    font-size: 0.7rem;
    color: #94a3b8;
}

.inv-summary-divider[b-1kpp9ruyjr] {
    border-top: 1px dashed #cbd5e1;
    margin: 0.2rem 0;
}

.inv-summary-input[b-1kpp9ruyjr] {
    justify-self: end;
    width: 100%;
}

/* Hero Total card — the number reviewers' eyes should hit first. */
.inv-summary-right[b-1kpp9ruyjr] {
    display: flex;
}

.inv-hero-card[b-1kpp9ruyjr] {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #818cf8 100%);
    border-radius: 12px;
    color: #fff;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.55);
    position: relative;
    overflow: hidden;
}

.inv-hero-card[b-1kpp9ruyjr]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}

.inv-hero-label[b-1kpp9ruyjr] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.92;
}

.inv-hero-required[b-1kpp9ruyjr] {
    color: #fde68a;
    font-weight: 800;
}

.inv-hero-value[b-1kpp9ruyjr] {
    margin-top: 0.5rem;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.inv-hero-currency[b-1kpp9ruyjr] {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* Payment status — Paid (green) and Balance Due (amber) side-by-side. */
.inv-payment-row[b-1kpp9ruyjr] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.inv-payment-cell[b-1kpp9ruyjr] {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    border: 1px solid transparent;
}

.inv-payment-paid[b-1kpp9ruyjr] {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.inv-payment-due[b-1kpp9ruyjr] {
    background: #fffbeb;
    border-color: #fde68a;
}

.inv-payment-label[b-1kpp9ruyjr] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.inv-payment-paid .inv-payment-label[b-1kpp9ruyjr] { color: #047857; }
.inv-payment-due  .inv-payment-label[b-1kpp9ruyjr] { color: #92400e; }

/* Compact / Hero field-renderer modes — feed the summary layout. */
[b-1kpp9ruyjr] .inv-fw-compact {
    grid-column: auto;
    width: 100%;
}

[b-1kpp9ruyjr] .inv-fw-hero {
    grid-column: auto;
    width: 100%;
}

[b-1kpp9ruyjr] .inv-field--compact .inv-field-input,
[b-1kpp9ruyjr] .inv-field--compact input {
    text-align: right;
    font-weight: 600;
    background: #fff;
}

/* Hero mode: the input sits *inside* the brand-gradient card, so the entire
   currency wrapper has to drop its solid white background — otherwise the
   value would render in white text on a white slab and look empty. */
[b-1kpp9ruyjr] .inv-field--hero {
    width: 100%;
}

[b-1kpp9ruyjr] .inv-field--hero .inv-field-currency-wrap {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 8px;
    overflow: hidden;
}

[b-1kpp9ruyjr] .inv-field--hero .inv-field-currency-symbol {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[b-1kpp9ruyjr] .inv-field--hero .inv-field-input,
[b-1kpp9ruyjr] .inv-field--hero input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    padding: 0.45rem 0.7rem !important;
    box-shadow: none !important;
}

[b-1kpp9ruyjr] .inv-field--hero .inv-field-input:focus,
[b-1kpp9ruyjr] .inv-field--hero input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[b-1kpp9ruyjr] .inv-field--hero .inv-field-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* Hero readonly fallback (when the form is in read-only mode the input is
   replaced with a div) — apply the same transparent treatment. */
[b-1kpp9ruyjr] .inv-field--hero .inv-field-readonly {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    color: #fff !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Stack on narrow screens so hero card moves below the ladder. */
@media (max-width: 860px) {
    .inv-summary-grid[b-1kpp9ruyjr] { grid-template-columns: 1fr; }
    .inv-payment-row[b-1kpp9ruyjr]  { grid-template-columns: 1fr; }
}

/* ============================================================
   REPEATING TABLE (Line Items, Tax Breakdown, Employees)
   ============================================================
   Styled to match the polish of the summary card — striped rows,
   sticky header, generous padding, hover state. Replaces the
   plain Bootstrap-ish `data-table` look that felt cramped. */

.inv-section-body .data-table[b-1kpp9ruyjr] {
    /* Content-driven width with a 100% floor so columns expand to their natural
       size and the wrapper produces a horizontal scrollbar when the row is
       wider than the card. Previously `width: 100%` squashed columns and
       text-overflow:ellipsis hid the values silently. */
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    font-size: 0.84rem;
}

/* Per-cell minimums so each column has breathing room even at content-driven width. */
.inv-section-body .data-table th[b-1kpp9ruyjr],
.inv-section-body .data-table td[b-1kpp9ruyjr] {
    min-width: 80px;
}

.inv-section-body .data-table th:first-child[b-1kpp9ruyjr],
.inv-section-body .data-table td:first-child[b-1kpp9ruyjr] {
    min-width: 40px;
}

.inv-section-body .data-table thead th[b-1kpp9ruyjr] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.inv-section-body .data-table tbody td[b-1kpp9ruyjr] {
    padding: 0.55rem 0.75rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.inv-section-body .data-table tbody tr:nth-child(even) td[b-1kpp9ruyjr] {
    background: #fafbfd;
}

.inv-section-body .data-table tbody tr:hover td[b-1kpp9ruyjr] {
    background: #eef2ff;
}

.inv-section-body .data-table tbody tr:last-child td[b-1kpp9ruyjr] {
    border-bottom: none;
}

/* Compact the in-row inputs so the table doesn't double its height. */
[b-1kpp9ruyjr] .data-table .inv-field {
    gap: 0;
}

[b-1kpp9ruyjr] .data-table .inv-field-label {
    display: none;  /* the table thead is the label */
}

[b-1kpp9ruyjr] .data-table input.inv-field-input,
[b-1kpp9ruyjr] .data-table select.inv-field-input {
    min-height: 2rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.82rem;
}

[b-1kpp9ruyjr] .data-table .inv-field-currency-wrap {
    border-radius: 5px;
}

[b-1kpp9ruyjr] .data-table .inv-field-currency-symbol {
    padding: 0 0.45rem;
    font-size: 0.78rem;
}

/* Scroll wrapper around the table — visible scrollbar when content overflows
   the card. Match the look of the Finance preview's line-items wrapper so
   reviewers see the same scroll affordance everywhere. */
.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr] {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr]::-webkit-scrollbar { height: 10px; }
.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr]::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr]::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.inv-section-body > div[style*="overflow-x"][b-1kpp9ruyjr] { scrollbar-width: thin; scrollbar-color: #cbd5e1 #f1f5f9; }

.inv-section-body > div[style*="overflow-x"] .data-table[b-1kpp9ruyjr] {
    border: none;
    border-radius: 0;
}

/* Empty-state inside a section — friendlier than a single muted line. */
.inv-section-body p.text-muted[b-1kpp9ruyjr] {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1rem 1rem !important;
    text-align: center;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

/* ============================================================
   ADDITIONAL INFORMATION — dynamic key / value tiles
   ============================================================
   Reads as a panel of labelled values rather than a flat 2-column
   grid. Each entry is its own little card so a long value (claim
   number, settlement reference) doesn't bleed into the next row. */

.inv-section-body .inv-fields-grid + p[b-1kpp9ruyjr] {
    margin-top: 0;
}

[b-1kpp9ruyjr] .inv-field-readonly {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #0f172a;
    font-size: 0.85rem;
    border-radius: 7px;
}

/* Soft highlight on hover so reviewers feel they can interact. */
[b-1kpp9ruyjr] .inv-field:hover .inv-field-readonly {
    background: #f1f5f9;
}

/* ============================================================
   FIELD LABEL polish — required asterisk, warning icon, icon hue
   ============================================================ */

[b-1kpp9ruyjr] .inv-field-label {
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.005em;
}

[b-1kpp9ruyjr] .inv-field-icon {
    color: #6366f1;
    background: #eef2ff;
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 0.72rem !important;
    margin-right: 0.1rem;
}

[b-1kpp9ruyjr] .inv-field--required .inv-field-label {
    color: #1e293b;
}

[b-1kpp9ruyjr] .inv-field-required-mark {
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
    font-weight: 700;
}

[b-1kpp9ruyjr] .inv-field--warn .inv-field-label {
    color: #b45309;
}

[b-1kpp9ruyjr] .inv-field-warn-icon {
    color: #d97706;
}

/* ============================================================
   "Add Row" button polish for repeating sections
   ============================================================ */
.inv-section-body > div[style*="overflow-x"] + .btn[b-1kpp9ruyjr],
.inv-section-body .btn[class*="btn-outline"][b-1kpp9ruyjr] {
    border-style: dashed;
}

/* ============================================================
   PAYROLL ROSTER — employee-first table for the Employees section
   ============================================================
   Mirrors AddPayroll.razor's "Pay & Deductions" grid so the
   extracted-document preview and the manual entry screen feel
   like the same app. Hero employee cell on the left, currency
   columns right-aligned with a brand-colour Gross and a green
   Net Pay, totals row pinned at the bottom. */

.pr-roster-wrap[b-1kpp9ruyjr] {
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pr-roster-wrap[b-1kpp9ruyjr]::-webkit-scrollbar          { height: 10px; }
.pr-roster-wrap[b-1kpp9ruyjr]::-webkit-scrollbar-track    { background: #f1f5f9; border-radius: 4px; }
.pr-roster-wrap[b-1kpp9ruyjr]::-webkit-scrollbar-thumb    { background: #cbd5e1; border-radius: 4px; }
.pr-roster-wrap[b-1kpp9ruyjr]::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.pr-roster-wrap[b-1kpp9ruyjr]                             { scrollbar-width: thin; scrollbar-color: #cbd5e1 #f1f5f9; }

.pr-roster[b-1kpp9ruyjr] {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}

.pr-roster thead th[b-1kpp9ruyjr] {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.6rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: right;
}

.pr-roster thead th.col-emp[b-1kpp9ruyjr],
.pr-roster thead th.col-dept[b-1kpp9ruyjr],
.pr-roster thead th.col-pos[b-1kpp9ruyjr] {
    text-align: left;
}

.pr-roster thead th.col-emp[b-1kpp9ruyjr] { min-width: 160px; }
.pr-roster thead th.col-gross[b-1kpp9ruyjr],
.pr-roster thead th.col-net[b-1kpp9ruyjr] { color: #4f46e5; }
.pr-roster thead th.col-net[b-1kpp9ruyjr] { color: #16a34a; }
.pr-roster thead th.col-rm[b-1kpp9ruyjr]  { width: 30px; }

.pr-roster tbody td[b-1kpp9ruyjr] {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    text-align: right;
    color: #1e293b;
    white-space: nowrap;
}

.pr-roster tbody tr:hover td[b-1kpp9ruyjr] { background: #fafbff; }
.pr-roster tbody tr:last-child td[b-1kpp9ruyjr] { border-bottom: none; }

.pr-roster .emp-cell[b-1kpp9ruyjr] {
    text-align: left;
    padding: 0.5rem 0.7rem;
}

.pr-roster .emp-name[b-1kpp9ruyjr] {
    font-weight: 700;
    font-size: 0.86rem;
    color: #1e293b;
    letter-spacing: 0.005em;
}

.pr-roster .emp-id[b-1kpp9ruyjr] {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 1px;
}

.pr-roster .dept-cell[b-1kpp9ruyjr] {
    text-align: left;
    padding: 0 0.5rem;
}

.pr-roster .dept-badge[b-1kpp9ruyjr] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pr-roster .cell-num[b-1kpp9ruyjr]   { text-align: right; }
.pr-roster .cell-gross[b-1kpp9ruyjr] { color: #4f46e5; font-weight: 700; }
.pr-roster .cell-net[b-1kpp9ruyjr]   { color: #16a34a; font-weight: 800; }

.pr-roster tfoot.pr-roster-totals[b-1kpp9ruyjr],
.pr-roster .pr-roster-totals td[b-1kpp9ruyjr] {
    background: #f8fafc;
    font-weight: 700;
    border-top: 2px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
}

.pr-roster .pr-roster-totals td.cell-gross[b-1kpp9ruyjr] { color: #4f46e5; }
.pr-roster .pr-roster-totals td.cell-net[b-1kpp9ruyjr]   { color: #16a34a; }

.pr-roster .ts-remove-btn[b-1kpp9ruyjr] {
    width: 24px; height: 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.pr-roster .ts-remove-btn:hover[b-1kpp9ruyjr] {
    background: #fee2e2;
    color: #ef4444;
}

/* Compact the in-cell currency / number inputs so the table
   stays dense even when the form is in edit mode. */
[b-1kpp9ruyjr] .pr-roster input.inv-field-input,
[b-1kpp9ruyjr] .pr-roster select.inv-field-input {
    min-height: 1.85rem;
    padding: 0.25rem 0.45rem;
    font-size: 0.8rem;
    text-align: right;
}

[b-1kpp9ruyjr] .pr-roster .inv-field-label {
    display: none;  /* the table thead is the label */
}

[b-1kpp9ruyjr] .pr-roster .inv-field-currency-wrap {
    border-radius: 5px;
}

[b-1kpp9ruyjr] .pr-roster .inv-field-currency-symbol {
    padding: 0 0.4rem;
    font-size: 0.74rem;
}
/* _content/FinDocAI.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-2981m470jo] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-2981m470jo] {
    flex: 1;
    min-width: 0;
}

/* kill old Blazor template shell styles */
.sidebar[b-2981m470jo] {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
}

.top-row[b-2981m470jo],
article[b-2981m470jo] {
    all: unset;
}

@media (min-width: 641px) {
    .page[b-2981m470jo] {
        flex-direction: column !important;
    }

    .sidebar[b-2981m470jo] {
        width: auto !important;
        height: auto !important;
        position: relative !important;
        top: auto !important;
    }

    .top-row[b-2981m470jo],
    article[b-2981m470jo] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

#blazor-error-ui[b-2981m470jo] {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    width: auto;
    max-width: 420px;
    padding: 14px 18px;
    background: #b32121;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    z-index: 9999;
    align-items: center;
    gap: 10px;
}

    #blazor-error-ui a[b-2981m470jo] {
        color: #fff;
        font-weight: 600;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss[b-2981m470jo] {
        cursor: pointer;
        margin-left: 8px;
        font-size: 16px;
    }
/* _content/FinDocAI.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* completely disable the old Blazor nav template styles */

.navbar-toggler[b-cne4ffhk6n],
.top-row[b-cne4ffhk6n],
.navbar-brand[b-cne4ffhk6n],
.nav-scrollable[b-cne4ffhk6n],
.nav-item[b-cne4ffhk6n] {
    all: unset;
}

.bi-house-door-fill-nav-menu[b-cne4ffhk6n],
.bi-plus-square-fill-nav-menu[b-cne4ffhk6n],
.bi-list-nested-nav-menu[b-cne4ffhk6n] {
    background-image: none !important;
}

/* IMPORTANT:
   the old file had a global .bi rule.
   that breaks bootstrap icons everywhere.
   remove it completely. */

.nav-item[b-cne4ffhk6n]  .nav-link,
.nav-item[b-cne4ffhk6n]  a.active,
.nav-item[b-cne4ffhk6n]  .nav-link:hover {
    all: unset;
}
/* _content/FinDocAI.Web/Components/Shared/JobAggregatePanel.razor.rz.scp.css */
/* JobAggregatePanel — surfaces parent + per-child aggregate status.
   Designed to inline neatly inside a workbook row OR stand alone on a
   detail view. Colours follow the rest of the workbook surface so an
   approved aggregate and an approved row share the same visual cue. */

.job-aggregate-panel[b-bad7zrthg0] {
    border: 1px solid var(--workbook-border, #d0d7de);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    background: var(--workbook-row-bg, #ffffff);
    font-size: 0.875rem;
    line-height: 1.4;
}

.job-aggregate-loading[b-bad7zrthg0] {
    color: var(--text-muted, #57606a);
    font-style: italic;
}

.job-aggregate-header[b-bad7zrthg0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.job-aggregate-status[b-bad7zrthg0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-aggregate-status-pill[b-bad7zrthg0] {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    background: var(--pill-default-bg, #ddf4ff);
    color:      var(--pill-default-fg, #0969da);
}

.job-aggregate-summary[b-bad7zrthg0] {
    color: var(--text-muted, #57606a);
}

.job-aggregate-counts[b-bad7zrthg0] {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.job-aggregate-count[b-bad7zrthg0] {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.job-aggregate-count.ok[b-bad7zrthg0]      { background: #dafbe1; color: #1a7f37; }
.job-aggregate-count.review[b-bad7zrthg0]  { background: #fff8c5; color: #9a6700; }
.job-aggregate-count.error[b-bad7zrthg0]   { background: #ffebe9; color: #cf222e; }

/* Status-driven colouring of the whole panel */
.job-aggregate-ok[b-bad7zrthg0]       { border-left: 4px solid #1a7f37; }
.job-aggregate-review[b-bad7zrthg0]   { border-left: 4px solid #9a6700; }
.job-aggregate-error[b-bad7zrthg0]    { border-left: 4px solid #cf222e; }
.job-aggregate-inflight[b-bad7zrthg0] { border-left: 4px solid #0969da; }

/* Expandable per-child detail */
.job-aggregate-details[b-bad7zrthg0] {
    margin-top: 0.65rem;
}

.job-aggregate-details > summary[b-bad7zrthg0] {
    cursor: pointer;
    color: var(--text-muted, #57606a);
    font-weight: 500;
    padding: 0.2rem 0;
}

.job-aggregate-children[b-bad7zrthg0] {
    list-style: none;
    padding: 0.25rem 0 0 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
}

.job-aggregate-child[b-bad7zrthg0] {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--row-alt-bg, #f6f8fa);
}

.job-aggregate-child-name[b-bad7zrthg0] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-aggregate-child-type[b-bad7zrthg0],
.job-aggregate-child-pages[b-bad7zrthg0],
.job-aggregate-child-status[b-bad7zrthg0] {
    font-size: 0.8rem;
    color: var(--text-muted, #57606a);
    white-space: nowrap;
}

.job-aggregate-child-status[b-bad7zrthg0] {
    font-weight: 500;
    color: var(--text-default, #1f2328);
}
