/* Aktsyn | het donkere thema (FS2). GEMAAKT door app/maak-donker-css.py uit css/v13.css, css/v14-facturen.css, css/v14-inzicht.css, css/aktsyn.css, ../beheer/app/css/beheer.css.
   Niet met de hand bewerken: pas de tabel of HANDWERK in het script aan en maak het bestand opnieuw. */
:root[data-thema="donker"]{
  color-scheme:dark;
  --paper:#151C21;--vlak:#1E2B33;--vlak-hi:#283842;--ink:#E9E7E1;--zacht:#9DAEB7;--dim:#6C7E88;
  --haar:#2C3B45;--haar-s:#3A4C58;--veld:#22313A;--veld-h:#2A3A45;
  --side:#18222A;--side-haar:#25333C;--side-z:#8597A1;--side-nav:#C9D3D8;
  --ok:#7CC4A0;--err:#E8958A;--ok-l:#1D3A2F;--err-l:#43272A;--messing:#D9B75B;--messing-l:#3A3220;--messing-d:#E3C677;
  --oker:#E3B15A;--sh-vlak:0 0 0 1px var(--haar);
  --acc-bar:color-mix(in srgb,var(--petrol) 70%,var(--vlak));--err-bar:color-mix(in srgb,var(--err) 70%,var(--vlak));
  --sh:0 0 0 1px var(--haar);--sh-hi:0 0 0 1px var(--haar-s),0 18px 40px rgba(0,0,0,.45);--sh-seg:0 0 0 1px var(--haar-s);
  --op-vol:#10181D;
  --merk-a:#FAF9F6;--merk-b:#A5D8E4;
  --ft-groen:#1F3A30;--ft-groen-t:#8FD0AE;--ft-blauw:#22324A;--ft-blauw-t:#9DBDE8;--ft-rood:#43272A;--ft-rood-t:#EBA096;
  --ft-oranje:#3E2E20;--ft-oranje-t:#E6B07E;--ft-grijs:var(--veld-h);--ft-grijs-t:var(--zacht);
  --licht-oranje:var(--oker)
}

