/*

body, th, td, h1, h2, h3, h4, h5, h6 {
    font-family: Verdana,Arial,sans-serif;
}
*/

.noprint {
  display: none;
}

/* Página */
@page { size: A4; margin: 25mm 20mm; }

/* Ocultar elementos de UI no imprimibles */
.navbar, .nav, .btn, .btn-group, .dropdown, .breadcrumb, .pagination, .form-control,
.no-print, .no-print * {
  display: none !important;
  visibility: hidden !important;
}

/* Normalizar contenedores: evitar comportamientos flex/float problemáticos */
.container, .container-fluid, .row, .col,
.d-flex, .flex-row, .flex-column, .float-left, .float-right {
  display: block !important;
  float: none !important;
  width: auto !important;
}

/* Tipografía y colores */
html, body {
  background: #fff !important;
  color: #000 !important;
  font-family: "Times New Roman", Georgia, serif !important;
  font-size: 12pt !important;
  line-height: 1.45 !important;
}

/* Encabezado / pie fijados para preview; los conversores suelen usar header/footer templates */
header.print-header, footer.print-footer {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  color: #444;
  font-size: 10pt;
}
header.print-header { top: 0; border-bottom: 1px solid #eee; padding: 6px 10mm; }
footer.print-footer { bottom: 0; border-top: 1px solid #eee; padding: 6px 10mm; }

/* Espaciado del cuerpo para no solaparse con header/footer */
.print-body {
  margin-top: 40px !important;
  margin-bottom: 32px !important;
}

/* Párrafos y control de huérfanas/viudas */
p { orphans: 3; widows: 3; margin: 0 0 12px !important; text-align: justify; }
p.first-line-indent { text-indent: 1.25em; }

/* Títulos: evitar que queden huérfanos */
h1, h2, h3, h4 {
  page-break-after: avoid;
  page-break-inside: avoid;
  margin: 16px 0 8px !important;
  color: #111 !important;
}

/* Tablas e imágenes */
table { width: 100% !important; border-collapse: collapse !important; page-break-inside: avoid; }
thead { display: table-header-group; } /* repetir en cada página si el motor lo soporta */
tfoot { display: table-footer-group; }
tr { page-break-inside: avoid; }
img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; }

/* Evitar cortes dentro de bloques importantes */
.keep-together, pre, blockquote, code, .card {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Forzar salto de página donde se necesite */
.page-break { page-break-after: always; break-after: page; height: 0; }

/* Numeración visual (si necesitas que el conversor inyecte números, delega allí) */
.page-number { font-size: 10pt; color: #666; }

/* Ajustes específicos Bootstrap (clases de impresión) */
.d-print-none { display: none !important; }
.d-print-block { display: block !important; }
.d-print-inline { display: inline !important; }
.d-print-inline-block { display: inline-block !important; }
