/* Zarit Kontrolpanel — stylesheet (genbrugt fra den godkendte mockup, te-ma-aware). */
:root{
  --bg:#F4F5F7; --surface:#FFFFFF; --surface2:#EEF0F3; --surface3:#E4E7EB;
  --text:#242A31; --text-muted:#646B74; --border:#E4E7EB; --border2:#D8DCE1;
  --sidebar-bg:#FFFFFF; --sidebar-text:#3A424B; --sidebar-muted:#8A929B;
  --ok:#15935B; --warn:#C7811A; --err:#D1434B; --err-soft:#FBE9EA;
  --accent:#0E7C86; --accent-fg:#FFFFFF; --accent-soft:#E2F1F2;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.08);
  --shadow-lg:0 12px 40px rgba(16,24,40,.18);
  --radius:12px;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0F1114; --surface:#171A1E; --surface2:#1D2024; --surface3:#272B31;
    --text:#E4E7EB; --text-muted:#9AA1A9; --border:#262B31; --border2:#30363d;
    --sidebar-bg:#141619; --sidebar-text:#C7CDD4; --sidebar-muted:#747C85;
    --ok:#36C48A; --warn:#E0A33C; --err:#F2686F; --err-soft:#3A2023;
    --accent-soft:#10312F;
  }
}
:root[data-theme="dark"]{
  --bg:#0F1114; --surface:#171A1E; --surface2:#1D2024; --surface3:#272B31;
  --text:#E4E7EB; --text-muted:#9AA1A9; --border:#262B31; --border2:#30363d;
  --sidebar-bg:#141619; --sidebar-text:#C7CDD4; --sidebar-muted:#747C85;
  --ok:#36C48A; --warn:#E0A33C; --err:#F2686F; --err-soft:#3A2023;
  --accent-soft:#10312F;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button{font-family:inherit}
.hidden{display:none !important}

/* Login */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-lg);width:100%;max-width:380px;padding:30px 28px}
.login-card .logo{width:46px;height:46px;border-radius:12px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;margin-bottom:16px}
.login-card h1{font-size:20px;font-weight:800;margin:0 0 4px}
.login-card p{color:var(--text-muted);font-size:13px;margin:0 0 20px}
.login-card label{display:block;font-size:12px;color:var(--text-muted);margin:12px 0 5px;font-weight:600}
.login-card input{width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:14px}
.login-card .err{color:var(--err);font-size:12.5px;margin-top:12px;min-height:16px}
.login-card button{margin-top:18px;width:100%;padding:12px;border-radius:10px;border:none;background:var(--accent);color:var(--accent-fg);font-weight:700;font-size:14px;cursor:pointer}

