:root {
  --ink: #18323d;
  --muted: #607682;
  --line: #dfe7eb;
  --green: #137968;
  --nav: #102c37;
  --bg: #f3f6f8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, select, input, textarea { font: inherit; }
button, select, a { touch-action: manipulation; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
code { font-size: 0.92em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* —— Ledelses-shell —— */
.mgmt-shell { display: flex; min-height: 100vh; }
.mgmt-aside {
  position: fixed; width: 242px; height: 100vh; background: var(--nav);
  padding: 32px 22px; color: #d3e0e6; display: flex; flex-direction: column; z-index: 20;
}
.mgmt-main { margin-left: 242px; padding: 0 40px 40px; max-width: 1800px; width: 100%; }

.brand { font-size: 29px; letter-spacing: -1px; font-weight: 750; color: white; display: block; }
.brand span { color: #69d4bc; margin: 0 5px; }
.company { font-size: 12px; letter-spacing: 1.5px; color: #9eb7c1; margin: 12px 0 44px; }
.mgmt-aside nav { display: grid; gap: 6px; }
.mgmt-aside .nav-item, .mgmt-aside nav a, .mgmt-aside nav button {
  display: block; border: 0; text-align: left; background: transparent;
  color: #bfd1d9; border-radius: 8px; padding: 12px; font-size: 14px; width: 100%;
}
.mgmt-aside .nav-item.active, .mgmt-aside a.active { background: #234652; color: white; }
.mgmt-aside .nav-item:hover, .mgmt-aside nav a:hover, .mgmt-aside nav button:hover { background: #294c57; }
.aside-bottom { margin-top: auto; font-size: 13px; color: #a9c0c9; }
.connection { color: #d9e7ec; }

.page-header, .topbar {
  height: 78px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
}
.breadcrumb { font-size: 14px; color: var(--muted); }
.pill {
  background: #e4f0ee; color: #26665c; border-radius: 30px;
  padding: 6px 12px; font-size: 12px; white-space: nowrap;
}
.pill--neutral, .pill.neutral { color: var(--muted); background: #f1f5f7; }
.pill--awaiting { background: #eef3f5; color: #607682; }
.pill--unverified, .pill--partial, .pill--stale, .pill.warn { background: #f7efe6; color: #8a5a28; }
.pill--verified { background: #e4f0ee; color: #26665c; }
.pill--error, .pill.error { background: #f7e8e8; color: #8a3030; }
.pill--suppressed { background: #eee; color: #666; }

.heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 32px 0 22px;
}
.eyebrow { font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: #597681; }
h1 { font-size: 34px; letter-spacing: -1.2px; line-height: 1.2; margin: 10px 0; }
h2 { font-size: 23px; letter-spacing: -.5px; margin: 5px 0; }
h3 { font-size: 17px; margin: 0; }
p { color: var(--muted); margin: 8px 0; }

.btn, .button {
  border: 1px solid #cbd9df; border-radius: 7px; padding: 10px 16px;
  background: white; color: var(--ink); white-space: nowrap;
}
.btn--primary, .button.primary {
  background: var(--green); border-color: var(--green); color: white;
}
.btn--icon {
  padding: 8px 12px; font-size: 18px; line-height: 1; min-width: 42px;
}
.btn:disabled, .button:disabled { opacity: .55; cursor: not-allowed; }

.heading-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.data-stamp {
  font-size: 13px; color: var(--muted); white-space: nowrap;
}

.toolbar-block { width: 100%; }
.toolbar {
  display: flex; gap: 16px; align-items: end; flex-wrap: wrap;
  padding: 18px; background: white; border: 1px solid var(--line); border-radius: 10px;
}
.toolbar--employee { background: transparent; border: 0; padding: 0; }
.toolbar-block > .progress--compact { margin-top: 8px; }
.field, .form-field { font-size: 14px; color: var(--muted); }
.field label, .form-field label { display: block; }
.field select, .field input, .input, .form-field input, .form-field select, .form-field textarea,
.toolbar select {
  appearance: auto; display: block; background: white; border: 1px solid #ccd9e0;
  border-radius: 6px; margin-top: 5px; padding: 8px 12px; color: var(--ink); min-width: 140px; width: 100%;
}
.selection { font-size: 14px; color: var(--muted); margin-left: auto; padding-bottom: 4px; display: grid; gap: 2px; }
.selection strong { color: var(--ink); }
.selection-busy { color: var(--green); }

/* —— Progress: rigtig trin-procent (ikke animeret «Microsoft-procent») —— */
.progress {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 12px 0 0;
}
.progress--compact { margin: 8px 0 0; }
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.progress-label { color: var(--ink); font-weight: 500; }
.progress-percent { color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: #e2eaee;
  overflow: hidden;
}
.progress-bar--fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .2s ease-out;
}
.form-actions .progress { margin: 0; flex: 1 1 220px; min-width: 180px; }
@media (prefers-reduced-motion: reduce) {
  .progress-bar--fill { transition: none; }
}
.meta-line { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.meta-line b { color: var(--ink); font-weight: 600; }

.notice {
  display: flex; align-items: flex-start; gap: 13px; background: #eaf1f5;
  border: 1px solid #d3e0e8; border-radius: 8px; margin: 20px 0 32px; padding: 15px 18px; font-size: 14px;
}
.notice--error, .notice.error { background: #faf0f0; border-color: #e8cfcf; }
.notice--inline { margin: 0 0 16px; }
.notice-icon {
  border: 1px solid #7b98a8; min-width: 22px; height: 22px; border-radius: 50%;
  text-align: center; color: #4c7284; font-weight: 600;
}

.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin: 30px 0 16px;
}
.meta { font-size: 13px; color: var(--muted); padding-bottom: 7px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kpi {
  display: block; text-align: left; width: 100%; border: 1px solid var(--line);
  border-radius: 10px; background: white; padding: 20px; color: var(--ink);
  transition: box-shadow .15s, transform .15s;
}
button.kpi { cursor: pointer; }
.kpi:hover { box-shadow: 0 6px 20px #18323d0c; transform: translateY(-2px); }
.kpi--static:hover { box-shadow: none; transform: none; }
.kpi--large { padding: 22px; }
.kpi--large .value { font-size: 48px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-label { font-size: 15px; font-weight: 600; }
.unit {
  background: #f2f6f7; color: #68808d; border-radius: 6px; min-width: 33px;
  text-align: center; font-size: 13px; padding: 4px 8px;
}
.value { font-size: 37px; font-weight: 600; line-height: 1.4; margin: 14px 0 0; color: var(--ink); }
.value--empty, .value.waiting { color: #8aa0ab; }
.value-unit { font-size: 18px; font-weight: 400; color: #78929d; margin-left: 10px; }
.kpi-status { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.kpi-note { font-size: 13px; color: var(--muted); }
.kpi-bottom {
  display: flex; gap: 20px; margin-top: 18px; padding-top: 12px;
  border-top: 1px solid #edf1f3; color: var(--muted); font-size: 13px;
}
.kpi-bottom b { font-weight: 500; color: #7b919c; margin-left: 6px; }

.panel {
  border: 1px solid var(--line); border-radius: 10px; background: white; margin-top: 18px;
}
.panel-title {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px;
}
.panel-title p { font-size: 14px; margin-bottom: 0; }
.table-wrap { overflow: auto; }
.dept-table, table {
  width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap;
}
th {
  font-size: 12px; font-weight: 600; color: #69818c; background: #f7f9fa; padding: 13px 20px;
}
td { font-size: 14px; border-top: 1px solid #eaf0f3; padding: 17px 20px; }
td:first-child, th[scope="row"] { font-weight: 600; }
.dept-table tfoot th,
.dept-table tfoot td {
  border-top: 2px solid #d5e0e6;
  background: #f3f7f8;
  font-weight: 600;
  padding: 15px 20px;
}
.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-note { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.department-name { display: flex; gap: 12px; align-items: center; }
.initial {
  background: #edf5f3; color: #3d7e70; width: 32px; height: 32px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.panel-footer {
  border-top: 1px solid var(--line); padding: 13px 22px; font-size: 13px; color: var(--muted);
}

.empty-chart {
  margin: 0 22px; height: 220px; display: grid; place-items: center; text-align: center;
  border-bottom: 1px solid #dce5ea;
  background: repeating-linear-gradient(to top, transparent 0, transparent 53px, #eef3f5 54px, #eef3f5 55px);
}
.empty-chart > div { background: #ffffffed; padding: 20px; max-width: 430px; }
.chart-symbol { font-size: 30px; color: #7ca99b; }
.month-axis {
  display: flex; justify-content: space-around; margin: 12px 18px 20px;
  color: #718994; font-size: 12px;
}

.page-footer {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; color: var(--muted); margin-top: 28px;
}

/* —— Dialog —— */
.modal-backdrop, .dialog-backdrop {
  position: fixed; inset: 0; background: #102c3777; display: grid;
  place-items: center; z-index: 50; padding: 16px;
}
.modal, .dialog {
  background: white; border-radius: 12px; padding: 26px; max-width: 650px;
  width: 100%; box-shadow: 0 20px 100px #102c3740; max-height: 90vh; overflow: auto;
}
.dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.dialog-close, .dialog-header button {
  border: 0; background: #eef3f5; border-radius: 5px; padding: 7px 12px;
}
.dialog-body p, .modal p { line-height: 1.7; }
.dialog-body h3, .modal h3 { margin-top: 18px; }

/* —— Admin —— */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-panel { margin-top: 0; }
.form-body { padding: 0 22px 22px; display: grid; gap: 14px; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 0 22px 22px; }
.form-hint { padding: 0 22px 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); cursor: pointer; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.result {
  margin: 0 22px 22px; padding: 12px 14px; border-radius: 8px;
  display: flex; gap: 12px; align-items: center; font-size: 14px;
}
.result--ok { background: #eaf5f2; }
.result--error { background: #faf0f0; }
.mapping-editor {
  width: 100%; min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.45; padding: 12px; border: 1px solid #ccd9e0; border-radius: 6px;
}
.page-pad { padding: 40px; max-width: 720px; }

/* —— Medarbejder / fællesskærm —— */
.emp-shell { min-height: 100vh; background: #eef3f5; color: #163440; font-size: 18px; }
.emp-header {
  background: #112f3b; color: white; padding: 24px 4vw;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.emp-header .brand { font-size: 25px; }
.emp-header .label {
  font-size: 12px; letter-spacing: 2px; color: #adc6d1; margin-left: 20px; font-weight: 500;
}
.emp-header h1 { font-size: 30px; letter-spacing: -.6px; margin: 8px 0 0; color: white; }
.emp-actions { display: flex; align-items: center; gap: 20px; font-size: 16px; color: #c4d9e1; }
.emp-button, .emp-actions button {
  border: 1px solid #54717d; border-radius: 7px; color: white; background: #274957; padding: 9px 15px;
}
.clock { font-variant-numeric: tabular-nums; }
.emp-main { padding: 24px 4vw; max-width: 2000px; margin: auto; }
.emp-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px;
}
.emp-toolbar strong { font-size: 20px; color: var(--ink); }
.emp-toolbar p { font-size: 16px; color: #5d7682; margin: 4px 0; }
.emp-notice {
  margin: 18px 0 22px; padding: 10px 15px; border-left: 3px solid #7c9eac;
  background: #e1ebf0; color: #486b7b; font-size: 14px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.emp-notice--stale { border-left-color: #c49a4a; background: #f5efe0; }
.emp-top {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.emp-departments { margin-top: 8px; }
.emp-section-title {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0 15px;
}
.emp-section-title h2 { font-size: 23px; }
.emp-section-title > span { font-size: 13px; color: #637f8c; }
.dept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dept-card {
  border: 1px solid #dbe5e9; border-radius: 10px; background: white; padding: 18px 22px;
}
.dept-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dept-top h3 { font-size: 19px; margin: 0; }
.dept-eff { font-size: 32px; font-weight: 600; color: #163440; }
.dept-eff--empty { color: #7f9ba6; }
.dept-eff small { font-size: 16px; font-weight: 400; margin-left: 6px; color: #67808c; }
.dept-sub { font-size: 13px; color: #67808c; margin-top: 6px; }
.eff-track {
  position: relative; height: 8px; border-radius: 5px; background: #edf2f4; margin: 14px 0;
}
.eff-fill { height: 100%; background: #137968; border-radius: 5px; }
.eff-marker {
  position: absolute; top: -3px; width: 2px; height: 14px; background: #163440; opacity: .45;
}
.dept-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; padding: 0;
}
.dept-metrics .metric { margin: 0; }
.dept-metrics dt { font-size: 13px; color: #526e7c; }
.dept-metrics dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; color: #163440; }
.dept-metrics .metric-empty, .dept-metrics .metric-suppressed { color: #7f9ba6; }
.dept-metrics .metric-note { font-size: 12px; font-weight: 400; color: #67808c; }
.dept-metrics small { font-size: 13px; font-weight: 400; color: #67808c; margin-left: 4px; }
.emp-footer {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 24px;
  font-size: 13px; color: #5e7986;
}

/* —— Blazor fejl-UI —— */
#blazor-error-ui {
  background: #f7e8e8; bottom: 0; box-shadow: 0 -1px 6px rgba(0,0,0,.15);
  display: none; left: 0; padding: 12px 18px; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .reload, #blazor-error-ui .dismiss { margin-left: 12px; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }

button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #52bba1; outline-offset: 3px;
}

@media (max-width: 1200px) {
  .emp-top, .admin-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .mgmt-aside { width: 205px; padding: 25px 15px; }
  .mgmt-main { margin-left: 205px; padding: 0 25px 25px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { display: none; }
  h1 { font-size: 29px; }
}
@media (max-width: 700px) {
  .mgmt-aside { position: static; width: 100%; height: auto; padding: 18px; }
  .company, .aside-bottom { display: none; }
  .mgmt-aside nav { display: flex; overflow: auto; margin-top: 16px; }
  .mgmt-aside .nav-item { white-space: nowrap; padding: 9px; font-size: 13px; }
  .mgmt-shell { display: block; }
  .mgmt-main { margin: 0; padding: 0 16px 20px; }
  .grid, .grid.two, .admin-grid, .emp-top, .dept-grid { grid-template-columns: 1fr; }
  .emp-header { display: block; }
  .emp-actions { margin-top: 16px; }
  .emp-toolbar { flex-direction: column; align-items: flex-start; }
  .heading { flex-direction: column; align-items: flex-start; }
}

/* ---- Vareanalyse ---- */
.item-float {
  position: fixed; top: 22px; right: 22px; z-index: 35;
  max-width: min(300px, calc(100vw - 280px));
  padding: 12px 16px; border-radius: 14px;
  background: #ffffffee; border: 1px solid var(--line);
  box-shadow: 0 10px 32px #102c3724;
  backdrop-filter: blur(6px);
  display: grid; gap: 2px;
}
.item-float__eyebrow {
  font-size: 11px; letter-spacing: 1px; font-weight: 700; color: #597681; text-transform: uppercase;
}
.item-float__id {
  font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px;
}
.item-float__name {
  font-size: 13px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) {
  .item-float { max-width: calc(100vw - 32px); right: 12px; top: 12px; }
}
.va-dept-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: 16px 0 4px; padding: 14px 16px;
  background: white; border: 1px solid var(--line); border-radius: 10px;
}
.va-dept-filter__label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #597681; text-transform: uppercase;
}
.va-dept-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.va-chip {
  border: 1px solid #cbd9df; background: #f7f9fa; color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: 13px;
}
.va-chip--active {
  background: #137968; border-color: #137968; color: #fff; font-weight: 600;
}
.item-search { margin-bottom: 16px; align-items: end; }
.item-search .field--grow { flex: 1; min-width: 180px; }
.item-search input[type="search"] {
  width: 100%; min-width: 0; padding: 10px 12px;
  border: 1px solid #cbd9df; border-radius: 7px; background: white; color: var(--ink);
}
.item-summary {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  justify-content: space-between; margin: 22px 0 8px;
  padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px;
}
.item-summary__title h2 { margin: 0; font-size: 28px; letter-spacing: -0.8px; }
.item-summary__title p { margin: 6px 0 0; }
.item-summary__metrics {
  display: flex; flex-wrap: wrap; gap: 22px 28px;
}
.item-summary__metrics .meta { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.item-summary__metrics strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.va-legend {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 18px;
  font-size: 13px; color: var(--muted);
}
.va-legend__swatch {
  display: inline-block; width: 18px; height: 10px; margin-right: 6px;
  vertical-align: middle; border-radius: 2px;
}
.va-legend__swatch--band { background: #d7e8e3; }
.va-legend__swatch--median { background: #137968; height: 3px; border-radius: 1px; width: 18px; }
.va-legend__swatch--planned {
  background: transparent; border-top: 2px dashed #5a7582; height: 0; border-radius: 0;
}
.va-legend__swatch--outlier {
  background: transparent; border: 2.5px solid #b85a2a; border-radius: 50%; width: 10px; height: 10px;
}
.va-worker-key { padding: 0 22px 8px; }
.va-worker-key__table { margin: 0; }
.va-color-cell { width: 40px; }
.va-swatch-svg {
  display: inline-block; width: 16px; height: 16px; vertical-align: middle;
  margin-right: 8px; flex-shrink: 0;
}
.va-tone {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}
.va-tone--good { color: #1a6b5c; background: #e4f0ee; }
.va-tone--bad { color: #8a4a22; background: #f7efe6; }
.va-tone--empty { color: #7f9ba6; background: #f1f5f7; }
.va-trend { padding: 4px 8px 8px; overflow-x: auto; }
.va-trend__svg { display: block; width: 100%; min-width: 720px; height: auto; max-height: 400px; }
.va-trend__grid { stroke: #e8eef1; stroke-width: 1; }
.va-trend__ytick, .va-trend__xtick, .va-trend__ylabel, .va-trend__limit-label {
  fill: #718994; font-size: 11px; font-family: system-ui, sans-serif;
}
.va-trend__ylabel { fill: #607682; font-size: 12px; }
.va-trend__limit-label { fill: #5a7582; font-size: 10px; }
.va-trend__band { fill: #d7e8e3; opacity: 0.55; }
.va-trend__line--upper { stroke: #b85a2a; stroke-width: 1.75; }
.va-trend__line--lower { stroke: #137968; stroke-width: 1.75; }
.va-trend__line--median { stroke: #137968; stroke-width: 2.25; }
.va-trend__line--planned { stroke: #5a7582; stroke-width: 2; stroke-dasharray: 7 5; }
.va-trend__series { stroke: #8aa0ab; stroke-width: 1.25; opacity: 0.55; }
.va-trend__dot { stroke: #fff; stroke-width: 1.25; }
.va-trend__dot--good { fill: #137968; }
.va-trend__dot--mid { fill: #7a93a0; }
.va-trend__dot--bad { fill: #b85a2a; }
td.va-tone--good, .num.va-tone--good, strong.va-tone--good { color: #1a6b5c; font-weight: 600; }
td.va-tone--bad, .num.va-tone--bad, strong.va-tone--bad { color: #8a4a22; font-weight: 600; }

/* ---- Datakilde-diagnostik (ledelse/admin) ---- */
.notice--warn { background: #f7efe6; border-color: #e6d3bb; }
.diag-source { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 0 0 10px; }
.diag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.diag-table th, .diag-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #edf1f3; vertical-align: top; }
.diag-table .num { text-align: right; white-space: nowrap; }
.diag-msg { color: var(--muted); word-break: break-word; }
.diag-hints { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
.diag-panel summary { cursor: pointer; font-weight: 600; }
.diag-panel[open] summary { margin-bottom: 12px; }

/* ---- Fælles adgangskode (session) ---- */
.gate {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--nav); padding: 24px;
}
.gate-card {
  width: min(420px, 100%); background: #fff; color: var(--ink);
  border-radius: 16px; padding: 36px 32px 32px;
}
.gate-card .brand { color: var(--nav); font-size: 28px; }
.gate-card h1 { margin: 22px 0 0; }
.gate-card p { margin-top: 8px; }
.gate-card label { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--ink); font-weight: 600; }
.gate-card input {
  font-weight: 400; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fff; color: var(--ink);
}
.gate-card input:focus { outline: 2px solid #9fd9cb; border-color: var(--green); }
.gate-error { color: #8a3030; margin: 12px 0 0; }
.gate-card .btn { margin-top: 18px; width: 100%; }
