/* GENERATED by tools/dark_gen.py – do not edit by hand (corrections: shared/dark.manual.css) */

/* ---- shared/stellwerk.css (14 rules) ---- */
:root[data-theme="dark"] kbd{background:#1b2129}
:root[data-theme="dark"] .b{background:#1b2129}
:root[data-theme="dark"] .b.danger{border-color:#6e353c}
:root[data-theme="dark"] .b.danger:hover{background:#3b1c1e}
:root[data-theme="dark"] .fld input,
:root[data-theme="dark"] .inp{background:#1b2129}
:root[data-theme="dark"] .notice{background:#3b311c;border:1px solid #6e5935}
:root[data-theme="dark"] .tag{background:#1b2129}
:root[data-theme="dark"] .tag.acc{border-color:#354e6e;background:#1c2a3b}
:root[data-theme="dark"] .tag.warn{border-color:#6e5935;background:#3b311c;color:#bfa473}
:root[data-theme="dark"] .tag.err{border-color:#6e353c;background:#3b1c1e}
:root[data-theme="dark"] .tag.ok{border-color:#3c674a;background:#1e3925}
:root[data-theme="dark"] table.tbl th{background:#1b2129}
:root[data-theme="dark"] table.tbl tbody tr:hover{background:#232b34}
:root[data-theme="dark"] table.tbl tbody tr.sel{background:#1c2a3b}

/* ---- core/core.css (2 rules) ---- */
:root[data-theme="dark"] .theme-sw.light{background:linear-gradient(135deg,#1b2129 50%,#262b31 50%)}
:root[data-theme="dark"] .theme-sw.auto{background:linear-gradient(135deg,#1b2129 50%,#1b2129 50%)}

/* ---- modules/admin/admin.css (2 rules) ---- */
:root[data-theme="dark"] .pwnote code{background:#1b2129}
:root[data-theme="dark"] .tag.dev{background:#241c3b;color:#9c8dcf;border-color:#43356e}

/* ---- modules/worktime/worktime.css (83 rules) ---- */
:root[data-theme="dark"] header{background:#1b2129}
:root[data-theme="dark"] .tabs button{background:#1b2129}
:root[data-theme="dark"] button.b{background:#1b2129}
:root[data-theme="dark"] #status .warn{color:#d5a573}
:root[data-theme="dark"] .msum{background:#1b2129}
:root[data-theme="dark"] .dh select{background:#1b2129}
:root[data-theme="dark"] button.plus{background:#1b2129}
:root[data-theme="dark"] table.d input:focus{background:#1b2129}
:root[data-theme="dark"] .ysum{background:#1b2129}
:root[data-theme="dark"] table.ym{background:#1b2129}
:root[data-theme="dark"] .yscroll{background:#1b2129}
:root[data-theme="dark"] table.y tr.mh th{background:#1b2129}
:root[data-theme="dark"] table.y .lab{background:#1b2129}
:root[data-theme="dark"] table.y td.x,
:root[data-theme="dark"] table.y th.x{background:repeating-linear-gradient(135deg,#1b2129 0 3px,#222934 3px 6px)}
:root[data-theme="dark"] .c-we{background:#222934}
:root[data-theme="dark"] .c-hol{background:#592153}
:root[data-theme="dark"] .c-ferien,
:root[data-theme="dark"] .c-ferien_halb{background:#3b381c}
:root[data-theme="dark"] .c-krank{background:#5b2a1f}
:root[data-theme="dark"] .c-kompensation{background:#1f465b}
:root[data-theme="dark"] .c-remote{background:#5b481f}
:root[data-theme="dark"] tr.pa td{background:#1c283b}
:root[data-theme="dark"] .stat{background:#1b2129}
:root[data-theme="dark"] table.y td.we{background:#1b2129}
:root[data-theme="dark"] input.korr{background:#1b2129}
:root[data-theme="dark"] input.korr::placeholder{color:#aeb8c5}
:root[data-theme="dark"] input.korr.set{background:#1c293b}
:root[data-theme="dark"] table.y tr.tgr td{color:#e3e8ef}
:root[data-theme="dark"] .lg{background:#1b2129}
:root[data-theme="dark"] .chip button{color:#c9d1db}
:root[data-theme="dark"] .tg select{background:#1b2129}
:root[data-theme="dark"] .set{background:#1b2129}
:root[data-theme="dark"] .set .warn{color:#d5a573}
:root[data-theme="dark"] .pvbar{background:#1b2129}
:root[data-theme="dark"] .pvbar select{background:#1b2129}
:root[data-theme="dark"] .pk div span{color:#c9d1db}
:root[data-theme="dark"] table.pm th{color:#e3e8ef}
:root[data-theme="dark"] table.pm td{border-bottom:.4pt solid #343d4a}
:root[data-theme="dark"] table.pm td.n small{color:#c9d1db}
:root[data-theme="dark"] table.pm tr.we td{background:#222934}
:root[data-theme="dark"] table.pm tr.wk td{background:#1b2129}
:root[data-theme="dark"] .pf{color:#c9d1db}
:root[data-theme="dark"] table.py td,
:root[data-theme="dark"] table.py th{border:.3pt solid #343d4a}
:root[data-theme="dark"] table.py tr.h th small{color:#e3e8ef}
:root[data-theme="dark"] table.py td.x,
:root[data-theme="dark"] table.py th.x{background:#222934}
:root[data-theme="dark"] table.py td.tot{background:#222934}
:root[data-theme="dark"] kbd{background:#1b2129}
:root[data-theme="dark"] .pill{background:#1b2129}
:root[data-theme="dark"] .pill.warn{border-color:#6e5935;background:#3b311c}
:root[data-theme="dark"] .mlist{background:#1b2129}
:root[data-theme="dark"] .axis{background:#1b2129}
:root[data-theme="dark"] .row:hover{background:#232b34}
:root[data-theme="dark"] .row.off{background:#252b32}
:root[data-theme="dark"] .row.open{background:#1c2a3b}
:root[data-theme="dark"] .lbl{color:#c9d1db}
:root[data-theme="dark"] .trk{background:repeating-linear-gradient(to right,#323c48 0 1px,transparent 1px calc(100% / var(--hrs))),#242b32}
:root[data-theme="dark"] .blk.fcb{background:repeating-linear-gradient(135deg,#293a52 0 3px,#1d293a 3px 6px)}
:root[data-theme="dark"] .tx{color:#8f969d}
:root[data-theme="dark"] .row.fc .is,
:root[data-theme="dark"] .row.fc .df,
:root[data-theme="dark"] .row.fc .sa{color:#aeb8c5}
:root[data-theme="dark"] .row.fc .df.pos,
:root[data-theme="dark"] .row.fc .sa.pos{color:#adceb6}
:root[data-theme="dark"] .row.fc .df.neg,
:root[data-theme="dark"] .row.fc .sa.neg{color:#eab6bc}
:root[data-theme="dark"] .ed{background:#1c293b;border-top:1px solid #354f6e}
:root[data-theme="dark"] .qi{background:#1b2129}
:root[data-theme="dark"] .pr input,
:root[data-theme="dark"] .ar input,
:root[data-theme="dark"] .nt2{background:#1b2129}
:root[data-theme="dark"] .pr input.bad{background:#3b1c1e}
:root[data-theme="dark"] .tgl{background:#1b2129}
:root[data-theme="dark"] .edf{border-top:1px solid #354f6e}
:root[data-theme="dark"] #help dd{color:#c9d1db}
:root[data-theme="dark"] .chart{background:#1b2129}
:root[data-theme="dark"] .robar{background:#3b311c;border-bottom:1px solid #6e5935;color:#a59473}
:root[data-theme="dark"] .sharedlg button.b.danger{border-color:#6e353c}
:root[data-theme="dark"] .sharedlg select.inp{background:#1b2129}
:root[data-theme="dark"] .robar.rw{background:#233323;border-bottom-color:#3e6543;color:#839d87}
:root[data-theme="dark"] .rscroll{border:1px solid var(--line,#343d4a);background:var(--card,#1b2129)}
:root[data-theme="dark"] .rtab th{color:var(--mut,#aeb8c5)}
:root[data-theme="dark"] .rtab td{border:1px solid var(--line,#45505e)}
:root[data-theme="dark"] .rtab td i{color:#82888f}
:root[data-theme="dark"] .rtab td.off{background:repeating-linear-gradient(135deg,#262b31 0 4px,#252931 4px 8px)}
:root[data-theme="dark"] .rtab td.off[style]{background:color-mix(in srgb,var(--c) 45%,#262b31)}
:root[data-theme="dark"] .rtab td.hol{background:#592252}
:root[data-theme="dark"] .rlg small{color:var(--mut,#aeb8c5)}
:root[data-theme="dark"] .rlg i{border:1px solid #343d4a}
:root[data-theme="dark"] .rlg i.off{background:repeating-linear-gradient(135deg,#262b31 0 4px,#252931 4px 8px)}
:root[data-theme="dark"] .rlg i.hol{background:#592252}

/* ---- modules/kanban/board.css (0 rules) ---- */


/* ---- modules/kanban/kanban.css (6 rules) ---- */
:root[data-theme="dark"] .prio.p1{color:#e1918b}
:root[data-theme="dark"] .prio.p2{color:#ef9a94}
:root[data-theme="dark"] .prio.p4{color:#83b6fd}
:root[data-theme="dark"] .flag{color:#80848a;background:color-mix(in srgb,var(--fc) 55%,#1b2129)}
:root[data-theme="dark"] .prio.p3{color:#eab077}
:root[data-theme="dark"] mark{background:#5b4f1f}

/* ---- modules/birthdays/birthdays.css (14 rules) ---- */
:root[data-theme="dark"] .robar{background:#3b311c;border-bottom:1px solid #6e5935;color:#a59473}
:root[data-theme="dark"] .robar.rw{background:#233323;border-bottom-color:#3e6543;color:#839d87}
:root[data-theme="dark"] .gbulk{background:#1c2a3b;border:1px solid #354e6e}
:root[data-theme="dark"] .gtbl .gw.soon{color:#d6a078}
:root[data-theme="dark"] .gtbl .gw.now{color:#dd80a5}
:root[data-theme="dark"] .gmir.on{color:#7bbfb9}
:root[data-theme="dark"] .gmon li.now{background:#3b1c27}
:root[data-theme="dark"] .gdrop{border:2px dashed #45515f;background:#212b36}
:root[data-theme="dark"] .gdrop.over,
:root[data-theme="dark"] .gdrop:hover,
:root[data-theme="dark"] .gdrop:focus{background:#1c2a3b}
:root[data-theme="dark"] .gchip{background:#1b2129}
:root[data-theme="dark"] .gchip.ok{border-color:#3c674a}
:root[data-theme="dark"] .gchip.acc{border-color:#354e6e}
:root[data-theme="dark"] .gchip.warn{border-color:#6e5935;color:#bfa473}
:root[data-theme="dark"] .gchip.err{border-color:#6e353c}

/* ---- modules/calendar/calendar.css (1 rules) ---- */
:root[data-theme="dark"] .kwarn{background:#3b311c;border:1px solid #6e5935;color:#a59473}

/* ---- modules/shop/shop.css (4 rules) ---- */
:root[data-theme="dark"] .s-badge{background:linear-gradient(135deg,color-mix(in srgb,var(--sc) 70%,#1b2129 30%),var(--sc))}
:root[data-theme="dark"] .s-undo .b{background:#1b2129;color:#82878d;border-color:#2a323d}
:root[data-theme="dark"] .s-off{background:#3b301c;color:#b6a17c}
:root[data-theme="dark"] .s-prod-px{color:#d68680}

/* ---- shared/mobile.css (7 rules) ---- */
@media (max-width:700px){:root[data-theme="dark"] .mnav{background:#1b2129;border-top:1px solid #343d4a}}
@media (max-width:700px){:root[data-theme="dark"] .mnav-b{color:#aeb8c5}}
@media (max-width:700px){:root[data-theme="dark"] .mnav-b:active{background:#252a32}}
@media (max-width:700px){:root[data-theme="dark"] .mnav{background:var(--card,var(--surface,#1b2129));border-top-color:var(--line,var(--border,#343d4a))}}
@media (max-width:700px){:root[data-theme="dark"] .mnav-b{color:var(--mut,var(--muted,#aeb8c5))}}
@media (max-width:700px){:root[data-theme="dark"] .mnav-mod{color:var(--fg,var(--text,#82888f))}}
@media (max-width:700px){:root[data-theme="dark"] .mnav-b:active{background:var(--row,#252a32)}}

/* ---- manual corrections (shared/dark.manual.css) ---- */
/* =====================================================================
   elSpinat Suite · dark mode – base colours and manual corrections
   Active when <html data-theme="dark"> (set by /shared/theme.js).
   The automatically generated rules are at the top of dark.css.
   ===================================================================== */
:root[data-theme="dark"]{
  color-scheme:dark;
  /* Stellwerk, worktime, admin, birthdays */
  --bg:#12161c;--fg:#e3e8ef;--mut:#9aa5b4;--line:#343d4a;--line2:#2a323d;--head:#222934;--row:#1f2630;--card:#1b2129;
  --acc:#6ea0e6;--acc2:#2fb3a1;--pos:#5ec27a;--neg:#f07c86;--sig:#f07c86;--warn:#e3a94f;
  --rail:#0d1117;--rail-hover:#1c2330;--rail-acc:#2A5DB0;
  /* Worktime tokens */
  --abz:#203326;--diff:#4a3d14;--net:#2a313b;--negbg:#4a1f24;
  --hol:#6b3d66;--we:#3a2a38;--ferien:#5a5418;--krank:#5c4122;--komp:#22394a;--remote:#5a4317;--today:#6ea0e6;
  /* KBPlaner */
  --surface:#1b2129;--col:#151a21;--text:#e3e8ef;--muted:#9aa5b4;--border:#343d4a;
  --accent:#6ea0e6;--accent-weak:#1f3048;--accent-strong:#2A5DB0;--danger:#f07c86;--ok:#5ec27a;
  --shadow:0 1px 2px rgba(0,0,0,.4);--shadow-lg:0 12px 32px rgba(0,0,0,.55);
}
:root[data-theme="dark"] body{background:var(--bg);color:var(--fg)}
:root[data-theme="dark"] a{color:#8db8ff}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#151a21;color:var(--fg);border-color:var(--line)}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#6f7b8b}
:root[data-theme="dark"] dialog{background:var(--card);color:var(--fg)}
:root[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.6)}

/* Elements with background var(--fg) (would otherwise turn light): today bar, messages, chart tooltip */
:root[data-theme="dark"] .todaybar{background:#222b38;color:#fff}
:root[data-theme="dark"] #toast,:root[data-theme="dark"] .chart .ctip{background:#2b3442;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.5)}

/* Rail slightly darker than the work area so the separation remains */
:root[data-theme="dark"] .rail{background:var(--rail);border-right:1px solid #1e2531}
:root[data-theme="dark"] .mbar{background:var(--bg)}
:root[data-theme="dark"] #ttl:focus{background:#151a21;color:var(--fg)}

/* Tag colours (legend, chips, calendar cells with inline colour) stay pastel; text on them dark */
:root[data-theme="dark"] .chip,:root[data-theme="dark"] .lg i,:root[data-theme="dark"] .tg .chip{color:#1b2733}
:root[data-theme="dark"] .lg{background:#1b2129}
:root[data-theme="dark"] .rtab td i,:root[data-theme="dark"] .rlg i{color:#e3e8ef}
:root[data-theme="dark"] .rtab td{background:color-mix(in srgb,var(--c,transparent) 45%,#1b2129)}
:root[data-theme="dark"] .rtab td.off{background:repeating-linear-gradient(135deg,#1d232c 0 4px,#181d24 4px 8px)}
:root[data-theme="dark"] .rtab td.off[style]{background:color-mix(in srgb,var(--c) 30%,#1d232c)}
:root[data-theme="dark"] .rtab td.hol,:root[data-theme="dark"] .rlg i.hol{background:#4a2a46}
:root[data-theme="dark"] .rlg i{background:color-mix(in srgb,var(--c,#888) 45%,#1b2129);border-color:#343d4a}
:root[data-theme="dark"] .rlg i.off{background:repeating-linear-gradient(135deg,#1d232c 0 4px,#181d24 4px 8px)}

/* KBPlaner: topic labels (--fc) tinted dark with light text */
:root[data-theme="dark"] .flag,:root[data-theme="dark"] .tflag{color:#e3e8ef}
:root[data-theme="dark"] mark{background:#7A5D10;color:inherit}

/* Print preview stays paper (white) – only the bar turns dark */
:root[data-theme="dark"] #print{background:#0b0e12}

/* Birthdays */
:root[data-theme="dark"] .gmon li.now{background:#4a1d31}
:root[data-theme="dark"] .gtbl .gw.now{color:#ff8fb1}:root[data-theme="dark"] .gtbl .gw.soon{color:#e3a94f}

/* Login: dark card on dark background */
:root[data-theme="dark"] body.login{background:#0b0e12}

/* Theme switch in the rail */
.theme-btn .ri{font-size:13px}

/* The Smart Mirror has its own colours (dark/light per setup): cancel the general dark rules there */
:root[data-theme="dark"] .mirror header,:root[data-theme="dark"] .mirror .m-top{background:transparent;border:0}
:root[data-theme="dark"] .mirror button.b{background:transparent}

