/* Brand reports (owner spec section 21): the shared report screen (public/js/admin/modules/brand-reports/kit.js) and the "Needs attention" strip of the Manager dashboard.
   Phone: filters stack full width, the table becomes one card per row with the column title in front of each value (data-label), every control is 44px tall. */
.brp-page { display: grid; gap: 14px; min-width: 0; }
.brp-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.brp-ctl { display: grid; gap: 3px; min-width: 0; }
.brp-ctl .chip-select, .brp-ctl .brp-input, .brp-ctl .date-in { min-height: 40px; max-width: 100%; }
.brp-ctl .brp-input { padding-inline: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.brp-out { display: grid; gap: 14px; min-width: 0; }
.brp-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.brp-notes li { display: flex; gap: 6px; align-items: flex-start; }
.brp-notes li svg { flex: none; margin-top: 2px; }
.brp-card { overflow: hidden; }
.brp-wrap { overflow-x: auto; }
.brp-table { width: 100%; }
.brp-table th, .brp-table td { vertical-align: middle; }
.brp-table th.num, .brp-table td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brp-table tfoot td { font-weight: 800; border-top: 2px solid var(--line); background: var(--panel-2); }
.brp-table td.brp-act, .brp-table th.brp-act { width: 1%; white-space: nowrap; text-align: end; }
.brp-table td .btn-sm { min-height: 32px; display: inline-flex; gap: 6px; align-items: center; }
.brp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.brp-rec { min-width: 0; max-height: 65vh; overflow: auto; }
.stat.brp-ok .stat-value { color: var(--ok-ink); }
.stat.brp-warn .stat-value { color: var(--warn-ink, #a15c00); }
.stat.brp-bad .stat-value { color: var(--danger-ink); }

/* manager dashboard: where the sales come from + needs attention */
.brp-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.brp-attn a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); text-decoration: none; color: inherit; min-height: 64px; }
.brp-attn a:hover { border-color: var(--accent); }
.brp-attn .n { font-size: 22px; font-weight: 800; }
.brp-attn a.bad .n { color: var(--danger-ink); }
.brp-attn a.warn .n { color: var(--warn-ink, #a15c00); }
.brp-attn a.ok .n { color: var(--ok-ink); }
.brp-src { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.brp-src li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.brp-src li:last-child { border-bottom: 0; }

@media (max-width: 720px) {
  .brp-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brp-bar .date-pair, .brp-ctl:has(.brp-input) { grid-column: 1 / -1; }
  .brp-ctl .chip-select, .brp-ctl .brp-input, .brp-ctl .date-in { min-height: 44px; width: 100%; }
  .brp-bar .date-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
  .brp-table thead { display: none; }
  .brp-table, .brp-table tbody, .brp-table tfoot, .brp-table tr, .brp-table td { display: block; width: 100%; }
  .brp-table tr { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); padding: 6px 10px; margin: 8px; width: auto; }
  .brp-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: end; min-height: 36px; }
  .brp-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-align: start; flex: 0 0 auto; }
  .brp-table td[data-label=""]::before { content: none; }
  .brp-table td.brp-act { width: 100%; justify-content: flex-end; }
  .brp-table td .btn-sm { min-height: 44px; }
  .brp-table tfoot tr { background: var(--panel); }
  .brp-links .btn { flex: 1 1 100%; min-height: 44px; }
  .stat-strip .stat { flex: 1 1 calc(50% - 6px); min-width: 0; }
}
