/* ============================================================================
   ElectroCAD admin — parcours des comptes (21.10.2026, demande Luiz)
   Compte → Téléchargé → Installé dans AutoCAD → Activé → 1re commande.
   Utilisé par la fiche client (bandeau « Parcours ») et par l'onglet
   Télémétrie (carte « Nouveaux comptes — parcours »). Lisible sur téléphone.
   ============================================================================ */

.ec-jr {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ec-jr__step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid rgba(128, 128, 128, 0.25);
    background: rgba(128, 128, 128, 0.08);
    color: var(--ecx-text-3, #8b90a0);
    white-space: nowrap;
}
.ec-jr__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    background: rgba(128, 128, 128, 0.22);
    color: inherit;
    flex: 0 0 auto;
}
.ec-jr__step.is-ok   { color: #10b981; border-color: rgba(16, 185, 129, 0.40); background: rgba(16, 185, 129, 0.10); }
.ec-jr__step.is-ok .ec-jr__dot   { background: #10b981; color: #fff; }
.ec-jr__step.is-bad  { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.10); }
.ec-jr__step.is-bad .ec-jr__dot  { background: #ef4444; color: #fff; }
.ec-jr__step.is-todo { opacity: 0.75; }
.ec-jr__at { font-weight: 500; opacity: 0.8; }

/* fiche : étapes détaillées, une par ligne sur téléphone */
.ec-jr--detailed { margin-bottom: 10px; }
@media (max-width: 520px) {
    .ec-jr--detailed { flex-direction: column; align-items: stretch; }
    .ec-jr--detailed .ec-jr__step { justify-content: flex-start; }
    .ec-jr--detailed .ec-jr__at { margin-left: auto; }
}

.ec-jr-verdict {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ec-jr-verdict i { margin-top: 2px; }
.ec-jr-verdict.is-ok   { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.ec-jr-verdict.is-warn { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.40); }
.ec-jr-verdict.is-bad  { background: rgba(239, 68, 68, 0.12);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.40); }

/* ─── Télémétrie : entonnoir + liste ─── */
.ec-jr-funnel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    align-items: center;
    margin: 2px 0 12px;
    font-size: 0.8rem;
    color: var(--mon-text-muted, #8b90a0);
}
.ec-jr-funnel__it b { color: var(--mon-text, #E8E6E3); font-size: 0.95rem; }
.ec-jr-funnel__sep { opacity: 0.45; font-size: 0.7rem; margin: 0 2px; }

.ec-jr-list { display: flex; flex-direction: column; gap: 8px; }
.ec-jr-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) auto minmax(200px, 1.4fr);
    gap: 8px 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--mon-border, rgba(255, 255, 255, 0.08));
    cursor: pointer;
}
.ec-jr-row:hover, .ec-jr-row:focus-visible { background: rgba(128, 128, 128, 0.08); outline: none; }
.ec-jr-row__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-jr-row__who b { overflow-wrap: anywhere; }
.ec-jr-row__who .dim { font-size: 0.74rem; color: var(--mon-text-muted, #8b90a0); overflow-wrap: anywhere; }
.ec-jr-row .ec-jr__step { padding: 3px 8px 3px 3px; font-size: 0.7rem; }
.ec-jr-row__verdict { font-size: 0.8rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ec-jr-row__verdict.is-ok   { color: #10b981; }
.ec-jr-row__verdict.is-warn { color: #d97706; }
.ec-jr-row__verdict.is-bad  { color: #ef4444; }

@media (max-width: 1100px) {
    .ec-jr-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    /* pastilles : on garde les points, libellés réduits */
    .ec-jr-row .ec-jr__lbl { font-size: 0.66rem; }
    .ec-jr-row .ec-jr { gap: 4px; }
}

[data-theme="light"] .ec-jr-funnel__it b { color: #17171A; }
[data-theme="light"] .ec-jr__step.is-ok { color: #047857; }
[data-theme="light"] .ec-jr__step.is-bad { color: #b91c1c; }
[data-theme="light"] .ec-jr-verdict.is-ok, [data-theme="light"] .ec-jr-row__verdict.is-ok { color: #047857; }
[data-theme="light"] .ec-jr-verdict.is-bad, [data-theme="light"] .ec-jr-row__verdict.is-bad { color: #b91c1c; }
[data-theme="light"] .ec-jr-verdict.is-warn, [data-theme="light"] .ec-jr-row__verdict.is-warn { color: #b45309; }
