/* =====================================================================
   PLAN ENCADENADO (subte) — 11/10/2026. Fondo oscuro, líneas de colores
   estilo subte de Londres (horizontales y combinaciones a 45°).
   ===================================================================== */
.en-subte #contenido { max-width: none; padding: 0; }
.sb { min-height: calc(100vh - 53px); background: #030a14; color: #e2e8f0; font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif; padding-bottom: 30px; }
.sb .mono { font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-nada { padding: 30px; color: #94a3b8; }
.sb-cab { display: flex; align-items: center; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid #17304f; background: #051424; }
.sb-tit { font-weight: 700; letter-spacing: 3px; font-size: 15px; color: #22d3ee; margin-right: 20px; }
.sb-tit small { display: block; font-size: 10.5px; letter-spacing: 0; color: #94a3b8; font-weight: 400; }
.sb-gente { margin-left: auto; }
.sb-gente label { display: inline-block; margin: 2px 0 2px 8px; padding: 3px 8px; border: 1px solid; border-radius: 16px; font-size: 13px; }
.sb-gente label i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.sb-gente input { width: 40px; margin-left: 4px; background: #0b1626; color: #e2e8f0; border: 1px solid #1e3a5f; border-radius: 4px; font-size: 13px; padding: 1px 3px; }
.sb-res { display: flex; flex-wrap: wrap; padding: 10px 18px 0; }
.sb-res > div { margin: 0 10px 10px 0; padding: 7px 12px; border-radius: 8px; background: rgba(10, 20, 38, .96); border: 1px solid #17304f; min-width: 140px; }
.sb-res small { display: block; font-size: 10.5px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.sb-res b { font-size: 22px; color: #f8fafc; }
.sb-res b.mal { color: #f87171; }
.sb-res b.bien { color: #34d399; }
.sb-res span { display: block; font-size: 11.5px; color: #94a3b8; }
.sb-res .sb-sv { border-left-width: 4px; }
.sb-mapa { overflow-x: auto; margin: 0 10px; border: 1px solid #17304f; border-radius: 10px; background: radial-gradient(ellipse at 30% 20%, #071a30, #030a14); }
.sb-svg { display: block; font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif; }
.sb-dia { stroke: rgba(34, 211, 238, .45); stroke-width: 2; }
.sb-dia-t { fill: #67e8f9; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.sb-hora { stroke: rgba(148, 163, 184, .1); stroke-width: 1; }
.sb-hora-t { fill: #64748b; font-size: 11px; text-anchor: middle; }
.sb-ahora { stroke: #f87171; stroke-width: 2; stroke-dasharray: 4 3; }
.sb-ahora-t { fill: #f87171; font-size: 10px; font-weight: 700; }
.sb-linea-t { font-size: 14px; font-weight: 700; }
.sb-combo { fill: none; stroke: rgba(226, 232, 240, .7); stroke-width: 2.5; stroke-linejoin: round; }
.sb-combo.espera { stroke-dasharray: 5 4; stroke: rgba(251, 191, 36, .8); }
.sb-int { fill: #030a14; stroke: #e2e8f0; stroke-width: 2; }
.sb-est { fill: #fff; stroke-width: 3; }
.sb-est.curso { fill: #22d3ee; }
.sb-est-t { fill: #f1f5f9; font-size: 11.5px; font-weight: 700; text-anchor: middle; font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-est-t.mal { fill: #fca5a5; }
.sb-est-s { fill: #94a3b8; font-size: 10px; text-anchor: middle; }
.sb-tabla { margin: 16px 18px 0; }
.sb-tabla h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 2px; color: #67e8f9; text-transform: uppercase; }
.sb-tabla table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sb-tabla th { text-align: left; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; padding: 4px 8px; border-bottom: 1px solid #17304f; }
.sb-tabla td { padding: 5px 8px; border-bottom: 1px solid rgba(148, 163, 184, .08); }
.sb-e { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.sb-e.bien { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.sb-e.ojo { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.sb-e.mal { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.sb-e.gris { background: rgba(148, 163, 184, .12); color: #94a3b8; }

/* ---------- Días, feriados, cortes y Terminar el día (12/10/2026) ---------- */
.sb-ley { margin-top: 2px; }
.sb-ley i { display: inline-block; width: 22px; height: 0; vertical-align: 3px; border-top: 2.5px solid rgba(226, 232, 240, .7); margin-right: 4px; }
.sb-ley i.p { border-top: 2.5px dashed rgba(251, 191, 36, .9); margin-left: 4px; }
.sb-ctl { padding: 8px 18px 0; font-size: 13px; }
.sb-ctl-t { color: #64748b; margin: 0 6px 0 4px; font-size: 12px; }
.sb-dia-b { display: inline-block; margin: 0 6px 6px 0; border: 1px solid #1e3a5f; border-radius: 16px; overflow: hidden; vertical-align: middle; }
.sb-dia-b button { background: #0b1626; color: #94a3b8; border: none; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.sb-dia-b button:disabled { cursor: default; }
.sb-dia-b.on { border-color: #22d3ee; }
.sb-dia-b.on button { background: rgba(34, 211, 238, .16); color: #e0f2fe; }
.sb-dia-b b { color: #f8fafc; }
.sb-dia-b em { font-style: normal; color: #fca5a5; font-size: 11px; }
.sb-dia-b.cerrado { border-color: rgba(248, 113, 113, .5); }
.sb-dia-b .sb-fer { border-left: 1px solid #1e3a5f; padding: 4px 7px; }
.sb-ctl select { background: #0b1626; color: #e2e8f0; border: 1px solid #1e3a5f; border-radius: 4px; padding: 3px 4px; font-size: 13px; }
.sb-corte-mano { color: #67e8f9; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12px; }
.sb-panico { margin-left: 14px; background: #7f1d1d; color: #fee2e2; border: 1px solid #f87171; border-radius: 6px; padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
.sb-panico.on { background: #0b1626; color: #fca5a5; }
.sb.panico .sb-cab { background: #2a0a0f; border-bottom-color: #7f1d1d; }
.sb-pan { margin: 4px 18px 10px; padding: 10px 14px; border-radius: 8px; background: rgba(127, 29, 29, .35); border: 1px solid #f87171; font-size: 14px; }
.sb-pan .ok { color: #6ee7b7; font-weight: 700; }
.sb-pan .no { color: #fca5a5; font-weight: 700; }
.sb-pan-sug { margin-top: 6px; color: #fde68a; }
.sb-pan-sug span { white-space: nowrap; }
.sb-pan-sug button { margin-left: 10px; background: #fbbf24; color: #1c1404; border: none; border-radius: 4px; padding: 3px 10px; font-weight: 700; cursor: pointer; }
.sb-linea-n { fill: #64748b; font-size: 11px; }
.sb-seg { fill: rgba(34, 211, 238, .05); }
.sb-seg-t { fill: #67e8f9; font-size: 12px; font-weight: 700; opacity: .7; }
.sb-bloques td { vertical-align: top; font-size: 13px; }
.sb-bl-l { font-size: 11.5px; color: #94a3b8; font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-libre { color: #475569; font-size: 12px; }

/* ---------- Abajo: pedidos y lo que queda afuera, mitad y mitad (12/10/2026) ---------- */
.sb-abajo { display: flex; align-items: flex-start; }
.sb-mitad { flex: 1; min-width: 0; }
.sb-mitad .sb-tabla table { font-size: 13px; }
.sb-mitad .sb-tabla td { padding: 4px 6px; }
.sb-af-g td { padding-top: 12px !important; font-weight: 700; font-size: 13px; letter-spacing: .5px; border-bottom: 1px solid #17304f !important; }
.sb-af-g small { font-weight: 400; color: #64748b; letter-spacing: 0; }
.sb-af-g.libre td { color: #fbbf24; }
.sb-af-g.imp td { color: #67e8f9; }
.sb-af-g.gran td { color: #94a3b8; }
.sb-fam { color: #64748b; font-size: 11px; margin-left: 4px; }
.sb-gente label.aparte { border-style: dashed; }
@media (max-width: 1100px) { .sb-abajo { display: block; } }

/* ---------- Nombres de las líneas en columna fija + recorrido al pasar el mouse (12/10/2026) ---------- */
.sb-mapa { display: flex; overflow: hidden; }
.sb-lineas { position: relative; width: 200px; flex-shrink: 0; border-right: 1px solid #17304f; background: rgba(3, 10, 20, .85); }
.sb-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.sb-ln { position: absolute; left: 0; right: 0; padding: 2px 8px 2px 10px; border-left: 4px solid; }
.sb-ln b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-ln span { display: block; font-size: 11px; color: #64748b; white-space: nowrap; }
.sb-combo.lejos { opacity: .12; }
.sb-int.lejos { opacity: .2; }
.sb-svg.resalta [data-o] { opacity: .18; }
.sb-svg.resalta [data-o].on { opacity: 1; }
.sb-svg.resalta .sb-combo.on { stroke-width: 4; }

/* Pasar al primer lugar (12/10/2026) */
.sb-subir { background: #0b1626; color: #fcd34d; border: 1px solid rgba(251, 191, 36, .5); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.sb-subir.on { color: #fca5a5; border-color: rgba(248, 113, 113, .5); }
.sb-prio td { background: rgba(251, 191, 36, .08); }

/* Recalcular y pedidos subidos (12/10/2026) */
.sb-recalc { margin-left: 8px; background: #0b1626; color: #67e8f9; border: 1px solid #22d3ee; border-radius: 6px; padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
.sb-subidos { margin: 4px 18px 0; padding: 6px 12px; border-radius: 8px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .5); color: #fcd34d; font-size: 13px; }
.sb-subidos span { display: inline-block; margin: 0 8px 0 6px; font-family: 'JetBrains Mono', Consolas, monospace; color: #fde68a; }
.sb-subidos span button { background: none; border: none; color: #fca5a5; cursor: pointer; font-size: 13px; }
.sb-todos { margin-left: 10px; background: #1c1404; color: #fbbf24; border: 1px solid #fbbf24; border-radius: 4px; padding: 2px 10px; cursor: pointer; font-weight: 700; }

/* Qué días entran en el plan (12/10/2026) */
.sb-plan-dias { margin: 0 10px 6px; padding: 6px 14px; border-radius: 8px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .35);
  color: #94a3b8; font-size: 13px; letter-spacing: 1px; }
.sb-plan-dias b { color: #67e8f9; font-size: 15px; letter-spacing: 1px; }
.sb-plan-dias span { color: #fcd34d; font-weight: 700; letter-spacing: 0; }
.sb-plan-dias small { color: #64748b; letter-spacing: 0; }
.sb-plan-dias.panico { background: rgba(127, 29, 29, .35); border-color: #f87171; color: #fecaca; }

/* Pausar para meter uno urgente (13/10/2026) */
.sb-pausa { margin: 0 10px 6px; padding: 8px 14px; border-radius: 8px; background: rgba(251, 191, 36, .14); border: 2px solid #fbbf24; color: #fde68a; font-size: 14px; }
.sb-pausa b { color: #fff; }

/* Saltos del orden y nombres de máquinas (13/10/2026) */
.sb-saltos { margin: 4px 18px 0; padding: 6px 12px; border-radius: 8px; background: rgba(148, 163, 184, .08); border: 1px solid #334155; color: #cbd5e1; font-size: 13px; cursor: help; }
.sb-saltos b { color: #f8fafc; }
.sb-saltos small { color: #64748b; }
.sb-maq { cursor: pointer; text-decoration: underline dotted; }

/* El pasado del día, sombreado, y lo hecho en gris (13/10/2026) */
.sb-pasado { fill: rgba(2, 6, 12, .55); }
.sb-hecho { fill: #0b1626; stroke: #10b981; stroke-width: 3; }
/* Líneas finas (gigantografías) */
.sb-ln.fino b { font-size: 12.5px; }
.sb-ln.fino span { font-size: 10.5px; }

/* Comenzar el día, comparar y cómo fue; tramo en curso con movimiento (13/10/2026) */
.sb-comenzar { margin-left: 8px; background: #064e3b; color: #a7f3d0; border: 1px solid #10b981; border-radius: 6px; padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
.sb-comenzar.hecho { background: #0b1626; color: #6ee7b7; }
.sb-comofue { margin-left: 8px; background: #0b1626; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.sb-comofue.on { border-color: #22d3ee; color: #67e8f9; }
.sb-ln { cursor: pointer; }
.sb-ln.cmp { background: rgba(34, 211, 238, .08); }
.sb-cmp { display: block; font-size: 10.5px; color: #94a3b8; }
.sb-cmp b.mal { color: #fca5a5; font-size: 10.5px; }
.sb-cmp b.bien { color: #6ee7b7; font-size: 10.5px; }
.sb-fant line { stroke-width: 3; stroke-dasharray: 5 3; opacity: .75; }
.sb-fant circle { fill: #030a14; stroke-width: 2; opacity: .8; }
.sb-mueve { stroke: rgba(255, 255, 255, .85); stroke-width: 3; stroke-dasharray: 6 10; stroke-linecap: round; animation: sbMueve 1s linear infinite; }
@keyframes sbMueve { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.sb-cf { margin: 6px 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #22d3ee; background: rgba(6, 14, 28, .95); }
.sb-cf-cab { font-size: 13px; letter-spacing: 2px; color: #67e8f9; font-weight: 700; }
.sb-cf-cab input { margin-left: 8px; background: #0b1626; color: #e2e8f0; border: 1px solid #1e3a5f; border-radius: 4px; padding: 2px 6px; }
.sb-cf-cab small { letter-spacing: 0; color: #64748b; font-weight: 400; margin-left: 8px; }
.sb-cf-res { margin: 8px 0; font-size: 14px; color: #cbd5e1; }
.sb-cf-res b { color: #f8fafc; }
.sb-cf-res b.bien { color: #6ee7b7; }
.sb-cf-res b.mal { color: #fca5a5; }
.sb-cf-horas { position: relative; height: 16px; font-size: 11px; color: #64748b; }
.sb-cf-horas span { position: absolute; transform: translateX(-50%); }
.sb-cf-f { display: flex; align-items: center; border-top: 1px solid rgba(148, 163, 184, .08); }
.sb-cf-n { width: 200px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; padding-right: 10px; }
.sb-cf-n small { display: block; font-weight: 400; color: #64748b; font-size: 11px; }

/* Pedido fijado: su recorrido y sus líneas prendidas (13/10/2026) */
.sb-svg [data-o] { cursor: pointer; }
.sb-mapa.resalta .sb-ln { opacity: .35; }
.sb-mapa.resalta .sb-ln.on { opacity: 1; background: rgba(255, 255, 255, .06); }
.sb-fijo { margin: 0 10px 6px; padding: 7px 12px; border-radius: 8px; background: rgba(34, 211, 238, .1); border: 1px solid #22d3ee; font-size: 14px; color: #e2e8f0; }
.sb-fijo b { font-family: 'JetBrains Mono', Consolas, monospace; color: #fff; }
.sb-fijo .mal { color: #fca5a5; font-weight: 700; }
.sb-fijo .bien { color: #6ee7b7; font-weight: 700; }
.sb-fijo button { margin-left: 10px; background: #0b1626; color: #94a3b8; border: 1px solid #475569; border-radius: 4px; padding: 1px 8px; cursor: pointer; }

/* Ventana con los productos del pedido (13/10/2026) */
.sb-vp { position: fixed; z-index: 9000; top: 0; left: 0; right: 0; bottom: 0; background: rgba(1, 6, 14, .7); overflow: auto; padding: 6vh 4vw; }
.sb-vp-caja { max-width: 1100px; margin: 0 auto; background: #06101e; border: 1px solid #22d3ee; border-radius: 14px; padding: 16px 18px; color: #e2e8f0;
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif; box-shadow: 0 0 40px rgba(34, 211, 238, .2); }
.sb-vp-cab { display: flex; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid #17304f; padding-bottom: 10px; margin-bottom: 8px; font-size: 18px; }
.sb-vp-cab b { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 24px; color: #fff; margin-right: 10px; }
.sb-vp-cab span { margin-left: 12px; font-size: 14px; color: #94a3b8; }
.sb-vp-cab i { font-style: normal; font-weight: 700; }
.sb-vp-cab i.mal { color: #fca5a5; } .sb-vp-cab i.bien { color: #6ee7b7; }
.sb-vp-cab button { margin-left: auto; background: #0b1626 !important; color: #94a3b8 !important; border: 1px solid #475569; border-radius: 6px; padding: 3px 12px; cursor: pointer; }
.sb-vp-prod { padding: 10px 0; border-bottom: 1px solid rgba(148, 163, 184, .08); }
.sb-vp-pn { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.sb-vp-pasos { line-height: 2.4; }
.sb-vp-fl { color: #475569; margin: 0 6px; }
.sb-vp-p { display: inline-block; vertical-align: middle; line-height: 1.3; padding: 5px 10px; border-radius: 8px; border: 2px solid; background: rgba(10, 20, 38, .9); text-transform: capitalize; }
.sb-vp-p small { color: #94a3b8; text-transform: none; }
.sb-vp-p em { display: block; font-style: normal; font-size: 11.5px; color: #94a3b8; text-transform: none; }
.sb-vp-p.hecho { opacity: .55; }
.sb-vp-p.hecho b { text-decoration: line-through; }
.sb-vp-p.curso { box-shadow: 0 0 12px rgba(34, 211, 238, .5); }
.sb-vp-p.curso em { color: #67e8f9; }
.sb-vp-p.lista em { color: #fcd34d; }
.sb-fijo button[data-sb-vp-abrir] { color: #67e8f9; border-color: #22d3ee; }

/* MOVIMIENTO (14/10/2026): brillo que recorre el tramo en curso, sonar en su
   estación, la ruta del pedido fijado que fluye en su sentido, y el resto que
   se apaga suave. */
.sb-mueve { stroke: rgba(255, 255, 255, .55); stroke-dasharray: 22 70; stroke-linecap: round; animation: sbBrillo 1.6s linear infinite; }
@keyframes sbBrillo { from { stroke-dashoffset: 92; } to { stroke-dashoffset: 0; } }
.sb-sonar { fill: none; stroke-width: 2.5; pointer-events: none; }
.sb-svg [data-o], .sb-ln { transition: opacity .3s ease; }
.sb-svg.resalta [data-o] { opacity: .12; }
.sb-svg.resalta [data-o].on { opacity: 1; }
.sb-svg.resalta .sb-combo.on { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 9 7; animation: sbRuta .7s linear infinite; }
@keyframes sbRuta { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }

/* NEÓN detrás de cada línea (14/10/2026): resplandor quieto + pulso que la recorre */
.sb-neon { opacity: .22; pointer-events: none; }
.sb-neon-pulso { opacity: .75; pointer-events: none; }
.sb-svg.resalta .sb-neon, .sb-svg.resalta .sb-neon-pulso { opacity: .06; transition: opacity .3s ease; }
/* Neón más fuerte (14/10/2026: "es muy sutil") */
.sb-neon { opacity: .4; }
.sb-pulsos { pointer-events: none; }
.sb-neon-pulso { opacity: .85; }
.sb-neon-hilo { opacity: .8; pointer-events: none; }
.sb-svg.resalta .sb-pulsos { opacity: .08; transition: opacity .3s ease; }
/* Luz que pasa por detrás del tubo (14/10/2026, 3ª vuelta) */
.sb-neon { opacity: .3; }
.sb-luz { opacity: 1; pointer-events: none; }
.sb-luz-tubo { opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.sb-svg.resalta .sb-luz, .sb-svg.resalta .sb-neon { opacity: .05; transition: opacity .3s ease; }
/* 20 % menos de intensidad (14/10/2026) */
.sb-neon { opacity: .24; }
.sb-luz { opacity: .8; }
.sb-luz-tubo { opacity: .44; }

/* PASEO: un pedido al azar por minuto ilumina su recorrido (14/10/2026) */
.sb-paseo { pointer-events: none; }
.sb-paseo circle { opacity: 0; animation: sbDestello 2.2s ease-out both; }
@keyframes sbDestello { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.sb-svg g.paseo circle.sb-est { stroke-width: 4; }
.sb-svg g.paseo .sb-est-t { fill: #fff; }
.sb-svg .sb-combo.paseo { opacity: 1 !important; stroke: #fff; stroke-width: 3; stroke-dasharray: 7 6; animation: sbPaseo .35s linear infinite; }
@keyframes sbPaseo { from { stroke-dashoffset: 13; } to { stroke-dashoffset: 0; } }

/* Urgentes: círculo rojo que late y larga luz (14/10/2026) */
.sb-est.urg { fill: #fff; }
.sb-urg-luz { pointer-events: none; }
/* Buscador de pedido arriba del subte */
.sb-buscar { margin: 0 10px 6px; display: flex; align-items: center; flex-wrap: wrap; }
.sb-lupa { font-size: 18px; margin-right: 6px; }
.sb-buscar input { width: 210px; background: #0b1626; color: #f8fafc; border: 1px solid #22d3ee; border-radius: 6px; padding: 6px 10px; font-size: 15px;
  font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-buscar button { margin-left: 6px; background: #22d3ee !important; color: #030a14 !important; border: none; border-radius: 6px; padding: 7px 14px; font-weight: 700; cursor: pointer; }
.sb-buscar-msg { margin-left: 12px; font-size: 13px; color: #fcd34d; }
.sb-urg-ref { margin-left: auto; font-size: 12px; color: #94a3b8; }
.sb-urg-ref i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #ef4444; vertical-align: -2px; margin-right: 4px;
  box-shadow: 0 0 8px #ef4444; }
.sb-res-b { margin: 2px 6px 2px 0; background: #0b1626 !important; color: #67e8f9 !important; border: 1px solid #22d3ee; border-radius: 6px; padding: 3px 8px; cursor: pointer;
  font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13px; }
.sb-res-b small { color: #94a3b8; font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif; }
/* Tarea en curso que el plan sugiere pausar: se ve distinta (14/10/2026) */
.sb-est.pausada { fill: #22d3ee; stroke-dasharray: 4 3; }
.sb-est-t.pausada { fill: #fcd34d; }
/* Lo que se está haciendo: círculo al doble con un arco de luz girando (14/10/2026) */
.sb-giro { fill: none; stroke-width: 3.5; stroke-linecap: round; pointer-events: none; filter: url(#sbNeon); }
.sb-est.curso, .sb-est.pausada { stroke-width: 4; }
.sb-giro { filter: none; }
.sb-giro.luz { stroke-width: 9; opacity: .9; }
.sb-giro.luz { filter: url(#sbLuz); }
/* Avance de la tarea en curso: puntos de luz que corren por lo ya hecho (14/10/2026) */
.sb-avance { stroke: #fff; stroke-linecap: round; stroke-dasharray: 1 11; animation: sbAvance .9s linear infinite; filter: url(#sbNeon); opacity: .95; pointer-events: none; }
@keyframes sbAvance { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
.sb-pct { fill: #e0f2fe; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', Consolas, monospace; paint-order: stroke; stroke: #030a14; stroke-width: 3px; }
.sb-pct.pausada { fill: #fcd34d; }
.sb-avance { filter: none; }
/* Anillo de avance de lo que se está haciendo (14/10/2026) */
.sb-est.pausada { stroke-dasharray: none; }
.sb-est.curso, .sb-est.pausada { fill: #030a14; stroke-width: 4; }
.sb-aro { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 4; pointer-events: none; }
.sb-aro-avance { fill: none; stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.sb-cometa { fill: none; stroke-width: 6; stroke-linecap: round; opacity: .9; pointer-events: none; }
.sb-cometa.fino { stroke-width: 3; opacity: 1; }
/* Lo ya hecho de la tarea en curso, en dorado; % arriba del anillo (14/10/2026) */
.sb-hecho-tramo { stroke: #fbbf24; stroke-linecap: round; pointer-events: none; }
.sb-pct { text-anchor: middle; font-size: 13px; }

/* Viene de impresión: aro celeste (punteado = falta imprimir) (14/10/2026) */
.sb-imp { fill: none; stroke: #22d3ee; stroke-width: 2.5; pointer-events: none; }
.sb-imp.falta { stroke-dasharray: 3 3; opacity: .85; }
.sb-urg-ref i.imp { border-color: #22d3ee; box-shadow: none; border-width: 2px; }
.sb-urg-ref i.imp.falta { border-style: dashed; }
/* "Falta imprimir" en ámbar (igual que en la tablet y las hojas): en los
   racimos de estaciones pegadas el punteado celeste no se distinguía. */
.sb-imp.falta { stroke: #fbbf24; stroke-dasharray: 3 2.5; opacity: 1; }
.sb-urg-ref i.imp.falta { border-color: #fbbf24; }
/* Camino del producto que se está haciendo: siempre visible y fluyendo (13/10/2026) */
.sb-combo.encamino { opacity: 1; stroke: #e0f2fe; stroke-width: 2.5; stroke-dasharray: 6 5; animation: sbRuta .9s linear infinite; }
.sb-int.encamino { opacity: 1; stroke: #e0f2fe; }

/* FIN DE CADA DÍA: frontera por día de entrega que une las líneas (13/10/2026) */
.sb-fronteras { pointer-events: none; }
.sb-fr-capa { opacity: .07; }
.sb-fr-linea { fill: none; stroke-width: 2.5; stroke-linejoin: round; opacity: .9; }
.sb-fr-t { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.sb-fr-pasa { stroke: #ef4444; stroke-width: 5; stroke-linecap: round; }
.sb-fr-aviso { fill: #fca5a5; font-size: 11px; font-weight: 700; }
.sb-svg.resalta .sb-fronteras { opacity: .25; }
.sb-fr-t { paint-order: stroke; stroke: #030a14; stroke-width: 3px; font-size: 12px; }
.sb-fr-capa { opacity: .09; }

/* Frontera de fin de día, 2ª versión: una sola, clara (13/10/2026) */
.sb-fr-capa { fill: #22d3ee; opacity: .07; }
.sb-fr-linea { fill: none; stroke: #e0f2fe; stroke-width: 3; stroke-dasharray: none; opacity: .95; }
.sb-fr-linea.pasa { stroke: #fca5a5; }
.sb-fr-marca rect { fill: #0e7490; }
.sb-fr-marca text { fill: #fff; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-fr-marca.pasa rect { fill: #b91c1c; }
.sb-fr-cierre { stroke: #fca5a5; stroke-width: 1.5; stroke-dasharray: 6 4; opacity: .6; }
.sb-fr-cierre-t { fill: #fca5a5; font-size: 10px; font-weight: 700; text-anchor: end; opacity: .8; }
.sb-fr-sel { margin-left: 14px; font-size: 12px; color: #94a3b8; }
.sb-fr-sel button { margin-left: 4px; background: #0b1626 !important; color: #94a3b8 !important; border: 1px solid #1e3a5f; border-radius: 12px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
.sb-fr-sel button.on { background: #0e7490 !important; color: #fff !important; border-color: #22d3ee; }

/* Fronteras 3ª versión: la del día que se ataca llena, las siguientes a rayas (13/10/2026) */
.sb-fr-linea.actual { stroke: #e0f2fe; stroke-width: 3.5; stroke-dasharray: none; }
.sb-fr-linea.futura { stroke: #a5b4fc; stroke-width: 2.5; stroke-dasharray: 9 7; }
.sb-fr-linea.pasa { stroke: #fca5a5; }
.sb-fr-t { fill: #c7d2fe; }
.sb-fr-t.actual { fill: #e0f2fe; font-size: 13px; }
.sb-fr-ref { display: inline-block; width: 22px; height: 0; vertical-align: 3px; margin: 0 4px 0 10px; }
.sb-fr-ref.llena { border-top: 3px solid #e0f2fe; }
.sb-fr-ref.rayas { border-top: 3px dashed #a5b4fc; }
/* Arrastrar para mover (13/10/2026) */
.sb-scroll { cursor: grab; }
body.sb-arrastrando, body.sb-arrastrando * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* Cuándo termina cada día de entrega (16/10/2026) */
.sb-findias { display: flex; flex-wrap: wrap; align-items: stretch; padding: 0 18px 8px; }
.sb-findias-t { align-self: center; font-size: 12px; color: #64748b; margin-right: 8px; }
.sb-fd { margin: 0 8px 6px 0; padding: 6px 12px; border-radius: 8px; background: rgba(10, 20, 38, .96); border: 1px solid #17304f; border-left-width: 4px; min-width: 130px; }
.sb-fd small { display: block; font-size: 10.5px; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }
.sb-fd b { display: block; font-size: 17px; color: #f8fafc; font-family: 'JetBrains Mono', Consolas, monospace; }
.sb-fd span { font-size: 11.5px; font-weight: 700; }
.sb-fd.bien { border-left-color: #10b981; } .sb-fd.bien span { color: #6ee7b7; }
.sb-fd.ok { border-left-color: #22d3ee; } .sb-fd.ok span { color: #67e8f9; }
.sb-fd.mal { border-left-color: #ef4444; } .sb-fd.mal span { color: #fca5a5; }
/* Tarjetas de cada día en el renglón de "Todo termina" (16/10/2026) */
.sb-res .sb-fd { border-left-width: 4px; padding: 7px 12px; }
.sb-res .sb-fd b { font-size: 18px; }
.sb-res .sb-fd span { display: block; }

/* Material de gran formato (21/10/2026): franja de color y nombre donde cambia. */
.sb-mat { opacity: .95; }
.sb-mat-t { font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #0b0f1a; stroke-width: 3px; }
.sb-mat-ag { font-size: 11px; text-anchor: middle; fill: #e2e8f0; }
.sb-mats { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 700; }
.sb-mats i { font-style: normal; }
