/* Shared Activity panel + timeline (_ActivityTimeline.cshtml) used on
   Referrals/Edit and Infants/Edit. Mirrors the referral workspace look. */

.activity-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 47, 111, 0.08);
    border-radius: 28px;
    box-shadow: 0 14px 36px rgba(47, 47, 111, 0.07);
    color: #2f2f6f;
    margin-top: 1rem;
    padding: 1.2rem 1.3rem;
}

.activity-panel-title {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.activity-panel-title h2 {
    font-size: 1.12rem;
    margin: 0;
}

.activity-panel-dot {
    background: #6d75c9;
    border-radius: 999px;
    display: inline-block;
    height: 0.62rem;
    width: 0.62rem;
}

.activity-panel-copy {
    color: #726b8e;
    font-size: 0.9rem;
    margin: 0.1rem 0 1rem;
}

.activity-timeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.activity-timeline-item {
    border-left: 2px solid rgba(109, 117, 201, 0.3);
    margin-left: 0.4rem;
    padding: 0 0 0.9rem 0.9rem;
}

.activity-timeline-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.activity-timeline-tag {
    background: rgba(109, 117, 201, 0.16);
    border-radius: 999px;
    color: #4750a6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
}

.activity-timeline-when {
    color: #726b8e;
    font-size: 0.82rem;
}

.activity-timeline-who {
    color: #726b8e;
    font-size: 0.82rem;
    font-weight: 700;
}

.activity-timeline-body {
    white-space: pre-wrap;
}

.activity-timeline-empty {
    color: #726b8e;
    font-style: italic;
    margin-top: 0.85rem;
}

.mention-host {
    position: relative;
}

.mention-token {
    background: rgba(109, 117, 201, 0.16);
    border-radius: 6px;
    color: #4750a6;
    font-weight: 700;
    padding: 0 0.2rem;
}

.mention-list {
    position: fixed;
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075);
    display: flex;
    flex-direction: column;
}

.mention-row {
    text-align: left;
    background: #fff;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    padding: 0.5rem 0.875rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.mention-row:last-of-type {
    border-bottom: none;
}

.mention-row:hover,
.mention-row.is-active {
    background: #f0f1fb;
}

.mention-empty {
    padding: 0.5rem 0.875rem;
    color: #6c757d;
    font-style: italic;
}
