/* Design of AIMS: the Superus red #990a2c and the font Ubuntu Light in a modern look, light or dark per user (Mein Konto →
   Darstellung, symbol in the header). The main interface loads this file first as /theme.css, every app page as /api/ui/theme.css
   (docs/APP_CONTRACT.md „Gestaltung“); the fonts lie beside it in fonts/.
   Colours: every stylesheet of the Core and of the apps uses the variables below and never a colour of its own for surfaces,
   lines, text, the brand or states, so one switch of the attribute data-theme="dark" on <html> turns every page dark (set before
   the first paint by /theme.js on the main interface and /api/ui/theme.js on app pages). The dark values apply on the screen only:
   printed pages stay light. State colours keep their meaning in both themes: green = saved/ok/done, amber = hint/warning, red =
   error/overdue, blue = info; the brand red is never a state.
   Ubuntu (Canonical, Ubuntu Font Licence 1.0, third_party/licenses/ubuntu-font) comes from the AIMS server only: no request to a
   foreign font service, and the CSP allows fonts only from 'self'. Files of @fontsource/ubuntu 5.3.0, split by script; the
   browser loads only the parts whose characters a page shows. Text up to weight 500 is set in Ubuntu Light, bold text (600 and
   more) in Ubuntu Medium; symbols the font lacks (☰ ⌂ ✓ …) come from the fallback fonts. */
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-latin-300-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-latin-ext-300-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-cyrillic-300-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-cyrillic-ext-300-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-greek-300-normal.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-greek-ext-300-normal.woff2) format("woff2");unicode-range:U+1F00-1FFF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-latin-300-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-latin-ext-300-italic.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-cyrillic-300-italic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-cyrillic-ext-300-italic.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-greek-300-italic.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:100 500;font-display:swap;src:url(fonts/ubuntu-greek-ext-300-italic.woff2) format("woff2");unicode-range:U+1F00-1FFF}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-cyrillic-ext-500-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-greek-500-normal.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:Ubuntu;font-style:normal;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-greek-ext-500-normal.woff2) format("woff2");unicode-range:U+1F00-1FFF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-latin-500-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-latin-ext-500-italic.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-cyrillic-500-italic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-cyrillic-ext-500-italic.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-greek-500-italic.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:Ubuntu;font-style:italic;font-weight:600 900;font-display:swap;src:url(fonts/ubuntu-greek-ext-500-italic.woff2) format("woff2");unicode-range:U+1F00-1FFF}

