﻿:root {
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --nav-bg: #0f172a;
  --body-bg: #f1f5f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-muted: #64748b;

  --col-not-started: #64748b;
  --col-approval: #d97706;
  --col-in-progress: #2563eb;
  --col-succeeded: #16a34a;
  --col-failed: #dc2626;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--body-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid #1e293b !important;
  padding: 0 1.5rem;
  height: 56px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.navbar-brand {
  color: #f8fafc !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.user-badge {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #334155;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout {
  background: none;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-signout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
}

/* ── Topbar user menu ───────────────────────────────────── */
.topbar-menu { position: relative; display: inline-flex; align-items: center; }
.topbar-trigger {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px; padding: 0.35rem 0.8rem;
    color: #f1f5f9; font-size: 0.82rem; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.topbar-trigger:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }
.topbar-email { font-weight: 500; }
.topbar-role-pill {
    display: inline-block; padding: 1px 7px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
}
.topbar-role-pill.role-system { background: #7c3aed; color: #fff; }
.topbar-role-pill.role-member { background: #475569; color: #e2e8f0; }
.topbar-backdrop {
    position: fixed; inset: 0; background: transparent; z-index: 999;
}
.topbar-dropdown {
    position: absolute; top: calc(100% + 0.45rem); right: 0;
    min-width: 220px; z-index: 1000;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.18);
    padding: 0.35rem; display: flex; flex-direction: column; gap: 1px;
}
.topbar-item {
    display: flex; align-items: center; gap: 0.6rem;
    background: transparent; border: none; border-radius: 6px;
    padding: 0.55rem 0.7rem; font-size: 0.86rem; color: #1e293b;
    cursor: pointer; text-align: left; width: 100%;
}
.topbar-item:hover { background: #f1f5f9; }
.topbar-item i { color: #64748b; font-size: 0.95rem; width: 1.1rem; text-align: center; }
.topbar-item:hover i { color: #0d6efd; }
.topbar-divider { height: 1px; background: #e2e8f0; margin: 0.25rem 0.4rem; }
.topbar-item-badge {
    margin-left: auto;
    color: #16a34a;
    font-size: 0.6rem;
    line-height: 1;
}
.topbar-form { margin: 0; }
.topbar-signout:hover { background: #fef2f2; color: #b91c1c; }
.topbar-signout:hover i { color: #b91c1c; }

/* ── Page wrapper ────────────────────────────────────────── */
.page-body {
  flex: 1;
  padding: 2rem 1.5rem;
}

/* ── Login page ──────────────────────────────────────────── */
.login-wrapper {
  min-height: calc(100vh - 56px - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.login-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 26px;
  color: white;
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.btn-signin {
  background: var(--primary);
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-signin:hover {
  background: var(--primary-dark);
}

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0 1.25rem;
}

.login-footer {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ── Deploy control bar ──────────────────────────────────── */
.deploy-control-bar {
  background: white;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.deploy-control-release {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Not flex:1 — that stretched this block across the bar while the select itself stopped at
     520px, leaving a dead gap and pushing everything else to the far right. */
  flex: 0 1 auto;
  min-width: 0;
}

.deploy-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  white-space: nowrap;
}

.deploy-control-bar select {
  flex: 0 1 auto;
  min-width: 220px;
  max-width: 340px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.deploy-control-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,120,212,0.1);
  background: white;
}

.deploy-scope-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

.deploy-control-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Retry toggle ───────────────────────────────────────── */
.retry-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.retry-toggle-btn,
.btn-retry-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.retry-toggle-btn:hover,
.btn-retry-toggle:hover  { background: #f1f5f9; border-color: #94a3b8; }
.retry-toggle-btn.active,
.btn-retry-toggle.active {
  background: #fef9c3;
  border-color: #fbbf24;
  color: #92400e;
}

.retry-count-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.05rem 0.4rem;
  line-height: 1.4;
}

.retry-max-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.82rem;
  background: white;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}
.retry-max-select:focus { border-color: var(--primary); }

.portal-retry-runs {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── Schedule button & badge ─────────────────────────────── */
.btn-schedule {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-schedule:hover,
.btn-schedule.active {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

/* Search box on the deploy board. */
.deploy-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: #94a3b8;
}

.deploy-search-input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  width: 12rem;
  background: #f8fafc;
  color: var(--text-primary);
}

.deploy-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.deploy-search-clear {
  background: none; border: none; color: #94a3b8;
  cursor: pointer; font-size: 0.7rem; padding: 0.2rem;
}

.deploy-search-clear:hover { color: #475569; }

/* "Geen selectie" reads as neutral rather than as an active filter. */
.deploy-scope-empty { color: #64748b !important; background: #f8fafc !important; border-color: var(--border) !important; }

.selection-panel-empty {
  margin: 0;
  padding: 0.35rem 0.75rem 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Saved selections inside the selection panel. */
.preset-section { border-top: 1px solid var(--border); padding-bottom: 0.35rem; }

.preset-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.75rem;
}

.preset-apply {
  flex: 1;
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
}

.preset-apply:hover:not(:disabled) { background: #f1f5f9; border-color: var(--border); }
.preset-apply:disabled { opacity: 0.5; cursor: not-allowed; }

.preset-count {
  margin-left: auto;
  background: #e2e8f0;
  border-radius: 4px;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  color: #475569;
}

.preset-delete {
  background: none; border: none; color: #cbd5e1;
  cursor: pointer; font-size: 0.75rem; padding: 0.2rem;
}

.preset-delete:hover { color: #dc2626; }

.preset-save-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem 0.2rem;
}

.preset-save-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
  font-size: 0.78rem;
}

/* Token banner. Solid colours, no gradients — same as the rest of the chrome. */
.token-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.875rem;
  font-size: 0.85rem;
}

.token-banner-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.token-banner-warn  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.token-banner-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }

.token-banner-item { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline; }

.token-banner-detail { opacity: 0.85; }

.token-banner-action {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.token-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem;
}

.token-banner-close:hover { opacity: 1; }

/* Outcome of a bulk deploy. */
.bulk-result {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.875rem;
  font-size: 0.84rem;
}

.bulk-result-ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.bulk-result-bad { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.bulk-result-body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }

.bulk-result-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

.bulk-result-name { font-weight: 600; min-width: 12rem; }
.bulk-result-reason { font-family: monospace; opacity: 0.85; }

.bulk-result-close {
  background: none; border: none; color: inherit; opacity: 0.6;
  cursor: pointer; font-size: 0.75rem; padding: 0.2rem;
}

.bulk-result-close:hover { opacity: 1; }

/* How fresh the board's data is. */
.dsb-age {
  margin-left: 0.9rem;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Selection panel on the deploy board. */
.deploy-scope-wrap { position: relative; }

.selection-backdrop { position: fixed; inset: 0; z-index: 40; }

.selection-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 41;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.selection-panel-chips { padding: 0 0 0.5rem; }
.selection-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 0.75rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.selection-panel-note { font-size: 0.7rem; font-weight: 500; color: #94a3b8; }

.selection-panel-list { max-height: 260px; overflow-y: auto; padding: 0 0.75rem; }

.selection-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  color: #334155;
}

.selection-panel-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* Primary action for the board: deploy everything currently on screen. */
.dsb-deploy-visible {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.dsb-deploy-visible:disabled { opacity: 0.45; cursor: not-allowed; }

.dsb-dv-count {
  margin-left: 0.45rem;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0 0.3rem;
  font-size: 0.75rem;
}

/* Deploy context on the board: what is live now, how long a stage has run, and a way out to
   ADO. Muted on purpose — the stage name stays the thing you read first. */
.pipe-item-from,
.pipe-item-elapsed {
  margin-left: auto;
  font-size: 0.7rem;
  font-family: monospace;
  color: #94a3b8;
  white-space: nowrap;
}

.pipe-item-elapsed { color: #2563eb; }

.pipe-item-link {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  font-size: 0.7rem;
  padding: 0 0.15rem;
  text-decoration: none;
}

.pipe-item-link:hover { color: #2563eb; }

/* Live release per row in the Beheer table. */
.live-version { color: #334155; font-size: 0.8rem; }
.live-version-none { color: #cbd5e1; }

/* Deploy summary at the top of the customer detail popup. */
.detail-deploy-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
}

.ddb-item { display: flex; flex-direction: column; gap: 0.1rem; }

.ddb-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  font-weight: 600;
}

.ddb-value { font-size: 0.85rem; color: #1e293b; }
.ddb-muted { color: #cbd5e1; }

.ddb-links { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.ddb-link {
  font-size: 0.78rem;
  color: #0d6efd;
  text-decoration: none;
  white-space: nowrap;
}

.ddb-link:hover { text-decoration: underline; }
.ddb-link-static { color: #64748b; }
.ddb-link-static:hover { text-decoration: none; }

/* The shared deploy calendar stacks one badge per planned deploy. */
/* Aliases are per environment and there can be several, so they read as chips rather than
   as one line of text under the customer name. */
.customer-alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.customer-alias-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  color: #64748b;
}

/* Environment-type filter, sitting beside the release picker. */
.deploy-env-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.deploy-env-chips {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.deploy-env-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.deploy-env-chip:hover { border-color: #94a3b8; }

.deploy-env-chip.active {
  background: #0078d4;
  border-color: #0078d4;
  color: #fff;
}

.deploy-env-clear { font-weight: 400; padding: 0.15rem 0.35rem; }

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

/* Who planned it and when — secondary to the countdown, so it recedes. */
.schedule-owner {
  color: #60a5fa;
  font-size: 0.78rem;
}

.schedule-active-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.4rem 0.7rem 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: #1d4ed8;
}

.schedule-badge-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.schedule-badge-sep { color: #93c5fd; }

.schedule-countdown {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e40af;
}

.schedule-cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: none;
  color: #3b82f6;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.schedule-cancel-btn:hover { background: #dbeafe; color: #1d4ed8; }

/* ── Schedule form panel ─────────────────────────────────── */
.schedule-form-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.schedule-form-inner {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.schedule-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.schedule-field-check { justify-content: flex-end; }

.schedule-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  white-space: nowrap;
}

.schedule-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: #f8fafc;
  min-width: 160px;
}
.schedule-input:focus { outline: none; border-color: #0078d4; background: #fff; }

.schedule-time-wrap {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  padding: 0.45rem 0.6rem;
}
.schedule-time-wrap:focus-within { border-color: #0078d4; background: #fff; }

.schedule-time-part {
  width: 2.4rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-family: monospace;
  text-align: center;
  color: var(--text-primary);
  padding: 0;
  -moz-appearance: textfield;
}
.schedule-time-part:focus { outline: none; }
.schedule-time-part::-webkit-outer-spin-button,
.schedule-time-part::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.schedule-time-sep { color: #64748b; font-weight: 700; line-height: 1; }

.schedule-info {
  font-size: 0.83rem;
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  white-space: nowrap;
}
.schedule-info-set  { background: #f0fdf4; color: #15803d; }
.schedule-info-all  { background: #fafafa; color: #64748b; }
.schedule-info-warn { background: #fefce8; color: #92400e; }

.schedule-check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.45rem 0;
}

.schedule-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-bottom: 0.1rem;
}

.btn-schedule-confirm {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-schedule-confirm:hover:not(:disabled) { background: #006abc; }
.btn-schedule-confirm:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-text-muted {
  background: none;
  border: none;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.45rem 0.5rem;
}
.btn-text-muted:hover { color: var(--text-primary); }

.schedule-field-pat  { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.schedule-pat-wrap   { display: flex; width: 100%; gap: 0; }
.schedule-pat-input  { flex: 1; border-radius: 5px 0 0 5px !important; font-family: 'Consolas', monospace; font-size: 0.82rem; }
.schedule-pat-toggle {
    padding: 0 0.6rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 5px 5px 0;
    color: #64748b;
    cursor: pointer;
}
.schedule-pat-toggle:hover { background: #e2e8f0; color: #1e293b; }
.schedule-pat-hint   { font-size: 0.73rem; color: #94a3b8; }
.schedule-badge-error { background: #fef2f2 !important; border-color: #fca5a5 !important; }

/* A plan that has fired is kept in the list as history rather than deleted. */
.schedule-badge-done { background: #f0fdf4 !important; border-color: #86efac !important; color: #15803d; }

/* ── Schedule detail: both lanes of one plan ──────────────── */
.schedule-entry { display: flex; flex-direction: column; }

.schedule-list-divider {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
}

.schedule-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.35rem 0 0 1.6rem;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
}

.schedule-detail-lane { display: flex; flex-direction: column; gap: 0.25rem; }

.schedule-detail-lane-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #1e293b;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-detail-actions { margin-left: auto; display: flex; gap: 0.4rem; }
.schedule-detail-btn { padding: 2px 8px; font-size: 0.72rem; text-decoration: none; }

.schedule-detail-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1px 0;
}
.schedule-detail-name { color: #1e293b; font-weight: 500; }
.schedule-detail-note { color: #475569; }

/* GHE PAT row in Deploy Portals */
.ghe-pat-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ghe-pat-status { display: inline-flex; align-items: center; font-size: 0.82rem; color: #475569; }
.pat-input-wrap { position: relative; flex: 1; min-width: 220px; display: flex; }
.pat-input-wrap .portal-input { flex: 1; padding-right: 2.2rem; font-family: 'Consolas', monospace; font-size: 0.82rem; }
.pat-visibility-toggle {
    position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: #64748b; cursor: pointer; padding: 0.15rem 0.3rem;
}
.pat-visibility-toggle:hover { color: #1e293b; }

/* PAT help popover */
.help-icon-btn {
    background: transparent; border: none; padding: 0; color: #64748b;
    cursor: pointer; font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center;
}
.help-icon-btn:hover { color: #0d6efd; }

/* Tokens modal — sections for GHE + ADO */
.tokens-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.tokens-section:last-child { border-bottom: none; }
.tokens-section-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; color: #1e293b;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.tokens-status-pill {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
    border: 1px solid;
}
.tokens-status-ok  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.tokens-status-bad { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.tokens-validate-btn {
    margin-left: auto;
    font-size: 0.78rem !important;
    padding: 3px 8px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px;
    background: #fff;
}
.tokens-validate-btn:hover:not(:disabled) { border-color: #0d6efd !important; color: #0d6efd; }

/* Masked token on its own line, action buttons stacked beneath */
.tokens-display { display: flex; flex-direction: column; gap: 0.6rem; }
.tokens-masked {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all;
}
.tokens-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.ghe-pat-sso-notice {
    background: #fef3c7; border: 1px solid #fde68a; border-radius: 6px;
    padding: 0.55rem 0.7rem; margin-bottom: 0.55rem; font-size: 0.8rem; color: #92400e;
    line-height: 1.45;
}
.ghe-pat-sso-notice a { color: #b45309; text-decoration: underline; font-weight: 500; }
.ghe-pat-sso-notice a:hover { color: #78350f; }
.ghe-pat-sso-notice code {
    background: rgba(180, 83, 9, 0.12); padding: 1px 5px; border-radius: 4px;
    font-family: 'Consolas', monospace; font-size: 0.76rem;
}
.ghe-pat-help {
    background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
    padding: 0.75rem; margin-bottom: 0.5rem; font-size: 0.82rem; color: #334155;
}
.ghe-pat-help a { color: #0d6efd; text-decoration: none; }
.ghe-pat-help a:hover { text-decoration: underline; }
.ghe-pat-help code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-family: 'Consolas', monospace; font-size: 0.78rem; }
.ghe-pat-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ghe-pat-help-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.6rem 0.75rem; }
.ghe-pat-help-h { font-weight: 600; color: #1e293b; margin: 0 0 0.3rem 0; font-size: 0.85rem; }
.ghe-pat-help ul { margin: 0; padding-left: 1.1rem; }
.ghe-pat-help ul ul { margin-top: 0.2rem; }
@media (max-width: 900px) {
    .ghe-pat-help-grid { grid-template-columns: 1fr; }
}

/* ── Deploy summary bar ──────────────────────────────────── */
.deploy-summary-bar {
  background: white;
  border-radius: 10px;
  padding: 0.875rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dsb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 52px;
}

.dsb-num {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.dsb-lbl {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
}

.dsb-pending  .dsb-num { color: #64748b; }
.dsb-approval .dsb-num { color: #d97706; }
.dsb-running  .dsb-num { color: #2563eb; }
.dsb-success  .dsb-num { color: #16a34a; }
.dsb-failed   .dsb-num { color: #dc2626; }

.dsb-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.dsb-progress {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.dsb-track {
  flex: 1;
  height: 7px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}

.dsb-pb-success  { background: #22c55e; transition: width 0.6s ease; }
.dsb-pb-running  { background: #3b82f6; transition: width 0.6s ease; }
.dsb-pb-approval { background: #f59e0b; transition: width 0.6s ease; }
.dsb-pb-failed   { background: #ef4444; transition: width 0.6s ease; }

.dsb-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  min-width: 34px;
  text-align: right;
}

/* ── Deploy pipeline ─────────────────────────────────────── */
.deploy-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1300px) { .deploy-pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .deploy-pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .deploy-pipeline { grid-template-columns: 1fr; } }

.pipe-col {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-top: 3px solid transparent;
}

.col-pending  { border-top-color: #94a3b8; }
.col-approval { border-top-color: #f59e0b; }
.col-running  { border-top-color: #3b82f6; }
.col-success  { border-top-color: #22c55e; }
.col-failed   { border-top-color: #ef4444; }

.pipe-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
  gap: 0.4rem;
  user-select: none;
}

.pch-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pch-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.col-pending  .pch-badge { background: #f1f5f9; color: #64748b; }
.col-approval .pch-badge { background: #fef3c7; color: #d97706; }
.col-running  .pch-badge { background: #dbeafe; color: #2563eb; }
.col-success  .pch-badge { background: #dcfce7; color: #16a34a; }
.col-failed   .pch-badge { background: #fee2e2; color: #dc2626; }

.pch-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #374151;
  white-space: nowrap;
}

.pch-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pch-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  min-width: 22px;
  text-align: center;
}

.col-pending  .pch-count { background: #f1f5f9; color: #64748b; }
.col-approval .pch-count { background: #fef3c7; color: #92400e; }
.col-running  .pch-count { background: #dbeafe; color: #1e40af; }
.col-success  .pch-count { background: #dcfce7; color: #166534; }
.col-failed   .pch-count { background: #fee2e2; color: #991b1b; }

.pch-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.pch-action-btn:hover:not(:disabled) { background: var(--primary-dark); }
.pch-action-btn:disabled { opacity: 0.45; cursor: default; }

.pipe-col-body {
  padding: 0.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pipe-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: white;
  border: 1px solid #e8edf2;
  border-left: 3px solid transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: default;
  transition: background 0.1s, box-shadow 0.1s;
}

.pipe-item:hover { background: #f8fafc; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.col-pending  .pipe-item { border-left-color: #94a3b8; }
.col-approval .pipe-item { border-left-color: #f59e0b; }
.col-running  .pipe-item { border-left-color: #3b82f6; }
.col-success  .pipe-item { border-left-color: #22c55e; }
.col-failed   .pipe-item { border-left-color: #ef4444; }

.pipe-item-running {
  animation: pulse-running 2.4s ease-in-out infinite;
}

@keyframes pulse-running {
  0%, 100% { border-left-color: #3b82f6; }
  50%       { border-left-color: #93c5fd; }
}

.pipe-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e293b;
}

.pipe-item-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.12s;
}

.pipe-item-btn:disabled { opacity: 0.4; cursor: default; }
.btn-pi-deploy  { background: #eff6ff; color: #2563eb; }
.btn-pi-deploy:hover:not(:disabled)  { background: #dbeafe; }
.btn-pi-approve { background: #fffbeb; color: #d97706; }
.btn-pi-approve:hover:not(:disabled) { background: #fef3c7; }

.pipe-placeholder {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-align: center;
  padding: 2rem 0.5rem;
  font-style: italic;
  margin: 0;
}

.pipe-empty {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem 0.5rem;
  margin: 0;
}

.pipe-skeleton {
  height: 36px;
  background: #f1f5f9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pipe-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* Skeleton loading (used elsewhere) */
.skeleton {
  height: 32px;
  background: #f0f0f0;
  border-radius: 7px;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--nav-bg);
  color: #475569;
  font-size: 0.72rem;
  padding: 0 1.5rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer.site-footer a {
  color: #64748b;
  text-decoration: none;
}

footer.site-footer a:hover {
  color: #94a3b8;
}

/* ── Vue cloak ───────────────────────────────────────────── */
[v-cloak] { display: none; }

/* ── Home action grid ────────────────────────────────────── */
.action-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 0.625rem 0.1rem;
}

.action-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.action-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 700px) { .action-columns { grid-template-columns: 1fr; } }

/* ── Home selection hero ─────────────────────────────────── */
.home-hero {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 5px solid #0f766e;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.home-hero.home-hero-empty {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: #94a3b8;
}
.home-hero-main { flex: 1; min-width: 280px; }
.home-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.4rem 0;
}
.home-hero-empty .home-hero-eyebrow { color: #64748b; }
.home-hero-headline {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 0 0 0.6rem 0;
    line-height: 1.1;
}
.home-hero-headline-empty {
    font-size: 1.3rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.3rem 0;
}
.home-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #064e3b;
}
.home-stat-label {
    font-size: 0.95rem;
    color: #047857;
    font-weight: 500;
}
.home-hero-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}
.home-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.home-hero-chip {
    background: white;
    border: 1px solid #d1fae5;
    color: #047857;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.home-hero-chip i { font-size: 0.55rem; }
.home-hero-chip.chip-test     { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.home-hero-chip.chip-acc      { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.home-hero-chip.chip-prod     { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.home-hero-chip.chip-internal { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.home-hero-chip.chip-portal   { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.home-hero-chip.chip-portal i { font-size: 0.78rem; }
.home-hero-chip.chip-internal i { font-size: 0.78rem; }

.home-hero-cta {
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
    white-space: nowrap;
}
.home-hero-cta:hover { background: #115e59; }
.home-hero-empty .home-hero-cta { background: #475569; }
.home-hero-empty .home-hero-cta:hover { background: #334155; }

/* ── Home deploy cards ──────────────────────────────────── */
.home-deploy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 700px) { .home-deploy-grid { grid-template-columns: 1fr; } }

.home-deploy-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.home-deploy-card:hover:not(.is-disabled) {
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.12);
    transform: translateY(-1px);
}
.home-deploy-card.is-disabled {
    cursor: default;
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.75;
}
.home-deploy-card.is-disabled:hover { border-color: #e2e8f0; box-shadow: none; transform: none; }
.home-deploy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.home-deploy-card.is-disabled .home-deploy-icon { opacity: 0.5; }
.home-deploy-body { flex: 1; min-width: 0; }
.home-deploy-title {
    margin: 0 0 0.2rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}
.home-deploy-detail {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}
.home-deploy-detail-empty { color: #94a3b8; font-style: italic; }
.home-deploy-arrow {
    color: #cbd5e1;
    font-size: 1.15rem;
    transition: color 0.15s, transform 0.15s;
}
.home-deploy-card:hover:not(.is-disabled) .home-deploy-arrow {
    color: #0d6efd;
    transform: translateX(3px);
}
/* Home page — active deployments panel */
.home-active-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.home-active-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.95rem; font-weight: 600; color: #1e293b;
    margin-bottom: 0.85rem;
}
.home-active-pulse {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 999px; background: #0d6efd;
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
    animation: home-pulse 1.8s ease-out infinite;
}
.home-active-pulse-idle {
    background: #cbd5e1;
    animation: none;
    box-shadow: none;
}
.home-active-loading,
.home-active-empty {
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem 0.5rem;
    font-size: 0.86rem;
    color: #94a3b8;
}
.home-active-loading i { color: #0d6efd; }
.home-active-empty   i { color: #16a34a; font-size: 1rem; }
@keyframes home-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}
.home-active-total {
    margin-left: auto;
    background: #eff6ff; color: #1e40af;
    padding: 2px 10px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 600;
}
.home-active-section { margin-bottom: 0.85rem; }
.home-active-section:last-child { margin-bottom: 0; }
.home-active-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.4rem 0.05rem;
}
.home-active-row {
    width: 100%; display: flex; align-items: center; gap: 0.7rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 0.55rem 0.8rem 0.55rem 0.55rem; margin-bottom: 0.4rem;
    font-size: 0.88rem; color: #1e293b;
    cursor: pointer; transition: all 0.15s;
    text-align: left;
}
.home-active-row:hover {
    border-color: #0d6efd;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}
.home-active-row:last-child { margin-bottom: 0; }

.home-active-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 0.95rem; flex-shrink: 0;
}
.home-active-icon.is-running { background: #eff6ff; color: #1e40af; }
.home-active-icon.is-waiting { background: #fef3c7; color: #9a3412; }

.home-active-name { flex: 1; min-width: 0; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; }
.home-active-tag {
    margin-left: 0.35rem; font-weight: 400; color: #64748b; font-size: 0.78rem;
    background: #f1f5f9; padding: 1px 7px; border-radius: 5px;
}

.home-active-pills { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; }
.home-active-pill {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 600;
    border: 1px solid;
}
.home-active-pill.pill-running { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.home-active-pill.pill-waiting { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.home-active-pill.pill-done    { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

.home-active-by {
    font-size: 0.76rem; color: #64748b; display: inline-flex; align-items: center;
}

.home-active-arrow { color: #cbd5e1; transition: color 0.15s, transform 0.15s; flex-shrink: 0; }
.home-active-row:hover .home-active-arrow { color: #0d6efd; transform: translateX(3px); }

.home-deploy-card-wide { padding: 1.35rem 1.6rem; }
.home-deploy-card-wide .home-deploy-icon { width: 54px; height: 54px; font-size: 1.5rem; }
.home-deploy-detail-hint { color: #94a3b8; }

/* Klanten Beheer — actions cell: toggle + quick-deploy side by side */
.cell-actions { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.btn-quick-deploy {
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-quick-deploy:hover { background: #0a58ca; transform: translateY(-1px); }
.btn-quick-deploy:active { transform: translateY(0); }

/* Home grid:
   - With active deployments: 2 columns. Active LEFT, hero + deploy STACKED in RIGHT col.
   - Without:                 single column, hero + deploy stacked.
   - Narrow screens:          single column always. */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}
.home-grid.has-active {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
    .home-grid.has-active { grid-template-columns: 1fr; }
}

/* The "config column" stacks Klanten Beheer + Deploy cards (matching style) */
.home-config-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.home-config-col .home-deploy-card { margin-bottom: 0; }

/* Chips line under the detail text inside an action card */
.home-deploy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

/* Active panel in the grid: no own bottom margin (grid handles spacing) */
.home-grid > .home-active-panel { margin-bottom: 0; }

/* ── Home: geplande deploys ──────────────────────────────────────────
   Same card as the active panel so the left column reads as one column of
   "what is happening", with the calendar under it. */
.home-plan-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.home-plan-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.95rem; font-weight: 600; color: #1e293b;
    margin-bottom: 0.6rem;
}
.home-plan-head > .bi { color: #64748b; }
.home-plan-count {
    font-size: 0.75rem; font-weight: 600; color: #475569;
    background: #f1f5f9; border-radius: 999px; padding: 0.1rem 0.5rem;
}
.home-plan-link {
    margin-left: auto;
    background: none; border: none; padding: 0;
    font-size: 0.85rem; font-weight: 500; color: #0d6efd; cursor: pointer;
}
.home-plan-link:hover { text-decoration: underline; }

.home-plan-row {
    width: 100%;
    display: flex; align-items: center; gap: 0.7rem;
    background: none; border: none; border-radius: 8px;
    padding: 0.55rem 0.6rem;
    text-align: left; cursor: pointer;
    transition: background 0.15s;
}
.home-plan-row:hover { background: #f8fafc; }
.home-plan-row + .home-plan-row { border-top: 1px solid #f1f5f9; }
.home-plan-icon { color: #0d6efd; font-size: 1rem; }
.home-plan-icon-error { color: #ef4444; font-size: 1rem; }
.home-plan-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.home-plan-what {
    font-size: 0.9rem; font-weight: 500; color: #1e293b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-plan-detail { font-weight: 400; color: #64748b; }
.home-plan-when { font-size: 0.78rem; color: #94a3b8; }
.home-plan-countdown {
    font-size: 0.8rem; font-weight: 600; color: #475569;
    font-variant-numeric: tabular-nums;
    background: #f1f5f9; border-radius: 6px; padding: 0.15rem 0.45rem;
    white-space: nowrap;
}
.home-plan-row-error .home-plan-when { color: #ef4444; }
.home-plan-arrow { color: #cbd5e1; transition: color 0.15s, transform 0.15s; }
.home-plan-row:hover .home-plan-arrow { color: #0d6efd; transform: translateX(3px); }
.home-plan-empty {
    font-size: 0.88rem; color: #94a3b8;
    padding: 0.4rem 0.1rem;
}

/* The left column: what is running, then what is planned. */
.home-active-col { display: flex; flex-direction: column; gap: 0.85rem; }
.home-active-col > .home-active-panel { margin-bottom: 0; }

/* ── Home: snelkoppelingen ───────────────────────────────────────────
   These views existed but were reachable only from the avatar menu. */
.home-quick { margin-top: 0.25rem; }
.home-quick-label {
    display: block;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
    text-transform: uppercase; color: #94a3b8;
    margin-bottom: 0.5rem;
}
.home-quick-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem;
}
.home-quick-tile {
    display: flex; flex-direction: column; gap: 0.15rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 0.85rem 0.95rem;
    text-align: left; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.home-quick-tile:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}
.home-quick-tile > .bi { font-size: 1.15rem; color: #0d6efd; margin-bottom: 0.2rem; }
.home-quick-name { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.home-quick-hint { font-size: 0.76rem; color: #94a3b8; }
.home-quick-hint-warn { color: #f59e0b; }
.home-active-empty-hint { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: #cbd5e1; }

/* ── Merged Deploy view ─────────────────────────────────── */
.deploy-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: #334155;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.deploy-selection-info i { color: #475569; }
.deploy-selection-note { font-size: 0.78rem; color: #94a3b8; font-weight: 500; }
/* Production in the selection: red, above the steps, with the way to the list. */
.deploy-prod-warn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin: -0.4rem 0 1rem;
    font-size: 0.86rem;
    color: #991b1b;
}
.deploy-prod-warn > i { font-size: 1rem; }
.deploy-prod-warn .btn-text-muted { margin-left: auto; color: #991b1b; }
.deploy-target-breakdown strong { color: #334155; }
.deploy-plan-breakdown { color: #64748b; font-weight: 500; margin-left: 0.25rem; }
.deploy-flow {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.deploy-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.deploy-step-run { border-left: 5px solid #0d6efd; }
.deploy-step-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.deploy-step-num {
    width: 24px; height: 24px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.deploy-step-num-plain { background: #64748b; font-size: 0.75rem; }
.deploy-step-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.deploy-step-hint { margin-left: auto; font-size: 0.76rem; color: #94a3b8; }
.deploy-step-body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Step 1: one row per half — checkbox, name, version picker, drill-down link */
.deploy-pick {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.55rem 0.7rem;
    transition: opacity 0.15s, background 0.15s;
}
.deploy-pick-off { opacity: 0.5; background: #fff; }
.deploy-pick-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 150px;
    margin: 0;
}
.deploy-pick-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem;
}
.deploy-pick-name { font-size: 0.92rem; font-weight: 600; color: #1e293b; }
.deploy-pick-select { flex: 1 1 240px; min-width: 200px; margin: 0; }
.deploy-pick-link {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.deploy-pick-link:hover { background: #fff; border-color: #0d6efd; color: #0d6efd; }

/* Step 2: label/value rows */
.deploy-target {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
@media (max-width: 720px) { .deploy-target { flex-direction: column; gap: 0.3rem; } }
.deploy-target-label {
    flex: 0 0 150px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 0.25rem;
}
.deploy-target-value { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.deploy-target-note { margin: 0; font-size: 0.78rem; color: #64748b; }
.deploy-tagmode { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.deploy-tagpicker {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.deploy-tagpicker-head { display: flex; align-items: center; gap: 0.4rem; }
.deploy-retry-row { flex-direction: row; align-items: center; gap: 0.5rem; }
.deploy-adv-toggle {
    align-self: flex-start;
    background: transparent;
    border: none;
    padding: 0.2rem 0;
    font-size: 0.82rem;
    color: #0d6efd;
    cursor: pointer;
}
.deploy-adv {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.7rem;
}

/* Step 3: what will fire, then the single button */
.deploy-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.deploy-plan li { font-size: 0.86rem; color: #334155; }
.deploy-plan li i { color: #16a34a; }
.deploy-run-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.deploy-run-actions .btn-deploy-all { flex: 1 1 260px; justify-content: center; }
.deploy-run-extra { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.deploy-run-extra-label { font-size: 0.78rem; color: #94a3b8; }
.deploy-run-extra-btn { font-size: 0.8rem; padding: 0.35rem 0.7rem; }

.deploy-lane-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.deploy-stat-chip {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
}
.deploy-stat-chip.chip-pending  { background: #f8fafc; color: #64748b; }
.deploy-stat-chip.chip-approval { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.deploy-stat-chip.chip-running  { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.deploy-stat-chip.chip-success  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.deploy-stat-chip.chip-failed   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.deploy-stat-chip.chip-stages   { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.deploy-stat-chip.chip-tags     { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.deploy-lane-empty {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.deploy-lane-warn {
    font-size: 0.82rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    color: #92400e;
}
.deploy-lane-warn a { color: #b45309; font-weight: 500; }
.deploy-lane-action-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.deploy-lane-action-secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #0d6efd;
    color: #0d6efd;
}
.deploy-lane-runs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
}
.deploy-lane-run { display: flex; align-items: center; gap: 0.35rem; }
.deploy-lane-run-name { color: #1e293b; font-weight: 500; }
.deploy-lane-run-clickable {
    cursor: pointer; border-radius: 5px; padding: 3px 6px;
    transition: background 0.15s;
}
.deploy-lane-run-clickable:hover { background: #f1f5f9; }

/* Quick-switch chips on Deploy Customers detail view */
.active-deploys-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 0.45rem 0.7rem; margin-bottom: 0.75rem;
    font-size: 0.82rem;
}
.active-deploys-label { color: #475569; font-weight: 600; }
.active-deploys-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: #fff; border: 1px solid #cbd5e1; border-radius: 999px;
    padding: 3px 10px; font-size: 0.78rem; color: #334155;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.active-deploys-chip:hover { border-color: #0d6efd; color: #0d6efd; }
.active-deploys-chip.is-current {
    background: #eff6ff; border-color: #0d6efd; color: #1e40af; font-weight: 600;
}
.active-deploys-count {
    background: #f1f5f9; color: #475569;
    border-radius: 999px; padding: 0 6px;
    font-size: 0.7rem; font-weight: 600;
}
.active-deploys-chip.is-current .active-deploys-count {
    background: #0d6efd; color: #fff;
}

.btn-deploy-all {
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn-deploy-all:hover:not(:disabled) { background: #0a58ca; }
.btn-deploy-all:disabled { background: #cbd5e1; cursor: not-allowed; }

.action-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  user-select: none;
}

.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,120,212,0.1);
  transform: translateY(-2px);
}

.action-card.coming-soon {
  opacity: 0.6;
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.action-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.action-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.action-card-footer {
  margin-top: 0.5rem;
}

.action-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  white-space: nowrap;
}

.action-badge.ready { background: #dcfce7; color: #15803d; }
.action-badge.soon  { background: #fef3c7; color: #92400e; }

.deploy-nav-error-full { grid-column: 1 / -1; }
.deploy-nav-error {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 0.83rem;
  color: #b91c1c;
}

.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter-from, .fade-leave-to       { opacity: 0; }

/* ── View header (for sub-views) ─────────────────────────── */
.view-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.view-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-header-title h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.view-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.btn-back {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.825rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-back:hover {
  border-color: #94a3b8;
  color: var(--text-primary);
}

/* ── Beheer tabs ─────────────────────────────────────────── */
.beheer-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.beheer-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.beheer-tab:hover { color: var(--text-primary); }

.beheer-tab.active {
  color: #0078d4;
  border-bottom-color: #0078d4;
}

.beheer-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
}

.beheer-tab.active .beheer-tab-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.beheer-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
}

/* ── Acties tab grid ─────────────────────────────────────── */
.acties-tab { padding-bottom: 1.5rem; }

.acties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.actie-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.actie-card-tenants {
  grid-column: 1 / -1;
}

.actie-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.actie-card-body {
  padding: 1rem;
}

.actie-card-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  font-size: 0.8rem;
  font-family: monospace;
  resize: vertical;
  color: var(--text-primary);
}

.actie-card-body textarea:focus {
  outline: none;
  border-color: #0078d4;
}

/* ── Table toolbar ───────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  color: var(--text-muted);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  width: 100%;
  color: var(--text-primary);
  background: transparent;
}

.env-filter-group {
  display: flex;
  gap: 0.35rem;
}

.env-filter-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}

.env-filter-btn.active, .env-filter-btn:hover { background: #f1f5f9; color: var(--text-primary); border-color: #94a3b8; }
.env-filter-btn.test.active  { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.env-filter-btn.acc.active   { background: #fefce8; color: #854d0e; border-color: #fde047; }
.env-filter-btn.prod.active  { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.env-filter-btn.pick.active  { background: #f0fdfa; color: #0f766e; border-color: #5eead4; }
.env-filter-btn:disabled,
.env-filter-btn:disabled:hover {
  background: white;
  color: var(--text-muted);
  border-color: var(--border);
  opacity: 0.5;
  cursor: not-allowed;
}

.connector-filter-select {
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  max-width: 220px;
}
.connector-filter-select:focus { border-color: var(--primary); }

.result-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Data table ──────────────────────────────────────────── */
.data-table-wrap {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.data-table thead th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #fafafa; }
/* An unselected row steps back by weight, not by fading its content out of reach: the
   checkbox in front of it already says whether it is selected. The tenant name used to go
   to #cbd5e1, which is 1.6:1 on white — the name you read and copy was the one you could
   not see. */
.data-table tbody tr.row-inactive .cell-customer { color: #64748b; font-weight: 400; }

.data-table td {
  padding: 0.65rem 1rem;
  vertical-align: middle;
}

.cell-customer { font-weight: 600; vertical-align: top; }

.customer-name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.customer-alias {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 0.15rem;
}

.alias-edit-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.alias-edit-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0.25rem 0.4rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  background: #f8fafc;
}
.alias-edit-row input:focus { outline: none; border-color: #0078d4; background: #fff; }
/* Tenant names and psd1 paths: lowercase monospace at a small size needs the contrast. */
.cell-mono     { font-family: 'Consolas', monospace; font-size: 0.8rem; color: #475569; }
.cell-small    { font-size: 0.78rem; color: var(--text-muted); }
.cell-center   { text-align: center; }
.cell-suite    { white-space: nowrap; }

.env-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.env-tag.env-test    { background: #eff6ff; color: #1d4ed8; }
.env-tag.env-acc     { background: #fefce8; color: #854d0e; }
.env-tag.env-prod    { background: #f0fdf4; color: #15803d; }
.env-tag.env-staging { background: #f5f3ff; color: #6d28d9; }

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.active   { background: #dcfce7; color: #15803d; }
.status-pill.inactive { background: #f1f5f9; color: #94a3b8; }

/* ── Selecteren met een vinkje ────────────────────────────────────────
   Replaces a Status column plus a Selecteer/Deselecteer button. The row
   already dims when it is not selected; saying it three times per row is
   what made this table hard to read. */
.th-pick, .cell-pick { width: 34px; padding-right: 0; text-align: center; }
.row-pick {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.25rem; margin: -0.25rem; cursor: pointer;
}
.row-pick input {
    width: 16px; height: 16px; margin: 0; cursor: pointer;
    accent-color: #0078d4;
}
.row-pick input:focus-visible { outline: 2px solid #0078d4; outline-offset: 2px; }

/* Pencils and per-row refreshes are for the row you are working on, so they wait until you
   are on it. Keyboard focus counts as being on it. */
.data-table tbody .btn-map,
.data-table tbody .btn-runmode-refresh {
    opacity: 0;
    transition: opacity 0.12s, color 0.15s;
}
.data-table tbody tr:hover .btn-map,
.data-table tbody tr:hover .btn-runmode-refresh,
.data-table tbody tr:focus-within .btn-map,
.data-table tbody tr:focus-within .btn-runmode-refresh,
.data-table tbody .btn-map:focus-visible,
.data-table tbody .btn-runmode-refresh:focus-visible {
    opacity: 0.8;
}
.data-table tbody .btn-map:hover,
.data-table tbody .btn-runmode-refresh:hover { opacity: 1; }
@media (hover: none) {
    /* No hover to reveal with, so keep them visible. */
    .data-table tbody .btn-map,
    .data-table tbody .btn-runmode-refresh { opacity: 0.8; }
}

/* Pushes the table-wide actions (refresh, copy, download) away from the filters. */
.toolbar-spacer { flex: 1 1 auto; min-width: 0.5rem; }

.toggle-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 68px;
}

.toggle-btn.toggle-enable  { background: #dcfce7; color: #15803d; border-color: #86efac; }
.toggle-btn.toggle-enable:hover  { background: #bbf7d0; }
.toggle-btn.toggle-disable { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.toggle-btn.toggle-disable:hover { background: #fecaca; }
.toggle-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.empty-row {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-style: normal;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--primary-dark); }

/* ── Tenants view ────────────────────────────────────────── */
.tenants-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.tenants-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tenants-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: auto;
}

.btn-download:hover { background: var(--primary-dark); }

.tenants-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tenants-preview {
  background: #0f172a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-height: 420px;
  overflow-y: auto;
}

.tenants-preview pre {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: 'Consolas', monospace;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

/* ── Coming soon ─────────────────────────────────────────── */
.coming-soon-card {
  background: white;
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  max-width: 480px;
}

.coming-soon-icon {
  font-size: 2.5rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 1rem;
}

.coming-soon-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.coming-soon-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Misc ────────────────────────────────────────────────── */
.loading-state {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
}

.error-msg {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.picker-loading {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ── Focus styles ────────────────────────────────────────── */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(0,120,212,0.2);
}

/* ── Import panel ─────────────────────────────────────────── */
.import-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.import-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    text-align: left;
}
.import-toggle:hover { background: #f8fafc; }
.import-body {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}
.import-body textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.83rem;
    resize: vertical;
    box-sizing: border-box;
    color: #1e293b;
    background: #f8fafc;
}
.import-body textarea:focus { outline: none; border-color: #0078d4; background: #fff; }
.import-actions { display: flex; gap: 0.5rem; margin-top: 0.625rem; }
.btn-import {
    padding: 0.45rem 1rem;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
}
.btn-import:hover:not(:disabled) { background: #0d5f58; }
.btn-import:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-clear {
    padding: 0.45rem 0.875rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
}
.btn-clear:hover { background: #e9ecef; }
.import-results {
    margin-top: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 220px;
    overflow-y: auto;
}
.import-result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
}
.import-result-row.matched   { background: #f0fdf4; color: #15803d; }
.import-result-row.unmatched { background: #fef2f2; color: #b91c1c; }
.import-result-line  { flex: 1; font-weight: 500; }
.import-result-note  { color: #6b7280; font-style: italic; }
.import-result-miss  { color: #b91c1c; font-style: italic; }
.btn-import-alias {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
}
.btn-import-alias:hover { background: #fee2e2; }
.import-alias-row { margin: 0 0 0.2rem 1.6rem; flex-wrap: wrap; }
.import-alias-row select {
    flex: 0 0 14rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0.25rem 0.4rem;
    font-size: 0.78rem;
    color: var(--text-primary);
    background: #f8fafc;
}

/* psd1 config link */
.psd1-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    color: #94a3b8;
    font-size: 0.78rem;
    text-decoration: none;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
}
.psd1-link:hover { color: #0078d4; opacity: 1; }

/* force-refresh button */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}
.btn-refresh:hover:not(:disabled) { background: #e2e8f0; color: #334155; }
.btn-refresh:disabled { opacity: 0.45; cursor: not-allowed; }

/* bulk select/deselect buttons */
.btn-bulk {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    color: #15803d;
    cursor: pointer;
    font-size: 0.83rem;
    transition: background 0.15s;
}
.btn-bulk:hover:not(:disabled) { background: #dcfce7; }
.btn-bulk:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-bulk.btn-bulk-off {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.btn-bulk.btn-bulk-off:hover:not(:disabled) { background: #fee2e2; }

/* manual psd1 mapping */
.btn-map {
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.15s, color 0.15s;
}
.btn-map:hover { color: #0078d4; opacity: 1; }
.mapping-input-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.mapping-input-row input {
    flex: 1;
    min-width: 180px;
    padding: 0.2rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: monospace;
}
.btn-map-save, .btn-map-cancel {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    border: 1px solid;
    cursor: pointer;
    font-size: 0.78rem;
}
.btn-map-save  { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.btn-map-save:hover:not(:disabled)  { background: #dcfce7; }
.btn-map-save:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-map-cancel { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
.btn-map-cancel:hover { background: #f1f5f9; }

/* bulk psd1 mapping panel */
.bulk-map-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    background: #fef9c3;
    color: #92400e;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.bulk-map-empty {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.85rem;
}
.bulk-map-table {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.bulk-map-header {
    display: grid;
    grid-template-columns: 1fr 6rem 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bulk-map-row {
    display: grid;
    grid-template-columns: 1fr 6rem 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    background: #f8fafc;
}
.bulk-map-row:nth-child(even) { background: #f1f5f9; }
.bulk-map-customer {
    font-size: 0.83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bulk-map-input {
    width: 100%;
    padding: 0.25rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: monospace;
    background: #fff;
}
.bulk-map-input:focus { outline: none; border-color: #0078d4; }

/* ── Customer detail modal ───────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.875rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.75rem;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}
.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.modal-close:hover { color: #334155; background: #f1f5f9; }
.modal-body {
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.detail-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.detail-placeholder {
    font-family: monospace;
    font-size: 0.85rem;
    color: #334155;
}
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}
.chip-core       { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.chip-connector  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.chip-housing    { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.chip-mail       { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.chip-telephony  { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* clickable customer name in the table */
.customer-drill {
    background: none;
    border: none;
    padding: 0;
    color: #0078d4;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s;
}
.customer-drill:hover { text-decoration-color: #0078d4; }

/* ── Deploy kanban (legacy class stubs — kept for safety) ──
   .btn-deploy-all was in this list too, which silently hid the primary Deploy button on
   the merged deploy view: the two per-lane buttons were the only way to fire anything. */
.picker-selection-hint { display: none; }
.btn-env-action        { display: none; }

/* ── Selection tag bar ───────────────────────────────────── */
.selection-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.selection-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #15803d;
    white-space: nowrap;
}
/* Amber once part of the selection is out of sight: the bar is then a warning, not a count. */
.selection-bar.selection-bar-hidden { background: #fffbeb; border-color: #fde68a; }
.selection-hidden {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}
.selection-hidden .link-btn { font-size: 0.8rem; font-weight: 600; }

/* ── Stage chips: the selection or a set of targets counted as TEST / ACC / PROD ── */
.sel-chips { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.sel-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.sel-chip.sel-test     { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.sel-chip.sel-acc      { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.sel-chip.sel-prod     { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.sel-chip.sel-internal { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }

/* ── Tag import row ──────────────────────────────────────── */
.tag-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}
.tag-input-row input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    font-family: monospace;
    background: #f8fafc;
    color: #0f172a;
}
.tag-input-row input:focus { outline: none; border-color: #0078d4; background: #fff; }
.tag-results-header {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    padding: 0.25rem 0;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tag-results-count {
    margin-left: auto;
    font-weight: 400;
    color: #94a3b8;
}

/* ── Tag split row ───────────────────────────────────────────────── */
.tag-split-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.tag-split-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.tag-split-label input[type="checkbox"] { cursor: pointer; }
.tag-split-btns {
    display: flex;
    gap: 3px;
}
.split-n-btn {
    padding: 2px 9px;
    font-size: 0.78rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
    line-height: 1.4;
}
.split-n-btn:hover  { background: #e2e8f0; }
.split-n-btn.active { background: #0f766e; color: #fff; border-color: #0f766e; }
.tag-split-preview {
    font-size: 0.78rem;
    color: #64748b;
}

/* ── Clipboard prompt ────────────────────────────────────────────── */
.clipboard-prompt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    padding: 0.45rem 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.clipboard-prompt-label {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}
.btn-copy-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-family: 'Consolas', monospace;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #0f766e;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.btn-copy-tag:hover { background: #f0fdf4; border-color: #0f766e; }

/* ── feRunMode pills ─────────────────────────────────────────────── */
.run-mode-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #475569;
}
.run-mode-pill.run-mode-full        { background: #dcfce7; color: #166534; }
.run-mode-pill.run-mode-lite        { background: #dbeafe; color: #1e40af; }
.run-mode-pill.run-mode-basic       { background: #dbeafe; color: #1e40af; }
.run-mode-pill.run-mode-restricted  { background: #fef3c7; color: #92400e; }
.run-mode-pill.run-mode-maintenance { background: #fef3c7; color: #92400e; }
.run-mode-pill.run-mode-disabled    { background: #f1f5f9; color: #94a3b8; }

.btn-runmode-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    border-radius: 3px;
    color: #94a3b8;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    vertical-align: middle;
}
.cell-suite:hover .btn-runmode-refresh { opacity: 1; }
.btn-runmode-refresh:hover             { color: #3b82f6; }

/* ── Tag manager ─────────────────────────────────────────────────── */
.tags-tab { display: flex; flex-direction: column; gap: 0.75rem; }

.tag-mgr-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    align-items: flex-start;
}
.tag-mgr-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 280px;
}
.tag-mgr-section-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    width: 100%;
}
.tag-mgr-input {
    flex: 1;
    min-width: 160px;
    padding: 0.35rem 0.6rem;
    font-size: 0.83rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
}
.tag-mgr-input-sm { max-width: 130px; flex: none; }
.tag-mgr-input:focus { outline: none; border-color: #0f766e; background: #fff; }
.tag-mgr-scope-btns { display: flex; gap: 3px; flex-wrap: wrap; }
.tmgr-scope-btn {
    padding: 3px 10px;
    font-size: 0.78rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    color: #475569;
    white-space: nowrap;
    transition: background 0.1s, border-color 0.1s;
}
.tmgr-scope-btn:hover:not(:disabled) { background: #e2e8f0; }
.tmgr-scope-btn:disabled  { opacity: 0.4; cursor: not-allowed; }
.tmgr-scope-btn.active    { background: #0f766e; color: #fff; border-color: #0f766e; }
.tmgr-scope-acc.active    { background: #854d0e; border-color: #854d0e; }
.tmgr-scope-prod.active   { background: #15803d; border-color: #15803d; }
.tmgr-all.active          { background: #0078d4; border-color: #0078d4; }
.tag-mgr-divider {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
    margin: 0 0.25rem;
}
@media (max-width: 800px) { .tag-mgr-divider { display: none; width: 100%; height: 1px; } }

/* ── Danger button ───────────────────────────────────────────────── */
.btn-danger {
    padding: 0.45rem 0.9rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Tag pills (in table rows) ───────────────────────────────────── */
.cell-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tag-pill-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-family: 'Consolas', monospace;
    color: #334155;
    white-space: nowrap;
}
.tag-pill-remove {
    display: none;
    padding: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.12s, background 0.12s;
}
.tag-pill-row:hover .tag-pill-remove { display: inline-flex; }
.tag-pill-remove:hover { color: #dc2626; background: #fee2e2; }
.btn-more-tags {
    padding: 2px 7px;
    font-size: 0.7rem;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s, border-color 0.1s;
}
.btn-more-tags:hover { background: #f1f5f9; border-color: #94a3b8; }

/* ── Tag pills (in modal) ────────────────────────────────────────── */
.modal-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill-modal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-family: 'Consolas', monospace;
    color: #1e293b;
}
.tag-pill-remove-lg {
    display: inline-flex;
    width: 18px;
    height: 18px;
    font-size: 0.78rem;
}
.tag-pill-modal .tag-pill-remove { display: inline-flex; }

/* ── Double-sites env badge ──────────────────────────────────────── */
.env-tag.env-double { background: #f5f3ff; color: #6d28d9; margin-left: 3px; font-size: 0.68rem; }

/* ── Selected row highlight ──────────────────────────────────────── */
.row-selected { background: #f0fdf4 !important; }
.btn-runmode-refresh:disabled          { opacity: 0.4; cursor: not-allowed; }

/* ── Portal deploy ───────────────────────────────────────────────── */
.portal-deploy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 860px) { .portal-deploy-layout { grid-template-columns: 1fr; } }

.portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.portal-card-head {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}
.portal-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.portal-field { display: flex; flex-direction: column; gap: 0.35rem; }
.portal-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.portal-select, .portal-input {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    width: 100%;
    box-sizing: border-box;
}
.portal-select:focus, .portal-input:focus { outline: none; border-color: #0d6efd; background: #fff; }
.portal-loading { font-size: 0.82rem; color: #64748b; }

.portal-stages { display: flex; flex-direction: column; gap: 0.3rem; }
.portal-stage-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.stage-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: 'Consolas', monospace;
    font-weight: 500;
}
.stage-acc   { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.stage-prod  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.stage-alpha { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

.portal-advanced-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.1s;
}
.portal-advanced-toggle:hover { background: #e2e8f0; }
.portal-advanced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.portal-source-btns { display: flex; gap: 4px; }
.portal-src-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    color: #475569;
    transition: background 0.1s;
}
.portal-src-btn:hover  { background: #e2e8f0; }
.portal-src-btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

.portal-radios { display: flex; flex-direction: column; gap: 0.3rem; }
.portal-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-family: 'Consolas', monospace;
    cursor: pointer;
}
.portal-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    cursor: pointer;
}
.portal-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.portal-empty {
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 0.5rem 0;
}
.portal-env-tags {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 320px;
    overflow-y: auto;
}
.portal-env-tag-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.portal-env-tag-pill {
    display: inline-block;
    padding: 3px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-family: 'Consolas', monospace;
    color: #1e40af;
}
.portal-tag-actions { display: flex; gap: 4px; margin-top: 0.25rem; }

/* Queue bar */
.portal-queue-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.portal-queue-summary { font-size: 0.82rem; color: #475569; flex: 1; }

/* ── Access state / denied ──────────────────────────────── */
.access-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #64748b;
    font-size: 0.95rem;
}
.access-denied-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 0.5rem;
}
.access-denied-icon  { font-size: 3rem; color: #7c3aed; }
.access-denied-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin: 0.5rem 0 0; }
.access-denied-desc  { color: #475569; font-size: 0.9rem; max-width: 360px; margin: 0; }
.access-denied-email { color: #94a3b8; font-size: 0.8rem; }

/* ── User management ────────────────────────────────────── */
.usermgmt-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
@media (max-width: 800px) {
    .usermgmt-layout { grid-template-columns: 1fr; }
}
.usermgmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.usermgmt-table th {
    text-align: left;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.usermgmt-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.usermgmt-table tr:last-child td { border-bottom: none; }
.usermgmt-email { color: #1e293b; font-family: 'Consolas', monospace; }
.usermgmt-you   { font-size: 0.75rem; color: #94a3b8; margin-left: 4px; font-family: inherit; }
.usermgmt-date  { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; }
.usermgmt-role-select {
    padding: 3px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
}
.usermgmt-role-select:disabled { opacity: 0.5; cursor: default; }
.usermgmt-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity .15s, background .15s;
}
.usermgmt-remove-btn:hover { opacity: 1; background: #fee2e2; }
.usermgmt-role-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.portal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}
.portal-queue-btn { font-size: 0.875rem; padding: 0.5rem 1.25rem; }

/* ── Help page ──────────────────────────────────────────── */
.help-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: start;
}
.help-intro {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}
.help-intro strong { color: #0f172a; }
.help-card-beheer-tenants {
    grid-column: 2;
    grid-row: span 3;
    align-self: stretch;
}
@media (max-width: 750px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-card-beheer-tenants { grid-column: auto; grid-row: auto; }
}
.help-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.help-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.help-card-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.help-card-body {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.65;
}
.help-card-body p { margin: 0 0 0.6rem; }
.help-card-body p:last-child { margin-bottom: 0; }
.help-list {
    margin: 0.25rem 0 0.6rem 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.help-list li { color: #475569; }
.help-list strong { color: #1e293b; }
.help-sub {
    margin-top: 0.75rem !important;
    font-weight: 600;
    color: #1e293b !important;
}
.help-note {
    margin-top: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 7px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    color: #0369a1;
}

/* ── Op versie tab ─────────────────────────────────────────── */
.version-type-btns {
    margin-bottom: 0.75rem;
}
.version-picker-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.version-picker-row .portal-select { flex: 1; min-width: 180px; }
.version-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.version-stat {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
}
.version-stat-green { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.version-stat-red   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.version-stat-gray  { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.version-stat-blue  { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── Toast notifications ───────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 360px;
}
.toast-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: all;
    animation: toast-in 0.2s ease;
}
@@keyframes toast-in {
    from { opacity: 0; transform: translateX(1rem); }
    to   { opacity: 1; transform: translateX(0); }
}
.toast-msg { flex: 1; }
.toast-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1;
}
.toast-dismiss:hover { opacity: 1; }
.toast-info    { background: #1e293b; color: #f1f5f9; }
.toast-info .toast-dismiss { color: #f1f5f9; }
.toast-success { background: #166534; color: #f0fdf4; }
.toast-success .toast-dismiss { color: #f0fdf4; }
.toast-error   { background: #991b1b; color: #fef2f2; }
.toast-error .toast-dismiss { color: #fef2f2; }
.toast-warning { background: #92400e; color: #fffbeb; }
.toast-warning .toast-dismiss { color: #fffbeb; }

/* ── Confirm dialog ────────────────────────────────────────── */
.modal-box-sm {
    max-width: 420px;
    width: 95%;
}
.confirm-message {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}
.confirm-detail {
    margin: 0.6rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
}
.confirm-warning {
    margin: 0.6rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}
.modal-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}
.btn-confirm {
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn-confirm:hover { opacity: 0.85; }
.btn-confirm-primary { background: #0078d4; color: #fff; }
.btn-confirm-danger  { background: #dc2626; color: #fff; }

/* ── Clear-filter chip (Klantenoverzicht) ───────────────────── */
.clear-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 20px;
    padding: 0.25rem 0.5rem 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}
.clear-filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1d4ed8;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1;
}
.clear-filter-btn:hover { opacity: 1; }

/* ── Detail section collapsible headers ─────────────────────── */
.detail-section-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
    padding: 0.1rem 0;
    border-radius: 4px;
}
.detail-section-head:hover .detail-section-label { color: #0078d4; }
.detail-section-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
}

/* ── Retry attempt badge (failed kanban cards) ──────────────── */
.retry-attempt-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 1px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Portal env tags timestamp ──────────────────────────────── */
.env-tags-timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* ── Portal active-run expandable rows ──────────────────────── */
.portal-run-row { transition: background 0.15s; }
.portal-run-row:hover { background: rgba(0,0,0,0.03); }
.portal-run-details {
    padding: 0.4rem 0.75rem 0.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
}
.portal-run-reason {
    font-size: 0.8rem;
    color: #64748b;
}
