/* ============================================================================
   Vantastic Taller — tall.css
   Ruta destino: src/Modules/Vantastic.CloudERP.Modules.Taller/wwwroot/css/tall.css
   Hoja propia del módulo (/taller). Todo cuelga de .tall-root y lleva prefijo tall-: no hay selectores globales.
   Patrón: lav.css (Cobalt Elegante) + diseño del preview aprobado «Vantastic Taller» (barra lateral plegable,
   acento «torque», placa peruana, kanban de 7 estados, agenda por bahías).
   Paletas (D17): --pal-* las pone TallLayout en el style de .tall-root (TallPaletas.cs). Cambian la barra lateral,
   el menú activo y los acentos. Modales y botones de acción NO cambian: usan --em-cobalt* y colores fijos del ERP.
   Capas D-51: barra 20, lateral 30, desplegables --z-desplegable, modales --z-modal / --z-modal-2,
   bloqueo --z-bloqueo, avisos --z-toast (variables de app.css del Host).
   ============================================================================ */

/* ---------- Tokens (solo dentro del módulo) ---------- */
.tall-root{
  --bg:#f1f4f9;--surface:#ffffff;--surface-2:#f7f9fc;--line:#dce3ee;--line-2:#e9eef5;
  --fg:#14213a;--fg-2:#3a4964;--muted:#6a7893;--chip:#eef2f8;
  /* paleta (la reemplaza TallLayout con la elegida en Configuración → Apariencia) */
  --pal-side:#0f1c38;--pal-hover:#18294d;--pal-act:#1a4fba;--pal-light:#2d6ae0;--pal-acc:#e0662b;
  --pal-pale:#e8eef9;--pal-subtle:#f0f4fb;--pal-acc-soft:#fdeee4;
  --side-fg:#c3cfe6;--side-mute:#8d9bbb;
  /* estándar del ERP: modales Cobalt Elegante (no cambian con la paleta) */
  --em-cobalt:#1a4fba;--em-cobalt-deep:#0f3494;--em-cobalt-light:#2d6ae0;--em-cobalt-pale:#e8eef9;--em-cobalt-subtle:#f0f4fb;
  /* estados de la OT */
  --st-rec:#3b6fd8;--st-diag:#0891b2;--st-apr:#c98510;--st-rep:#e0662b;--st-qc:#7c4dd6;--st-lis:#0e9f6e;--st-ent:#64748b;--st-anu:#94a3b8;
  --ok:#0e9f6e;--ok-soft:#e3f6ee;--warn:#b7770a;--warn-soft:#fbf1dc;--bad:#dc2626;--bad-soft:#fde8e8;--vio:#7c4dd6;--vio-soft:#efe9fb;
  --shadow:0 1px 2px rgba(16,30,60,.06),0 4px 14px rgba(16,30,60,.06);
  --plate-bg:#ffffff;--plate-fg:#111827;
  --f-display:"Barlow Semi Condensed","Segoe UI",system-ui,sans-serif;
  --f-body:"Segoe UI",system-ui,-apple-system,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
  background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:14px;line-height:1.45;min-height:100vh;
}
.tall-root *{box-sizing:border-box}
.tall-root button,.tall-root input,.tall-root select,.tall-root textarea{font:inherit;color:inherit}
.tall-root h1,.tall-root h2,.tall-root h3,.tall-root h4{font-family:var(--f-display);margin:0;letter-spacing:.005em}
.tall-root :focus-visible{outline:2px solid var(--pal-light);outline-offset:2px}
.tall-root .tall-mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.tall-root .tall-num{font-variant-numeric:tabular-nums}
.tall-root .tall-mut{color:var(--muted)}
.tall-root .tall-right{margin-left:auto}
.tall-root .tall-stack{display:flex;flex-direction:column;gap:12px}
.tall-root .tall-big{font-family:var(--f-display);font-size:22px;font-weight:700;display:block}

