/* Parity 6 (2026-10-16) — the money registers in Billdr's
   dress (findings #17–#21: Invoices, Expenses, Bid requests,
   Purchase Orders, Templates & costs). Each money module grew
   its own list CSS across the six-pack waves; this file carries
   the pass's shared register rules and the per-surface fixes
   that belong to no single module's sheet. Gold discipline as
   everywhere in the money layer: gold is the primary action
   and the one number that matters per surface. */

/* INVOICES — the register's filter bar: its labels never
   carried the .inv-f field dress invoices.css defines, so the
   bar rendered as bare browser fields. Same dress, applied to
   the markup the register actually emits (Parity 6). */
.inv-filterbar > label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.inv-filterbar > label > span { font-size: 12px; color: var(--muted); }
.inv-filterbar > label input,
.inv-filterbar > label 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-filterbar .inv-filter-search { flex: 1 1 220px; }
.inv-filterbar .inv-filter-search input { width: 100%; }
.inv-filterbar > .btn { align-self: end; }

/* ======================= DW1 · Invoices filter bar (design wave, 2026-10-17) ======================= */
/* Capture §3 + rule 4: the register's own .inv-filterbar mapped onto
 * the shared filter look — search first (moved by `order`, markup
 * untouched) with the magnifier, then the dropdowns, all white 40px
 * rounded controls; captions hidden from sight but kept in the DOM as
 * each control's accessible name (visually-hidden pattern). The
 * custom-range From / To dates keep their words — two bare dates would
 * be ambiguous. "Export invoices" is Billdr's gold text-link, far right. */
body.skin-billdr #app .inv-filterbar { align-items: center; gap: 12px; margin: 0 0 20px; }
body.skin-billdr #app .inv-filterbar > label { gap: 0; }
body.skin-billdr #app .inv-filterbar > label:not(:has(input[type="date"])) > span {
  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;
}
body.skin-billdr #app .inv-filterbar > label:has(input[type="date"]) { flex-direction: row; align-items: center; gap: 8px; }
body.skin-billdr #app .inv-filterbar > label:has(input[type="date"]) > span { font-size: var(--ds-fs-sm); font-weight: 500; color: var(--ds-muted); }
body.skin-billdr #app .inv-filterbar > label :is(select, input) {
  min-height: var(--ds-ctl); font-size: var(--ds-fs-sm); font-weight: 500; color: var(--ds-ink);
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl);
}
body.skin-billdr #app .inv-filterbar > label select { min-width: 170px; padding: 0 34px 0 14px; }
body.skin-billdr #app .inv-filterbar > label input[type="date"] { padding: 0 12px; }
body.skin-billdr #app .inv-filterbar > label :is(select, input):hover { border-color: var(--ds-line-strong); }
body.skin-billdr #app .inv-filterbar > .inv-filter-search { order: -1; flex: 1 1 280px; max-width: 420px; }
body.skin-billdr #app .inv-filterbar > .inv-filter-search input[type="search"] { padding: 0 14px 0 38px; }
body.skin-billdr #app .inv-filterbar > #inv-g-export {
  margin-left: auto; align-self: center; min-height: var(--ds-ctl); padding: 0 4px;
  background: none; border: 0; color: var(--ds-gold-ink); font-weight: 600; font-size: var(--ds-fs-sm);
}
body.skin-billdr #app .inv-filterbar > #inv-g-export:hover { background: none; color: var(--ds-gold-ink-hover); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  body.skin-billdr #app .inv-filterbar > label { flex: 1 1 100%; max-width: none; }
  body.skin-billdr #app .inv-filterbar > label select { width: 100%; }
}
