/* Activity timeline (lib/frontendUtilities/activityTimeline.php): the proposal Activity card and the client contract
   activity drawer. Linked on every page by includes/head.php. */

.activity-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-timeline-entry {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 0.75rem 0;
}

/* Line connecting the dots */
.activity-timeline-entry::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: -0.75rem;
    left: 7px;
    width: 2px;
    background: var(--bs-gray-200);
}

.activity-timeline-entry:last-child::before {
    display: none;
}

.activity-timeline-dot {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    border: 3px solid var(--bs-body-bg);
    border-radius: 50%;
    /* --dot-color is set inline per event type by renderActivityEntry() */
    background: var(--dot-color, var(--bs-gray-500));
    box-shadow: 0 0 0 1px var(--bs-gray-300);
}

/* Several changes in one update: one line each */
.activity-timeline-changes {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    color: var(--bs-gray-700);
    font-size: 0.875rem;
}

/* "Show change" (long text changes) and "Show N more" (older entries) */
.activity-timeline-diff,
.activity-timeline-more {
    margin-top: 0.35rem;
}

.activity-timeline-diff > summary,
.activity-timeline-more > summary {
    display: inline-block;
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.activity-timeline-diff > summary::-webkit-details-marker,
.activity-timeline-more > summary::-webkit-details-marker {
    display: none;
}

.activity-timeline-more[open] > summary {
    display: none;
}

.activity-timeline-diff > div {
    overflow-wrap: anywhere;
}
