/* Oriel Square design tokens. Every page loads this file before any other
   stylesheet, so components refer to these names rather than to raw values.
   signin.html cannot load it before sign-in and mirrors the few it needs. */
:root {
  /* Surfaces */
  --os-bg: #f4f7f8; /* page background and quiet fills */
  --os-paper: #fff; /* cards, panels, dialogs */
  --os-paper-subtle: #f8fafb; /* inset areas within paper: table heads, invoice lines */
  --os-tint: #f0f5f5; /* teal-grey fills: hovers, tags, table heads */
  --os-soft: #eaf6f2; /* brand-green tint: notes, avatars, menu highlights */
  --os-mint: #e8f6ee; /* success pills, database mode picker and messages */
  --os-quiet: #eef1f2; /* neutral grey: muted pills, cancel buttons, disabled controls */

  /* Lines */
  --os-line: #dce5e8; /* default borders and dividers */
  --os-line-soft: #e7edef; /* table and list row dividers */
  --os-line-strong: #cfdce1; /* form fields, filters, dialog frames */
  --os-line-hover: #8aaab2; /* hovered fields, open pickers */
  --os-line-firm: #82989b; /* note editor and palette frames */

  /* Text */
  --os-ink: #1c343b; /* body text in the workspace */
  --os-ink-soft: #203b40; /* notes and supplier portal text */
  --os-muted: #5f7279; /* secondary text */
  --os-muted-teal: #617578; /* tabs, table captions, quiet controls */

  /* Brand */
  --os-deep: #103f46; /* deep teal: sidebar, database buttons, strong text */
  --os-green: #08756f; /* brand green: links, icons, primary buttons */
  --os-primary: var(--os-green); /* .os-primary buttons */
  --os-primary-hover: #075f5b;
  --os-accent: #168f99; /* selected tab underline */
  --os-focus: #12a2ac; /* keyboard focus ring */

  /* Sidebar (sits on --os-deep) */
  --os-sidebar-text: #e6f4f4;
  --os-sidebar-nav: #c8dfe1;
  --os-sidebar-muted: #bed5d7;
  --os-sidebar-faint: #a3c0c3;
  --os-sidebar-hover: #24545c;
  --os-sidebar-active: #29626a;
  --os-sidebar-line: #456a70;
  --os-sidebar-accent: #54d4c2;

  /* Status */
  --os-success: #22734e; /* approve buttons, success text */
  --os-warn: #8a570d; /* warning text */
  --os-warn-soft: #fff2d8; /* warning pills */
  --os-warn-banner: #fff4dd; /* page-wide warning banners */
  --os-warn-faint: #fff9ec; /* notices and today markers */
  --os-bad: #b33838; /* negative figures and app errors */
  --os-error-text: #a63232; /* form errors in People, suppliers and the portal */
  --os-danger: #b4233a; /* bills needing attention */
  --os-danger-soft: #fff0f2;
  --os-danger-text: #a52b35; /* rejected and danger pills */
  --os-destructive: #b3343e; /* reject and delete buttons */
  --os-info: #1858a5; /* invoices needing attention */
  --os-live: #26ed4c; /* supplier portal activity light */

  /* Issue traffic lights */
  --os-issue-green: #28764b;
  --os-issue-amber: #e7a526;
  --os-issue-amber-ink: #432e08;
  --os-issue-red: #bc3548;

  /* Overlays */
  --os-shade: #12343d80; /* behind the workspace dialog */
  --os-shade-light: #163e4666; /* behind People and supplier dialogs */

  /* Shadows */
  --os-shadow: 0 3px 15px #183d4906; /* cards, panels, tables */
  --os-shadow-dialog: 0 25px 90px #102f3c40;

  /* Radii */
  --os-radius-s: 7px; /* fields, nav items, menu rows */
  --os-radius-m: 8px; /* buttons, notices, small panels */
  --os-radius-l: 10px; /* tables, menus, toasts */
  --os-radius-xl: 12px; /* cards and large panels */
}

/* Breakpoints (custom properties cannot be used in media queries):
   wide       min-width: 1600px
   laptop     max-width: 1150px
   tablet     max-width: 850px, with min-width: 851px for desktop-only rules
   phone      max-width: 600px
   small      max-width: 480px
   Some pages still use their own widths (1050, 960, 900, 800, 760, 650, 640, 560). */
