﻿/* KomponentTimeline */
.timeline {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

/* KomponentTimelineItem */
.timeline-item {
    display: grid;
    grid-template-columns: 160px 4rem minmax(0, 406px);
    justify-content: center;
    align-items: start;
    position: relative;
    width: 100%;
}

.timeline-item-content {
    width: 100%;
}

.timeline-item-left,
.timeline-item-right {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

    .timeline-item-right .timeline-item-content p {
        margin-top: 0 !important;
    }

.timeline-item-left {
    margin-top: 15px;
    margin-bottom: 15px;
    justify-content: flex-end;
    text-align: center;
    min-height: 2rem;
    cursor: pointer;
    border-radius: 8px;
}
.timeline-item-left--light {
    background-color: #EDF1F5;
    color: #000;
}

.timeline-item-left--red {
    background-color: #0075BF;
    color: #fff;
}
.timeline-item-right {
    margin-top: 15px;
    margin-bottom: 15px;
    justify-content: flex-start;
    background-color: #EDF1F5;
    padding: 16px 24px;
    border-radius: 8px;
}
.timeline-item-empty {
    display: block;
    padding: .75rem 1rem;
    color: #6c757d;
    font-size: .85rem;
    font-style: italic;
}
.timeline-item-axis {
    position: relative;
    align-self: stretch;
    min-height: 60px;
}

    .timeline-item-axis::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        transform: translateX(-50%);
        background: #e3e7eb;
    }

.timeline-item-dot {
    position: absolute;
    z-index: 1;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #0075BF;
    border: 0.25rem solid #fff;
    box-sizing: content-box;
}
.timeline-item-dot--small {
    width: 16px;
    height: 16px;
}

.timeline-item-dot--large {
    width: 24px;
    height: 24px;
}
.timeline-item-left--light {
    background-color: #EDF1F5;
    color: #000;
}

.timeline-item-left--red {
    background-color: #0075BF;
    color: #fff;
}

@media (max-width: 768px) {

    .timeline-item {
        display: block !important;
        min-height: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #d0d0d0;
    }

    .timeline-item-axis {
        display: none !important;
    }

    .timeline-item-left,
    .timeline-item-right {
        display: block;
        padding: 0;
        text-align: left;
    }

    .timeline-item-left {
        margin-bottom: .5rem;
    }
}