.app{display:flex;min-height:100vh}
/* Sidebar */
.sidebar{width:248px;flex:0 0 248px;background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.sw{padding:12px 12px 6px}
.sw-label{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--sidebar-muted);margin:2px 6px 6px;font-weight:700}
.sw-btn{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;cursor:pointer;color:var(--sidebar-text);text-align:left;font-weight:700;font-size:14px}
.sw-btn:hover{border-color:var(--accent)}
.sw-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.sw-caret{margin-left:auto;color:var(--sidebar-muted);font-size:11px}
.sw-menu{margin-top:6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}
.sw-item{display:flex;align-items:center;gap:10px;padding:9px 11px;cursor:pointer;color:var(--sidebar-text);font-weight:600;font-size:13px}
.sw-item:hover{background:var(--surface2)}
.sw-item .nm{display:flex;flex-direction:column;line-height:1.2}
.sw-item .nm small{color:var(--sidebar-muted);font-weight:500;font-size:11px}
.sw-item .chk{margin-left:auto;color:var(--accent);font-weight:800}
.brand{display:flex;align-items:center;gap:10px;padding:4px 16px 2px}
.brand-logo{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:16px;background:var(--accent)}
.brand-name{font-weight:800;font-size:17px;letter-spacing:-.01em}
.admin-pill{margin:6px 16px 10px;display:inline-block;align-self:flex-start;background:var(--err);color:#fff;font-size:9px;font-weight:800;letter-spacing:.08em;padding:3px 8px;border-radius:5px}
.nav{padding:4px 10px;overflow-y:auto;flex:1}
.nav-label{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--sidebar-muted);margin:14px 8px 6px;font-weight:700}
.nav-item{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:9px;color:var(--sidebar-text);cursor:pointer;font-weight:600;font-size:13.5px;margin:1px 0;border:none;background:none;width:100%;text-align:left}
.nav-item:hover{background:var(--surface2)}
.nav-item.active{background:var(--accent-soft);color:var(--accent)}
.nav-item.active svg{color:var(--accent)}
.nav-item svg{width:17px;height:17px;flex:0 0 17px;color:var(--sidebar-muted)}
/* Tema-vælger nederst i venstre menu (Lys/Mørk, Nemtrack-stil) */
.theme-row{display:flex;gap:6px;margin:10px 16px 4px}
.theme-seg{flex:1;padding:7px 0;border:1px solid var(--border);border-radius:9px;background:none;color:var(--sidebar-muted);font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.theme-seg:hover{background:var(--surface2)}
.theme-seg.active{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
/* Profil-link nederst i venstre menu (hele rækken klikbar) */
.nav-user{width:100%;border:none;border-top:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;gap:10px;background:none;color:var(--sidebar-text);font-family:inherit;text-align:left;cursor:pointer}
.nav-user:hover{background:var(--surface2)}
.nav-ava{width:30px;height:30px;border-radius:50%;background:var(--err);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.nav-user .nm{line-height:1.2}
.nav-user .nm small{display:block;color:var(--sidebar-muted);font-size:11px;font-weight:500}
.logout{margin:0 16px 12px;background:none;border:none;color:var(--text-muted);font-size:12px;cursor:pointer;text-align:left;padding:0}
.logout:hover{color:var(--err)}

/* Main */
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:14px;padding:16px 26px;border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:5}
.page-title{font-size:19px;font-weight:800;letter-spacing:-.01em;margin:0;display:flex;align-items:center;gap:11px}
.pt-ic{width:30px;height:30px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pt-ic svg{width:17px;height:17px}
.sep-chip{margin-left:12px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);padding:4px 10px;border-radius:999px}
.sep-chip .d{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
.icon-btn:hover{background:var(--surface2)}
.menu-btn{display:none;width:36px;height:36px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto}
.menu-btn:hover{background:var(--surface2)}
.drawer-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:65}
.drawer-backdrop.show{display:block}
.user-chip{display:flex;align-items:center;gap:9px}
.user-chip .nm{line-height:1.15;text-align:right}
.user-chip .nm small{display:block;color:var(--text-muted);font-size:11px}
.content{padding:24px 26px 40px;width:100%}
.loading{padding:40px;text-align:center;color:var(--text-muted)}

.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.kpi .v{font-size:26px;font-weight:800;letter-spacing:-.02em}
.kpi .l{color:var(--text-muted);font-size:12.5px;margin-top:3px}
.kpi .ic{width:30px;height:30px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;margin-top:10px}
.kpi.red .v{color:var(--err)}
.kpi.red .ic{background:var(--err-soft);color:var(--err)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.card h3{margin:0 0 2px;font-size:15px;font-weight:800}
.card .sub{color:var(--text-muted);font-size:12px;margin-bottom:12px}
/* Min profil — kort med ikon-overskrift (Jonas-stil), i panelets egen accent-farve */
.pcard-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.pcard-head h3{margin:0}
.pcard-ic{width:34px;height:34px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pcard-ic svg{width:18px;height:18px}
.pr-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.pr-grid .full{grid-column:1 / -1}
.pr-grid .pr-2fa-slot{grid-column:2} /* 2FA under Skift adgangskode (højre kolonne), ikke fuld bredde */
.pr-field{margin-bottom:12px}
.pr-lbl{display:block;font-size:12.5px;font-weight:600;color:var(--text);margin-bottom:5px}
.pr-input{width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface2);color:var(--text);font-size:13.5px;box-sizing:border-box}
.pr-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
@media(max-width:820px){.pr-grid{grid-template-columns:1fr}.pr-grid .pr-2fa-slot{grid-column:auto}}
.empty{color:var(--text-muted);text-align:center;padding:26px 0;font-size:13px}
.big-figure{font-size:34px;font-weight:800;color:var(--accent);letter-spacing:-.02em;margin:6px 0}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--border)}
td{padding:11px 10px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle}
tr:last-child td{border-bottom:none}
.t-strong{font-weight:700}
.t-sub{color:var(--text-muted);font-size:11.5px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;background:var(--surface2);padding:2px 7px;border-radius:5px;color:var(--text-muted)}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px}
.badge.pro{background:var(--accent-soft);color:var(--accent)}
.badge.ent{background:#efe8fb;color:#6b3fd1}
.badge.basis{background:var(--surface3);color:var(--text-muted)}
:root[data-theme="dark"] .badge.ent,:root:not([data-theme="light"]) .badge.ent{background:#2a2140;color:#b79bf0}
.status{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:12.5px}
.status .d{width:7px;height:7px;border-radius:50%}
.status.ok .d{background:var(--ok)} .status.ok{color:var(--ok)}
.status.wait .d{background:var(--warn)} .status.wait{color:var(--warn)}
.status.off .d{background:var(--text-muted)} .status.off{color:var(--text-muted)}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.ra{width:28px;height:28px;border-radius:7px;border:1px solid var(--border);background:var(--surface);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px}
.ra:hover{background:var(--surface2);color:var(--text)}
.ra.danger:hover{background:var(--err-soft);color:var(--err);border-color:var(--err)}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.search{flex:1;min-width:180px;max-width:340px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:13px}
.btn{padding:9px 14px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:600;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.btn:hover{background:var(--surface2)}
.btn.primary{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
.btn.primary:hover{filter:brightness(1.07)}
.btn.danger{color:var(--err);border-color:color-mix(in srgb,var(--err) 40%,transparent)}
.btn.danger:hover{background:var(--err-soft)}
.btn:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.count{color:var(--text-muted);font-size:12.5px;margin-left:2px}
.note{background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);color:var(--text);border-radius:10px;padding:11px 14px;font-size:12.5px;margin-bottom:16px}
.note b{color:var(--accent)}
.sys-down{background:var(--err-soft);border:1px solid color-mix(in srgb,var(--err) 30%,transparent);color:var(--err);border-radius:10px;padding:14px 16px;font-size:13px;font-weight:600}

/* Læring — forslag/regel-kort */
.lr-item{border:1px solid var(--border);border-radius:11px;padding:12px 14px;margin-bottom:10px;background:var(--surface)}
.lr-regel{width:100%;padding:8px 10px;border:1px solid var(--surface3);border-radius:8px;background:var(--surface2);color:var(--text);font-size:13.5px;font-family:inherit;box-sizing:border-box;resize:vertical}
.lr-regel-txt{font-size:13.5px;font-weight:600;color:var(--text)}
.lr-ctx{margin:9px 0 0;font-size:12px;color:var(--text-muted);display:grid;gap:4px}
.lr-tag{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:1px 6px;border-radius:5px;margin-right:6px}
.lr-tag.bad{background:var(--err-soft);color:var(--err)}
.lr-tag.good{background:var(--accent-soft);color:var(--accent)}
.lr-meta{font-size:11px;color:var(--text-muted);margin:8px 0 10px}
.lr-btns{display:flex;gap:8px}

.minibars{display:flex;align-items:flex-end;gap:12px;height:120px;padding:10px 6px 0}
.mb{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.mb .col{width:100%;max-width:60px;background:var(--accent);border-radius:6px 6px 0 0;opacity:.85}
.mb .mx{font-size:11px;color:var(--text-muted)}
.mb .ct{font-size:11px;font-weight:700}

/* Modal */
.overlay{position:fixed;inset:0;background:rgba(8,12,16,.55);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;z-index:40;overflow-y:auto}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;max-width:760px;box-shadow:var(--shadow-lg);margin:auto}
.modal-head{display:flex;align-items:center;padding:18px 22px;border-bottom:1px solid var(--border)}
.modal-head h2{margin:0;font-size:18px;font-weight:800}
.modal-head .x{margin-left:auto;width:30px;height:30px;border:none;background:var(--surface2);border-radius:8px;cursor:pointer;color:var(--text-muted);font-size:16px}
.modal-body{padding:20px 22px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 18px;margin-bottom:18px}
.info-grid .k{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.info-grid .vv{font-weight:700;margin-top:2px}
.mod-head{display:flex;align-items:center;margin:6px 0 10px}
.mod-head .ttl{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-weight:700}
.mod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.mod{border:1px solid var(--border);border-radius:10px;padding:11px 12px;display:flex;align-items:flex-start;gap:10px;background:var(--surface)}
.mod .nm{font-size:12.5px;font-weight:600;line-height:1.25}
.tgl{margin-left:auto;flex:0 0 38px;width:38px;height:22px;border-radius:999px;background:var(--surface3);border:none;cursor:pointer;position:relative;transition:background .15s}
.tgl::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.tgl.on{background:var(--accent)}
.tgl.on::after{left:18px}
.tgl:disabled{opacity:.5;cursor:wait}
.modal-foot{display:flex;gap:10px;padding:16px 22px;border-top:1px solid var(--border);flex-wrap:wrap}
.modal-foot .spacer{flex:1}

.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--text);color:var(--bg);padding:12px 20px;border-radius:10px;font-weight:600;font-size:13px;opacity:0;pointer-events:none;transition:all .25s;z-index:60;box-shadow:var(--shadow-lg);max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.err{background:var(--err);color:#fff}

@media (max-width:880px){
  .sidebar{position:fixed;top:0;left:0;height:100vh;width:min(84vw,300px);flex-basis:auto;z-index:70;transform:translateX(-100%);transition:transform .25s ease;box-shadow:var(--shadow-lg)}
  .sidebar.open{transform:translateX(0)}
  .menu-btn{display:flex}
  .sep-chip{display:none}
  .kpis{grid-template-columns:1fr 1fr}
  .grid2{grid-template-columns:1fr}
  .mod-grid{grid-template-columns:1fr 1fr}
  .info-grid{grid-template-columns:1fr 1fr}
  .content{padding:16px}
  .topbar{padding:12px 16px}
  .m-switch{display:flex;gap:8px;padding:12px 16px 0;overflow-x:auto}
  .m-switch .ms{flex:0 0 auto;padding:7px 13px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-weight:700;font-size:12.5px;display:flex;gap:7px;align-items:center;cursor:pointer;color:var(--text)}
  .m-switch .ms.active{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
}
.m-switch{display:none}
@media (max-width:520px){.kpis{grid-template-columns:1fr}.mod-grid{grid-template-columns:1fr}}

/* === Nemtrack-stil overblik (grupperet menu + kræver handling + hurtige handlinger + nøgletal m. ikon) === */
.snart{margin-left:auto;font-size:9px;font-weight:800;letter-spacing:.05em;background:var(--surface3);color:var(--text-muted);padding:2px 6px;border-radius:999px}
.alert-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:20px;overflow:hidden}
.alert-card .ah{display:flex;align-items:center;gap:9px;padding:14px 18px;border-bottom:1px solid var(--border);font-weight:800;font-size:14px}
.alert-card .ah svg{width:18px;height:18px;color:var(--text-muted)}
.alert-item{display:flex;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid var(--border)}
.alert-item:last-child{border-bottom:none}
.ai-ic{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 30px}
.ai-ic svg{width:17px;height:17px}
.ai-ic.warn{background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}
.ai-ic.err{background:var(--err-soft);color:var(--err)}
.ai-tx{flex:1;font-size:13.5px;font-weight:700}
.ai-tx small{display:block;color:var(--text-muted);font-weight:500;font-size:12px}
.ai-go{font-size:12.5px;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap;cursor:pointer}
.alert-ok{display:flex;align-items:center;gap:13px;padding:16px 18px}
.ok-ic{width:30px;height:30px;border-radius:8px;background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok);display:flex;align-items:center;justify-content:center;flex:0 0 30px}
.ok-ic svg{width:17px;height:17px}
.ok-tx{font-weight:700}.ok-tx small{display:block;color:var(--text-muted);font-weight:500}
.section-label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);font-weight:800;margin:4px 2px 11px}
.qa-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.qa{display:flex;align-items:center;gap:14px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);cursor:pointer;color:var(--text);width:100%}
.qa:hover{border-color:var(--accent)}
.qa-ic{width:42px;height:42px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:0 0 42px}
.qa-ic svg{width:21px;height:21px}
.qa-t{font-weight:700;font-size:14px}
.qa-s{color:var(--text-muted);font-size:12px;margin-top:1px}
.kpi{display:flex;flex-direction:column}
.kpi .ic{margin:0 0 12px}
.kpi .ic svg{width:17px;height:17px}
@media(max-width:880px){.qa-row{grid-template-columns:1fr}}

