/* The preview is the same white A4 document that is sent to print. */
#report-panel { max-width: 860px; margin: 24px auto; padding: 24px; }
.report-controls { border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 20px; }
.report-controls > .primary { margin-top: 16px; }
.report-chart svg { display: block; width: 100%; height: auto; }
#report-preview { width: 190mm; max-width: none; margin: 24px auto 0; color: #203e3c; background: #fff; font: 12px/1.45 Arial, sans-serif; --ink: #203e3c; --muted: #526761; --line: #dce5df; --a: #006f65; --b: #7751a6; --panel: #fff; --bg: #fff; --soft: #eff5f1; }
.report-sheet { padding: 0; }
.report-header { display: flex; justify-content: space-between; gap: 24px; border-top: 5px solid #087f73; border-bottom: 1px solid #cbdcd4; padding: 20px 0 18px; margin-bottom: 16px; }
.report-brand { display: flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 700; letter-spacing: -1px; }
#report-preview .report-kicker { font-size: 9px; letter-spacing: 1.6px; font-weight: 700; color: #526761; margin: 16px 0 4px; }
#report-preview h2 { font-size: 22px; margin: 0; line-height: 1.2; }
.report-meta { display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; text-align: right; font-size: 11px; }
.report-meta span { color: #526761; margin-top: 8px; }
.report-context { display: flex; flex-wrap: wrap; gap: 8px 18px; border-left: 3px solid #087f73; padding: 7px 10px; background: #eff5f1; margin-bottom: 16px; font-size: 11px; }
#report-preview h3 { font-size: 13px; margin: 14px 0 8px; }
#report-preview h4 { font-size: 11px; margin: 10px 0 5px; }
#report-preview .legend { font-size: 10px; gap: 16px; margin-bottom: 8px; }
#report-preview .report-chart { margin: 10px 0; break-inside: avoid; }
.report-chart figcaption { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
#report-preview .report-chart text { font: 11px Arial, sans-serif; fill: #526761; }
.report-schedules { margin-top: 14px; }
.report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.report-variant { min-width: 0; }
.report-variant-letter { display: inline-block; width: 20px; padding: 2px 0; text-align: center; background: #eff5f1; color: #006f65; border: 1px solid #cbdcd4; border-radius: 4px; margin-right: 5px; }
#report-preview table { font-size: 11px; width: 100%; }
#report-preview th, #report-preview td { font-variant-numeric: tabular-nums; }
#report-preview th { background: #eff5f1; color: #405a51; font-size: 9px; font-weight: 700; }
#report-preview th, #report-preview td { padding: 6px 5px; border-bottom: 1px solid #dce5df; line-height: 1.3; }
#report-preview td:first-child { white-space: nowrap; }
#report-preview td:nth-child(3) { white-space: nowrap; text-align: right; }
#report-preview th:nth-child(3) { text-align: right; }
#report-preview .report-entry { font-size: 10px; margin: 6px 0; break-inside: avoid; }
#report-preview p { margin: 3px 0; }
.report-disclaimer { border-top: 1px solid #cbdcd4; padding-top: 10px; margin-top: 18px; color: #526761; font-size: 10px; line-height: 1.45; }
#report-preview .report-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 10px 0 0; margin-top: 16px; border-top: 1px solid #cbdcd4; font-size: 9px; color: #526761; line-height: 1.4; }
.report-credit { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.report-credit strong { font-size: 9px; letter-spacing: 1px; color: #203e3c; }
.report-footer-info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, 1fr); gap: 6px 16px; min-width: 0; width: 100%; }
.report-uuid { font-family: Consolas, monospace; font-size: 8px; white-space: nowrap; }
.report-footer-label { display: block; margin-bottom: 2px; font-size: 8px; color: #526761; }
.report-footer-info > div > :last-child { color: #203e3c; font-weight: 600; }
.report-footer-note { grid-column: 1 / 4; font-size: 8px; align-self: center; }
.report-footer-info > .report-credit { grid-column: 1 / -1; grid-row: 3; justify-self: end; align-self: end; margin-top: 8px; transform: translateY(5mm); }
.report-single .report-sheet { min-height: 276mm; display: flex; flex-direction: column; }
.report-single .report-footer { margin-top: auto !important; padding-top: 12px; }
#report-preview.report-dense th, #report-preview.report-dense td { padding: 2px 4px; font-size: 10px; }
#report-preview.report-dense th { font-size: 8.5px; }
#report-preview.report-dense .report-entry { font-size: 9px; margin: 3px 0; }
#report-preview.report-dense .report-chart { margin: 6px 0; }
@media screen { #report-panel { overflow-x: auto; } #report-preview { box-shadow: 0 3px 20px #193e3015; padding: 10mm; box-sizing: content-box; } }
@media screen and (max-width: 600px) { #report-panel { margin: 12px; padding: 14px; } }
@media print {
  @page { size: A4; margin: 10mm 10mm 5mm; }
  .report-controls, body:has(#report-panel:not([hidden])) > main { display: none !important; }
  #report-panel { margin: 0; padding: 0; overflow: visible; border: 0; max-width: none; break-inside: auto; }
  #report-preview { margin: 0; padding: 0; width: 190mm; box-shadow: none; }
  #report-preview, #report-preview * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #report-preview .report-header { break-inside: avoid; }
  #report-preview .report-footer { display: flex !important; break-inside: avoid; }
  #report-preview h3, #report-preview h4 { break-after: avoid; }
  #report-preview tr { break-inside: avoid; }
  #report-preview table { break-inside: auto; }
  #report-preview thead { display: table-header-group; break-after: avoid; }
  #report-preview .report-schedules { break-inside: auto; }
}

#report-preview.report-dense .report-header { padding: 12px 0; margin-bottom: 10px; }
#report-preview.report-dense .report-kicker { margin-top: 9px; }
#report-preview.report-dense .report-context { margin-bottom: 10px; }
#report-preview.report-dense .report-chart svg { height: 90px; }
#report-preview.report-dense .report-disclaimer { margin-top: 10px; }
#report-preview.report-dense .report-schedules { margin-top: 8px; }
