/* ==================================
   ملف: organization-print.css
   الوصف: تنسيقات خاصة لطباعة تقرير 
   ================================== */

@media print {
    
    /* 1. إخفاء كل شيء لا نريده في التقرير */
    .sidebar, 
    .page-header, 
    .tabs-header, 
    form, 
    .assignment-section, 
    .action-btn, 
    button,
    #stockManagementArea { /* إخفاء قسم مخزون المدرسة المحدد حالياً */
        display: none !important;
    }

    /* 2. إظهار المحتوى الرئيسي فقط */
    .main-content {
        margin-right: 0;
        width: 100%;
        padding: 0;
    }
    
    .content-wrapper, .tabs-content {
        padding: 0;
        border: none;
    }
    
    /* 3. إجبار جميع التبويبات (الأقسام) على الظهور */
    .tab-pane {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100%;
    }

    /* 4. إضافة عناوين لكل "صفحة" */
    #regions::before { 
        content: 'تقرير: المناطق التعليمية وكوادرها'; 
        font-size: 22px; 
        font-weight: bold; 
        display: block;
        margin-bottom: 15px;
    }
    #schools::before { 
        content: 'تقرير: المدارس'; 
        font-size: 22px; 
        font-weight: bold; 
        display: block;
        margin-bottom: 15px;
    }
    #roles::before { 
        content: 'تقرير: مناصب الكادر المدرسي والكوادر المعينة'; 
        font-size: 22px; 
        font-weight: bold; 
        display: block;
        margin-bottom: 15px;
    }
    #fees::before { 
        content: 'تقرير: قائمة التجهيزات الرئيسية'; 
        font-size: 22px; 
        font-weight: bold; 
        display: block;
        margin-bottom: 15px;
    }

    /* 5. إضافة فواصل صفحات (Page Breaks) */
    #schools, #roles, #fees {
        page-break-before: always;
    }
    
    /* 6. تحسين شكل الجداول للطباعة */
    .table-container {
        margin-top: 10px;
    }
    .data-table {
        width: 100%;
        border-collapse: collapse;
    }
    .data-table th, .data-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: right;
    }
    .data-table th {
        background-color: #f4f4f4;
    }
    
    /* 7. إخفاء أعمدة الإجراءات غير اللازمة في الطباعة */
    .data-table th:last-child,
    .data-table td:last-child {
        display: none;
    }
}