*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, sans-serif; font-size: 14px; background: #ecf0f1; color: #222; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

#app { display: flex; min-height: 100vh; align-items: flex-start; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

#sidebar {
  width: 290px; min-width: 290px; flex-shrink: 0;
  background: #f4f7fa; border-right: 2px solid #dce4ec;
  min-height: 100vh;
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,.07);
}

#sidebar-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 14px 10px;
  background: #2c3e50;
  border-bottom: 3px solid #c0392b;
}
#sidebar-title { flex: 1; min-width: 0; }
#sidebar-topbar h1 { font-size: 15px; font-weight: 700; color: #fff; }
#sidebar-subtitle { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; line-height: 1.3; font-style: italic; }
#sidebar-indstillinger-label { font-size: 13px; font-weight: 700; color: #fff; margin-top: 8px; letter-spacing: 0.03em; }
#sidebar-mobil-heading { display: none; }

#sidebar-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px; font-size: 16px; cursor: pointer;
  padding: 3px 8px; color: #fff; line-height: 1;
}

#sidebar-indhold {
  padding: 12px 12px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
#sidebar-luk-mobil { display: none; }

#sidebar hr  { border: none; border-top: 1px solid #dce4ec; }

.sidebar-sektion {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #dce4ec;
  overflow: hidden;
}
.sidebar-sektion-header {
  padding: 7px 12px;
  background: #eef2f7;
  border-bottom: 1px solid #dce4ec;
  border-left: 3px solid #c0392b;
  font-size: 11px; font-weight: 700; color: #2c3e50;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sidebar-sektion-body {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-divider { border: none; border-top: 1px solid #dce4ec; margin: 8px 0 6px; }

.field-label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: #666;
  margin-top: 6px; margin-bottom: 2px;
}

#sidebar select { width: 100%; padding: 5px 7px; border: 1px solid #ccc; border-radius: 4px; background: #fafafa; font-size: 13px; }

