/* Hojas imprimibles — tamaño carta, estilo institucional de la boleta de RR. HH. */
#impresion { display: none; }
@page { size: letter; margin: 12mm 13mm 12mm; }

@media print {
  body.imprimiendo #app, body.imprimiendo #avisos, body:has(#impresion:not(:empty)) #app { display: none !important; }
  body.imprimiendo { background: #fff !important; }
  body.imprimiendo #impresion { display: block; }
}
/* El informe por dependencia se imprime en horizontal. */
@page horizontal { size: letter landscape; margin: 10mm; }
.hoja-horizontal { page: horizontal; }

.hoja { font: 9.4pt/1.35 Arial, Helvetica, sans-serif; color: #111; page-break-after: always; break-after: page;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hoja:last-child { page-break-after: auto; break-after: auto; }

/* Encabezado: escudo, títulos en verde y código de boleta */
.b-enc { display: flex; align-items: center; gap: 16px; margin: 0 0 4mm; padding-bottom: 3mm; border-bottom: 2px solid #2e6b3a; }
.b-enc img { width: 20mm; height: auto; flex: none; }
.b-tit { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.b-tit strong { color: #2e6b3a; font-size: 11.5pt; letter-spacing: .01em; }
.b-tit strong:last-child { font-size: 10.5pt; }
.b-id { text-align: right; display: flex; flex-direction: column; font-size: 7.8pt; color: #555; }
.b-id b { font-size: 9.5pt; color: #111; }

.b-meta { margin: 0 0 4px; font-size: 8.8pt; }
.b-alerta { border: 1.5px solid #b45309; background: #fff7ed; padding: 4px 8px; font-weight: 700; color: #92400e; margin: 4px 0; }
.b-sec { margin: 8px 0 6px; padding: 5px 9px; background: #e8f2ea; border: 1.5px solid #b9d3bf; color: #2e6b3a;
  font-size: 10pt; font-weight: 700; letter-spacing: .01em; break-after: avoid; page-break-after: avoid; }

/* Tablas */
.b-tabla { width: 100%; border-collapse: collapse; margin: 0 0 6px; break-inside: avoid; page-break-inside: avoid; }
.b-tabla th, .b-tabla td { border: 1.2px solid #b9d3bf; padding: 3.5px 6px; text-align: left; vertical-align: top; }
.b-tabla th { background: #e8f2ea; color: #2e6b3a; font-size: 8.4pt; font-weight: 700; text-transform: uppercase; }
.b-datos th { width: 19%; vertical-align: middle; white-space: nowrap; }
.b-datos td { width: 31%; }
.b-dos th, .b-dos td { width: 50%; }
.b-res .b-nota { background: #dff0e2; font-size: 15pt; font-weight: 700; vertical-align: middle; }
.b-res .b-nota small { font-size: 9pt; font-weight: 400; color: #444; }
.b-res .b-clas { color: #fff; font-weight: 700; font-size: 14pt; vertical-align: middle; }
.b-res .b-escala { font-size: 8pt; color: #333; background: #f7faf7; }
.b-factores td:nth-child(n+3), .b-factores th:nth-child(n+3) { text-align: center; white-space: nowrap; }
.b-factores td:first-child { width: 5%; text-align: center; }
.b-factores .b-total td { background: #e8f2ea; color: #2e6b3a; font-weight: 700; }
.b-factores .b-total td:first-child { text-align: right; }
.b-campos td:first-child { width: 32%; }
.b-blanco td { height: 24px; }
.b-lineas td { height: 22px; }

.b-texto { margin: 0 0 6px; }
.b-obs-t { font-weight: 700; margin: 8px 0 3px; }
.b-check { display: inline-block; width: 10px; height: 10px; border: 1.2px solid #111; vertical-align: -1px; margin-right: 2px; }

/* Firmas */
.b-firmas { break-inside: avoid; page-break-inside: avoid; }
.b-fir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; text-align: center; break-inside: avoid; }
.b-fir div { display: flex; flex-direction: column; align-items: stretch; }
.b-fir span { border-top: 1.3px solid #111; margin-bottom: 4px; }
.b-fir em { font-style: normal; color: #2e6b3a; font-weight: 700; font-size: 9.2pt; }
.b-fir b { font-weight: 700; font-size: 8.8pt; margin-top: 3px; }
.b-fir small { font-size: 8.2pt; color: #333; min-height: 1.2em; }
.b-fir-dos { grid-template-columns: repeat(2, 1fr); margin: 34px 70px 0; gap: 90px; }

/* Anexo y formato en blanco: los 50 criterios */
.b-anexo { margin-bottom: 4px; }
.b-anexo th, .b-anexo td { padding: 1.6px 5px; font-size: 7.8pt; line-height: 1.2; vertical-align: middle; }
.b-anexo .b-fac { text-transform: none; font-size: 8.3pt; }
.b-anexo .b-fac small { font-weight: 400; color: #444; }
.b-anexo .b-op { width: 40px; text-align: center; padding: 1px; line-height: 1; }
.b-anexo .b-op small { display: block; font-size: 5.4pt; font-weight: 600; color: #444; text-transform: none; white-space: nowrap; }
.b-cod { width: 26px; text-align: center !important; font-weight: 700; }
.b-caja { text-align: center !important; font-weight: 800; font-size: 9pt !important; }
.b-just { font-size: 7.1pt; color: #555; font-style: italic; }
.b-motivo { height: 18px; color: #555; font-size: 7.6pt !important; }
