/* ============================================
   Prestation - Workflow de suivi
   ============================================ */

/* Stepper horizontal */
.prestation-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    position: relative;
}

.prestation-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 48px;
    right: 48px;
    height: 2px;
    background: var(--neutral-stroke-rest);
    transform: translateY(-50%);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    position: relative;
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-circle.completed {
    background: #22c55e;
    color: white;
}

.step-circle.active {
    background: var(--accent-fill-rest);
    color: white;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-fill-rest) 30%, transparent);
}

.step-circle.pending {
    background: var(--neutral-stroke-rest);
    color: var(--neutral-foreground-hint);
}

.step-circle.cancelled {
    background: #9ca3af;
    color: white;
}

.step-label {
    font-size: 0.6875rem;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
    color: var(--neutral-foreground-hint);
}

.step-label.active {
    color: var(--accent-fill-rest);
    font-weight: 600;
}

.step-label.completed {
    color: #22c55e;
}

/* Timeline markers - couleurs spécifiques prestation */
.tdi-marker.bg-devis {
    background-color: #f59e0b !important;
}

.tdi-marker.bg-commande {
    background-color: #22c55e !important;
}

.tdi-marker.bg-signature {
    background-color: #8b5cf6 !important;
}

.tdi-marker.bg-relance-presta {
    background-color: #f97316 !important;
}

.tdi-marker.bg-demande-devis {
    background-color: #3b82f6 !important;
}

.tdi-marker.bg-complement {
    background-color: #14b8a6 !important;
}

.tdi-marker.bg-note-interne {
    background-color: #6b7280 !important;
}

/* Fiche prestation card */
.fiche-prestation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .fiche-prestation-grid {
        grid-template-columns: 1fr;
    }

    .prestation-stepper {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 8px;
    }

    .prestation-stepper::before {
        display: none;
    }

    .step-label {
        font-size: 0.625rem;
        max-width: 60px;
    }
}

/* Consultations badges */
.consultation-statut-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
