/* Billing views (SOW vs deployed vs billed, Billing runs, Invoices). Kit tokens only; classes prefixed bl-.
   Tables follow the house table standard in app.css; nothing here overrides it. */
.bl { min-width: 0; }
.bl .page-head { margin-bottom: 0; } /* the .stack-24 wrapper gives the 24 px below the header */
.bl-nowrap { white-space: nowrap; }
.bl-bad { color: var(--destructive); }
.bl-badges { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bl-filter { min-height: 32px; }

/* KPI rows: narrower minimums than the shell default so rows stay full at 1280 */
.bl-k180 .ra-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.bl-k160 .ra-kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.bl-k5 .ra-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Side panel content */
.bl-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bl-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl-checks { display: flex; flex-direction: column; }
.bl-check { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bl-check:first-child { padding-top: 4px; }
.bl-check .cite { margin: 0; }
.bl-total { padding-top: 8px; border-top: 1px solid var(--border); }
.bl-checks + .bl-total { border-top: 0; }
.bl-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.bl-panel .kv { grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); }

/* Rate policy and alternatives */
.bl-policy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bl-radio { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; }
.bl-radio input[type="radio"] { margin: 2px 0 0; accent-color: var(--primary); }
.bl-manual { margin-top: 8px; max-width: 160px; }
.bl-invalid { border-color: var(--destructive) !important; }
