/* Ajustes visuales exclusivos del modulo Operaciones.
   La trazabilidad completa se consulta en el detalle del documento. */
body.route-operaciones table.min-w-\[1320px\] {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}

body.route-operaciones table.min-w-\[1320px\] thead th:nth-child(7),
body.route-operaciones table.min-w-\[1320px\] tbody td:nth-child(7) {
  display: none !important;
}

body.route-operaciones table.min-w-\[1320px\] th,
body.route-operaciones table.min-w-\[1320px\] td {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  white-space: nowrap;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(1),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(1) {
  width: 118px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(2),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(2) {
  width: 170px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(3),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(3) {
  width: 130px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(5),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(5) {
  width: 110px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(6),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(6) {
  width: 132px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(8),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(8) {
  width: 150px;
}

body.route-operaciones table.min-w-\[1320px\] th:nth-child(4),
body.route-operaciones table.min-w-\[1320px\] td:nth-child(4) {
  min-width: 280px;
}

body.route-operaciones table.min-w-\[1320px\] td:nth-child(4) .truncate {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Detalle de documento: la columna lateral repetia los mismos accesos que la
   trazabilidad completa. Se oculta y el bloque principal toma todo el ancho. */
body.route-operaciones .xl\:grid-cols-\[1fr_340px\] {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.route-operaciones .xl\:grid-cols-\[1fr_340px\] > aside {
  display: none !important;
}

body.route-operaciones .xl\:grid-cols-\[1fr_340px\] > section {
  width: 100% !important;
}
