/* Izma Office design tokens - dark. Exactly the same variable names as tokens.light.css; the
   chrome tier and the type stacks are theme-invariant and live only in that file. */

[data-theme="dark"] {
  color-scheme: dark;

  --color-canvas-default: #0c1319;
  --color-canvas-subtle: #131c24;
  --color-canvas-inset: #070c11;
  --color-canvas-overlay: #131c24;

  --color-border-default: #2a3742;
  --color-border-muted: #1e2a33;
  --color-border-strong: #3d4c58;

  --color-fg-default: #e4ecf2;
  --color-fg-muted: #8496a3;
  --color-fg-subtle: #71828f;
  --color-fg-on-emphasis: #ffffff;

  --color-accent-fg: #3fd0c9;
  --color-accent-emphasis: #12808d;
  --color-accent-subtle: #07333a;
  --color-accent-muted: rgba(46, 196, 182, 0.4);

  --color-success-fg: #43c26f;
  --color-success-emphasis: #1f7a45;
  --color-success-subtle: #06301b;

  --color-attention-fg: #dba52c;
  --color-attention-emphasis: #8f6408;
  --color-attention-subtle: #3a2907;

  --color-danger-fg: #f2635c;
  --color-danger-emphasis: #b8302f;
  --color-danger-subtle: #3d0d0d;

  --color-neutral-emphasis: #71828f;
  --color-neutral-subtle: #1e2a33;

  --color-table-header-bg: #17222b;
  --color-table-header-fg: #9db0bd;
  --color-table-zebra: #0f171e;
  --color-table-foot-bg: #17222b;
  --color-table-grid: #232f39;
  --color-table-row-selected: #07333a;

  --shadow-resting-xs: 0 1px 0 rgba(3, 7, 11, 0.2);
  --shadow-resting-sm: 0 3px 6px rgba(3, 7, 11, 0.45);
  --shadow-overlay: 0 8px 24px rgba(3, 7, 11, 0.65);

  --color-status-draft: var(--color-neutral-emphasis);
  --color-status-draft-subtle: var(--color-neutral-subtle);
  --color-status-posted: var(--color-accent-emphasis);
  --color-status-posted-subtle: var(--color-accent-subtle);
  --color-status-settled: var(--color-success-emphasis);
  --color-status-settled-subtle: var(--color-success-subtle);
  --color-status-pending: var(--color-attention-emphasis);
  --color-status-pending-subtle: var(--color-attention-subtle);
  --color-status-overdue: var(--color-danger-emphasis);
  --color-status-overdue-subtle: var(--color-danger-subtle);
  --color-status-void: var(--color-fg-subtle);
  --color-status-void-subtle: var(--color-canvas-inset);

  --color-money-negative: var(--color-danger-fg);
  --color-variance-favourable: var(--color-success-fg);
  --color-variance-adverse: var(--color-danger-fg);

  /* The heat ramp is rebuilt rather than darkened: on a dark canvas these have to read as tinted
     panels behind light text, not as pale washes. */
  --color-aging-0: transparent;
  --color-aging-1: #2b2409;
  --color-aging-2: #33240c;
  --color-aging-3: #3a1e12;
  --color-aging-4: #3f1616;
}