/* ---------- Shell: lateral plegable ---------- */
.tall-root{display:grid;grid-template-columns:236px minmax(0,1fr);transition:grid-template-columns .18s}
.tall-root.mini{grid-template-columns:64px minmax(0,1fr)}
.tall-root .tall-side{background:var(--pal-side);color:var(--side-fg);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;overflow-x:hidden;z-index:30}
.tall-root .tall-brand{display:flex;align-items:center;gap:10px;padding:16px 12px 12px 14px}
.tall-root .tall-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--pal-light),var(--pal-acc));display:grid;place-items:center;color:#fff;font-size:16px;flex:none}
.tall-root .tall-logo.lg{width:52px;height:52px;border-radius:14px;font-size:22px}
.tall-root .tall-brand .tx{min-width:0;flex:1}
.tall-root .tall-brand b{font-family:var(--f-display);color:#fff;font-size:16px;display:block;white-space:nowrap}
.tall-root .tall-brand small{color:var(--side-mute);font-size:11px;white-space:nowrap}
.tall-root .tall-fold{background:transparent;border:1px solid rgba(255,255,255,.12);color:var(--side-fg);width:26px;height:26px;border-radius:6px;cursor:pointer;flex:none;display:grid;place-items:center;font-size:11px}
.tall-root .tall-fold:hover{background:var(--pal-hover)}
.tall-root .tall-ctx{margin:4px 10px 8px;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:11.5px;display:grid;gap:3px;cursor:pointer}
.tall-root .tall-ctx .t{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--side-mute);font-weight:700;display:flex;align-items:center;gap:6px}
.tall-root .tall-ctx .t .solo{padding:1px 6px;border-radius:999px;background:#f2b45c;color:#1f2a2e;font-size:9px;letter-spacing:0;text-transform:none}
.tall-root .tall-ctx .r{display:flex;justify-content:space-between;gap:8px}
.tall-root .tall-ctx .r span{color:var(--side-mute)}
.tall-root .tall-ctx .r b{color:#fff;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tall-root .tall-grp{padding:10px 16px 4px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--side-mute);font-weight:700;white-space:nowrap}
.tall-root .tall-grp-sep{display:none;height:1px;background:rgba(255,255,255,.08);margin:8px 12px}
.tall-root .tall-nav{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.tall-root .tall-nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--side-fg);padding:8px 10px;border-radius:8px;cursor:pointer;text-align:left;font-size:13.5px;font-weight:600;white-space:nowrap;position:relative}
.tall-root .tall-nav button:hover{background:var(--pal-hover)}
.tall-root .tall-nav button.on{background:var(--pal-act);color:#fff}
.tall-root .tall-nav .ic{width:18px;text-align:center;flex:none}
.tall-root .tall-nav .lb{overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-nav .cnt{margin-left:auto;font-size:11px;font-weight:700;background:var(--pal-acc);color:#fff;border-radius:999px;padding:0 7px}
.tall-root .tall-nav .cnt.bad{background:var(--bad)}
.tall-root .tall-nav .cnt-dot{display:none;position:absolute;top:6px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--pal-acc)}
.tall-root .tall-side-foot{margin-top:auto;padding:12px 8px 16px;border-top:1px solid rgba(255,255,255,.07)}
.tall-root .tall-user{display:flex;align-items:center;gap:8px;padding:4px}
.tall-root .tall-user .us{min-width:0;flex:1}
.tall-root .tall-user b{color:#fff;font-size:12.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-user small{color:var(--side-mute);font-size:11px}
.tall-root .tall-user .tall-ib{background:rgba(255,255,255,.1);box-shadow:none}
/* plegado: solo íconos (el title de cada botón hace de tooltip) */
.tall-root.mini .tall-brand .tx,.tall-root.mini .tall-ctx,.tall-root.mini .tall-grp,.tall-root.mini .tall-nav .lb,.tall-root.mini .tall-nav .cnt,
.tall-root.mini .tall-user .us,.tall-root.mini .tall-user .tall-ib{display:none}
.tall-root.mini .tall-brand{flex-direction:column;padding:14px 8px}
.tall-root.mini .tall-nav button{justify-content:center;padding:10px 0}
.tall-root.mini .tall-nav .cnt-dot{display:block}
.tall-root.mini .tall-grp-sep{display:block}
.tall-root.mini .tall-user{justify-content:center}

.tall-root .tall-main{min-width:0;display:flex;flex-direction:column}
.tall-root .tall-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:8px 18px;flex-wrap:wrap}
.tall-root .tall-top:has(.ins-ovl),.tall-root .tall-top:has(.ins-tts){z-index:var(--z-modal)} /* D-51: instructivo abierto */
.tall-root .tall-top .tt{margin-right:auto;min-width:0}
.tall-root .tall-top h2{font-size:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-top .sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-burger{display:none}
.tall-root .tall-chip{display:inline-flex;align-items:center;gap:6px;height:31px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:var(--surface-2);font-size:12.5px;font-weight:600;color:var(--fg-2);white-space:nowrap;cursor:pointer}
.tall-root .tall-chip:hover{border-color:var(--pal-light)}
.tall-root .tall-chip.ok{border-color:color-mix(in srgb,var(--ok) 40%,transparent);color:var(--ok)}
.tall-root .tall-chip.mal{border-color:color-mix(in srgb,var(--bad) 35%,transparent);color:var(--bad)}
.tall-root .tall-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);animation:tallPulse 2s infinite}
@keyframes tallPulse{0%{box-shadow:0 0 0 0 rgba(14,159,110,.55)}70%{box-shadow:0 0 0 7px rgba(14,159,110,0)}100%{box-shadow:0 0 0 0 rgba(14,159,110,0)}}
.tall-root .tall-content{padding:18px 20px 60px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tall-root .tall-scrim{display:none}
.tall-root .tall-loading{padding:40px;text-align:center;color:var(--muted);font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px}
.tall-root .tall-loading.s{padding:10px}

/* ---------- Botones (estándar Vantastic: solo por estilo en línea o btn-hover) ---------- */
.tall-root .tall-ib{width:31px;height:31px;border-radius:6px;border:none;box-shadow:0 1px 2px rgba(0,0,0,.08);color:#fff;display:inline-grid;place-items:center;cursor:pointer;flex:none;font-size:13px;background:#374151}
.tall-root .tall-bt{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;height:31px;font-size:13px;font-weight:600;border:none;color:#fff;border-radius:6px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);white-space:nowrap}
.tall-root .btn-hover{transition:filter .12s,transform .12s}
.tall-root .btn-hover:hover{filter:brightness(1.1)}
.tall-root .btn-hover:active{transform:translateY(1px)}
.tall-root .tall-bt[disabled],.tall-root .tall-ib[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.3)}
.tall-root .tall-ghost{background:var(--surface-2);color:var(--fg-2);border:1px solid var(--line);box-shadow:none}
.tall-root .tall-link{border:0;background:transparent;color:var(--pal-light);font-weight:700;cursor:pointer;padding:0}

/* ---------- Piezas comunes ---------- */
.tall-root .tall-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-width:0}
.tall-root .tall-card-h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line-2);flex-wrap:wrap}
.tall-root .tall-card-h h3{font-size:16px;font-weight:600;margin-right:auto;display:flex;align-items:center;gap:8px}
.tall-root .tall-card-b{padding:14px}
.tall-root .tall-grid{display:grid;gap:16px}
.tall-root .tall-grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tall-root .tall-grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tall-root .tall-grid.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tall-root .tall-grid.g-main{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.tall-root .tall-grid.g-side{grid-template-columns:minmax(0,340px) minmax(0,1fr)}
.tall-root .tall-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.tall-root .tall-kpi{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;cursor:pointer;text-align:left;min-width:0}
.tall-root .tall-kpi:hover{border-color:var(--pal-light)}
.tall-root .tall-kpi .l{font-size:12px;color:var(--muted);font-weight:600;display:flex;gap:6px;align-items:center}
.tall-root .tall-kpi .v{font-family:var(--f-display);font-size:30px;font-weight:700;line-height:1.1}
.tall-root .tall-kpi .s{font-size:11.5px;color:var(--muted)}
.tall-root .tall-kpi.alert .v{color:var(--bad)}
.tall-root .tall-pill{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.tall-root .tall-p-ok{background:var(--ok-soft);color:var(--ok)}
.tall-root .tall-p-warn{background:var(--warn-soft);color:var(--warn)}
.tall-root .tall-p-bad{background:var(--bad-soft);color:var(--bad)}
.tall-root .tall-p-cob{background:var(--pal-pale);color:var(--pal-light)}
.tall-root .tall-p-tq{background:var(--pal-acc-soft);color:var(--pal-acc)}
.tall-root .tall-p-vio{background:var(--vio-soft);color:var(--vio)}
.tall-root .tall-p-gray{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.tall-root .tall-est{background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c)}
.tall-root .tall-plate{display:inline-flex;flex-direction:column;align-items:center;background:var(--plate-bg);color:var(--plate-fg);border:1.5px solid #1f2937;border-radius:5px;padding:0 7px 1px;font-family:var(--f-mono);font-weight:600;font-size:13px;line-height:1.15;letter-spacing:.04em;white-space:nowrap;vertical-align:middle}
.tall-root .tall-plate::before{content:"PERÚ";font-size:6.5px;letter-spacing:.25em;font-family:var(--f-body);font-weight:700;border-bottom:1px solid #9ca3af;width:100%;text-align:center;color:#374151}
.tall-root .tall-plate.lg{font-size:20px;padding:0 12px 2px}
.tall-root .tall-plate.lg::before{font-size:8px}
.tall-root .tall-monto{display:inline-flex;flex-direction:column;line-height:1.25}
.tall-root .tall-monto.in{flex-direction:row;align-items:baseline;gap:4px;flex-wrap:wrap}
.tall-root .tall-monto b{font-weight:600}
.tall-root .tall-usd{display:block;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.tall-root .tall-usd-in{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.tall-root .tall-veh{display:inline-block;flex:none}
.tall-root .tall-av{border-radius:50%;display:inline-grid;place-items:center;font-weight:700;color:#fff;flex:none;letter-spacing:.02em}
.tall-root .tall-tbl-wrap{overflow-x:auto}
.tall-root .tall-tbl{width:100%;border-collapse:collapse;font-size:13px}
.tall-root .tall-tbl th{text-align:left;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2)}
.tall-root .tall-tbl td{padding:9px 10px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.tall-root .tall-tbl tr.click{cursor:pointer}
.tall-root .tall-tbl tr.click:hover td{background:var(--pal-subtle)}
.tall-root .tall-tbl tr.off td{opacity:.55}
.tall-root .tall-tbl .r{text-align:right}
.tall-root .tall-tbl .sm{font-size:12px;color:var(--muted)}
.tall-root .tall-in{height:31px;border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:0 10px;min-width:0;width:100%}
.tall-root .tall-in:focus{border-color:var(--em-cobalt-light);outline:none;box-shadow:0 0 0 3px var(--em-cobalt-pale)}
.tall-root .tall-in[disabled]{background:var(--surface-2);color:var(--muted)}
.tall-root textarea.tall-in{height:auto;padding:7px 10px;resize:vertical;min-height:62px}
.tall-root select.tall-in{padding-right:24px}
.tall-root .tall-in.xl{height:42px;font-size:17px;font-family:var(--f-mono);text-transform:uppercase}
.tall-root .tall-lbl{font-size:11.5px;font-weight:700;color:var(--muted);display:block;margin-bottom:4px}
.tall-root .tall-field{display:flex;flex-direction:column;min-width:0}
.tall-root .tall-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tall-root .tall-chk{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--fg-2);cursor:pointer}
.tall-root .tall-search{position:relative;flex:1;min-width:0}
.tall-root .tall-search > i{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px}
.tall-root .tall-search > .tall-in{padding-left:30px}
.tall-root .tall-search > .tall-spin.in{position:absolute;right:9px;top:50%;margin-top:-8px}
.tall-root .tall-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);padding:0 8px;overflow-x:auto}
.tall-root .tall-tabs button{border:0;background:transparent;padding:10px 12px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.tall-root .tall-tabs button.on{color:var(--pal-light);border-bottom-color:var(--pal-light)}
.tall-root .tall-tabs .n{font-size:10.5px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:0 6px;color:var(--fg-2)}
.tall-root .tall-seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}
.tall-root .tall-seg button{border:0;background:transparent;padding:0 11px;height:31px;font-size:12.5px;font-weight:600;color:var(--fg-2);cursor:pointer;border-right:1px solid var(--line)}
.tall-root .tall-seg button:last-child{border-right:0}
.tall-root .tall-seg button.on{background:var(--pal-act);color:#fff}
.tall-root .tall-note{font-size:12.5px;color:var(--fg-2);background:var(--pal-subtle);border:1px solid var(--pal-pale);border-radius:9px;padding:10px 12px;display:flex;gap:8px;align-items:flex-start}
.tall-root .tall-note > i{margin-top:2px;color:var(--pal-light)}
.tall-root .tall-note.tq{background:var(--pal-acc-soft);border-color:transparent}
.tall-root .tall-note.tq > i{color:var(--pal-acc)}
.tall-root .tall-note.ok{background:var(--ok-soft);border-color:transparent}
.tall-root .tall-note.ok > i{color:var(--ok)}
.tall-root .tall-note.bad{background:var(--bad-soft);border-color:transparent}
.tall-root .tall-note.bad > i{color:var(--bad)}
.tall-root .tall-note.warn{background:var(--warn-soft);border-color:transparent}
.tall-root .tall-note.warn > i{color:var(--warn)}
.tall-root .tall-empty{padding:30px;text-align:center;color:var(--muted)}
.tall-root .tall-prog{height:8px;border-radius:5px;background:var(--line-2);overflow:hidden}
.tall-root .tall-prog > span{display:block;height:100%;border-radius:5px;background:var(--c,var(--pal-light))}
.tall-root .tall-bars{display:flex;flex-direction:column;gap:8px}
.tall-root .tall-bars .b{display:grid;grid-template-columns:120px minmax(0,1fr) 54px;gap:8px;align-items:center;font-size:12.5px}
.tall-root .tall-opt{border:1.5px solid var(--line);border-radius:10px;padding:12px;display:flex;gap:12px;cursor:pointer;background:var(--surface);text-align:left;width:100%;align-items:flex-start}
.tall-root .tall-opt:hover{border-color:var(--pal-light)}
.tall-root .tall-opt.on{border-color:var(--pal-light);background:var(--pal-subtle)}
.tall-root .tall-opt.sm{padding:8px 10px;align-items:center}
.tall-root .tall-opt .ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none;color:#fff}
.tall-root .tall-opt b{display:block}
.tall-root .tall-opt .s{font-size:12.5px;color:var(--fg-2)}
.tall-root .tall-tagx{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:3px 6px 3px 10px;font-size:12.5px;font-weight:600}
.tall-root .tall-tagx.chk{padding-right:10px;cursor:pointer}
.tall-root .tall-tagx.chk.on{border-color:var(--pal-light);background:var(--pal-subtle);color:var(--pal-light)}
.tall-root .tall-tagx .o{font-size:9.5px;font-weight:800;border-radius:4px;padding:0 4px}
.tall-root .tall-tagx .o.B{background:var(--pal-pale);color:var(--pal-light)}
.tall-root .tall-tagx .o.P{background:var(--pal-acc-soft);color:var(--pal-acc)}
.tall-root .tall-tagx button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0 2px}
.tall-root .tall-tog{width:40px;height:22px;border-radius:999px;border:0;position:relative;cursor:pointer;flex:none;background:#cfd6e3;transition:background .15s}
.tall-root .tall-tog::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.tall-root .tall-tog.on{background:var(--ok)}
.tall-root .tall-tog.on::after{left:21px}
.tall-root .tall-tog[disabled]{opacity:.5;cursor:not-allowed}
.tall-root .tall-kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line-2);font-size:13px;align-items:center}
.tall-root .tall-kv:last-child{border-bottom:0}
.tall-root .tall-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px 14px;font-size:12.5px}
.tall-root .tall-dl .tall-lbl{margin:0}
.tall-root .tall-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.tall-root .tall-meta i{margin-right:4px}
.tall-root .tall-avisos-lista{margin:0;padding-left:18px;font-size:12.5px;color:var(--fg-2);display:flex;flex-direction:column;gap:3px}
.tall-root .tall-ph-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- Buscar o crear ---------- */
.tall-root .tall-soc{position:relative;min-width:0}
.tall-root .tall-sugg{position:absolute;left:0;right:0;top:calc(100% + 3px);border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow);z-index:var(--z-desplegable,40);max-height:320px;overflow-y:auto}
.tall-root .tall-sugg > button{display:flex;width:100%;gap:8px;align-items:center;border:0;background:transparent;padding:7px 10px;text-align:left;cursor:pointer;font-size:13px;border-bottom:1px solid var(--line-2)}
.tall-root .tall-sugg > button:last-child{border-bottom:0}
.tall-root .tall-sugg > button:hover{background:var(--pal-subtle)}
.tall-root .tall-sugg .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tall-root .tall-sugg .meta{margin-left:auto;font-size:11.5px;white-space:nowrap}
.tall-root .tall-sugg .new{color:#16a34a;font-weight:600}
.tall-root .tall-sugg-q{display:flex;gap:10px;padding:10px;font-size:12.5px;border-bottom:1px solid var(--line-2)}
.tall-root .tall-list{display:flex;flex-direction:column;gap:6px}

/* ---------- Kanban (tablero) ---------- */
.tall-root .tall-kan{display:grid;grid-template-columns:repeat(7,minmax(190px,1fr));gap:10px;overflow-x:auto;padding-bottom:6px}
.tall-root .tall-kcol{background:var(--surface-2);border:1px solid var(--line-2);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:8px;min-height:180px;min-width:0}
.tall-root .tall-kcol-h{display:flex;align-items:center;gap:6px;font-weight:700;font-size:12.5px;padding:2px 4px}
.tall-root .tall-kcol-h i{font-size:8px;color:var(--c)}
.tall-root .tall-kcol-h .c{margin-left:auto;color:var(--muted);font-size:12px}
.tall-root .tall-kc{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--c);border-radius:9px;padding:9px;display:flex;flex-direction:column;gap:6px;cursor:pointer;text-align:left;width:100%}
.tall-root .tall-kc:hover{border-color:var(--pal-light);border-left-color:var(--c)}
.tall-root .tall-kc .tp{display:flex;justify-content:space-between;align-items:center;gap:6px}
.tall-root .tall-kc .ot{font-family:var(--f-mono);font-size:11.5px;color:var(--muted)}
.tall-root .tall-kc .v{font-weight:600;font-size:13px}
.tall-root .tall-kc .sm{font-size:12px;color:var(--fg-2);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tall-root .tall-kc .ft{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.tall-root .tall-kc .adv{margin-left:auto;border:1px solid var(--line);background:var(--surface-2);color:var(--fg-2);border-radius:6px;height:24px;padding:0 7px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.tall-root .tall-kc .adv:hover{border-color:var(--pal-light);color:var(--pal-light)}
.tall-root .tall-kc.riesgo{box-shadow:0 0 0 2px color-mix(in srgb,var(--bad) 35%,transparent)}
.tall-root .tall-mtabs{display:none;gap:6px;overflow-x:auto;padding-bottom:6px}
.tall-root .tall-mtabs button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:4px 11px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;color:var(--fg-2)}
.tall-root .tall-mtabs button.on{background:var(--c,var(--pal-act));border-color:var(--c,var(--pal-act));color:#fff}

/* ---------- Agenda (bahías × horas) ---------- */
.tall-root .tall-ag-wrap{overflow:auto;max-height:calc(100vh - 220px)}
.tall-root .tall-ag{display:grid;position:relative;min-width:760px}
.tall-root .tall-ag .hd{font-weight:700;font-size:12.5px;padding:8px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-ag .hd small{display:block;font-weight:500;color:var(--muted);font-size:11px}
.tall-root .tall-ag .hr{font-size:11px;color:var(--muted);padding:2px 6px;border-top:1px solid var(--line-2);font-family:var(--f-mono)}
.tall-root .tall-ag .cl{border-left:1px solid var(--line-2);position:relative}
.tall-root .tall-ag .sl{border-top:1px solid var(--line-2);cursor:copy}
.tall-root .tall-ag .sl:hover{background:var(--pal-subtle)}
.tall-root .tall-ev{position:absolute;left:4px;right:4px;border-radius:8px;padding:5px 7px;font-size:11.5px;overflow:hidden;border-left:3px solid var(--c);background:color-mix(in srgb,var(--c) 13%,var(--surface));color:var(--fg);cursor:pointer;z-index:1;text-align:left;border-top:0;border-right:0;border-bottom:0}
.tall-root .tall-ev b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-ev span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-ev.ot{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--c) 16%,var(--surface)),color-mix(in srgb,var(--c) 16%,var(--surface)) 8px,color-mix(in srgb,var(--c) 9%,var(--surface)) 8px,color-mix(in srgb,var(--c) 9%,var(--surface)) 16px)}
.tall-root .tall-ev.off{opacity:.5;text-decoration:line-through}
.tall-root .tall-nowline{position:absolute;right:0;height:2px;background:var(--pal-acc);z-index:2;pointer-events:none}
.tall-root .tall-nowline::before{content:"";position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--pal-acc)}

/* ---------- Fotos ---------- */
.tall-root .tall-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.tall-root .tall-photos.cmp{grid-template-columns:repeat(auto-fill,minmax(64px,64px));gap:6px}
.tall-root .tall-ph-tile{aspect-ratio:16/11;max-width:100%;border-radius:8px;background:#1d2433;border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#9aa6bd;font-size:10.5px;text-align:center;padding:4px;position:relative;overflow:hidden;cursor:zoom-in}
.tall-root .tall-ph-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tall-root .tall-ph-tile .tag{position:absolute;left:5px;top:5px;font-size:9.5px;font-weight:800;letter-spacing:.06em;padding:1px 5px;border-radius:4px;background:rgba(0,0,0,.6);color:#fff;z-index:2;text-transform:uppercase}
.tall-root .tall-ph-tile .tag.af{background:var(--ok)}
.tall-root .tall-ph-tile .play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:24px;text-shadow:0 2px 8px rgba(0,0,0,.6);z-index:1}
.tall-root .tall-ph-tile .dur{position:absolute;right:5px;bottom:5px;font-size:10px;background:rgba(0,0,0,.6);color:#fff;border-radius:4px;padding:0 5px;font-family:var(--f-mono);z-index:2}
.tall-root .tall-ph-tile .priv{position:absolute;left:5px;bottom:5px;font-size:10px;color:#fff;background:rgba(0,0,0,.55);border-radius:4px;padding:0 4px;z-index:2}
.tall-root .tall-ph-tile .rm{position:absolute;top:4px;right:4px;width:22px;height:22px;font-size:10px;z-index:3}
.tall-root .tall-ph-tile.add{background:var(--surface-2);border:2px dashed var(--line);color:var(--muted);cursor:pointer}
.tall-root .tall-ph-tile.add i{font-size:18px;color:var(--pal-acc)}
.tall-root .tall-photos.cmp .tall-ph-tile .tag{font-size:8px}
.tall-root .tall-file-in{display:none}

/* ---------- Paletas (Configuración → Apariencia) ---------- */
.tall-root .tall-pals{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tall-root .tall-pal{border:1.5px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;cursor:pointer;background:var(--surface);text-align:left}
.tall-root .tall-pal:hover{border-color:var(--pal-light)}
.tall-root .tall-pal.on{border-color:var(--pal-light);background:var(--pal-subtle)}
.tall-root .tall-pal .sw{display:flex;height:34px;border-radius:7px;overflow:hidden;border:1px solid var(--line)}
.tall-root .tall-pal .sw span{flex:1}
.tall-root .tall-pal .sw span:first-child{flex:2}
.tall-root .tall-pal b{font-size:12.5px}
.tall-root .tall-qr{background:#fff;border-radius:8px;padding:6px;border:1px solid var(--line);width:150px;height:150px;display:grid;place-items:center}
.tall-root .tall-qr img{width:100%;height:100%;image-rendering:pixelated}
.tall-root .tall-code{font-family:var(--f-mono);font-size:20px;font-weight:600;letter-spacing:.06em;background:var(--surface-2);border:1px dashed var(--line);border-radius:8px;padding:8px 12px;text-align:center}

/* ---------- Mecánicos ---------- */
.tall-root .tall-mec-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tall-root .tall-mec-stats .v{font-family:var(--f-display);font-size:24px;font-weight:700;display:block;font-variant-numeric:tabular-nums}
.tall-root .tall-colors{display:flex;gap:6px;flex-wrap:wrap}
.tall-root .tall-colors button{width:26px;height:26px;border-radius:50%;border:2px solid transparent;cursor:pointer;box-shadow:0 0 0 1px var(--line)}
.tall-root .tall-colors button.on{border-color:#fff;box-shadow:0 0 0 2px var(--fg)}

/* ---------- Asistente de primera entrada ---------- */
.tall-root .tall-wizard{max-width:760px;width:100%;margin:10px auto}
.tall-root .tall-wz-head{display:flex;gap:14px;align-items:center;padding:18px;border-bottom:1px solid var(--line-2);background:linear-gradient(135deg,var(--pal-subtle),var(--surface))}
.tall-root .tall-wz-head h2{font-size:22px}
.tall-root .tall-wz-head p{margin:2px 0 0;color:var(--fg-2);font-size:13px}
.tall-root .tall-wz-step{display:flex;gap:12px;align-items:flex-start}
.tall-root .tall-wz-step .n{width:26px;height:26px;border-radius:50%;background:var(--pal-act);color:#fff;font-weight:700;display:grid;place-items:center;flex:none;font-size:12.5px}

/* ---------- Modales Cobalt Elegante (capas D-51; NO cambian con la paleta) ---------- */
.tall-root .tall-modal-wrap{position:fixed;inset:0;display:grid;place-items:center;padding:16px;z-index:var(--z-modal)}
.tall-root .tall-modal-wrap.n2{z-index:var(--z-modal-2)}
.tall-root .tall-ov{position:absolute;inset:0;background:rgba(8,16,36,.55);backdrop-filter:blur(2px);z-index:0}
.tall-root .tall-modal{position:relative;z-index:1;background:var(--surface);border-radius:14px;width:min(600px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.tall-root .tall-modal.w-s{width:min(420px,100%)}
.tall-root .tall-modal.w-l{width:min(820px,100%)}
.tall-root .tall-modal.w-xl{width:min(1080px,100%)}
.tall-root .tall-mhead{background:linear-gradient(135deg,var(--em-cobalt-deep),var(--em-cobalt) 55%,var(--em-cobalt-light));color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px;flex:none}
.tall-root .tall-mhead .ic{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.15);display:grid;place-items:center;flex:none;font-size:16px}
.tall-root .tall-mhead h3{font-size:18px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tall-root .tall-mhead p{margin:2px 0 0;font-size:12.5px;opacity:.85}
.tall-root .tall-mhead .x{margin-left:auto;background:rgba(255,255,255,.16);box-shadow:none}
.tall-root .tall-mbody{padding:16px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;flex:1;position:relative;min-height:80px}
.tall-root .tall-mbody .tall-in{border-radius:5px}
.tall-root .tall-mfoot{padding:10px 18px;border-top:1px solid var(--line-2);display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--surface-2);flex:none}
.tall-root .tall-mblock{position:absolute;inset:0;background:rgba(255,255,255,.75);display:grid;place-items:center;z-index:5;font-weight:700;color:var(--em-cobalt-deep);text-align:center;padding:16px}
.tall-root .tall-spin{width:36px;height:36px;border-radius:50%;border:4px solid var(--em-cobalt-pale);border-top-color:var(--em-cobalt);animation:tallSpin .8s linear infinite;display:inline-block;flex:none}
.tall-root .tall-spin.s{width:16px;height:16px;border-width:2px}
@keyframes tallSpin{to{transform:rotate(360deg)}}

/* ---------- Avisos (toasts) ---------- */
.tall-root .tall-avisos{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:var(--z-toast);display:flex;flex-direction:column;gap:8px;width:min(380px,calc(100% - 32px));pointer-events:none}
.tall-root .tall-aviso{pointer-events:auto;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--c,var(--em-cobalt));border-radius:10px;padding:10px 12px;box-shadow:var(--shadow);display:flex;gap:10px;align-items:flex-start;font-size:13px;animation:tallIn .25s ease}
.tall-root .tall-aviso.ok{--c:var(--ok)}
.tall-root .tall-aviso.warn{--c:var(--warn)}
.tall-root .tall-aviso.err{--c:var(--bad)}
.tall-root .tall-aviso i{color:var(--c);margin-top:2px}
.tall-root .tall-aviso div{flex:1}
.tall-root .tall-aviso button{border:0;background:transparent;color:var(--muted);cursor:pointer}
@keyframes tallIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}

/* ---------- Responsive ---------- */
@media (max-width:1200px){
  .tall-root .tall-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tall-root .tall-grid.g-main{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1000px){
  .tall-root .tall-grid.g-side{grid-template-columns:minmax(0,1fr)}
  .tall-root .tall-grid.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .tall-root,.tall-root.mini{grid-template-columns:minmax(0,1fr)}
  /* celular: cajón con scrim y burger (el plegado no aplica) */
  .tall-root .tall-side{position:fixed;left:0;top:0;bottom:0;height:100vh;width:260px;transform:translateX(-100%);transition:transform .2s;z-index:var(--z-modal);padding-top:env(safe-area-inset-top,0px)}
  .tall-root.cajon .tall-side{transform:none}
  .tall-root.cajon .tall-scrim{display:block;position:fixed;inset:0;background:rgba(8,16,36,.45);z-index:calc(var(--z-modal) - 1)}
  .tall-root.mini .tall-brand .tx,.tall-root.mini .tall-ctx,.tall-root.mini .tall-grp,.tall-root.mini .tall-nav .lb,.tall-root.mini .tall-nav .cnt,
  .tall-root.mini .tall-user .us,.tall-root.mini .tall-user .tall-ib{display:revert}
  .tall-root.mini .tall-ctx{display:grid}
  .tall-root.mini .tall-nav button{justify-content:flex-start;padding:8px 10px}
  .tall-root.mini .tall-brand{flex-direction:row;padding:16px 12px 12px 14px}
  .tall-root.mini .tall-nav .cnt-dot,.tall-root.mini .tall-grp-sep{display:none}
  .tall-root .tall-fold{display:none}
  .tall-root .tall-burger{display:inline-grid}
  .tall-root .tall-top{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .tall-root .tall-top .hide-m,.tall-root .hide-m{display:none!important}
  .tall-root .tall-content{padding:14px max(16px,env(safe-area-inset-right,0px)) 60px max(16px,env(safe-area-inset-left,0px))}
  .tall-root .tall-grid.g2,.tall-root .tall-grid.g3{grid-template-columns:minmax(0,1fr)}
  .tall-root .tall-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tall-root .tall-kpi .v{font-size:24px}
  /* kanban: una columna por vez con pestañas */
  .tall-root .tall-kan{display:block}
  .tall-root .tall-kcol{display:none;min-height:0}
  .tall-root .tall-kcol.mon{display:flex}
  .tall-root .tall-kcol-h{display:none}
  .tall-root .tall-mtabs{display:flex}
  .tall-root .tall-mec-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tall-root .tall-modal-wrap{padding:8px}
  .tall-root .tall-modal{max-height:calc(100vh - 16px)}
  .tall-root .tall-ag-wrap{max-height:none}
}
@media (max-width:560px){
  .tall-root .tall-grid.g4{grid-template-columns:minmax(0,1fr)}
  .tall-root .tall-bars .b{grid-template-columns:90px minmax(0,1fr) 44px}
  .tall-root .tall-mfoot .tall-bt{flex:1;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.tall-root *{animation:none!important;transition:none!important}}
@media print{
  .tall-root .tall-side,.tall-root .tall-top,.tall-root .tall-avisos,.tall-root .tall-scrim{display:none!important}
  .tall-root{display:block}
}


/* ===== OT (F2) ===== */
/* =====================================================================================
   TallOT.css.txt — reglas de las pantallas F2 (OT, órdenes, vehículos, mantenimientos, reportes)
   PEGAR AL FINAL de wwwroot/css/tall.css (lo crea F1). Todo bajo .tall-root, prefijo tall-f2-.
   Copia la forma del preview aprobado (vantastic-taller-preview.html: .card, .t, .pill, .note,
   .steps, .chk, .pairs, .tl, .prog, .bars, .kpis…) con su propio prefijo para no chocar con las
   clases base que define F1. Los colores salen de los tokens de tall.css (paletas D17: --pal-act,
   --pal-light, --pal-acc…) con respaldo a los valores Cobalt Elegante. Sin modo oscuro propio: sigue a tall.css.
   Botones: forma aquí; el color SIEMPRE va en línea (style="background:#…") + btn-hover (regla de Ivan).
   ===================================================================================== */
.tall-root{
  /* Tokens de F1 (tall.css: --surface, --line, --fg, --muted, --ok/--warn/--bad, paleta D17 --pal-*) con respaldo Cobalt Elegante. */
  --f2-surface:var(--surface,#ffffff);
  --f2-surface-2:var(--surface-2,#f7f9fc);
  --f2-line:var(--line,#dce3ee);
  --f2-line-2:var(--line-2,#e9eef5);
  --f2-fg:var(--fg,#14213a);
  --f2-fg-2:var(--fg-2,#3a4964);
  --f2-muted:var(--muted,#6a7893);
  --f2-cob:var(--pal-act,#1a4fba);
  --f2-cob-light:var(--pal-light,#2d6ae0);
  --f2-cob-pale:var(--pal-pale,#e8eef9);
  --f2-cob-subtle:var(--pal-subtle,#f0f4fb);
  --f2-torque:var(--pal-acc,#e0662b);
  --f2-torque-soft:var(--pal-acc-soft,#fdeee4);
  --f2-ok:var(--ok,#0e9f6e);--f2-ok-soft:var(--ok-soft,#e3f6ee);
  --f2-warn:var(--warn,#b7770a);--f2-warn-soft:var(--warn-soft,#fbf1dc);
  --f2-bad:var(--bad,#dc2626);--f2-bad-soft:var(--bad-soft,#fde8e8);
  --f2-vio:var(--vio,#7c4dd6);--f2-vio-soft:var(--vio-soft,#efe9fb);
  --f2-shadow:var(--shadow,0 1px 2px rgba(16,30,60,.06),0 4px 14px rgba(16,30,60,.06));
  --f2-display:var(--f-display,"Barlow Semi Condensed","Segoe UI",system-ui,sans-serif);
  --f2-mono:var(--f-mono,"IBM Plex Mono",ui-monospace,Consolas,monospace);
}

/* ── texto ── */
.tall-root .tall-f2-num{font-variant-numeric:tabular-nums}
.tall-root .tall-f2-mono{font-family:var(--f2-mono)}
.tall-root .tall-f2-mut{color:var(--f2-muted)}
.tall-root .tall-f2-sm{font-size:12px}
.tall-root .tall-f2-xs{font-size:11.5px}
.tall-root .tall-f2-h{font-family:var(--f2-display);margin:0}
.tall-root .tall-f2-big{font-family:var(--f2-display);font-size:22px;font-weight:700;line-height:1.15}

/* ── botones (forma; el color va en línea) ── */
.tall-root .tall-f2-bt{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;height:31px;font-size:13px;font-weight:600;border:none;color:#fff;border-radius:6px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);white-space:nowrap;text-decoration:none}
.tall-root .tall-f2-ib{width:31px;height:31px;border-radius:6px;border:none;display:inline-grid;place-items:center;color:#fff;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);flex:none;padding:0}
.tall-root .tall-f2-bt[disabled],.tall-root .tall-f2-ib[disabled]{opacity:.45;cursor:not-allowed}
.tall-root .tall-f2-ghost{background:var(--f2-surface-2);color:var(--f2-fg-2);border:1px solid var(--f2-line);box-shadow:none}

/* ── tarjetas y rejillas ── */
.tall-root .tall-f2-card{background:var(--f2-surface);border:1px solid var(--f2-line);border-radius:12px;box-shadow:var(--f2-shadow);min-width:0}
.tall-root .tall-f2-card.flat{box-shadow:none}
.tall-root .tall-f2-card-h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--f2-line-2);flex-wrap:wrap}
.tall-root .tall-f2-card-h h3{font-family:var(--f2-display);font-size:16px;font-weight:600;margin:0 auto 0 0}
.tall-root .tall-f2-card-b{padding:14px}
.tall-root .tall-f2-stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.tall-root .tall-f2-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.tall-root .tall-f2-grid{display:grid;gap:16px}
.tall-root .tall-f2-g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tall-root .tall-f2-g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tall-root .tall-f2-g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tall-root .tall-f2-gmain{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.tall-root .tall-f2-gside{grid-template-columns:minmax(0,300px) minmax(0,1fr)}
.tall-root .tall-f2-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tall-root .tall-f2-row.end{justify-content:flex-end}
.tall-root .tall-f2-row.between{justify-content:space-between}
.tall-root .tall-f2-sep{border-top:1px solid var(--f2-line-2);padding-top:10px}

/* ── KPI ── */
.tall-root .tall-f2-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tall-root .tall-f2-kpi{background:var(--f2-surface);border:1px solid var(--f2-line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;text-align:left;min-width:0}
.tall-root .tall-f2-kpi .l{font-size:12px;color:var(--f2-muted);font-weight:600;display:flex;gap:6px;align-items:center}
.tall-root .tall-f2-kpi .v{font-family:var(--f2-display);font-size:26px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.tall-root .tall-f2-kpi .s{font-size:11.5px;color:var(--f2-muted)}

/* ── pastillas ── */
.tall-root .tall-f2-pill{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.tall-root .tall-f2-pill.ok{background:var(--f2-ok-soft);color:var(--f2-ok)}
.tall-root .tall-f2-pill.warn{background:var(--f2-warn-soft);color:var(--f2-warn)}
.tall-root .tall-f2-pill.bad{background:var(--f2-bad-soft);color:var(--f2-bad)}
.tall-root .tall-f2-pill.cob{background:var(--f2-cob-pale);color:var(--f2-cob-light)}
.tall-root .tall-f2-pill.tq{background:var(--f2-torque-soft);color:var(--f2-torque)}
.tall-root .tall-f2-pill.vio{background:var(--f2-vio-soft);color:var(--f2-vio)}
.tall-root .tall-f2-pill.gray{background:var(--f2-surface-2);color:var(--f2-muted);border:1px solid var(--f2-line)}

/* ── tablas ── */
.tall-root .tall-f2-scroll{overflow-x:auto}
.tall-root table.tall-f2-t{width:100%;border-collapse:collapse;font-size:13px}
.tall-root .tall-f2-t th{text-align:left;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--f2-muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--f2-line);white-space:nowrap}
.tall-root .tall-f2-t td{padding:9px 10px;border-bottom:1px solid var(--f2-line-2);vertical-align:middle}
.tall-root .tall-f2-t tr.click{cursor:pointer}
.tall-root .tall-f2-t tr.click:hover td{background:var(--f2-cob-subtle)}
.tall-root .tall-f2-t tr.off{opacity:.6}
.tall-root .tall-f2-t tfoot td{font-weight:700;border-bottom:0}
.tall-root .tall-f2-t .r,.tall-root .tall-f2-card .r{text-align:right}
.tall-root .tall-f2-t .c{text-align:center}

/* ── formularios ── */
.tall-root .tall-f2-in{height:31px;border:1px solid var(--f2-line);background:var(--f2-surface);color:var(--f2-fg);border-radius:5px;padding:0 10px;min-width:0;width:100%;font:inherit}
.tall-root textarea.tall-f2-in{height:auto;padding:6px 10px;resize:vertical}
.tall-root .tall-f2-in:focus{border-color:var(--f2-cob-light);outline:none;box-shadow:0 0 0 3px var(--f2-cob-pale)}
.tall-root .tall-f2-in.sm{width:auto;max-width:110px}
.tall-root .tall-f2-lbl{font-size:11.5px;font-weight:700;color:var(--f2-muted);display:block;margin-bottom:4px}
.tall-root .tall-f2-field{display:flex;flex-direction:column;min-width:0}
.tall-root .tall-f2-chkline{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}
.tall-root .tall-f2-err{background:var(--f2-bad-soft);color:var(--f2-bad);border-radius:8px;padding:8px 10px;font-size:12.5px;display:flex;gap:8px;align-items:flex-start}

/* ── pestañas ── */
.tall-root .tall-f2-tabs{display:flex;gap:2px;border-bottom:1px solid var(--f2-line);padding:0 8px;overflow-x:auto}
.tall-root .tall-f2-tabs button{border:0;background:transparent;padding:10px 12px;font-weight:600;color:var(--f2-muted);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;display:inline-flex;gap:6px;align-items:center;font:inherit;font-weight:600}
.tall-root .tall-f2-tabs button.on{color:var(--f2-cob-light);border-bottom-color:var(--f2-cob-light)}
.tall-root .tall-f2-tabs .n{font-size:10.5px;background:var(--f2-surface-2);border:1px solid var(--f2-line);border-radius:999px;padding:0 6px;color:var(--f2-fg-2)}
.tall-root .tall-f2-tabs .n.bad{background:var(--f2-bad);border-color:var(--f2-bad);color:#fff}

/* ── notas y paneles ── */
.tall-root .tall-f2-note{font-size:12.5px;color:var(--f2-fg-2);background:var(--f2-cob-subtle);border:1px solid var(--f2-cob-pale);border-radius:9px;padding:10px 12px;display:flex;gap:8px;align-items:flex-start}
.tall-root .tall-f2-note.tq{background:var(--f2-torque-soft);border-color:transparent}
.tall-root .tall-f2-note.warn{background:var(--f2-warn-soft);border-color:transparent}
.tall-root .tall-f2-note.col{flex-direction:column}
.tall-root .tall-f2-note > i{margin-top:2px}
.tall-root .tall-f2-ai{border:1px solid var(--f2-cob-pale);background:linear-gradient(180deg,var(--f2-cob-subtle),var(--f2-surface));border-radius:12px}
.tall-root .tall-f2-empty{padding:30px;text-align:center;color:var(--f2-muted)}
.tall-root .tall-f2-loading{padding:30px;text-align:center;color:var(--f2-muted);display:flex;gap:8px;justify-content:center;align-items:center}
.tall-root .tall-f2-quote{font-size:13px;color:var(--f2-fg-2);background:var(--f2-surface);border:1px solid var(--f2-line);border-radius:8px;padding:10px}

/* ── stepper de 8 pasos ── */
.tall-root .tall-f2-steps{display:flex;gap:4px;overflow-x:auto;padding:12px 14px}
.tall-root .tall-f2-stp{flex:1;min-width:88px;display:flex;flex-direction:column;gap:5px;font-size:11.5px;font-weight:600;color:var(--f2-muted)}
.tall-root .tall-f2-stp .bar{height:5px;border-radius:3px;background:var(--f2-line)}
.tall-root .tall-f2-stp.done{color:var(--f2-fg-2)}
.tall-root .tall-f2-stp.done .bar{background:var(--f2-ok)}
.tall-root .tall-f2-stp.cur{color:var(--f2-torque)}
.tall-root .tall-f2-stp.cur .bar{background:var(--f2-torque)}
.tall-root .tall-f2-stp.anu .bar{background:var(--f2-bad)}

/* ── checklist de inspección ── */
.tall-root .tall-f2-chk{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.tall-root .tall-f2-chk .it{border:1px solid var(--f2-line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:7px;background:var(--f2-surface)}
.tall-root .tall-f2-chk .it.obs{border-color:var(--f2-warn)}
.tall-root .tall-f2-chk .it.falla{border-color:var(--f2-bad)}
.tall-root .tall-f2-chk .it .h{display:flex;align-items:center;gap:8px;font-weight:600}
.tall-root .tall-f2-tri{display:inline-flex;gap:4px;margin-left:auto}
.tall-root .tall-f2-tri button{height:26px;padding:0 8px;border-radius:6px;border:1px solid var(--f2-line);background:var(--f2-surface-2);color:var(--f2-muted);font-size:11.5px;font-weight:700;cursor:pointer}
.tall-root .tall-f2-tri button.ok{background:#0e9f6e;border-color:#0e9f6e;color:#fff}
.tall-root .tall-f2-tri button.obs{background:#b7770a;border-color:#b7770a;color:#fff}
.tall-root .tall-f2-tri button.falla{background:#dc2626;border-color:#dc2626;color:#fff}
.tall-root .tall-f2-tri button.na{background:#64748b;border-color:#64748b;color:#fff}

/* ── pares antes / después ── */
.tall-root .tall-f2-pairs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.tall-root .tall-f2-pair{border:1px solid var(--f2-line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}
.tall-root .tall-f2-pair.off{opacity:.6}
.tall-root .tall-f2-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.tall-root .tall-f2-miss{border:2px dashed var(--f2-line);border-radius:8px;min-height:90px;display:grid;place-items:center;text-align:center;color:var(--f2-muted);font-size:12px;padding:8px}

/* ── línea de tiempo (bitácora y pasaporte) ── */
.tall-root .tall-f2-tl{display:flex;flex-direction:column;position:relative}
.tall-root .tall-f2-tl .e{display:grid;grid-template-columns:96px 22px minmax(0,1fr);gap:8px;padding-bottom:14px}
.tall-root .tall-f2-tl .d{font-size:12px;color:var(--f2-muted);text-align:right;font-family:var(--f2-mono);padding-top:1px}
.tall-root .tall-f2-tl .m{position:relative;display:flex;justify-content:center}
.tall-root .tall-f2-tl .m::before{content:"";position:absolute;top:16px;bottom:-16px;width:2px;background:var(--f2-line)}
.tall-root .tall-f2-tl .e:last-child .m::before{display:none}
.tall-root .tall-f2-tl .m i{position:relative;z-index:1;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#fff;background:var(--c,var(--f2-cob))}
.tall-root .tall-f2-tl .b b{display:block}
.tall-root .tall-f2-tl .b .s{font-size:12.5px;color:var(--f2-fg-2)}

/* ── barras ── */
.tall-root .tall-f2-prog{height:8px;border-radius:5px;background:var(--f2-line-2);overflow:hidden}
.tall-root .tall-f2-prog > span{display:block;height:100%;border-radius:5px;background:var(--c,var(--f2-cob-light))}
.tall-root .tall-f2-bars{display:flex;flex-direction:column;gap:8px}
.tall-root .tall-f2-bars .b{display:grid;grid-template-columns:minmax(90px,150px) minmax(0,1fr) 74px;gap:8px;align-items:center;font-size:12.5px}
.tall-root .tall-f2-bars .b > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── opciones seleccionables y etiquetas ── */
.tall-root .tall-f2-opt{border:1.5px solid var(--f2-line);border-radius:10px;padding:10px;display:flex;gap:10px;cursor:pointer;background:var(--f2-surface);color:var(--f2-fg);text-align:left;font:inherit;width:100%;align-items:center}
.tall-root .tall-f2-opt.on{border-color:var(--f2-cob-light);background:var(--f2-cob-subtle)}
.tall-root .tall-f2-opt.col{flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px}
.tall-root .tall-f2-tagx{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--f2-line);background:var(--f2-surface-2);border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:600}
.tall-root .tall-f2-tagx .o{font-size:9.5px;font-weight:800;border-radius:4px;padding:0 4px}
.tall-root .tall-f2-tagx .o.B{background:var(--f2-cob-pale);color:var(--f2-cob-light)}
.tall-root .tall-f2-tagx .o.P{background:var(--f2-torque-soft);color:var(--f2-torque)}
.tall-root .tall-f2-sugg{border:1px solid var(--f2-line);border-radius:8px;background:var(--f2-surface);margin-top:4px;overflow:hidden}
.tall-root .tall-f2-sugg button{display:flex;width:100%;gap:8px;align-items:center;border:0;background:transparent;padding:7px 10px;text-align:left;cursor:pointer;font:inherit;font-size:13px;color:var(--f2-fg)}
.tall-root .tall-f2-sugg button:hover{background:var(--f2-cob-subtle)}

/* ── cronómetro ── */
.tall-root .tall-f2-timer{font-family:var(--f2-mono);font-variant-numeric:tabular-nums}
.tall-root .tall-f2-timer.run{color:var(--f2-torque);font-weight:600}
.tall-root .tall-f2-timer.over{color:var(--f2-bad);font-weight:600}

/* ── ficha del vehículo ── */
.tall-root .tall-f2-datos{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px 14px;font-size:12.5px}
.tall-root .tall-f2-datos .lbl{font-size:11.5px;font-weight:700;color:var(--f2-muted);display:block}
.tall-root .tall-f2-qr{background:#fff;border-radius:6px;padding:4px;display:block}
.tall-root .tall-f2-chart{width:100%;height:auto;display:block}

@media (max-width:1200px){
  .tall-root .tall-f2-gmain{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .tall-root .tall-f2-g2,.tall-root .tall-f2-g3,.tall-root .tall-f2-g4,.tall-root .tall-f2-gside{grid-template-columns:minmax(0,1fr)}
  .tall-root .tall-f2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tall-root .tall-f2-hide-m{display:none!important}
  .tall-root .tall-mfoot .tall-f2-bt{flex:1;justify-content:center}
}
@media (max-width:420px){
  .tall-root .tall-f2-tl .e{grid-template-columns:70px 22px minmax(0,1fr)}
  .tall-root .tall-f2-pairs{grid-template-columns:minmax(0,1fr)}
}
