/* dw3-quotes.css — DW3-16 (B6): the Quotes reference pass, loaded
 * after every other sheet. Presentation only; each block names the
 * defect it fixes against the Billdr reference. */

/* Register: Billdr's quote list — status as a coloured pill, the
 * version under the title, the total the one bold number per row. */
body.skin-billdr #app .dw3-quotes-table td { vertical-align: middle; }
body.skin-billdr #app .dw3-quotes-table th:nth-child(2) { width: 18%; }
body.skin-billdr #app .dw3-quotes-table th:nth-child(3) { width: 16%; }
body.skin-billdr #app .dw3-quotes-table th:nth-child(4) { width: 16%; }
body.skin-billdr #app .dw3-quotes-table tbody tr { cursor: pointer; }
body.skin-billdr #app .dw3-quotes-table tbody tr:hover td { background: var(--ds-tint); }
body.skin-billdr #app .dw3-quotes-table .quote-sub { display: block; margin-top: 3px; font-size: var(--ds-fs-xs); color: var(--ds-muted); }
body.skin-billdr #app .dw3-quotes-table td.q-num b { color: var(--ds-navy); font-variant-numeric: tabular-nums; }
body.skin-billdr #app .ds-pill.dw3-q-pill { display: inline-block; padding: 3px 10px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
body.skin-billdr #app .ds-pill.dw3-q-pill.ok { background: var(--ds-ok-bg); color: var(--ds-ok-ink); }
body.skin-billdr #app .ds-pill.dw3-q-pill.warn { background: var(--ds-orange-bg); color: var(--ds-orange-ink); }
body.skin-billdr #app .ds-pill.dw3-q-pill.bad { background: var(--ds-bad-bg); color: var(--ds-bad-ink); }
body.skin-billdr #app .ds-pill.dw3-q-pill.neutral { background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); }
body.skin-billdr #app .quote-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.skin-billdr #app .quote-head > p.muted { margin: 0; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .dw3-q-empty { text-align: center; padding: 40px 24px; }
body.skin-billdr #app .dw3-q-empty h3 { margin: 0 0 6px; font-size: var(--ds-fs-lg); color: var(--ds-navy); }
body.skin-billdr #app .dw3-q-empty .btn { margin-top: 16px; }

/* Chooser: the price pill sat on top of the template name (absolute
 * over a truncating name). It now runs in the card's flow, under the
 * meta line, and the name keeps its full width. */
body.skin-billdr #app .qc-card { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
body.skin-billdr #app .qc-card .qc-pill { position: static; grid-column: 2; justify-self: start; margin-top: -2px; background: var(--ds-fill); border-color: transparent; color: var(--ds-navy); }
/* wave662: the fallback chooser card's Draft chip — an inactive
 * template in the owner's picker reads as a draft at a glance.
 * wave663: the same quiet grey as Templates & costs' Draft pill. */
body.skin-billdr #app .qc-card .qc-draft-chip { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--ds-r-pill); background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
/* The quote-title field at the foot was an unlabelled sliver: give it
 * a real control height and its label above it. */
body.skin-billdr #app .qc-bar { align-items: flex-end; }
body.skin-billdr #app .qc-title { display: flex; flex-direction: column; gap: 6px; }
body.skin-billdr #app .qc-title > span { font-size: var(--ds-fs-xs); font-weight: 500; color: var(--ds-muted); }
body.skin-billdr #app .qc-title input { height: var(--ds-ctl); padding: 0 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); font: inherit; font-size: var(--ds-fs); background: var(--ds-card); color: var(--ds-ink); }
body.skin-billdr #app .qc-title input:focus { outline: none; border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
body.skin-billdr #app .qc-pick-label { padding-bottom: 11px; }

/* Edit: the category's section select (Construction | Selections),
 * beside its cost code — same quiet control. */
body.skin-billdr #app .quote-cat-sec { flex: 0 0 auto; height: 32px; padding: 0 8px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); font: inherit; font-size: var(--ds-fs-sm); color: var(--ds-ink); background: var(--ds-tint); }
/* The section heading between Construction and Selections reads as a
 * small-caps kicker, the way the client document prints it. */
body.skin-billdr #app .quote-sec-head { margin: 22px 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }

/* Client document: terms in ONE column on screen; the PDF keeps its
 * own layout. wave497 (Micheal 2026-11-08): the 72ch cap goes too —
 * the terms run the full width of the page like everything else. */
body.skin-billdr .qcd-terms { columns: 1; max-width: none; }

/* Step 4: the record actions sat under the whole paper preview with
 * the gold button last. Keep the parallel-mode note quiet and the
 * record row clearly separated. */
body.skin-billdr #app .qs-record-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ds-hair); }
body.skin-billdr #app .qs-send-meta { font-size: var(--ds-fs-xs); }

@media (max-width: 760px) {
  body.skin-billdr #app .dw3-quotes-table th:nth-child(2), body.skin-billdr #app .dw3-quotes-table td:nth-child(2) { display: none; }
  body.skin-billdr #app .quote-head { flex-direction: column; align-items: stretch; }
}

/* Money headers sit over their money (the shared table rule left-aligns every th). */
body.skin-billdr #app :is(table.ptable).dw3-quotes-table th.q-num { text-align: right; }

/* Edit grid: the per-unit cost inputs clipped four-digit amounts
 * ("1200.0" for $1,200.00). Room for $99,999.99. */
body.skin-billdr #app .quote-cost-cell input { width: 92px; min-width: 92px; }
