.con-vs-popup .vs-popup[data-v-456b1818]{transition:all .2s;z-index:100;height:97%;max-width:calc(100% - 30px);max-height:unset;-webkit-box-shadow:0 5px 20px 0 rgba(0,0,0,.1)}[dir] .con-vs-popup .vs-popup[data-v-456b1818]{-webkit-transition:all .2s;margin:10px;border-radius:6px;box-shadow:0 5px 20px 0 rgba(0,0,0,.1);background:#fff}[dir=ltr] .con-vs-popup .vs-popup[data-v-456b1818],[dir=rtl] .con-vs-popup .vs-popup[data-v-456b1818]{-webkit-animation:rebound .3s;animation:rebound .3s}.scroll-area{position:relative;width:90%;height:400px}[dir] .scroll-area{margin:auto}[dir] .selectExample[data-v-c090c4ee]{margin:5px}table[data-v-c090c4ee]{position:relative;table-layout:fixed;width:100%;white-space:nowrap;overflow:hidden;border-collapse:collapse}[dir] table[data-v-c090c4ee]{background-color:#252b48}tbody[data-v-c090c4ee]{position:relative;display:block;height:400px;overflow:scroll}tbody td[data-v-c090c4ee]{min-width:120px}[dir] tbody td[data-v-c090c4ee]{border:1px solid #222}tbody tr td[data-v-c090c4ee]:first-child{position:relative;height:40px}[dir] tbody tr td[data-v-c090c4ee]:first-child{background-color:#382754}tbody tr td[data-v-c090c4ee]:nth-child(2){position:relative}[dir] tbody tr td[data-v-c090c4ee]:nth-child(2){background-color:#382754}[dir] tbody tr td[data-v-c090c4ee]{text-align:center}

/* Rindemas: tabla de almacenes alta y responsiva. */
tbody[data-v-c090c4ee]{
  height:calc(100vh - 320px)!important;
  height:calc((var(--vh, 1vh) * 100) - 320px)!important;
  min-height:260px;
  overflow-x:auto!important;
  overflow-y:auto!important;
  scrollbar-gutter:stable;
}
tbody tr td[data-v-c090c4ee]:first-child{height:36px}
tbody[data-v-c090c4ee]::-webkit-scrollbar{width:10px;height:10px}
[dir] tbody[data-v-c090c4ee]::-webkit-scrollbar-thumb{
  background:#596080;
  border:2px solid #252b48;
  border-radius:8px;
}
@media (max-height:760px){
  tbody[data-v-c090c4ee]{
    height:calc(100vh - 315px)!important;
    height:calc((var(--vh, 1vh) * 100) - 315px)!important;
    min-height:330px;
  }
}

/* Dirección de movimientos: ENTRADA = Azul (#1e3a8a / #2563eb), SALIDA = Rojo (#991b1b / #dc2626) */

/* Celdas de datos por columna */
#Almacen td.movimiento-entra,
[dir] #Almacen td.movimiento-entra {
  background-color: rgba(30, 64, 175, 0.22);
  border-color: rgba(59, 130, 246, 0.35);
  color: #e0e7ff;
}

#Almacen td.movimiento-sale,
[dir] #Almacen td.movimiento-sale {
  background-color: rgba(185, 28, 28, 0.22);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

/* Encabezados principales: Fila 0 (Fecha) y Fila 1 (Usuario / Tipo) */
#Almacen tr:first-child td.movimiento-entra,
#Almacen tr:nth-child(2) td.movimiento-entra,
[dir] #Almacen tr:first-child td.movimiento-entra,
[dir] #Almacen tr:nth-child(2) td.movimiento-entra {
  background-color: #1e3a8a !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#Almacen tr:first-child td.movimiento-sale,
#Almacen tr:nth-child(2) td.movimiento-sale,
[dir] #Almacen tr:first-child td.movimiento-sale,
[dir] #Almacen tr:nth-child(2) td.movimiento-sale {
  background-color: #991b1b !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Hover interactivo sobre filas */
#Almacen tr:hover td.movimiento-entra,
[dir] #Almacen tr:hover td.movimiento-entra {
  background-color: rgba(30, 64, 175, 0.38);
}

#Almacen tr:hover td.movimiento-sale,
[dir] #Almacen tr:hover td.movimiento-sale {
  background-color: rgba(185, 28, 28, 0.38);
}

/* El cuerpo de la tabla es el viewport de desplazamiento en ambos ejes. */
table[data-v-c090c4ee]{
  display:block;
  width:100%;
  max-width:100%;
  overflow:visible!important;
}
#Almacen{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-x pan-y;
  scrollbar-width:auto;
  scrollbar-color:#7367f0 #1f2542;
}
#Almacen tr{
  display:flex;
  width:max-content;
  min-width:100%;
}
#Almacen td{
  flex:0 0 120px;
  width:120px;
  min-width:120px;
  max-width:120px;
  box-sizing:border-box;
}
#Almacen::-webkit-scrollbar{
  width:12px;
  height:14px;
}
[dir] #Almacen::-webkit-scrollbar-track{
  background:#1f2542;
  border-radius:8px;
}
[dir] #Almacen::-webkit-scrollbar-thumb{
  background:#7367f0;
  border:2px solid #1f2542;
  border-radius:8px;
}
[dir] #Almacen::-webkit-scrollbar-corner{
  background:#1f2542;
}

@media (max-height:650px){
  tbody[data-v-c090c4ee]{
    height:calc(100vh - 270px)!important;
    min-height:220px;
  }
}


/* ===== 2026-10-17 (Marko): produccion en VERDE, columnas mas anchas y encabezados sin cortes ===== */
#Almacen td.movimiento-produccion,
[dir] #Almacen td.movimiento-produccion {
  background-color: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.35);
  color: #dcfce7;
}
#Almacen tr:first-child td.movimiento-produccion,
#Almacen tr:nth-child(2) td.movimiento-produccion,
[dir] #Almacen tr:first-child td.movimiento-produccion,
[dir] #Almacen tr:nth-child(2) td.movimiento-produccion {
  background-color: #166534 !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
#Almacen tr:hover td.movimiento-produccion,
[dir] #Almacen tr:hover td.movimiento-produccion {
  background-color: rgba(22, 163, 74, 0.38);
}
/* anchos: producto 180, stock 100, cada operacion 160 */
#Almacen td { flex: 0 0 160px; width: 160px; min-width: 160px; max-width: 160px; padding: 7px 8px; line-height: 1.3; }
#Almacen td:first-child { flex-basis: 180px; width: 180px; min-width: 180px; max-width: 180px; }
#Almacen td:nth-child(2) { flex-basis: 100px; width: 100px; min-width: 100px; max-width: 100px; }
/* encabezados (fecha y usuario): el texto se ajusta y el autor va debajo, sin cortes */
#Almacen tr:first-child td, #Almacen tr:nth-child(2) td {
  white-space: normal; height: auto; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
#Almacen tr:nth-child(2) td { min-height: 60px; }
#Almacen .mov-autor { font-size: 11px !important; font-weight: 400 !important; opacity: .95 !important; margin-top: 3px !important; line-height: 1.2; }

#Almacen th:nth-child(-n+2), #Almacen td:nth-child(-n+2) { z-index: 5 !important; }
