/* design_tokens.css: Godrej G3MIS design system. The only stylesheet holding hex values
   (setup/branding.py holds the same values for My Theme). login.css and desk_overrides.css
   compose from these. Values are the approved demo's palette.
   Font: GI Sans leads the stack for when Godrej supplies a licensed file; until then the
   system fallback renders. No font file or web-font import is shipped.
   Legacy names (--g3-purple*, --g3-graphite*, --g3-cool-grey) are kept because the AI-check
   panels reference them; they now resolve to the neutral palette. */
:root {
  /* Palette */
  --g3-ink:           #141414;
  --g3-ink-2:         #555555;
  --g3-ink-3:         #8A8A8A;
  --g3-accent:        #4A4A4A;
  --g3-accent-hover:  #3A3A3A;
  --g3-line:          #E3E3E3;
  --g3-surface:       #F5F5F5;
  --g3-white:         #FFFFFF;
  --g3-sidebar-active: #E6E6E6;
  --g3-accent-red:    #ED2D42;

  /* Form readability tokens (PM override 2026-10-19: copy BFS/HMIF form spacing and
     readability, keep Godrej brand colours). Replaces the 12px / #8A8A8A label spec. */
  --g3-field-bg:      #F3F3F3;
  --g3-label-ink:     #525252;
  --g3-help-ink:      #999999;
  --g3-heading-ink:   #383838;
  --g3-focus-ring:    #6B6B6B;  /* 4.8:1 against --g3-field-bg, above the 3:1 minimum */
  --g3-text-size:     14px;
  --g3-help-size:     13px;
  --g3-label-weight:  420;      /* variable fonts honour it; others snap to 400 */
  --g3-label-line:    21px;
  --g3-label-gap:     6px;
  --g3-field-height:  28px;
  --g3-field-gap:     16px;

  /* Status pills */
  --g3-pill-green-bg: #E3F6D9;
  --g3-pill-green-fg: #1C6B00;
  --g3-pill-blue-bg:  #E4EEFB;
  --g3-pill-blue-fg:  #1F5FAE;
  --g3-pill-grey-bg:  #F0F0F0;
  --g3-pill-grey-fg:  #555555;

  /* Advisory meters (tranche eligibility, admin expense cap): green / amber / red / not-measured. */
  --g3-rag-green-bg:    #E6F2E8;
  --g3-rag-green-fg:    #1E6B2E;
  --g3-rag-green-fill:  #2E9E45;
  --g3-rag-amber-bg:    #FBF0DC;
  --g3-rag-amber-fg:    #8A5200;
  --g3-rag-amber-fill:  #D98E04;
  --g3-rag-red-bg:      #FAE3E1;
  --g3-rag-red-fg:      #B3261E;
  --g3-rag-red-fill:    #D13A30;
  --g3-rag-grey-bg:     #EEEFF1;
  --g3-rag-grey-fg:     #55595F;
  --g3-rag-grey-fill:   #8A8F98;
  --g3-meter-track:     #ECEDEF;
  --g3-meter-tick:      #1A1A1A;

  /* Dashboard green ramp (dashboards step, not desk chrome) */
  --g3-green-100: #D4F2C4;
  --g3-green-300: #7ED957;
  --g3-green-500: #28B700;
  --g3-green-700: #1C8000;
  --g3-green-900: #0F4D00;

  /* Dashboard page (g3mis-dashboard): hairlines, neutral chart greys and the hero banner shade */
  --g3d-hairline:     #EFEFEF;
  --g3d-chart-grey:   #9A9A9A;
  --g3d-chart-grey-2: #D9D9D9;
  --g3d-banner-shade: rgba(20, 20, 20, 0.55);
  --g3d-banner-clear: rgba(20, 20, 20, 0.05);
  /* Executive Overview map (batch B1): states with no data, and the map panel's soft fill */
  --g3d-map-empty:    #E6E6E6;
  --g3d-map-bg-1:     #FAFAFA;
  --g3d-map-bg-2:     #F2F2F2;
  --g3d-row-hover:    #FAFAFA;
  --g3d-tip-shadow:   rgba(0, 0, 0, 0.12);

  /* Legacy names, re-pointed */
  --g3-purple:        var(--g3-accent);
  --g3-purple-hover:  var(--g3-accent-hover);
  --g3-purple-deep:   var(--g3-ink);
  --g3-purple-ink:    var(--g3-ink);
  --g3-graphite:      var(--g3-ink);
  --g3-graphite-soft: var(--g3-ink-2);
  --g3-cool-grey:     var(--g3-surface);
  --g3-card-line:     var(--g3-line);
  --g3-fieldbg:       var(--g3-white);
  --g3-text-primary:  var(--g3-ink);
  --g3-surface-2:     var(--g3-surface);

  /* Partner / SSO (Office 365 four-square glyph) */
  --ms-r:#F25022; --ms-g:#7FBA00; --ms-b:#00A4EF; --ms-y:#FFB900;

  /* Shape & type */
  --g3-radius: 10px;
  --g3-radius-md: 8px;
  --g3-radius-sm: 6px;
  --g3-font: "GI Sans Text", "GI Sans Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Re-point Frappe's own desk font variable so the stack applies desk-wide with no per-selector rules */
  --font-stack: var(--g3-font);
}
