/* ===== Mesurit brand tokens =====
   Source: mesurit.com brand guide (tokens.css). The --mesurit-* names are the
   brand's own; the legacy names below are aliases so older rules keep working.
   Figtree is self-hosted here, not loaded from Google Fonts. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand colours */
  --mesurit-navy: #1b2a41;
  --mesurit-yellow: #ffc533;
  --mesurit-offwhite: #f7f7f4;
  --mesurit-slate: #33435c;

  /* Derived tints */
  --mesurit-navy-90: #2a3a52;
  --mesurit-line: #e4e4df;
  --mesurit-white: #ffffff;

  /* Functional colours */
  --mesurit-yellow-soft: #ffe9a8;
  --mesurit-yellow-hover: #f0b21f;
  --mesurit-text-muted: #5d6a7e;
  --mesurit-text-muted-inverse: #aeb6c4;
  --mesurit-border-input: #7f8a9c;
  --mesurit-border-inverse: #7889a2;
  --mesurit-error: #b3261e;
  --mesurit-error-soft: #fdecea;
  --mesurit-success: #1d6e4a;
  --mesurit-success-soft: #e7f3ec;

  /* Type */
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --fs-body: 1.0625rem;
  --lh-body: 1.55;
  --ls-eyebrow: 0.08em;

  /* Shape */
  --radius-card: 14px;
  --radius-button: 10px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shadow-card:
    0 1px 2px rgba(27, 42, 65, 0.06), 0 8px 24px rgba(27, 42, 65, 0.06);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* Legacy aliases used by the rules below */
  --navy: var(--mesurit-navy);
  --navy-soft: var(--mesurit-navy-90);
  --cream: var(--mesurit-offwhite);
  --yellow: var(--mesurit-yellow);
  --yellow-dark: var(--mesurit-yellow-hover);
  --text: var(--mesurit-slate);
  --text-soft: var(--mesurit-text-muted);
  --border: var(--mesurit-line);
  --surface: var(--mesurit-white);
  --surface-alt: var(--mesurit-offwhite);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--cream);
  line-height: var(--lh-body);
}
h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ===== Header ===== */
.dashboard-header {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}
.dashboard-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}
.header-logo {
  display: block;
  /* The brand guide sets the full logo minimum at 32 px height; the header
     uses the small variant, which has no measuring ticks. */
  height: 32px;
  width: auto;
  flex: 0 0 auto;
}
.header-divider {
  width: 1px;
  align-self: stretch;
  min-height: 30px;
  background: rgba(247, 247, 244, 0.22);
}
.header-titles {
  min-width: 0;
}
.header-left h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}
.header-subtitle {
  display: block;
  font-size: var(--fs-eyebrow);
  color: var(--mesurit-text-muted-inverse);
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.site-switcher-label {
  font-size: var(--fs-eyebrow);
  color: var(--mesurit-text-muted-inverse);
}
.site-switcher {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--mesurit-border-inverse);
  border-radius: var(--radius-button);
  background: var(--navy-soft);
  color: var(--cream);
  font: inherit;
  font-size: var(--fs-eyebrow);
}
/* On navy the focus ring is yellow; on light it is navy (brand guide, Contrast). */
.site-switcher:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mesurit-line);
  color: var(--text);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  white-space: nowrap;
}
.badge-inverse {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--mesurit-border-inverse);
}
.badge-light {
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}
.badge-admin {
  background: var(--mesurit-yellow-soft);
  color: var(--navy);
}
.identity-icon {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .header-divider {
    display: none;
  }
  .header-logo {
    height: 24px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-button);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: var(--fs-small);
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--yellow-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}
.dashboard-header .btn-secondary {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--mesurit-border-inverse);
}
.dashboard-header .btn-secondary:hover {
  background: var(--cream);
  color: var(--navy);
}
.btn-detail {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn-detail:hover {
  background: var(--navy);
  color: var(--cream);
}
.dashboard-header a.btn {
  text-decoration: none;
}
.admin-page-card {
  margin-top: 0;
}
.btn-danger {
  background: transparent;
  color: var(--mesurit-error);
  box-shadow: inset 0 0 0 1.5px var(--mesurit-error);
}
.btn-danger:hover {
  background: var(--mesurit-error);
  color: var(--surface);
}
/* On light the focus ring is navy; yellow fails 3:1 against off-white. */
.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.dashboard-header .btn:focus-visible {
  outline-color: var(--yellow);
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.admin-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--surface-alt);
}
.admin-list-item strong {
  min-width: 180px;
}
.grant-item select {
  padding: 5px 8px;
  border: 1px solid var(--mesurit-border-input);
  border-radius: var(--radius-input);
  font: inherit;
  font-size: var(--fs-eyebrow);
}
.settings-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.settings-toolbar:empty {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}
.settings-grid > .btn {
  justify-self: start;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.settings-field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}
