/* ==========================================================================
   PORTAL DE DOCUMENTACIÓN FUNCIONAL: SG-SST SINAPSSE v9.0
   Estilos de Impresión / Guardar en PDF Limpio para Informes Médicos
   ========================================================================== */

@media print {
  @page {
    margin: 1.5cm;
    size: letter portrait;
  }

  body {
    background: white !important;
    color: #111827 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  /* Ocultar elementos de navegación y control de interfaz */
  .sidebar,
  .top-navbar,
  .search-box,
  .btn-header,
  .doc-footer,
  .no-print {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .content-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Títulos y Encabezados */
  .doc-header {
    border-bottom: 2px solid #0073CE !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
  }

  .doc-header h1 {
    font-size: 20pt !important;
    color: #0073CE !important;
  }

  .doc-subtitle {
    font-size: 12pt !important;
    color: #4b5563 !important;
  }

  .doc-section {
    page-break-inside: avoid;
    margin-bottom: 25px !important;
  }

  .doc-section h2 {
    font-size: 14pt !important;
    border-bottom: 1px solid #d1d5db !important;
    padding-bottom: 4px !important;
    margin-bottom: 10px !important;
    color: #1f2937 !important;
  }

  .doc-section h3 {
    font-size: 12pt !important;
    margin-top: 12px !important;
  }

  /* Tablas Clínicas */
  .table-container {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    page-break-inside: avoid;
  }

  table.doc-table th {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border-bottom: 1px solid #9ca3af !important;
    font-size: 10pt !important;
  }

  table.doc-table td {
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 9.5pt !important;
  }

  /* Cajas de Aviso */
  .notice-box {
    border-left: 4px solid #0073CE !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
    page-break-inside: avoid;
    padding: 10px 14px !important;
  }

  /* Fórmulas */
  .formula-box {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    page-break-inside: avoid;
    font-size: 9.5pt !important;
  }

  /* Enlaces */
  a {
    text-decoration: none !important;
    color: #111827 !important;
  }
}
