.timeline-page {
    min-height: 100vh;
    background: #eef1f7;
    padding: 28px;
}

.timeline-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 34px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.timeline-card h3 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 800;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 14px 28px;
    font-size: 13px;
    color: #3f4650;
}

.info-grid b {
    display: inline-block;
    min-width: 120px;
    font-weight: 800;
}

.info-grid span {
    margin-right: 8px;
    color: #9ca3af;
}

.info-grid .full {
    grid-column: 1 / -1;
}

.timeline-list {
    position: relative;
}

.timeline-list::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d7dde5;
}

.timeline-item,
.company-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.timeline-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 5px #e8f2ed;
}

.company-timeline-item.process .timeline-icon {
    background: #f4bd28;
}

.timeline-content,
.company-box {
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    padding: 22px 28px;
    background: #fff;
}

.timeline-top,
.company-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.timeline-top b {
    color: #0d6fe8;
    font-size: 12px;
    letter-spacing: .8px;
}

.timeline-top span {
    margin-left: 10px;
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

.badge-complete,
.mini-badge {
    min-width: 78px;
    height: 22px;
    border-radius: 4px;
    border: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-complete,
.mini-badge.green {
    background: #16a34a;
}

.mini-badge.yellow {
    background: #f4bd28;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.user-row img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.user-row h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.user-row p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #555;
}

.comment {
    margin: 18px 0 0;
    font-size: 12px;
    color: #4b5563;
}

.company-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-head strong {
    font-size: 20px;
}

.company-box h4 {
    margin: 14px 0 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f2747;
}

.company-box small,
.nested-card small {
    margin-left: 12px;
    color: #6b7280;
    font-size: 11px;
    background: #eef0f2;
    padding: 3px 8px;
    border-radius: 3px;
}

.nested-flow {
    border-top: 1px solid #e5e7eb;
    margin-top: 28px;
    padding-top: 22px;
}

.nested-card {
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.process-bg {
    background: #fffaf0;
}

.complete-bg {
    background: #e8f7ee;
}

.nested-user {
    padding: 22px 0;
    border-bottom: 1px solid #e5e7eb;
}

.nested-user:last-child {
    border-bottom: 0;
}

@media (max-width: 991px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-top,
    .company-box-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-content,
    .company-box {
        padding: 18px;
    }
}
