/* Printable monitor report. On screen it uses the dashboard theme; in print
   (or Save as PDF) it switches to black on white, A4/Letter friendly. */
.report .rp-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report .rp-controls label { margin: 0; font-family: var(--mono); font-size: 12px; }
.report .rp-controls .grow { flex: 1; }
.rp-doc { border: 1px solid var(--line, var(--border)); background: var(--panel, transparent); padding: 32px 36px; margin-top: 18px; }
.rp-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.rp-head h1 { margin: 4px 0 8px; }
.rp-logo { width: 44px; height: 44px; opacity: .9; }
.rp-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.rp-privacy { font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--accent); padding: 4px 0 4px 12px; margin: 18px 0 8px; }
.rp-sec { margin-top: 28px; }
.rp-sec h2 { font-size: 15px; margin: 0 0 10px; text-transform: none; }
.rp-headline { font-size: 15.5px; line-height: 1.6; margin: 0 0 16px; max-width: 900px; }
.rp-note { font-size: 12.5px; margin: -4px 0 10px; }
.rp-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rp-kpi { border: 1px solid var(--line, var(--border)); padding: 12px 14px; }
.rp-kpi .v { font-size: 22px; font-weight: 700; }
.rp-kpi .l { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.rp-kpi.hot .v { color: var(--yellow); }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line, var(--border)); padding: 6px 8px; }
.rp-table td { padding: 7px 8px; border-bottom: 1px solid var(--line, var(--border)); vertical-align: top; }
.rp-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-table td.q { font-family: var(--mono); font-size: 12px; word-break: break-word; max-width: 520px; }
.rp-table td.q .nosh { color: var(--muted); }
.rp-table td.t { white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rp-table tr.total td { font-weight: 700; border-top: 1px solid var(--muted); }
.rp-table td.hot { color: var(--yellow); font-weight: 600; }
.rp-table td.zero { color: var(--muted); }
.rp-agent .nm { font-family: var(--mono); font-weight: 600; }
.rp-agent .sub { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.rp-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rp-tables .box { border: 1px solid var(--line, var(--border)); padding: 10px 12px; }
.rp-tables .box h3 { font-family: var(--mono); font-size: 13px; margin: 0 0 6px; }
.rp-tables .row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; padding: 3px 0; }
.rp-tables .row span:last-child { color: var(--muted); white-space: nowrap; }
.rp-foot { margin-top: 30px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); line-height: 1.7; }
.rp-empty { color: var(--muted); padding: 10px 0; }

@media (max-width: 900px) { .rp-kpis { grid-template-columns: repeat(3, 1fr); } }

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .noprint, .topbar, .foot { display: none !important; }
  .wrap.wide { max-width: none; padding: 0; margin: 0; }
  .rp-doc { border: none; padding: 0; margin: 0; background: #fff; }
  .rp-doc, .rp-doc * { color: #111 !important; }
  .rp-meta, .rp-note, .rp-foot, .rp-table th, .rp-table td.t, .rp-agent .sub, .rp-kpi .l, .rp-tables .row span:last-child, .rp-privacy { color: #555 !important; }
  .rp-kpi, .rp-tables .box, .rp-table th, .rp-table td { border-color: #ccc !important; }
  .rp-kpi.hot .v, .rp-table td.hot { color: #9a6700 !important; }
  .rp-privacy { border-left-color: #111; }
  .rp-table tr, .rp-tables .box, .rp-kpi { break-inside: avoid; }
  .rp-break { break-before: auto; }
  a { color: #111 !important; text-decoration: none; }
}
