/* GestRestoSco — Styles partages du module HACCP */

/* Frise de tracabilite d'un lot */
.timeline {
    position: relative;
    padding: 20px 0 0 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #dee2e6;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
}

.timeline-item:nth-child(1) .timeline-marker {
    background-color: #0d6efd;
}

.timeline-item:nth-child(2) .timeline-marker {
    background-color: #198754;
}

.timeline-item:nth-child(3) .timeline-marker {
    background-color: #ffc107;
}

.timeline-item:nth-child(4) .timeline-marker {
    background-color: #dc3545;
}

@media print {

    .no-print,
    form,
    .btn,
    nav,
    aside {
        display: none !important;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* Les fenetres modales ne doivent pas apparaitre sur un document imprime. */
@media print {
    .modal {
        display: none !important;
    }
}