/* =========================================================
   Login Tzumi · oscuro y serio, con la division entre el formulario y el panel derecho
   - Izquierda: formulario sobre azul marino con trama de puntos y boton rojo de la marca.
   - Derecha (view/login/layout/_escena3d.php): titular y el "centro de control" en 3D: AIMS al centro
     mandando datos a paneles con aspecto de producto real (ventas, inventario, pedidos, embarques,
     actividad y chips). Numeros de ejemplo.
   Se carga despues de login.css y la sobreescribe. Movimiento y pings: assets/index/js/login-3d.js
   ========================================================= */

:root {
  --tz-navy: #08121f;
  --tz-red: #e5483b;
  --sc-line: rgba(148, 190, 235, .13);
  --sc-line-2: rgba(148, 190, 235, .22);
  --sc-ink: #e8eef5;
  --sc-ink-2: #9fb0c3;
  --sc-ink-3: #6b7e93;
  --sc-blue: #8cc4ff;
  /* Sistema de los paneles */
  --p-bg: linear-gradient(180deg, #121f31 0%, #0e1928 100%);
  --p-borde: rgba(255, 255, 255, .075);
  --p-txt: #e6edf5;
  --p-txt-2: #9fb0c3;
  --p-txt-3: #6f8296;
  --p-div: rgba(255, 255, 255, .055);
  --c-azul: #5b9cf5;
  --c-verde: #4fd39a;
  --c-ambar: #f0b45a;
  --c-rojo: #ef7a6e;
}

body { color: var(--sc-ink); background: var(--tz-navy); }

@media (min-width: 1181px) {
  .page { grid-template-columns: minmax(420px, 34%) 1fr; }
}

/* =========================================================
   Panel del formulario
   ========================================================= */
.side {
  background:
    radial-gradient(640px 460px at 0% 0%, rgba(56, 120, 200, .12), transparent 65%),
    radial-gradient(520px 420px at 100% 100%, rgba(229, 72, 59, .05), transparent 65%),
    linear-gradient(180deg, #0b1729 0%, #08121f 100%);
}
.side::before {
  background-image: radial-gradient(rgba(148, 190, 235, .11) 1px, transparent 1.2px);
  mask-image: radial-gradient(ellipse 85% 60% at 0% 100%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 0% 100%, #000 10%, transparent 75%);
}
/* Division con el panel derecho: linea fina que se desvanece arriba y abajo */
.side::after {
  top: 0; right: 0; bottom: 0; left: auto;
  width: 1px; height: auto;
  border-radius: 0;
  filter: none;
  animation: none;
  background: linear-gradient(180deg, transparent, rgba(148, 190, 235, .24) 20%, rgba(148, 190, 235, .24) 80%, transparent);
}
.side__logo { height: 42px; }

/* Sello de la marca sobre el titulo: texto chico con una raya roja */
.marca-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: #9fb0c3;
}
.marca-pill i { width: 18px; height: 2px; border-radius: 1px; background: var(--tz-red); }

.side .title { font-size: 30px; font-weight: 650; letter-spacing: -.028em; color: #fff; }
.side .lead { margin-bottom: 28px; font-size: 14.5px; color: var(--sc-ink-2); }
.side .lead b { color: #fff; }

.side .field__label { font-size: 13px; font-weight: 600; letter-spacing: .005em; color: #d5dfea; }
.side .field__input {
  color: var(--sc-ink);
  background: linear-gradient(180deg, #0b1828, #0d1c2f);
  border-color: rgba(148, 190, 235, .2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.side .field__input::placeholder { color: var(--sc-ink-3); }
.side .field__input:hover { border-color: rgba(148, 190, 235, .36); }
.side .field__input:focus { border-color: #5aa2ff; box-shadow: 0 0 0 4px rgba(90, 162, 255, .14), inset 0 1px 2px rgba(0, 0, 0, .35); }
.side .field__input:-webkit-autofill,
.side .field__input:-webkit-autofill:hover,
.side .field__input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #0d1c2f inset; -webkit-text-fill-color: var(--sc-ink); caret-color: var(--sc-ink); }
.side .field--invalid .field__input { border-color: #f04438; }
.side .field__toggle { color: var(--sc-ink-3); }
.side .field__toggle:hover { color: var(--sc-ink); background: rgba(255, 255, 255, .06); }
.side .field__error { color: #ff9b8f; }
.side .field__hint { color: #fcd34d; }

/* Icono dentro del campo (correo y contrasena) */
.side .field__control:has(> .field__input[type="email"], > .field__input[autocomplete="username"], > .field__input[autocomplete$="password"])::before {
  content: "";
  position: absolute; left: 14px; top: 50%; z-index: 1;
  width: 18px; height: 18px; margin-top: -9px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6 8.5-6'/%3E%3C/svg%3E");
  pointer-events: none;
}
.side .field__control:has(> .field__input[autocomplete$="password"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
.side .field__control:has(> .field__input[type="email"], > .field__input[autocomplete="username"], > .field__input[autocomplete$="password"]) > .field__input { padding-left: 42px; }

.side .rules li { color: var(--sc-ink-2); }
.side .rules li::before { border-color: var(--sc-line-2); background-color: #0d1c2f; }
.side .rules li.is-ok { color: #fff; }
.side .rules li.is-ok::before { border-color: #12b76a; background-color: #12b76a; }

.side .switch, .side .check { color: var(--sc-ink-2); }
.side .switch__track { background: rgba(148, 190, 235, .22); }
.side .switch input:checked + .switch__track { background: #3b82f6; }
.side .link { color: var(--sc-blue); }

/* Boton solido con el rojo de la marca (sin destellos) */
.side .btn {
  background: #e0473a;
  border-color: #c23a2e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .35);
}
.side .btn::after { display: none; }
.side .btn:hover { filter: none; transform: none; background: #e9564a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .35); }
.side .btn:focus-visible { box-shadow: 0 0 0 4px rgba(229, 72, 59, .3); }

.side .notice--err  { color: #ffb4ab; background: rgba(240, 68, 56, .12);  border-color: rgba(240, 68, 56, .38); }
.side .notice--warn { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .36); }
.side .notice--ok   { color: #6ee7b7; background: rgba(18, 183, 106, .12); border-color: rgba(18, 183, 106, .36); }
.side .notice a { color: inherit; }

.side .help { color: var(--sc-ink-3); border-top-color: var(--sc-line); }
.side .back { color: var(--sc-ink-2); }
.side .back:hover { color: #fff; }
.side__foot { flex-wrap: wrap; row-gap: 6px; font-size: 11.5px; color: var(--sc-ink-3); }
.side__foot span { white-space: nowrap; }

/* =========================================================
   Panel derecho: titular arriba y el tablero con AIMS al centro
   (CSS grid a tamano real: texto nitido y todo alineado)
   ========================================================= */
.e3 {
  position: sticky; top: 0; align-self: start;
  display: flex; flex-direction: column;
  height: 100vh; min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  color: var(--sc-ink);
  background:
    radial-gradient(70% 60% at 50% 72%, rgba(38, 92, 165, .14), transparent 70%),
    radial-gradient(45% 40% at 100% 0%, rgba(229, 72, 59, .045), transparent 70%),
    linear-gradient(180deg, #08121f 0%, #070f1a 100%);
}
.e3 .e3-i { display: block; flex: none; width: 16px; height: 16px; }

/* Titular */
.e3-texto { position: relative; z-index: 2; padding: clamp(30px, 6vh, 60px) clamp(24px, 3.4vw, 68px) 0; animation: e3Entra .7s var(--ease) both; }
.e3-texto h2 { margin: 0 0 10px; font-size: clamp(24px, 1.95vw, 33px); font-weight: 650; line-height: 1.15; letter-spacing: -.028em; color: #fff; }
.e3-texto h2 span { color: #ff7d70; }
.e3-texto p { max-width: 560px; margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--sc-ink-2); }
.e3-rasgos { display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--sc-ink-2); }
.e3-rasgos li { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-left: 1px solid var(--sc-line-2); }
.e3-rasgos li:first-child { padding-left: 0; border-left: 0; }
.e3-rasgos .e3-i { width: 15px; height: 15px; color: var(--sc-blue); }
@media (max-height: 760px) {
  .e3-texto { padding-top: 26px; }
  .e3-texto p { margin-bottom: 12px; }
}
/* Aviso de que las cifras son de ejemplo */
.e3-aviso { position: absolute; right: 24px; bottom: 12px; z-index: 2; font-size: 11px; letter-spacing: .03em; color: rgba(159, 176, 195, .45); }
@keyframes e3Entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes e3Aparece { from { opacity: 0; } }

/* ---------- Tablero: 3 columnas, AIMS ocupa la del centro ---------- */
.e3-tablero {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(184px, .8fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 34px; row-gap: 16px;
  padding: clamp(18px, 3.2vh, 32px) clamp(24px, 3.4vw, 68px) clamp(34px, 5vh, 50px);
}
.e3-pos-ventas { grid-column: 1; grid-row: 1; }
.e3-aims { grid-column: 2; grid-row: 1 / 3; }
.e3-pos-ats { grid-column: 3; grid-row: 1; }
.e3-pos-ordenes { grid-column: 1; grid-row: 2; }
.e3-pos-agua { grid-column: 3; grid-row: 2; }

/* ---------- Tarjeta base ---------- */
.e3-card {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  padding: 16px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 36, 56, .92) 0%, rgba(14, 25, 41, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -28px rgba(0, 0, 0, .85);
  transition: border-color .9s, box-shadow .9s;
  animation: e3Entra .7s var(--ease) both;
  animation-delay: calc(.1s + var(--i) * 70ms);
}
.e3-card.recibe {
  border-color: rgba(140, 196, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 3px rgba(140, 196, 255, .06), 0 24px 48px -28px rgba(0, 0, 0, .85);
  transition: none;
}

/* Encabezado */
.e3-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.e3-ch__ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: #a9c2dc; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; }
.e3-ch__ico .e3-i { width: 15px; height: 15px; }
.e3-ch__t { flex: 1; min-width: 0; }
.e3-ch h5 { margin: 0; overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; text-overflow: ellipsis; color: #e9eff6; }
.e3-ch small { display: block; margin-top: 2px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; color: #73879c; }
.e3-ch small b { font-weight: 600; color: #a6b6c8; font-variant-numeric: tabular-nums; }
.e3-ch__mas { color: #5f7286; }
.e3-tag { flex: none; padding: 3px 8px; font-size: 10.5px; font-weight: 600; white-space: nowrap; color: #9fb0c3; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 7px; }
.e3-seg { flex: none; display: inline-flex; padding: 2px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; }
.e3-seg span { padding: 3px 7px; font-size: 10.5px; font-weight: 600; color: #6f8296; border-radius: 6px; }
.e3-seg .on { color: #e9eff6; background: rgba(255, 255, 255, .09); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* ---------- Sales ---------- */
.e3-kpi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: -2px 0 10px; white-space: nowrap; }
.e3-kpi b { font-size: 26px; font-weight: 650; letter-spacing: -.025em; color: #fff; font-variant-numeric: tabular-nums; }
.e3-kpi small { overflow: hidden; font-size: 11px; text-overflow: ellipsis; color: #73879c; }
.e3-badge { align-self: center; padding: 2px 7px; font-size: 10.5px; font-weight: 650; border-radius: 6px; font-variant-numeric: tabular-nums; }
.e3-badge--up { color: #4fd39a; background: rgba(63, 185, 132, .13); }
.e3-badge--down { color: #ef7a6e; background: rgba(229, 103, 92, .13); }
.e3-grafica { position: relative; flex: 1; min-height: 48px; }
.e3-grafica svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.e3-grafica .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.e3-grafica .area { fill: url(#e3AreaV); }
.e3-grafica .fc { fill: none; stroke: #6a7d93; stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.e3-grafica .act { fill: none; stroke: #5b9cf5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.e3-grafica__pt { position: absolute; right: 0; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; background: #5b9cf5; border: 2px solid #101d30; border-radius: 50%; box-shadow: 0 0 0 4px rgba(91, 156, 245, .18); transition: top .9s var(--ease); }
.e3-grafica__val { position: absolute; right: 12px; margin-top: -27px; padding: 2px 7px; font-size: 10.5px; font-weight: 650; color: #e9eff6; background: #1b2c44; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; font-variant-numeric: tabular-nums; transition: top .9s var(--ease); }
.e3-grafica__x { position: relative; flex: none; height: 13px; margin-top: 8px; font-size: 10px; color: #5f7286; }
.e3-grafica__x span { position: absolute; top: 0; transform: translateX(-50%); }
.e3-grafica__x span:first-child { transform: none; }
.e3-grafica__x span:last-child { transform: translateX(-100%); }

/* ---------- AIMS (centro) ---------- */
.e3-aims {
  overflow: visible;
  padding: 18px;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(78, 161, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(20, 38, 62, .95) 0%, rgba(13, 25, 42, .95) 100%);
  border-color: rgba(140, 196, 255, .2);
}
.e3-aims__cab { margin-bottom: 18px; }
.e3-aims__cab h5 { font-size: 14px; font-weight: 700; letter-spacing: .16em; }
.e3-aims__logo { position: relative; flex: none; width: 34px; height: 34px; padding: 1px; overflow: hidden; border-radius: 10px; background: rgba(140, 196, 255, .25); }
.e3-aims__luz { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; background: conic-gradient(transparent 0deg 240deg, rgba(175, 218, 255, 1) 320deg, transparent 360deg); animation: girar 4s linear infinite; }
.e3-aims__cara { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: #b5dbff; background: radial-gradient(120% 100% at 50% 0%, #22497a 0%, #10243c 60%, #0c1a2e 100%); border-radius: 9px; }
.e3-aims__cara .e3-i { width: 17px; height: 17px; stroke-width: 1.6; }
.e3-live { flex: none; display: inline-flex; vertical-align: middle; margin-left: 4px; align-items: center; gap: 6px; padding: 3px 8px; font-size: 10.5px; font-weight: 650; color: #4fd39a; background: rgba(63, 185, 132, .1); border: 1px solid rgba(63, 185, 132, .24); border-radius: 999px; }
.e3-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #4fd39a; }
.e3-live i::after { content: ""; position: absolute; inset: -3px; border: 1.5px solid rgba(79, 211, 154, .5); border-radius: 50%; animation: e3Latido 2.2s ease-out infinite; }
@keyframes e3Latido { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.e3-aims__dato small { display: block; font-size: 11px; color: #73879c; }
.e3-aims__dato b { display: block; margin-top: 2px; font-size: 26px; font-weight: 650; letter-spacing: -.025em; color: #fff; font-variant-numeric: tabular-nums; }
.e3-aims__barras { display: flex; align-items: flex-end; gap: 3px; flex: 1 1 40px; min-height: 30px; max-height: 92px; margin: 12px 0 14px; }
.e3-aims__barras i { flex: 1; min-height: 3px; border-radius: 2px 2px 1px 1px; background: linear-gradient(180deg, rgba(122, 182, 255, .9), rgba(91, 156, 245, .2)); transition: height .7s var(--ease); }
.e3-aims__barras i:last-child { background: #a9d4ff; box-shadow: 0 0 8px rgba(140, 196, 255, .7); }
.e3-aims__sub { margin-bottom: 10px; padding-top: 14px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5f7286; border-top: 1px solid rgba(255, 255, 255, .06); }
.e3-aims__mods { display: grid; gap: 1px; margin: 0 0 14px; padding: 0; list-style: none; }
.e3-aims__mods li { display: flex; align-items: center; gap: 8px; height: 23px; min-width: 0; font-size: 11.5px; color: #9fb0c3; transition: color .8s; }
.e3-aims__mods li span, .e3-aims__entregas li span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.e3-aims__mods li em, .e3-aims__entregas li em { flex: none; font-size: 10.5px; font-style: normal; color: #5f7286; font-variant-numeric: tabular-nums; }
.e3-aims__mods li.on em { color: #4fd39a; }
/* Ultimas entregas de AIMS (se ven las que caben) */
.e3-aims__entregas { flex: 0 1 auto; min-height: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.e3-aims__entregas li { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 11px; color: #8597ab; border-top: 1px solid rgba(255, 255, 255, .045); }
.e3-aims__entregas li:first-child { border-top: 0; }
.e3-aims__entregas li b { font-weight: 600; color: #cfdbe7; }
.e3-aims__entregas li.nuevo { animation: e3Entra .6s var(--ease) both; }
.e3-aims__mods li i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #2f7d62; transition: background .8s, box-shadow .8s; }
.e3-aims__mods li.on { color: #fff; transition: none; }
.e3-aims__mods li.on i { background: #4fd39a; box-shadow: 0 0 0 3px rgba(79, 211, 154, .2), 0 0 8px #4fd39a; transition: none; }

/* Conectores rectos de AIMS a los modulos de los lados (el punto viaja de AIMS al modulo) */
.e3-con { position: absolute; top: calc(25% - 4px); width: 34px; height: 1px; pointer-events: none; }
.e3-con--abajo { top: calc(75% + 4px); }
.e3-con--izq { right: 100%; background: linear-gradient(90deg, rgba(140, 196, 255, .2), rgba(140, 196, 255, .55)); }
.e3-con--der { left: 100%; background: linear-gradient(90deg, rgba(140, 196, 255, .55), rgba(140, 196, 255, .2)); }
.e3-con::before, .e3-con::after { content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; background: #0e1928; border: 1px solid rgba(140, 196, 255, .65); border-radius: 50%; }
.e3-con::before { left: -3px; }
.e3-con::after { right: -3px; }
.e3-con b { position: absolute; top: -2.5px; z-index: 1; width: 6px; height: 6px; background: #e3f1ff; border-radius: 50%; box-shadow: 0 0 8px 2px rgba(140, 196, 255, .85); opacity: 0; }
.e3-con--izq b { right: -3px; }
.e3-con--der b { left: -3px; }
.e3-con--izq.envia b { animation: e3ViajaIzq .85s cubic-bezier(.45, .05, .55, .95); }
.e3-con--der.envia b { animation: e3ViajaDer .85s cubic-bezier(.45, .05, .55, .95); }
@keyframes e3ViajaIzq { 0% { opacity: 0; transform: translateX(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-34px); } }
@keyframes e3ViajaDer { 0% { opacity: 0; transform: translateX(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(34px); } }

/* ---------- Inventory ---------- */
.e3-inv { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.e3-dona { position: relative; width: clamp(72px, 5.8vw, 118px); aspect-ratio: 1; }
.e3-dona svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.e3-dona circle { fill: none; stroke-width: 9; }
.e3-dona .fondo { stroke: rgba(255, 255, 255, .06); }
.e3-dona .seg { stroke: var(--c); transition: stroke-dasharray 1s var(--ease), stroke-dashoffset 1s var(--ease), stroke-width .45s, opacity .45s; animation: e3Aparece .8s ease backwards; animation-delay: calc(.6s + var(--d) * 110ms); }
.e3-dona.foco .seg { opacity: .28; }
.e3-dona.foco .seg.on { opacity: 1; stroke-width: 12; }
.e3-dona__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.e3-dona__c b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.e3-dona__c span { font-size: 9.5px; white-space: nowrap; color: #73879c; }
.e3-dona__c b, .e3-dona__c span { transition: opacity .22s; }
.e3-dona__c.cambia b, .e3-dona__c.cambia span { opacity: 0; }
.e3-inv__lista { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.e3-inv__lista li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 6px; font-size: 11.5px; color: #9fb0c3; border-radius: 6px; transition: background-color .45s, color .45s; }
.e3-inv__lista li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.e3-inv__lista li.on { color: #fff; background: rgba(255, 255, 255, .05); }
.e3-inv__lista i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.e3-inv__lista b { font-weight: 600; color: #e9eff6; font-variant-numeric: tabular-nums; }

/* ---------- Order Entry ---------- */
.e3-tabla { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 12px; }
.e3-tabla__cab, .e3-fila { display: grid; grid-template-columns: 54px minmax(0, 1fr) 94px; align-items: center; column-gap: 8px; }
.e3-tabla__cab { padding: 0 6px 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #5f7286; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.e3-tabla__cuerpo { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.e3-fila { height: 32px; padding: 0 6px; white-space: nowrap; color: #9fb0c3; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.e3-fila > span { overflow: hidden; text-overflow: ellipsis; }
.e3-fila .n { font-weight: 600; color: #e9eff6; font-variant-numeric: tabular-nums; }
.e3-fila.nueva { background: rgba(91, 156, 245, .09); transition: background-color 2.4s; }
.e3-fila.nueva.lista { background: transparent; }
.e3-st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 7px; font-size: 10.5px; font-style: normal; font-weight: 600; white-space: nowrap; border-radius: 999px; }
.e3-st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.e3-st--ok { color: #4fd39a; background: rgba(63, 185, 132, .12); }
.e3-st--warn { color: #f0b45a; background: rgba(232, 168, 73, .13); }
.e3-st--mute { color: #8a9bb0; background: rgba(255, 255, 255, .06); }
.e3-st--sync { color: #8cc4ff; background: rgba(91, 156, 245, .14); }
.e3-st--sync::before { display: none; }
.e3-spin { width: 9px; height: 9px; border: 1.5px solid rgba(140, 196, 255, .3); border-top-color: #8cc4ff; border-radius: 50%; animation: girar .8s linear infinite; }
.e3-pop { animation: e3Pop .5s var(--ease); }
@keyframes e3Pop { from { transform: scale(.82); opacity: .3; } }

/* ---------- In transit ---------- */
.e3-rutas { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
.e3-rutas li { padding: 4px 4px; border-radius: 6px; }
.e3-rutas__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 11px; white-space: nowrap; }
.e3-rutas__top b { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #e9eff6; }
.e3-rutas__top em { font-style: normal; font-weight: 600; color: #9fb0c3; }
.e3-rutas li.ok .e3-rutas__top em { color: #4fd39a; }
.e3-rutas li.puerto .e3-rutas__top em { color: #f0b45a; }
.e3-rutas__linea { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; }
.e3-rutas__linea .pto { font-size: 9.5px; font-weight: 650; letter-spacing: .06em; color: #7f93a8; }
.e3-rutas__linea .pto:last-child { text-align: right; }
.e3-rutas .tramo { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 3px, transparent 3px 7px); }
.e3-rutas .tramo::before, .e3-rutas .tramo::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; }
.e3-rutas .tramo::before { left: -3px; background: #5b9cf5; }
.e3-rutas .tramo::after { right: -3px; background: #0e1928; border: 1.5px solid rgba(255, 255, 255, .35); }
.e3-rutas .hecho { position: absolute; top: 0; bottom: 0; left: 0; width: var(--p); background: linear-gradient(90deg, rgba(91, 156, 245, .3), #5b9cf5); transition: width 1.8s linear; }
.e3-rutas .barco { position: absolute; top: 50%; left: var(--p); display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: #b5dbff; background: #0e1928; border: 1px solid #5b9cf5; border-radius: 50%; box-shadow: 0 0 0 3px rgba(91, 156, 245, .12); transition: left 1.8s linear; }
.e3-rutas .barco .e3-i { width: 11px; height: 11px; }
.e3-rutas li.ok .hecho { background: linear-gradient(90deg, rgba(63, 185, 132, .3), #3fb984); }
.e3-rutas li.ok .tramo::after { background: #3fb984; border-color: #3fb984; }
.e3-rutas li.ok .barco { color: #4fd39a; border-color: #3fb984; box-shadow: 0 0 0 3px rgba(63, 185, 132, .14); }
.e3-rutas li.puerto .tramo::after { border-color: #f0b45a; animation: e3Arribo 1.8s ease-out infinite; }
@keyframes e3Arribo { from { box-shadow: 0 0 0 0 rgba(240, 180, 90, .55); } to { box-shadow: 0 0 0 7px rgba(240, 180, 90, 0); } }
.e3-rutas.quieta .hecho, .e3-rutas.quieta .barco { transition: none; }

/* Fila que recibe un dato */
.e3-flash { animation: e3Flash 1.4s ease-out; }
@keyframes e3Flash { 0% { background-color: rgba(91, 156, 245, .2); } 100% { background-color: transparent; } }

/* =========================================================
   Pantallas chicas: solo el formulario (como antes)
   ========================================================= */
@media (max-width: 1180px) {
  .e3 { display: none; }
  .side::after { display: none; }
}