/* ===== Notifikationer: klokke + konvolut i topbjaelken + menu-badges (kopieret fra PaintPilot) ===== */
.notif-wrap{margin-left:auto;display:flex;align-items:center;gap:10px}
.topbar-notif{position:relative}
.notif-bell{position:relative;background:var(--surface2);border:1px solid var(--border);color:var(--text-muted);width:38px;height:38px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s,border-color .15s;padding:0}
.notif-bell:hover{background:var(--surface3);color:var(--text)}
.notif-bell svg{width:18px;height:18px;transform-origin:50% 15%}
@keyframes notif-shake{0%{transform:rotate(0)}5%{transform:rotate(-18deg)}10%{transform:rotate(16deg)}15%{transform:rotate(-14deg)}20%{transform:rotate(12deg)}25%{transform:rotate(-10deg)}30%{transform:rotate(8deg)}35%{transform:rotate(-6deg)}40%{transform:rotate(4deg)}45%{transform:rotate(-2deg)}50%{transform:rotate(0)}100%{transform:rotate(0)}}
.notif-bell.has-notif svg{animation:notif-shake 1s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.notif-bell.has-notif svg{animation:none}}
.notif-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;background:#ef4444;color:#fff;font-size:10.5px;font-weight:700;line-height:18px;text-align:center;border-radius:9px;border:2px solid var(--surface);pointer-events:none}
.notif-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:320px;max-height:420px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:100;padding:8px 0}
.notif-dropdown[hidden]{display:none}
.notif-head{font-weight:700;font-size:13px;padding:8px 14px 10px;border-bottom:1px solid var(--border);color:var(--accent)}
.notif-empty{padding:18px 14px;color:var(--text);opacity:.6;text-align:center;font-size:13px}
.notif-item{padding:10px 14px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s,padding-left .15s;position:relative}
.notif-item::after{content:'\203a';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--accent);font-size:18px;opacity:0;transition:opacity .15s,transform .15s}
.notif-item:hover{background:var(--surface2);padding-left:18px}
.notif-item:hover::after{opacity:1;transform:translateY(-50%) translateX(-2px)}
.notif-item:last-of-type{border-bottom:none}
.notif-item-title{font-size:13px;font-weight:600;color:var(--text)}
.notif-item-sub{font-size:12px;color:var(--text);opacity:.7;margin-top:2px}
.nav-badge{margin-left:auto;background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:10px;min-width:18px;text-align:center;line-height:1.5}
/* Zarit: Overblik over alle systemer (renderOverblik i app.js, 11.11.2026) */
.ov-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.ov-sh{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ov-sh b{font-size:15px}
.ov-sh small{display:block;color:var(--text-muted);font-size:12px;font-weight:500}
.ov-dot{width:12px;height:12px;border-radius:50%;flex:0 0 12px}
.ov-rw{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--border);font-size:13px}
.ov-rw span{color:var(--text-muted)}
.ov-btn{margin-top:12px;width:100%}
.ov-bars{display:flex;align-items:flex-end;gap:18px;height:190px;padding:10px 4px 0}
.ov-m{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;min-width:0}
.ov-cols{flex:1;display:flex;align-items:flex-end;gap:4px;width:100%;justify-content:center}
.ov-col{width:16px;border-radius:5px 5px 0 0}
.ov-lbl{font-size:11.5px;color:var(--text-muted)}
.ov-tot{font-size:11px;font-weight:700;white-space:nowrap}
.ov-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--text-muted);margin-top:8px}
.ov-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
@media (max-width:880px){.ov-cards{grid-template-columns:1fr}.ov-bars{gap:8px}.ov-col{width:10px}.ov-tot{font-size:9.5px}}

