/* Design tokens. Colors come from the previous Shamsuna application. */
:root {
  color-scheme: light;
  --company-color: #339898;
  /* icons keep this colour in every theme (light, dark and the users' own accent colours) */
  --icon-color: #339898;
  --company-color-soft: color-mix(in srgb, var(--company-color) 50%, transparent);
  --company-color-faint: color-mix(in srgb, var(--company-color) 10%, var(--bg));
  --text-on-company: #ffffff;

  --pmm-color: #00a57c;
  --alhazaa-color: #cdad4b;
  --scatec-color: #f8971d;

  --bg: #ffffff;
  --header-bg: #fefefe;
  --surface: #fefefe;
  --surface-alt: #f4f4f4;
  --surface-head: #e5e8e5;
  --border: #e2e2e2;
  --text: #232323;
  --text-muted: #818181;
  --input-bg: #e8f0fe;
  --input-border: #bbbbbb;

  --tint-info: #eff6fc;
  --tint-danger: #fdf3f4;
  --tint-warn: #fff8ee;
  --tint-ok: #f1faf1;
  --warn-text: #a45a00;
  --danger-line: #f1bbbc;
  --ok-line: #b7dfb7;
  --warn-line: #f2cf9a;

  --ok: #107c10;
  --warn: #f8971d;
  --danger: #d13438;
  --info: #0078d4;

  --font: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;

  --header-h: 53px;
  --sidebar-w: 250px;
  --sidebar-w-collapsed: 48px;
  --radius: 2px;
  /* chart series colours */
  /* chart series: the first is the brand colour #339898 in every theme (the teal that was 6th is now blue) */
  --c1: #339898; --c2: #e07b1a; --c3: #3a9d5d; --c4: #8a5cc2; --c5: #c8453f; --c6: #2f7fb8; --c7: #b8962e; --c8: #6b7b8c;
  --shadow: 0 0 1px rgba(48, 48, 48, 0.2);
  --shadow-hover: 0 0 10px rgba(48, 48, 48, 0.2);
}

/* Dark theme: switched by the header button (data-theme on <html>, remembered in local storage). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1d1e;
  --header-bg: #202426;
  --surface: #232729;
  --surface-alt: #2a2f31;
  --surface-head: #30363a;
  --border: #394044;
  --text: #e4e7e7;
  --text-muted: #9aa4a8;
  --input-bg: #2a3440;
  --input-border: #566066;

  --tint-info: #1d2b38;
  --tint-danger: #3a2224;
  --tint-warn: #3a2f1c;
  --tint-ok: #1f3220;
  --warn-text: #f0a84a;
  --danger-line: #7a3a3d;
  --ok-line: #3d6b3e;
  --warn-line: #7a5a2a;

  /* chart series keep their default (light-theme) colours in dark mode */
  --c1: #339898; --c2: #e07b1a; --c3: #3a9d5d; --c4: #8a5cc2; --c5: #c8453f; --c6: #2f7fb8; --c7: #b8962e; --c8: #6b7b8c;
  --ok: #54b054;
  --danger: #ef6b6f;
  --shadow: 0 0 1px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 0 10px rgba(0, 0, 0, 0.6);
}