input[type=range] { width: 100%; accent-color: #c0392b; display: block; margin-top: 4px; }

.sub-panel { margin-top: 4px; }

.radio-label  { display: block; margin-top: 4px; font-size: 13px; cursor: pointer; }
.radio-label input { margin-right: 5px; }
.radio-eksempel { color: #888; font-size: 11px; }
.sidebar-hint { margin: 1px 0 3px; font-size: 11px; color: #aaa; line-height: 1.3; }

.checkbox-label { display: block; font-size: 13px; cursor: pointer; }
.checkbox-label input { margin-right: 5px; }

#storkredse-links { font-size: 12px; margin-bottom: 4px; }
#storkredse-links a { color: #2980b9; text-decoration: none; }
#storkredse-links a:hover { text-decoration: underline; }

#storkredse-checkboxes label { display: block; font-size: 12px; cursor: pointer; margin: 2px 0; }
#storkredse-checkboxes input { margin-right: 4px; }

.help-text { font-size: 11px; color: #777; line-height: 1.5; }

.wiki-links { font-size: 11px; margin-top: 4px; }
.wiki-links a { color: #2980b9; text-decoration: none; }
.wiki-links a:hover { text-decoration: underline; }

.wiki-inline { font-size: 10px; color: #2980b9; text-decoration: none; vertical-align: super; margin-left: 2px; }
.wiki-inline:hover { text-decoration: underline; }

/* ── Knapper ──────────────────────────────────────────────────────────────── */

.btn-sm { padding: 4px 10px; border: 1px solid #ccc; border-radius: 4px; background: #f8f9fa; cursor: pointer; font-size: 11px; }
.btn-sm:hover { background: #e9ecef; }
.btn-warn { border-color: #e67e22; color: #e67e22; }

.btn-rediger {
  display: inline-block; margin-top: 4px;
  padding: 3px 8px; border: 1px solid #bdc3c7; border-radius: 4px;
  background: #fff; color: #555;
  font-size: 11px; font-weight: 400; cursor: pointer;
}
.btn-rediger:hover { background: #f4f6f7; color: #2c3e50; }

/* ── Kompakt blok-oversigt (sidebar) ─────────────────────────────────────── */

#blok-oversigt { margin-top: 4px; display: flex; flex-direction: column; gap: 5px; }

.blok-oversigt-row { display: flex; flex-direction: column; gap: 3px; }

.blok-oversigt-label { font-size: 11px; font-weight: 700; }

.blok-oversigt-chips { display: flex; flex-wrap: wrap; gap: 3px; }

.blok-chip {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  font-size: 10px; font-weight: 700; color: #fff; cursor: default;
}

/* Blok totaler (i enkelt-valg-sektion) */
#blok-totaler-wrapper {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
#blok-totaler { display: flex; gap: 8px; flex-wrap: wrap; }
.blok-total-box { text-align: center; padding: 8px 14px; border-radius: 8px; color: #fff; flex: 1; min-width: 80px; }
.blok-total-box .tal { font-size: 22px; font-weight: 700; line-height: 1; }
.blok-total-box .navn { font-size: 10px; margin-top: 3px; opacity: .9; }
.blok-total-box .flertal { font-size: 10px; color: rgba(255,255,255,.75); margin-top: 1px; }

/* ── Hovedpanel ───────────────────────────────────────────────────────────── */

#indhold { flex: 1; padding: 16px; min-width: 0; }

/* ── Sektions-kort ────────────────────────────────────────────────────────── */

.sektion-kort {
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 20px; overflow: hidden;
}
.sektion-kort-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.sektion-kort-header h4 {
  font-size: 12px; font-weight: 700; color: #c0392b;
  text-transform: uppercase; letter-spacing: 0.07em; margin: 0;
}
.sektion-kort-header .graf-forklaring { margin: 2px 0 0; }
.sektion-kort-body { padding: 12px 16px; }

/* ── Sektion-kort headers ──────────────────────────────────────────────────── */

.kort-header {
  padding: 10px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  margin: -12px -12px 12px;
  border-radius: 8px 8px 0 0;
}
.kort-header h4 {
  font-size: 15px; font-weight: 700; color: #2c3e50;
  letter-spacing: 0.01em; margin: 0 0 3px;
}
.kort-beskrivelse {
  font-size: 12px; color: #666; line-height: 1.4; margin: 0; font-style: italic;
}
#officielle-tal-note {
  font-size: 11px; color: #888; line-height: 1.4; margin-top: 5px; font-style: italic;
}

.kort-header-lille { margin-bottom: 6px; }
.kort-header-lille h5 {
  font-size: 12px; font-weight: 700; color: #2c3e50;
  margin: 0 0 2px; letter-spacing: 0.02em;
}

/* ── Historik ─────────────────────────────────────────────────────────────── */

#historik-wrapper {
  background: #fff; padding: 12px; border-radius: 8px;
  margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
#plot-historik { height: 200px; }

/* ── Sektion enkelt valg ──────────────────────────────────────────────────── */

#enkelt-valg-sektion {
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 20px; overflow: hidden;
}

#sektion-valg-header {
  display: flex; align-items: center; gap: 0;
  background: #fafafa; border-bottom: 1px solid #f0f0f0;
  padding: 10px 16px;
}
#sektion-valg-titel {
  font-size: 15px; font-weight: 700; color: #2c3e50;
  letter-spacing: 0.01em;
}

/* ── Valgår-vælger ────────────────────────────────────────────────────────── */

#valgdato-wrapper {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
}
#valgdato-wrapper select {
  padding: 5px 10px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 14px; background: #fafafa;
}

#foreloebig-advarsel {
  font-size: 12px; font-weight: 600; color: #856404;
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 4px; padding: 4px 10px;
}

/* ── Halvkreds-række ──────────────────────────────────────────────────────── */

/* ── Intro-boks ───────────────────────────────────────────────────────────── */

#intro-boks {
  background: #fff; border-radius: 8px; margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}

#intro-header {
  background: #2c3e50;
  padding: 16px 20px 14px;
  border-bottom: 3px solid #c0392b;
}
#intro-titel {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em; margin: 0 0 4px;
}
#intro-undertitel {
  font-size: 13px; color: rgba(255,255,255,.65); margin: 0; font-style: italic;
}
#intro-undertitel-desktop { display: none; font-size: 13px; color: rgba(255,255,255,.65); margin: 0; font-style: italic; }

#intro-tekst {
  padding: 14px 20px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
#intro-tekst p { font-size: 14px; line-height: 1.6; color: #444; }
#intro-tekst details { font-size: 13px; color: #555; }
#intro-tekst summary { cursor: pointer; color: #c0392b; font-weight: 700; font-size: 13px; }
#intro-tekst summary:hover { text-decoration: underline; }
#intro-tekst ul { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 5px; line-height: 1.55; }
#intro-tekst strong { color: #2c3e50; }

#nyheder-details summary::after { content: "NY"; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; letter-spacing: 0.05em; margin-left: 6px; vertical-align: middle; }
#nyheder-details[open] summary::after { display: none; }
#nyheder-details ul { margin: 8px 0 0 18px; }

.graf-forklaring { font-size: 11px; color: #888; margin-bottom: 4px; line-height: 1.4; font-style: italic; }

/* ── Halvkreds-række ──────────────────────────────────────────────────────── */

#halvkreds-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 4px; }
#halvkreds-col, #soejler-col { display: flex; flex-direction: column; }

#plot-halvkreds, #plot-soejler {
  background: #f9f9f9; border-radius: 6px;
  border: 1px solid #eee; padding: 8px;
  min-width: 0; overflow: hidden;
}
#plot-soejler { height: 320px; }

/* ── Tabel ────────────────────────────────────────────────────────────────── */

#tabel-wrapper { overflow-x: auto; margin-top: 8px; }
.th-kort { display: none; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
thead th { background: #f0f0f0; padding: 7px 10px; text-align: right; font-size: 12px; text-transform: uppercase; color: #666; white-space: nowrap; }
thead th.left { text-align: left; }
tbody td { padding: 6px 10px; text-align: right; border-top: 1px solid #eee; }
tbody td:first-child { text-align: left; }
tbody tr.under-spaerre { color: #bbb; }
tbody tr.under-spaerre td:first-child { font-style: italic; }

.farve-prik { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex-shrink: 0; }

/* ── Fejl-overlay ─────────────────────────────────────────────────────────── */

#fejl-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center;
}
#fejl-boks {
  background: #fff; border-radius: 10px; padding: 28px 36px;
  text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#fejl-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid #eee; border-top-color: #c0392b;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#fejl-tekst { font-size: 14px; color: #444; margin: 0; }

/* ── Blokfordeling-modal ─────────────────────────────────────────────────── */

#blok-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
#blok-modal-overlay.aktiv { display: flex; }

#blok-modal {
  background: #fff; border-radius: 8px;
  width: 720px; max-width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  padding: 20px;
  margin: auto;
}

#blok-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
#blok-modal-header span { font-size: 15px; font-weight: 700; color: #2c3e50; }
#luk-blok-modal {
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: #888; line-height: 1; padding: 2px 6px;
}
#luk-blok-modal:hover { color: #333; }

#blok-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

#blok-scope-toggle { display: flex; gap: 6px; background: #f0f0f0; border-radius: 6px; padding: 4px 8px; }
.scope-label { font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

#bucket-container { display: flex; flex-direction: column; gap: 2px; }

.parti-item {
  padding: 4px 8px; border-radius: 4px;
  background: #f8f9fa; border: 1px solid #dee2e6;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.parti-item .prik { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.parti-item-navn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parti-blok-btns { display: flex; gap: 2px; flex-shrink: 0; }
.parti-blok-btn {
  padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--blok-farve); color: var(--blok-farve);
  background: transparent;
}
.parti-blok-btn.aktiv { background: var(--blok-farve); color: #fff; }

/* Nordatlantisk (i modal) */
#nordatl-dropdowns { display: flex; flex-wrap: wrap; gap: 10px; }
.nordatl-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.nordatl-row select { padding: 3px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; }

/* ── Desktop-only ─────────────────────────────────────────────────────────── */

@media (min-width: 769px) {
  #sidebar-topbar h1,
  #sidebar-subtitle { display: none; }

  #intro-undertitel { display: none; }
  #intro-undertitel-desktop { display: block; }
}

/* ── Mobil ────────────────────────────────────────────────────────────────── */

.tandhjul-hint { display: none; }

@media (max-width: 768px) {
  #app { flex-direction: column; }

  .th-lang { display: none; }
  .th-kort { display: inline; }
  /* Skjul 'Stemmer' og 'Mandater' kolonner i detaljeret tabel — behold kun andele */
  #tabel th:nth-child(2), #tabel td:nth-child(2),
  #tabel th:nth-child(4), #tabel td:nth-child(4) { display: none; }

  .tandhjul-hint {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #2980b9;
    font-weight: 600;
  }
  .tandhjul-hint a {
    color: inherit;
    text-decoration: none;
  }
  #sidebar-indstillinger-label { display: none; }
  #intro-header { display: none; }
  #sidebar-mobil-heading {
    display: block;
    font-size: 17px; font-weight: 700; color: #2c3e50;
    padding: 12px 14px 6px;
    letter-spacing: 0.01em;
  }

  #sidebar {
    width: 100%; min-width: unset;
    position: static; max-height: none;
    border-right: none; border-bottom: 1px solid #ddd;
    min-height: unset;
  }
  #sidebar-toggle { display: block; color: #fff; border-color: rgba(255,255,255,.4); }
  #sidebar-indhold { display: none; }
  #sidebar.aaben {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000; overflow-y: auto;
  }
  #sidebar.aaben #sidebar-indhold { display: flex; }
  #sidebar-luk-mobil {
    display: block;
    width: 100%; padding: 12px; margin-top: 4px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    border: none; border-radius: 6px;
    background: #2c3e50; color: #fff;
  }

  #indhold { padding: 10px; width: 100%; }
  #tabel-wrapper { padding: 0; margin: 0 -6px; }
  #tabel { table-layout: fixed; width: 100%; }
  #tabel th, #tabel td { padding: 6px 5px; }
  #tabel th:nth-child(1), #tabel td:nth-child(1) { width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tabel th:nth-child(3), #tabel td:nth-child(3),
  #tabel th:nth-child(5), #tabel td:nth-child(5) { width: 25%; }

  #plot-soejler { height: 260px; }
  #plot-historik { height: 220px; }

  #valgdato-wrapper { flex-wrap: wrap; }

  #blok-modal { padding: 14px; }
}

