/* ===============================
 * ESTILOS REMITO + TABLA COSTURA
 * =============================== */

/*****************************************************
 * SECCIÓN DETALLE/REMITO
 *****************************************************/

 .remito-document {
  border: 2px solid #000;
  padding: 1rem;
  background-color: #fff;
  color: #000;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.remito-header {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.remito-logo {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.remito-info {
  display: flex;
  flex-direction: column;
}

.remito-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.remito-row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.remito-separator {
  border: none;
  border-top: 2px solid #000;
  margin: 0.5rem 0;
}

.remito-section {
  margin-bottom: 0.5rem;
}

.remito-section h4 {
  margin-bottom: 0.3rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
}

.remito-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: #fff;
  border: none; /* Elimina borde externo innecesario */
}

.remito-table th,
.remito-table td {
  border: 0.5px solid #000; /* Bordes más finos y consistentes */
  padding: 0.3rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}

/* En impresión mantiene el mismo grosor */
@media print {
  .remito-table th,
  .remito-table td {
    border: 0.4px solid #000;
  }
}



@media print {
  .modal {
    display: block !important;
    position: static !important;
  }

  .modal-backdrop {
    display: none !important;
  }

  .remito-document {
    width: 190mm;
    min-height: 270mm;
    margin: 0 auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
    page-break-after: always;
  }
}


/*****************************************************
 * TABLA COSTURA PRINCIPAL
 *****************************************************/

.table-responsive {
  overflow-x: auto !important;
  overflow-y: auto !important;
  max-width: 100%;
  max-height: 70vh;
  border: 1px solid #dee2e6;
}

#costuraTable {
  width: 100%;
  table-layout: fixed;
}

#costuraTable thead th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  padding: 0.5rem;
  vertical-align: middle;
  text-align: center;

  /* 🔒 Esto hace que el encabezado quede fijo al hacer scroll */
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #212529; /* mismo color de fondo oscuro */
  color: white;
}


#costuraTable th:nth-child(1) { width: 40px; }     /* ID */
#costuraTable th:nth-child(2) { width: 100px; }    /* Fecha Corte */
#costuraTable th:nth-child(3) { width: 80px; }     /* # Corte */
#costuraTable th:nth-child(4) { width: 100px; }    /* Cortador */
#costuraTable th:nth-child(5) { width: 150px; }    /* Modelo */
#costuraTable th:nth-child(6) { width: 100px; }    /* Tela */
#costuraTable th:nth-child(7) { width: 100px; }    /* Ubicación */
#costuraTable th:nth-child(8),
#costuraTable th:nth-child(9),
#costuraTable th:nth-child(10),
#costuraTable th:nth-child(11),
#costuraTable th:nth-child(12),
#costuraTable th:nth-child(13),
#costuraTable th:nth-child(14) {
  width: 50px;  /* Talles XS a XXXL */
}
#costuraTable th:nth-child(15) { width: 160px; }   /* Colores/Capas */
#costuraTable th:nth-child(16) { width: 80px; }    /* Cantidad */
#costuraTable th:nth-child(17) { width: 100px; }   /* Fecha Envio */
#costuraTable th:nth-child(18) { width: 100px; }   /* Quién Envia */
#costuraTable th:nth-child(19) { width: 100px; }   /* Taller */
#costuraTable th:nth-child(20) { width: 120px; }   /* Nombre */
#costuraTable th:nth-child(21) { width: 150px; }   /* Dirección */
#costuraTable th:nth-child(22) { width: 90px; }    /* Precio */
#costuraTable th:nth-child(23) { width: 90px; }    /* Total */
#costuraTable th:nth-child(24) { width: 110px; }   /* Acciones */
#costuraTable th:nth-child(25) { width: 200px; }   /* Observaciones */


#costuraTable tbody td {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.85rem;
  padding: 0.5rem;
  vertical-align: middle;
}


.btn-ver,
.btn-remito {
  display: block;
  width: 100px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-ver {
  background-color: #17c1e8;
  color: white;
}

.btn-ver:hover {
  background-color: #0ea5c6;
}

.btn-remito {
  background-color: #6c757d;
  color: white;
}

.btn-remito:hover {
  background-color: #5a6268;
}
html, body {
  height: auto !important;


  .container:hover,
.card:hover,
.table-responsive:hover {
  transform: none !important;
  transition: none !important;
}

}
.fila-amarilla td {
  background-color: #fff9c4 !important;
}
.fila-verde td {
  background-color: #d0f0c0 !important;
}

@media print {
  .remito-table {
    font-size: 0.65rem !important;
  }
}
