.timeline {
    position: relative;
    display: flex;
}

.timeline-line {
    content: '';
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
}

.timeline-icon.bg-green {
    border-color: #198754 !important;
    background-color: #198754 !important;
    color: #fff;
}

.timeline-icon.bg-red {
    border-color: rgb(220, 53, 69) !important;
    background-color: rgb(220, 53, 69) !important;
    color: #fff;
}

.timeline-icon.bg-amber {
    border-color: rgb(255, 193, 7) !important;
    background-color: rgb(255, 193, 7) !important;
    color: rgb(52, 58, 64);
}
.timeline-icon.bg-grey {
    border-color: rgb(222, 226, 230) !important;
    background-color: rgb(222, 226, 230) !important;
    color: rgb(52, 58, 64);
}

.timeline-label {
    margin-top: 0.5rem;
}

.timeline-date {
    margin-top: 0.25rem;
}

/* Stack label under icon on desktop */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .timeline {
        flex-direction: column;
    }

    .timeline-line {
        top: 0;
        left: 1rem;
        width: 2px;
        height: 100%;
    }

    .timeline-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        width: 100%;
    }

    .timeline-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .timeline-icon {
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .timeline-label {
        text-align: left;
        font-weight: bold;
        margin: 0;
        flex-grow: 1;
    }

    .timeline-requirements {
        margin-left: auto;
        text-align: left;
    }
}



.consignment-card h5, .container-card h5 {
    text-transform: uppercase;
    background-color: rgba(33, 37, 41, 0.1);
    padding: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    font-weight: 300;
}

.consignment-image, .container-image {
    border: 1px solid rgba(33, 37, 41, 0.1);
    padding: 0.5rem;
}