/* ── Worldline design tokens ──────────────────────────────────────────── */
:root {
  --wl-mint:       #00b398;
  --wl-mint-dark:  #009980;
  --wl-mint-light: #e6f7f5;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f0f2f5;
  color: #1c1f26;
}

/* ── Primary button ───────────────────────────────────────────────────── */
.btn-primary       { background-color: var(--wl-mint); border-color: var(--wl-mint); }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--wl-mint-dark); border-color: var(--wl-mint-dark); }

/* ── Nav pills ────────────────────────────────────────────────────────── */
.nav-pills .nav-link                    { color: #495057; font-weight: 500; }
.nav-pills .nav-link:hover:not(.active) { background-color: var(--wl-mint-light); color: var(--wl-mint); }
.nav-pills .nav-link.active             { background-color: var(--wl-mint); }

/* ── Entity toggle badges ─────────────────────────────────────────────── */
.entity-cb:checked + label {
  background-color: var(--wl-mint-light) !important;
  border-color:     var(--wl-mint) !important;
  color:            var(--wl-mint) !important;
}

/* ── Stepper container ────────────────────────────────────────────────── */
.step-panel       { border-left: 3px solid #dee2e6; margin-left: 15px; padding-left: 28px; padding-bottom: 8px; }
.step-panel.active{ border-left-color: var(--wl-mint); }
.step-panel.done  { border-left-color: var(--wl-mint); }

/* ── Step header row ──────────────────────────────────────────────────── */
.step-header { display: flex; align-items: center; gap: 12px; padding: 12px 0; }

/* ── Step number bubble ───────────────────────────────────────────────── */
.step-number {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
  border: 2px solid #dee2e6; color: #6c757d; background: #fff;
  flex-shrink: 0;
  /* Pull the bubble to sit on the left border line */
  position: relative; left: -44px; margin-right: -32px;
}
.step-panel.active .step-number { border-color: var(--wl-mint); color: var(--wl-mint); background: var(--wl-mint-light); }
.step-panel.done   .step-number { border-color: var(--wl-mint); color: #fff;           background: var(--wl-mint); }

/* ── Step title & edit link ───────────────────────────────────────────── */
.step-title { font-weight: 600; font-size: .95rem; }
.step-edit  { font-size: .8rem; color: var(--wl-mint); cursor: pointer; margin-left: 8px; }
.step-edit:hover { text-decoration: underline; }

/* ── Step body (collapsible) ──────────────────────────────────────────── */
.step-body           { padding-bottom: 16px; }
.step-body.collapsed { display: none; }

/* ── Step summary (shown when step is done) ───────────────────────────── */
.step-summary       { font-size: .82rem; color: #6c757d; padding-bottom: 12px; }
.step-summary.d-none{ display: none; }

/* ── Section labels ───────────────────────────────────────────────────── */
.section-label {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #6c757d;
}

/* ── Focus rings ──────────────────────────────────────────────────────── */
textarea:focus,
select:focus,
input[type="file"]:focus {
  border-color: var(--wl-mint);
  box-shadow: 0 0 0 .25rem rgba(0, 179, 152, .2);
}

/* ── Reversible warning banner ────────────────────────────────────────── */
#reversible-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
}

/* ── Re-identify card accent ─────────────────────────────────────────── */
.reid-card-accent {
  border-top: 3px solid #6c757d !important;
}

/* ── Restore button ───────────────────────────────────────────────────── */
#btn-reid-submit:hover:not(:disabled) {
  background-color: #495057 !important;
  border-color: #495057 !important;
}

