/* CSS مخصوص چاپ صفحات گزارش */

@media print {
    /* مخفی کردن عناصری که در چاپ نیاز نیست */
    .no-print,
    .mud-appbar,
    .mud-drawer,
    .mud-main-content > nav,
    .mud-snackbar-container,
    .mud-overlay,
    button,
    .mud-button,
    .mud-icon-button,
    .mud-pagination {
        display: none !important;
    }

    /* layout صفحه چاپ */
    body, html {
        background: white !important;
        margin: 0;
        padding: 0;
        font-family: 'Vazirmatn', 'Tahoma', sans-serif;
        direction: rtl;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* container گزارش به اندازه کل صفحه */
    #report-print-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* پنل‌ها بدون سایه برای چاپ تمیز */
    .mud-paper {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* هدر آبی - برای چاپ سفید با حاشیه */
    .no-print-shadow {
        background: white !important;
        color: #1976d2 !important;
        border: 2px solid #1976d2 !important;
    }

    .no-print-shadow * {
        color: #1976d2 !important;
    }

    /* جدول داده‌ها */
    .mud-table, .mud-data-grid {
        font-size: 10pt !important;
    }

    .mud-table-cell, .mud-data-grid-cell {
        padding: 4px 6px !important;
        border: 1px solid #ddd !important;
    }

    .mud-table-head, .mud-data-grid-header-cell {
        background: #1976d2 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* تنظیمات صفحه */
    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    /* جلوگیری از شکستن ردیف‌ها */
    tr {
        page-break-inside: avoid;
    }

    /* رنگ‌بندی Chip ها برای چاپ */
    .mud-chip {
        border: 1px solid #999 !important;
        background: white !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
