﻿.job-timeline {
    position: relative;
    padding-left: 0;
}

    .job-timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: #d1d5db;
        border-radius: 1px;
    }

    .job-timeline.job-timeline--nested {
        margin-top: 12px;
        padding-left: 18px;
    }

        .job-timeline.job-timeline--nested::before {
            left: 33px;
            background: #e5e7eb;
        }

        .job-timeline.job-timeline--nested .job-timeline-item {
            padding: 8px 0;
        }

.job-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.job-avatar {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #fff;
}

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

.job-nested-thread {
    margin-top: 14px;
}

.job-nested-comment {
    border: 0;
    border-radius: 8px;
    margin-right: 0;
    padding: 10px 0 10px 12px;
}

.job-nested-comment__top {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.job-nested-comment__title {
    font-size: 14px;
    line-height: 1.25;
    min-width: 0;
}

.job-nested-comment__meta {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.job-nested-comment__attachments {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

    .job-nested-comment__attachments .btn {
        padding: 2px 8px;
        font-size: 12px;
    }

.job-nested-comment__body {
    margin-top: 6px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.job-nested-comment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

    .job-nested-comment__actions .btn {
        padding: 2px 8px;
    }

.job-nested-comment__aware-button {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.job-nested-comment--level-1 {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.job-nested-comment--level-2 {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.job-nested-comment--level-3 {
    background: #fff7ed;
    border-color: #fed7aa;
}

.job-nested-comment--level-4 {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.job-nested-comment--level-5 {
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.job-avatar--purple {
    background: #7c3aed;
}

.job-avatar--green {
    background: #16a34a;
}

.job-avatar--orange {
    background: #ea580c;
}

.job-avatar--blue {
    background: #2563eb;
}

.job-avatar--pink {
    background: #db2777;
}

/* ===== Executor Cards Grid (PreviewMode) ===== */
.exec-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.exec-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 9px 11px;
    min-width: 0;
}

.exec-card .exec-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.exec-card .exec-info {
    min-width: 0;
    flex: 1;
}

.exec-card .exec-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    color: #1f2937;
}

.exec-cards-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    min-height: 50px;
    padding: 9px 11px;
}

.exec-av-1 { background: oklch(0.82 0.06 250); color: oklch(0.32 0.08 250); }
.exec-av-2 { background: oklch(0.82 0.06 150); color: oklch(0.32 0.08 150); }
.exec-av-3 { background: oklch(0.82 0.06 50);  color: oklch(0.32 0.08 50);  }
.exec-av-4 { background: oklch(0.82 0.06 320); color: oklch(0.32 0.08 320); }
.exec-av-5 { background: oklch(0.82 0.06 20);  color: oklch(0.32 0.08 20);  }

.exec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.exec-dot--seen   { background: #16a34a; }
.exec-dot--unseen { background: #ef4444; }

.exec-card--seen {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.exec-card--unseen {
    border-color: #fecaca;
    background: #fef2f2;
}

.exec-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #667085;
}

.exec-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 575.98px) {
    .job-timeline.job-timeline--nested {
        padding-left: 10px;
    }

        .job-timeline.job-timeline--nested::before {
            left: 25px;
        }

    .job-timeline-item {
        gap: 8px;
    }

    .job-nested-comment__top {
        display: block;
    }

    .job-nested-comment__attachments {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .job-nested-comment {
        padding: 8px 0 8px 10px;
    }
}
