﻿
.timeline-body {
    display: flex;
    flex-direction: column;
}

.timeline-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: minmax(140px, 140px) 25px minmax(260px, 1fr);
    column-gap: 1.5rem;
    align-items: stretch;
    position: relative;
    padding: 0.8rem 0;
}

.timeline-left {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0.5rem;
}

.timeline-date-text {
    font-weight: 400;
    font-style: normal;
    color: #585B5B;
}

.timeline-time-highlight {
    color: #262423;
    font-weight: 500;
}

.timeline-center {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
}

.timeline-system-intimation-badge {
    border: 1px solid black;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    margin-left: 10px;
}

.timeline-line-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #838080;
}

.timeline-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: #666;
    border: 1px solid #ffffff;
}

.timeline-dot-icon {
    color: white;
    font-size: 10px;
}

.timeline-right {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.timeline-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid #838080;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
}

    .timeline-card::before {
        content: "";
        position: absolute;
        left: -24px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 2px;
        background-color: #838080;
    }

.timeline-title {
    font-weight: 400;
    margin-bottom: 0.25rem;
    font-size: 16px;
}

.timeline-description {
    font-size: 10.24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #585B5B;
}

.timeline-empty {
    text-align: center;
    font-size: 0.9rem;
    color: #585B5B;
    font-style: italic;
}

.timeline-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    color: #666;
    font-size: 20px;
    font-weight: 500;
}

    .timeline-loading i {
        font-size: 22px;
    }


.timeline-dot-button {
    border: none;
    padding: 0;
    cursor: pointer;
}

.timeline-dot-small {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background-color: #666;
    border: 1px solid #ffffff;
}

.timeline-row-collapsible {
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.timeline-card__green-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #288428;
}

.timeline-card__red-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E83C3C;
}

.timeline-row-collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.timeline-group-header {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-change-line {
    font-size: 0.85rem;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.timeline-change-label {
    font-weight: 600;
    margin-right: 4px;
}

.timeline-status-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .timeline-status-icon.no-space {
        width: 0;
        height: 0;
        display: inline-block;
        overflow: hidden;
    }

.timeline-change-prev {
    margin-right: 6px;
    font-size: 10.24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: line-through;
}

.timeline-change-current {
    color: #F15A31;
    font-size: 10.24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.timeline-change-label-user {
    font-size: 10.24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-right: 4px;
}

.timeline-change-current-user {
    color: #262423;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-color: var(--text-text_orange, #F15A31);
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .timeline-body {
        position: relative;
    }

        .timeline-body::before {
            content: "";
            position: absolute;
            left: 16px;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: #838080;
            z-index: 0;
        }

    .timeline-line-vertical {
        display: none;
    }

    .timeline-row {
        grid-template-columns: 32px 1fr;
        column-gap: 1rem;
        padding: 0.9rem 0;
        align-items: stretch;
        position: relative;
    }

    .timeline-center {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        height: 100%;
        z-index: 1;
    }

    .timeline-dot,
    .timeline-dot-small {
        margin-top: 0;
    }

    .timeline-left {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        text-align: left;
        margin-bottom: 0.25rem;
        display: block;
        padding-right: 0;
    }

    .timeline-right {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .timeline-card::before {
        left: -16px;
        width: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-row-collapsible {
        max-height: none;
        opacity: 1;
        margin-top: 0.9rem;
        margin-bottom: 0.9rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        transition: none;
    }

    .timeline-row-collapsed {
        display: none;
        max-height: none;
        margin: 0;
        padding: 0;
        opacity: 0;
    }
}
