/* =====================================================================
   nl-admin.css – admin-ansøgningerne i variant D "Køen" (06-10-2026)

   Bruges af partials/adminNav.ejs (alle admin-sider), adminPanel/applicationsList.ejs
   og staff-visningerne i applications/application.ejs. JS: /scripts/nl-admin.js.

   Almindelig CSS med vilje: public/styles/main.css er en Tailwind-build fra februar,
   så nye Tailwind-klasser findes ikke. Alt er præfikset nlD- så intet rammer resten
   af sitet. Sagsmappe-stilen: grafit + rødt glas-skær, INGEN streger om kasser –
   tone og luft adskiller. Barlow Semi Condensed til tal og titler.

   Layout.ejs linker filen med ?v=… – den SKAL bumpes ved hver ændring, ellers
   serverer Apache den gamle i 30 dage.
   ===================================================================== */
:root {
    --nlD-bg: #150a0e;
    --nlD-s1: #1f0f15;
    --nlD-s2: #2b141d;
    --nlD-s3: #3a1b27;
    --nlD-s4: #48222f;
    --nlD-ink: #fff2e4;
    --nlD-txt: #f1e2d4;
    --nlD-mut: #c8b3a5;
    --nlD-dim: #a8938a;
    --nlD-red: #d9271c;
    --nlD-red-hi: #ff8a5c;
    --nlD-glass: rgba(217, 39, 28, .14);
    --nlD-glass-2: rgba(242, 98, 28, .22);
    --nlD-ok: #34d399;
    --nlD-mid: #fbbf24;
    --nlD-old: #f87171;
    --nlD-org: #fb923c;
    --nlD-gray: #9ca3af;
    /* Højden på sitets klæbrige menubar (.nlrp-top). nl-admin.js måler den og sætter
       variablen, fordi gæstebanneret kan gøre den højere – 72px er kun startværdien. */
    --nlD-top: 72px;
    /* Samme bredde som resten af admin (Tailwinds "container max-w-6xl px-4"), så
       fanerne ikke hopper sidelæns når man skifter mellem Oversigt, Brugere og køen. */
    --nlD-max: 72rem;
    --nlD-pad: 1rem;
    --nlD-cond: 'Barlow Semi Condensed', 'Outfit', system-ui, sans-serif;
    --nlD-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nlD-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- side-ramme ---------- */
.nlD-page {
    background: var(--nlD-bg);
    color: var(--nlD-txt);
    font: 400 15px/1.5 var(--nlD-sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    color-scheme: dark;
}
.nlD-page *, .nlD-page *::before, .nlD-page *::after,
.nlD-adm *, .nlD-adm *::before, .nlD-adm *::after { box-sizing: border-box; }
:where(.nlD-page, .nlD-adm) a { color: inherit; text-decoration: none; }
:where(.nlD-page, .nlD-adm) :focus-visible { outline: 2px solid var(--nlD-red-hi); outline-offset: 2px; border-radius: 8px; }
/* Tailwinds [hidden]-regel taber til display:grid på rækkerne – derfor !important */
.nlD-page [hidden] { display: none !important; }
.nlD-i { width: 18px; height: 18px; flex: none; display: inline-block; }
.nlD-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nlD-wrap { max-width: var(--nlD-max); margin: 0 auto; padding: 0 var(--nlD-pad); }

/* ---------- avatar ---------- */
.nlD-av {
    --h: 350;
    width: 38px; height: 38px; flex: none;
    border-radius: 11px;
    display: grid; place-items: center;
    font: 700 1.05rem/1 var(--nlD-cond);
    color: hsl(var(--h) 85% 84%);
    background: linear-gradient(145deg, hsl(var(--h) 32% 30%), hsl(var(--h) 26% 21%));
    overflow: hidden;
}
.nlD-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nlD-av.is-sm { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
.nlD-av.is-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1.35rem; }

/* ---------- admin-faner (partials/adminNav.ejs – alle admin-sider) ---------- */
.nlD-adm { background: linear-gradient(180deg, rgba(217, 39, 28, .07), rgba(217, 39, 28, 0) 90%); font-family: var(--nlD-sans); }
.nlD-adm-in { max-width: var(--nlD-max); margin: 0 auto; padding: 14px var(--nlD-pad) 0; display: flex; align-items: center; gap: 8px; }
.nlD-tabs {
    position: relative; flex: 1; min-width: 0;
    display: flex; gap: 2px; padding: 4px;
    /* På de øvrige admin-sider er baggrunden DaisyUI's skifer-grå; der virker en
       mørk tone bedre end grafittens s1, som næsten forsvinder på den. */
    background: rgba(8, 9, 12, .38); border-radius: 13px;
    overflow-x: auto; scrollbar-width: none;
}
.nlD-page .nlD-tabs, .nlD-page .nlD-tab-ext { background: var(--nlD-s1); }
.nlD-tabs::-webkit-scrollbar { display: none; }
.nlD-tab {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px; border-radius: 10px;
    white-space: nowrap; font-weight: 600; font-size: .86rem; color: var(--nlD-mut);
    transition: color .15s ease;
}
.nlD-tab .nlD-i { width: 16px; height: 16px; opacity: .85; }
.nlD-tab:hover { color: var(--nlD-ink); }
.nlD-tab[aria-current="page"] { color: #fff; background: var(--nlD-glass-2); }
.nlD-tabs.has-ind .nlD-tab[aria-current="page"] { background: transparent; }
.nlD-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--nlD-red); color: #fff; font: 700 .76rem/20px var(--nlD-cond); text-align: center; }
.nlD-tabs-ind {
    position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(217, 39, 28, .28), rgba(217, 39, 28, .14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    opacity: 0; pointer-events: none;
}
.nlD-tabs.has-ind .nlD-tabs-ind { opacity: 1; }
.nlD-tabs.is-ready .nlD-tabs-ind { transition: transform .32s var(--nlD-ease), width .32s var(--nlD-ease); }
.nlD-tab-ext { flex: none; background: rgba(8, 9, 12, .38); height: 48px; border-radius: 13px; }

/* ---------- side-hoved + nøgletal (også titlen på de øvrige admin-sider) ---------- */
.nlD-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 0 18px; }
.nlD-head > div:first-child { min-width: 0; }
.nlD-kick { margin: 0; font: 700 .72rem/1 var(--nlD-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nlD-red-hi); }
.nlD-h1 { margin: 8px 0 6px; font: 800 clamp(1.9rem, 3.2vw, 2.55rem)/1.05 var(--nlD-cond); letter-spacing: -.005em; color: #fff; overflow-wrap: anywhere; }
.nlD-sub { margin: 0; color: var(--nlD-mut); font-size: .95rem; }
.nlD-head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.nlD-kpis { display: flex; gap: 8px; flex: none; }
.nlD-kpi { min-width: 128px; padding: 12px 16px 11px; border-radius: 13px; background: var(--nlD-s1); }
.nlD-kpi-v { display: block; font: 700 1.95rem/1 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlD-kpi-v small { font-size: 1.05rem; font-weight: 600; color: var(--nlD-mut); margin-left: 1px; }
.nlD-kpi-l { display: block; margin-top: 6px; font-size: .76rem; color: var(--nlD-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.nlD-kpi.is-hot { background: linear-gradient(135deg, rgba(217, 39, 28, .24), rgba(217, 39, 28, .07)), var(--nlD-s1); }
.nlD-kpi.is-hot .nlD-kpi-v { color: #fecdd3; }

/* ---------- klæbrig værktøjslinje (søg + filter) ---------- */
/* Uigennemsigtig med vilje: halvgennemsigtig rgba lod rækkerne skinne igennem i Chrome uden GPU. */
.nlD-bar { position: sticky; top: var(--nlD-top); z-index: 30; background: var(--nlD-bg); transition: box-shadow .2s ease; }
.nlD-bar.is-stuck { box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .9); }
.nlD-bar-in { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.nlD-search { position: relative; flex: 1 1 260px; min-width: 0; margin: 0; }
.nlD-search .nlD-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--nlD-mut); pointer-events: none; }
.nlD-search input {
    width: 100%; height: 48px; padding: 0 46px 0 44px;
    border: 0; border-radius: 13px; background: var(--nlD-s1);
    color: var(--nlD-ink); font: 500 .95rem var(--nlD-sans);
    outline: none; transition: background .15s ease, box-shadow .15s ease;
    -webkit-appearance: none; appearance: none;
}
.nlD-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nlD-search input::placeholder { color: var(--nlD-dim); }
.nlD-search input:hover { background: var(--nlD-s2); }
.nlD-search input:focus { background: var(--nlD-s2); box-shadow: 0 0 0 2px rgba(217, 39, 28, .65); }
.nlD-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--nlD-s3); color: var(--nlD-mut); font: 600 .78rem/24px var(--nlD-cond); text-align: center; pointer-events: none; }

/* segmenteret filter – ruller vandret i stedet for at brække om på smalle skærme */
.nlD-seg {
    position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%;
    display: flex; gap: 2px; padding: 4px;
    background: var(--nlD-s1); border-radius: 13px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.nlD-seg::-webkit-scrollbar { display: none; }
.nlD-seg.is-overflow, .nlD-tabs.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.nlD-seg.is-overflow.is-end, .nlD-tabs.is-overflow.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.nlD-seg.is-overflow.is-mid, .nlD-tabs.is-overflow.is-mid { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.nlD-seg-b {
    position: relative; z-index: 1; flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px 0 14px; border: 0; border-radius: 10px;
    background: transparent; color: var(--nlD-mut);
    font: 600 .86rem/1 var(--nlD-sans); white-space: nowrap; cursor: pointer;
    transition: color .15s ease;
}
.nlD-seg-b:hover { color: var(--nlD-ink); }
.nlD-seg-b[aria-pressed="true"] { color: #fff; background: var(--nlD-glass-2); }
.nlD-seg.has-ind .nlD-seg-b[aria-pressed="true"] { background: transparent; }
.nlD-seg-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--nlD-s3); color: var(--nlD-txt); font: 700 .8rem/22px var(--nlD-cond); text-align: center; font-variant-numeric: tabular-nums; transition: background .15s ease, color .15s ease; }
.nlD-seg-b[aria-pressed="true"] .nlD-seg-n { background: rgba(255, 255, 255, .14); color: #fff; }
.nlD-seg-b .nlD-dot { margin-right: -2px; }
.nlD-seg-ind {
    position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: 10px;
    background: linear-gradient(180deg, rgba(217, 39, 28, .30), rgba(217, 39, 28, .15));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    opacity: 0; pointer-events: none;
}
.nlD-seg.has-ind .nlD-seg-ind { opacity: 1; }
.nlD-seg.is-ready .nlD-seg-ind { transition: transform .3s var(--nlD-ease), width .3s var(--nlD-ease); }

/* ---------- prioritet / resultat (sætter kun farvevariablen --p) ---------- */
.nlD-page .is-ny { --p: var(--nlD-ok); }
.nlD-page .is-mid { --p: var(--nlD-mid); }
.nlD-page .is-old { --p: var(--nlD-old); }
.nlD-page .is-godkendt { --p: var(--nlD-ok); }
.nlD-page .is-afvist { --p: var(--nlD-old); }
.nlD-page .is-samtale { --p: var(--nlD-mid); }
.nlD-page .is-lydloes { --p: var(--nlD-gray); }
.nlD-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--p, var(--nlD-mut)); display: inline-block; }
.nlD-page .is-old .nlD-dot::after, .nlD-dot.is-pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: var(--p, var(--nlD-old)); opacity: .45;
    animation: nlD-puls 1.8s ease-out infinite;
}
@keyframes nlD-puls { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- køens metalinje + legende ---------- */
.nlD-qmeta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px 10px; flex-wrap: wrap; }
.nlD-qmeta-t { margin: 0; font: 700 1.05rem/1 var(--nlD-cond); color: #fff; letter-spacing: .01em; }
.nlD-qmeta-t span { color: var(--nlD-mut); font-weight: 600; }
.nlD-qmeta-type b { color: #fff; font-weight: 700; }
.nlD-qmeta-type a { display: inline-block; padding: 14px 0; margin: -14px 0; color: var(--nlD-red-hi); font-weight: 700; } /* 44 px tryk-mål uden at flytte linjen */
.nlD-qmeta-type a:hover { color: #fff; }
.nlD-legend { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--nlD-mut); }
.nlD-legend li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ---------- kø-rækker (aktive) ---------- */
.nlD-q-cols {
    display: grid;
    grid-template-columns: 26px 38px minmax(130px, 1.5fr) 132px 112px minmax(190px, 1.35fr) 112px;
    grid-template-areas: "no av name type sent wait go";
    column-gap: 14px; align-items: center;
}
.nlD-qhead { padding: 0 16px 8px 20px; font: 600 .7rem/1 var(--nlD-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--nlD-dim); }
.nlD-qhead > :nth-child(1) { grid-area: no; }
.nlD-qhead > :nth-child(2) { grid-area: name; grid-column: av / name; }
.nlD-qhead > :nth-child(3) { grid-area: type; }
.nlD-qhead > :nth-child(4) { grid-area: sent; }
.nlD-qhead > :nth-child(5) { grid-area: wait; }
.nlD-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nlD-row {
    position: relative; overflow: hidden;
    min-height: 64px; padding: 12px 16px 12px 20px;
    border-radius: 13px; background: var(--nlD-s1);
    transition: background .15s ease, transform .18s var(--nlD-ease);
}
.nlD-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.nlD-row::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(217, 39, 28, .16), rgba(217, 39, 28, 0) 55%); opacity: 0; transition: opacity .2s ease; }
.nlD-row:hover, .nlD-row:focus-visible { background: var(--nlD-s2); transform: translateY(-1px); }
.nlD-row:hover::after, .nlD-row:focus-visible::after { opacity: 1; }
.nlD-page .nlD-row:focus-visible { outline: 2px solid var(--nlD-red-hi); outline-offset: 2px; border-radius: 13px; }
.nlD-c-no { grid-area: no; font: 600 .95rem/1 var(--nlD-cond); color: var(--nlD-dim); font-variant-numeric: tabular-nums; }
.nlD-c-av { grid-area: av; }
.nlD-c-name { grid-area: name; min-width: 0; }
.nlD-c-name b { display: block; font-weight: 600; font-size: 1rem; color: var(--nlD-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-c-name small { display: block; margin-top: 2px; font-size: .78rem; color: var(--nlD-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-c-meta { display: contents; }
.nlD-c-type { grid-area: type; min-width: 0; }
.nlD-c-sent { grid-area: sent; font-size: .84rem; color: var(--nlD-mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nlD-c-sent b { color: var(--nlD-txt); font-weight: 500; }
.nlD-c-wait { grid-area: wait; display: flex; align-items: center; gap: 12px; min-width: 0; }
.nlD-c-go { grid-area: go; justify-self: end; }

.nlD-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--nlD-s3); color: var(--nlD-txt); font: 600 .76rem/26px var(--nlD-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-res { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font: 700 .76rem/1 var(--nlD-sans); white-space: nowrap; color: var(--p); background: color-mix(in srgb, var(--p) 14%, transparent); }
.nlD-res .nlD-i { width: 14px; height: 14px; }

.nlD-wt { display: inline-flex; align-items: center; gap: 8px; min-width: 76px; font: 700 1.08rem/1 var(--nlD-cond); color: var(--p); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nlD-meter { position: relative; flex: 1 1 auto; max-width: 120px; min-width: 48px; height: 6px; border-radius: 3px; background: var(--nlD-s3); overflow: hidden; }
.nlD-meter > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 3px; background: var(--p); opacity: .9; transform-origin: left; animation: nlD-fyld .8s var(--nlD-ease) both; }
/* streger ved 24 t og 72 t på en 7-dages skala – samme grænser som farverne */
.nlD-meter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(14.3% - 1px), rgba(19, 20, 23, .9) calc(14.3% - 1px) 14.3%, transparent 14.3% calc(42.9% - 1px), rgba(19, 20, 23, .9) calc(42.9% - 1px) 42.9%, transparent 42.9%); }
@keyframes nlD-fyld { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nlD-go { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 16px; border-radius: 10px; background: rgba(217, 39, 28, .10); color: #fda4af; font: 700 .9rem/1 var(--nlD-cond); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nlD-go .nlD-i { width: 16px; height: 16px; transition: transform .2s var(--nlD-ease); }
.nlD-row:hover .nlD-go, .nlD-row:focus-visible .nlD-go { background: var(--nlD-red); color: #fff; }
.nlD-row:hover .nlD-go .nlD-i, .nlD-row:focus-visible .nlD-go .nlD-i { transform: translateX(3px); }
.nlD-go.is-quiet { background: var(--nlD-s3); color: var(--nlD-txt); }
.nlD-row:hover .nlD-go.is-quiet, .nlD-row:focus-visible .nlD-go.is-quiet { background: var(--nlD-s4); color: #fff; }
.nlD-chev { display: none; color: var(--nlD-dim); }

.nlD-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 2px 64px; font-size: .8rem; color: var(--nlD-dim); }
.nlD-foot a { color: var(--nlD-txt); font-weight: 600; }
.nlD-foot a:hover { color: #fff; }
.nlD-keys { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nlD-keys kbd { display: inline-block; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 4px; border-radius: 6px; background: var(--nlD-s2); color: var(--nlD-txt); font: 600 .76rem/22px var(--nlD-cond); text-align: center; }

.nlD-empty { padding: 56px 20px; border-radius: 16px; background: var(--nlD-s1); text-align: center; }
.nlD-empty b { display: block; font: 700 1.3rem/1.2 var(--nlD-cond); color: #fff; }
.nlD-empty p { margin: 6px 0 16px; color: var(--nlD-mut); }
.nlD-empty p:last-child { margin-bottom: 0; }
.nlD-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--nlD-s3); color: var(--nlD-ink); font: 600 .9rem/1 var(--nlD-sans); cursor: pointer; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.nlD-btn:hover { background: var(--nlD-s4); color: #fff; }
.nlD-btn.is-ghost { background: transparent; color: var(--nlD-mut); }
.nlD-btn.is-ghost:hover { background: var(--nlD-s2); color: #fff; }

/* indlæsning: rækkerne glider ind én for én (kun de første ~20 får forsinkelse, se --i) */
.nlD-list > .nlD-row { animation: nlD-ind .45s var(--nlD-ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes nlD-ind { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- toast (?message= efter et svar) ---------- */
.nlD-toast { position: fixed; z-index: 90; top: calc(var(--nlD-top) + 14px); right: 20px; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px)); padding: 14px 18px 14px 14px; border-radius: 14px; background: var(--nlD-s2); color: var(--nlD-ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); font: 500 .95rem/1.4 var(--nlD-sans); transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s var(--nlD-ease), opacity .3s ease, visibility 0s linear .3s; }
.nlD-toast.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s var(--nlD-ease), opacity .3s ease; }
.nlD-toast-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, .16); color: var(--nlD-ok); flex: none; }
/* advarsel (fx unban der ikke gik igennem i spillet): gul, bliver stående til den lukkes */
.nlD-toast.is-warn { background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .05)), var(--nlD-s2); }
.nlD-toast.is-warn .nlD-toast-i { background: rgba(251, 191, 36, .18); color: var(--nlD-mid); }
.nlD-toast-x { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--nlD-mut); cursor: pointer; }
.nlD-toast-x:hover { background: var(--nlD-s3); color: #fff; }

/* ---------- lagrede: fordeling + "viser X af Y" ---------- */
.nlD-dist { padding: 16px 18px; border-radius: 14px; background: var(--nlD-s1); }
.nlD-dist-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--nlD-s3); }
.nlD-dist-bar i { display: block; height: 100%; background: var(--p); flex: var(--n) 1 0; min-width: 0; transform-origin: left; animation: nlD-fyld .9s var(--nlD-ease) both; }
.nlD-dist-l { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; list-style: none; }
.nlD-dist-l li { display: flex; align-items: baseline; gap: 8px; font-size: .84rem; color: var(--nlD-mut); }
.nlD-dist-l b { font: 700 1.25rem/1 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; }
.nlD-dist-l .nlD-dot { align-self: center; }
.nlD-limit { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 10px 10px 16px; border-radius: 13px; background: linear-gradient(90deg, rgba(251, 191, 36, .12), rgba(251, 191, 36, .04)); color: #fde68a; font-size: .88rem; }
.nlD-limit p { margin: 0; flex: 1; min-width: 0; }
.nlD-limit b { color: #fff; font-family: var(--nlD-cond); font-size: 1rem; }
.nlD-limit .nlD-btn { background: rgba(251, 191, 36, .16); color: #fde68a; }
.nlD-limit .nlD-btn:hover { background: rgba(251, 191, 36, .26); color: #fff; }
.nlD-day { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 18px 4px 8px; font: 700 .95rem/1 var(--nlD-cond); color: #fff; letter-spacing: .02em; }
.nlD-day span { font: 500 .8rem/1 var(--nlD-sans); color: var(--nlD-dim); }

.nlD-s-cols {
    display: grid;
    grid-template-columns: 38px minmax(140px, 1.3fr) 140px 116px minmax(130px, 1fr) 84px 76px;
    grid-template-areas: "av name type res by time go";
    column-gap: 14px; align-items: center;
}
.nlD-s-cols.nlD-qhead { padding-left: 20px; padding-top: 14px; }
.nlD-s-cols.nlD-qhead > :nth-child(1) { grid-area: name; grid-column: av / name; }
.nlD-s-cols.nlD-qhead > :nth-child(2) { grid-area: type; }
.nlD-s-cols.nlD-qhead > :nth-child(3) { grid-area: res; }
.nlD-s-cols.nlD-qhead > :nth-child(4) { grid-area: by; }
.nlD-s-cols.nlD-qhead > :nth-child(5) { grid-area: time; }
.nlD-c-res { grid-area: res; }
.nlD-c-by { grid-area: by; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .86rem; color: var(--nlD-txt); }
.nlD-c-by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-c-by .is-ukendt { color: var(--nlD-dim); }
.nlD-c-time { grid-area: time; font-size: .84rem; color: var(--nlD-mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nlD-c-time b { display: block; font: 700 .98rem/1.1 var(--nlD-cond); color: var(--nlD-txt); }

/* =====================================================================
   DETALJE (applications/application.ejs, kun staff-visningerne)
   ===================================================================== */
/* Casebaren under fanerne: tilbage, brødkrumme (bliver til "hvem" når man ruller) og pager.
   Klæbrige flader er uigennemsigtige (rgba lod teksten skinne igennem i Chrome uden GPU). */
.nlD-case { position: sticky; top: var(--nlD-top); z-index: 40; background: var(--nlD-bg); transition: box-shadow .2s ease; }
.nlD-case.is-scrolled { box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .9); }
.nlD-case-in { max-width: var(--nlD-max); margin: 0 auto; padding: 10px var(--nlD-pad); min-height: 64px; display: flex; align-items: center; gap: 12px; }
.nlD-back { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--nlD-s1); color: var(--nlD-txt); font-weight: 600; font-size: .88rem; white-space: nowrap; flex: none; transition: background .15s ease, color .15s ease; }
.nlD-back:hover { background: var(--nlD-s2); color: #fff; }
.nlD-back .nlD-i { transition: transform .2s var(--nlD-ease); }
.nlD-back:hover .nlD-i { transform: translateX(-3px); }
.nlD-case-mid { position: relative; flex: 1; min-width: 0; height: 44px; }
.nlD-case-crumb, .nlD-case-who { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; min-width: 0; transition: opacity .25s ease, transform .25s var(--nlD-ease); }
.nlD-case-crumb { color: var(--nlD-mut); font-size: .88rem; white-space: nowrap; overflow: hidden; }
.nlD-case-crumb b { color: var(--nlD-txt); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.nlD-case-crumb .nlD-i { width: 16px; height: 16px; }
.nlD-case-who { opacity: 0; transform: translateY(6px); pointer-events: none; }
.nlD-case.is-scrolled .nlD-case-crumb { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nlD-case.is-scrolled .nlD-case-who { opacity: 1; transform: none; pointer-events: auto; }
.nlD-case-who b { font: 700 1.15rem/1 var(--nlD-cond); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nlD-case-who .nlD-wt { font-size: .98rem; min-width: 0; }
.nlD-case-r { display: flex; align-items: center; gap: 8px; flex: none; }
.nlD-alltype { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; color: var(--nlD-mut); font-weight: 600; font-size: .86rem; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nlD-alltype:hover { background: var(--nlD-s1); color: #fff; }
.nlD-alltype .nlD-seg-n { background: var(--nlD-s2); }
.nlD-pager { display: flex; align-items: center; padding: 3px; border-radius: 13px; background: var(--nlD-s1); }
.nlD-pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--nlD-txt); transition: background .15s ease, color .15s ease; }
.nlD-pager a:hover { background: var(--nlD-red); color: #fff; }
.nlD-pager-c { min-width: 74px; padding: 0 8px; text-align: center; font: 700 1.05rem/1 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlD-pager-c span { color: var(--nlD-mut); font-weight: 600; }

.nlD-grid {
    max-width: var(--nlD-max); margin: 0 auto; padding: 20px var(--nlD-pad) 0;
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 24px; row-gap: 0;
    grid-template-areas: "head side" "main side";
    align-items: start;
}
.nlD-apph { grid-area: head; padding: 10px 0 18px; min-width: 0; }
/* Bundluften ligger i .nlD-main og ikke i gitteret: så strækker højre kolonne sig helt ned,
   og den klæbrige afgørelse skubbes ikke op under casebaren når man ruller ned mod sidefoden. */
.nlD-main { grid-area: main; min-width: 0; padding-bottom: 72px; }
/* Højre kolonne: fakta-kortet ruller med siden, og det SIDSTE kort (afgørelsen / resultatet)
   klæber under casebaren, så Godkend/Afvis altid kan nås uden at rulle op.
   06-10-2026 (kontrol): før klæbede hele kolonnen med egen scrollbar. På en 1366x768-laptop
   (ca. 650 px synlig højde) lå Godkend/Afvis så UNDER kanten inde i kolonnens egen rulle-
   flade, og rullede man siden, flyttede knapperne sig ikke frem. Kolonnen strækkes derfor
   til gitterets fulde højde, så det klæbrige kort har plads at glide i. */
.nlD-side { grid-area: side; align-self: stretch; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nlD-side > :last-child { position: sticky; top: calc(var(--nlD-top) + 64px + 14px); max-height: calc(100vh - var(--nlD-top) - 64px - 28px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--nlD-s3) transparent; }

.nlD-apph .nlD-h1 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin: 10px 0 12px; }
.nlD-apph-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nlD-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 10px; background: var(--nlD-s1); color: var(--nlD-txt); font-size: .86rem; }
.nlD-pill .nlD-i { width: 16px; height: 16px; color: var(--nlD-mut); }
.nlD-pill.is-link { color: var(--nlD-mut); font-weight: 600; transition: background .15s ease, color .15s ease; }
.nlD-pill.is-link:hover { background: var(--nlD-s2); color: #fff; }
.nlD-kun-m { display: none; }
.nlD-pill.is-wait { background: color-mix(in srgb, var(--p) 13%, var(--nlD-s1)); color: var(--p); font: 700 .98rem/1 var(--nlD-cond); white-space: nowrap; }
.nlD-toc { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nlD-toc::-webkit-scrollbar { display: none; }
.nlD-toc a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--nlD-mut); font-size: .84rem; font-weight: 600; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nlD-toc a:hover { background: var(--nlD-s1); color: #fff; }
.nlD-toc a b { font: 700 .9rem/1 var(--nlD-cond); color: var(--nlD-red-hi); }
.nlD-toc a span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(251, 191, 36, .16); color: var(--nlD-mid); font: 700 .72rem/18px var(--nlD-cond); text-align: center; }

/* sektioner med spørgsmål og svar */
.nlD-sec { margin-top: 12px; padding: 6px 0 10px; border-radius: 18px; background: var(--nlD-s1); scroll-margin-top: calc(var(--nlD-top) + 80px); }
.nlD-main > .nlD-sec:first-child { margin-top: 0; }
.nlD-sec-h { display: flex; align-items: baseline; gap: 14px; padding: 20px 28px 10px; }
.nlD-sec-no { font: 800 2.1rem/.8 var(--nlD-cond); color: var(--nlD-red-hi); font-variant-numeric: tabular-nums; }
.nlD-sec-t { margin: 0; font: 700 1.4rem/1.1 var(--nlD-cond); color: #fff; letter-spacing: .005em; }
.nlD-sec-c { margin-left: auto; font-size: .8rem; color: var(--nlD-mut); white-space: nowrap; }
.nlD-qa { margin: 0; padding: 0 12px; list-style: none; }
.nlD-qi { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 16px 16px 18px; border-radius: 12px; transition: background .2s ease; }
.nlD-qi:target, .nlD-qi:hover { background: rgba(255, 255, 255, .018); }
.nlD-qi-no { padding-top: 1px; font: 700 .92rem/1.45 var(--nlD-cond); color: var(--nlD-dim); font-variant-numeric: tabular-nums; }
.nlD-qi-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 7px; font: 600 .93rem/1.45 var(--nlD-sans); color: var(--nlD-mut); }
.nlD-qi-a { margin: 0; max-width: 72ch; color: var(--nlD-ink); font-size: 1.02rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.nlD-qi-a.is-short { font-weight: 600; font-size: 1.06rem; line-height: 1.5; }
.nlD-qi-a.is-empty { color: var(--nlD-dim); font-style: italic; font-weight: 400; }
.nlD-qi-a small { font-size: .84rem; font-weight: 400; color: var(--nlD-mut); }
.nlD-wc { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 .76rem/1 var(--nlD-cond); letter-spacing: .02em; white-space: nowrap; background: var(--nlD-s3); color: var(--nlD-mut); font-variant-numeric: tabular-nums; }
.nlD-wc.is-ok { background: rgba(52, 211, 153, .13); color: var(--nlD-ok); }
.nlD-wc.is-no { background: rgba(248, 113, 113, .15); color: var(--nlD-old); }

/* spillerprofil (den fulde tillidsfaktor) */
.nlD-prof { padding-bottom: 18px; }
.nlD-prof > summary { list-style: none; cursor: pointer; }
.nlD-prof > summary::-webkit-details-marker { display: none; }
.nlD-prof-tog { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; color: var(--nlD-mut); font-size: .8rem; font-weight: 600; flex: none; }
.nlD-prof > summary:hover .nlD-prof-tog { background: var(--nlD-s2); color: #fff; }
.nlD-prof-tog .nlD-i { width: 16px; height: 16px; transition: transform .2s var(--nlD-ease); }
.nlD-prof[open] .nlD-prof-tog .nlD-i { transform: rotate(180deg); }
.nlD-prof .nlD-sec-c { margin-left: 0; }
.nlD-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 28px 0; }
.nlD-stat { padding: 12px 14px; border-radius: 12px; background: var(--nlD-s2); min-width: 0; }
.nlD-stat b { display: block; font: 700 1.5rem/1 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlD-stat span { display: block; margin-top: 5px; font-size: .74rem; color: var(--nlD-mut); }
.nlD-stat.is-warn b { color: var(--nlD-mid); }
.nlD-stat.is-bad b { color: var(--nlD-old); }
.nlD-stat.is-kick b { color: var(--nlD-org); }
.nlD-stat.is-good b { color: var(--nlD-ok); }
.nlD-sub-h { margin: 20px 28px 8px; font: 700 .72rem/1 var(--nlD-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--nlD-mut); display: flex; gap: 8px; align-items: center; }
.nlD-sub-h span { color: var(--nlD-mid); font-family: var(--nlD-cond); font-size: .82rem; letter-spacing: .04em; }
.nlD-sub-h span.is-bad { color: var(--nlD-old); }
.nlD-log { margin: 0 16px; padding: 0; list-style: none; }
.nlD-log li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 12px; border-radius: 10px; font-size: .88rem; }
.nlD-log li:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.nlD-log time { font: 600 .9rem/1.3 var(--nlD-cond); color: var(--nlD-mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nlD-log time.is-recent { color: var(--nlD-mid); }
.nlD-log.is-bans time.is-recent { color: var(--nlD-old); }
.nlD-log p { margin: 0; color: var(--nlD-txt); line-height: 1.45; overflow-wrap: anywhere; }
.nlD-log span { color: var(--nlD-dim); font-size: .82rem; white-space: nowrap; }
.nlD-none { margin: 0 28px; color: var(--nlD-mut); font-size: .88rem; }
.nlD-more { margin: 6px 28px 0; color: var(--nlD-dim); font-size: .8rem; }
.nlD-prof-f { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 28px 0; font-size: .84rem; color: var(--nlD-mut); }
.nlD-prof-f b { color: var(--nlD-txt); font-weight: 600; }

/* ændringshistorik */
.nlD-hist { background: linear-gradient(135deg, rgba(251, 191, 36, .09), rgba(251, 191, 36, .025) 60%), var(--nlD-s1); }
.nlD-hist .nlD-sec-no { color: var(--nlD-mid); font-size: 1.1rem; line-height: 1; align-self: center; }
.nlD-hist-l { margin: 0; padding: 0 16px 6px; list-style: none; max-height: 420px; overflow-y: auto; }
.nlD-hist-l li { padding: 14px 12px; border-radius: 12px; }
.nlD-hist-l li + li { margin-top: 4px; }
.nlD-hist-q { margin: 0; font-weight: 600; color: #fde68a; font-size: .92rem; }
.nlD-hist-t { margin: 3px 0 10px; font-size: .8rem; color: var(--nlD-mut); }
.nlD-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nlD-diff div { padding: 10px 12px; border-radius: 10px; background: rgba(19, 20, 23, .55); font-size: .9rem; line-height: 1.55; color: var(--nlD-txt); overflow-wrap: anywhere; white-space: pre-wrap; }
.nlD-diff span { display: block; margin-bottom: 4px; font: 700 .7rem/1 var(--nlD-sans); letter-spacing: .12em; text-transform: uppercase; white-space: normal; }
.nlD-diff .is-foer span { color: var(--nlD-old); }
.nlD-diff .is-efter span { color: var(--nlD-ok); }

/* højre kolonne: ansøger-fakta + afgørelse */
.nlD-card { padding: 16px; border-radius: 18px; background: var(--nlD-s1); }
.nlD-card-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font: 700 .72rem/1 var(--nlD-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--nlD-mut); }
.nlD-card-k2 { letter-spacing: .04em; text-transform: none; font-weight: 600; color: var(--nlD-dim); }
.nlD-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nlD-who > div { min-width: 0; }
.nlD-who b { display: block; font: 700 1.25rem/1.1 var(--nlD-cond); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-who small { display: block; margin-top: 3px; font-size: .8rem; color: var(--nlD-mut); }
.nlD-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 14px 0 0; font-size: .87rem; }
.nlD-dl dt { color: var(--nlD-mut); white-space: nowrap; }
.nlD-dl dd { margin: 0; text-align: right; color: var(--nlD-ink); font-weight: 500; overflow-wrap: anywhere; }
.nlD-dl dd small { color: var(--nlD-mut); font-weight: 400; }
.nlD-dl dd.is-dim { color: var(--nlD-dim); font-weight: 400; }
.nlD-dl .nlD-num { font: 700 1rem/1.2 var(--nlD-cond); font-variant-numeric: tabular-nums; }
.nlD-ai { display: inline-flex; align-items: center; gap: 6px; color: var(--p); cursor: help; }
.nlD-ai .nlD-i { width: 14px; height: 14px; color: var(--nlD-dim); }

.nlD-tf { --c: var(--nlD-org); margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 4%, transparent)), var(--nlD-s2); }
.nlD-tf-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nlD-tf-k { width: 100%; margin-bottom: -2px; font: 700 .68rem/1 var(--nlD-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--nlD-mut); }
.nlD-tf-v { font: 800 2.1rem/1 var(--nlD-cond); color: var(--c); font-variant-numeric: tabular-nums; }
.nlD-tf-v small { font-size: 1.2rem; font-weight: 700; }
.nlD-tf-l { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--c); color: #1a1205; font: 800 .76rem/24px var(--nlD-cond); letter-spacing: .06em; text-transform: uppercase; }
.nlD-tf-cd { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: rgba(248, 113, 113, .15); color: #fca5a5; font: 600 .76rem/1 var(--nlD-sans); white-space: nowrap; }
.nlD-tf-cd .nlD-i { width: 13px; height: 13px; }
.nlD-tf-bar { position: relative; height: 8px; margin: 10px 0 9px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.nlD-tf-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--tf); border-radius: 4px; background: var(--c); transform-origin: left; animation: nlD-fyld 1s var(--nlD-ease) both; }
/* streger ved 40/60/80 % = grænserne mellem Kritisk, Lav, Middel og Høj */
.nlD-tf-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(40% - 1px), rgba(19, 20, 23, .8) calc(40% - 1px) 40%, transparent 40% calc(60% - 1px), rgba(19, 20, 23, .8) calc(60% - 1px) 60%, transparent 60% calc(80% - 1px), rgba(19, 20, 23, .8) calc(80% - 1px) 80%, transparent 80%); }
.nlD-tf-30 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--nlD-txt); }
.nlD-tf-30 b { font: 700 1rem/1 var(--nlD-cond); color: var(--nlD-mid); }
.nlD-tf-30.is-ban b { color: var(--nlD-old); }
.nlD-tf-30.is-clean { color: var(--nlD-ok); }
.nlD-tf-30 a { margin-left: auto; color: var(--nlD-mut); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.nlD-tf-30 a:hover { color: #fff; }

.nlD-verdict { background: linear-gradient(160deg, rgba(217, 39, 28, .13), rgba(217, 39, 28, .02) 55%), var(--nlD-s1); scroll-margin-top: calc(var(--nlD-top) + 80px); margin: 0; }
.nlD-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: .86rem; font-weight: 600; color: var(--nlD-txt); }
.nlD-lbl span { font-weight: 400; font-size: .78rem; color: var(--nlD-dim); }
.nlD-ta { display: block; width: 100%; min-height: 84px; max-height: 260px; resize: vertical; padding: 12px 14px; border: 0; border-radius: 12px; background: rgba(19, 20, 23, .7); color: var(--nlD-ink); font: 400 .95rem/1.5 var(--nlD-sans); outline: none; transition: box-shadow .15s ease, background .15s ease; }
.nlD-ta::placeholder { color: var(--nlD-dim); }
.nlD-ta:focus { background: rgba(19, 20, 23, .95); box-shadow: 0 0 0 2px rgba(217, 39, 28, .65); }
.nlD-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.nlD-act {
    --a: var(--nlD-ok);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 8px; border: 0; border-radius: 12px; cursor: pointer; min-width: 0;
    background: color-mix(in srgb, var(--a) 17%, transparent);
    color: color-mix(in srgb, var(--a) 70%, #fff);
    font: 700 1.08rem/1 var(--nlD-cond); letter-spacing: .01em;
    transition: background .15s ease, color .15s ease, transform .15s var(--nlD-ease), box-shadow .15s ease;
}
.nlD-act > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-act:hover { background: var(--a); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px var(--a); }
.nlD-act:active { transform: translateY(0); }
.nlD-act.is-ok { --a: #10b981; }
.nlD-act.is-mid { --a: #f59e0b; }
.nlD-act.is-mid:hover { color: #1a1205; }
.nlD-act.is-no { --a: #e11d48; }
.nlD-act.is-mute { --a: #6b7280; grid-column: 1 / -1; height: 44px; justify-content: flex-start; padding: 0 14px; color: var(--nlD-txt); background: rgba(255, 255, 255, .04); font-size: .92rem; }
.nlD-act.is-mute .nlD-act-x { margin-left: auto; font: 500 .78rem/1 var(--nlD-sans); letter-spacing: 0; text-transform: none; color: var(--nlD-dim); }
.nlD-act.is-mute:hover .nlD-act-x { color: var(--nlD-mut); }
.nlD-act.is-mute:hover { background: var(--nlD-s3); color: #fff; box-shadow: none; }
.nlD-act[disabled] { opacity: .55; cursor: progress; transform: none; }
.nlD-hint { margin: 10px 2px 0; font-size: .78rem; line-height: 1.5; color: var(--nlD-dim); }
.nlD-own { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(251, 191, 36, .1); color: #fde68a; font-size: .88rem; line-height: 1.5; }

/* besvaret: resultatkortet */
.nlD-result { background: linear-gradient(160deg, color-mix(in srgb, var(--p) 20%, transparent), color-mix(in srgb, var(--p) 3%, transparent) 60%), var(--nlD-s1); }
.nlD-result-v { display: flex; align-items: center; gap: 12px; }
.nlD-result-v > i { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--p); color: #0d1512; }
.nlD-result-v > i .nlD-i { width: 24px; height: 24px; stroke-width: 2.6; }
.nlD-result-v b { display: block; font: 800 1.75rem/1 var(--nlD-cond); color: #fff; }
.nlD-result-v small { display: block; margin-top: 4px; font-size: .82rem; color: var(--nlD-mut); }
.nlD-fb { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(19, 20, 23, .6); }
.nlD-fb span { display: block; margin-bottom: 6px; font: 700 .68rem/1 var(--nlD-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--nlD-mut); }
.nlD-fb p { margin: 0; color: var(--nlD-ink); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.nlD-by { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.nlD-by .is-dim { color: var(--nlD-dim); font-weight: 400; }
.nlD-endnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 0; }

/* pager nederst i afgørelsen (kun mobil/tablet – dokken skjules når afgørelsen er i syne) */
.nlD-vnav { display: none; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 4px; }
.nlD-vnav a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 11px; background: var(--nlD-s2); color: var(--nlD-txt); font-weight: 600; font-size: .88rem; }
.nlD-vnav a:hover { background: var(--nlD-s3); color: #fff; }
.nlD-vnav span { font: 700 1rem/1 var(--nlD-cond); color: #fff; }
.nlD-vnav span small { color: var(--nlD-mut); font-weight: 600; font-size: .9rem; }

/* mobil-dok (forrige/næste + afgør) */
.nlD-dock { display: none; }

/* Guide-telefonens "Ny i byen?"-boble (guide.js viser den efter 4 s til dem der aldrig har
   åbnet telefonen) er til nye spillere, ikke staff. På 1440 px lå den oven i Afvis-knappen
   i afgørelsen (kontrol 06-10-2026). Selve telefonknappen bliver stående. :has() + klassen
   nl-admin.js sætter på <html>, for browsere uden :has(). */
html.nlD-adminside #nlGuide .nlg-teaser, body:has(.nlD-page) #nlGuide .nlg-teaser { display: none !important; }

/* Høj skærm: hele højre kolonne (fakta + afgørelse) har plads til at klæbe samlet, så
   tillidsfaktor, vRP og AI-tal bliver stående mens man læser – ligesom den gamle flydende
   bjælke. Kolonnen fylder ca. 690 px + 150 px top, deraf grænsen. Lavere skærme: kun
   afgørelsen klæber (reglen ved .nlD-side), så knapperne aldrig gemmer sig i en indre rulleflade. */
@media (min-width: 1024px) and (min-height: 900px) {
    .nlD-side { position: sticky; top: calc(var(--nlD-top) + 64px + 14px); align-self: start; max-height: calc(100vh - var(--nlD-top) - 64px - 28px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--nlD-s3) transparent; border-radius: 18px; }
    .nlD-side > :last-child { position: static; max-height: none; overflow: visible; }
}

/* ---------- desktop: let blur på de klæbrige flader (layout.ejs slår blur fra < 1024 px) ---------- */
@media (min-width: 1024px) {
    .nlD-case, .nlD-bar { -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); background: rgba(19, 20, 23, .94); }
}

/* ---------- mellemstor skærm ---------- */
@media (max-width: 1180px) {
    .nlD-q-cols { grid-template-columns: 26px 38px minmax(120px, 1.4fr) 120px 100px minmax(160px, 1.2fr) 104px; column-gap: 12px; }
    .nlD-s-cols { grid-template-columns: 38px minmax(120px, 1.3fr) 128px 108px minmax(110px, 1fr) 70px 40px; column-gap: 12px; }
    .nlD-s-cols .nlD-go span { display: none; }
    .nlD-s-cols .nlD-go { padding: 0 11px; }
    .nlD-grid { grid-template-columns: minmax(0, 1fr) 336px; column-gap: 20px; }
}
@media (max-width: 1080px) {
    .nlD-head { flex-direction: column; align-items: stretch; gap: 16px; }
    .nlD-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nlD-kpi { min-width: 0; }
    .nlD-kpi-l { max-width: none; }
    .nlD-head-acts { justify-content: flex-start; }
    .nlD-bar-in { flex-wrap: wrap; }
    .nlD-search { flex-basis: 100%; }
    .nlD-seg { flex: 1 1 100%; }
}
@media (max-width: 1023px) {
    /* tablet: "#" og klokkeslæt ud, så Behandl ikke klippes */
    .nlD-q-cols { grid-template-columns: 38px minmax(110px, 1fr) 116px 70px minmax(140px, 1fr) 104px; grid-template-areas: "av name type sent wait go"; column-gap: 12px; }
    .nlD-qhead.nlD-q-cols > :nth-child(1), .nlD-c-no, .nlD-c-sent .nlD-sent-t { display: none; }
    .nlD-s-cols { grid-template-columns: 38px minmax(110px, 1fr) 108px 108px minmax(90px, .8fr) 56px 40px; column-gap: 12px; }
    .nlD-s-cols .nlD-c-name small { display: none; }
    .nlD-c-time small { display: none; }
    .nlD-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
    .nlD-facts .nlD-tf { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
    .nlD-vnav { display: flex; }
    /* Staffpanel-linket: kun ikonet under 1024 px (den gamle fane stod der fra 768 px) */
    .nlD-tab-ext { width: 48px; padding: 0; justify-content: center; }
    .nlD-tab-ext-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

    /* detalje: én kolonne – fakta øverst, svarene i midten, afgørelsen nederst */
    /* Bundluft: dokken trækker sig selv væk når afgørelsen (sidste blok) er i syne */
    .nlD-grid { display: flex; flex-direction: column; align-items: stretch; padding: 14px var(--nlD-pad) 40px; }
    .nlD-kun-m { display: inline-flex; }
    .nlD-pill.nlD-kun-m { min-height: 44px; }
    .nlD-grid > *, .nlD-side > * { min-width: 0; }
    .nlD-side { display: contents; }
    /* én kolonne: intet klæber her – dokken nederst tager over */
    .nlD-side > :last-child { position: static; max-height: none; overflow: visible; }
    .nlD-apph { order: 0; padding-top: 4px; }
    .nlD-facts { order: 1; margin-bottom: 12px; }
    .nlD-result { order: 1; margin-bottom: 10px; }
    .nlD-main { order: 2; padding-bottom: 0; }
    .nlD-verdict { order: 3; margin-top: 12px; }
    .nlD-case .nlD-case-r { display: none; }
    .nlD-dock {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        display: flex; align-items: center; gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--nlD-s1);
        box-shadow: 0 -14px 28px -18px rgba(0, 0, 0, .95);
        transition: transform .3s var(--nlD-ease);
    }
    .nlD-dock.is-away { transform: translateY(110%); }
    .nlD-dock .nlD-pager { background: var(--nlD-s2); }
    .nlD-dock .nlD-pager a { width: 44px; height: 44px; }
    .nlD-dock .nlD-pager-c { min-width: 58px; }
    .nlD-dock-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 13px; background: var(--nlD-red); color: #fff; font: 700 1.12rem/1 var(--nlD-cond); letter-spacing: .02em; }
    .nlD-dock-go .nlD-i { width: 18px; height: 18px; }
    /* Guide-telefonen og "til toppen"-knappen (layout.ejs) sidder fast nederst til højre
       og ville ligge oven i dokken, afgørelsesknapperne og svarene. På staff-detaljesiden
       (ubesvaret og besvaret) skjules de under 1024 px. :has() for browsere der kan det,
       klassen som nl-admin.js sætter på <html> for resten. */
    html.nlD-detalje #nlGuide, html.nlD-detalje #globalScrollTop,
    body:has(.nlD-page.is-detalje) #nlGuide, body:has(.nlD-page.is-detalje) #globalScrollTop { display: none !important; }
}

/* Staffpanel-linket var også skjult på telefonen før (hidden md:inline-flex) */
@media (max-width: 767px) {
    .nlD-tab-ext { display: none; }
}

/* ---------- mobil ---------- */
@media (max-width: 720px) {
    .nlD-head { padding: 18px 0 12px; }
    .nlD-kpis { gap: 6px; }
    .nlD-kpi { padding: 10px 11px 9px; border-radius: 12px; }
    .nlD-kpi-v { font-size: 1.55rem; }
    .nlD-kpi-v small { font-size: .9rem; }
    .nlD-kpi-l { font-size: .7rem; white-space: normal; line-height: 1.25; }
    .nlD-sub { font-size: .9rem; }
    .nlD-bar-in { padding: 8px 0; gap: 8px; }
    .nlD-search input { height: 46px; font-size: 16px; }
    .nlD-kbd { display: none; }
    .nlD-seg-b { height: 40px; padding: 0 10px 0 12px; }
    .nlD-legend { gap: 12px; font-size: .74rem; }
    .nlD-qmeta { padding-top: 12px; }

    .nlD-qhead { display: none; }
    .nlD-q-cols, .nlD-s-cols {
        grid-template-columns: 40px minmax(0, 1fr) auto 16px;
        grid-template-rows: auto auto;
        grid-template-areas: "av name sent go" "av meta meta go";
        column-gap: 12px; row-gap: 6px;
    }
    .nlD-row { padding: 12px 12px 12px 16px; min-height: 72px; }
    .nlD-row::before { top: 14px; bottom: 14px; }
    .nlD-av { width: 40px; height: 40px; }
    .nlD-c-no { display: none; }
    .nlD-c-av { align-self: center; }
    .nlD-c-name b { font-size: .98rem; }
    .nlD-c-name small { display: none; }
    .nlD-c-meta { grid-area: meta; display: flex; align-items: center; gap: 10px; min-width: 0; }
    .nlD-c-type { flex: none; max-width: 46%; }
    .nlD-chip, .nlD-res { height: 24px; padding: 0 8px; font-size: .74rem; line-height: 24px; }
    .nlD-c-wait { flex: 1; gap: 10px; }
    .nlD-wt { min-width: 0; font-size: 1rem; }
    .nlD-meter { max-width: 72px; min-width: 28px; }
    .nlD-c-sent { font-size: .78rem; align-self: center; }
    .nlD-c-sent .nlD-sent-t { display: none; }
    .nlD-c-go { align-self: center; }
    .nlD-go { display: none; }
    .nlD-chev { display: block; }
    .nlD-foot { padding-bottom: 40px; }
    .nlD-keys { display: none; }

    /* lagrede på mobil */
    .nlD-c-res { flex: none; }
    .nlD-c-by { flex: 1; min-width: 0; font-size: .8rem; color: var(--nlD-mut); }
    .nlD-c-by .nlD-av { display: none; }
    .nlD-c-time { grid-area: sent; text-align: right; }
    .nlD-c-time b { font-size: .9rem; }
    .nlD-dist { padding: 14px; }
    .nlD-dist-l { gap: 8px 16px; }
    .nlD-limit { gap: 10px; padding: 10px 10px 10px 14px; font-size: .84rem; }
    .nlD-limit-x, .nlD-hide-m { display: none; }

    /* detalje */
    .nlD-case-in { min-height: 60px; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
    .nlD-back { width: 44px; padding: 0; justify-content: center; }
    .nlD-back span { display: none; }
    .nlD-apph .nlD-h1 { font-size: 2.1rem; }
    .nlD-pill { font-size: .82rem; }
    .nlD-toc { margin: 14px calc(var(--nlD-pad) * -1) 0; padding: 0 var(--nlD-pad) 2px; }
    .nlD-sec { border-radius: 16px; }
    .nlD-sec-h { padding: 18px 16px 8px; gap: 6px 10px; flex-wrap: wrap; }
    .nlD-prof .nlD-sec-c, .nlD-hist .nlD-sec-c { order: 3; width: 100%; margin-left: 0; white-space: normal; }
    .nlD-prof .nlD-prof-tog { margin-right: -6px; }
    .nlD-sec-no { font-size: 1.7rem; }
    .nlD-sec-t { font-size: 1.22rem; }
    .nlD-qa { padding: 0 4px; }
    .nlD-qi { grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; padding: 14px 12px 16px; }
    .nlD-qi-t { font-size: .88rem; }
    .nlD-qi-a { font-size: 1rem; line-height: 1.7; }
    .nlD-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 16px 0; }
    .nlD-stat { padding: 10px 11px; }
    .nlD-stat b { font-size: 1.3rem; }
    .nlD-sub-h { margin: 18px 16px 8px; }
    .nlD-log { margin: 0 6px; }
    .nlD-log li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "r r" "t s"; gap: 4px 10px; padding: 10px; }
    .nlD-log li p { grid-area: r; }
    .nlD-log li time { grid-area: t; }
    .nlD-log li span { grid-area: s; text-align: right; white-space: normal; }
    .nlD-none, .nlD-more, .nlD-prof-f { margin-left: 16px; margin-right: 16px; }
    .nlD-hist-l { padding: 0 6px 6px; }
    .nlD-diff { grid-template-columns: 1fr; }
    .nlD-card { padding: 16px; border-radius: 16px; }
    .nlD-facts { display: block; }
    .nlD-facts .nlD-tf { margin-top: 14px; }
    .nlD-toast { left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 380px) {
    .nlD-kpi-v { font-size: 1.35rem; }
    .nlD-meter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nlD-page *, .nlD-page *::before, .nlD-page *::after,
    .nlD-adm *, .nlD-adm *::before, .nlD-adm *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   ADMIN-RESTEN – oversigt, brugere, bruger, firma-jobs, skabeloner og
   events i samme "Køen"-sprog (06-10-2026)

   Brugeren: "hele siden matcher ikke". Køen og detaljesiden (ovenfor) var
   bygget om, resten af admin stod stadig i DaisyUI-kort med 1px-kanter,
   regnbue-ikoner og emoji. Siderne her bygger derfor på de SAMME klodser som
   køen (.nlD-page, .nlD-row, .nlD-sec, .nlD-card, .nlD-dl, .nlD-btn,
   .nlD-case …) og tilføjer kun det køen ikke havde: formularfelter, kontakter,
   en besked-linje, store nøgletal, genvejsfliser, skabelon- og event-kort.
   Ingen streger om kasser – tone og luft adskiller, ét rødt accent.

   Filer: views/adminPanel/adminPanel, users, user, jobApplicationJobs,
   applicationTemplates, applicationTemplateEdit, events (.ejs).
   JS-tilføjelserne står nederst i /scripts/nl-admin.js.

   NB: DaisyUI lægger sin egen --p (primærfarven som "6 73% 43%") på :root.
   Det er ikke en gyldig farve, så var(--p, reserve) giver IKKE reserven –
   alt der bruger --p skal have en .is-*-klasse eller --p sat inline. Egne
   farver i denne sektion hedder derfor --k.

   Reglerne ovenfor er ikke rørt: her er kun nye klasser og et par
   kontekst-regler (fx .nlD-tpl:hover .nlD-go), så køen ser ud som før.
   ===================================================================== */

/* ---------- fælles: avatar med billede ---------- */
/* Discord-billedet ligger oven på bogstav-avataren. Fejler billedet (onerror
   fjerner det), står bogstavet allerede nedenunder – ingen grå standard-avatar. */
.nlD-av.is-img { position: relative; }
.nlD-av.is-img > img { position: absolute; inset: 0; }

/* ---------- fælles: knapvarianter ---------- */
/* kun de nye varianter – køens .nlD-btn (fx "Tilbage til lagrede") beholder sine 18 px */
.nlD-btn:is(.is-sm, .is-pri, .is-ok, .is-warn, .is-dng, .is-indigo) .nlD-i { width: 16px; height: 16px; }
.nlD-btn.is-sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .84rem; gap: 6px; }
.nlD-btn.is-ico { width: 44px; padding: 0; }
.nlD-btn.is-sm.is-ico { width: 36px; }
/* Primær: fuld rød med Barlow-versaler som "Behandl" i køen */
.nlD-btn.is-pri { background: var(--nlD-red); color: #fff; font: 700 1rem/1 var(--nlD-cond); letter-spacing: .04em; text-transform: uppercase; }
.nlD-btn.is-pri:hover { background: #f43f5e; color: #fff; box-shadow: 0 10px 22px -12px var(--nlD-red); }
.nlD-btn.is-pri.is-sm { font-size: .92rem; }
/* Farvet glas som afgørelsesknapperne: tonet i hvile, fuld farve ved hover */
.nlD-btn.is-ok { --k: #10b981; }
.nlD-btn.is-warn { --k: #f59e0b; }
.nlD-btn.is-dng { --k: #e11d48; }
.nlD-btn.is-indigo { --k: #818cf8; }
.nlD-btn.is-ok, .nlD-btn.is-warn, .nlD-btn.is-dng, .nlD-btn.is-indigo {
    background: color-mix(in srgb, var(--k) 15%, transparent);
    color: color-mix(in srgb, var(--k) 62%, #fff);
}
.nlD-btn.is-ok:hover, .nlD-btn.is-warn:hover, .nlD-btn.is-dng:hover, .nlD-btn.is-indigo:hover { background: var(--k); color: #fff; }
.nlD-btn.is-warn:hover { color: #1a1205; }
.nlD-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
/* Upload-knappen er en <label> om et skjult filfelt: vis fokus når feltet har det */
label.nlD-btn { position: relative; }
label.nlD-btn:focus-within { outline: 2px solid var(--nlD-red-hi); outline-offset: 2px; }

/* ---------- fælles: sektioner, overskrifter, mono-chip ---------- */
.nlD-sec-b { padding: 4px 28px 22px; }
.nlD-sec-h .nlD-sec-r { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.nlD-sec-no.is-ikon .nlD-i { width: 22px; height: 22px; }
.nlD-h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 30px 2px 12px; font: 700 1.3rem/1.1 var(--nlD-cond); color: #fff; letter-spacing: .01em; }
.nlD-h2 span { font: 500 .82rem/1.3 var(--nlD-sans); color: var(--nlD-dim); letter-spacing: 0; }
.nlD-h2:first-child { margin-top: 6px; }
.nlD-bund { padding-bottom: 64px; }
.nlD-code { display: inline-flex; align-items: center; max-width: 100%; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--nlD-s3); color: var(--nlD-txt); font: 500 .76rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-pill.is-tone { background: color-mix(in srgb, var(--p) 13%, var(--nlD-s1)); color: var(--p); font-weight: 600; }
.nlD-pill.is-tone .nlD-i { color: currentColor; }
.nlD-pill.is-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; color: var(--nlD-mut); }

/* ---------- fælles: formularfelter ---------- */
/* Mørkere end kortet de står på – tonen er "kanten", som tekstfeltet i afgørelsen */
.nlD-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.nlD-fgrid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nlD-fgrid > .is-full { grid-column: 1 / -1; }
.nlD-fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.nlD-fld-l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--nlD-txt); }
.nlD-fld-l span { font-weight: 400; font-size: .76rem; color: var(--nlD-dim); text-align: right; }
.nlD-inp {
    display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px;
    border: 0; border-radius: 12px; background: rgba(19, 20, 23, .7);
    color: var(--nlD-ink); font: 500 .95rem/1.4 var(--nlD-sans);
    outline: none; -webkit-appearance: none; appearance: none;
    transition: background .15s ease, box-shadow .15s ease;
}
textarea.nlD-inp { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.nlD-inp::placeholder { color: var(--nlD-dim); }
.nlD-inp:hover { background: rgba(19, 20, 23, .85); }
.nlD-inp:focus { background: rgba(19, 20, 23, .95); box-shadow: 0 0 0 2px rgba(217, 39, 28, .65); }
.nlD-inp.is-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; }
.nlD-inp.is-sm { height: 40px; font-size: .88rem; }
.nlD-fhint { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--nlD-dim); }
.nlD-fhint code, .nlD-note code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: var(--nlD-txt); font: 500 .82em ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* Kontakt (afkrydsningsfelt der ligner en vippekontakt). Feltet er stadig en
   almindelig checkbox med samme name – serveren får "on" præcis som før. */
.nlD-sw-l { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 14px; border-radius: 12px; background: rgba(19, 20, 23, .45); cursor: pointer; transition: background .15s ease; }
.nlD-sw-l:hover { background: rgba(19, 20, 23, .7); }
.nlD-sw-l > span { min-width: 0; }
.nlD-sw-l b { display: block; font-weight: 600; font-size: .9rem; color: var(--nlD-txt); }
.nlD-sw-l small { display: block; margin-top: 1px; font-size: .76rem; line-height: 1.35; color: var(--nlD-dim); }
.nlD-sw { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 42px; height: 24px; margin: 0; border: 0; border-radius: 12px; background: var(--nlD-s4); cursor: pointer; transition: background .2s ease; }
.nlD-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--nlD-ease); }
.nlD-sw:checked { background: var(--nlD-red); }
.nlD-sw:checked::after { transform: translateX(18px); }

/* ---------- fælles: besked-linje (?msg= på firma-jobs, ?success=/?error= på skabeloner) ---------- */
.nlD-note { --k: var(--nlD-ok); display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 16px 10px 10px; border-radius: 13px; background: linear-gradient(90deg, color-mix(in srgb, var(--k) 15%, transparent), color-mix(in srgb, var(--k) 4%, transparent) 70%), var(--nlD-s1); color: var(--nlD-ink); font-size: .92rem; line-height: 1.45; }
.nlD-note > i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 18%, transparent); color: var(--k); }
.nlD-note > i .nlD-i { width: 16px; height: 16px; }
.nlD-note p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nlD-note.is-warn { --k: var(--nlD-mid); }
.nlD-note.is-bad { --k: var(--nlD-old); }
.nlD-note.is-info { --k: var(--nlD-mut); background: rgba(19, 20, 23, .45); }

/* =====================================================================
   OVERSIGT (adminPanel.ejs)
   ===================================================================== */
.nlD-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.nlD-big {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; min-height: 204px; padding: 20px 22px 18px;
    border-radius: 18px; background: var(--nlD-s1); color: var(--nlD-txt);
    transition: background .15s ease, transform .18s var(--nlD-ease);
}
.nlD-big::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(217, 39, 28, .16), rgba(217, 39, 28, 0) 60%); opacity: 0; transition: opacity .2s ease; }
.nlD-big:hover, .nlD-big:focus-visible { background: var(--nlD-s2); transform: translateY(-1px); }
.nlD-big:hover::after, .nlD-big:focus-visible::after { opacity: 1; }
/* Der venter nogen: kortet får det røde glas som "over 72 timer"-tallet i køen */
.nlD-big.is-hot { background: linear-gradient(140deg, rgba(217, 39, 28, .30), rgba(217, 39, 28, .07) 62%), var(--nlD-s1); }
.nlD-big.is-hot:hover { background: linear-gradient(140deg, rgba(217, 39, 28, .36), rgba(217, 39, 28, .10) 62%), var(--nlD-s2); }
.nlD-big-k { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 .72rem/1 var(--nlD-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--nlD-mut); }
.nlD-big-v { display: block; margin: 16px 0 6px; font: 800 clamp(3rem, 4.6vw, 4.1rem)/.88 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nlD-big.is-hot .nlD-big-v { color: #fecdd3; }
.nlD-big-t { margin: 0; font-size: .9rem; color: var(--nlD-mut); }
.nlD-big .nlD-dist-bar { margin-top: 14px; }
.nlD-big .nlD-dist-l { margin-top: 10px; gap: 6px 18px; }
.nlD-big .nlD-dist-l b { font-size: 1.1rem; }
.nlD-big-go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 18px; font: 700 .9rem/1 var(--nlD-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--nlD-red-hi); transition: color .15s ease; }
.nlD-big-go .nlD-i { width: 16px; height: 16px; transition: transform .2s var(--nlD-ease); }
.nlD-big:hover .nlD-big-go, .nlD-big:focus-visible .nlD-big-go { color: #fff; }
.nlD-big:hover .nlD-big-go .nlD-i, .nlD-big:focus-visible .nlD-big-go .nlD-i { transform: translateX(3px); }

/* genvejsfliser – ét rødt glas-ikon i stedet for seks regnbue-gradienter */
.nlD-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.nlD-tiles > li { min-width: 0; }
.nlD-tile {
    position: relative; overflow: hidden; height: 100%;
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px;
    min-height: 86px; padding: 16px; border-radius: 14px; background: var(--nlD-s1);
    transition: background .15s ease, transform .18s var(--nlD-ease);
}
.nlD-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(217, 39, 28, .16), rgba(217, 39, 28, 0) 55%); opacity: 0; transition: opacity .2s ease; }
.nlD-tile:hover, .nlD-tile:focus-visible { background: var(--nlD-s2); transform: translateY(-1px); }
.nlD-tile:hover::after, .nlD-tile:focus-visible::after { opacity: 1; }
.nlD-tile-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--nlD-glass); color: var(--nlD-red-hi); }
.nlD-tile-i .nlD-i { width: 20px; height: 20px; }
.nlD-tile > span:nth-child(2) { min-width: 0; }
.nlD-tile-t { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 1.12rem/1.15 var(--nlD-cond); color: #fff; letter-spacing: .01em; }
.nlD-tile-x { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.4; color: var(--nlD-mut); }
.nlD-tile-a { color: var(--nlD-dim); transition: color .15s ease, transform .2s var(--nlD-ease); }
.nlD-tile:hover .nlD-tile-a, .nlD-tile:focus-visible .nlD-tile-a { color: #fff; transform: translateX(3px); }
.nlD-tile.is-ext:hover .nlD-tile-a, .nlD-tile.is-ext:focus-visible .nlD-tile-a { transform: translate(2px, -2px); }

/* =====================================================================
   BRUGERE (users.ejs) + BRUGER (user.ejs)
   ===================================================================== */
.nlD-find { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: 0; }
.nlD-find .nlD-search { flex: 1 1 auto; }
.nlD-find .nlD-btn { min-height: 48px; border-radius: 13px; }
.nlD-u-cols { display: grid; grid-template-columns: 38px minmax(0, 1.5fr) minmax(0, 1fr) 96px; grid-template-areas: "av name id go"; column-gap: 14px; align-items: center; }
/* overskriftsrækken: køens nth-child-regler peger på "no"/"type", som ikke findes her */
.nlD-qhead.nlD-u-cols { padding-left: 20px; padding-top: 4px; }
.nlD-qhead.nlD-u-cols > :nth-child(1) { grid-area: name; grid-column: av / name; }
.nlD-qhead.nlD-u-cols > :nth-child(2) { grid-area: id; }
.nlD-u-cols .nlD-c-go { justify-self: end; }
.nlD-c-id { grid-area: id; min-width: 0; font: 500 .82rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--nlD-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 2px 64px; }
.nlD-pages p { margin: 0; font-size: .84rem; color: var(--nlD-mut); }
.nlD-pages p b { font: 700 1rem/1 var(--nlD-cond); color: #fff; font-variant-numeric: tabular-nums; }
.nlD-pager a[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.nlD-pager.is-txt a { width: auto; display: inline-flex; gap: 6px; padding: 0 14px 0 10px; font-weight: 600; font-size: .86rem; }
.nlD-pager.is-txt a + .nlD-pager-c + a { padding: 0 10px 0 14px; }

/* én bruger: små ansøgningsrækker inde i en sektion */
.nlD-mlist { margin: 0; padding: 0 12px 8px; list-style: none; }
.nlD-mlist li + li { margin-top: 2px; }
.nlD-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; border-radius: 12px; transition: background .15s ease; }
.nlD-mrow:hover, .nlD-mrow:focus-visible { background: rgba(255, 255, 255, .035); }
.nlD-mrow > span:first-child { min-width: 0; }
.nlD-mrow b { display: block; font-weight: 600; color: var(--nlD-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-mrow small { display: block; margin-top: 2px; font-size: .78rem; color: var(--nlD-mut); }
.nlD-mrow > .nlD-i { color: var(--nlD-dim); transition: transform .2s var(--nlD-ease), color .15s ease; }
.nlD-mrow:hover > .nlD-i, .nlD-mrow:focus-visible > .nlD-i { color: #fff; transform: translateX(3px); }
.nlD-mrow .nlD-wt { min-width: 0; font-size: 1rem; }
.nlD-yn { display: inline-flex; align-items: center; gap: 6px; color: var(--p); font-weight: 600; }
.nlD-yn .nlD-i { width: 15px; height: 15px; }
.nlD-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.nlD-role { --k: #99aab5; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 30px; padding: 4px 11px; border-radius: 9px; background: color-mix(in srgb, var(--k) 10%, var(--nlD-s2)); color: var(--nlD-txt); font: 600 .8rem/1.2 var(--nlD-sans); overflow-wrap: anywhere; }
.nlD-role i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }

/* =====================================================================
   FIRMA-JOBS (jobApplicationJobs.ejs)
   ===================================================================== */
.nlD-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 64px; }
.nlD-split > * { min-width: 0; }
.nlD-split-side { position: sticky; top: calc(var(--nlD-top) + 16px); }
.nlD-card.is-form { padding: 20px; }
.nlD-card-t { margin: 0 0 4px; font: 800 1.5rem/1.05 var(--nlD-cond); color: #fff; }
.nlD-card-s { margin: 0 0 18px; font-size: .86rem; line-height: 1.5; color: var(--nlD-mut); }
.nlD-card-s b { color: var(--nlD-txt); font-weight: 600; }
.nlD-card .nlD-btn.is-pri.is-full { width: 100%; margin-top: 18px; height: 48px; }
.nlD-jobs { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nlD-job { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 16px 16px 16px 22px; border-radius: 14px; background: var(--nlD-s1); animation: nlD-ind .45s var(--nlD-ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.nlD-job::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.nlD-job > div { min-width: 0; }
.nlD-job-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; font: 700 1.25rem/1.1 var(--nlD-cond); color: #fff; letter-spacing: .01em; overflow-wrap: anywhere; }
.nlD-job.is-lydloes .nlD-job-t { color: var(--nlD-mut); }
.nlD-job-d { margin: 6px 0 0; max-width: 64ch; font-size: .88rem; line-height: 1.55; color: var(--nlD-mut); overflow-wrap: anywhere; }
.nlD-job-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .78rem; color: var(--nlD-dim); }
.nlD-job-acts { display: flex; align-items: center; gap: 6px; }
.nlD-job-acts form { margin: 0; }

/* =====================================================================
   SKABELONER (applicationTemplates.ejs + applicationTemplateEdit.ejs)
   ===================================================================== */
.nlD-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 0 64px; list-style: none; }
.nlD-tpls > li { min-width: 0; }
.nlD-tpl {
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px;
    border-radius: 18px; background: var(--nlD-s1);
    transition: background .15s ease, transform .18s var(--nlD-ease);
    animation: nlD-ind .45s var(--nlD-ease) both; animation-delay: calc(var(--i, 0) * 28ms);
}
.nlD-tpl::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(140deg, rgba(217, 39, 28, .14), rgba(217, 39, 28, 0) 55%); opacity: 0; transition: opacity .2s ease; }
.nlD-tpl:hover, .nlD-tpl:focus-visible { background: var(--nlD-s2); transform: translateY(-1px); }
.nlD-tpl:hover::after, .nlD-tpl:focus-visible::after { opacity: 1; }
.nlD-tpl-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nlD-tpl-top > div { min-width: 0; }
.nlD-tpl-img { flex: none; width: 56px; height: 56px; padding: 7px; border-radius: 14px; background: rgba(19, 20, 23, .7); display: grid; place-items: center; overflow: hidden; }
.nlD-tpl-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nlD-tpl-t { display: block; font: 700 1.3rem/1.08 var(--nlD-cond); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlD-tpl-n { display: block; margin-top: 4px; font-size: .82rem; color: var(--nlD-mut); }
.nlD-tpl-n b { font: 700 .98rem/1 var(--nlD-cond); color: var(--nlD-txt); font-variant-numeric: tabular-nums; }
.nlD-tpl-d { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--nlD-mut); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nlD-tpl-f { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.nlD-tpl-f .nlD-go { margin-left: auto; }
.nlD-tpl:hover .nlD-go, .nlD-tpl:focus-visible .nlD-go { background: var(--nlD-red); color: #fff; }
.nlD-tpl:hover .nlD-go .nlD-i, .nlD-tpl:focus-visible .nlD-go .nlD-i { transform: translateX(3px); }

/* redigering: felterne til venstre, de nuværende spørgsmål klæber til højre */
.nlD-ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 24px; align-items: start; margin: 0; }
.nlD-ed > * { min-width: 0; }
.nlD-ed-main > .nlD-sec:first-child { margin-top: 0; }
.nlD-ed-side { position: sticky; top: calc(var(--nlD-top) + 64px + 14px); max-height: calc(100vh - var(--nlD-top) - 64px - 28px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--nlD-s3) transparent; border-radius: 18px; }
.nlD-ed-side .nlD-card-k { margin-bottom: 12px; }
/* textarea.nlD-inp (min-height 96px) vinder ellers på specificitet */
textarea.nlD-inp.nlD-json { min-height: 500px; font: 500 .84rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.nlD-row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.nlD-imgprev { display: flex; align-items: center; gap: 12px; }
.nlD-imgprev .nlD-tpl-img { width: 46px; height: 46px; padding: 6px; border-radius: 12px; }
.nlD-imgprev .nlD-inp { flex: 1; }
.nlD-pv { display: flex; flex-direction: column; gap: 6px; }
.nlD-pv details { border-radius: 12px; background: rgba(19, 20, 23, .45); }
.nlD-pv summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px 10px 14px; cursor: pointer; list-style: none; font: 700 1rem/1.2 var(--nlD-cond); color: #fff; border-radius: 12px; }
.nlD-pv summary::-webkit-details-marker { display: none; }
.nlD-pv summary:hover { background: rgba(255, 255, 255, .03); }
.nlD-pv summary b { color: var(--nlD-red-hi); font-variant-numeric: tabular-nums; }
.nlD-pv summary > span { min-width: 0; overflow-wrap: anywhere; }
.nlD-pv summary small { margin-left: auto; font: 500 .76rem/1 var(--nlD-sans); color: var(--nlD-dim); white-space: nowrap; }
.nlD-pv summary .nlD-i { width: 16px; height: 16px; color: var(--nlD-dim); transition: transform .2s var(--nlD-ease); }
.nlD-pv details[open] summary .nlD-i { transform: rotate(180deg); }
.nlD-pv ol { margin: 0; padding: 0 12px 10px 14px; list-style: none; }
.nlD-pv li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; font-size: .86rem; line-height: 1.45; color: var(--nlD-txt); overflow-wrap: anywhere; }
.nlD-pv li .nlD-wc { justify-content: center; }
.nlD-pv-tom { margin: 0; color: var(--nlD-mut); font-size: .88rem; }
/* Gem-linjen klæber i bunden mens man redigerer, så man ikke skal rulle forbi 500 px JSON */
.nlD-save { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--nlD-bg); box-shadow: 0 -16px 22px -16px rgba(0, 0, 0, .85); }
.nlD-save p { margin: 0 auto 0 0; font-size: .84rem; color: var(--nlD-dim); }

/* =====================================================================
   EVENTS (events.ejs)
   ===================================================================== */
.nlD-up { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Billedlisten tegnes af sidens eget script (renderEventImagesList) med Tailwind-
   klasser. Den røres ikke – her styres den udefra via beholderen. Slet-knappen har
   inline-style, derfor !important på netop den. */
.nlD-imgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 84px; }
.nlD-imgs > div { width: 84px; height: 84px; border: 0; border-radius: 12px; background: rgba(19, 20, 23, .7); transition: box-shadow .15s ease, transform .15s var(--nlD-ease); }
.nlD-imgs > div > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nlD-imgs > div > button {
    top: 5px !important; right: 5px !important; width: 26px !important; height: 26px !important;
    border: 0 !important; border-radius: 8px !important; background: rgba(19, 20, 23, .82) !important;
    color: #fff !important; font-size: 17px !important; box-shadow: none !important;
    opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.nlD-imgs > div:hover > button, .nlD-imgs > div > button:focus-visible { opacity: 1; }
.nlD-imgs > div > button:hover { background: var(--nlD-red) !important; }
@media (hover: none) { .nlD-imgs > div > button { opacity: 1; } }
.nlD-imgs > span { color: var(--nlD-dim); font-size: .86rem; }
.nlD-imgs.is-pick { padding: 8px; border-radius: 14px; background: rgba(19, 20, 23, .45); }
.nlD-imgs.is-pick > div { width: 72px; height: 72px; cursor: pointer; }
.nlD-imgs.is-pick > div:hover { box-shadow: 0 0 0 2px var(--nlD-red-hi); }
/* valgt billede (sættes af nl-admin.js ud fra billed-feltet) */
.nlD-imgs > div.is-valgt { box-shadow: 0 0 0 2px var(--nlD-red), 0 0 0 5px rgba(217, 39, 28, .28); }
.nlD-imgs > div.is-valgt::after { content: ""; position: absolute; left: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 6px; background: var(--nlD-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

.nlD-evs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nlD-evs > li { min-width: 0; }
.nlD-ev { --k: var(--nlD-red); position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; background: var(--nlD-s1); animation: nlD-ind .45s var(--nlD-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.nlD-ev-img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--k) 42%, var(--nlD-bg)), var(--nlD-bg) 78%); }
.nlD-ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Solnedgangs-gradering: varm tone over billedet og mørk bund, så datoen kan læses */
.nlD-ev-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 28, 33, 0) 30%, rgba(26, 28, 33, .94)), linear-gradient(115deg, rgba(217, 39, 28, .30), rgba(242, 98, 28, .12) 45%, rgba(255, 190, 59, 0) 72%); }
.nlD-ev-date { position: absolute; left: 18px; bottom: 12px; z-index: 1; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.nlD-ev-date b { font: 800 2.7rem/.85 var(--nlD-cond); font-variant-numeric: tabular-nums; }
.nlD-ev-date span { font: 700 .95rem/1 var(--nlD-cond); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.nlD-ev-om { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(19, 20, 23, .78); color: #fff; font: 700 .8rem/1 var(--nlD-cond); letter-spacing: .03em; }
.nlD-ev-om.is-snart { background: var(--nlD-red); }
.nlD-ev-b { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 18px 4px; }
.nlD-ev-t { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.35rem/1.08 var(--nlD-cond); color: #fff; overflow-wrap: anywhere; }
.nlD-ev-t i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.nlD-ev-when { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .84rem; color: var(--nlD-txt); }
.nlD-ev-when span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.nlD-ev-when .nlD-i { width: 15px; height: 15px; color: var(--nlD-mut); }
.nlD-ev-d { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--nlD-mut); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nlD-ev-by { margin: auto 0 0; padding-top: 4px; font-size: .76rem; color: var(--nlD-dim); }
.nlD-ev-f { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; }
.nlD-ev-f .is-push { margin-left: auto; }
/* fire knapper skal kunne stå på én linje i et 360 px kort */
.nlD-ev-f { gap: 5px; padding: 12px 12px 14px; }
.nlD-ev-f .nlD-btn.is-sm { padding: 0 10px; }
.nlD-ev-f .nlD-btn.is-sm.is-ico { padding: 0; }
.nlD-past { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 64px; list-style: none; }
.nlD-past li { --k: var(--nlD-gray); display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 50px; padding: 8px 16px; border-radius: 12px; background: rgba(26, 28, 33, .6); font-size: .86rem; color: var(--nlD-mut); }
.nlD-past time { font: 600 .95rem/1 var(--nlD-cond); color: var(--nlD-mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlD-past b { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--nlD-txt); }
.nlD-past b i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--k); opacity: .8; }
.nlD-past li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Opret/rediger-vinduet: DaisyUI's modal-toggle styrer stadig åbn/luk (checkbox +
   .modal), kun udseendet er lagt om */
#event-modal.modal { background: rgba(8, 9, 12, .72); }
#event-modal > .modal-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: transparent; font-size: 0; cursor: pointer; }
.nlD-modal.modal-box {
    position: relative; z-index: 1; width: calc(100% - 32px); max-width: 36rem;
    padding: 24px; border-radius: 20px; background: var(--nlD-s1); color: var(--nlD-txt);
    font: 400 15px/1.5 var(--nlD-sans); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .95);
    scrollbar-width: thin; scrollbar-color: var(--nlD-s3) transparent;
}
.nlD-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.nlD-modal-h h3 { margin: 0; font: 800 1.75rem/1 var(--nlD-cond); color: #fff; }
.nlD-modal-x { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--nlD-s2); color: var(--nlD-mut); cursor: pointer; transition: background .15s ease, color .15s ease; }
.nlD-modal-x:hover { background: var(--nlD-s3); color: #fff; }
/* Knapperne klæber i bunden af vinduet, så "Gem event" kan nås uden at rulle forbi billederne.
   Negativ bund/margen = vinduets egen polstring (24 px), så linjen går helt ud til kanten. */
.nlD-modal-acts { position: sticky; bottom: -24px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; margin: 22px -24px -24px; padding: 14px 24px 24px; background: var(--nlD-s1); box-shadow: 0 -16px 20px -18px rgba(0, 0, 0, .9); }
.nlD-color { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--nlD-dim); }
.nlD-color input[type="color"] { -webkit-appearance: none; appearance: none; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.nlD-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.nlD-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; }
.nlD-color input[type="color"]::-moz-color-swatch { border: 0; border-radius: 12px; }

/* ---------- admin-resten: mellemstor skærm ---------- */
@media (max-width: 1180px) {
    .nlD-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
    .nlD-ed { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 20px; }
}
@media (max-width: 1023px) {
    .nlD-tiles, .nlD-tpls, .nlD-evs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nlD-split, .nlD-ed { grid-template-columns: minmax(0, 1fr); }
    .nlD-split-side { position: static; }
    .nlD-ed-side { position: static; max-height: none; overflow: visible; margin-top: 12px; }
    /* bruger-siden: kolonnen opløses (.nlD-side display: contents) – rollerne nederst */
    .nlD-u-roles { order: 3; margin-top: 12px; }
}

/* ---------- admin-resten: mobil ---------- */
@media (max-width: 720px) {
    .nlD-dash { grid-template-columns: 1fr; gap: 8px; }
    .nlD-big { min-height: 0; padding: 16px 16px 14px; border-radius: 16px; }
    .nlD-big-v { margin-top: 12px; font-size: 2.9rem; }
    .nlD-big-go { padding-top: 14px; }
    .nlD-h2 { margin-top: 24px; }
    .nlD-tiles, .nlD-tpls, .nlD-evs { grid-template-columns: minmax(0, 1fr); }
    .nlD-tile { min-height: 74px; padding: 14px; gap: 12px; }
    .nlD-sec-b { padding: 4px 16px 18px; }
    .nlD-fgrid, .nlD-fgrid.is-3 { grid-template-columns: minmax(0, 1fr); }
    /* 16 px: iOS zoomer ind på felter med mindre skrift */
    .nlD-inp, .nlD-inp.is-mono, .nlD-inp.is-sm { font-size: 16px; }
    textarea.nlD-inp.nlD-json { font-size: 13px; min-height: 380px; }
    /* kortet er hele linket; "Rediger" bliver stående som tegn på det (køen skjuler .nlD-go på mobil) */
    .nlD-tpl .nlD-go { display: inline-flex; }
    .nlD-find .nlD-btn.is-pri { padding: 0 14px; }
    .nlD-u-cols { grid-template-columns: 40px minmax(0, 1fr) 16px; grid-template-areas: "av name go"; }
    .nlD-qhead.nlD-u-cols { display: none; }
    .nlD-u-cols .nlD-c-id { display: none; }
    .nlD-u-cols .nlD-c-name small { display: block; }
    .nlD-pages { padding-bottom: 40px; }
    .nlD-mlist { padding: 0 4px 6px; }
    .nlD-mrow { gap: 10px; padding: 10px 12px; }
    .nlD-mrow .nlD-meter { display: none; }
    .nlD-card.is-form { padding: 16px; }
    .nlD-job { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 14px 18px; }
    .nlD-job-acts form { flex: 1; }
    .nlD-job-acts .nlD-btn { width: 100%; }
    .nlD-tpl { padding: 16px; border-radius: 16px; }
    .nlD-ev { border-radius: 16px; }
    .nlD-past li { grid-template-columns: 84px minmax(0, 1fr); padding: 8px 12px; }
    .nlD-past li > span { display: none; }
    .nlD-save p { display: none; }
    .nlD-save .nlD-btn { flex: 1; }
}
/* DaisyUI skifter vinduet til et ark nedefra under 640 px (modal-bottom) */
@media (max-width: 639px) {
    .nlD-modal.modal-box { width: 100%; max-width: none; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
    .nlD-modal-acts { bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 20px -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
    .nlD-modal-acts .nlD-btn { flex: 1; }
}

/* =====================================================================
   PLAKAT-HARMONISERING (06-10-2026)

   Brugeren: "hele siden matcher ik – få lortet til at matche". Admin stod i Køens
   grafit + rosa (#e11d48), mens forsiden, /rules og resten nu er plakat-systemet
   (nl-top.css / nl-base.css): varm blæk-grund, kursiv smal Archivo, rød→orange.
   Farverne er skiftet på token-niveau i :root øverst (samme navne, nye værdier),
   og her ovenpå får titler og primærknapper plakatens udtryk. Godkend/Samtale/Afvis
   beholder deres signalfarver – de er information, ikke pynt.
   Rul tilbage: sæt de gamle token-værdier ind igen (grafit #131417/#1a1c21/#22252b,
   rosa #e11d48) og slet denne blok.
   ===================================================================== */
.nlD-h1 {
    font-family: var(--nlA-display, "Archivo", "Arial Narrow", Arial, sans-serif);
    font-style: italic; font-weight: 900; font-stretch: 72%;
    text-transform: uppercase; letter-spacing: -.005em; line-height: .95;
    word-spacing: .06em;
    color: var(--nlD-ink);
}
.nlD-sec-t {
    font-family: var(--nlA-display, "Archivo", "Arial Narrow", Arial, sans-serif);
    font-style: italic; font-weight: 900; font-stretch: 78%;
    text-transform: uppercase; letter-spacing: .005em; word-spacing: .06em;
    color: var(--nlD-ink);
}
.nlD-kick { color: var(--nlA-sol, #ffbe3b); }
.nlD-adm { background: linear-gradient(180deg, rgba(217, 39, 28, .10), rgba(217, 39, 28, 0) 90%); }

/* Primærhandlinger: plakatens gradient i stedet for flad rød */
.nlD-btn.is-pri,
.nlD-dock-go,
.nlD-tab-n,
.nlD-row:hover .nlD-go, .nlD-row:focus-visible .nlD-go,
.nlD-tpl:hover .nlD-go, .nlD-tpl:focus-visible .nlD-go,
.nlD-pager a:hover {
    background: var(--nlA-grad, linear-gradient(100deg, #d9271c 0%, #ee4a1d 45%, #f9821f 100%));
    color: #fff;
}
.nlD-btn.is-pri, .nlD-dock-go { font-style: italic; box-shadow: 0 10px 26px rgba(217, 39, 28, .32); }