/* Vaste kleuren uit de stylesheets, vertaald */
:where([data-thema="donker"]) .crumbs .sep{color:var(--dim)}
:where([data-thema="donker"]) .bell .n{color:var(--op-vol)}
:where([data-thema="donker"]) .btn{color:var(--op-vol)}
:where([data-thema="donker"]) .sepbar{color:var(--dim)}
:where([data-thema="donker"]) .seg.acc button.on[data-v="Middelhoge prioriteit"]{color:var(--op-vol)}
:where([data-thema="donker"]) .seg.acc button.on[data-v="Hoogste prioriteit"]{color:var(--op-vol)}
:where([data-thema="donker"]) .tbl th{background:var(--vlak)}
:where([data-thema="donker"]) .tbl tr.hl td{background:var(--veld)}
:where([data-thema="donker"]) .lookup .chip{background:var(--vlak)}
:where([data-thema="donker"]) .lookup .chip{box-shadow:0 1px 1px rgba(0,0,0,0.132)}
:where([data-thema="donker"]) .pop{background:var(--vlak)}
:where([data-thema="donker"]) .yn button.on{background:var(--vlak)}
:where([data-thema="donker"]) .yn button.on{box-shadow:0 1px 2px rgba(0,0,0,0.22)}
:where([data-thema="donker"]) .savebar{color:var(--op-vol)}
:where([data-thema="donker"]) .toast div{color:var(--op-vol)}
:where([data-thema="donker"]) .scrim{background:rgba(0,0,0,0.6)}
:where([data-thema="donker"]) .drawer .dh{background:var(--vlak)}
:where([data-thema="donker"]) .drawer .df{background:var(--vlak)}
:where([data-thema="donker"]) .palette{background:var(--vlak)}
:where([data-thema="donker"]) .notif{background:var(--vlak)}
:where([data-thema="donker"]) .notif .ni:hover{background:var(--veld)}
:where([data-thema="donker"]) .menu{background:var(--vlak)}
:where([data-thema="donker"]) .aidx a.on{background:var(--vlak)}
:where([data-thema="donker"]) .aidx a .st{box-shadow:inset 0 0 0 1.5px var(--haar-s)}
:where([data-thema="donker"]) .aidx a .nr{color:var(--dim)}
:where([data-thema="donker"]) .chh .nr{color:var(--dim)}
:where([data-thema="donker"]) .sealed{background:linear-gradient(180deg,var(--veld),var(--vlak))}
:where([data-thema="donker"]) .ring i{background:var(--vlak)}
:where([data-thema="donker"]) .pk .aanb{color:var(--op-vol)}
:where([data-thema="donker"]) .bigin:hover{border-bottom-color:var(--haar-s)}
:where([data-thema="donker"]) .tafel .tsteps button.on{color:var(--op-vol)}
:where([data-thema="donker"]) .dots11 button.on{color:var(--op-vol)}
:where([data-thema="donker"]) .tpk .pk .intern{border-top:1px dashed var(--haar-s)}
:where([data-thema="donker"]) .kol{background:var(--veld)}
:where([data-thema="donker"]) .kol.eind{background:var(--veld)}
:where([data-thema="donker"]) .kaart{background:var(--vlak)}
:where([data-thema="donker"]) .rules div{background:var(--vlak)}
:where([data-thema="donker"]) .tip{color:var(--op-vol)}
:where([data-thema="donker"]) .dev .track .mid{background:var(--dim)}
:where([data-thema="donker"]) .adm nav a.on{background:var(--vlak)}
:where([data-thema="donker"]) .cell-in:focus{background:var(--vlak)}
:where([data-thema="donker"]) .lib button .fl{color:var(--dim)}
:where([data-thema="donker"]) .effects .ef{background:var(--vlak)}
:where([data-thema="donker"]) .effects .ef.on .ic{color:var(--op-vol)}
:where([data-thema="donker"]) .chap.dicht .chh:hover{background:var(--veld)}
:where([data-thema="donker"]) .arail .rr a.on{background:var(--vlak)}
:where([data-thema="donker"]) .arail .rr .st{box-shadow:inset 0 0 0 1.5px var(--haar-s)}
:where([data-thema="donker"]) .seg.acc button.on[data-v="Standaard"]{background:var(--vlak)}
:where([data-thema="donker"]) .seg.acc button.on[data-v="Standaard"]{box-shadow:0 1px 2px rgba(0,0,0,0.264)}
:where([data-thema="donker"]) .cmd.dim{color:var(--dim)}
:where([data-thema="donker"]) .cmd[disabled]{color:var(--dim)}
:where([data-thema="donker"]) .cmdsep{background:var(--veld-h)}
:where([data-thema="donker"]) .rlogo{color:var(--op-vol)}
:where([data-thema="donker"]) .okrow .ok{color:var(--dim)}
:where([data-thema="donker"]) .okrow.done .ok{color:var(--op-vol)}
:where([data-thema="donker"]) .wk th{background:var(--vlak)}
:where([data-thema="donker"]) .wk th.vd .dn{color:var(--op-vol)}
:where([data-thema="donker"]) .wk .we{background:var(--veld)}
:where([data-thema="donker"]) .wk tbody tr:hover td.we{background:var(--veld)}
:where([data-thema="donker"]) .uc:focus{background:var(--vlak)}
:where([data-thema="donker"]) .we .uc{box-shadow:inset 0 0 0 1px var(--haar-s)}
:where([data-thema="donker"]) .ib.on{color:var(--op-vol)}
:where([data-thema="donker"]) .addrow .pk2:focus-within{background:var(--vlak)}
:where([data-thema="donker"]) .pickl{background:var(--vlak)}
:where([data-thema="donker"]) .pickl .po .pin{color:var(--dim)}
:where([data-thema="donker"]) .ukey kbd{background:var(--vlak)}
:where([data-thema="donker"]) .daytabs button.on{color:var(--op-vol)}
:where([data-thema="donker"]) .trow.klaar .tt b{text-decoration-color:var(--dim)}
:where([data-thema="donker"]) .sect.late .ln{background:rgba(232,149,138,.22)}
:where([data-thema="donker"]) .wtl .ckl{background:var(--vlak)}
:where([data-thema="donker"]) .prod .p2{color:var(--ink2,var(--ink))}
:where([data-thema="donker"]) .goto{background:var(--veld-h)}
:where([data-thema="donker"]) .goto:hover{background:var(--veld-h)}
:where([data-thema="donker"]) .nitem .cnt.hot{color:var(--op-vol)}
:where([data-thema="donker"]) .navscroll{scrollbar-color:var(--haar-s) transparent}
:where([data-thema="donker"]) .timerbox button{background:rgba(0,0,0,0.132)}
:where([data-thema="donker"]) .timerbox button:hover{background:rgba(0,0,0,0.264)}
:where([data-thema="donker"]) .instel .sw button{box-shadow:inset 0 0 0 1px rgba(0,0,0,0.132)}
:where([data-thema="donker"]) .search:focus-within{background:var(--vlak)}
:where([data-thema="donker"]) .filt:focus-within{background:var(--vlak)}
:where([data-thema="donker"]) .tabs .on{background:var(--vlak)}
:where([data-thema="donker"]) .seg button.on{background:var(--vlak)}
:where([data-thema="donker"]) .seg.w button.on{background:var(--vlak)}
:where([data-thema="donker"]) .seg.acc button.on{background:var(--vlak)}
:where([data-thema="donker"]) .seg.acc button.on[data-v]{background:var(--vlak)}
:where([data-thema="donker"]) .tabs button:hover{background:rgba(255,255,255,0.07)}
:where([data-thema="donker"]) .tabs a:hover{background:rgba(255,255,255,0.07)}
:where([data-thema="donker"]) .seg button:hover{background:rgba(255,255,255,0.07)}
:where([data-thema="donker"]) .tabs .on:hover{background:var(--vlak)}
:where([data-thema="donker"]) .seg button.on:hover{background:var(--vlak)}
:where([data-thema="donker"]) .banner{background:var(--vlak)}
:where([data-thema="donker"]) .banner.gold{background:var(--vlak)}
:where([data-thema="donker"]) .banner>.bnx:hover{background:rgba(255,255,255,0.07)}
:where([data-thema="donker"]) .wk tr.vrow td{background:var(--veld)}
:where([data-thema="donker"]) .sring circle{stroke:var(--haar-s,var(--haar-s))}
:where([data-thema="donker"]) .ci.rp.af .t b{text-decoration-color:var(--dim)}
:where([data-thema="donker"]) .klrow.kind{background:var(--veld)}
:where([data-thema="donker"]) .pbrand .kmerk{color:var(--op-vol)}
:where([data-thema="donker"]) .pic.ok{background:var(--ok-l,var(--ok-l))}
:where([data-thema="donker"]) .pdrop{border:1.5px dashed var(--haar2,var(--haar-s))}
:where([data-thema="donker"]) .pantw.u{background:var(--vlak)}
:where([data-thema="donker"]) .pvraagq{background:var(--vlak)}
:where([data-thema="donker"]) .afrij .ok{background:var(--ok-l,var(--ok-l))}
:where([data-thema="donker"]) .afrij .ok{color:var(--ok,var(--ok))}
:where([data-thema="donker"]) .selbar{background:var(--vlak)}
:where([data-thema="donker"]) .dpop{background:var(--vlak)}
:where([data-thema="donker"]) .dpop .dpd.uit{color:var(--dim)}
:where([data-thema="donker"]) .dpop .dpd.sel::after{background:var(--vlak)}
:where([data-thema="donker"]) .dpop .dpsn button.on{color:var(--op-vol)}
:where([data-thema="donker"]) body:not(.portaal) .side .goto{background:var(--veld-h)}
:where([data-thema="donker"]) body:not(.portaal) .side .goto:hover{background:var(--veld-h)}
:where([data-thema="donker"]) body:not(.portaal) .side .nitem:hover{background:var(--veld-h)}
:where([data-thema="donker"]) body:not(.portaal) .side .nitem.on{background:var(--vlak)}
:where([data-thema="donker"]) body:not(.portaal) .side .nitem.on{box-shadow:0 1px 2px rgba(0,0,0,0.176)}
:where([data-thema="donker"]) body:not(.portaal) .side .nitem .cnt{background:var(--veld-h)}
:where([data-thema="donker"]) body:not(.portaal) .side .nitem .cnt.hot{color:var(--op-vol)}
:where([data-thema="donker"]) body:not(.portaal) .side .navscroll{scrollbar-color:var(--haar-s) transparent}
:where([data-thema="donker"]) .prodwf tr.gp td{background:repeating-linear-gradient(135deg,transparent 0 7px,rgba(0,0,0,0.026) 7px 14px)}
:where([data-thema="donker"]) .prodwf tr.tkrij td{background:var(--veld)}
:where([data-thema="donker"]) .fx-bulk{color:var(--op-vol)}
:where([data-thema="donker"]) .fx-bulk .lnk.muted{color:var(--dim)}
:where([data-thema="donker"]) .fx-afrij .fx-reden{background:var(--vlak)!important}
:where([data-thema="donker"]) .fx-ctl.info{color:var(--ink,var(--ink))}
:where([data-thema="donker"]) .aanmeld-kaart{background:var(--vlak)}
:where([data-thema="donker"]) .mini i{background:var(--vlak)}
:where([data-thema="donker"]) .btn:disabled .mini i{background:var(--vlak)}
:where([data-thema="donker"]) .stp{background:var(--vlak)}
:where([data-thema="donker"]) .docdraad{background:var(--vlak)}
:where([data-thema="donker"]) .scrim.licht{background:rgba(0,0,0,0.44)}
:where([data-thema="donker"]) .tekenvak{background:var(--vlak)}
:where([data-thema="donker"]) .akhand{background:var(--vlak)}
:where([data-thema="donker"]) .tbl tr.u-klantkop td{background:var(--veld)}
:where([data-thema="donker"]) .pflogo{color:var(--op-vol)}
:where([data-thema="donker"]) .wbk .n{color:var(--vlak,var(--op-vol))}
:where([data-thema="donker"]) .fx-bulk .fx-bulkzacht{color:var(--dim)}
:where([data-thema="donker"]) .shandle{background:var(--vlak)}
:where([data-thema="donker"]) .pglijst{background:var(--vlak)}
:where([data-thema="donker"]) .pgesprek{background:var(--vlak)}
:where([data-thema="donker"]) .stappen.cirkels li.k .c{color:var(--op-vol,var(--op-vol))}
:where([data-thema="donker"]) .topmerk .kmerk{color:var(--op-vol)}
:where([data-thema="donker"]) .wtl .ws.d .wc{color:var(--op-vol,var(--op-vol))}
:where([data-thema="donker"]) .pstap-t.on .pstap-nr{color:var(--op-vol,var(--op-vol))}
:where([data-thema="donker"]) .tag.acc.agent{color:var(--op-vol,var(--op-vol))}
:where([data-thema="donker"]) .sjstapkop .nrk{color:var(--op-vol,var(--op-vol))}
@media (max-width:860px){
  :where([data-thema="donker"]) body.portaal .pcmobtop{background:var(--vlak)}
  :where([data-thema="donker"]) .lade-sluier{background:rgba(0,0,0,0.6)}
}

