/* =============================================================================
   Import des élus — Styles admin
   ============================================================================= */

.ccpoh-import-wrap {
  max-width: 980px;
}

/* ─── Indicateur d'étapes ────────────────────────────────────────────────────── */

.ccpoh-steps {
  display: flex;
  align-items: center;
  margin: 20px 0 24px;
  gap: 0;
}

.ccpoh-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  color: #a0a5aa;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.ccpoh-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcdcde;
  color: #a0a5aa;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.ccpoh-step.active {
  color: #1d2327;
}

.ccpoh-step.active .step-num {
  background: #2271b1;
  color: #fff;
}

.ccpoh-step.done {
  color: #00a32a;
}

.ccpoh-step.done .step-num {
  background: #00a32a;
  color: #fff;
}

.ccpoh-step-sep {
  flex: 1;
  height: 2px;
  background: #dcdcde;
  min-width: 24px;
  max-width: 60px;
}

/* ─── Carte ─────────────────────────────────────────────────────────────────── */

.ccpoh-card {
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 24px;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ccpoh-card h2 {
  margin-top: 0;
  font-size: 17px;
  border-bottom: 1px solid #f0f0f1;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ccpoh-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #50575e;
  margin-bottom: 12px;
}

/* ─── Tableau de mapping ─────────────────────────────────────────────────────── */

.ccpoh-mapping-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.ccpoh-mapping-table th {
  background: #1d2327;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.ccpoh-mapping-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f1;
  vertical-align: middle;
}

.ccpoh-mapping-table tr:hover td {
  background: #f6f7f7;
}

.mapping-select {
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  width: 100%;
  max-width: 280px;
}

/* ─── Tableau aperçu ─────────────────────────────────────────────────────────── */

.ccpoh-preview-table {
  font-size: 13px;
}

.ccpoh-preview-table th {
  background: #2271b1;
  color: #fff;
  padding: 8px 12px;
  white-space: nowrap;
}

.ccpoh-preview-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #f0f0f1;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  display: inline-block;
  background: #e8f4fd;
  color: #2271b1;
  border: 1px solid #b3d7f2;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ─── Tableau résultats ──────────────────────────────────────────────────────── */

.ccpoh-results-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f1;
  font-size: 14px;
}

.ccpoh-results-table td.num {
  font-weight: 700;
  font-size: 18px;
  text-align: right;
  width: 80px;
}

.ccpoh-errors-table th {
  background: #fce8e8;
}

.res-ok {
  color: #00a32a;
}

.res-err {
  color: #d63638;
}

/* ─── Barre de progression ───────────────────────────────────────────────────── */

.ccpoh-progress-wrapper {
  width: 100%;
  height: 14px;
  background: #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ccpoh-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2271b1, #72aee6);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* ─── Notice inline ──────────────────────────────────────────────────────────── */

.notice.inline {
  margin: 8px 0 0;
  padding: 10px 14px;
}

/* ─── Mode import labels ─────────────────────────────────────────────────────── */

#step-3 label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}

#step-3 label:hover {
  background: #f6f7f7;
}

#step-3 label input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
}
