/* BarQoPrint colour themes. Default = SimpleLogistics house style (simplelogistics.nl):
   red #be1e2d, Montserrat headings, Roboto text, white top bar, pill buttons.
   The theme is chosen in the top bar (or on the sign-in page) and set as <html data-theme="…"> by js/theme.js. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------ SimpleLogistics (default) */
:root, :root[data-theme="simplelogistics"] {
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --head: "Montserrat", "Roboto", system-ui, "Segoe UI", Arial, sans-serif;
  --btn-radius: 999px;

  --bg: #f7f4f4; --panel: #ffffff; --panel-2: #fbf6f6; --border: #ece3e4; --border-strong: #d6d6d9;
  --text: #2c2d31; --heading: #1a1a1c; --muted: #6b6b72; --faint: #a8a8ad;
  --accent: #be1e2d; --accent-hover: #9e1724; --accent-weak: #fbeaec; --accent-text: #ffffff;
  --accent-ring: #f0bcc1; --accent-ink: #8f1622;
  --ok: #157f3d; --ok-weak: #e3f4e9; --warn: #a15c00; --warn-weak: #fff3dc; --err: #c0292b; --err-weak: #fde8e8;
  --warn-border: #f2d49e; --warn-ink: #7a4500; --err-border: #f3c2c2; --err-ink: #8c1d1f;
  --draft: #6b4fbb; --draft-weak: #efeafc;
  --shadow: 0 1px 2px rgba(26,26,28,.05), 0 4px 14px rgba(26,26,28,.05);
  --shadow-lg: 0 12px 32px rgba(26,26,28,.18);

  --control-bg: #ffffff; --hover: #f7f0f1; --ghost-hover: rgba(190,30,45,.06); --row-hover: #fbf4f4;
  --badge-bg: #f1eded; --badge-text: #4a4a50; --fmt-bg: #fbeaec; --fmt-text: #8f1622;
  --code-bg: #1a1a1c; --code-text: #f4e9ea; --toast-bg: #1a1a1c; --canvas-bg: #ebe7e7;
  --login-bg: linear-gradient(120deg, rgba(190,30,45,.96), rgba(26,26,28,.94));

  --top-bg: #ffffff; --top-text: #1a1a1c; --top-strong: #1a1a1c; --top-muted: #3b3d42; --top-faint: #8a8a90;
  --top-hover: #fbf4f4; --top-active: #fbeaec; --top-active-text: #be1e2d;
  --top-shadow: 0 1px 0 #ece3e4, 0 2px 10px rgba(26,26,28,.04);
  --top-menu-bg: #ffffff; --top-menu-border: #ece3e4;
  --top-input-bg: #ffffff; --top-input-border: #d6d6d9; --top-input-text: #1a1a1c;
  --logo-bg: #be1e2d; --avatar-bg: #be1e2d;
  color-scheme: light;
}

