/* =====================================================================
   أنماط عامة إضافية + أنماط الطباعة
   ===================================================================== */

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* أرقام لاتينية واضحة في الجداول والمبالغ */
.num {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: embed;
}

/* شريط تمرير أنيق */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* حقول الإدخال على iOS — منع تكبير الخط */
input, select, textarea { font-size: 16px; }
@media (min-width: 640px) {
    input, select, textarea { font-size: 14px; }
}

/* =====================================================================
   الطباعة — يظهر التقرير فقط بشكل نظيف احترافي
   ===================================================================== */
@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #fff !important;
        font-size: 12px;
    }

    /* إخفاء كل عناصر الواجهة */
    .no-print, .no-print * {
        display: none !important;
    }

    #print-root {
        display: block !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    th, td {
        border: 1px solid #94a3b8 !important;
        padding: 6px 8px !important;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }

    a { text-decoration: none !important; color: inherit !important; }
}