.settings-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--mesurit-border-input);
  border-radius: var(--radius-input);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.settings-field select,
.supplier-settings-card select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--mesurit-border-input);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  appearance: auto;
}
.settings-field input:focus-visible,
.settings-field select:focus-visible,
.supplier-settings-card input:focus-visible,
.supplier-settings-card select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.copy-field {
  display: flex;
  gap: var(--space-2);
}
.copy-field input {
  flex: 1;
  min-width: 0;
}
.copy-btn {
  flex: 0 0 auto;
}
.secret-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.secret-placeholder {
  letter-spacing: 3px;
  color: var(--text-soft);
}
.settings-field small {
  color: var(--text-soft);
}
.supplier-settings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: var(--space-4);
}
.supplier-settings-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.supplier-settings-card h3 {
  margin-bottom: 6px;
}
.supplier-settings-card .settings-field {
  gap: var(--space-1);
}
.supplier-settings-card .settings-field label {
  font-size: var(--fs-eyebrow);
}
.supplier-settings-card select,
.supplier-settings-card input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--mesurit-border-input);
  border-radius: var(--radius-input);
  font: inherit;
}
.supplier-settings-card button[type="submit"] {
  align-self: flex-start;
}
.supplier-settings-card .btn {
  align-self: flex-start;
}
.supplier-settings-card p {
  min-height: 48px;
}
.settings-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: var(--fs-small);
}
.settings-summary dt {
  color: var(--text-soft);
}
.settings-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings-notice {
  margin: 20px 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
}
@media (max-width: 768px) {
  .settings-toolbar,
  .settings-grid,
  .supplier-settings-list {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }
}

/* ===== Layout ===== */
.dashboard-layout {
  padding-top: 24px;
}

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: var(--space-4);
  padding: 0 0 16px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.filter-group label {
  font-size: var(--fs-eyebrow);
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--mesurit-border-input);
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  min-width: 180px;
}
.filter-group select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

