/* Season reports (#3). Wide screens: a normal ledger. Phones: each row is a stacked card, so the page never scrolls sideways. */
.report-wrap { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.report .rgroup th { text-align: left; background: var(--paper-2); }
.report tr.rgroup td { font-weight: 600; background: var(--surface-2, transparent); border-top: 1px solid var(--rule); }
.report tr.rtotal td { font-weight: 600; border-top: 1px solid var(--rule); }
/* #9: the kg sits under its count, so a narrow cell never grows sideways. */
.report .rkg { display: block; font-size: 0.85em; font-weight: 400; }
/* #821: controls above a table that stand in for the clipped header on a phone. */
.ph-all, .ph-sort { display: none; }
@media (max-width: 640px) {
  .report-wrap { border: 0; background: none; }
  table.report, .report tbody, .report tfoot, .report tr, .report td { display: block; width: 100%; }
  .report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report thead button, .report thead input { visibility: hidden; } /* the clipped header keeps its column names, but its boxes and buttons take no focus */
  .ph-all { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
  .ph-all input { width: 22px; height: 22px; accent-color: var(--accent); }
  .ph-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
  .ph-sort select, .ph-sort button { min-height: 44px; }
  .report.wide-cols thead { display: none; } /* R8 matrix: one column per item. The clip above does not hold a table-header-group, so the page scrolled sideways; every cell has a data-label */
  .report.wide-cols td { white-space: normal; min-width: 0; }
  .report.wide-cols td[data-label]::before { overflow-wrap: anywhere; min-width: 0; flex: 1 1 0; }
  .report tr { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); margin: 0 0 8px; padding: 4px 0; }
  .report tr.rgroup { border: 0; background: none; padding: 0; }
  .report tr.rgroup th { display: block; padding: 8px 4px 4px; border: 0; white-space: normal; overflow-wrap: anywhere; } /* .ledger th is nowrap: a long party name pushed the page sideways */
  .report td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; text-align: right; }
  .report td[data-label]::before { content: attr(data-label); color: var(--ink-3); text-align: left; }
  .report td[data-label=""] { justify-content: flex-end; } /* an action cell: no label, the control sits at the right */
  .report td[data-label=""]::before { content: none; }
  .report .rval { min-width: 0; text-align: right; } /* several pieces of one value stay together */
  .report td.rempty { display: block; text-align: center; }
  .report tfoot td:empty { display: none; }
  .report td.rcell-head { display: block; text-align: left; font-weight: 600; }
  .report td .pname { min-width: 0; }
  .report tfoot td { border-top: 0; }
}

/* #182 [348] composition limit bar */
#cmp-bar { width: 100%; height: 1.25rem; }
/* Audit log detail: wraps long text inside the cell. A class, not an inline style, because the CSP is style-src 'self'. */
.report code.aud-detail { display: block; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.report tr.rsection th { text-align: left; font-weight: 600; padding-top: 0.9em; }
/* #1010: the long Outstanding guidance sits in a closed section on a phone, so the filters and results come first. */
.out-guide { margin: 0 0 var(--space-sm); }
.out-guide summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-size: var(--text-sm); }
