/* Blazor/Mud: ingen max-bredde på body (gammel regel 52rem begrænsede hele app’en) */
body { font-family: system-ui, sans-serif; margin: 0; padding: 0; max-width: none; }

/* Undgå at elementer med 100% + padding overstiger forælder (mindsker vandret side-scroll) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Legacy sider kan stadig bruge .kyc-readable */
.kyc-readable { max-width: 52rem; margin: 0 auto; padding: 1rem; }
.bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #ccc; }
.nav { display: flex; gap: 1rem; }
.nav a { color: #1a5f9e; }
.error { color: #b00; margin: 0.75rem 0; }
.muted { color: #555; font-size: 0.9rem; }
.lede { color: #333; margin-bottom: 1.25rem; }

/* MVC login — samme visuelle fundament som Blazor (Mud + Roboto), ingen menu */
body.kyc-auth-body {
  font-family: Roboto, system-ui, sans-serif;
  background-color: var(--mud-palette-background-grey, #f5f5f5);
}

/* Login: valgfrit kundebillede bagved (lys «slør» så kortet forbliver læsbart) */
body.kyc-auth-body.kyc-auth-body--photo-bg {
  background-image: linear-gradient(
      rgba(245, 245, 245, 0.88),
      rgba(245, 245, 245, 0.88)
    ),
    var(--kyc-login-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}
.kyc-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
  margin: 0;
}
.kyc-auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem 1.5rem;
  background: var(--mud-palette-surface, #fff);
  border-radius: var(--mud-default-borderradius, 6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.08));
}
.kyc-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.kyc-auth-logo {
  display: block;
  max-width: 160px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Admin: white-label forhåndsvisning (Generelle indstillinger) */
.kyc-admin-brand-preview-card {
  height: 100%;
}

.kyc-admin-logo-preview-frame {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--mud-default-borderradius, 6px);
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  /* Lys baggrund så mørke logoer (fx mørkegrå på sort) kan ses i mørkt admin-tema */
  background-color: #f0f0f0;
  background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
    linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
    linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.kyc-admin-logo-preview-img {
  display: block;
  max-height: 36px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kyc-admin-login-bg-preview--admin {
  max-width: 100%;
  height: 140px;
  border-radius: var(--mud-default-borderradius, 6px);
  overflow: hidden;
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
}

.kyc-admin-login-bg-preview--admin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kyc-admin-login-bg-preview--placeholder {
  height: 140px;
  border-radius: var(--mud-default-borderradius, 6px);
  border: 1px dashed var(--mud-palette-lines-default, rgba(0, 0, 0, 0.22));
  background: var(--mud-palette-background-grey, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
}

/* Privat KYC admin: fleks-rækker skal bruge fuld bredde (MudStack Row + tekstfelter i trækbare kort). */
.kyc-admin-pq-slot-content {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.kyc-admin-draggable-field-row {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
.kyc-admin-draggable-field-grow {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

/* Admin: CVR deltager — oversigt over virksomhedsrelationer */
.kyc-admin-deltager-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.kyc-admin-deltager-relation-card {
  border-radius: var(--mud-default-borderradius, 8px);
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  background: var(--mud-palette-surface, #fff);
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 0.75rem;
}

.kyc-admin-deltager-relation-card--active {
  border-left: 3px solid var(--mud-palette-success, #4caf50);
  padding-left: calc(1rem - 2px);
}

.kyc-admin-deltager-relation-card__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.kyc-admin-deltager-relation-card__roles-block {
  margin: 0 0 0.55rem;
}

.kyc-admin-deltager-relation-card__roles-heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.62));
  margin-bottom: 0.25rem;
}

.kyc-admin-deltager-relation-card__roles-empty {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
}

.kyc-admin-deltager-relation-card__meta {
  font-size: 0.8125rem;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
  margin-bottom: 0.65rem;
}

.kyc-admin-deltager-role-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.kyc-admin-deltager-role-list--card-primary {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
  line-height: 1.45;
}

.kyc-admin-compare-cvr-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.kyc-admin-json-preview {
  margin: 0;
  padding: 0.75rem 1rem;
  max-height: 28rem;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--mud-default-borderradius, 6px);
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  background: var(--mud-palette-background-grey, #f5f5f5);
}

.kyc-auth-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}
.kyc-auth-alert {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  color: #b71c1c;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.35);
}
.kyc-auth-entra {
  margin: 0 0 1.25rem;
  text-align: center;
}
.kyc-auth-link-microsoft {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mud-palette-primary, #594ae2);
  text-decoration: none;
}
.kyc-auth-link-microsoft:hover {
  text-decoration: underline;
}
.kyc-auth-form .kyc-auth-field { margin-bottom: 1rem; }
.kyc-auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
}
.kyc-auth-form input[type="email"],
.kyc-auth-form input[type="password"],
.kyc-auth-form input[type="text"] {
  width: 100%;
  max-width: none;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--mud-default-borderradius, 4px);
  border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, 0.23));
  background: var(--mud-palette-surface, #fff);
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}
.kyc-auth-form input:focus {
  outline: none;
  border-color: var(--mud-palette-primary, #594ae2);
  box-shadow: 0 0 0 1px var(--mud-palette-primary, #594ae2);
}
.kyc-auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--mud-default-borderradius, 4px);
  background-color: var(--mud-palette-primary, #594ae2);
  color: var(--mud-palette-primary-text, #fff);
}
.kyc-auth-submit:hover {
  filter: brightness(0.95);
}
.kyc-auth-submit:active {
  filter: brightness(0.9);
}

form div { margin-bottom: 0.75rem; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; max-width: 24rem; padding: 0.35rem; }

.screen-form { margin-bottom: 1rem; }
.kind-row { border: none; padding: 0; margin: 0 0 1rem; }
.kind-row legend { font-weight: 600; margin-bottom: 0.35rem; }
.kind-row label { margin-right: 1rem; }

.panel { margin: 1.25rem 0; padding: 1rem; background: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0; }
.history-panel h2 { margin-top: 0; font-size: 1.1rem; }
.screen-meta { margin-bottom: 0.75rem; font-size: 0.9rem; }
.match-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.match-table th, .match-table td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid #ddd; vertical-align: top; }
.match-table th { font-weight: 600; color: #333; }
.topic-badge { display: inline-block; background: #e8f0fe; color: #174ea6; padding: 0.15rem 0.4rem; border-radius: 4px; margin: 0.1rem 0.2rem 0.1rem 0; font-size: 0.8rem; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }

/* Skjult InputFile til MudButton-styret filvalg (kundedetalje ID-dokumentation m.fl.) */
.kyc-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

/* Flex: standard min-width:auto forhindrer vandret scroll — 0 giver “rigtig” max-bredde */
.mud-layout {
  min-width: 0;
  max-width: 100%;
}

/* Hovedindhold: MudBlazor sætter margin-left på .mud-main-content ved drawer — IKKE width:100% her:
   100% af forælder + margin giver overflow / forkert kolonne; lad width være auto (default). */
.mud-main-content {
  min-width: 0;
}

/* MudBlazor: .mud-main-content får padding-top fra --mud-appbar-height selv uden MudAppBar — fjern “spøgelses-rum” */
.kyc-mud-main.mud-main-content {
  min-width: 0;
  box-sizing: border-box;
  padding-top: 0 !important;
  background-color: var(--mud-palette-background-gray);
}

/* Primære indholdsflader (kort) forbliver læseflader på den grå canvas */
.kyc-mud-main-inner .mud-paper {
  background-color: var(--mud-palette-surface);
}

/* Kundedetalje: kebab højre, kollapser ikke når titel wrapper */
.kyc-customer-detail-kebab {
  flex-shrink: 0;
  align-self: flex-start;
}

/* Kundedetalje: navn, chips, screening-ikoner og menu forbliver synlige ved scroll (privat + erhverv) */
.kyc-customer-detail-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: -0.75rem -1rem 0 -1rem;
  padding: 0.75rem 1rem 0.75rem 1rem;
  box-sizing: border-box;
  background-color: var(--mud-palette-background-gray);
  border-bottom: 1px solid var(--mud-palette-lines-default);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Kundedetalje: faner (Overblik, CVR …) sticky under .kyc-customer-detail-header — top sættes via JS (ResizeObserver) */
:root {
  --kyc-customer-detail-tabbar-sticky-top: 5.5rem;
}

.kyc-customer-detail-tabs-tabbar {
  position: sticky;
  top: var(--kyc-customer-detail-tabbar-sticky-top);
  z-index: 11;
  box-sizing: border-box;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: var(--mud-palette-background-gray);
  border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Kundedetalje: overblikskort, klikbare chips, hub-panel, ID-miniaturer (CustomerDetail*Tab m.fl.) */
.iddoc-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.iddoc-thumb-link {
  display: block;
}

.iddoc-thumb-placeholder {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
}

/* Kundedetalje: staff ID-upload — træk-og-slip (synlig zone → skjult InputFile via JS) */
.kyc-iddoc-drop-zone {
  border-radius: 8px;
  border: 1px dashed transparent;
  padding: 0.5rem;
  margin: -0.5rem;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.kyc-iddoc-drop-zone.kyc-iddoc-drop-zone--active {
  border-color: var(--mud-palette-primary, #1976d2);
  background-color: rgba(25, 118, 210, 0.06);
}

/* Overblik-fanen: én vandret række kort (MudStack Row + denne klasse til scroll/min-width) */
.kyc-customer-overview-cards {
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  overflow-x: auto;
  padding-bottom: 0.125rem;
  -webkit-overflow-scrolling: touch;
}

.kyc-customer-overview-card {
  flex: 1 1 0;
  min-width: 10.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kyc-customer-overview-card > .mud-paper {
  flex: 1 1 auto;
  width: 100%;
}

.kyc-header-chip-nav {
  cursor: pointer;
  border-radius: 999px;
}

.kyc-header-chip-nav:focus {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}

/* Udløbet compliance-tjek: kun rød kant — baggrund og tekst kommer stadig fra MudChip Color/Variant (signalets status). */
.kyc-status-chip-expired.mud-chip {
  border: 2px solid var(--mud-palette-error) !important;
}

/* Hub-personer (virksomhed): samme røde kontur som status-chips når tjek er udløbet (celler uden MudChip) */
.kyc-hub-person-status-expired {
  border: 2px solid var(--mud-palette-error);
  border-radius: var(--mud-default-borderradius, 4px);
  padding: 2px 6px;
  box-sizing: border-box;
}

.kyc-overview-card-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.kyc-overview-card-clickable:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.kyc-overview-card-clickable:focus {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}

.kyc-hub-panel-header {
  cursor: pointer;
  border-radius: 8px;
  margin: -4px;
  padding: 4px;
  transition: background-color 0.15s ease;
}

.kyc-hub-panel-header:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.kyc-hub-panel-header:focus {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}

.kyc-hub-panel-header:focus:not(:focus-visible) {
  outline: none;
}

.kyc-hub-person-row-toggle {
  cursor: pointer;
}

.kyc-hub-person-row-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Fluid container — ingen overflow:hidden (klipper MudMenu-popover); indhold tilpasses via grid + fast tabel */
.kyc-mud-main-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Admin: sticky menulinje øverst i indholdsområdet ved scroll */
.kyc-admin-topnav {
  position: sticky;
  top: 0;
  z-index: 11;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem 0.65rem;
  box-sizing: border-box;
  background-color: var(--mud-palette-background-gray);
  border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.kyc-admin-topnav__buttons {
  max-width: 100%;
  min-width: 0;
}

/* Admin — Udløb af tjek: hop-links og synlig gem-knap ved scroll */
.kyc-admin-compliance-jump {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.kyc-admin-compliance-sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    var(--mud-palette-background, #fafafa) 55%,
    rgba(250, 250, 250, 0)
  );
}

/* Admin — Udløb af tjek: hop til anker uden at skjule overskrift under sticky topnav */
#compliance-private,
#compliance-business,
#compliance-hub {
  scroll-margin-top: 5.5rem;
}

/* Admin — Udløb af tjek: «Til»-felt med chips + autocomplete */
.kyc-compliance-expiry-to-field .mud-input-control {
  min-height: 2.75rem;
}

/* Kundeside: kebab i værktøjslinje — må ikke krympes væk */
.kyc-customers-actions-menu {
  flex-shrink: 0;
}

.kyc-page-toolbar {
  max-width: 100%;
  min-width: 0;
}

.kyc-customers-filter-grid {
  width: 100%;
  max-width: 100%;
}

/* Kundeliste: fylder viewport, tabel scroller internt, pager synlig i bunden */
.kyc-customers-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  /*
   * pt-3 (~1rem) i .kyc-mud-main-inner; pb fjernes når kundelisten vises (:has).
   * ~1.35rem ≈ top-padding + lille margin mod viewport-kant.
   */
  height: calc(100dvh - 1.35rem);
  max-height: calc(100dvh - 1.35rem);
  box-sizing: border-box;
  overflow: hidden;
}

/* Undgå hvid bund-padding under fuld-højde kundeliste (MudContainer pb-4 efterlader tom stribe). */
.kyc-mud-main-inner:has(.kyc-customers-page) {
  padding-bottom: 0 !important;
}

.kyc-customers-toolbar-sticky {
  position: sticky;
  top: 0;
  z-index: 12;
  flex-shrink: 0;
  background-color: var(--mud-palette-surface);
  border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.kyc-customers-table-stage {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.kyc-customers-table-stage--empty {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.kyc-customers-table-wrap--fill {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.kyc-customers-table-inner {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/*
 * MudTable (v8): rod er .mud-table; .mud-table-container har rækker; .mud-table-pagination har pager.
 * Uden flex-basis 0 vokser .mud-table med alt indhold (pager forsvinder under fold).
 */
.kyc-customers-table-inner > .mud-table.kyc-customers-table {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kyc-customers-table-inner > .mud-table.kyc-customers-table .mud-table-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.kyc-customers-table-inner > .mud-table.kyc-customers-table > .mud-table-pagination {
  flex-shrink: 0;
  padding: 0 !important;
  min-height: 0;
  font-size: 0.7rem;
}

/* Lille skærm: sorterings-dropdown over tabel — må ikke deltage i flex-grow */
.kyc-customers-table-inner .mud-table-smalldevices-sortselect {
  flex-shrink: 0;
}

.kyc-customers-pager-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  padding: 0.05rem 0.2rem;
  border-top: 1px solid var(--mud-palette-table-lines, rgba(0, 0, 0, 0.12));
  background-color: var(--mud-palette-surface);
}

/*
 * MudTablePager: Mud sætter .mud-table-pagination-toolbar { height: 52px } — derfor forbliver baren høj
 * selv når teksten skrumper. Halv højde + lavere Mud-padding/margins på captions og select.
 */
.kyc-customers-pager-bar .mud-toolbar.mud-table-pagination-toolbar {
  --mud-internal-toolbar-height: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0.1rem !important;
  padding-right: 0.1rem !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
  box-sizing: border-box;
}

.kyc-customers-pager-bar .mud-toolbar.mud-table-pagination-toolbar.mud-toolbar-gutters {
  padding-left: 0.1rem !important;
  padding-right: 0.1rem !important;
}

.kyc-customers-pager-bar .mud-table-pagination-caption {
  margin: 0 !important;
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.kyc-customers-pager-bar .mud-table-pagination-information,
.kyc-customers-pager-bar .mud-table-page-number-information {
  font-size: 0.7rem !important;
  line-height: 1.15 !important;
}

.kyc-customers-pager-bar .mud-table-pagination-display {
  gap: 0.1rem;
  align-items: center;
}

.kyc-customers-pager-bar .mud-table-pagination-select {
  font-size: 0.7rem !important;
  margin-left: 0.2rem !important;
  margin-right: 0.2rem !important;
}

.kyc-customers-pager-bar .mud-table-pagination-select .mud-input-control {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.kyc-customers-pager-bar .mud-table-pagination-select .mud-select-input {
  padding: 0 4px !important;
}

.kyc-customers-pager-bar .mud-table-pagination-select .mud-input-slot,
.kyc-customers-pager-bar .mud-table-pagination-select .mud-input.mud-input-text,
.kyc-customers-pager-bar .mud-table-pagination-select .mud-input-root {
  min-height: 1.35rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 0.7rem !important;
  line-height: 1.15 !important;
}

.kyc-customers-pager-bar .mud-table-pagination-actions {
  gap: 0 !important;
  margin-left: 0.25rem !important;
  margin-inline-start: 0.25rem !important;
}

.kyc-customers-pager-bar .mud-table-pagination-actions .mud-icon-button {
  width: 1.45rem !important;
  height: 1.45rem !important;
  padding: 0 !important;
}

.kyc-customers-pager-bar .mud-table-pagination-actions .mud-icon-button .mud-icon-root {
  font-size: 1rem !important;
}

.kyc-customers-table-wrap {
  max-width: 100%;
  min-width: 0;
}

.kyc-customers-search {
  width: 100%;
}

/* Personer (hub): kolonner skal ikke hoppe når en række udvides (bred colspan-indhold). */
.kyc-hub-persons-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.kyc-hub-persons-table table.mud-table {
  table-layout: fixed;
  width: 100%;
}

.kyc-hub-persons-table table.mud-table th,
.kyc-hub-persons-table table.mud-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

/* Udvidet panel under hovedrækken */
.kyc-hub-persons-table table.mud-table tbody td[colspan] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Kundetabel: fast layout + ombrydning — fylder 100% uden vandret scrollbar */
.kyc-customers-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.kyc-customers-table table.mud-table {
  table-layout: fixed;
  width: 100%;
}

.kyc-customers-table table.mud-table tbody tr.mud-table-row {
  cursor: pointer;
}

.kyc-customers-name-cell {
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.kyc-dashboard-recent-customers-table table.mud-table tbody tr.mud-table-row {
  cursor: pointer;
}

/* Dashboard widgets: ca. 5 tætte rækker synlige, resten scrollbar */
.kyc-dashboard-widget-table-wrap {
  max-height: 280px;
  overflow: auto;
  border-radius: 8px;
}

.kyc-dashboard-widget-table-wrap table.mud-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--mud-palette-surface);
  box-shadow: 0 1px 0 var(--mud-palette-table-lines);
}

.kyc-dashboard-pending-iddocs-table table.mud-table tbody tr.mud-table-row {
  cursor: pointer;
}

.kyc-customers-table table.mud-table th,
.kyc-customers-table table.mud-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  hyphens: auto;
}

/*
 * Overskrifter: ensartet tekst (samme rem for alle th — undgår at dato-kolonner får anden størrelse via .kyc-customers-th-date).
 * Mud dense: stor standard-padding — hold thead lav.
 */
.kyc-customers-table.mud-table-dense table.mud-table thead .mud-table-row > th.mud-table-cell,
.kyc-customers-table table.mud-table thead .mud-table-row > th.mud-table-cell,
.kyc-customers-table table.mud-table thead tr > th {
  font-size: 0.75rem !important;
  line-height: 1.15 !important;
  padding: 2px 5px !important;
  vertical-align: middle;
}

.kyc-customers-table table.mud-table thead th .mud-table-sort-label,
.kyc-customers-table table.mud-table thead th .mud-table-sort-label span {
  font-size: inherit !important;
  line-height: 1.15 !important;
}

.kyc-customers-table table.mud-table thead th .mud-icon-button {
  width: 1.4rem !important;
  height: 1.4rem !important;
  padding: 0 !important;
}

.kyc-customers-table table.mud-table thead th .mud-icon-button .mud-icon-root {
  font-size: 0.9rem !important;
}

/* Admin cron-job log: job- og statuskolonne med filter (samme mønster som kundelistens Type) */
.kyc-admin-cron-log-table table.mud-table thead th .mud-icon-button {
  width: 1.4rem !important;
  height: 1.4rem !important;
  padding: 0 !important;
}

.kyc-admin-cron-log-table table.mud-table thead th .mud-icon-button .mud-icon-root {
  font-size: 0.9rem !important;
}

.kyc-admin-cron-log-th-filter__row {
  min-width: 0;
}

/* Fast kolonnebredde: undgår at tabellen «hopper» når filter skjuler rækker (færre tegn i celler) */
.kyc-admin-cron-log-table-inner .mud-table-container table.mud-table,
.kyc-admin-external-api-log-table-inner .mud-table-container table.mud-table {
  table-layout: fixed;
  width: 100%;
}

.kyc-admin-cron-log-table td.kyc-admin-cron-log-td-summary,
.kyc-admin-external-api-log-table td.kyc-admin-api-log-td-url {
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  vertical-align: top;
}

.kyc-admin-cron-log-table td.kyc-admin-cron-log-td-summary .text-truncate,
.kyc-admin-external-api-log-table td.kyc-admin-api-log-td-url .text-truncate {
  max-width: 100%;
}

.kyc-admin-api-log-th-type {
  white-space: normal;
}

/* Kundeliste: compliance/KYC-header med filter (samme som type-kolonne) */
.kyc-customers-table .kyc-customers-th-status.kyc-customers-th-type-filter {
  white-space: normal;
}

/* Type-kolonne: sortering + filterikon på én linje */
.kyc-customers-th-type-filter__row {
  min-width: 0;
}

.kyc-customers-th-type-filter .mud-table-sort-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kyc-customers-table table.mud-table tbody td {
  font-size: 0.6875rem;
  padding: 3px 2px !important;
}

/* Status: én linje, smal chip — undgår linjeskift i Compliance/KYC (td; th arver thead-font ovenfor) */
.kyc-customers-table .kyc-customers-th-status,
.kyc-customers-table .kyc-customers-td-status {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kyc-customers-table .kyc-customers-status-chip.mud-chip {
  max-width: 100%;
  min-height: 0;
  height: 22px !important;
  white-space: nowrap;
  line-height: 1.1;
  font-size: 0.65rem;
  padding: 0 6px;
}

.kyc-customers-table .kyc-customers-status-chip .mud-chip-content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Dato-kolonner: tabulære tal, én linje (tbody mindre; thead følger fælles th-størrelse) */
.kyc-customers-table .kyc-customers-td-date {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.kyc-customers-table thead .kyc-customers-th-date {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.kyc-customers-table .kyc-customers-td-id,
.kyc-customers-table .kyc-customers-td-phone {
  font-variant-numeric: tabular-nums;
}

.kyc-customers-table .kyc-customers-notes-line {
  display: block;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Første kolonne: type-ikon + risiko (samme skjold-ikon, forskellige farver) */
.kyc-customers-table .kyc-customers-td-type-risk {
  vertical-align: middle;
  white-space: nowrap;
}

.kyc-customers-table .kyc-customers-kind-risk,
.kyc-dashboard-recent-table .kyc-customers-kind-risk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

/* Unico blacklist: tydeligt mørkt forbudt-ikon (Mud default kan være for lys på lyst tema) */
.kyc-icon-unico-blacklist {
  color: #111 !important;
}

.kyc-customers-table .kyc-customers-th-type-risk {
  white-space: nowrap;
}

/* Type-header med filtermenu: tillad ombrydning så ikon + label ikke klippes */
.kyc-customers-table .kyc-customers-th-type-filter.kyc-customers-th-type-risk {
  white-space: normal;
}

/* Sidepanel: toggle + nav + bruger — fuld højde uden separat topbar */
.kyc-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Mini-rail: kun ikoner i menuen (MudBlazors standardregel rammer ikke vores .kyc-drawer-nav-wrapper) */
.kyc-drawer-inner--mini .mud-nav-link .mud-nav-link-text {
  display: none !important;
}

/* Uden MudAppBar: undgå tom top (tidligere ClipMode.Always → top: var(--mud-appbar-height)) */
.mud-layout .kyc-nav-drawer.mud-drawer-fixed {
  top: 0 !important;
  height: 100% !important;
  max-height: 100dvh !important;
}

.kyc-nav-drawer .mud-drawer-content {
  padding-top: 0;
}

.kyc-drawer-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0 0.2rem 0.3rem;
  border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.kyc-drawer-toolbar--mini {
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.1rem 0.28rem;
}

.kyc-drawer-tenant-name {
  display: block;
  padding: 0 0.5rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
  border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.kyc-drawer-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  text-decoration: none;
}

.kyc-drawer-logo-link:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.kyc-drawer-logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.kyc-drawer-logo--wide {
  width: 96px;
  height: 24px;
}

.kyc-drawer-logo-mini-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  min-width: 0;
  text-decoration: none;
  padding: 0.15rem;
}

.kyc-drawer-logo-mini-link:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.kyc-drawer-logo--mini-tile {
  max-height: 28px;
  max-width: 40px;
  width: auto;
  object-fit: contain;
}

.kyc-drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Lavere menupunkter (mindre vertikal padding end Mud-standard ~48px). */
.kyc-nav-drawer .kyc-drawer-nav .mud-nav-link {
  min-height: 2.25rem !important;
  margin: 0.05rem 0.3rem !important;
  padding: 0.3rem 0.45rem !important;
}

.kyc-nav-drawer .kyc-drawer-nav .mud-nav-link .mud-icon-root {
  font-size: 1.2rem !important;
}

.kyc-nav-drawer .kyc-drawer-toolbar .mud-icon-button {
  padding: 0.35rem !important;
}

.kyc-drawer-user {
  flex-shrink: 0;
  padding: 0.3rem 0.3rem;
  border-top: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.kyc-drawer-user-email {
  display: block;
  max-width: 100%;
  padding: 0 0.3rem 0.25rem;
  opacity: 0.85;
  font-size: 0.7rem;
  line-height: 1.2;
}

.kyc-drawer-logout-form {
  margin: 0;
}

/*
 * CVR-overblik: felter som Formål — titel over værdi; titel mindre end brødtekst.
 */
.kyc-cvr-overview-paper {
  overflow: hidden;
}

/* Virksomhedsanalyse: stamdata-signaler i kontrolpanel (3 kolonner, label + niveau i samme chip) */
.kyc-stamdata-signals-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  align-items: stretch;
  margin-top: 0.25rem;
}

.kyc-stamdata-signals-summary__cell {
  min-width: 0;
  display: flex;
}

/* Fuld bredde i cellen; tillad linjeskift i lange labels */
.kyc-stamdata-signal-chip.mud-chip {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 1.75rem;
}

.kyc-stamdata-signal-chip .mud-chip-content {
  white-space: normal;
  justify-content: flex-start;
  text-align: left;
  line-height: 1.35;
}

.kyc-crs-register-signal-chip.mud-chip:not(.mud-disabled) {
  cursor: pointer;
}

@media (max-width: 900px) {
  .kyc-stamdata-signals-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kyc-stamdata-signals-summary__grid {
    grid-template-columns: 1fr;
  }
}

.kyc-cvr-overview-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* CVR udvidelsespaneler: fold-ikon til venstre (samme rytme som Person hub) */
.kyc-cvr-expansion-panels .mud-expand-panel-header {
  gap: 0.35rem;
}

.kyc-cvr-expansion-panels .mud-expand-panel-icon {
  order: -1;
  flex-shrink: 0;
}

.kyc-cvr-expansion-panels .mud-expand-panel-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Screening-fanen: samme fold-ikon til venstre som CVR-paneler */
.kyc-screening-expansion-panels .mud-expand-panel-header {
  gap: 0.35rem;
}

.kyc-screening-expansion-panels .mud-expand-panel-icon {
  order: -1;
  flex-shrink: 0;
}

.kyc-screening-expansion-panels .mud-expand-panel-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* container: kolonner følger panelbredde (modal ≠ fuld skærm) — undgår kollapset værdier + tegn-pr-linje */
.kyc-cvr-overview {
  display: flex;
  flex-direction: column;
  gap: 0;
  container-type: inline-size;
  container-name: kyc-cvr;
  min-width: 0;
  width: 100%;
}

.kyc-cvr-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
  align-items: stretch;
  min-width: 0;
}

.kyc-cvr-row:last-child {
  border-bottom: none;
}

@container kyc-cvr (min-width: 640px) {
  .kyc-cvr-row:not(.kyc-cvr-row--block):not(.kyc-cvr-row--half) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kyc-cvr-row--half {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container kyc-cvr (min-width: 1050px) {
  .kyc-cvr-row:not(.kyc-cvr-row--block):not(.kyc-cvr-row--half) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Fallback uden container queries: ét felt pr. række (smalt vindue / ældre browser) */
@supports not (container-type: inline-size) {
  @media (min-width: 960px) {
    .kyc-cvr-row:not(.kyc-cvr-row--block):not(.kyc-cvr-row--half) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kyc-cvr-row--half {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1280px) {
    .kyc-cvr-row:not(.kyc-cvr-row--block):not(.kyc-cvr-row--half) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}

.kyc-cvr-row--block {
  grid-template-columns: 1fr;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

/* MudStack + div: tving kolonne (titel over værdi) selv hvis anden CSS rammer .mud-stack */
.kyc-cvr-overview .kyc-cvr-field.mud-stack,
.kyc-cvr-overview .kyc-cvr-field {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}

.kyc-cvr-overview .kyc-cvr-label {
  display: block !important;
  flex: 0 0 auto !important;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.58));
  text-align: left;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
}

.kyc-cvr-overview .kyc-cvr-value {
  display: block !important;
  flex: 0 1 auto !important;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.kyc-cvr-value-link {
  font-size: inherit;
}

.kyc-cvr-field--block {
  gap: 0.35rem;
}

.kyc-cvr-purpose {
  white-space: pre-wrap;
  line-height: 1.45;
}

.kyc-cvr-address-line2 {
  margin-top: 0.2rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Telefon/e-mail: kompakt værktøjslinje under række 2 (Opdater / Gem + Annuller) */
.kyc-cvr-overview .kyc-cvr-row:has(+ .kyc-cvr-contact-toolbar) {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.kyc-cvr-contact-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
}

/* Redigerbare felter visuelt på linje med øvrige værdier */
.kyc-cvr-overview .kyc-cvr-field .mud-input-control {
  margin-top: 0;
}

.kyc-cvr-overview .kyc-cvr-field .mud-input-slot {
  min-height: 2.25rem;
}

/* Kundedetalje: rå CVR JSON */
/* Ny kunde: CVR-preview med samme paneler som kundedetalje */
.kyc-cvr-preview-scroll {
  max-height: min(70vh, 36rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  min-width: 0;
  width: 100%;
}

/* Ny kunde-dialog: begræns meget lange overblikstekster så handlingsknapper typisk er synlige */
.kyc-cvr-purpose--clamp {
  max-height: 5rem;
  overflow-y: auto;
}

.kyc-json-pre {
  margin: 0;
  padding: 0.75rem;
  max-height: 24rem;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--mud-palette-background-grey, #f5f5f5);
  border: 1px solid var(--mud-palette-divider, #e0e0e0);
  border-radius: 4px;
}

/* CVR: deltagergrupper (virk.dk-lignende underoverskrifter) */
.kyc-cvr-participant-group + .kyc-cvr-participant-group {
  border-top: 1px solid var(--mud-palette-divider, #e0e0e0);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.kyc-cvr-participant-group-title {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.kyc-cvr-participant-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.15rem 0;
}

.kyc-cvr-participant-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.kyc-cvr-participant-name {
  font-weight: 500;
  line-height: 1.35;
}

.kyc-cvr-participant-meta {
  display: block;
  line-height: 1.4;
  margin-top: 0.1rem;
}

.kyc-cvr-participant-role {
  font-weight: 500;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}

/* Ejerstruktur: metadata under knap (fuld bredde, egen blok — ikke inline ved siden af knappen) */
.kyc-ownership-tree-panel-wrap {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.kyc-ownership-tree-meta {
  width: 100%;
}

/* --- Ejerstruktur: målvirksomhed + kort-layout (person vs. selskab) --- */
.kyc-cvr-root-target {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(25, 118, 210, 0.42);
  background: rgba(25, 118, 210, 0.07);
}

.kyc-cvr-root-target__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.kyc-cvr-root-target__line {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* MudBlazor MudIcon: undgå at ikon-root fylder 100% bredde (gav ikon på egen linje) */
.kyc-cvr-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  line-height: 0;
}

.kyc-cvr-row-icon > * {
  display: inline-flex !important;
  flex-shrink: 0;
  line-height: 0 !important;
}

.kyc-cvr-row-icon svg {
  display: block;
}

.kyc-cvr-row-icon--company {
  margin-top: 0.14rem;
}

.kyc-cvr-row-icon--person {
  margin-top: 0.12rem;
}

.kyc-cvr-row-icon--root {
  margin-top: 0.2rem;
}

.kyc-cvr-root-target__line1-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.kyc-cvr-root-target__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}

.kyc-cvr-root-target__cvr {
  font-size: 0.9375rem;
  font-weight: 500;
}

.kyc-cvr-section-head__title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.kyc-cvr-chain-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Selskabsknude i kæden */
.kyc-cvr-owner-node {
  border: 1px solid rgba(84, 110, 122, 0.38);
  background: rgba(84, 110, 122, 0.055);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.kyc-cvr-owner-node--direct {
  border-color: rgba(25, 118, 210, 0.35);
  background: rgba(25, 118, 210, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kyc-cvr-owner-node--attention {
  border-color: rgba(183, 28, 28, 0.35);
  background: rgba(183, 28, 28, 0.04);
}

/* Ikon + navn + CVR på samme række; ejerandel under, indrykket under tekst */
.kyc-cvr-owner-node__line1 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.kyc-cvr-owner-node__line1-stack {
  flex: 1;
  min-width: 0;
}

.kyc-cvr-owner-node__line1-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  line-height: 1.4;
}

.kyc-cvr-owner-node__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}

.kyc-cvr-owner-node__cvr-inline {
  font-size: 0.875rem;
  font-weight: 500;
}

.kyc-cvr-owner-node__line2 {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: 0.3rem;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.78));
}

.kyc-cvr-owner-node__warn-line {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.kyc-cvr-owner-cycle,
.kyc-cvr-owner-lookup-err {
  color: var(--mud-palette-error, #c62828);
}

/* REGISTER-blok inde i selskabskort */
.kyc-cvr-owner-legal-block {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--mud-palette-divider, rgba(0, 0, 0, 0.12));
}

.kyc-cvr-owner-legal-block__title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
  margin-bottom: 0.5rem;
}

.kyc-cvr-owner-legal-block__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Legale ejer-række (person = grøn, selskab = blå) */
.kyc-cvr-legal-row {
  border-radius: 8px;
  border: 1px solid var(--mud-palette-divider, rgba(0, 0, 0, 0.12));
  padding: 0.55rem 0.65rem;
}

.kyc-cvr-legal-row--person {
  border-color: rgba(46, 125, 50, 0.4);
  background: rgba(46, 125, 50, 0.07);
}

.kyc-cvr-legal-row--company {
  border-color: rgba(25, 118, 210, 0.32);
  background: rgba(25, 118, 210, 0.06);
}

.kyc-cvr-legal-row__line1 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.kyc-cvr-legal-row__line1-stack {
  flex: 1;
  min-width: 0;
}

.kyc-cvr-legal-row__line1-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.35;
}

.kyc-cvr-legal-row__name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}

.kyc-cvr-legal-row__cvr-inline {
  font-size: 0.8125rem;
  font-weight: 500;
}

.kyc-cvr-legal-row__entity {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
  margin-top: 0.15rem;
}

.kyc-cvr-legal-row__line2 {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.kyc-cvr-legal-row__meta {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
  margin-top: 0.1rem;
}

.kyc-cvr-legal-row__sep {
  margin: 0 0.25rem;
  opacity: 0.65;
}

.kyc-cvr-legal-row__extra {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.58));
  margin-top: 0.4rem;
  padding-left: calc(1.125rem + 0.45rem);
}

.kyc-cvr-legal-row__outgoing-panels {
  background: transparent !important;
}

.kyc-cvr-legal-row__outgoing-panels .mud-expand-panel {
  background: transparent !important;
  box-shadow: none !important;
}

.kyc-cvr-legal-row__outgoing-panels .mud-expand-panel-header {
  min-height: auto !important;
  padding: 0.15rem 0 !important;
}

.kyc-cvr-legal-row__outgoing-panels .mud-expand-panel-content {
  padding: 0.35rem 0 0 !important;
}

.kyc-cvr-legal-row__outgoing-summary {
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.kyc-cvr-legal-row__outgoing-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.kyc-cvr-legal-row__outgoing-item {
  margin: 0.2rem 0;
  line-height: 1.4;
}

.kyc-cvr-legal-row__outgoing-name {
  font-weight: 500;
}

.kyc-cvr-legal-row__out {
  display: inline;
}

.kyc-cvr-legal-row__out:not(:last-child)::after {
  content: " · ";
}

/* Børn: ét niveau ind — ingen ekstra margin på hver knude (undgår «staircase») */
.kyc-cvr-tree-children {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-left: 1rem;
  margin-left: 0;
  border-left: 3px solid rgba(25, 118, 210, 0.22);
}

.kyc-ams-result {
  white-space: pre-wrap;
  word-break: break-word;
}

.kyc-ams-result-raw {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kyc-ams-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.kyc-ams-finding {
  border-radius: 6px;
}

.kyc-ams-citation-list {
  margin-top: 0.15rem;
}

.kyc-ams-citation-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.25rem 0;
}

.kyc-ams-dialog-prompt {
  max-height: min(60vh, 28rem);
  overflow: auto;
  border: 1px solid var(--mud-palette-divider, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
  padding: 0.75rem;
  background: var(--mud-palette-background-grey, #f5f5f5);
}

.kyc-ams-dialog-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* KYC-formular: historik under risiko — eget udvidelsespanel, standard lukket */
.kyc-form-history-expansion {
  margin-top: 0.25rem;
}

/* KYC-formular (dialog): scrollområde skal have bundluft så sidste felter/historik ikke skjules bag sticky bar */
.kyc-form-dialog-content {
  padding-bottom: 5.5rem;
}

/* KYC-formular (dialog): sticky bundmenu med primære handlinger */
.kyc-form-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border-top: 1px solid var(--mud-palette-divider, rgba(0, 0, 0, 0.12));
  background: var(--mud-palette-surface, #fff);
}

.kyc-form-sticky-actions--hidden {
  display: none;
}

/* AMS / PEP / sanktion — tre ikoner i header og hub-tabel */
.kyc-compliance-sig {
  flex-wrap: nowrap;
}

/* CVR debug-dialog — rå JSON (textarea undgår MudTextField / server pr. tastetryk) */
.kyc-cvr-debug-json-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
}

.kyc-cvr-debug-json-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mud-palette-text-primary, inherit);
  background: var(--mud-palette-surface, #fff);
  border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, 0.2));
  border-radius: 6px;
  resize: vertical;
  min-height: 12rem;
}

.kyc-cvr-debug-json-textarea:focus {
  outline: 2px solid var(--mud-palette-primary, #1a5f9e);
  outline-offset: 1px;
}

.kyc-cvr-debug-json-textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* CVR debug-dialog — struktureret JSON (pretty-print) */
.cvr-json-debug-view {
  min-height: 4rem;
}

.cvr-json-debug-pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
  max-height: min(60vh, 480px);
  overflow: auto;
  white-space: pre;
  word-break: normal;
  background: var(--mud-palette-background-grey, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
}

.cvr-json-debug-parse-err,
pre.cvr-json-debug-pre.cvr-json-debug-parse-err {
  color: var(--mud-palette-error, #b00020);
  border-color: var(--mud-palette-error, rgba(176, 0, 32, 0.45));
}

.kyc-cvr-debug-structured-pre {
  min-height: 3rem;
}

/* Ny kunde-dialog: klik overalt i feltområdet fokuserer input (Mud outlined ramme/label rammer ikke altid <input>) */
.kyc-create-customer-input-wrap {
  cursor: text;
}

/* Ny kunde — CVR/CPR forhåndsvisning: scroll kun i indhold; Annullér/Opret forbliver synlige */
.kyc-create-customer-preview {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 760px);
  min-height: 0;
}

/* CPR-forhåndsvisning: mere viewport + tættere typografi så kontakt + checkbokse typisk er synlige uden scroll */
.kyc-create-customer-preview--person {
  max-height: min(92vh, 900px);
}

.kyc-create-customer-preview-person-inner .mud-alert {
  margin-bottom: 0;
}

.kyc-create-customer-preview-person-inner .mud-input-control {
  margin-top: 0.125rem;
}

.kyc-create-customer-preview__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.kyc-create-customer-preview__footer {
  flex: 0 0 auto;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--mud-palette-divider, rgba(0, 0, 0, 0.12));
  background: var(--mud-palette-surface, #fff);
}

/* —— ID-dokumenter: kunde-upload (lys kort på grå baggrund, Unico-lignende) —— */
.iddocs-bg {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 32px 16px 48px;
}

.iddocs-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.iddocs-page-logo {
  display: block;
  margin: 0 auto 28px;
  height: 40px;
  width: auto;
}

.iddocs-main-card.mud-paper {
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Privat spørgeskema (offentlig): ingen grå «shell»-baggrund — siden maler eget fuldskærmslag (virker uden :has() på mobil). */
.iddocs-bg--private-questionnaire {
  background: transparent !important;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
}

.private-q-fullbleed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  /* Mobil Safari: 100vh alene + height:100% kan give forkert laghøjde; dvh/svh + -webkit-fill-available før synligt viewport */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  /* Egen compositor-lag: undgår at baggrund/billede ikke males i WebKit (især iOS) */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.private-q-foreground {
  position: relative;
  z-index: 1;
}

/* Privat spørgeskema: tydelige sektionskort (Nordea-lignende) */
.private-q-page {
  width: 100%;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
}

.private-q-section.mud-paper {
  border-radius: 10px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 14px;
}

.private-q-section--intro.mud-paper {
  margin-bottom: 14px;
}

.private-q-section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  margin: 0 0 0.35rem;
}

.private-q-section-lead {
  font-size: 0.875rem;
  color: #5f6368;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.private-q-tax-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.private-q-tax-tile {
  padding: 0.85rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.private-q-tax-tile:last-child {
  margin-bottom: 0;
}

.private-q-tax-tile--on {
  border-color: #1565c0;
  background: #e8f4fd;
}

/* Undgår overlap mellem flydende label og titel under «Andet» (midler). */
.private-q-midler-andet {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 2.75rem;
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}

.private-q-midler-andet__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #202124;
  margin-bottom: 0.35rem;
}

.private-q-midler-andet__field {
  width: 100%;
  max-width: 100%;
}

.private-q-decl-check .private-q-decl-check-text {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #202124;
}

.iddocs-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.iddocs-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin: 0;
  letter-spacing: -0.02em;
}

.iddocs-card-intro {
  font-size: 0.9375rem;
  color: #5f6368;
  line-height: 1.5;
  margin: 0 0 16px;
}

.iddocs-card-expiry {
  font-size: 0.8125rem;
  color: #80868b;
  text-align: right;
  max-width: 100%;
  flex: 1 1 auto;
}

.iddocs-card-expiry strong {
  color: #3c4043;
  font-weight: 600;
}

.iddocs-dropzone-shell {
  position: relative;
  min-height: 200px;
  border: 2px dashed #c4c7cc;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.iddocs-dropzone-shell:hover {
  border-color: #80868b;
  background: #f5f5f5;
}

.iddocs-dropzone-shell.iddocs-dropzone-shell--busy {
  pointer-events: none;
  opacity: 0.65;
}

.iddocs-dropzone-visual {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 28px;
  pointer-events: none;
  min-height: 200px;
  box-sizing: border-box;
}

.iddocs-dropzone-or {
  margin: 6px 0;
  font-size: 0.875rem;
  color: #80868b;
}

.iddocs-dropzone-icon {
  margin: 8px 0 10px;
  color: #111 !important;
}

.iddocs-dropzone-browse {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Native fil-input dækker hele dropzonen (klik + træk-og-slip i understøttede browsere) */
input[type="file"].iddocs-native-file-overlay {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 200px;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2;
  font-size: 0 !important;
}

.iddocs-file-count {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
}

.iddocs-uploaded-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.iddocs-thumb-card {
  width: 140px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.iddocs-thumb-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #f1f3f4;
}

.iddocs-thumb-meta {
  padding: 6px 8px;
  font-size: 0.7rem;
  color: #5f6368;
  line-height: 1.3;
  word-break: break-word;
}

.iddocs-thumb-meta .iddocs-file-link {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iddocs-thumb-nonimage {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
  color: #5f6368;
}

.iddocs-submit-wrap {
  margin-top: 24px;
}

.iddocs-submit-btn.mud-button-root {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
}

.iddocs-submit-btn.mud-button-root.iddocs-submit-btn--muted {
  background-color: #808080 !important;
  color: #fff !important;
}

.iddocs-submit-btn.mud-button-root.iddocs-submit-btn--muted:hover:not(:disabled) {
  background-color: #6d6d6d !important;
}

.iddocs-submit-btn.mud-button-root:disabled {
  opacity: 0.5;
}

/* Alle obligatoriske valg/taget: tydelig call-to-action (farve fra Mud Color.Primary) */
.iddocs-submit-btn.mud-button-root.iddocs-submit-btn--ready {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: scale(1.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.iddocs-submit-btn.mud-button-root.iddocs-submit-btn--ready:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.26);
}

.private-q-section--intro .iddocs-card-title {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.private-q-section--intro .iddocs-card-title:focus-visible {
  outline: 2px solid var(--mud-palette-primary, #1565c0);
  outline-offset: 3px;
  border-radius: 2px;
}

.private-q-expiry-footer.mud-paper {
  margin-bottom: 0;
  margin-top: 6px;
}

.private-q-expiry-footer__inner {
  font-size: 0.8125rem;
  color: #5f6368;
  text-align: center;
  line-height: 1.45;
}

.private-q-expiry-footer__time {
  display: block;
  margin-top: 4px;
  color: #3c4043;
  font-weight: 600;
}

/* RKI: betalingsbemærkninger på kundedetalje */
.kyc-rki-remarks-panels {
  border-left: 3px solid var(--mud-palette-error);
}
.kyc-rki-remarks__body {
  white-space: pre-wrap;
  word-break: break-word;
}
.kyc-rki-remarks-table .kyc-rki-remarks-table__k {
  width: 38%;
  max-width: 12rem;
  vertical-align: top;
  font-size: 0.8rem;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.kyc-rki-remarks-table .kyc-rki-remarks-table__v {
  vertical-align: top;
  font-size: 0.875rem;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* RKI: kort på kundedetalje (privat) — kebab oppe til højre */
.kyc-rki-private-card {
  position: relative;
}

/* RKI testklient (admin): pænt præsenteret JSON-dump */
.kyc-rki-test-json {
  max-height: 24rem;
  overflow: auto;
  padding: 0.75rem;
  background: var(--mud-palette-background-grey, #f5f5f5);
  border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin: XBRL «Hoved- og nøgletal» (sammenligning med årsrapport-layout) */
.kyc-key-figures-title {
  color: #c62828;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.kyc-key-figures-section-head {
  color: var(--mud-palette-text-primary, #1a1a1a);
}
.kyc-key-figures-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mud-palette-text-secondary, #666);
  margin-top: 2px;
}
.kyc-key-figures-table-wrap .kyc-key-figures-mudtable th {
  vertical-align: bottom;
}
.kyc-key-figures-paper {
  border-left: 3px solid rgba(198, 40, 40, 0.35);
}

.kyc-key-figures--compact .kyc-key-figures-title {
  font-size: 1.05rem;
  line-height: 1.25;
}
.kyc-key-figures--compact .kyc-key-figures-section-head {
  line-height: 1.25;
}
.kyc-key-figures--compact .kyc-key-figures-row-label {
  font-size: 0.875rem;
  line-height: 1.25;
}
.kyc-key-figures-row-label-tooltip {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: help;
}
.kyc-key-figures--compact .kyc-key-figures-tech {
  font-size: 0.65rem !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
}
.kyc-key-figures--compact .kyc-key-figures-unit {
  font-size: 0.65rem;
  margin-top: 0;
  line-height: 1.1;
}
.kyc-key-figures--compact .kyc-key-figures-mudtable.mud-table-dense .mud-table-cell {
  padding: 2px 6px !important;
  font-size: 0.8125rem;
}
.kyc-key-figures--compact .kyc-key-figures-mudtable.mud-table-dense .mud-table-head .mud-table-cell {
  padding-bottom: 4px !important;
}

/* Flerår balance: ingen gentagen «Post»/år-header — kolonner flugter med resultat-tabellen ovenfor (PDF-lignende). */
.kyc-key-figures-mudtable.kyc-xbrl-multiyear-balance thead,
.kyc-key-figures-mudtable.kyc-xbrl-multiyear-balance .mud-table-head {
  display: none !important;
}

/* Flerår nøgletal: ingen gentagen års-header (år følger resultat-tabellen). */
.kyc-key-figures-mudtable.kyc-xbrl-multiyear-ratio thead,
.kyc-key-figures-mudtable.kyc-xbrl-multiyear-ratio .mud-table-head {
  display: none !important;
}

/* Flerår «Hoved- og nøgletal»: ens kolonnebredder på tværs af resultat, balance og nøgletal. */
.kyc-xbrl-multiyear-keyfigures-wrap table {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}
.kyc-xbrl-multiyear-keyfigures-wrap col.kyc-xbrl-multiyear-col-label {
  width: 18rem;
}
.kyc-xbrl-multiyear-keyfigures-wrap col.kyc-xbrl-multiyear-col-year {
  width: 8rem;
}
.kyc-xbrl-multiyear-keyfigures-wrap th.kyc-xbrl-multiyear-th-label,
.kyc-xbrl-multiyear-keyfigures-wrap td.kyc-xbrl-multiyear-td-label {
  width: 18rem;
  max-width: 18rem;
  box-sizing: border-box;
  vertical-align: top;
}
.kyc-xbrl-multiyear-keyfigures-wrap .kyc-key-figures-row-label {
  white-space: nowrap;
}
.kyc-xbrl-multiyear-keyfigures-wrap th.kyc-xbrl-multiyear-th-year,
.kyc-xbrl-multiyear-keyfigures-wrap td.kyc-xbrl-multiyear-td-year {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* KYC-formular (business + privat): hierarki, luft, subgroup om tilknyttede felter */
.kyc-kyc-form .kyc-form-tri-field__label.mud-typography-body1 {
  font-weight: 600;
  line-height: 1.35;
}

.kyc-kyc-form__subgroup > .mud-stack.kyc-form-tri-field.mb-4 {
  margin-bottom: 0.75rem !important;
}

.kyc-kyc-form__subgroup {
  border-radius: var(--mud-default-borderradius, 8px);
  border: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
  background-color: var(--mud-palette-background-grey, rgba(0, 0, 0, 0.03));
}

.kyc-kyc-form label.mud-checkbox {
  font-size: 0.875rem;
  font-weight: 400;
}

.kyc-form-tri-field .mud-radio > .mud-radio-content {
  font-size: 0.875rem;
  font-weight: 400;
}

