/* =====================================================================
   Vellora — الطباعة بنفس فونت الصفحة
   نفس قواعد الخط اللي على الشاشة بالظبط (نفس الأولوية)، فأي عنصر له خط خاص
   (باركود / أيقونات / Arial في صفحة معينة) بيفضل زي ما هو. الألوان والمقاسات مش بتتلمس.
   ===================================================================== */
/* خط Cairo من جوه البرنامج بدل Google Fonts (كان طلب برة السيرفر قبل ما الصفحة تترسم في كل صفحة) */
@font-face { font-family: "Cairo"; font-weight: 300; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 300; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "VCairo"; font-weight: 400; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "VCairo"; font-weight: 400; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "VCairo"; font-weight: 600; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "VCairo"; font-weight: 600; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "VCairo"; font-weight: 700; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "VCairo"; font-weight: 700; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "VCairo"; font-weight: 800; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "VCairo"; font-weight: 800; font-display: swap; src: url("/Disttr2/fonts/cairo/cairo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

html body {
    font-family: "VCairoP", "VCairo", "Cairo", Tahoma, sans-serif;
}
/* كل الكلام في الطباعة بخط البرنامج — ماعدا الباركود والأيقونات (بيفضلوا بخطهم وشكلهم زي ما هما) */
html body :not(i):not(svg):not(svg *):not([class*="fa-"]):not([class^="fa"]):not([class*=" fa "]):not([class*="glyphicon"]):not([class*="ion-"]):not(.parcode):not(.parcode *):not([class*="barcode" i]):not([class*="barcode" i] *):not([style*="Barcode" i]):not([style*="Barcode" i] *):not([face*="Barcode" i]) {
    font-family: "VCairoP", "VCairo", "Cairo", Tahoma, sans-serif;
}

/* =====================================================================
   v11 — صفحات التقارير وعرض الأوردرات: الورقة تشيل أكبر عدد من السطور
   بيشتغل بس لما السكريبت يحط html.v-pc قبل الطباعة — ومش بيتحط أبداً في صفحات
   الباركود/البوالص/الاستيكرز (أي صفحة ليها @page أو باركود) فمقاساتها زي ما هي بالظبط
   ===================================================================== */
html.v-pc body.vz :is(.table-scroll, .table-responsive, .orders-card, .table-card) { overflow: visible !important; max-height: none !important; height: auto !important; }
html.v-pc body.vz :is(.orders-card, .table-card, .stats-card, .filters-card, .card) { padding: 0 !important; margin: 0 0 4px !important; border: 0 !important; box-shadow: none !important; }
html.v-pc body.vz table:is(.orders-table, .table, #productTable) { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
html.v-pc body.vz table:is(.orders-table, .table, #productTable) :is(th, td) { padding: 1px 3px !important; height: auto !important; }
/* الخط بيصغر في الخانات العادية بس — أي خانة فيها باركود مقاسها زي ما هو بالظبط */
html.v-pc body.vz table:is(.orders-table, .table, #productTable) :is(th, td):not(.parcode):not(:has(.parcode, [class*="barcode" i], [style*="Barcode" i], img, svg, canvas)) {
    font-size: 10.5px !important; line-height: 1.25 !important;
}
html.v-pc body.vz table:is(.orders-table, .table, #productTable) :is(th, td):not(:has(.parcode, [class*="barcode" i], [style*="Barcode" i], img, svg, canvas)) :is(span, a, label, div, b, p, small) { font-size: inherit !important; line-height: inherit !important; margin-top: 0 !important; margin-bottom: 0 !important; }
html.v-pc body.vz table:is(.orders-table, .table, #productTable) :is(th, td) br + br { display: none; }
/* الإجماليات اللي فوق الجدول: سطر أو اتنين بدل نص صفحة */
html.v-pc body.vz .stats-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important; gap: 3px !important; margin: 2px 0 4px !important; }
html.v-pc body.vz .stats-grid > .stat-card { padding: 2px 4px !important; min-height: 0 !important; gap: 4px !important; border: 1px solid #bbb !important; border-radius: 4px !important; box-shadow: none !important; }
html.v-pc body.vz .stats-grid > .stat-card .sicon { display: none !important; }
html.v-pc body.vz .stats-grid > .stat-card :is(.slabel, .sval) { font-size: 10px !important; margin: 0 !important; line-height: 1.3 !important; }
html.v-pc body.vz :is(h1, h2, h3, h4, h5, h6) { margin-top: 0 !important; margin-bottom: 2px !important; }
