/*
 * CNH tenant theme — FieldOps style alignment.
 *
 * Contract: docs/customers/CNH/STYLE.md (extracted from the FieldOps staging
 * app, CNH DLS theme v2.3.2-alpha.13). This file defines VARIABLES ONLY —
 * it is loaded via VITE_APP_CSS_URL *before* the compiled bundle CSS, so it
 * must never compete with utility classes on selectors.
 *
 * Loaded only for cnh1-* environments (VITE_APP_CSS_URL=/cnh.css) together
 * with VITE_FORCE_LIGHT_MODE=true. FieldOps is light-only: the dark chrome
 * below is a light-mode design, not a dark mode.
 */

/* Work Sans (OFL) — self-hosted variable font, weights 400–600. */
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-var-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* FieldOps ships light-only; native controls/scrollbars follow. */
  color-scheme: light;

  /* Activates the html.sfh-skin component rules in app.postcss
   * (table striping, header bands). */
  --sfh-skin: cnh;

  /* Typography */
  --sfh-font-primary: "Work Sans";
  --sfh-font-mono: "Work Sans";

  /* Brand accent slot — the Case IH swap point (STYLE.md §3.4).
   * New Holland navy today; swap these three for Case IH red. */
  --sfh-accent-from: #003e85;
  --sfh-accent-to: #00205b;
  --sfh-accent-contrast: #fcfcfd;

  /* New Holland navy scale (rgb triplets for Tailwind <alpha-value>).
   * 600 = accent-from #003E85, 800 = accent-to #00205B. */
  --sfh-primary-50: 232 240 250;
  --sfh-primary-100: 208 225 245;
  --sfh-primary-200: 163 196 234;
  --sfh-primary-300: 111 161 219;
  --sfh-primary-400: 61 125 199;
  --sfh-primary-500: 18 89 166;
  --sfh-primary-600: 0 62 133;
  --sfh-primary-700: 0 48 110;
  --sfh-primary-800: 0 32 91;
  --sfh-primary-900: 0 23 64;
  --sfh-brand-50: 232 240 250;
  --sfh-brand-100: 208 225 245;
  --sfh-brand-200: 163 196 234;
  --sfh-brand-300: 111 161 219;
  --sfh-brand-400: 61 125 199;
  --sfh-brand-500: 18 89 166;
  --sfh-brand-600: 0 62 133;
  --sfh-brand-700: 0 48 110;
  --sfh-brand-800: 0 32 91;
  --sfh-brand-900: 0 23 64;

  /* DLS state colors (STYLE.md §3.2) */
  --sfh-status-alarm: 197 0 0;
  --sfh-status-warning: 224 149 0;
  --sfh-status-success: 11 146 84;
  --sfh-status-info: 0 132 227;

  /* App chrome (STYLE.md §5) — topbar + sidebar near-black */
  --sfh-chrome-bg: #0e101a;
  /* White wordmark for the dark topbar; light surfaces (sign-in) keep the
   * standard VITE_APP_LOGO_URL logo. */
  --sfh-chrome-logo: "/cnh-logo-dark.svg";
  --sfh-chrome-border: #0e101a;
  --sfh-chrome-divider: #262b40;
  --sfh-chrome-text: #b8b9bf;
  --sfh-chrome-text-active: #fcfcfd;
  --sfh-chrome-hover-bg: #262b40;
  --sfh-chrome-icon: #b8b9bf;

  /* Selected navigation item */
  --sfh-nav-selected-bg: linear-gradient(180deg, var(--sfh-accent-from), var(--sfh-accent-to));
  --sfh-nav-selected-text: var(--sfh-accent-contrast);
  --sfh-nav-selected-indicator: #fcfcfd;

  /* Surfaces */
  --sfh-body-bg: #edeef2;
  --sfh-surface: #fcfcfd;
  --sfh-border: #d3d4d9;
  --sfh-card-shadow: 0 1px 2px 1px rgba(14, 17, 26, 0.1);

  /* Tables — FieldOps zebra banding (DLS surface secondary/tertiary).
   * First data row is the darker band, matching the FieldOps reference. */
  --sfh-table-header-bg: #e9eaee;
  --sfh-table-stripe-odd: #d3d4d9;
  --sfh-table-stripe-even: #edeef2;
  --sfh-table-row-hover: #c9cbd4;
  /* Bands touch — rows separate by color, not borders (FieldOps look). */
  --sfh-table-row-border: transparent;

  /* Maps — FieldOps shows equipment on satellite imagery by default.
   * Read by skinDefaultBasemap() in lib/stores/mapStore.ts; users can still
   * switch basemaps per-session via the map layer control.
   * Valid values: dark | satellite | outdoors (anything else → auto). */
  --sfh-map-basemap: satellite;
}