/* HANDWERK */
/* FS25: een gekozen tegel en hoofdcategorie: de lichte invulling (--ijsl) gaf lichte tekst op licht in het donker */
:where([data-thema="donker"]) .tile.on,:where([data-thema="donker"]) .ab-cat.on{background:var(--acc-l)}
/* De wand van Beheer (Nils 17 nov): het vak Nieuw met invulling, om dezelfde reden; het cijfer in Nieuw en Aandacht nodig leesbaar */
:where([data-thema="donker"]) .wd-vandaagvak,:where([data-thema="donker"]) .wd-kpi.gekozen,:where([data-thema="donker"]) .wd-knop.on{background:color-mix(in srgb,var(--petrol) 22%,var(--paper))}
:where([data-thema="donker"]) .wd-vandaagvak b,:where([data-thema="donker"]) .wd-kpi.aandacht b{color:var(--ink)}
:where([data-thema="donker"]) .wd-titel small.reactie,:where([data-thema="donker"]) .wd-tbl tr.wd-groep.reactie td,:where([data-thema="donker"]) .wd-knop.on{color:var(--ink)}
/* FS17: de heatmap blijft in beide thema's gelijk (LATEN), behalve de lichte niveaus: die mengen het accent met wit en
   werden in het donker een witte cel met lichte tekst; nu mengen ze met het papier van het donkere thema */
