/* ===== INVENTARIO — DISEÑO REFINADO ===== */
.inventario-table-container {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}
.inventario-table-container::-webkit-scrollbar { height: 5px; }
.inventario-table-container::-webkit-scrollbar-track { background: transparent; }
.inventario-table-container::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 10px; }

.inventario-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
  min-width: 1100px;
}

/* Anchos de columna proporcionales — 15 cols */
.inventario-table col.c-num     { width: 3%; }   /* # */
.inventario-table col.c-nombre  { width: 11%; }  /* Producto */
.inventario-table col.c-cat     { width: 9%; }   /* Categoría */
.inventario-table col.c-unidad  { width: 6%; }   /* Unidad */
.inventario-table col.c-units   { width: 5%; }   /* Unidades */
.inventario-table col.c-agregos { width: 7%; }   /* Agregos */
.inventario-table col.c-baja    { width: 9%; }   /* Baja */
.inventario-table col.c-salida  { width: 5%; }   /* Salida */
.inventario-table col.c-precio  { width: 9%; }   /* Precio */
.inventario-table col.c-moneda  { width: 5%; }   /* Moneda */
.inventario-table col.c-pcup    { width: 9%; }   /* Precio CUP */
.inventario-table col.c-costo   { width: 8%; }   /* Costo Unit */
.inventario-table col.c-estado  { width: 8%; }   /* Estado */
.inventario-table col.c-acc     { width: 6%; }   /* Acciones */

.inventario-table thead tr {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.inventario-table th {
  padding: 11px 6px;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 2px solid rgba(201,168,76,0.35);
}
.inventario-table th:nth-child(2),
.inventario-table th:nth-child(3),
.inventario-table th:nth-child(4),
.inventario-table th:nth-child(5) { text-align: left; padding-left: 10px; }

.inventario-table tbody tr:hover { background: rgba(201,168,76,0.03); }
.inventario-table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(10,22,40,0.07);
  vertical-align: middle;
  color: var(--text-dark);
}
.inventario-table tbody tr:last-child td { border-bottom: none; }

/* Celdas de texto que pueden envolver */
.inventario-table td:nth-child(2),
.inventario-table td:nth-child(3),
.inventario-table td:nth-child(4) {
  text-align: left;
  padding-left: 10px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.inventario-table td:nth-child(2)  { font-weight: 600; color: var(--text-dark); }
.inventario-table td:nth-child(3)  { color: var(--text-muted); font-size: 0.75rem; }
.inventario-table td:nth-child(4)  { color: var(--text-muted); font-size: 0.75rem; }

/* Celdas numéricas centradas */
.inventario-table td:nth-child(1),
.inventario-table td:nth-child(5),
.inventario-table td:nth-child(6),
.inventario-table td:nth-child(7),
.inventario-table td:nth-child(8),
.inventario-table td:nth-child(10),
.inventario-table td:nth-child(13),
.inventario-table td:nth-child(14) { text-align: center; }
.inventario-table td:nth-child(1)  { color: var(--text-muted); font-size: 0.7rem; }

/* Celdas de precio alineadas a la derecha */
.inventario-table td:nth-child(9),
.inventario-table td:nth-child(11),
.inventario-table td:nth-child(12) { text-align: right; font-family: 'DM Mono', monospace; font-variant-numeric: tabular-nums; }

/* Inputs dentro de la tabla — más compactos */
.inventario-table input[type="number"] {
  width: 58px !important;
  padding: 4px 6px !important;
  font-size: 0.78rem !important;
}

/* Tfoot totales */
.inventario-table tfoot tr {
  background: linear-gradient(90deg, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.04) 100%);
}
.inventario-table tfoot td {
  padding: 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
  border-top: 2px solid rgba(201,168,76,0.3);
  text-align: center;
}
.inventario-table tfoot td:first-child { text-align: left; padding-left: 10px; }

