/* report.css · informe completo (pantalla e impresión / PDF) */
body.report { background: var(--bg2); }
.rp-bar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.rp-bar .in { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.rp-bar .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-tip { max-width: 820px; margin: 12px auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.sheet {
  max-width: 820px; margin: 16px auto 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px max(18px, env(safe-area-inset-left, 0px)) 32px; display: flex; flex-direction: column; gap: 26px; min-width: 0;
}
@media (min-width: 700px) { .sheet { padding: 40px 44px 44px; } }
.rp-head { display: flex; flex-direction: column; gap: 8px; border-bottom: 3px solid var(--accent); padding-bottom: 16px; }
.rp-head .brand { font-size: 17px; }
.rp-head h1 { font-size: clamp(28px, 6vw, 36px); }
.rp-head .meta { color: var(--ink2); font-size: 14px; }
section.rp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
section.rp h2 { font-size: 21px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
section.rp h3 { font-size: 16px; margin-top: 6px; }
section.rp ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tablewrap { overflow-x: auto; max-width: 100%; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); padding: 6px 8px; border-bottom: 2px solid var(--line); }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.now td { background: var(--accent-soft); font-weight: 700; }
table.t td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 34px; gap: 10px; align-items: center; font-size: 14.5px; }
.bar-row .track { height: 14px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bar-row .n { text-align: right; font-weight: 700; }
.wk-block { display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.wk-block .ent { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; display: flex; flex-direction: column; gap: 2px; }
.wk-block .ent .d { color: var(--ink2); font-size: 13px; }
.wk-block .ent p { white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-foot { color: var(--ink2); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.kv-rp { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 6px 14px; }
.kv-rp dt { color: var(--ink2); }
.kv-rp dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

@media print {
  :root {
    --bg: #fff; --bg2: #f4f4f4; --surface: #fff; --ink: #1b1620; --ink2: #4a4153; --ink3: #6a6073; --line: #d9d2dd;
    --accent: #a63d6f; --accent-soft: #f6e4ec; --on-accent: #fff; color-scheme: light;
  }
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #1b1620 !important; font-size: 10.5pt; line-height: 1.45; }
  .no-print { display: none !important; }
  .sheet { margin: 0; border: 0; border-radius: 0; padding: 0; max-width: none; box-shadow: none; gap: 16px; }
  section.rp { break-inside: avoid-page; }
  section.rp.long { break-inside: auto; }
  section.rp h2 { break-after: avoid; }
  table.t tr, .wk-block, .ent { break-inside: avoid; }
  table.t th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.t tr.now td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .tablewrap { overflow: visible; }
}
