/* Bloque 1 */
.contenedor{
    display: flex;
    border-width: 1px;
    border-style: none;
    border-color: black;
    font-family: Neutra; /*Verdana, Geneva, Tahoma, sans-serif;*/
    /*font-weight: normal;*/
    background-color:inherit;
    /*line-height: 0.1em;
    width: 19cm;
    height: 2cm;*/
}
.interlineado1{line-height: 0.1em;}
.interlineado2
{
  line-height: 0.95em;
  /*height: 5.5cm;*/
}

.contenedor_02{
    border-width: 0;
    border-style: none;
    text-align: right;

}  

.contenedor_x{
    border-width: 1px;
    border-style: solid;
    border-color: rgb(190, 190, 190); /*black;*/
    line-height: 0.1em;
    font-family: Neutra, Verdana, Geneva, Tahoma, sans-serif;
    /*background-color: rgb(220, 220, 220);*/
}  

.div-1{
    background-color:white;
    /*padding: 35px;*/
    text-align: left;
    margin-left: 15px;
}

.div-2{
    background-color:white;  
    text-align: right;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: right;
    border: 0px none #dbe4ed; /* Border color is optional */
}

.div-7{
    background-color:white;
    /*padding: 35px;*/
    text-align: left;
    margin-left: 0px;

}

hr{
    width:90%;
    text-align: left;
    margin-left: 0;
}

.image-center {
    display: inline-block;
    vertical-align: middle;
    position: relative;

}

.center {
    display: flex;
    align-items: center;
    justify-content: right;
    border: 3px solid #dbe4ed; /* Border color is optional */  
}
/*--------------------------*/    
/* Bloque 2 */
.contenedor2{
    display: flex;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(190, 190, 190); /*black;*/
    line-height: 1em;
    font-family: Neutra,Verdana, Geneva, Tahoma, sans-serif;
    /*background-color: rgb(220, 220, 220);*/
}

.div-3{
    background-color:inherit;
    /*padding: 35px;*/
    text-align: left;
    margin: 15px;
    /*line-height: 1.2em;*/
    font-family: Neutra,Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    
}
.div-4{
    /*background-color:white;  */
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
               
}

.div-x{
   /*background-color:white;  */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.areaInst{
    background-color:inherit;
    /*padding: 35px;*/
    text-align: left;
    margin: 5px;
    /*line-height: 1.2em;*/
    font-family: Neutra,Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
}
/*----------------------------*/

table.tabla_empaque {
border: 1px solid #000000;
width: 100%;
text-align: center;
border-collapse: collapse;
}
table.tabla_empaque td, table.tabla_empaque th {
border: 1px solid #000000;
padding: 3px 2px;
}
table.tabla_empaque tbody td { font-size: 11px; }
.tb_emp1{  font-size: 11px;    font-weight:bold;    }
.tb_emp2{  font-size: 11px;    font-weight:bold;    background-color:  rgb(220, 220, 220);
}


.div-5{
  /*background-color:white;  */
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
                    
}
.div-6{
  /*background-color:white;  */
  height: 100%;
  border-width: 1px;
  border-style: none;
  border-color: black;
  vertical-align: bottom;
  align-items: flex-end;
  display: flex;
}

.div-7{
  /*background-color:white;  */
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: left;
                    
}

table.info {
width: 100%;
background-color: #FFFFFF;
border-collapse: collapse;
border-width: 1px;
border-color: black;
border-style: solid;
color: #000000;
text-align: left;
font-size: 12px;

}

table.info td, table.info th {
vertical-align: top;
padding: 7px;
}
.negrilla {font-weight: bold;}
.textCapital {text-transform: capitalize;}
/*----------------*/
.btn {
  border: none;  
  padding: 6px 8px; 
  font-size: 15px;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  cursor: pointer; 
  border-radius: 15px;
  margin: 3px;
  border: 1px solid #ed1b2631;
  box-shadow: 0 2px 6px rgba(237, 27, 36, 0.35),
              0 1px 3px rgba(0, 0, 0, 0.15);
}
.primary          {background-color: #ED1B24; color: #DEDEDE;} /*#007bff*/
.primary:hover    {background-color: #DEDEDE; color: #ED1B24;} /*0a6fc2*/

.secondary        {background-color: #DEDEDE; color: #ED1B24;} 
.secondary:hover  {background-color: #ED1B24; color: #DEDEDE;}

/* =========================================================================================== */
/* ===========================   Reglas de impresion ========================================= */
/* =========================================================================================== */
  /* === CONFIGURACIÓN DE PÁGINA === */
  @page {
    size: A4 portrait;
    margin: 1cm 0.5cm; /* arriba/abajo  izquierda/derecha */
  }

  /* === ESTILOS SOLO PARA IMPRESIÓN === */
  @media print {
    
    /* Forzar que se impriman colores de fondo e imágenes */
    *,
    *::before,
    *::after {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
      color-adjust: exact !important;
    }

    /* Reset del body para impresión */
    html, body {
      margin: 0 !important;
      padding: 0 !important;
      background: white !important;
      width: 19cm;
      font-size: 11pt;
    }

    /* Ocultar elementos que no deben imprimirse */
    .contenedor_02,          /* contenedor de los botones */
    #btn_pdf,
    button,
    .btn {
      display: none !important;
    }

    /* Evitar que los contenedores principales se partan entre páginas */
    .contenedor,
    .contenedor2,
    .contenedor_x,
    table.info,
    table.tabla_empaque,
    .tg {
      page-break-inside: avoid;
      break-inside: avoid;
    }

    /* Mantener filas de tabla juntas */
    tr, td, th {
      page-break-inside: avoid;
      break-inside: avoid;
    }

    /* Salto de página controlado (ya lo tienes para la 2da hoja) */
    table[style*="break-after: page"] {
      page-break-after: always;
      break-after: page;
      display: block;
      height: 0;
    }

    /* Centrado consistente */
    CENTER, center {
      display: block;
      margin: 0 auto;
    }

    /* Asegurar que las imágenes no se rompan */
    img {
      max-width: 100% !important;
      page-break-inside: avoid;
    }

    /* Mantener los bordes visibles */
    .contenedor2,
    .contenedor_x,
    table.info,
    table.tabla_empaque,
    .tg td,
    .tg th {
      border-color: #000 !important;
    }

    /* Evitar que enlaces muestren la URL en impresión */
    a[href]:after {
      content: none !important;
    }
  }
