/* ── Vizibil doar la tiparire ─────────────────────────── */
.print-header { display: none; }

@media print {
    .sidebar, .top-row, .footer-copyright,
    .mud-appbar, .mud-toolbar, .mud-table-toolbar, .mud-table-pagination,
    .no-print, button, .mud-button, .mud-icon-button,
    .mud-input-control, .mud-select, .mud-datepicker,
    .mud-checkbox, .mud-switch, .mud-alert {
        display: none !important;
    }

    .print-header {
        display: block !important;
        margin-bottom: 16px;
        border-bottom: 2px solid #29ABE2;
        padding-bottom: 8px;
    }

    .print-header h3 { margin: 0 0 4px 0; }
    .print-header p  { margin: 2px 0; color: #666; font-size: 11px; }

    .mud-table { width: 100% !important; }

    .mud-table-head th {
        background-color: #29ABE2 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide sort indicators and column option buttons inside headers */
    .mud-table-head th button,
    .mud-table-head th svg,
    .mud-table-head th .mud-icon-button,
    .mud-table-head th .mud-button-root,
    .mud-table-head th .mud-table-sort-label,
    .mud-table-head th .mud-table-filter-button,
    .mud-datagrid-column-options { display: none !important; }

    /* Hide MudChip borders, keep text readable */
    .mud-chip { border: 1px solid #aaa !important; padding: 1px 5px; border-radius: 8px; }
    .mud-chip-color-error { background-color: #ffebee !important; color: #b71c1c !important;
                            -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mud-chip-color-warning { background-color: #fff8e1 !important; color: #e65100 !important;
                              -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    tr { page-break-inside: avoid; }

    @page { size: A4 landscape; margin: 1.5cm; }
}
