/* The workspace's find-and-set bar, client rules list and Receipts & Payments tab (2026-11-19).
   Published files are immutable: change this file under a new name (workspace-rp-v2.css). */

.bs-find { margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--cream-soft); }
.bs-find > summary { cursor: pointer; font-weight: 800; color: var(--teal-dark); min-height: 28px; display: flex; align-items: center; gap: 8px; }
.bs-find[open] > summary { margin-bottom: 10px; }
.bs-find .bs-small { margin: 8px 0 0; }
.bs-find .bs-row { margin-top: 10px; }

.bs-find-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 0 0 4px; }
.bs-find-grid label { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.bs-find-grid input, .bs-find-grid select { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.bs-find-grid input:focus-visible, .bs-find-grid select:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,113,132,0.22); }
.bs-find-grid [hidden] { display: none; }
.bs-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.bs-check input { width: 18px; height: 18px; accent-color: var(--teal); }

.bs-rules-list { margin: 6px 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.bs-rules-list li { line-height: 1.5; }
.bs-rules-list .bs-linkbtn { margin-left: 8px; }
.bs-rule-what { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

.bs-table--rp { min-width: 640px; }
.bs-table--rp td.bs-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-table--rp thead th.bs-num { text-align: right; white-space: normal; min-width: 132px; max-width: 200px; vertical-align: bottom; }
.bs-table--rp thead th:first-child, .bs-table--rp tbody th[scope="row"] { min-width: 260px; max-width: 360px; white-space: normal; }
.bs-table--rp tr.bs-rp-section th { background: var(--surface); color: var(--teal-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.bs-table--rp tr.bs-rp-total td, .bs-table--rp tr.bs-rp-total th { font-weight: 800; border-top: 2px solid var(--line); }
.bs-table--rp tr.bs-rp-balance th, .bs-table--rp tr.bs-rp-balance td { font-weight: 800; background: var(--cream-soft); }
.bs-table--rp tr.bs-rp-suspense th { font-style: italic; }
.bs-table--rp tr.bs-rp-diff--bad td { color: var(--bad, #b42318); }
.bs-table--rp th[scope="row"] { font-weight: 600; text-align: left; }
.bs-rp-notes { margin: 12px 0; }
.bs-rp-notes li { margin: 4px 0; }

@media (max-width: 720px) {
  .bs-find-grid { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the pinned Particulars column took 260 of 343 px and hid every amount. */
  .bs-table--rp thead th:first-child, .bs-table--rp tbody th[scope="row"] { min-width: 132px; max-width: 160px; }
  .bs-table--rp thead th.bs-num { min-width: 104px; }
}

@media print {
  .bs-find, #bs-rp-download, #bs-rp-suspense, .bs-rules-list .bs-linkbtn { display: none !important; }
}
