/* ---------- Nodra portal: login, dashboard, sager ---------- */

/* Skjulte elementer skal blive ved med at være skjulte.
   Uden denne regel vinder en klasse med display: flex eller display: grid
   over HTML-attributten hidden, og elementet bliver synligt alligevel.
   Det gjaldt blandt andet afkrydsningsfeltet "Intern note" under Kommunikation. */
[hidden] { display: none !important; }

.btn-lille { padding: 8px 14px; font-size: 13.5px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
button.btn { cursor: pointer; font-family: 'Inter', sans-serif; }

.besked-boks {
  border: 1px solid #EAE8E4;
  border-left: 3px solid #0F5C66;
  background: #FFFFFF;
  padding: 13px 16px;
  font-size: 14.5px;
  color: #34332D;
  margin-bottom: 18px;
  border-radius: 2px;
}
.besked-boks.fejl { border-left-color: #A6402F; color: #7E3323; }
.besked-boks.ok { border-left-color: #2F6B4F; color: #245840; }

/* Topbar */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { border-bottom: 1px solid #EAE8E4; background: #FBFAF7; }
.app-top {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px;
}
.app-brand { display: flex; align-items: center; gap: 10px; }
.app-brand .nav-word { font-size: 18px; }
.app-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; margin-left: 10px; }
.app-nav a { text-decoration: none; color: #6B6862; padding: 4px 0; border-bottom: 2px solid transparent; }
.app-nav a:hover { color: #141414; }
.app-nav a.aktiv { color: #141414; border-bottom-color: #0F5C66; }
.app-bruger { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-navn { font-size: 14px; font-weight: 500; }
.app-rolle {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #0F5C66;
  border: 1px solid #DCD9D2; padding: 4px 8px; border-radius: 2px;
}

.app-main { flex: 1; padding: 34px 0 64px; }
/* Admin og portal bruger laptop-bredde fornuftigt */
.app-shell .wrap.app-wide,
.app-shell .app-main > .wrap {
  max-width: 1440px;
}
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.app-head h1 { font-size: 27px; margin-top: 10px; }
.app-head p { color: #6B6862; font-size: 14.5px; margin-top: 8px; }

/* Nøgletal */
.tal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: #EAE8E4; border: 1px solid #EAE8E4; margin-bottom: 34px; }
.tal-kort { background: #FFFFFF; padding: 22px 22px 24px; }
.tal-kort .label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #8A867F; }
.tal-kort .vaerdi { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 32px; margin-top: 12px; line-height: 1; }
.tal-kort .noteret { color: #6B6862; font-size: 13.5px; margin-top: 10px; }

/* Sektioner */
.panel { border: 1px solid #EAE8E4; background: #FFFFFF; margin-bottom: 34px; border-radius: 2px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #EAE8E4; flex-wrap: wrap; }
.panel-head h2 { font-size: 17.5px; }
.panel-head .antal { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8A867F; letter-spacing: 0.14em; }
.panel-krop { padding: 22px; }
.panel-krop.tabelkrop { padding: 0; }

/* Filtre */
.filtre { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 18px 22px; border-bottom: 1px solid #EAE8E4; background: #FBFAF7; align-items: end; }
.filtre .field { margin-bottom: 0; }
.field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #EAE8E4; border-radius: 8px;
  background: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 14.5px; color: #141414;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select:focus, .field textarea:focus, .field input:focus { outline: none; border-color: #0F5C66; }
.field input[type="file"] { padding: 10px; background: #FFFFFF; }
.field-hjaelp { font-size: 12.5px; color: #8A867F; margin-top: 6px; }

/* Tabeller */
.tabel-rulle { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 920px; }
table.data#release-tabel { min-width: 1100px; }
table.data#release-tabel th:last-child,
table.data#release-tabel td.beskrivelse { min-width: 420px; }
table.data th {
  text-align: left; font-family: 'JetBrains Mono', monospace; font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #8A867F;
  padding: 14px 18px; border-bottom: 1px solid #EAE8E4; white-space: nowrap; background: #FBFAF7;
}
table.data th.sorterbar { cursor: pointer; user-select: none; }
table.data th.sorterbar:hover { color: #0F5C66; }
table.data th .pil { margin-left: 6px; color: #0F5C66; }
table.data td { padding: 15px 18px; border-bottom: 1px solid #F0EEE9; color: #34332D; vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr.klikbar { cursor: pointer; }
table.data tbody tr.klikbar:hover { background: #FBFAF7; }
table.data td.emne { font-weight: 500; color: #141414; min-width: 240px; }
table.data td.beskrivelse, table.data td.emne { word-break: normal; }
table.data td.mono, table.data td.nr { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #6B6862; white-space: nowrap; }
table.data td.beskrivelse { color: #6B6862; max-width: 560px; min-width: 320px; white-space: normal; line-height: 1.55; }
table.data#release-tabel td.beskrivelse { max-width: none; width: 42%; }
table.data tr.er-ny td { background: #F6F2E8; }
table.data tr.er-ny td.nr { color: #8A6516; font-weight: 600; }

.pill {
  display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px;
  border-radius: 2px; border: 1px solid #DCD9D2; color: #4A4844; white-space: nowrap;
}
.pill-ny { background: #FBF0D6; border-color: #E8D69C; color: #7A5A0B; }
.pill-kritisk { background: #FBE4E0; border-color: #EFC0B7; color: #8B3122; }
.pill-aktiv { background: #E3F0F1; border-color: #B5D6D9; color: #0F5C66; }
.pill-afventer { background: #F1EDE4; border-color: #DED6C4; color: #6B5B33; }
.pill-loest { background: #E7F0E9; border-color: #C0D8C6; color: #2F6B4F; }
.pill-neutral { background: #F3F1ED; }

.tom-besked { padding: 40px 22px; text-align: center; color: #8A867F; font-size: 14.5px; }

/* Indbakke */
.indbakke-liste { display: flex; flex-direction: column; }
.indbakke-post {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 18px;
  padding: 16px 22px; border-bottom: 1px solid #F0EEE9;
  cursor: pointer; background: transparent; border-left: 3px solid #0F5C66;
  text-align: left; font-family: 'Inter', sans-serif; width: 100%;
  border-top: none; border-right: none;
}
.indbakke-post:last-child { border-bottom: none; }
.indbakke-post:hover { background: #FBFAF7; }
.indbakke-post .top { font-size: 14.5px; font-weight: 500; color: #141414; }
.indbakke-post .uddrag { font-size: 13.5px; color: #6B6862; grid-column: 1 / -1; line-height: 1.55; }
.indbakke-post .tid { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #8A867F; white-space: nowrap; }

/* Sagsdetaljer */
.sag-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.felt-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 22px; }
.felt .label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #8A867F; display: block; margin-bottom: 6px; }
.felt .vaerdi { font-size: 14.5px; color: #34332D; }
.felt-fuld { grid-column: 1 / -1; }
.felt .vaerdi.brud { white-space: pre-wrap; line-height: 1.65; }

.traad { display: flex; flex-direction: column; gap: 0; }
.traad-post { padding: 18px 22px; border-bottom: 1px solid #F0EEE9; }
.traad-post:last-child { border-bottom: none; }
.traad-hoved { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.traad-afsender { font-size: 14px; font-weight: 600; }
.traad-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8A867F; letter-spacing: 0.06em; }
.traad-tekst { font-size: 14.5px; color: #34332D; white-space: pre-wrap; line-height: 1.65; }
.traad-post.fra-nodra { background: #FBFAF7; }
.traad-post.er-intern { background: #F6F1EA; border-left: 3px solid #A6802F; }
.traad-post.haendelse .traad-tekst { color: #6B6862; font-size: 13.5px; }
.traad-filer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.traad-filer a { font-size: 12.5px; color: #0F5C66; text-decoration: none; border: 1px solid #DCD9D2; padding: 5px 10px; border-radius: 2px; background: #FFFFFF; }
.traad-filer a:hover { border-color: #0F5C66; }

.svar-boks { padding: 20px 22px; border-top: 1px solid #EAE8E4; background: #FBFAF7; }

/* ---------- Estimat og kundens accept ---------- */
.estimat-boks { border: 1px solid #B5D6D9; background: #E9F3F4; border-radius: 2px; padding: 20px 22px; margin-bottom: 26px; }
.estimat-boks.godkendt { border-color: #C0D8C6; background: #EDF5EF; }
.estimat-boks.afvist { border-color: #EFC0B7; background: #FBEEEB; }
.estimat-boks h3 { font-size: 16px; margin: 0 0 6px; }
.estimat-boks p { font-size: 14.5px; color: #34332D; margin: 0 0 12px; line-height: 1.6; }
.estimat-boks .estimat-tal { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: #0F5C66; display: block; margin-bottom: 10px; }
.estimat-boks .estimat-begrundelse { white-space: pre-wrap; }
.estimat-knapper { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.estimat-vaerdi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: #34332D; }
.pill-afvist { background: #FBE4E0; border-color: #EFC0B7; color: #8B3122; }
.svar-raekke { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.checkbox-linje { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #4A4844; }

/* Knapper nederst i admin-panelet */
.admin-knapper { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Vindue med mailtekst */
.modal-baggrund {
  position: fixed; inset: 0; z-index: 60; padding: 24px;
  background: rgba(20, 20, 20, 0.45);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
}
.modal {
  background: #FBFAF7; border: 1px solid #EAE8E4; width: 100%; max-width: 640px;
  margin: 40px 0; box-shadow: 0 18px 50px rgba(20, 20, 20, 0.18);
}
.modal.modal-bred { max-width: 760px; }
.modal.modal-lille { max-width: 460px; }
.modal-tekst { font-size: 14.5px; color: #34332D; line-height: 1.6; margin: 0; }
.btn-fare { background: #8B3122 !important; border-color: #8B3122 !important; color: #FBFAF7 !important; }

/* Admin dashboard */
.admin-soeg-panel { padding: 28px 28px 24px; }
.admin-soeg-raekke {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}
.admin-soeg-felt label { display: block; margin-bottom: 8px; }
.admin-soeg-felt input[type="search"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #EAE8E4;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #141414;
}
.admin-soeg-felt input[type="search"]:focus { outline: none; border-color: #0F5C66; }
.admin-soeg-hint { margin-top: 10px; font-size: 13px; color: #8A867F; }

.admin-soeg-seneste {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-soeg-seneste .seneste-label {
  width: 100%;
  font-size: 12px;
  color: #6B6862;
}

.admin-soeg-seneste .seneste-boks {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #FBFAF7;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.admin-soeg-seneste .seneste-boks:hover {
  border-color: rgba(15, 92, 102, 0.35);
}

.admin-soeg-seneste .seneste-boks .navn {
  font-weight: 600;
  font-size: 14px;
}
.soege-resultater { margin-top: 18px; border-top: 1px solid #F0EEE9; }
.soege-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: 10px 18px;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid #F0EEE9;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: #34332D;
}
.soege-post:hover { background: #FBFAF7; }
.soege-post .navn { font-weight: 600; color: #141414; font-size: 15px; }
.soege-post .meta { font-size: 13.5px; color: #6B6862; }
.soege-post .pil { color: #0F5C66; font-size: 18px; align-self: center; }
.soege-tom { padding: 18px 4px; color: #8A867F; font-size: 14px; }

.tal-kort.klikbar { cursor: pointer; transition: background .12s ease; }
.tal-kort.klikbar:hover { background: #F6F8F8; }
.tal-kort.klikbar:focus { outline: 2px solid #0F5C66; outline-offset: -2px; }

/* Faner på kundedashboard */
.fane-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #EAE8E4;
  margin-bottom: 22px;
  padding: 0 2px;
}
.fane-nav-faner {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}
.fane-nav-handling {
  flex: 0 0 auto;
  align-self: center;
  margin-bottom: 6px;
}
.fane-knap {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #6B6862;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.fane-knap:hover { color: #141414; }
.fane-knap.aktiv { color: #141414; border-bottom-color: #0F5C66; }
.fane-knap.placeholder { color: #A8A49C; }
.fane-panel[hidden] { display: none !important; }

.kunde-kort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.info-kort {
  border: 1px solid #EAE8E4;
  background: #FFFFFF;
  padding: 16px 18px;
  border-radius: 2px;
}
.info-kort .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A867F;
  display: block;
  margin-bottom: 6px;
}
.info-kort .vaerdi { font-size: 15px; color: #141414; word-break: break-word; }

.login-kort {
  border: 1px solid #EAE8E4;
  background: #FFFFFF;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 2px;
}
.login-kort-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.login-kort-navn { font-weight: 600; font-size: 15.5px; color: #141414; }
.login-kort-email { color: #6B6862; font-size: 13.5px; margin-top: 4px; word-break: break-all; }
.login-kort-handlinger {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.login-kort-roller { margin-top: 12px; }
.login-status-linje { margin-top: 10px; font-size: 12.5px; color: #8A867F; }
.login-status-linje.ok { color: #2F6B4F; }
.login-status-linje.fejl { color: #A6402F; }
.midlertidig-kode-boks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #C7DDCF;
  border-radius: 8px;
  background: #F2F8F4;
}
.midlertidig-kode-label {
  color: #4F6E5C;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.midlertidig-kode-vaerdi {
  display: block;
  margin-top: 5px;
  color: #1D3F2D;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.025em;
  word-break: break-all;
}
.midlertidig-kode-hjaelp {
  margin-top: 5px;
  color: #5F7166;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .midlertidig-kode-boks { align-items: stretch; flex-direction: column; }
  .midlertidig-kode-boks .btn { width: 100%; justify-content: center; }
}

.multi-valg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid #DCD9D2;
  background: #FBFAF7;
  color: #4A4844;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.chip:hover { border-color: #0F5C66; color: #0F5C66; }
.chip-valgt {
  background: #E3F0F1;
  border-color: #0F5C66;
  color: #0F5C66;
  font-weight: 500;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #34332D;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  width: 18px;
  height: 18px;
  accent-color: #0F5C66;
  cursor: pointer;
}

.besked-fokus {
  outline: 2px solid #0F5C66;
  outline-offset: -2px;
  background: #F3F8F8 !important;
}
.placeholder-boks {
  padding: 36px 22px;
  text-align: center;
  color: #8A867F;
  font-size: 14.5px;
  border: 1px dashed #EAE8E4;
  background: #FBFAF7;
  border-radius: 2px;
}

@media (max-width: 780px) {
  .admin-soeg-raekke { grid-template-columns: 1fr; }
  .soege-post { grid-template-columns: 1fr; gap: 4px; }
  .soege-post .pil { display: none; }
}
.modal-hoved {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid #EAE8E4; background: #FFFFFF;
}
.modal-hoved h2 { font-size: 17px; }
.modal-luk {
  border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer;
  color: #8A867F; padding: 0 4px;
}
.modal-luk:hover { color: #141414; }
.modal-krop { padding: 22px; display: grid; gap: 16px; }
.modal-krop textarea, .modal-krop input {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6;
}
.modal-krop input[readonly] { background: #F2F0EC; color: #4A4844; }
.modal-knapper { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.modal-knapper a.btn { text-decoration: none; }
.checkbox-linje input { width: 16px; height: 16px; accent-color: #0F5C66; }

.admin-form .field { margin-bottom: 14px; }

.tilbage { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #0F5C66; text-decoration: none; margin-bottom: 16px; }

.indlaeser { padding: 44px 22px; text-align: center; color: #8A867F; font-size: 14.5px; }

.login-fejl { margin-bottom: 18px; }

@media (max-width: 900px) {
  .sag-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app-top { padding: 14px 22px; flex-wrap: wrap; gap: 12px 16px; }
  .app-nav { order: 3; width: 100%; margin-left: 0; }
  .app-bruger { margin-left: auto; }
  .app-navn { display: none; }
  .app-head h1 { font-size: 23px; }
  .filtre { grid-template-columns: 1fr; }
  table.data { min-width: 620px; }
}


/* Branding basics (detaljer i branding.html inline for cache-sikkerhed) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.brand-card { border: 1px solid #EAE8E4; background: #FBFAF7; padding: 18px; border-radius: 2px; }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.brand-type { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #0F5C66; }
.brand-card h3 { font-size: 18px; margin-bottom: 8px; }
.brand-beskrivelse { color: #6B6862; font-size: 14px; }
.brand-meta { margin-top: 14px; display: grid; gap: 5px; font-size: 12.5px; color: #6B6862; }
.brand-files { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-files a { font-size: 12.5px; color: #0F5C66; text-decoration: none; border: 1px solid #DCD9D2; padding: 5px 10px; border-radius: 2px; background: #FFFFFF; }
.brand-file-icon { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .18em; color: #0F5C66; border: 1px solid #DCD9D2; padding: 18px; background: #FBFAF7; }
.brand-font-sample { font-size: 30px; line-height: 1.1; color: #141414; text-align: center; }
.brand-preview-note { margin-top: 8px; font-size: 11.5px; color: #8A867F; text-align: center; }
@media (max-width: 780px) { .app-nav { overflow-x: auto; padding-bottom: 2px; } .app-nav a { white-space: nowrap; } }

/* Statusskift i kommunikationstråd – altid som tydelig boks, aldrig ren brødtekst */
.traad-statusskift {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.traad-status-pil {
  color: #8A867F;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.traad-post .traad-status-pill.pill,
.traad-statusskift .pill {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #DCD9D2;
  line-height: 1.2;
}

/* Admin live-notifikationer (toast) */
.admin-notif-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}
.admin-notif {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #18274a;
  color: #FBFAF7;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.22);
  overflow: hidden;
  animation: admin-notif-ind 0.22s ease-out;
}
.admin-notif-indhold {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 14px 8px 14px 16px;
  cursor: pointer;
  font: inherit;
}
.admin-notif-titel {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.admin-notif-tekst {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(251, 250, 247, 0.88);
}
.admin-notif-luk {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(251, 250, 247, 0.75);
  font-size: 20px;
  line-height: 1;
  padding: 10px 12px;
  cursor: pointer;
}
.admin-notif-luk:hover { color: #FBFAF7; }
@keyframes admin-notif-ind {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Document Design System */
.doc-head-actions { display: flex; align-items: center; gap: 12px; }
.doc-highlight {
  border: 1px solid #EAE8E4;
  background: #FBFAF7;
  padding: 18px 20px;
  border-radius: 2px;
}
.doc-highlight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.doc-highlight-titel {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #141414;
}
.doc-highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: #6B6862;
  margin-bottom: 14px;
}
.doc-highlight-meta .mono,
.doc-editor-meta .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.doc-highlight-knapper { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-check-grid, .doc-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}
.doc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #34332D;
  line-height: 1.4;
}
.doc-check input { margin-top: 3px; accent-color: #0F5C66; }
.doc-wizard .field { margin-bottom: 14px; }
.doc-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EAE8E4;
}
.doc-editor-titel {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.doc-editor-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-status-select {
  padding: 8px 10px;
  border: 1px solid #EAE8E4;
  border-radius: 8px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 13.5px;
}
.doc-preview-wrap {
  border: 1px solid #EAE8E4;
  background: #E8E6E1;
  border-radius: 2px;
  overflow: auto;
  max-height: min(70vh, 820px);
}
.doc-preview-frame {
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #E8E6E1;
}
