/* ═══════════════════════════════════════════════════════════════════
   fs-shell-x.css — شكل الهيكل المشترك (2026-12-03 ، طلب المالك «إبهار كبير»)
   ▸ الشكلين اتعرضوا على المالك كصور واختار:
       (أ) «إطار الهوية» = الافتراضى: الهيدر والمنيو إطار غامق واحد بلون الثيم ، والشغل جوه لوحة فاتحة مدوّرة
       (ب) «زجاج فاتح»  = اختيار: الهيدر والمنيو لوحات بيضا عايمة على خلفية فاتحة
   ▸ الكلاس على <html>: fsx + fsx-a أو fsx-b — بيتحط من fsShell فى App.razor قبل رسم الصفحة،
     والاختيار بيتحفظ على الجهاز (localStorage: fsUiShell) من قايمة الألوان فى الهيدر.
   ▸ الرجوع للشكل القديم: شيل سطر الملف ده من App.razor (أو شيل الكلاس fsx).
   ▸ الألوان كلها من متغيرات الثيم (fs-theme.css) علشان البرتقالى يشتغل كمان.
   ═══════════════════════════════════════════════════════════════════ */

/* ── الخطوط (نفس ملفات العلامة اللى صفحة الدخول بتستخدمها) ── */
@font-face { font-family: 'Alexandria'; font-weight: 500 800; font-display: swap; src: url('../fonts/brand/Alexandria-var-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Alexandria'; font-weight: 500 800; font-display: swap; src: url('../fonts/brand/Alexandria-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-600-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/brand/IBMPlexSansArabic-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

/* ═════ 1) المشترك بين الشكلين ═════ */
/* الخط: Plex للكلام ، Alexandria للعناوين والأرقام الكبيرة. الأيقونات (ti / fa) مش متأثرة لأنها بتحدد خطها بنفسها */
html.fsx body, html.fsx button, html.fsx input, html.fsx select, html.fsx textarea,
html.fsx .dxbl-grid, html.fsx .dxbl-text-edit-input, html.fsx .dropdown-menu {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif !important;
}
html.fsx .fs-kpi-v, html.fsx .rpt-title, html.fsx .page-title h4, html.fsx .mg-title, html.fsx .mg-kv, html.fsx .dbx-hello,
html.fsx h1, html.fsx h2, html.fsx h3 {
  font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif !important; letter-spacing: 0;
}

/* الكروت: حواف أنعم وضل ناعم ، والكارت الرئيسى متدرّج */
html.fsx .fs-kpi { border-radius: 18px !important; box-shadow: 0 16px 34px -26px rgba(var(--fs-strong-rgb), .55) !important; }
html.fsx .fs-kpi.is-hero {
  background: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--fs-primary) 75%, #fff) 0%, transparent 48%),
              linear-gradient(135deg, var(--fs-strong), var(--fs-primary)) !important;
  border: 0 !important;
}
/* الكروت مايوسعوش عن عمودهم: خط Alexandria أعرض ، فالرقم الكبير كان بيزق الكارت بره الشاشة على الموبايل (قوايم المبيعات والمشتريات) */
html.fsx .fs-kpis > .fs-kpi { min-width: 0; }
html.fsx .fs-kpi-v { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 991.98px) {
  html.fsx .rpt-page--list .fs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.fsx .rpt-page--list .fs-kpi-v { font-size: 16px !important; letter-spacing: -.3px; }
  html.fsx .rpt-page--list .fs-kpi-top { gap: 6px !important; }
  html.fsx .rpt-page--list .fs-kpi-v em { font-size: 10px !important; margin-inline-start: 3px !important; }
}
/* قايمة «القائمة» (زرار الهيدر البرتقالى) — 2026-12-03 بعد صورة وموافقة المالك «أكثر احترافية»:
   كارت أبيض ، أيقونة Tabler خطية جوه مربع فاتح بلون الهوية ، ولما الماوس يقف المربع يتملى والأيقونة تبيض.
   الأيقونات نفسها فى HeaderLayout.razor و PosHeader.razor */
html.fsx:not(#_) .link-nav .dropdown-menu.dropdown-xl { padding: 14px !important; border-radius: 20px !important; border: 1px solid #E3EEF1 !important; box-shadow: 0 24px 48px -24px rgba(var(--fs-strong-rgb), .45) !important; }
html.fsx:not(#_) .link-nav .link-item { background: #fff !important; border: 1px solid #E3EEF1 !important; border-radius: 16px !important; padding: 14px 6px 12px !important; gap: 8px !important; box-shadow: 0 1px 2px rgba(var(--fs-strong-rgb), .05) !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
html.fsx:not(#_) .link-nav .link-item .link-icon {
  width: 48px !important; height: 48px !important; border-radius: 14px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--fs-primary) 10%, #fff) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fs-primary) 18%, #fff) !important;
  transition: background .15s;
}
html.fsx:not(#_) .link-nav .link-item .link-icon i { color: var(--fs-primary-deep, var(--fs-primary)) !important; font-size: 25px !important; }
html.fsx:not(#_) .link-nav .link-item p { margin: 0 !important; font-size: 12.5px !important; font-weight: 700 !important; color: var(--fs-ink-strong, var(--fs-strong)) !important; }
html.fsx:not(#_) .link-nav .link-item:hover, html.fsx:not(#_) .link-nav .link-item:focus-visible { border-color: color-mix(in srgb, var(--fs-primary) 35%, #fff) !important; transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(var(--fs-primary-rgb), .6) !important; }
html.fsx:not(#_) .link-nav .link-item:hover .link-icon, html.fsx:not(#_) .link-nav .link-item:focus-visible .link-icon { background: linear-gradient(135deg, var(--fs-primary), var(--fs-primary-deep)) !important; }
html.fsx:not(#_) .link-nav .link-item:hover .link-icon i, html.fsx:not(#_) .link-nav .link-item:focus-visible .link-icon i { color: #fff !important; }
@media (max-width: 480px) {
  html.fsx:not(#_) .link-nav .link-item .link-icon { width: 44px !important; height: 44px !important; }
  html.fsx:not(#_) .link-nav .link-item .link-icon i { font-size: 23px !important; }
}
@media (prefers-reduced-motion: reduce) { html.fsx:not(#_) .link-nav .link-item:hover { transform: none; } }
/* شريط البحث والجدول */
html.fsx .fs-lb { border-radius: 16px !important; }
html.fsx .dxbl-grid { border-radius: 16px !important; overflow: hidden; }
/* زرار الإضافة الكهرمانى بلمعة */
html.fsx .rpt-add-btn {
  background: linear-gradient(145deg, color-mix(in srgb, var(--fs-action) 82%, #fff), var(--fs-action-deep)) !important;
  border: 0 !important; border-radius: 14px !important;
  box-shadow: 0 12px 24px -12px rgba(var(--fs-action-rgb), .85), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

/* ═════ 2) (أ) «إطار الهوية» ═════ */
html.fsx-a { --fsx-frame: linear-gradient(160deg, var(--fs-strong), color-mix(in srgb, var(--fs-strong) 72%, #000)); --fsx-sheet: #F4F8F9; }
/* الثيم البرتقالى (2026-12-03 بعد صورة وموافقة المالك): الإطار كان فحمى (#33302C) وبيبان أسود ← بنى قهوة غامق دافى.
   الإطار بس (الهيدر والمنيو) — الكلام والجداول لسه على --fs-strong. للرجوع: امسح السطر ده */
html.fsx-a[data-fs-theme="orange"] { --fsx-frame: linear-gradient(160deg, #4A2A17, #2B180D); }
html.fsx-a body { background: color-mix(in srgb, var(--fs-strong) 85%, #000) !important; }

/* الهيدر: نفس لون الإطار ، والكلام أبيض */
html.fsx-a:not(#_) .header { background: var(--fsx-frame) !important; border-bottom: 0 !important; box-shadow: none !important; }
html.fsx-a:not(#_) .header .ssd-trigger,
html.fsx-a:not(#_) .header .hdr-year-badge,
html.fsx-a:not(#_) .header .fs-jilan-btn,
html.fsx-a:not(#_) .header .lng-trigger {
  background: rgba(255,255,255,.10) !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: none !important;
}
html.fsx-a:not(#_) .header .ssd-label, html.fsx-a:not(#_) .header .ssd-caret, html.fsx-a:not(#_) .header .lng-caret { color: rgba(255,255,255,.7) !important; }
html.fsx-a:not(#_) .header .ssd-name, html.fsx-a:not(#_) .header .hdr-year-badge, html.fsx-a:not(#_) .header .hdr-year-badge *,
html.fsx-a:not(#_) .header .fs-jilan-btn, html.fsx-a:not(#_) .header .fs-jilan-btn span, html.fsx-a:not(#_) .header .lng-code { color: #fff !important; }
/* هيدر الفواتير (PosHeader): شارة السنة اسمها ph-year-badge ، كانت كتابتها غامقة على الإطار الغامق فمش باينة */
html.fsx-a:not(#_) .header .ph-year-badge {
  background: rgba(255,255,255,.10) !important; border: 1px solid rgba(255,255,255,.22) !important; color: #fff !important;
}
html.fsx-a:not(#_) .header .ph-year-badge i { color: #fff !important; }
html.fsx-a:not(#_) .header .ph-year-dot { background: color-mix(in srgb, var(--fs-action) 75%, #fff) !important; }
html.fsx-a:not(#_) .header .ph-year-badge::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent) !important; }
/* الخط الرمادى الفاتح اللى بيفصل صندوق اللوجو عن باقى الهيدر (معمول للهيدر الأبيض) — على الغامق يبقى خط أبيض خفيف */
html.fsx-a:not(#_) .header .header-left { border-color: rgba(255,255,255,.10) !important; background: transparent !important; }
/* الأيقونات المربعة (النجمة ، الجرس ، اللوحة ، الألوان ، ملء الشاشة) */
html.fsx-a:not(#_) .header .fs-hfav, html.fsx-a:not(#_) .header .fsb-btn, html.fsx-a:not(#_) .header .fs-aix,
html.fsx-a:not(#_) .header .thm-trigger, html.fsx-a:not(#_) .header a:has(> .ti-maximize), html.fsx-a:not(#_) .header .ph-fs-btn {
  background: rgba(255,255,255,.10) !important; color: #fff !important; border-radius: 12px !important;
}
html.fsx-a:not(#_) .header .fs-hfav i, html.fsx-a:not(#_) .header .fsb-btn i, html.fsx-a:not(#_) .header .thm-trigger i, html.fsx-a:not(#_) .header .ti-maximize { color: #fff !important; }
html.fsx-a:not(#_) .header .fs-aix i { color: color-mix(in srgb, var(--fs-action) 70%, #fff) !important; }
html.fsx-a:not(#_) .header .fs-hfav:hover, html.fsx-a:not(#_) .header .fsb-btn:hover, html.fsx-a:not(#_) .header .fs-aix:hover, html.fsx-a:not(#_) .header .thm-trigger:hover { background: rgba(255,255,255,.18) !important; }
/* زرار «القائمة» كهرمانى بلمعة على الغامق */
html.fsx-a:not(#_) .header .btn-primary {
  background: linear-gradient(145deg, color-mix(in srgb, var(--fs-action) 82%, #fff), var(--fs-action-deep)) !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 10px 22px -10px rgba(var(--fs-action-rgb), .9), inset 0 1px 0 rgba(255,255,255,.3) !important;
}
/* لوجو هيدر الفواتير (لونه غامق) — على كارت أبيض صغير علشان يبان */
html.fsx-a:not(#_) .header .logo img { background: #fff; border-radius: 10px; padding: 3px 8px; }
html.fsx-a:not(#_) .header .fs-avatar { background: var(--fs-action) !important; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* ── الموبيل: الهيدر بس غامق ، والصفحة فاتحة (المنيو هناك درج جانبى بشكله) ── */
@media (max-width: 991.98px) {
  html.fsx-a:not(#_) body { background: var(--fsx-sheet) !important; }
  html.fsx-a:not(#_) .header .mobile_btn, html.fsx-a:not(#_) .header .mobile-user-menu .nav-link,
  html.fsx-a:not(#_) .header .mobile-user-menu .nav-link i { color: #fff !important; }
  html.fsx-a:not(#_) .header .mobile_btn .bar-icon span { background: #fff !important; }
}

/* ── الديسكتوب: المنيو جزء من الإطار ، والصفحة لوحة فاتحة مدوّرة ── */
@media (min-width: 992px) {
  html.fsx-a:not(#_) .sidebar { background: var(--fsx-frame) !important; border: 0 !important; box-shadow: none !important; }
  html.fsx-a:not(#_) .sidebar .sidebar-logo { background: transparent !important; border: 0 !important; }
  html.fsx-a:not(#_) .sidebar .logo-small img { background: #fff; border-radius: 12px; padding: 3px; }
  html.fsx-a:not(#_) .fs-rail .fsr-sep { background: rgba(255,255,255,.16) !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn, html.fsx-a:not(#_) .fs-rail .fsr-btn span { color: #D3E8EE !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn i { color: #fff !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn { border-radius: 16px !important; border-color: transparent !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn:hover { background: rgba(255,255,255,.09) !important; }
  /* زرارين البحث والمفضلة (fsr-util) أصلهم أبيض — على الغامق يبقوا زجاج */
  html.fsx-a:not(#_) .fs-rail .fsr-util { background: rgba(255,255,255,.10) !important; border-color: rgba(255,255,255,.14) !important; box-shadow: none !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn.cur, html.fsx-a:not(#_) .fs-rail .fsr-btn.on {
    background: #fff !important; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55) !important;
  }
  html.fsx-a:not(#_) .fs-rail .fsr-btn.cur span, html.fsx-a:not(#_) .fs-rail .fsr-btn.on span { color: var(--fs-strong) !important; font-weight: 700; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn.cur i, html.fsx-a:not(#_) .fs-rail .fsr-btn.on i { color: var(--fs-primary) !important; }
  html.fsx-a:not(#_) .fs-rail .fsr-btn::before, html.fsx-a:not(#_) .fs-rail .fsr-btn::after { display: none !important; }

  /* اللوحة: المسافة اللى كانت padding تحت الهيدر بقت margin علشان الحواف المدوّرة تبان */
  html.fsx-a:not(#_) .page-wrapper {
    margin-top: 65px; padding-top: 0 !important; margin-inline-end: 12px;
    min-height: calc(100vh - 65px) !important;
    background: var(--fsx-sheet) !important;
    border-start-start-radius: 26px; border-start-end-radius: 26px;
    overflow: clip;
  }
  html.fsx-a:not(#_) .page-wrapper > .rpt-page,
  html.fsx-a:not(#_) .page-wrapper > .content { background: transparent !important; }
}

/* ═════ 2ب) (أ) جوه الشاشات — نفس روح الإطار (2026-12-03 المالك وافق على صور قبل/بعد) ═════
   الفواتير (inv-*: المبيعات والمشتريات والمرتجعات وعرض السعر والقيد وسند الإخراج والاستلام)
   والتقارير (rpt-top-bar / fs-eq / rpt-grid-card). :not(#__) الزيادة علشان تغلب ستايل DevExpress للجدول. */
/* الفواتير: الخلفية من اللوحة نفسها ، والأجزاء التلاتة كروت مدوّرة */
html.fsx-a:not(#_):not(#__) .inv-page { background: transparent !important; }
html.fsx-a:not(#_):not(#__) .inv-form,
html.fsx-a:not(#_):not(#__) .inv-grid-card,
html.fsx-a:not(#_):not(#__) .inv-footer {
  border-radius: 20px !important; border: 1px solid #E3EEF1 !important; background: #fff !important;
  box-shadow: 0 18px 38px -30px rgba(var(--fs-strong-rgb), .6) !important; overflow: hidden;
}
/* رأس الفاتورة: شريط بلون الثيم بدل الخط الرفيع ، والعنوان بخط Alexandria */
html.fsx-a:not(#_):not(#__) .inv-form-header {
  background: linear-gradient(270deg, color-mix(in srgb, var(--fs-primary) 12%, #fff), #fff 70%) !important;
  border-top: 0 !important; border-bottom: 1px solid #E8F1F3 !important; padding-inline: 14px !important;
}
/* (2026-12-03 شكوى المالك: «الهيدر بقى ضخم ، خصوصًا المسودة محفوظة على الجهاز»)
   كانت القاعدة على كل حاجة جوه الرأس (*) ← شارة المسودة والملخّص كبروا لـ 15px ، والأيقونات اتحوّلت مربعات (خط Alexandria مكان خط الأيقونات).
   دلوقتى العنوان بس هو اللى بخط Alexandria ، وبحجم 14px ، والأيقونات والشارات بخطها وحجمها الأصلى */
html.fsx-a:not(#_):not(#__) .inv-form-header .inv-form-header-title {
  font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif !important; color: var(--fs-strong) !important; font-size: 14px !important; font-weight: 700 !important;
}
html.fsx-a:not(#_):not(#__) .inv-form-header .inv-form-header-title i { color: var(--fs-primary) !important; }
/* الخانات: حواف أنعم وخلفية فاتحة */
html.fsx-a:not(#_):not(#__) .inv-form .inv-cell label { color: #5E7379 !important; font-weight: 600 !important; }
html.fsx-a:not(#_):not(#__) .inv-form .dxbl-text-edit, html.fsx-a:not(#_):not(#__) .inv-form .dxbl-combobox,
html.fsx-a:not(#_):not(#__) .inv-form .dxbl-date-edit, html.fsx-a:not(#_):not(#__) .inv-form input.form-control {
  border-radius: 12px !important; background: #F6FAFB !important; border-color: #DCE9ED !important;
}
html.fsx-a:not(#_):not(#__) .inv-footer button, html.fsx-a:not(#_):not(#__) .inv-footer .btn { border-radius: 12px !important; }
html.fsx-a:not(#_):not(#__) .inv-grid-card .dxbl-grid-table > tbody > tr > td { border-color: #EEF3F5 !important; }

/* التقارير: شريط الفلاتر والبحث والجدول كروت مدوّرة ، وشريط الأرصدة متدرّج */
html.fsx-a:not(#_):not(#__) .rpt-page.fs-rpt { background: transparent !important; }
html.fsx-a:not(#_):not(#__) .rpt-top-bar,
html.fsx-a:not(#_):not(#__) .rpt-grid-card {
  border-radius: 20px !important; border: 1px solid #E3EEF1 !important; box-shadow: 0 18px 38px -30px rgba(var(--fs-strong-rgb), .6) !important; overflow: hidden;
}
html.fsx-a:not(#_):not(#__) .rpt-top-brand, html.fsx-a:not(#_):not(#__) .rpt-top-brand * { font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif !important; color: var(--fs-strong) !important; }
html.fsx-a:not(#_):not(#__) .rpt-top-brand { font-size: 16px !important; }
html.fsx-a:not(#_):not(#__) .fs-eq {
  border-radius: 22px !important;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--fs-primary) 70%, #fff) 0%, transparent 45%), linear-gradient(135deg, var(--fs-strong), var(--fs-primary)) !important;
  box-shadow: 0 22px 40px -28px rgba(var(--fs-strong-rgb), .9) !important;
}
html.fsx-a:not(#_):not(#__) .fs-eq b, html.fsx-a:not(#_):not(#__) .fs-eq strong { font-family: 'Alexandria', sans-serif !important; }
html.fsx-a:not(#_):not(#__) .rpt-grid-card .dxbl-grid-table > tbody > tr:nth-child(even) > td { background: color-mix(in srgb, var(--fs-primary) 3%, #fff) !important; }
html.fsx-a:not(#_):not(#__) .rpt-search-btn {
  border-radius: 14px !important; border: 0 !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--fs-action) 82%, #fff), var(--fs-action-deep)) !important;
  box-shadow: 0 12px 24px -12px rgba(var(--fs-action-rgb), .85) !important;
}
/* رأس الجدول فى الفواتير والتقارير: غامق بلون الإطار وكتابة بيضا */
/* رأس أى جدول (2026-12-03 طلب المالك): فاتح زى جدول «الشركات» (fcl-tbl) بدل الغامق اللى كان تقيل على العين —
   خلفية هادية بلون الهوية ، كلام بالأزرق الغامق ، وخط سفلى 2px. على كل جداول DevExpress فى الشكلين (أ) و(ب) */
/* 3 مرات :not(#) علشان تغلب رأس القوايم الغامق فى fs-list.css (فيه :not(#_):not(#__) + 4 كلاسات) */
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid-header-row > th, html.fsx:not(#_):not(#__):not(#___) .dxbl-grid-header-row > td {
  background: var(--fs-calm-bg, #DDEFF3) !important; background-image: none !important;
  color: var(--fs-ink-strong, var(--fs-strong)) !important; font-weight: 800 !important;
  border-color: color-mix(in srgb, var(--fs-strong) 12%, #fff) !important;
  border-bottom: 2px solid var(--fs-strong, #004F63) !important; border-radius: 0 !important;
}
/* السطر المختار/المتحدد فى أى جدول (2026-12-03 طلب المالك «لون مختلف يكسر الألوان المتشابهة»):
   كان فاتح بلون الهوية زى رأس الجدول بالظبط ← بقى كهرمانى فاتح (لون الزراير --fs-action) وشريط 3px فى أول السطر */
/* (2026-12-03 المالك: «أول كليك بيفضل نفس اللون») أول كليك على صنف فى الفاتورة بيفتح السطر للتعديل
   (dxbl-grid-edit-row) ، وده كان بياخد أزرق DevExpress على الـ tr نفسه ← اتضاف هنا علشان يتلوّن من أول كليك */
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-focused-row,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-selected-row,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-edit-row,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-focused-row > td,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-selected-row > td,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-edit-row > td {
  background: color-mix(in srgb, var(--fs-action) 14%, #fff) !important;
  color: var(--fs-ink-strong, var(--fs-strong)) !important;
}
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-focused-row > td:first-child,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-selected-row > td:first-child,
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid tr.dxbl-grid-edit-row > td:first-child { box-shadow: inset -3px 0 0 var(--fs-action) !important; }
html.fsx:not(#_):not(#__):not(#___) [dir="ltr"] .dxbl-grid tr.dxbl-grid-focused-row > td:first-child,
html.fsx:not(#_):not(#__):not(#___) [dir="ltr"] .dxbl-grid tr.dxbl-grid-selected-row > td:first-child,
html.fsx:not(#_):not(#__):not(#___) [dir="ltr"] .dxbl-grid tr.dxbl-grid-edit-row > td:first-child { box-shadow: inset 3px 0 0 var(--fs-action) !important; }
html.fsx:not(#_):not(#__):not(#___) .dxbl-grid-header-row > th *:not(input) { color: var(--fs-ink-strong, var(--fs-strong)) !important; }

/* ═════ 3) (ب) «زجاج فاتح» ═════ */
html.fsx-b body {
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(var(--fs-primary-rgb), .16), transparent 60%),
    radial-gradient(800px 500px at -5% 105%, rgba(var(--fs-action-rgb), .10), transparent 60%),
    linear-gradient(180deg, #F5FAFB, #EAF3F5) fixed !important;
}
html.fsx-b:not(#_) .page-wrapper, html.fsx-b:not(#_) .main-wrapper, html.fsx-b:not(#_) .page-wrapper > .rpt-page { background: transparent !important; }
/* زرار ملء الشاشة فى هيدر الفواتير أيقونته بيضا على رمادى فاتح من قبل كده (مش باينة) — فى (ب) تاخد لون الثيم */
html.fsx-b:not(#_) .header .ph-fs-btn, html.fsx-b:not(#_) .header .ph-fs-btn i { color: var(--fs-primary) !important; }
/* هيدر الفواتير (pos-header) بيفضل زى ما هو فى (ب) */
/* (2026-12-04) الزجاج (الخلفية + التغبيش) بقى فى طبقة ::before ورا الهيدر بدل الهيدر نفسه:
   backdrop-filter على الهيدر كان بيخلّى أى حاجة position:fixed جوّاه (زى إشعار الجرس fsb-toast)
   تتحسب من الهيدر مش من الشاشة، فالإشعار كان بيطلع فوق مقصوص بدل تحت. الشكل نفسه زى ما هو. */
html.fsx-b:not(#_) .header:not(.pos-header) {
  background: transparent !important;   /* الخلفية اتنقلت للطبقة اللى ورا (::before) */
  border-bottom: 1px solid rgba(var(--fs-strong-rgb), .07) !important; box-shadow: 0 14px 34px -26px rgba(var(--fs-strong-rgb), .55) !important;
}
html.fsx-b:not(#_) .header:not(.pos-header)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;   /* طبقة بمقاس الهيدر ورا محتواه ومابتاخدش ضغطات */
  background: rgba(255,255,255,.75); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);   /* نفس لون وتغبيش الزجاج القديم */
}
html.fsx-b:not(#_) .header .btn-primary {
  background: linear-gradient(145deg, color-mix(in srgb, var(--fs-action) 82%, #fff), var(--fs-action-deep)) !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 10px 22px -10px rgba(var(--fs-action-rgb), .85) !important;
}
@media (min-width: 992px) {
  html.fsx-b:not(#_) .sidebar {
    background: rgba(255,255,255,.72) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 0 !important; box-shadow: 0 0 40px -22px rgba(var(--fs-strong-rgb), .5) !important;
  }
  html.fsx-b:not(#_) .sidebar .sidebar-logo { background: transparent !important; }
  html.fsx-b:not(#_) .fs-rail .fsr-btn { border-radius: 16px !important; border-color: transparent !important; }
  html.fsx-b:not(#_) .fs-rail .fsr-btn:hover { background: rgba(var(--fs-primary-rgb), .08) !important; }
  html.fsx-b:not(#_) .fs-rail .fsr-btn.cur, html.fsx-b:not(#_) .fs-rail .fsr-btn.on {
    background: linear-gradient(150deg, var(--fs-primary), var(--fs-strong)) !important;
    box-shadow: 0 12px 24px -12px rgba(var(--fs-strong-rgb), .8), inset 0 1px 0 rgba(255,255,255,.25) !important;
  }
  html.fsx-b:not(#_) .fs-rail .fsr-btn.cur *, html.fsx-b:not(#_) .fs-rail .fsr-btn.on * { color: #fff !important; }
  html.fsx-b:not(#_) .fs-rail .fsr-btn::before, html.fsx-b:not(#_) .fs-rail .fsr-btn::after { display: none !important; }
}
html.fsx-b:not(#_) .fs-kpi:not(.is-hero), html.fsx-b:not(#_) .fs-lb { background: rgba(255,255,255,.82) !important; border: 1px solid rgba(255,255,255,.95) !important; }

/* ═════ 4) اختيار الشكل فى قايمة الألوان (الهيدر وقايمة الموبيل) ═════ */
.thm-swatch--shell-a { background: linear-gradient(135deg, #004F63 0 50%, #F4F8F9 50% 100%); }
.thm-swatch--shell-b { background: linear-gradient(135deg, #FFFFFF 0 50%, #CFE6EC 50% 100%); }
html.fsx-a:not(#_) .thm-item--shell-a .thm-check, html.fsx-b:not(#_) .thm-item--shell-b .thm-check { visibility: visible; }
html.fsx-a:not(#_) .thm-item--shell-a, html.fsx-b:not(#_) .thm-item--shell-b { background: var(--fs-tint-2); }
.thm-menu-header + .thm-menu-header, .thm-item + .thm-menu-header { margin-top: 6px; border-top: 1px solid rgba(var(--fs-strong-rgb), .08); padding-top: 8px; }