:root{
  --font:Ubuntu,"Segoe UI",Arial,sans-serif;
  color-scheme:light;
  /* Surfaces: page, cards and fields, subtle fills (table heads, read-only fields), stronger fills (chips, tracks), hover. */
  --bg:#f3f3f4;--surface:#fff;--surface-2:#f8f8f9;--surface-3:#eeeef0;--hover:#f2f2f3;--input-bg:#fff;
  /* Lines: hairlines between parts, frames of fields and buttons. */
  --line:#e5e5e8;--line-2:#d2d2d7;
  /* Text: main text, secondary text, labels and notes, placeholders and inactive symbols. */
  --ink:#1f1f23;--ink-soft:#4b4b51;--muted:#74747a;--faint:#a1a1a7;
  /* Brand: fills of primary buttons and chosen markers (--brand, hover --brand-strong), brand-coloured text and links
     (--brand-text), background and frame of chosen entries, the gradient and glow of primary buttons, text on the brand. */
  --brand:#990a2c;--brand-strong:#7a0a24;--brand-text:#990a2c;--brand-soft:#f8edf0;--brand-line:#e7c7ce;--on-brand:#fff;
  --brand-grad:linear-gradient(135deg,#c8173f 0%,#990a2c 55%,#6f0820 100%);--brand-glow:0 8px 22px -8px rgba(153,10,44,.55);
  /* Keyboard focus stays neutral: a red ring would look like the red frame of an invalid field (frontend/forms.css). */
  --focus:#8a8a8a;
  /* States: a strong colour (dots, bars, side lines), text, background and frame of notes and badges. */
  --ok:#2f9e78;--ok-text:#146b65;--ok-bg:#e3f3ee;--ok-line:#9fd3c4;
  --warn:#d5a13d;--warn-text:#8a6414;--warn-bg:#fff3d6;--warn-line:#ecd9a8;
  --err:#c2543f;--err-text:#9b4336;--err-bg:#fbeeeb;--err-line:#e9c4bb;
  --info:#2f6fae;--info-text:#2e5780;--info-bg:#e6eef8;--info-line:#c9d9ea;
  /* Charts: series in a fixed order, grid lines, axes and their texts. */
  --chart-1:#990a2c;--chart-2:#2a78d6;--chart-3:#eb6834;--chart-4:#2f9e78;--chart-5:#7a4fb0;--chart-6:#8a8a8a;
  --chart-grid:#e8e8eb;--chart-axis:#acacb2;--chart-text:#74747a;
  /* Symbols of the apps: one colour per area of related apps (app.json "area"), white letters (contrast at least 4.5:1). */
  --area-sales:#990a2c;--area-operations:#2f5f78;--area-people:#6b4374;--area-finance:#454950;--area-none:#76767c;
  /* Depth and shape: small shadow, card, floating layers (menus, dialogs), the shade behind dialogs, radii. */
  --shadow-1:0 1px 2px rgba(20,20,24,.05),0 1px 3px rgba(20,20,24,.04);
  --shadow-card:0 1px 2px rgba(20,20,24,.04),0 12px 32px -18px rgba(20,20,24,.18);
  --shadow-2:0 20px 50px -12px rgba(20,20,24,.30);
  --backdrop:rgba(24,24,28,.42);
  --radius-sm:8px;--radius:12px;--radius-lg:18px;
  /* Touch: the least width and height of a target for a finger (44 px, as Apple's guidelines and the target size of WCAG 2.5.5 ask),
     for rules under @media (pointer:coarse) – the main interface sizes its symbols and entries of the navigation with it, apps may do
     the same for their buttons and rows. Same in both themes. */
  --touch-target:44px;
  font-family:var(--font);
}
/* Dark: deep neutral greys, light text, a brighter red for text and markers; the brand fill stays dark enough for white text
   (contrast at least 4.5:1). Only on the screen – printing uses the light values above. */
@media screen{
  :root[data-theme=dark]{
    color-scheme:dark;
    --bg:#0d0d0f;--surface:#161618;--surface-2:#1c1c1f;--surface-3:#26262a;--hover:#212125;--input-bg:#1c1c1f;
    --line:#2b2b30;--line-2:#3d3d43;
    --ink:#ededef;--ink-soft:#c4c4ca;--muted:#96969d;--faint:#66666d;
    --brand:#c4173f;--brand-strong:#a51236;--brand-text:#ff6b8a;--brand-soft:rgba(255,92,127,.13);--brand-line:rgba(255,92,127,.38);
    --brand-grad:linear-gradient(135deg,#e0244f 0%,#c4173f 50%,#8a0b2b 100%);--brand-glow:0 8px 26px -6px rgba(232,40,84,.6);
    --focus:#9a9aa1;
    --ok:#3fbf8f;--ok-text:#5fd3a7;--ok-bg:rgba(95,211,167,.12);--ok-line:rgba(95,211,167,.36);
    --warn:#e0a83e;--warn-text:#f2c46b;--warn-bg:rgba(242,196,107,.12);--warn-line:rgba(242,196,107,.36);
    --err:#e46a52;--err-text:#f5907c;--err-bg:rgba(245,144,124,.12);--err-line:rgba(245,144,124,.4);
    --info:#5b8fd6;--info-text:#8fb8ec;--info-bg:rgba(143,184,236,.12);--info-line:rgba(143,184,236,.36);
    --chart-1:#ff5c7f;--chart-2:#5b9ff0;--chart-3:#f5874f;--chart-4:#4fcf9c;--chart-5:#a888e0;--chart-6:#9a9aa1;
    --chart-grid:#2b2b30;--chart-axis:#55555c;--chart-text:#96969d;
    --area-sales:#b0103a;--area-operations:#36708c;--area-people:#7b4f86;--area-finance:#52565e;--area-none:#66666d;
    --shadow-1:0 1px 2px rgba(0,0,0,.4);
    --shadow-card:0 1px 0 rgba(255,255,255,.03) inset,0 16px 36px -18px rgba(0,0,0,.75);
    --shadow-2:0 24px 60px -12px rgba(0,0,0,.8);
    --backdrop:rgba(0,0,0,.62);
  }
}
html{background:var(--bg);color:var(--ink)}
/* Page titles in Ubuntu Light like the Superus headlines; smaller headings keep the bold cut for the order of the page. */
h1{font-weight:300}
/* Figures in columns stay aligned. */
.num,td.num,th.num{font-variant-numeric:tabular-nums}
