/* print.css — Informe DQ imprimible (PDF vía window.print()). */

#print-report { display: none; }

/* Estilos del informe (aplican al imprimir; el contenedor está oculto en pantalla). */
.rep { font-family: 'DM Sans', sans-serif; color: #2C3E50; font-size: 11px; line-height: 1.45; }
.rep-hd { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #B8953A; padding-bottom: 10px; margin-bottom: 12px; }
.rep-brand { display: flex; align-items: center; gap: 10px; }
.rep-logo { width: 44px; height: 44px; }
.rep-ttl { font-size: 20px; font-weight: 700; color: #1B2A4A; line-height: 1; }
.rep-tag { font-size: 9px; color: #7F8C8D; letter-spacing: 1px; text-transform: uppercase; }
.rep-meta { text-align: right; font-size: 10px; color: #7F8C8D; }
.rep-meta b { color: #1B2A4A; font-size: 12px; }

.rep-cli { display: flex; gap: 22px; flex-wrap: wrap; background: #EEF2F7; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.rep-cli .k { font-size: 8px; text-transform: uppercase; letter-spacing: .5px; color: #7F8C8D; font-weight: 700; display: block; }

.rep-score { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 6px; }
.rep-dq { font-family: 'DM Mono', monospace; font-size: 42px; font-weight: 700; line-height: 1; }
.rep-dq small { font-size: 14px; color: #7F8C8D; }
.rep-interp { font-size: 14px; font-weight: 700; margin-top: 2px; }
.rep-prov { font-size: 10px; color: #7F8C8D; margin-top: 2px; }
.rep-mad { display: flex; align-items: center; gap: 10px; background: #1B2A4A; color: #fff; border-radius: 10px; padding: 10px 16px; }
.rep-mad-n { font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 700; color: #D4AF5A; }
.rep-mad-k { font-size: 8px; text-transform: uppercase; letter-spacing: .5px; opacity: .75; }
.rep-mad-d { font-size: 15px; font-weight: 700; }
.rep-note { background: #FEF9E7; color: #B9770E; border-radius: 6px; padding: 6px 10px; font-size: 10px; font-weight: 600; margin-bottom: 8px; }

.rep-sec-t { font-size: 11px; font-weight: 700; color: #1B2A4A; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid #C8D6E5; padding-bottom: 4px; margin: 14px 0 8px; }

.cap-blk { margin-bottom: 10px; page-break-inside: avoid; }
.cap-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cap-ic { font-size: 14px; }
.cap-nm { font-weight: 700; font-size: 12px; color: #1B2A4A; flex: 1; }
.cap-sc { font-family: 'DM Mono', monospace; font-weight: 700; font-size: 15px; }
.cap-sc small { font-size: 9px; color: #7F8C8D; }
.cap-nd { font-size: 10px; color: #7F8C8D; font-style: italic; padding: 2px 0 4px 22px; }

.ind-t { width: 100%; border-collapse: collapse; margin: 2px 0 2px 22px; }
.ind-t td { padding: 2px 4px; vertical-align: middle; }
.ind-n { font-size: 10px; color: #2C3E50; width: 46%; }
.ind-b { width: 26%; }
.ind-bar { display: block; height: 6px; background: #EEF2F7; border-radius: 99px; overflow: hidden; }
.ind-bar > i { display: block; height: 100%; border-radius: 99px; }
.ind-p { font-family: 'DM Mono', monospace; font-weight: 700; font-size: 10px; text-align: right; width: 8%; color: #1B2A4A; }
.ind-i { text-align: right; width: 20%; }

.chip { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.a-verde { background: #E8F8EF; color: #27AE60; }
.a-amarillo { background: #FEF9E7; color: #B9770E; }
.a-naranja { background: #FDF2E9; color: #E67E22; }
.a-rojo { background: #FDEDEC; color: #E74C3C; }
.a-nd { background: #EEF2F7; color: #7F8C8D; }

.rep-box { border: 1px solid #C8D6E5; border-radius: 8px; padding: 2px 12px; margin-bottom: 10px; }
.rep-box .rr { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #EEF2F7; font-size: 11px; }
.rep-box .rr:last-child { border-bottom: none; }
.rep-box .rr.sub .rl { font-size: 8px; text-transform: uppercase; letter-spacing: .6px; color: #7F8C8D; font-weight: 700; }
.rep-box .rr.tot { border-top: 1px solid #C8D6E5; border-bottom: none; }
.rep-box .rr.tot .rl { font-weight: 700; color: #1B2A4A; }
.rep-box .rr.tot .rv { color: #B8953A; font-size: 12px; }
.rep-box .rl { color: #2C3E50; }
.rep-box .rv { font-family: 'DM Mono', monospace; font-weight: 700; color: #1B2A4A; }
.rep-list { margin: 0 0 8px 20px; }
.rep-list li { font-size: 10px; margin-bottom: 3px; }

.rep-ft { border-top: 1px solid #C8D6E5; margin-top: 14px; padding-top: 8px; font-size: 9px; color: #7F8C8D; }
.rep-disc { margin-top: 3px; font-size: 8px; }

@media print {
  html, body { background: #fff !important; }
  #hdr, #bnav, #toast, #app { display: none !important; }
  #print-report { display: block !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { size: A4; margin: 12mm; }
}
