/* Reports and exports (v2.25.0) */
.rp-tabs { margin: 6px 0 10px; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.rp-f select, .rp-f input { width: 100%; min-height: 44px; }
.rp-dl { margin: 10px 0 4px; gap: 8px; }
.rp-warn { color: var(--warn, #B45309); font-weight: 600; margin: 4px 2px; }
.rp-row .main { min-width: 0; gap: 3px; }
.rp-row .t, .rp-row .s { overflow-wrap: anywhere; }
.rp-nums { font-weight: 600; }
.stats-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
html.theme-dark .rp-warn { color: #FBBF24; }

/* v2.55.0 funnel counts: fluid tokens, no fixed px spacing */
.fn-stages { margin: var(--space-s) 0 var(--space-xs); gap: var(--space-xs); }
.fn-rates, .fn-note { max-width: var(--measure-wide); }
.fn-weeks { overflow-x: auto; padding: var(--space-s); border-radius: var(--radius-m); }
.fn-week-head, .fn-week-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1.4fr) repeat(3, minmax(4rem, 1fr));
  gap: var(--space-xs) var(--space-s);
  align-items: end;
  padding: var(--space-2xs) 0;
}
.fn-week-head { font-weight: 600; font-size: var(--step--1); border-bottom: 1px solid var(--border, #e5e7eb); }
.fn-week-row { font-size: var(--step--1); border-bottom: 1px solid var(--border, #e5e7eb); }
.fn-week-row:last-child { border-bottom: 0; }
.fn-week-head span:not(:first-child), .fn-week-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .fn-stages { grid-template-columns: 1fr; }
}

/* v2.88.0: keep Show report above the phone tab bar so a filter change is clickable at 360. */
.rp-form button[type=submit] { scroll-margin-bottom: calc(var(--tabbar-h, 64px) + 24px + var(--safe-bottom, 0px)); }
@media (max-width: 767px) {
  .rp-grid { grid-template-columns: 1fr; }
  .stats-3 { grid-template-columns: 1fr; }
}
