/* Visor y validador de CFDI (herramientas/cfdi.js, página validar-cfdi.html). Pantalla y hoja para imprimir (no es la
   representación impresa del CFDI: lo dice la propia hoja). Modelo: herramientas/nfe.css. */
.fh-cf-caja { display: block; border: 2px dashed var(--ft-line-strong, #CBD5E1); border-radius: 10px; background: #fff; padding: 22px 18px;
  text-align: center; cursor: pointer; margin: 0 0 .8rem; }
.fh-cf-caja:hover, .fh-cf-sobre { border-color: #2563EB; background: #EFF6FF; }
.fh-cf-caja-t { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ft-ink, #0C0D14); }
.fh-cf-caja-s { display: block; font-weight: 400; font-size: .93rem; margin-top: .3rem; }
#fh-cf-arq { display: block; max-width: 100%; font-size: .95rem; }
#fh-cf-arq:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
/* la cabecera del sitio pone h2 y h3 a 20-34 px con !important bajo 768 px: aquí se gana con especificidad e !important */
.fh-cf-res .fh-cf-tit { font-size: 1.15rem !important; line-height: 1.3; margin: 0 0 .6rem; }
.fh-cf-tit:focus { outline: none; }
.fh-cf-res .fh-pruebas li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.fh-cf-det { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.fh-cf-det li { margin: .15rem 0; }
.fh-cf-sat { border: 1px solid #BFDBFE; background: #EFF6FF; border-radius: 10px; padding: 12px 14px; margin: .8rem 0; }
.fh-cf-res .fh-cf-sat h3 { font-size: 1.02rem !important; line-height: 1.3; margin: 0 0 .4rem; }
.fh-cf-sat p { margin: 0 0 .5rem; }
.fh-cf-ir { display: inline-block; text-decoration: none; margin: .2rem 0 .5rem; }
.fh-cf-lit code { font-size: .82rem; overflow-wrap: anywhere; word-break: break-all; }
.fh-cf-btn2 { background: #fff; color: #1D4ED8; border: 1.5px solid #2563EB; }
.fh-cf-btn2:hover { background: #EFF6FF; }

.fh-cf-hoja { background: #fff; color: #0C0D14; border: 1px solid #94A3B8; padding: 10px; margin: 1rem 0 0; font-size: .82rem; line-height: 1.35; }
.fh-cf-hoja p { margin: 0; max-width: none; line-height: 1.35; }
.fh-cf-marca { background: #F1F5F9; border: 1px solid #CBD5E1; padding: 5px 8px; font-size: .9em; color: #334155; }
.fh-cf-alerta { margin-top: 6px !important; border: 1px solid #D97706; color: #92400E; font-weight: 700; text-align: center; padding: 3px; }
.fh-cf-topo { display: grid; grid-template-columns: 2fr 1.3fr 2fr; gap: 6px; margin-top: 6px; }
.fh-cf-q { border: 1px solid #94A3B8; padding: 5px 7px; margin-top: 6px; min-width: 0; }
.fh-cf-topo .fh-cf-q { margin-top: 0; }
.fh-cf-hoja .fh-cf-q h3 { font-size: .8em !important; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; color: #334155; margin: 0 0 4px; font-weight: 700; }
.fh-cf-nombre { font-weight: 700; font-size: 1.12em; margin-bottom: 2px !important; overflow-wrap: anywhere; }
.fh-cf-doc { text-align: center; }
.fh-cf-uuid { font: 700 1em/1.4 var(--ft-mono, ui-monospace, monospace); overflow-wrap: anywhere; margin-bottom: 3px !important; }
.fh-cf-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; }
.fh-cf-c { border: 1px solid #E2E8F0; padding: 2px 5px; min-width: 0; }
.fh-cf-r { display: block; font-size: .76em; text-transform: uppercase; letter-spacing: .03em; color: #64748B; }
.fh-cf-v { display: block; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.fh-cf-largo { grid-column: 1 / -1; }
.fh-cf-total .fh-cf-v { font-size: 1.2em; font-weight: 800; }
.fh-cf-rola { overflow-x: auto; }
.fh-cf-tabla table { border-collapse: collapse; width: 100%; font-size: .9em; }
.fh-cf-tabla th, .fh-cf-tabla td { border: 1px solid #CBD5E1; padding: 2px 4px; text-align: left; vertical-align: top; }
.fh-cf-tabla th { background: #F1F5F9; font-size: .86em; text-transform: uppercase; white-space: nowrap; }
.fh-cf-tabla td:nth-child(5) { min-width: 12em; }
.fh-cf-tabla td.fh-cf-n { text-align: right; white-space: nowrap; }
.fh-cf-mas td { font-size: .95em; color: #334155; border-top: 0; }
.fh-cf-pie { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.fh-cf-qr { flex: 0 0 auto; max-width: 100%; height: auto; }
.fh-cf-pie-t { min-width: 0; font-size: .85em; color: #475569; overflow-wrap: anywhere; }
.fh-cf-pie-t p + p { margin-top: 4px; }
@media (max-width: 640px) { .fh-cf-topo { grid-template-columns: 1fr; } .fh-cf-g { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .fh-cf-pie { flex-direction: column; align-items: stretch; } .fh-cf-qr { align-self: flex-start; } }

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body > :not(main) { display: none !important; }
  .fh { padding: 0 !important; }
  .fh-wrap { max-width: none; }
  .fh-wrap > :not(#fh-cf-out), #fh-cf-out > :not(.fh-cf-hoja) { display: none !important; }
  .fh-cf-hoja { border: 0; padding: 0; margin: 0; font-size: 7.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fh-cf-topo { grid-template-columns: 2fr 1.3fr 2fr; }
  .fh-cf-g { grid-template-columns: repeat(6, 1fr); }
  .fh-cf-q { break-inside: avoid; }
  .fh-cf-tabla { break-inside: auto; }
  .fh-cf-rola { overflow: visible; }
  .fh-cf-tabla table { font-size: 6.5pt; }
  .fh-cf-tabla thead { display: table-header-group; }
  .fh-cf-tabla tr { break-inside: avoid; }
  .fh-cf-pie { break-inside: avoid; }
  .fh-cf-qr { width: 3cm; height: 3cm; }   /* Anexo 20, apartado D: el QR impreso, con lados no menores a 2.75 cm */
}
