/* Morkt lage for portalens ovriga sidor: inloggning, konto, admin, kor, kampanjplan, butiker, kundklubb och skalets toppmeny.
   Ligger ovanpa portal_server.CSS, shell.css, plan.css, butiker.css och klubb.css. Appen (app.html) laddar inte den har filen, den har egna roller i tokens.css. */
html[data-theme="dark"]{--paper:#0d130e;--fog:#27322a;--ink:#e4eae5;--slate:#a2aea4;--g:#e4eae5;--s:#6f8572;--danger:#ff8f86;--warn:#e0b04a;color-scheme:dark}
html[data-theme="dark"] body{background:#0d130e;color:#e4eae5}
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] .card,html[data-theme="dark"] .box,html[data-theme="dark"] .login{background:#161f18;border-color:#27322a}
html[data-theme="dark"] .card:hover{box-shadow:0 6px 18px rgba(0,0,0,.45)}
html[data-theme="dark"] .card.acc{background:#00ffc8;border-color:#00ffc8}
html[data-theme="dark"] .card.acc,html[data-theme="dark"] .card.acc b{color:#002800}
/* :where() ger noll specificitet, sa att sidornas egna knappar (butiker, kundklubb) vinner over den har allmanna knappen */
html[data-theme="dark"] :where(button:not([class]):not([data-pref]),button.sm:not(.kp-b),.btn){background:#00ffc8;color:#002800}
html[data-theme="dark"] :where(button:not([class]):not([data-pref]),button.sm:not(.kp-b)):hover{background:#4dffd9}
html[data-theme="dark"] button.sec:not(.kp-b){background:#161f18;color:#e4eae5;border:1px solid #3a4a3e}
html[data-theme="dark"] button.dng{background:#b3261e;color:#fff}
html[data-theme="dark"] button:disabled:not(.kp-b){background:#2c3830;color:#8b998d}
html[data-theme="dark"] input,html[data-theme="dark"] select{background:#161f18;color:#e4eae5;border-color:#3a4a3e}
html[data-theme="dark"] input::placeholder{color:#8b998d}
html[data-theme="dark"] .msg{background:#0f2a24;color:#e4eae5}
html[data-theme="dark"] .msg.err{background:#3b1e1c}
html[data-theme="dark"] .pw{background:#161f18;border-color:#00ffc8}
html[data-theme="dark"] .pill{background:#161f18}
html[data-theme="dark"] .pill.t4{background:#00ffc8;color:#002800}
html[data-theme="dark"] .pill.t3{background:#1f3b27;color:#00ffc8}
html[data-theme="dark"] .pill.off{background:#3b1e1c;color:#ff8f86}
html[data-theme="dark"] .ok{color:#6fd39a}
html[data-theme="dark"] .warn{color:#e0b04a}
html[data-theme="dark"] .login img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .bar i{background:#00ffc8}
/* skalets toppmeny och nedre flikfalt */
html[data-theme="dark"] .wg-top{background:#161f18;border-bottom-color:#27322a}
html[data-theme="dark"] .wg-name{color:#e4eae5}
html[data-theme="dark"] .wg-nav a{color:#a2aea4}
html[data-theme="dark"] .wg-nav a:hover{background:#1f3b27}
html[data-theme="dark"] .wg-nav a.on,html[data-theme="dark"] .wg-avatar{background:#00ffc8;color:#002800}
html[data-theme="dark"] .wg-dock{border:1px solid rgba(0,255,200,.16);box-shadow:0 14px 38px rgba(0,0,0,.5)}
@media(max-width:999px){html[data-theme="dark"] .wg-top{background:#0d130e}}
/* kampanjplan */
html[data-theme="dark"] .pl-chip span{background:#161f18;color:#e4eae5}
html[data-theme="dark"] .pl-chip input:checked+span{background:var(--c,#00ffc8);color:#fff}
html[data-theme="dark"] .pl-wrap,html[data-theme="dark"] .pl-lab,html[data-theme="dark"] .pl-head,html[data-theme="dark"] .pl-head .pl-track,html[data-theme="dark"] .pl-fc{background:#161f18}
html[data-theme="dark"] .pl-lab{color:#e4eae5;border-right-color:#27322a}
html[data-theme="dark"] .pl-wrap{box-shadow:0 2px 6px rgba(0,0,0,.4)}
html[data-theme="dark"] .pl-row{border-bottom-color:#212b24}
html[data-theme="dark"] .pl-track{background-image:repeating-linear-gradient(90deg,#212b24 0 1px,transparent 1px 42px)}
html[data-theme="dark"] .pl-head .pl-track{background-image:none}
html[data-theme="dark"] .pl-mon{color:#e4eae5}
html[data-theme="dark"] .pl-bar{box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
html[data-theme="dark"] .pl-fc{color:#e4eae5}
html[data-theme="dark"] .pl-pop{background:#161f18;color:#e4eae5;border-color:#2c3830;box-shadow:0 8px 30px rgba(0,0,0,.6)}
html[data-theme="dark"] .pl-pop-n,html[data-theme="dark"] .pl-pop-i figcaption{color:#a2aea4}
html[data-theme="dark"] .pl-pop-i img{background:#0d130e}
/* butiker */
html[data-theme="dark"] .bt-sel select,html[data-theme="dark"] .bt-bar input{background:#161f18;color:#e4eae5;border-color:#3a4a3e}
html[data-theme="dark"] .bt-sum div,html[data-theme="dark"] .bt-card,html[data-theme="dark"] .bt-chips button{background:#161f18;border-color:#27322a;box-shadow:none}
html[data-theme="dark"] .bt-chips button{color:#a2aea4}
html[data-theme="dark"] .bt-tabs button.on,html[data-theme="dark"] .bt-chips button.on{background:#00ffc8;border-color:#00ffc8;color:#002800}
html[data-theme="dark"] .bt-p{border-top-color:#212b24}
html[data-theme="dark"] .bt-p:hover,html[data-theme="dark"] .bt-h:hover{background:#1b261e}
html[data-theme="dark"] .bt-p:active{background:#1b261e}
html[data-theme="dark"] .bt-h{color:inherit}
html[data-theme="dark"] .bt-k{background:#212b24}
/* kundklubb */
html[data-theme="dark"] .kb-tile,html[data-theme="dark"] .kb-card{background:#161f18;border-color:#27322a;box-shadow:none;color:inherit}
html[data-theme="dark"] .kb-tile.on{background:#14271a;border-color:#00ffc8}
html[data-theme="dark"] .kb-chip{background:#212b24}
html[data-theme="dark"] .kb-t td{border-top-color:#212b24}
html[data-theme="dark"] .kb-bar{background:#212b24}
html[data-theme="dark"] .kb-bar i{background:#0b6b57}
html[data-theme="dark"] .pl-hist-info{background:#3a3414!important;color:#f1e7b0}

/* Säker inloggning (mfa) i mörkt läge: valrutor, reservkoder och märket Rekommenderas */
html[data-theme="dark"] .valj{background:#1d2a21;border-color:#2f3d33}
html[data-theme="dark"] .valj h2,html[data-theme="dark"] .valj label{color:#e4eae5}
html[data-theme="dark"] .koder{background:#0d130e;border-color:#6f8572;color:#e4eae5}
.rek{color:#002800 !important}