/* ------------------------------------------------------------ Dark (charcoal, same red) */
:root[data-theme="dark"] {
  --bg: #121214; --panel: #1c1c1f; --panel-2: #222226; --border: #2f2f34; --border-strong: #44444a;
  --text: #e4e4e8; --heading: #f4f4f6; --muted: #a1a1a9; --faint: #74747c;
  --accent: #d22f3e; --accent-hover: #e0404e; --accent-weak: #3a1b20; --accent-text: #ffffff;
  --accent-ring: #7a2a33; --accent-ink: #f5b3ba;
  --ok: #4ade80; --ok-weak: #13301f; --warn: #f5b14c; --warn-weak: #33260f; --err: #f87171; --err-weak: #3a1a1c;
  --warn-border: #5a4517; --warn-ink: #fcd38d; --err-border: #5c2a2e; --err-ink: #fca5a5;
  --draft: #b6a1ff; --draft-weak: #29223f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);

  --control-bg: #232327; --hover: #2a2a2f; --ghost-hover: rgba(255,255,255,.06); --row-hover: #26262b;
  --badge-bg: #2c2c31; --badge-text: #cfcfd5; --fmt-bg: #3a1b20; --fmt-text: #f5b3ba;
  --code-bg: #0b0b0d; --code-text: #f4e9ea; --toast-bg: #2c2c31; --canvas-bg: #26262a;
  --login-bg: linear-gradient(120deg, #6e1420, #121214 75%);

  --top-bg: #0d0d0f; --top-text: #e4e4e8; --top-strong: #ffffff; --top-muted: #c4c4cb; --top-faint: #8a8a92;
  --top-hover: rgba(255,255,255,.07); --top-active: rgba(224,64,78,.18); --top-active-text: #ff8a94;
  --top-shadow: 0 1px 0 #26262a;
  --top-menu-bg: #1c1c1f; --top-menu-border: #2f2f34;
  --top-input-bg: #1c1c1f; --top-input-border: #3a3a40; --top-input-text: #e4e4e8;
  --logo-bg: #be1e2d; --avatar-bg: #9e1724;
  color-scheme: dark;
}

/* ------------------------------------------------------------ Classic blue (the look before 2026.4.038) */
:root[data-theme="classic"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: var(--font);
  --btn-radius: 6px;
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f9fafb; --border: #e3e5e9; --border-strong: #cfd3da;
  --text: #1d2330; --heading: #1d2330; --muted: #667085; --faint: #98a2b3;
  --accent: #2456d6; --accent-hover: #1c48b8; --accent-weak: #e8eefc; --accent-text: #ffffff;
  --accent-ring: #b8c8f5; --accent-ink: #1d3f97;
  --ok: #157f3d; --ok-weak: #e3f4e9; --warn: #a15c00; --warn-weak: #fff3dc; --err: #c0292b; --err-weak: #fde8e8;
  --warn-border: #f2d49e; --warn-ink: #7a4500; --err-border: #f3c2c2; --err-ink: #8c1d1f;
  --draft: #6b4fbb; --draft-weak: #efeafc;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.18);
  --control-bg: #ffffff; --hover: #f3f4f6; --ghost-hover: rgba(0,0,0,.05); --row-hover: #f6f8fc;
  --badge-bg: #eef0f3; --badge-text: #475467; --fmt-bg: #e9f1ff; --fmt-text: #1f4fae;
  --code-bg: #0f1729; --code-text: #dbe4ff; --toast-bg: #141b2d; --canvas-bg: #e6e8ec;
  --login-bg: radial-gradient(circle at 20% 10%, #23305a, #0f1424 60%);
  --top-bg: #141b2d; --top-text: #e6e9f2; --top-strong: #ffffff; --top-muted: #c3c9d8; --top-faint: #8d96ab;
  --top-hover: rgba(255,255,255,.08); --top-active: rgba(255,255,255,.14); --top-active-text: #ffffff;
  --top-shadow: none;
  --top-menu-bg: #1c2438; --top-menu-border: #2c3550;
  --top-input-bg: #1f2637; --top-input-border: #3a4359; --top-input-text: #e4e8f1;
  --logo-bg: linear-gradient(135deg, #4f7cff, #22c1a4); --avatar-bg: #3b4a6b;
  color-scheme: light;
}

/* ------------------------------------------------------------ house-style touches (not in Classic) */
:root:not([data-theme="classic"]) button.primary { font-family: var(--head); font-weight: 600; letter-spacing: .01em; }
:root:not([data-theme="classic"]) .topbar { border-top: 3px solid var(--accent); height: 55px; }
:root:not([data-theme="classic"]) .nav a, :root:not([data-theme="classic"]) .navmenu summary { font-family: var(--head); font-weight: 600; font-size: 13px; }
:root:not([data-theme="classic"]) h3 { font-family: var(--head); }
:root:not([data-theme="classic"]) .card { border-radius: 12px; }
:root:not([data-theme="classic"]) .login { border-radius: 14px; }
.theme-picker { max-width: 150px; }
.login .theme-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.login .theme-row select { width: auto; font-size: 12px; padding: 4px 8px; }
