/* Shared design tokens (manager portal, branch tablet, operator page). Thmanyah Sans, RTL first, Latin digits, light + dark. */
@font-face { font-family: 'Thmanyah'; src: url('/fonts/thmanyahsans-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('/fonts/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('/fonts/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('/fonts/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('/fonts/thmanyahsans-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --font: 'Thmanyah', -apple-system, 'SF Arabic', 'Segoe UI', Tahoma, sans-serif;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eaf0ee;
  --ink: #17211f;
  --ink-2: #44524f;
  --muted: #5a6963;
  --line: #dbe3e0;
  --line-strong: #c3cfca;
  --accent: #2f6f6a;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe8;
  --ok: #2a7045;   --ok-soft: #e3f1e8;
  --warn: #8f5508; --warn-soft: #fbefd9;
  --bad: #b3261e;  --bad-soft: #f9e3e1;
  --info: #2c5d8a; --info-soft: #e2edf7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 33, 31, .06), 0 6px 24px rgba(23, 33, 31, .06);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);   /* a two-colour ring: seen on any background (3:1 against the surface in both themes) */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101615; --surface: #18201f; --surface-2: #202a28; --ink: #e9f0ee; --ink-2: #b9c6c2; --muted: #86958f;
    --line: #2b3735; --line-strong: #3a4946; --accent: #5fb0a8; --accent-ink: #0c1413; --accent-soft: #1f3330;
    --ok: #6cc28f; --ok-soft: #1d3326; --warn: #e5a54a; --warn-soft: #3a2c15; --bad: #ef7d74; --bad-soft: #3d1f1c; --info: #79acd9; --info-soft: #1c2c3b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101615; --surface: #18201f; --surface-2: #202a28; --ink: #e9f0ee; --ink-2: #b9c6c2; --muted: #86958f;
  --line: #2b3735; --line-strong: #3a4946; --accent: #5fb0a8; --accent-ink: #0c1413; --accent-soft: #1f3330;
  --ok: #6cc28f; --ok-soft: #1d3326; --warn: #e5a54a; --warn-soft: #3a2c15; --bad: #ef7d74; --bad-soft: #3d1f1c; --info: #79acd9; --info-soft: #1c2c3b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums tabular-nums; }

/* A native <select> in Safari draws no box-shadow while it has the keyboard focus: its focus ring is an outline, which pages must not remove. */
select:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
