/* Reports (#reports): report options, plus the off-screen stage the General report renders into before the PDF. */
.reports-page { display: grid; gap: 14px; max-width: 1600px; min-width: 0; margin: 0 auto; }
.reports-kicker { color: #a9d3fb; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.reports-kicker i { margin-right: 5px; color: #f5bf70; }
.reports-intro h2 { margin: 5px 0 3px; color: #f6fbff; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; }
.reports-intro p { margin: 0; color: #c3d2dd; font-size: 12px; }

.report-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 20px 22px; border: 1px solid #637380; border-radius: 12px; background: linear-gradient(145deg, #4a5966, #384550); box-shadow: 0 12px 30px #17212b33; }
.report-option-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #a6d4ff; border-radius: 12px; background: #2f7fd8; color: #fff; font-size: 22px; }
.report-option-body { display: grid; gap: 10px; min-width: 0; }
.report-option-body h3 { margin: 0; color: #f6fbff; font-size: 17px; }
.report-option-body > p { margin: 0; color: #d6e3ec; font-size: 12px; line-height: 1.5; }
.report-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.report-sections li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #5d6f7d; border-radius: 99px; background: #2b3741; color: #f3f8fc; font-size: 11px; font-weight: 700; }
.report-sections li i { color: #9dccff; }
.report-sections small { color: #9fb3c2; font-size: 10px; font-weight: 600; }
.report-scope { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 6px 22px; margin: 0; }
.report-scope dt { color: #b7cbd8; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-scope dd { margin: 2px 0 0; color: #f6fbff; font-size: 12px; font-weight: 700; }
.report-note { display: flex; gap: 8px; color: #c3d2dd !important; font-size: 11px !important; }
.report-note i { margin-top: 2px; color: #9dccff; }
.report-option-actions { display: grid; justify-items: end; gap: 8px; min-width: 170px; }
.report-generate { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid #a6d4ff; border-radius: 8px; background: #2f7fd8; color: #fff; font-size: 13px; font-weight: 800; }
.report-generate:hover:not(:disabled), .report-generate:focus-visible { background: #3b8ce6; outline: none; }
.report-generate:disabled { cursor: progress; opacity: .8; }
.report-status { max-width: 220px; color: #c3d2dd; font-size: 11px; text-align: right; }
.report-status.is-error { color: #ffb4b9; }

/* Off-screen stage: fixed desktop width so the PDF has the full-size layout on any screen. */
.report-stage { position: fixed; top: 0; left: -20000px; display: grid; gap: 0; pointer-events: none; }
.report-stage:empty { display: none; }
.report-section { padding: 18px 20px 22px; background: #26313a; }
.report-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #5d6f7d; }
.report-section-header h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #f6fbff; font-size: 20px; }
.report-section-header h2 i { color: #9dccff; font-size: 17px; }
.report-section-header span { color: #b7cbd8; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Desktop card spans inside the stage even when the screen is a phone or tablet. */
.report-stage .cards-grid.overview, .report-stage .cards-grid.context { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.report-stage .cards-grid.zone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-stage .cards-grid.overview .card[data-size="quarter"] { grid-column: span 3; }
.report-stage .cards-grid.overview .card[data-size="third"] { grid-column: span 4; }
.report-stage .cards-grid.context .card[data-size="quarter"], .report-stage .cards-grid.context .card[data-size="sixth"] { grid-column: span 4; }
.report-stage .cards-grid.context .card[data-size="half"] { grid-column: span 6; }
.report-stage .cards-grid.zone .card { grid-column: span 1; }
.report-stage .info-button { visibility: hidden; }

@media (max-width: 900px) {
  .report-option { grid-template-columns: minmax(0, 1fr); }
  .report-option-icon { display: none; }
  .report-option-actions { justify-items: stretch; }
  .report-generate { justify-content: center; }
  .report-status { max-width: none; text-align: left; }
  .report-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Controls don't work on paper: hide toggles, "view full list" links, and the inning chart's scrollbar. */
.report-stage .segmented, .report-stage [data-table-toggle], .report-stage .text-link { display: none !important; }
.report-stage .chart-scroll-wide { overflow: hidden; scrollbar-width: none; }
.report-stage .chart-scroll-wide::-webkit-scrollbar { display: none; }
.report-option + .report-option { margin-top: 0; }
.report-umpire { display: grid; gap: 4px; max-width: 320px; color: #b7cbd8; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-umpire select { min-height: 36px; padding: 0 8px; border: 1px solid #6f8292; border-radius: 7px; background: #36434d; color: #f3f8fc; font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; }
.report-generate:disabled:not(:has(.fa-spin)) { cursor: not-allowed; opacity: .5; }
/* Paper version (.is-light): white sections and cards with dark ink; reports.js lightenMarkup() recolors the rest. */
.report-stage.is-light .report-section { padding: 6px 2px 14px; background: #fff; }
.report-stage.is-light .report-section-header { border-bottom: 2px solid #263138; }
.report-stage.is-light .report-section-header h2 { color: #263138; font-size: 18px; letter-spacing: -.01em; }
.report-stage.is-light .report-section-header h2 i { color: #2f7fd8; }
.report-stage.is-light .card { border: 1px solid #d7dee4; background: #fff; box-shadow: none; }
.report-stage.is-light .card-title { color: #263138; }
.report-stage.is-light .card-description { color: #5b6b78; }
/* Pseudo-elements can't take the inline recolor: the consistency ring's inner disc. */
.report-stage.is-light .zone-consistency-score::before { background: #fff; }
/* Game report: the Missed calls tab's CSV button doesn't work on paper. */
.report-stage .missed-calls-csv { display: none; }
