/* Composant Historique des Interventions */
.intervention-history-body {
    max-height: 400px;
    overflow-y: auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #6c757d);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 3px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
}

.timeline-marker i {
    color: #007bff;
}

.timeline-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-left: 15px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #dee2e6 transparent transparent;
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #f8f9fa transparent transparent;
}

.timeline-title {
    color: #495057;
    font-weight: 600;
}

.timeline-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.9em;
}

/* Couleurs spécifiques pour différents types d'événements */
.timeline-item:has(.text-success) .timeline-marker {
    border-color: #28a745;
}

.timeline-item:has(.text-success) .timeline-marker i {
    color: #28a745;
}

.timeline-item:has(.text-warning) .timeline-marker {
    border-color: #ffc107;
}

.timeline-item:has(.text-warning) .timeline-marker i {
    color: #ffc107;
}

.timeline-item:has(.text-danger) .timeline-marker {
    border-color: #dc3545;
}

.timeline-item:has(.text-danger) .timeline-marker i {
    color: #dc3545;
}

.timeline-item:has(.text-info) .timeline-marker {
    border-color: #17a2b8;
}

.timeline-item:has(.text-info) .timeline-marker i {
    color: #17a2b8;
}

.timeline-item:has(.text-primary) .timeline-marker {
    border-color: #007bff;
}

.timeline-item:has(.text-primary) .timeline-marker i {
    color: #007bff;
}