/* Hjælpetekster bag et ⓘ (12.11.2026) */
.info-i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;padding:0;border-radius:50%;border:1.5px solid var(--text-muted);background:transparent;color:var(--text-muted);font:700 10px/1 Georgia,serif;font-style:italic;text-transform:none;letter-spacing:0;cursor:pointer;vertical-align:middle;flex:0 0 auto}
.info-i:hover,.info-i:focus-visible{border-color:var(--accent);color:var(--accent);outline:none}
.mod-head .info-i{margin-left:8px}
.info-pop{position:fixed;z-index:1000;width:330px;max-width:calc(100vw - 16px);padding:14px 16px 10px;background:var(--surface);color:var(--text);border:1px solid var(--surface3);border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.20);font-size:13px;line-height:1.55;font-weight:400;text-transform:none;letter-spacing:normal;text-align:left}
.info-pop .ip-titel{display:flex;align-items:center;gap:8px;margin:0 26px 10px 0;padding-bottom:9px;border-bottom:1px solid var(--surface3);font-weight:700;font-size:14px;color:var(--text)}
.info-pop .ip-ic{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font:700 11px/1 Georgia,serif;font-style:italic;flex:0 0 auto}
.info-pop .ip-luk{position:absolute;top:10px;right:10px;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--text-muted);font-size:13px;cursor:pointer}
.info-pop .ip-luk:hover{background:var(--surface2);color:var(--text)}
.info-pop .ip-tekst p{margin:0 0 8px}
.info-pop .ip-tekst h4{margin:12px 0 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.info-pop .ip-tekst ul{margin:0 0 8px;padding:0;list-style:none}
.info-pop .ip-tekst li{position:relative;margin:5px 0;padding-left:15px}
.info-pop .ip-tekst li::before{content:'';position:absolute;left:3px;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.info-pop .ip-tekst b{font-weight:700}

/* Faner (12.11.2026): samme udseende alle steder i panelet */
.faner{display:flex;gap:2px;padding:0 22px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}
.faner::-webkit-scrollbar{display:none}
.fane{appearance:none;border:0;background:transparent;padding:12px 12px 11px;margin-bottom:-1px;border-bottom:2px solid transparent;font:inherit;font-size:13px;font-weight:600;color:var(--text-muted);cursor:pointer;white-space:nowrap}
.fane:hover{color:var(--text)}
.fane.aktiv{color:var(--accent);border-bottom-color:var(--accent)}
.fane:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:6px}

/* Funktioner pr. kunde (12.11.2026) */
.cfn-liste{display:flex;flex-direction:column;gap:10px}
.cfn-row{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--surface)}
.cfn-top{display:flex;align-items:center;gap:12px}
.cfn-navn{font-weight:700;font-size:14px;display:flex;align-items:center}
.cfn-status{margin-top:2px;font-size:12px}
.cfn-status .status{font-size:12px}
.cfn-cfg{margin-top:12px;padding-top:12px;border-top:1px dashed var(--border)}
.cfn-advarsel{margin-top:10px;padding:9px 11px;border-radius:8px;background:rgba(199,129,26,.12);color:var(--warn);font-size:12.5px;line-height:1.45}
.cfn-fod{display:flex;align-items:center;gap:10px;margin-top:14px}
.cfn-sw{position:relative;display:inline-block;width:40px;height:23px;flex:0 0 auto;cursor:pointer}
.cfn-sw input{position:absolute;opacity:0;width:0;height:0}
.cfn-sw span{position:absolute;inset:0;border-radius:999px;background:var(--surface3);transition:background .15s}
.cfn-sw span::after{content:"";position:absolute;top:2px;left:2px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:left .15s}
.cfn-sw input:checked + span{background:var(--accent)}
.cfn-sw input:checked + span::after{left:19px}
.cfn-sw input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:640px){.cfn-cfg .info-grid{grid-template-columns:1fr!important}}

/* Supportsager på Overblik (12.11.2026) */
.ov-sup{cursor:pointer}
.ov-sup:hover{background:var(--surface2)}
.ov-sup .ov-dot{flex:0 0 auto}
.ov-sup-n{margin-left:2px;background:var(--accent);color:var(--accent-fg);font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px}
.ov-sup-nyt{font-size:11.5px;font-weight:800;color:#fff;background:#ef4444;padding:2px 9px;border-radius:999px;white-space:nowrap}
