/* =====================================================================
   Sistema de diseño ERP grupohnosfas — tokens
   Único sitio donde se definen colores, tipografía, espaciado y radios.
   ===================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Superficies */
  --c-canvas: #F3F4F1;
  --c-surface: #FFFFFF;
  --c-surface-2: #F8F9F7;
  --c-line: #E0E4DD;
  --c-line-strong: #C9CFC5;

  /* Texto */
  --c-ink: #1E2621;
  --c-ink-2: #4A554D;
  --c-ink-3: #6E7A72;

  /* Marca (verde TPC) */
  --c-brand: #2E7A3C;
  --c-brand-hover: #256531;
  --c-brand-tint: #E7F1E8;
  --c-brand-line: #B9D6BE;

  /* Estados del ciclo del pedido */
  --c-pending: #8A5A00;   --c-pending-bg: #FDF3DC;  --c-pending-dot: #D9A21B;
  --c-assigned: #1F5FA8;  --c-assigned-bg: #E7F0FB; --c-assigned-dot: #3B82D6;
  --c-done: #2E7A3C;      --c-done-bg: #E7F1E8;     --c-done-dot: #3F9B4F;
  --c-billed: #4B5563;    --c-billed-bg: #EEF0F2;   --c-billed-dot: #6B7280;

  /* Avisos */
  --c-danger: #B42318;  --c-danger-bg: #FDECEA;
  --c-warning: #8A5A00; --c-warning-bg: #FDF3DC;
  --c-info: #1F5FA8;    --c-info-bg: #E7F0FB;
  --c-success: #2E7A3C; --c-success-bg: #E7F1E8;

  /* Tipografía */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --lh-tight: 1.25;
  --lh-base: 1.5;

  /* Espaciado (base 4 px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Forma */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-pop: 0 8px 24px rgba(30, 38, 33, .12), 0 1px 2px rgba(30, 38, 33, .08);
  --focus-ring: 0 0 0 3px rgba(46, 122, 60, .28);

  /* Estructura */
  --sidebar-w: 232px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 52px;
  --control-h: 34px;
  --row-h: 40px;
}
