/* Tokens de docs/DISENO_UX_UI.md §2. Paleta y escala tipográfica revisadas el 2026-12-02: azul de logística
   con un solo acento ámbar, una familia tipográfica, cuatro tamaños y tres grosores. Los nombres de los
   tokens no cambian: solo sus valores (los contrastes están calculados en el documento de diseño). */
:root{
  --color-brand-navy:#1e3a8a; --color-brand-navy-700:#172554; --color-brand-navy-050:#e9eef6;
  --color-brand-blue:#2563eb; --color-brand-blue-text:#1e40af; --color-brand-blue-hover:#1e3a8a; --color-brand-blue-050:#eff6ff;
  --color-brand-amber:#d97706;
  --color-text:#0f172a; --color-text-strong:#334155; --color-text-muted:#475569; --color-text-subtle:#5b6677;
  --color-text-on-dark:#fff; --color-text-on-dark-muted:#dbeafe;
  --color-border:#dbeafe; --color-border-subtle:#e9eef6; --color-border-strong:#94a3b8; --color-field-border:#64748b;
  --color-bg-page:#f8fafc; --color-bg-surface:#fff; --color-bg-subtle:#f1f5f9; --color-bg-paper:#fbfaf6;
  --status-current-fg:#166534; --status-current-bg:#dcfce7; --status-current-dot:#16a34a;
  --status-reconfirm-fg:#92400e; --status-reconfirm-bg:#fef3c7; --status-reconfirm-dot:#d97706;
  --status-expired-fg:#475569; --status-expired-bg:#f1f5f9; --status-expired-dot:#94a3b8;
  --status-error-fg:#b91c1c; --status-error-bg:#fee2e2; --status-error-dot:#dc2626;
  --status-info-fg:#1e40af; --status-info-bg:#dbeafe; --status-info-dot:#3b82f6;
  --status-interpreted-fg:#334155; --status-interpreted-bg:#e9eef6; --status-interpreted-dot:#64748b;
  --field-container_type-fg:#4338ca; --field-container_type-bg:#e0e7ff;
  --field-condition-fg:#0f766e; --field-condition-bg:#ccfbf1;
  --field-modifier-fg:#7e22ce; --field-modifier-bg:#f3e8ff;
  --field-color-fg:#be185d; --field-color-bg:#fce7f3;
  --field-location-fg:#c2410c; --field-location-bg:#ffedd5;
  --field-quantity-fg:#15803d; --field-quantity-bg:#dcfce7;
  --field-price-fg:#a16207; --field-price-bg:#fef9c3;
  --field-valid_until-fg:#0e7490; --field-valid_until-bg:#cffafe;
  --field-supplier-fg:#334155; --field-supplier-bg:#e2e8f0;
  /* Una sola familia. Fira Sans va primero (la recomienda ui-ux-pro-max para paneles de datos); mientras no
     esté instalada o empaquetada en static/vendor/fonts, cae a Inter y a la del sistema. */
  --font-sans:"Fira Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* Escala tipográfica: cuatro tamaños y tres grosores. */
  --text-caption:12px; --text-body:14px; --text-title:20px; --text-figure:28px;
  --weight-regular:400; --weight-medium:500; --weight-strong:600;
  /* Alto de los controles (el 44 de táctil cuando el puntero es grueso). */
  --control-h:36px; --control-h-sm:32px;
  --space-0-5:2px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-12:48px;
  --radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(23,37,84,.06);--shadow-md:0 4px 12px rgba(23,37,84,.10);--shadow-lg:0 12px 32px rgba(23,37,84,.18);
  --focus-ring:0 0 0 2px #fff,0 0 0 5px #2563eb;
  --motion-fast:120ms ease-out;--motion-base:200ms cubic-bezier(.2,.8,.2,1);--motion-slow:320ms;
  --z-sticky:10;--z-header:20;--z-selection-bar:30;--z-drawer:40;--z-modal:50;--z-popover:60;--z-toast:70;
  --filters-w:264px; --detail-w:380px; --detail-top:120px;
}
@media (pointer:coarse){:root{--control-h:44px;--control-h-sm:44px}}
@media (prefers-reduced-motion:reduce){:root{--motion-fast:0ms;--motion-base:0ms;--motion-slow:0ms}}
