@media print {
    /* --- CONFIGURAÇÃO GERAL DA PÁGINA (APLICA-SE A TUDO) --- */
    @page {
        size: A4;
        margin: 1.5cm;
        @bottom-center {
            content: "Página " counter(page) " de " counter(pages);
            font-family: Arial, sans-serif;
            font-size: 10pt;
            color: #666;
        }
    }

    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }

    /* --- LIMPEZA DE ELEMENTOS (APLICA-SE A TUDO) --- */
    .navbar, 
    .btn, 
    footer, 
    .form-inline, 
    a[href]:after, 
    hr,
    .no-print {
        display: none !important;
    }

    /* --- ESTILOS ESPECÍFICOS PARA O RELATÓRIO DA COZINHA --- */
    /* As regras abaixo só serão aplicadas dentro de um elemento com a classe .report-cozinha */

    .report-cozinha .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .report-cozinha table {
        width: 100%;
        border-collapse: collapse !important;
        table-layout: fixed;
    }

    .report-cozinha table, 
    .report-cozinha th, 
    .report-cozinha td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        vertical-align: middle !important;
        word-wrap: break-word;
    }
    
    /* Reforço de cor para sobrescrever Bootstrap (agora com escopo) */
    .report-cozinha .table-bordered,
    .report-cozinha .table-bordered th,
    .report-cozinha .table-bordered td {
        border-color: #000 !important;
    }

    .report-cozinha thead {
        display: table-header-group;
    }

    .report-cozinha .col-categoria { width: 18%; }
    .report-cozinha .col-ingrediente { width: 32%; }
    .report-cozinha .col-ingrediente-full { width: 50%; } 
    .report-cozinha .col-preparar { width: 18%; text-align: center; }
    .report-cozinha .col-anotacoes { width: 32%; }

    .report-cozinha .printable-section {
        page-break-inside: avoid;
        margin-top: 25px;
    }

    .report-cozinha h1, 
    .report-cozinha h2, 
    .report-cozinha h3, 
    .report-cozinha h4, 
    .report-cozinha h5 {
        page-break-after: avoid; 
    }
}