/* The Rookery — M3 Invoices (INV-2 + INV-3)
   The global register wears Billdr's invoices-list dress (the
   Expenses register conventions, expenses.css); the record
   wears the money tools' paper dress (quotes paper +
   change-orders meta). Gold sits on the one number that
   matters per surface: the receivable card in the register,
   the doc Total on the paper, the Balance on a summary. */

.inv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-tab {
  border: 1px solid var(--line); background: var(--card-bg, #fff); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.inv-tab.active { background: var(--navy, #0B2235); color: #fff; border-color: var(--navy, #0B2235); }

/* Totals cards (Billdr's three-card header row) */
.inv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.inv-cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inv-card {
  background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px;
}
.inv-card-k { margin: 0 0 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.inv-card-v { margin: 0; font-size: 22px; font-weight: 650; }
.inv-card-v.gold { color: #b98f3e; }
.inv-card-note { margin: 0; color: var(--muted); font-size: 14px; }

/* Filter bar (Billdr's native select discipline) */
.inv-filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.inv-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.inv-f input, .inv-f select {
  font: inherit; font-size: 14px; color: var(--ink); padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg, #fff);
}
.inv-f-grow { flex: 1 1 220px; }
.inv-f-grow input { width: 100%; }

.inv-table td { vertical-align: top; }
.inv-ref { font-weight: 650; white-space: nowrap; }
.inv-client { font-weight: 600; }
.inv-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.inv-qb { display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle; }
.inv-qb-mark { display: block; }
.inv-row { cursor: pointer; }

/* Status pills (stored + derived label, one pill shape) */
.inv-pill {
  display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px;
  font-weight: 600; background: #eef1f4; color: var(--muted); white-space: nowrap;
}
.inv-pill-paid { background: #e3f5ea; color: #177348; }
.inv-pill-sent { background: #e7eef7; color: #245a86; }
.inv-pill-partial { background: #fdf3e0; color: #8a5a12; }
.inv-pill-draft { background: #eef1f4; color: var(--muted); }
.inv-pill-void { background: #f7e5e5; color: #9a3030; }
.inv-badge-warn {
  display: inline-block; margin-left: 8px; border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; background: #fdf3e0; color: #8a5a12;
}

/* Record mode: the context bar + the head */
.inv-context {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.inv-context p { margin: 0; font-size: 14px; }
.inv-rec-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
/* wave244 (2026-10-29, audit walk): bottom clearance on the record
 * body so the editor's last block (Payment options, the pricing
 * ledger) can always be scrolled clear of the floating Messages
 * dock, which parks at the content's bottom-left on this view
 * (chat.css). */
#inv-rec-body { padding-bottom: 104px; }
.inv-rec-title h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.inv-rec-title p { margin: 4px 0 0; color: var(--muted); }
.inv-rec-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.inv-parallel-tag { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.inv-draft-note {
  background: #fdf3e0; border: 1px solid #ecd9a8; color: #6b4b10; border-radius: 10px;
  padding: 10px 14px; margin: 0 0 12px;
}

/* The client paper */
.inv-paper {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px 22px; overflow: hidden;
}
.invd-band {
  margin: 0 -22px 16px; padding: 14px 22px; background: #0B2235; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.invd-band img { height: 44px; }
.invd-biz-name { font-size: 18px; font-weight: 700; }
.invd-biz { color: #d6dde5; font-size: 12.5px; margin-top: 3px; }
.invd-band-right { text-align: right; }
.invd-band-right .invd-biz { text-align: right; }
.invd-eyebrow { color: #CDAE72; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; margin: 0 0 4px; }
.invd-band-ref { font-size: 18px; font-weight: 700; }
.invd-title { font-size: 20px; margin: 4px 0 14px; }
.invd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.invd-fact-k { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.invd-fact-strong { font-weight: 650; font-size: 15px; }
.invd-fact { margin: 0 0 3px; }
.invd-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.invd-table th {
  text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 4px;
}
.invd-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invd-group td { font-weight: 650; background: #f6f8fa; }
.invd-totals { margin: 14px 0 0 auto; width: min(300px, 100%); }
.invd-totals p { display: flex; justify-content: space-between; margin: 0 0 6px; }
.invd-totals .invd-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; }
.invd-total b { color: #b98f3e; }
.invd-h { margin: 18px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.invd-text { margin: 0; white-space: pre-wrap; }

/* Payments panel (Billdr's summary block) */
.inv-panel {
  background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-top: 16px;
}
.inv-panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-panel-head h3 { margin: 0; font-size: 16px; }
.inv-panel-head .grow { flex: 1; }
.inv-panel-figures { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 8px; }
.inv-panel-figures p { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.inv-panel-figures b { display: block; color: var(--ink); font-size: 18px; margin-top: 2px; text-transform: none; letter-spacing: 0; }
.inv-payline {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.inv-payline .grow { flex: 1; min-width: 180px; }
.inv-payline .t { margin: 0; font-weight: 600; }
.inv-payline .s { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

/* Your view: meta + ledger + editor */
.inv-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 14px; }
.inv-meta-grid p { margin: 0; }
.inv-meta-grid span { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.inv-ledger { margin: 10px 0 0 auto; width: min(320px, 100%); }
.inv-ledger p { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 6px; }
.inv-ledger .inv-ledger-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 16px; }
.inv-ledger .inv-ledger-total b { color: #b98f3e; }
.inv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.inv-grid input { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; }
.inv-grid .inv-li-num { text-align: right; }
.inv-li-btns { white-space: nowrap; }
.inv-line-detail td { background: #f8fafc; }
.inv-line-detail .qm-field { display: inline-flex; flex-direction: column; gap: 4px; margin-right: 14px; }
.inv-addrow { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-edit-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 8px; }
.inv-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.inv-payopts { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.inv-payopts-k { margin: 0 0 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.inv-pricing .inv-ledger { margin-left: 0; width: 100%; }
.inv-mode-toggle { display: flex; gap: 6px; margin-bottom: 10px; }
#inv-e-taxpct { width: 44px; font: inherit; font-size: 13px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 6px; }
.inv-problems { background: #f7e5e5; border: 1px solid #e0b4b4; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.inv-problems p { margin: 4px 0; color: #7c2626; }

/* ======================= DW1 · Invoices (design wave, 2026-10-17) ======================= */
/* Capture §3. Global register = #view-invoices / #inv-g-root
 * (invoices.js, Invoices | Payments); the project tab = #inv-p-body
 * under the same .inv-tabs (Summary | Invoices | Payments | Credit
 * memos); the record head = invoices-record.js. The filter bar's dress
 * is in parity6.css's DW1 block. */

/* Page head: H1 with the grey count pill beside it ("6 invoices",
 * #inv-g-count), "+ New invoice" pinned top-right of the view. */
body.skin-billdr #app #view-invoices { position: relative; }
body.skin-billdr #app #view-invoices > .page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-right: 200px; }
body.skin-billdr #app #view-invoices > .page-head > h1 { margin: 0; }
/* DW2 P07 (decision 5): the pill dresses only a count (.is-count, set by
 * invGRender); the zero-invoices sentence stays a plain grey subtitle
 * on its own line under the H1. */
body.skin-billdr #app #view-invoices #inv-g-count:not(.is-count) { flex-basis: 100%; margin: 4px 0 0; font-size: var(--ds-fs-sm); color: var(--ds-muted); }
body.skin-billdr #app #view-invoices #inv-g-count.is-count {
  display: inline-flex; align-items: center; margin: 2px 0 0; padding: 3px 10px; border-radius: var(--ds-r-pill);
  background: var(--ds-neutral-bg); color: var(--ds-muted); font-size: var(--ds-fs-xs); font-weight: 600; max-width: none;
}
body.skin-billdr #app #inv-g-new { position: absolute; top: 0; right: 0; }
/* Project tab: "+ New invoice" leaves the tab row for the tab's top-
 * right corner (top:auto keeps it level with the segmented control). */
body.skin-billdr #app #project-tab-content:has(> .inv-tabs #inv-p-new) { position: relative; }
body.skin-billdr #app #inv-p-new { position: absolute; right: 0; }

/* Tabs → Billdr's segmented control (rule 8): grey container, white
 * active pill. The spacer span only pushed the button right; with the
 * button pinned it has no job, so it takes no room. Same look for the
 * record's Client view | Your view. */
body.skin-billdr #app .inv-tabs {
  display: flex; width: max-content; max-width: 100%; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0 0 20px;
  background: #e9edf3; border-radius: var(--ds-r-ctl);
}
body.skin-billdr #app .inv-tabs > .grow { display: none; }
body.skin-billdr #app .inv-tab {
  border: 0; background: transparent; border-radius: var(--ds-r-sm); padding: 7px 14px;
  font-size: var(--ds-fs-sm); font-weight: 500; color: var(--ds-muted);
}
body.skin-billdr #app .inv-tab:hover { color: var(--ds-navy); }
body.skin-billdr #app .inv-tab.active { background: var(--ds-card); color: var(--ds-navy); font-weight: 600; border: 0; box-shadow: 0 1px 3px rgba(15, 34, 51, .14); }
body.skin-billdr #app .inv-tab:focus-visible { outline: none; box-shadow: var(--ds-focus); }

/* KPI accent cards (rule 7). Values navy (Billdr) — the old gold value
 * on Receivable gives way to the red accent. Invoices tab: Invoiced
 * gold (indigo's seat), Paid green, Receivable red. Payments tab:
 * Received green, Fees orange, Net navy. Project Summary (five):
 * Contract value navy, Invoiced gold, Paid green, Receivable red,
 * Contract balance orange — capture §7 as captured. */
body.skin-billdr #app .inv-cards { gap: 16px; margin: 0 0 20px; }
body.skin-billdr #app .inv-card {
  background: var(--ds-card); border: 1px solid var(--ds-line); border-left: 4px solid var(--ds-k-navy);
  border-radius: var(--ds-r); padding: 16px 20px; min-width: 0;
}
body.skin-billdr #app .inv-card-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); margin: 0 0 6px; }
body.skin-billdr #app .inv-card-v,
body.skin-billdr #app .inv-card-v.gold { font-size: var(--ds-fs-kpi); font-weight: 700; color: var(--ds-navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
body.skin-billdr #app .inv-card-note { font-size: var(--ds-fs-sm); color: var(--ds-muted); }
body.skin-billdr #app .inv-cards:not(.inv-cards-5) > .inv-card:nth-child(1) { border-left-color: var(--ds-k-gold); }
body.skin-billdr #app .inv-cards:not(.inv-cards-5) > .inv-card:nth-child(2) { border-left-color: var(--ds-k-green); }
body.skin-billdr #app .inv-cards:not(.inv-cards-5) > .inv-card:nth-child(3) { border-left-color: var(--ds-k-red); }
body.skin-billdr #app #inv-g-root > .inv-tabs:has([data-invg-tab="payments"].active) ~ .inv-cards > .inv-card:nth-child(1) { border-left-color: var(--ds-k-green); }
body.skin-billdr #app #inv-g-root > .inv-tabs:has([data-invg-tab="payments"].active) ~ .inv-cards > .inv-card:nth-child(2) { border-left-color: var(--ds-k-orange); }
body.skin-billdr #app #inv-g-root > .inv-tabs:has([data-invg-tab="payments"].active) ~ .inv-cards > .inv-card:nth-child(3) { border-left-color: var(--ds-k-navy); }
body.skin-billdr #app .inv-cards-5 > .inv-card:nth-child(1) { border-left-color: var(--ds-k-navy); }
body.skin-billdr #app .inv-cards-5 > .inv-card:nth-child(2) { border-left-color: var(--ds-k-gold); }
body.skin-billdr #app .inv-cards-5 > .inv-card:nth-child(3) { border-left-color: var(--ds-k-green); }
body.skin-billdr #app .inv-cards-5 > .inv-card:nth-child(4) { border-left-color: var(--ds-k-red); }
body.skin-billdr #app .inv-cards-5 > .inv-card:nth-child(5) { border-left-color: var(--ds-k-orange); }

/* The tables (rule 5). FIX: the money cells carry .q-num, which only
 * quotes.css defines (for .quotes-table) — so invoice money was never
 * right-aligned. Scoped here: right, no wrap, tabular. */
body.skin-billdr #app table.inv-table :is(th, td).q-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.skin-billdr #app table.inv-table td { vertical-align: middle; }
body.skin-billdr #app table.inv-table tr.inv-row { cursor: pointer; }
body.skin-billdr #app table.inv-table td.inv-ref { color: var(--ds-muted); font-weight: 500; white-space: nowrap; letter-spacing: .01em; }
body.skin-billdr #app .inv-client { display: block; color: var(--ds-navy); font-weight: 700; font-size: var(--ds-fs); line-height: 1.35; }
body.skin-billdr #app .inv-sub { color: var(--ds-muted); font-size: var(--ds-fs-sm); line-height: 1.4; margin-top: 2px; }
/* Invoice tables (9 columns: global + project Invoices): Total bold
 * navy, Outstanding grey. Global Payments (10): Net bold navy. Project
 * Summary trail (5): Total bold navy. */
body.skin-billdr #app table.inv-table:has(> thead > tr > th:nth-child(9):last-child) td:nth-child(7),
body.skin-billdr #app table.inv-table:has(> thead > tr > th:nth-child(10):last-child) td:nth-child(9),
body.skin-billdr #app table.inv-table:has(> thead > tr > th:nth-child(5):last-child) td:nth-child(4) { font-weight: 700; color: var(--ds-navy); font-size: var(--ds-fs); }
body.skin-billdr #app table.inv-table:has(> thead > tr > th:nth-child(9):last-child) td:nth-child(8) { color: var(--ds-muted); }
body.skin-billdr #app table.inv-table:has(> thead > tr > th:nth-child(9):last-child) td:is(:nth-child(3), :nth-child(4)) { color: var(--ds-muted); }
/* QuickBooks marker: wave42 — the real QuickBooks symbol image (the roundel),
 * no longer a green text pill reading "qb". */
body.skin-billdr #app .inv-qb {
  display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle;
}

/* Status pills (rule 6): Draft light grey, Sent pale orange (waiting
 * on the client, Billdr's "Pending" seat), Partially paid pale orange,
 * Paid pale green, Void light grey. */
body.skin-billdr #app .inv-pill { padding: 3px 10px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 600; background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); }
body.skin-billdr #app .inv-pill-draft,
body.skin-billdr #app .inv-pill-void { background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); }
body.skin-billdr #app .inv-pill-sent,
body.skin-billdr #app .inv-pill-partial { background: var(--ds-orange-bg); color: var(--ds-orange-ink); }
body.skin-billdr #app .inv-pill-paid { background: var(--ds-ok-bg); color: var(--ds-ok-ink); }
body.skin-billdr #app .inv-badge-warn { background: var(--ds-orange-bg); color: var(--ds-orange-ink); padding: 3px 10px; font-size: 12px; }

/* Record: context bar, head (navy title + inline pill), actions. */
body.skin-billdr #app .inv-context { border-color: var(--ds-line); border-radius: var(--ds-r); padding: 8px 12px; margin-bottom: 20px; }
body.skin-billdr #app .inv-rec-head { margin-bottom: 16px; align-items: flex-start; }
body.skin-billdr #app h2.inv-rec-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; font-size: var(--ds-fs-page); font-weight: 700; color: var(--ds-navy); line-height: 1.2; }
body.skin-billdr #app h2.inv-rec-title .inv-qb { margin-left: 0; }
body.skin-billdr #app .inv-rec-head .grow > p.muted { font-size: var(--ds-fs-sm); margin: 0; }
body.skin-billdr #app .inv-parallel-tag { font-size: var(--ds-fs-xs); color: var(--ds-muted); margin: 4px 0 0; }
body.skin-billdr #app .inv-rec-actions { gap: 8px; }
/* "Mark as voided" (.btn-danger had no rule anywhere): destructive =
 * red text on the outline in the head; red fill on the confirm. */
body.skin-billdr #app .btn.btn-danger:not(.btn-primary):not(.btn-ghost):not(.ds-outline):not(.fx-dangerbtn):not(.btn-gold) { background: var(--ds-card); color: var(--ds-danger); border: 1px solid var(--ds-line-strong); }
body.skin-billdr #app .btn.btn-danger:not(.btn-primary):not(.btn-ghost):not(.ds-outline):not(.fx-dangerbtn):not(.btn-gold):hover:not(:disabled) { background: var(--ds-bad-bg); border-color: var(--ds-danger); }
body.skin-billdr .fx-overlay .btn.btn-danger { background: var(--ds-danger); color: #fff; border: 0; }
body.skin-billdr #app .inv-draft-note { background: var(--ds-warn-bg); border-color: var(--ds-warn-line); color: var(--ds-warn-ink); border-radius: var(--ds-r); font-size: var(--ds-fs-sm); }
body.skin-billdr #app .inv-paper { border-color: var(--ds-line); border-radius: var(--ds-r); }
body.skin-billdr #app .inv-panel { border-color: var(--ds-line); border-radius: var(--ds-r); padding: 20px 24px; margin-top: 20px; }
body.skin-billdr #app .inv-panel-head h3 { font-size: var(--ds-fs-lg); font-weight: 700; color: var(--ds-navy); }
body.skin-billdr #app .inv-panel-figures p { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
body.skin-billdr #app .inv-panel-figures b { color: var(--ds-navy); font-weight: 700; }
body.skin-billdr #app .inv-payline { border-top-color: var(--ds-hair); }
body.skin-billdr #app .inv-payline .t { color: var(--ds-navy); }
body.skin-billdr #app .inv-meta-grid span { font-size: var(--ds-fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; }
body.skin-billdr #app .inv-problems { background: var(--ds-bad-bg); border-color: #f2c6c3; border-radius: var(--ds-r); }
body.skin-billdr #app .inv-problems p { color: var(--ds-bad-ink); }

@media (max-width: 760px) {
  body.skin-billdr #app #view-invoices > .page-head { padding-right: 0; }
  body.skin-billdr #app :is(#inv-g-new, #inv-p-new) { position: static; }
  body.skin-billdr #app .inv-tabs { width: auto; align-items: center; }
  body.skin-billdr #app .inv-tabs > .grow { display: block; flex: 1; }
  body.skin-billdr #app .inv-cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================= DW2 P07 · Invoices row menu + footer (2026-10-18) ======================= */
/* The ⋯ cell: a narrow right-hand column; its header text is for
 * screen readers only. Structure works in both appearances. */
.inv-table :is(th, td).inv-menu-cell { width: 44px; text-align: right; padding-left: 4px; }
.inv-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.inv-menu .i-btn { width: 18px; height: 18px; }
body.skin-billdr #app .inv-table + .ds-foot { margin-top: 12px; }
.inv-menu .i-btn { stroke-width: 3.2; }

/* wave54-fix (2026-10-22): the header actions row (New ▾ + the QB
 * refresh button live here now, NOT in the tab pill row — D8/D9),
 * the tabs' filter bars, chips, the totals footer and the
 * Retainage summary section. */
.inv-p-actions { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.inv-p-actions .qb-refresh { display: inline-flex; align-items: center; gap: 6px; }
.inv-p-filterbar { margin: 10px 0; align-items: end; }
.inv-chip { display: inline-block; padding: 1px 8px; border: 1px solid var(--ds-line, #d9dee5); border-radius: 999px; background: var(--ds-card, #fff); font: inherit; font-size: 12.5px; color: var(--ds-navy, #14304f); cursor: pointer; }
button.inv-chip:hover { background: var(--ds-tint, #eef2f7); }
span.inv-chip { cursor: default; }
.inv-total-row td { font-weight: 700; border-top: 2px solid var(--ds-line, #d9dee5); }
.inv-retainage { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--ds-line, #d9dee5); border-radius: 10px; background: var(--ds-card, #fff); }
.inv-retainage h3 { margin: 0 0 6px; }