#sidefod {
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #e0e0e0;
  margin-top: 16px;
}
#sidefod a {
  color: #c0392b;
  text-decoration: none;
}
#sidefod a:hover {
  text-decoration: underline;
}
#system-info-linje {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8edf2;
}
.historik-sub-titel {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
}
#historik-vis-toggle, #historik-groep-toggle {
  display: inline-flex;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  overflow: hidden;
}
.historik-vis-btn {
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  border: none;
  background: #f8f9fa;
  color: #555;
}
.historik-vis-btn.aktiv {
  background: #2c3e50;
  color: #fff;
}
.historik-vis-btn:hover:not(.aktiv) { background: #e9ecef; }
#system-boks-parametre {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#system-boks-details {
  margin-top: 8px;
}
#system-boks-details summary {
  font-size: 12px;
  color: #555;
  cursor: pointer;
  user-select: none;
}
#system-boks-beskrivelse {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-top: 6px;
}
.system-boks-pill {
  font-size: 11px;
  background: #dde6ef;
  color: #2c3e50;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
#historik-parti-vaelger {
  padding: 8px 4px 4px;
  border-top: 1px solid #eee;
  margin-top: 4px;
}
#historik-parti-vaelger-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.historik-parti-label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.historik-parti-alle {
  font-size: 11px;
  padding: 1px 7px;
  border: 1px solid #bdc3c7;
  border-radius: 3px;
  background: #f8f9fa;
  cursor: pointer;
  color: #555;
}
.historik-parti-alle:hover { background: #e9ecef; }
#historik-parti-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.historik-parti-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
  color: #2c3e50;
  background: #f0f0f0;
  transition: opacity .1s, background .1s;
  user-select: none;
  white-space: nowrap;
}
.historik-parti-chip .chip-prik {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.historik-parti-chip.valgt {
  background: #fff;
}
.historik-parti-chip:not(.valgt) {
  opacity: .45;
}
.historik-parti-chip:hover { opacity: 1; }
.historik-parti-chip .chip-bogstav {
  font-weight: 700;
  font-size: 11px;
  color: #2c3e50;
}
.historik-parti-chip .chip-navn {
  font-size: 11px;
  color: #555;
}

.historik-note {
  font-size: 11px;
  color: #767676;
  padding: 4px 4px 0;
  font-style: italic;
}
.sidefod-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
}

