/* =========================================================
   impresion.css — base común para TODO lo que se imprime o se guarda como PDF
   desde la plataforma: hoja A4 completa, sin menús ni botones flotantes,
   colores y fondos conservados, encabezado de marca y números de página.
   (Los documentos que se abren en ventana propia usan ES.impresion.abrir.)
   ========================================================= */
.print-head, .print-foot { display: none; }
@page { size: A4 portrait; margin: 12mm 12mm 14mm; @bottom-right { content: "Pág. " counter(page) " de " counter(pages); font: 9px system-ui, sans-serif; color: #64748b; } }
@media print {
  /* colores y fondos tal cual se ven en pantalla (si no, los títulos blancos sobre degradado desaparecen) */
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #fff !important; }
  body { min-width: 0 !important; }
  /* fuera todo lo que no es el documento */
  .app-header, .app-footer, .shell-side, .shell-overlay, .app-burger, .adm-side, .adm-top, .adm-burger, .breadcrumb, .no-print,
  .chalo-fab, .chalo-panel, .pjf, .ap-fab, .toast-container, #toast-container, .es-aviso, .guide-tip, .guide-welcome, .voz-modal, .thm-overlay, .rst-overlay,
  .coin-zoom, .rs-confetti, .info-obj, .conn-badge, .theme-bg, .hdr-adm, #btn-session, .adm-savebar { display: none !important; }
  /* la hoja ocupa todo el ancho útil, sin márgenes de la maquetación en pantalla */
  .app-main, body.has-shell .app-main { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }
  .screen { padding: 0 !important; max-width: none !important; }
  .adm { display: block !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; min-height: 0 !important; overflow: visible !important; }
  .adm-main { padding: 0 !important; }
  .adm-pane[hidden] { display: none !important; }
  .card, .adm-panel { box-shadow: none !important; }
  /* cortes de página limpios */
  h1, h2, h3, h4, h5 { break-after: avoid-page; }
  tr, .ax-row, .ax-kpi, .dbd-card, .pf-child, .ia-pk, .cm-err, .ia-hall, .cm-sec, img, svg, figure { break-inside: avoid-page; }
  thead { display: table-header-group; }
  a { color: inherit !important; text-decoration: none !important; }
  /* encabezado de marca del documento (lo inserta ES.impresion al imprimir; sus estilos .rp-* viven en impresion.js) */
  .print-head { display: block !important; margin: 0 0 6px; }
  .print-foot { display: block !important; margin-top: 18px; padding-top: 9px; border-top: 3px solid #0f1f4d; text-align: center; break-inside: avoid; }
  .print-foot .ie-foot { border: 0; margin: 0; padding: 0; }
  .print-foot .ie-foot__lema { font-size: 14px; font-weight: 800; color: #1e3a8a; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .print-foot .ie-foot__lema i { width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
  .print-foot .ie-foot__c { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 4px; font-size: 10.5px; color: #334155; font-weight: 600; }
  .print-foot .ie-foot__p { margin-top: 3px; font-size: 9px; color: #94a3b8; }
  .print-head__t { flex: 1; min-width: 0; }
  .print-head__t b { display: block; font-size: 15px; line-height: 1.2; }
  .print-head__t small { display: block; opacity: .85; font-size: 10.5px; }
  .print-head__d { text-align: right; font-size: 10.5px; opacity: .92; line-height: 1.35; }
}
