.traceability-timeline {
    position: relative;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.timeline-marker {
    flex-shrink: 0;
    margin-right: 1rem;
    z-index: 2;
    width: 60px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-arrow {
    position: absolute;
    left: 48px;
    top: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-item:not(.timeline-end)::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -32px;
    width: 2px;
    background: #dee2e6;
    z-index: 1;
}

.info-grid {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-grid>div {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-grid>div:last-child {
    border-bottom: none;
}

.timeline-end {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-marker {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .timeline-arrow,
    .timeline-item::before {
        display: none;
    }
}

#pre-view-map {
    height: 90vh;
    overflow: hidden;
    border-radius: 20px;
    overflow-y: auto;
}