/* Direktsupport licence website - same dark look as the app (Theme.vb) and the docs. */
:root { --bg:#16171b; --card:#22242b; --card2:#2b2e37; --text:#e8e9ec; --muted:#a0a6b1; --dim:#6c7280; --line:#33363f;
        --accent:#4c8dff; --accent2:#3b7af0; --violet:#8b6cff; --green:#4cd28a; --red:#ff6b6b; --yellow:#f5c451; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg:#f4f5f8; --card:#ffffff; --card2:#eef0f5; --text:#16181d; --muted:#545c69; --dim:#8a909b; --line:#dde0e6; }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color:var(--accent); }
.top { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:12px 22px; background:var(--card); border-bottom:1px solid var(--line); }
.brand { font-weight:700; font-size:17px; display:flex; align-items:center; gap:8px; }
.brand .dot { width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--violet)); }
.muted { color:var(--muted); font-weight:400; }
nav { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-left:auto; font-size:14px; }
nav a { color:var(--muted); text-decoration:none; padding:4px 2px; border-bottom:2px solid transparent; }
nav a.on, nav a:hover { color:var(--text); border-bottom-color:var(--accent); }
nav .logout { color:var(--red); }
nav .langs { color:var(--dim); font-size:13px; }
nav .langs a { color:var(--dim); border:0; }
main { max-width:1100px; margin:0 auto; padding:22px 16px 60px; }
h1 { font-size:24px; margin:0 0 4px; }
h2 { font-size:17px; margin:0 0 10px; }
.sub { color:var(--muted); margin:0 0 18px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin:0 0 16px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); gap:16px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.field { display:flex; flex-direction:column; gap:4px; min-width:120px; }
.field label { color:var(--muted); font-size:12.5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], input[type=tel], textarea {
  background:var(--card2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:8px 10px; font:14px "Segoe UI", sans-serif; }
input:focus, textarea:focus { outline:none; border-color:var(--accent); }
input[type=number] { width:100px; }
textarea { width:100%; min-height:70px; font-family:Consolas, monospace; font-size:12.5px; }
.btn { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:8px 16px; font:600 14px "Segoe UI", sans-serif; cursor:pointer; text-decoration:none; display:inline-block; }
.btn:hover { background:var(--accent2); }
.btn.ghost { background:transparent; color:var(--text); border:1px solid var(--line); }
.btn.ghost:hover { border-color:var(--accent); }
.btn.danger { background:transparent; color:var(--red); border:1px solid rgba(255,107,107,.45); }
.btn.danger:hover { background:rgba(255,107,107,.12); }
.btn.small { padding:4px 10px; font-size:12.5px; font-weight:600; }
.msg { border-radius:10px; padding:10px 14px; margin:0 0 16px; border-left:4px solid var(--accent); background:var(--card); }
.msg.ok { border-left-color:var(--green); } .msg.err { border-left-color:var(--red); } .msg.warn { border-left-color:var(--yellow); }
.tablewrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:8px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; font-weight:600; }
td.num, th.num { text-align:right; }
td.actions { white-space:nowrap; text-align:right; }
.tag { display:inline-block; font-size:11px; font-weight:700; border-radius:5px; padding:1px 7px; }
.t-ok { background:rgba(76,210,138,.18); color:var(--green); }
.t-no { background:rgba(255,107,107,.18); color:var(--red); }
.t-warn { background:rgba(245,196,81,.18); color:var(--yellow); }
.t-dim { background:var(--card2); color:var(--muted); }
.stat { font-size:13.5px; color:var(--muted); }
.stat b { color:var(--text); }
.login { max-width:380px; margin:50px auto; }
.login .field { margin:0 0 12px; }
.login input { width:100%; }
.hint { color:var(--dim); font-size:12.5px; margin:4px 0 0; }
@media (max-width:640px) { .top { padding:10px 16px; } nav { margin-left:0; } }
/* 2026-10-03: customers + customer portal */
select { background:var(--card2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:8px 10px; font:14px "Segoe UI", sans-serif; }
.checks { display:flex; flex-wrap:wrap; gap:8px 18px; margin:12px 0 4px; }
.checks label { display:flex; align-items:center; gap:6px; cursor:pointer; }
table.kv th { width:42%; text-transform:none; letter-spacing:0; font-size:13px; font-weight:400; }
code.pw { background:var(--card2); border:1px solid var(--line); border-radius:6px; padding:2px 8px; font:600 14px Consolas, monospace; user-select:all; }
a.tag { text-decoration:none; }
/* 2026-10-03: licence lines + orders */
.badge { display:inline-block; min-width:18px; padding:0 6px; border-radius:9px; background:var(--yellow); color:#1b1b1b; font-size:11px; font-weight:700; text-align:center; line-height:18px; margin-left:4px; }
.subcard { background:var(--card2); border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin-top:14px; }
.subcard input[type=text], .subcard input[type=email], .subcard input[type=tel], .subcard input[type=number], .subcard input[type=date], .subcard select { background:var(--card); }
/* 2026-10-03: prices */
input.kr { width:110px; text-align:right; }
table.prices td { vertical-align:middle; }
table.kv tr.sum th, table.kv tr.sum td { font-weight:700; border-top:2px solid var(--line); }
table.kv td.num { text-align:right; white-space:nowrap; }
details.pricelist { margin:6px 0 4px; }
details.pricelist summary { cursor:pointer; color:var(--accent); font-weight:600; }
details.pricelist table { margin-top:8px; }
/* 2026-10-04 statistics: number tiles */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:0 0 16px; }
.tile { background:var(--card); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; }
.tile span { color:var(--muted); font-size:12.5px; }
.tile b { font-size:22px; font-variant-numeric:tabular-nums; }