/* ===== Table ===== */
.table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 20px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.table-toolbar .btn-secondary {
  background: var(--surface);
}
.table-toolbar .btn-secondary:hover {
  background: var(--navy);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.table-scroll {
  overflow-x: auto;
}
/* Headings sit on an off-white band with navy text, a line between rows
   (brand guide, Tables). No dark header band. */
.orders-table th {
  background: var(--surface-alt);
  padding: 12px 16px;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 12px 16px;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.orders-table tbody tr:last-child td {
  border-bottom: none;
}
.orders-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.orders-table tbody tr:hover td {
  background: color-mix(in srgb, var(--mesurit-offwhite) 60%, var(--surface));
}
/* Numbers right-aligned with digits of equal width. */
.orders-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.orders-table th.num {
  text-align: right;
}
/* The last column holds an action, aligned to the right. */
.orders-table th:last-child,
.orders-table td:last-child {
  text-align: right;
}
.loading {
  text-align: center;
  color: var(--text-soft);
  padding: 40px !important;
}
.loading.error {
  color: var(--mesurit-error);
}
.order-id {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: var(--fs-eyebrow);
  color: var(--text-soft);
}
.price {
  font-weight: 700;
  color: var(--navy);
}
.date-cell {
  font-size: var(--fs-eyebrow);
  color: var(--text-soft);
}

/* ===== Status Badge =====
   A status label: a dot makes the state a shape as well as a colour, so the
   colour is never the only signal (brand guide, Labels and tags). */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.status-neutral {
  background: var(--mesurit-line);
  color: var(--text);
}
.status-info {
  background: color-mix(in srgb, var(--navy) 9%, var(--surface));
  color: var(--navy);
}
.status-success {
  background: var(--mesurit-success-soft);
  color: var(--mesurit-success);
}
.status-error {
  background: var(--mesurit-error-soft);
  color: var(--mesurit-error);
}

/* ===== Supplier Badge =====
   A tag: a value, not a state, so it takes the neutral tag look and the
   yellow stays free for the one accent per screen. */
.supplier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mesurit-border-input);
  background: var(--surface);
  color: var(--navy);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Detail Panel ===== */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.detail-header h2 {
  font-size: 1.125rem;
}
.detail-header-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.detail-body {
  padding: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
.detail-section {
  margin-bottom: 20px;
}
.detail-section h3 {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.detail-section table {
  width: 100%;
}
.detail-section td {
  padding: 4px 0;
  font-size: var(--fs-small);
}
.detail-section td:first-child {
  color: var(--text-soft);
  width: 140px;
}
.detail-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.muted {
  color: var(--text-soft);
  font-size: var(--fs-small);
}

/* ===== Order timeline ===== */
.order-timeline {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0 6px 2px;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  position: relative;
  font-size: var(--fs-small);
}
.timeline-icon {
  position: absolute;
  left: -9px;
  /* De bol staat op de statische positie (bovenaan de regel); deze verschuiving
     lijnt hem verticaal uit met het midden van het label. */
  transform: translateY(3.5px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--mesurit-border-input);
  color: var(--text-soft);
  font-size: 0.65rem;
  line-height: 12px;
  text-align: center;
}
.timeline-done .timeline-icon {
  border-color: var(--mesurit-success);
  background: var(--mesurit-success);
  color: var(--surface);
}
.timeline-done .timeline-label {
  color: var(--text);
}
.timeline-current {
  border-left-color: var(--navy);
  font-weight: 600;
}
/* The step in progress is the one yellow accent in the panel. Yellow on
   off-white fails contrast, so the ring around it stays navy. */
.timeline-current .timeline-icon {
  border-color: var(--navy);
  background: var(--yellow);
  color: var(--navy);
}
.timeline-expected {
  color: var(--text-soft);
}
.timeline-expected .timeline-label {
  color: var(--text-soft);
}
.timeline-error {
  border-left-color: var(--mesurit-error);
  color: var(--mesurit-error);
}
.timeline-error .timeline-icon {
  border-color: var(--mesurit-error);
  background: var(--mesurit-error);
  color: var(--surface);
}
.timeline-time {
  font-size: var(--fs-eyebrow);
  color: var(--text-soft);
  margin-left: auto;
}
.timeline-detail {
  font-size: var(--fs-eyebrow);
  color: var(--mesurit-error);
}
.timeline-empty {
  list-style: none;
}

/* ===== Uitklapbare tijdlijnstappen ===== */
.timeline-expandable {
  display: block;
}
.timeline-details {
  display: block;
}
.timeline-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-input);
  padding: 2px 6px 2px 0;
  transition: background 0.15s ease;
}
.timeline-summary:hover {
  background: var(--surface-alt);
}
.timeline-summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.timeline-summary::-webkit-details-marker {
  display: none;
}
.timeline-summary .timeline-time {
  margin-left: auto;
}

/* Zichtbare "klik om open te klappen"-affordance: chevron-icoon. */
.timeline-chevron {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: 4px;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.timeline-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}
.timeline-chevron .timeline-chevron-open {
  display: none;
}
.timeline-summary:hover .timeline-chevron {
  color: var(--navy);
}
.timeline-details[open] > .timeline-summary .timeline-chevron .timeline-chevron-closed {
  display: none;
}
.timeline-details[open] > .timeline-summary .timeline-chevron .timeline-chevron-open {
  display: block;
}
.timeline-panel {
  margin: 8px 0 4px;
}
.timeline-panel .panel-heading {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 6px;
}
.timeline-panel .panel-heading:first-child {
  margin-top: 0;
}
.timeline-panel .xml-viewers {
  margin-top: 0;
}
.timeline-action {
  margin: 8px 0 4px;
}

/* ===== JSON Preview ===== */
.json-preview {
  background: var(--navy);
  color: var(--cream);
  padding: 16px;
  border-radius: var(--radius-input);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

/* ===== XML Viewers ===== */
.xml-viewers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .xml-viewers {
    grid-template-columns: 1fr;
  }
}
.xml-viewer h4 {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  color: var(--navy);
  margin-bottom: 8px;
}
.xml-meta {
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  color: var(--text-soft);
}
.xml-viewer .xml-meta + .xml-preview {
  margin-top: 6px;
}
.xml-compatibility {
  margin-top: 16px;
}
.xml-compatibility h4 {
  font-size: var(--fs-eyebrow);
  color: var(--navy);
  margin-bottom: 6px;
}
.xml-compatibility-status {
  font-size: var(--fs-eyebrow);
  color: var(--text);
  margin-bottom: 8px;
}
.xml-status-compatible {
  color: var(--mesurit-success);
}
.xml-status-different,
.xml-status-invalid_generated_xml,
.xml-status-invalid_magento_xml {
  color: var(--mesurit-error);
}
.xml-preview {
  max-height: 420px;
  white-space: pre;
}

/* Testresultaat van de Magento-callback in de siteconfiguratie. */
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.callback-test-result {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--surface-subtle, #f9fafb);
  font-size: 0.9rem;
  line-height: 1.5;
}

.callback-test-result.is-ok {
  border-left-color: #15803d;
}

.callback-test-result.is-warning {
  border-left-color: #b45309;
}

.callback-test-result.is-error {
  border-left-color: #b91c1c;
}

.callback-test-result dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0.5rem 0 0;
}

.callback-test-result dt {
  color: var(--text-muted, #6b7280);
}

.callback-test-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.callback-test-result pre {
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
