/* GestRestoSco — Styles partages des menus et de la production */

/* Selection du modele d'impression */
.style-card,
.orientation-card {
    cursor: pointer;
    transition: border-color .15s, background .15s;
    border-color: #dee2e6 !important;
}

.style-card:hover,
.orientation-card:hover {
    border-color: #0d6efd !important;
    background: #f8f9ff;
}

.style-card.selected,
.orientation-card.selected {
    border-color: #0d6efd !important;
    background: #e7f0ff;
}

/* Formulaire de menu */
.service-dejeuner>.card-header {
    background: #0d6efd;
    color: #fff;
}

.service-diner>.card-header {
    background: #212529;
    color: #fff;
}

.service-petitdejeuner>.card-header {
    background: #ffc107;
    color: #212529;
}

.service-gouter>.card-header {
    background: #198754;
    color: #fff;
}

.composante-card .card-header {
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    text-transform: capitalize;
    font-size: 0.9rem;
}

.optimization-result-table td,
.optimization-result-table th {
    vertical-align: middle;
}

.optimization-allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}

.composante-autocomplete-list {
    position: absolute;
    z-index: 1050;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

.composante-card .card-body {
    position: relative;
}

/* Plan de production */
.production-instructions {
    white-space: pre-line;
    max-width: 32rem;
}

@media print {

    .production-summary .card,
    .production-table tr {
        break-inside: avoid;
    }

    .production-table {
        font-size: 10px;
    }

    .production-followup-form {
        display: none !important;
    }

    h1,
    h2 {
        break-after: avoid;
    }
}