:where([data-thema="donker"]) .tm-c.l1{background:color-mix(in srgb,var(--petrol) 22%,var(--paper))}
:where([data-thema="donker"]) .tm-c.l2{background:color-mix(in srgb,var(--petrol) 38%,var(--paper))}
:where([data-thema="donker"]) .tm-c.l3{background:color-mix(in srgb,var(--petrol) 55%,var(--paper))}
:where([data-thema="donker"]) .tm-c.l4{background:color-mix(in srgb,var(--petrol) 72%,var(--paper))}
:where([data-thema="donker"]) .tm-c.k.l1,:where([data-thema="donker"]) .tm-c.k.l2,:where([data-thema="donker"]) .tm-c.k.l3{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 3px,transparent 3px 7px)}
:where([data-thema="donker"]) .tm-c.eld::after{background:var(--ink)}
/* Het papier van een document blijft licht: de lichte tokens binnen het document (factuur, voorstel, voorbeeld, mail) */
:where([data-thema="donker"]) :is(.doc,.fx-doc,.mail,.preview,.fx-mailtxt){color-scheme:light;
  --paper:#F7F6F3;--vlak:#FFFFFF;--ink:#262421;--zacht:#6B675F;--haar:#E7E4DD;--haar-s:#D3CEC4;--veld:#F0EEE9;--veld-h:#EAE7E1;
  --ok:#2E7D5B;--err:#B4453A;--ok-l:#E3F0E9;--err-l:#F6E4E1;--messing-l:#F1E7CD;--messing-d:#6F5719;--op-vol:#FFFFFF;
  --sh:0 1px 2px rgba(38,36,33,.14),0 1px 3px 1px rgba(38,36,33,.07);color:var(--ink)}