/* ── Skip-to-content ───────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: #2c3e50;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
}

/* ── Kredsmandatfordeling-modal ────────────────────────────────────────────── */

#km-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
#km-modal-overlay.aktiv { display: flex; }

#km-modal {
  background: #fff; border-radius: 8px;
  width: 480px; max-width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  padding: 20px;
  margin: auto;
}

#km-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
#km-modal-header span { font-size: 15px; font-weight: 700; color: #2c3e50; }
#luk-km-modal {
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: #888; line-height: 1; padding: 2px 6px;
}
#luk-km-modal:hover { color: #333; }

.km-landsdel-gruppe { margin-bottom: 12px; }
.km-landsdel-titel {
  font-size: 12px; font-weight: 700; color: #555;
  margin-bottom: 4px; padding-bottom: 3px;
  border-bottom: 1px solid #eee;
}
.km-storkreds-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; font-size: 13px; color: #2c3e50;
}
.km-storkreds-row input[type=number] {
  width: 52px; padding: 3px 6px; border: 1px solid #bdc3c7;
  border-radius: 4px; font-size: 13px; text-align: center;
}
#km-modal-topbar {
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.km-topbar-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #2c3e50; margin-bottom: 4px;
}
.km-topbar-row select {
  padding: 3px 6px; border: 1px solid #bdc3c7;
  border-radius: 4px; font-size: 13px;
}
#km-modal-fejl {
  margin-top: 8px; padding: 8px 10px;
  background: #fdecea; border-left: 3px solid #c0392b;
  border-radius: 3px; font-size: 12px; color: #c0392b;
}
.btn-gem {
  background: #2c3e50 !important; color: #fff !important;
  border-color: #2c3e50 !important; font-weight: 600;
}
.btn-gem:hover { background: #3d5166 !important; }
.km-sektion { margin-bottom: 16px; }
.km-sektion-titel {
  font-size: 14px; font-weight: 700; color: #2c3e50;
  margin-bottom: 2px;
}
.km-sektion-beskrivelse {
  font-size: 11px; color: #777; line-height: 1.4;
  margin: 0 0 8px;
}
#km-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #eee; flex-wrap: wrap; gap: 8px;
}
#km-modal-total { font-size: 13px; font-weight: 600; color: #2c3e50; }

