/* Generic vertical timeline — reusable across features */

.timeline {
    --timeline-marker-size: 30px;
    --timeline-content-gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline__group {
    position: relative;
}

.timeline__group:not(:last-child) {
    margin-bottom: 1rem;
}

.timeline__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.75rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-danger);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
}

.timeline__entries {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 calc(var(--timeline-marker-size) + var(--timeline-content-gap));
}

.timeline__entries::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-marker-size) / 2);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: hsl(0, 0%, 90%);
}

.timeline__entry {
    position: relative;
    min-height: var(--timeline-marker-size);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
}

.timeline__entry:last-child {
    padding-bottom: 0;
}

.timeline__icon,
.timeline__label {
    position: absolute;
    left: calc(-1 * (var(--timeline-marker-size) + var(--timeline-content-gap)));
    top: 0;
    width: var(--timeline-marker-size);
    height: var(--timeline-marker-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.timeline__icon {
    color: #fff;
    background-color: var(--bs-success);
}

.timeline__label {
    background: transparent;
    border: none;
}

.timeline__body {
    flex: 1 1 auto;
    min-width: 0;
}

.timeline__status {
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.timeline__message {
    margin: 0.15rem 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    line-height: 1.4;
}

.timeline__time {
    flex-shrink: 0;
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    white-space: nowrap;
}