:where([data-thema="donker"]) :is(.doc,.fx-doc,.mail,.preview){box-shadow:0 0 0 1px var(--haar-s)}
/* SG6 (34): het tekenvlak van Structuur is geen papier: het vlak van het donker (de tabel slaat background-color over omdat
   background-image in dezelfde regel staat) */
:where([data-thema="donker"]) .sdoek{background-color:var(--vlak)}
/* SG6 (1.4): de verstuurde mail bij een factuur is papier: licht, ook in het donker */
:where([data-thema="donker"]) .fx-mailtxt{background:#F0EEE9}
/* De pagina en de tekst */
:where([data-thema="donker"]) body{background:var(--paper);color:var(--ink)}
/* Gekozen tab of segment: iets lichter dan de balk eromheen (in het licht wit op grijs) */
:where([data-thema="donker"]) :is(.tabs .on,.seg button.on,.seg.w button.on,.seg.acc button.on,.seg.acc button.on[data-v]){background:var(--vlak-hi);color:var(--ink)}
/* Het zijmenu: grafiet, de actieve regel iets lichter met de accentkleur (merkblad, pagina 5) */
:where([data-thema="donker"]) body:not(.portaal) .side .nitem.on{background:var(--vlak-hi);color:var(--petrol-d);box-shadow:none}
:where([data-thema="donker"]) .side .nitem .cnt.hot{color:var(--op-vol)}
/* Knoppen in het accent: in het donker is het accent licht, dus donkere tekst */
:where([data-thema="donker"]) :is(.btn,.btn:hover){color:var(--op-vol)}
:where([data-thema="donker"]) :is(.btn.ghost,.btn.sec,.btn.lnk,.btn.tweede){color:var(--petrol)}
/* SG0 (05): een knop die nog niet kan, is grijs met zachte tekst, ook in het donker */
:where([data-thema="donker"]) :is(.btn:disabled,.btn.dis){color:var(--zacht)}
/* Velden, keuzes en het datumveld */
:where([data-thema="donker"]) :is(.inp,select.inp,textarea.inp){background-color:var(--veld);color:var(--ink)}
:where([data-thema="donker"]) :is(.search,.filt):focus-within{background:var(--vlak)}
:where([data-thema="donker"]) ::placeholder{color:var(--dim)}
/* Het merk: diapositief */
:where([data-thema="donker"]) .merk{--merk-a:#FAF9F6;--merk-b:#A5D8E4}
/* SG2 (18): de pijl van een keuzelijst in de zachte tekstkleur van het donker (v13 tekent hem in een vaste grijze kleur) */
:where([data-thema="donker"]) select.inp{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%239DAEB7' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
/* SG0 (25): de normstreep van een bullet in het donker in --ink */
:where([data-thema="donker"]) .bullet .bak b{background:var(--ink)}
/* Een profielkleur die op het donker wegvalt: een lichte rand om de stip */
:where([data-thema="donker"]) .pfdot{box-shadow:0 0 0 1px rgba(255,255,255,.18)}
