/* ══════════════════════════════════════════════════════════════════════
   fs-voucher.css — (2026-11-30) التصميم الجديد لسند الصرف المبسط وسند القبض المبسط
   (FrmSmallCashPaymentVouche / FrmSmallCashReceipts) — التصميم اللى المالك اعتمده من الـ canvas
   ▸ كل الألوان من متغيرات الثيم (fs-theme.css) علشان الثيم البرتقالى يشتغل:
     --fs-primary (اللون الأساسى) ، --fs-strong (المساحة الغامقة: كارت المبلغ) ، --fs-action (الحفظ/التعديل)
   ▸ الديسكتوب: عمودين ، والأوامر تحت العمود الجانبى
   ▸ الجوال (≤768): ترتيب مختلف بالـ order + شريط أوامر ثابت تحت ، و«تفاصيل إضافية» مقفولة ،
     والسند المحفوظ (is-view) بيتعرض كقراية والخانات الفاضية بتستخبى
   ▸ قواعد mobile-ui-pack.css بتفرض مقاسات على كل button بـ !important — علشان كده الـ :not(#_) و !important هنا
   ══════════════════════════════════════════════════════════════════════ */

html body .sr-pg.fsv {
    --v-ink: #0B2A33;                                 /* الكلام الأساسى */
    --v-ink2: #3F5C64;                                /* العناوين الصغيرة */
    --v-mute: #5B7780;                                /* الكلام الهادى */
    --v-line: #DCE6E9;                                /* الإطارات */
    --v-field: #F7FAFB;                               /* خلفية الخانة */
    --v-bg: #F3F7F8;                                  /* خلفية الصفحة */
    --v-amt: #FFD9A8;                                 /* رقم المبلغ على الكارت الغامق */
    --v-ok: #1E7A3C; --v-ok-t: #E6F4EA;               /* أخضر: محفوظ / المتبقى يكفى */
    --v-bad: #B42318; --v-bad-t: #FDE8E4;             /* أحمر: المتبقى مايكفيش / مش آجل */
    --v-new: #A8550F; --v-new-t: #FFF1E3;             /* حالة «جديد» */
    --v-wa: #178F47;                                  /* واتساب */
    box-sizing: border-box; height: auto !important; min-height: calc(100dvh - 70px); max-height: none !important; overflow: visible !important;   /* الصفحة كلها جوه الشاشة تحت الهيدر (66) */
    display: flex; flex-direction: column; gap: 12px;
    padding: 14px 18px 18px !important; background: var(--v-bg) !important;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; color: var(--v-ink);
}
html body .fsv .fsv-grow { flex: 1 1 auto; }
html body .fsv .fsv-mob { display: none !important; }

/* ══ رأس الشاشة ══ */
html body .fsv .fsv-head { display: flex; align-items: center; gap: 12px; min-height: 48px; }
html body .fsv .fsv-head-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--fs-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
html body .fsv .fsv-head-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
html body .fsv .fsv-head-t h1 { margin: 0; font-size: 21px; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); line-height: 1.3; }
html body .fsv .fsv-head-t span { font-size: 12.5px; color: var(--v-mute); }
html body .fsv .fsv-state { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 800; white-space: nowrap; }
html body .fsv .fsv-state.st-new { background: var(--v-new-t); color: var(--v-new); }
html body .fsv .fsv-state.st-saved { background: var(--v-ok-t); color: var(--v-ok); }
html body .fsv .fsv-state.st-edit { background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); }

/* التنقل: السابق · رقم السند · التالى · بحث */
html body .fsv .fsv-pager { display: flex; align-items: stretch; height: 44px; background: #fff; border: 1px solid var(--v-line); border-radius: 12px; overflow: hidden; }
html body .fsv .fsv-pager button:not(#_) { border: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none !important; font-family: inherit; cursor: pointer; margin: 0; min-height: 0 !important; }
html body .fsv .fsv-pg-arr:not(#_) { width: 42px !important; height: 44px !important; padding: 0 !important; color: var(--fs-primary) !important; display: flex; align-items: center; justify-content: center; }
html body .fsv .fsv-pg-arr i { font-size: 20px; }
html body .fsv .fsv-pg-arr:hover { background: var(--fs-tint-1, #F2F9FA) !important; }
html body .fsv .fsv-pg-no:not(#_) { min-width: 96px; height: 44px !important; padding: 0 14px !important; border-inline: 1px solid var(--v-line) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--fs-ink-strong, var(--fs-strong)) !important; }
html body .fsv .fsv-pg-no small { font-size: 11px !important; color: var(--v-mute); line-height: 1.1; font-weight: 500; }
html body .fsv .fsv-pg-no b { font-size: 18px !important; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
html body .fsv .fsv-pg-find:not(#_) { height: 44px !important; padding: 0 14px !important; border-inline-start: 1px solid var(--v-line) !important; background: var(--fs-tint-1, #F2F9FA) !important; color: var(--fs-ink-strong, var(--fs-strong)) !important; display: flex; align-items: center; gap: 6px; font-size: 14px !important; font-weight: 700; }
html body .fsv .fsv-pg-find i { font-size: 18px; }

/* ══ الجسم ══ */
html body .fsv .fsv-body { display: flex; gap: 14px; align-items: stretch; }
@media (min-width: 769px) { html body .fsv .fsv-body { flex: 1 1 auto; } }   /* الديسكتوب: الجسم يملا الشاشة والأوامر تنزل تحت */
html body .fsv .fsv-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html body .fsv .fsv-side { width: 356px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; height: auto !important; min-height: 0 !important; position: static !important; }   /* حماية من قواعد القالب العامة */
html body .fsv .fsv-card { background: #fff; border: 1px solid var(--v-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
html body .fsv .fsv-data { flex: 1 1 auto; }
html body .fsv .fsv-h { margin: 0 !important; padding: 0 !important; line-height: 1.4 !important; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); }
html body .fsv .fsv-h i { color: var(--fs-primary); font-size: 18px; }
html body .fsv .fsv-h2 { font-size: 13px; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); }

/* الخانات */
html body .fsv .fsv-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html body .fsv .fsv-l { font-size: 13px; font-weight: 700; color: var(--v-ink2); margin: 0; }
html body .fsv .fsv-in, html body .fsv .fsv-ta { width: 100%; box-sizing: border-box; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-field); color: var(--v-ink); font-family: inherit; font-size: 14px; font-weight: 700; outline: none; transition: border-color .15s, box-shadow .15s; }
html body .fsv .fsv-in { height: 42px; padding: 0 12px; }
html body .fsv .fsv-ta { height: 64px; padding: 10px 12px; resize: none; line-height: 1.6; font-weight: 500; }
html body .fsv .fsv-in:focus, html body .fsv .fsv-ta:focus { border-color: var(--fs-primary); box-shadow: 0 0 0 3px rgba(var(--fs-primary-rgb, 0, 103, 128), .14); background: #fff; }
html body .fsv .fsv-in:disabled, html body .fsv .fsv-ta:disabled { opacity: 1; -webkit-text-fill-color: var(--v-ink); color: var(--v-ink); cursor: default; }
html body .fsv .fsv-num { font-variant-numeric: tabular-nums; }
html body .fsv .fsv-in::placeholder, html body .fsv .fsv-ta::placeholder { color: #9DB0B5; -webkit-text-fill-color: #9DB0B5; font-weight: 500; opacity: 1; }   /* المثال باهت علشان مايتلخبطش مع القيمة */
html body .fsv input[type=number].fsv-in { -moz-appearance: textfield; }
html body .fsv input[type=number].fsv-in::-webkit-inner-spin-button, html body .fsv input[type=number].fsv-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body .fsv .fsv-in-wrap { position: relative; display: flex; align-items: center; }
html body .fsv .fsv-in-wrap .fsv-in { flex: 1 1 auto; }
html body .fsv .fsv-in-ic { position: absolute; inset-inline-end: 12px; color: var(--v-mute); font-size: 16px; pointer-events: none; }
html body .fsv .fsv-in-wrap .fsv-in-ic:first-child { inset-inline-end: auto; inset-inline-start: 12px; color: var(--fs-primary); }
html body .fsv .fsv-in-wrap .fsv-in-ic:first-child + .fsv-in { padding-inline-start: 36px; }
html body .fsv .fsv-in-wrap .fsv-in-ic + .fsv-in, html body .fsv .fsv-in-wrap .fsv-in:has(+ .fsv-in-ic) { padding-inline-end: 36px; }
html body .fsv .fsv-open { position: absolute; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); font-size: 13px; font-weight: 800; text-decoration: none; }
html body .fsv .fsv-in-wrap:has(.fsv-open) .fsv-in { padding-inline-end: 76px; }
html body .fsv .fsv-tag { position: absolute; inset-inline-end: 8px; height: 24px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
html body .fsv .fsv-tag.ok { background: var(--v-ok-t); color: var(--v-ok); }
html body .fsv .fsv-tag.bad { background: var(--v-bad-t); color: var(--v-bad); }
html body .fsv .fsv-in-wrap:has(.fsv-tag) .fsv-in { padding-inline-end: 128px; }

/* محررات DevExpress (التاريخ ، مركز التكلفة ، المندوب) بنفس شكل الخانات */
html body .fsv .fsv-dx.dxbl-text-edit, html body .fsv .fsv-dx .dxbl-text-edit, html body .fsv .dxbl-text-edit.fsv-dx { height: 42px !important; min-height: 42px !important; border: 1px solid var(--v-line) !important; border-radius: 10px !important; background: var(--v-field) !important; box-shadow: none !important; }
html body .fsv .fsv-dx input { font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; color: var(--v-ink) !important; }
html body .fsv .fsv-dx .dxbl-btn { color: var(--fs-primary) !important; }

/* الشبكة: 4 أعمدة على الديسكتوب */
html body .fsv .fsv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html body .fsv .fsv-span2 { grid-column: span 2; }
html body .fsv .fsv-span4 { grid-column: 1 / -1; }
html body .fsv .fsv-link:not(#_) { justify-self: start; height: 34px !important; min-height: 0 !important; padding: 0 12px !important; border: 1px dashed var(--fs-calm-bd, #BFE0E8) !important; border-radius: 9px !important; background: transparent !important; color: var(--fs-primary) !important; font-family: inherit; font-size: 13px !important; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; box-shadow: none !important; cursor: pointer; }

/* ══ المستفيد / المودع ══ */
html body .fsv .fsv-party-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: end; }
html body .fsv .fsv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 44px; padding: 3px; gap: 3px; background: var(--fs-tint-2, #EEF7F9); border: 1px solid var(--v-line); border-radius: 11px; box-sizing: border-box; }
html body .fsv .fsv-seg button:not(#_) { height: 36px !important; min-height: 0 !important; margin: 0; padding: 0 4px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--v-ink2) !important; font-family: inherit; font-size: 14px !important; font-weight: 700; box-shadow: none !important; cursor: pointer; white-space: nowrap; }
html body .fsv .fsv-seg button.is-on:not(#_) { background: var(--fs-primary) !important; color: #fff !important; font-weight: 800; box-shadow: 0 2px 6px rgba(var(--fs-primary-rgb, 0, 103, 128), .25) !important; }
html body .fsv .fsv-seg button:disabled:not(.is-on) { opacity: .45; cursor: default; }
html body .fsv .fsv-pick { display: flex; height: 44px; border: 1px solid var(--v-line); border-radius: 11px; background: var(--v-field); overflow: hidden; }
html body .fsv .fsv-pick.is-set { border: 1.5px solid var(--fs-calm-bd, #8CC7D3); background: var(--fs-tint-1, #F2F9FA); }
html body .fsv .fsv-pick-main:not(#_) { flex: 1 1 auto; min-width: 0; height: 100% !important; min-height: 0 !important; margin: 0; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; display: flex; align-items: center; gap: 8px; font-family: inherit; text-align: start; cursor: pointer; }
html body .fsv .fsv-pick-main:disabled { cursor: default; }
html body .fsv .fsv-pick-ic { color: var(--fs-primary); font-size: 18px; flex: none; }
html body .fsv .fsv-pick-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px !important; color: #7E959C; font-weight: 500; }
html body .fsv .fsv-pick.is-set .fsv-pick-name { color: var(--v-ink); font-weight: 800; font-size: 15px !important; }
html body .fsv .fsv-pick-bal { flex: none; font-size: 12px; color: var(--v-mute); white-space: nowrap; }
html body .fsv .fsv-pick-bal b { color: var(--v-ink); font-variant-numeric: tabular-nums; }
html body .fsv .fsv-pick-add:not(#_) { width: 44px !important; height: 100% !important; min-height: 0 !important; margin: 0; padding: 0 !important; flex: none; border: 0 !important; border-inline-start: 1px solid var(--v-line) !important; border-radius: 0 !important; background: #fff !important; color: var(--fs-primary) !important; display: flex; align-items: center; justify-content: center; box-shadow: none !important; cursor: pointer; }
html body .fsv .fsv-pick-add i { font-size: 18px; }

/* ══ كارت المبلغ — العنصر المميز الوحيد ══ */
html body .fsv .fsv-amt { background: var(--fs-strong, #004F63); border-radius: 18px; padding: 16px 18px 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
html body .fsv .fsv-amt-top { display: flex; align-items: center; justify-content: space-between; }
html body .fsv .fsv-amt-top label { margin: 0; font-size: 13px; font-weight: 700; color: var(--fs-calm-muted, #CFE6EC); }
html body .fsv .fsv-cur { font-size: 12px; font-weight: 800; color: var(--fs-strong, #004F63); background: var(--fs-calm-muted, #CFE6EC); border-radius: 8px; padding: 2px 8px; }
html body .fsv .fsv-amt-row { display: flex; align-items: center; gap: 8px; }
html body .fsv .fsv-amt-v:not(#_) { height: auto !important; min-height: 0 !important; font-size: 40px !important; box-shadow: none !important; border: 0 !important; background: transparent !important; padding: 0 !important; }   /* يغلب قاعدة مقاس الـ input العامة على الجوال */
html body .fsv .fsv-amt-v { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; color: var(--v-amt); -webkit-text-fill-color: var(--v-amt); font-family: inherit; font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
html body .fsv .fsv-amt-v::placeholder { color: rgba(255, 255, 255, .35); -webkit-text-fill-color: rgba(255, 255, 255, .35); }
html body .fsv .fsv-amt-v:disabled { opacity: 1; }
html body .fsv .fsv-amt-x:not(#_) { width: 34px !important; height: 34px !important; min-height: 0 !important; flex: none; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: rgba(255, 255, 255, .12) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: none !important; cursor: pointer; }
html body .fsv .fsv-words { margin: 0; font-size: 13.5px; line-height: 1.5; color: #E3F1F4; }
html body .fsv .fsv-amt-foot { margin-top: 6px; padding-top: 8px; border-top: 1.5px dashed rgba(255, 255, 255, .3); display: flex; justify-content: space-between; font-size: 12px; color: var(--fs-calm-muted, #CFE6EC); }
html body .fsv .fsv-amt-foot b { color: #fff; font-variant-numeric: tabular-nums; }

/* ══ طريقة الدفع/التحصيل + الحساب ══ */
html body .fsv .fsv-pay { padding: 14px; gap: 10px; }
html body .fsv .fsv-methods { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
html body .fsv .fsv-methods button:not(#_) { height: 56px !important; min-height: 0 !important; margin: 0; padding: 0 2px !important; border: 1px solid var(--v-line) !important; border-radius: 11px !important; background: #fff !important; color: var(--v-ink2) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: inherit; font-size: 12.5px !important; font-weight: 700; box-shadow: none !important; cursor: pointer; }
html body .fsv .fsv-methods button i { font-size: 19px; }
html body .fsv .fsv-methods button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html body .fsv .fsv-methods button.is-on:not(#_) { background: var(--fs-primary) !important; border-color: var(--fs-primary) !important; color: #fff !important; font-weight: 800; }
html body .fsv .fsv-methods button:disabled:not(.is-on) { opacity: .45; cursor: default; }
html body .fsv .fsv-acct:not(#_) { width: 100%; height: 48px !important; min-height: 0 !important; margin: 0; padding: 0 12px !important; border: 1px solid var(--fs-calm-bd, #BFE0E8) !important; border-radius: 11px !important; background: var(--fs-tint-1, #F2F9FA) !important; display: flex; align-items: center; gap: 10px; font-family: inherit; text-align: start; box-shadow: none !important; cursor: pointer; }
html body .fsv .fsv-acct:disabled { cursor: default; }
html body .fsv .fsv-acct-ic { color: var(--fs-primary); font-size: 20px; }
html body .fsv .fsv-acct-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
html body .fsv .fsv-acct-t small { font-size: 11.5px !important; color: var(--v-mute); }
html body .fsv .fsv-acct-t b { font-size: 14.5px !important; font-weight: 800; color: var(--v-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fsv .fsv-acct.is-empty .fsv-acct-t b { color: var(--v-bad); }
html body .fsv .fsv-acct-go { color: var(--v-mute); font-size: 18px; }
html body .fsv .fsv-acct:disabled .fsv-acct-go { visibility: hidden; }

/* ══ الأوامر ══ */
html body .fsv .fsv-acts { display: flex; flex-direction: column; gap: 8px; }
html body .fsv .fsv-primary:not(#_) { width: 100%; height: 52px !important; min-height: 0 !important; margin: 0; padding: 0 14px !important; border: 0 !important; border-radius: 13px !important; background: var(--fs-action, #D97726) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-size: 17px !important; font-weight: 800; box-shadow: 0 6px 16px rgba(var(--fs-action-deep-rgb, 196, 101, 27), .25) !important; cursor: pointer; }
html body .fsv .fsv-primary i { font-size: 20px; color: #fff; }
html body .fsv .fsv-primary:hover:not(:disabled) { background: var(--fs-action-deep, #C4651B) !important; }
html body .fsv .fsv-primary:disabled { opacity: .7; cursor: progress; }
html body .fsv .fsv-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
html body .fsv .fsv-tiles .fs-om { display: flex; min-width: 0; }
html body .fsv .fsv-tile:not(#_) { width: 100%; height: 58px !important; min-height: 0 !important; margin: 0; padding: 0 4px !important; border: 1px solid var(--v-line) !important; border-radius: 12px !important; background: #fff !important; color: var(--fs-ink-strong, var(--fs-strong)) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: inherit; font-size: 13px !important; font-weight: 800; box-shadow: none !important; cursor: pointer; }
html body .fsv .fsv-tile i { font-size: 20px; }
html body .fsv .fsv-tile:hover:not(#_), html body .fsv .fsv-primary:hover:not(#_) { transform: none !important; }   /* بلاش رفعة الـ hover العامة — الصف يفضل ثابت */
html body .fsv .fsv-tile:hover { border-color: var(--fs-calm-bd, #BFE0E8) !important; background: var(--fs-tint-1, #F2F9FA) !important; }
html body .fsv .fsv-tile.t-wa:not(#_) { color: var(--v-wa) !important; }
/* سند جديد على الديسكتوب: «جديد» زرار عريض تحت الحفظ */
html body .fsv .fsv-acts.has-2 .fsv-tile:not(#_) { flex-direction: row; height: 44px !important; gap: 8px; font-size: 14px !important; }

/* ══════════ الجوال ══════════ */
@media (max-width: 768px) {
    html body .sr-pg.fsv { min-height: 0; padding: 8px 12px 104px !important; gap: 10px; }
    html body .fsv .fsv-desk { display: none !important; }
    html body .fsv .fsv-mob { display: revert !important; }

    /* الرأس: العنوان + الحالة + التنقل المختصر */
    html body .fsv .fsv-head { gap: 8px; min-height: 40px; }
    html body .fsv .fsv-head-ic, html body .fsv .fsv-head-t span { display: none; }
    html body .fsv .fsv-head-t h1 { font-size: 18px; }
    html body .fsv .fsv-state { height: 24px; padding: 0 9px; font-size: 12px; }
    html body .fsv .fsv-state i { display: none; }
    html body .fsv .fsv-pager { height: 40px; border-radius: 11px; }
    html body .fsv .fsv-pg-arr:not(#_) { width: 34px !important; height: 40px !important; }
    html body .fsv .fsv-pg-no:not(#_) { min-width: 0; height: 40px !important; padding: 0 10px !important; flex-direction: row; gap: 5px; background: var(--fs-tint-1, #F2F9FA) !important; }
    html body .fsv .fsv-pg-no small { display: none; }
    html body .fsv .fsv-pg-no b { font-size: 16px !important; }
    html body .fsv .fsv-pg-no i { font-size: 15px; }

    /* الترتيب: المبلغ ← طريقة الدفع والحساب ← المستفيد ← البيانات */
    html body .fsv .fsv-body { flex-direction: column; gap: 10px; }
    html body .fsv .fsv-main, html body .fsv .fsv-side { display: contents; }
    html body .fsv .fsv-amt { order: 1; border-radius: 16px; padding: 12px 14px; }
    html body .fsv .fsv-pay { order: 2; padding: 0; background: transparent; border: 0; }
    html body .fsv .fsv-pay > .fsv-h2 { display: none; }
    html body .fsv .fsv-party { order: 3; }
    html body .fsv .fsv-data { order: 4; }
    html body .fsv .fsv-card { padding: 12px; border-radius: 16px; gap: 10px; }
    html body .fsv .fsv-amt-v:not(#_) { font-size: 34px !important; }
    html body .fsv .fsv-words { font-size: 12.5px; }
    html body .fsv .fsv-methods button:not(#_) { height: 54px !important; }
    html body .fsv .fsv-acct:not(#_) { background: #fff !important; }

    /* المستفيد: الأزرار سطر والاسم سطر */
    html body .fsv .fsv-party > .fsv-h { display: none; }
    html body .fsv .fsv-party-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    html body .fsv .fsv-f-type > .fsv-l { display: none; }
    html body .fsv .fsv-seg { height: 42px; }
    html body .fsv .fsv-pick { height: 46px; }
    html body .fsv .fsv-pick-main:not(#_) { flex-wrap: wrap; align-content: center; row-gap: 0; }
    html body .fsv .fsv-pick-bal { width: 100%; padding-inline-start: 26px; font-size: 11.5px; line-height: 1.2; }
    html body .fsv .fsv-pick:has(.fsv-pick-bal) { height: 54px; }

    /* البيانات: خانتين فى السطر ، والتفاصيل الإضافية مقفولة */
    html body .fsv .fsv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    html body .fsv .fsv-span2, html body .fsv .fsv-span4 { grid-column: 1 / -1; }
    html body .fsv .fsv-l { font-size: 12.5px; }
    html body .fsv .fsv-data:not(.is-open) .fsv-x { display: none !important; }
    html body .fsv .fsv-more:not(#_) { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 10px; width: 100%; height: 52px !important; min-height: 0 !important; margin: 2px 0 0; padding: 0 12px !important; border: 1px solid var(--v-line) !important; border-radius: 12px !important; background: var(--fs-tint-1, #F2F9FA) !important; font-family: inherit; text-align: start; box-shadow: none !important; cursor: pointer; }
    html body .fsv .fsv-more-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
    html body .fsv .fsv-more-t b { font-size: 14.5px !important; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); }
    html body .fsv .fsv-more-t small { font-size: 11.5px !important; color: var(--v-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    html body .fsv .fsv-more i { color: var(--v-mute); font-size: 18px; }
    html body .fsv .fsv-link:not(#_) { grid-column: 1 / -1; justify-self: stretch; justify-content: center; height: 40px !important; }

    /* شريط الأوامر الثابت تحت */
    html body .fsv .fsv-acts { position: fixed; inset-inline: 0; bottom: 0; z-index: 1030; flex-direction: row; gap: 6px; padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--v-line); box-shadow: 0 -6px 18px rgba(4, 37, 45, .08); }
    html body .fsv .fsv-acts.has-2 .fsv-primary:not(#_) { flex: 1 1 auto; height: 56px !important; font-size: 18px !important; border-radius: 14px !important; }
    html body .fsv .fsv-acts.has-2 .fsv-tiles { flex: none; display: flex; }
    html body .fsv .fsv-acts.has-2 .fsv-tile:not(#_) { width: 76px; height: 56px !important; flex-direction: column; gap: 3px; font-size: 13px !important; border-radius: 14px !important; }
    /* سند محفوظ: 5 زراير متساوية (المعتمد فى الفواتير) */
    html body .fsv .fsv-acts.has-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
    html body .fsv .fsv-acts.has-5 .fsv-tiles { display: contents; }
    html body .fsv .fsv-acts.has-5 .fsv-primary:not(#_) { height: 56px !important; padding: 0 2px !important; flex-direction: column; gap: 3px; font-size: 13px !important; border-radius: 13px !important; box-shadow: none !important; }
    html body .fsv .fsv-acts.has-5 .fsv-primary .fs-kbd { display: none; }
    html body .fsv .fsv-acts.has-5 .fsv-tile:not(#_) { height: 56px !important; border-radius: 13px !important; gap: 3px; }

    /* ── السند المحفوظ يتعرض كقراية (التوصية التانية): كلام واضح من غير إطارات ، والفاضى يستخبى ── */
    html body .fsv.is-view .fsv-f.is-empty { display: none !important; }
    html body .fsv.is-view .fsv-f-type { display: none; }
    html body .fsv.is-view .fsv-in, html body .fsv.is-view .fsv-ta { height: auto; min-height: 0; padding: 0 !important; border: 0; background: transparent; font-size: 14.5px; font-weight: 800; }
    html body .fsv.is-view .fsv-ta { font-weight: 500; line-height: 1.6; field-sizing: content; }
    html body .fsv.is-view .fsv-in::placeholder, html body .fsv.is-view .fsv-ta::placeholder { color: transparent; }
    html body .fsv.is-view .fsv-in-ic { display: none; }
    html body .fsv.is-view .fsv-in-wrap .fsv-in { padding: 0 !important; }
    html body .fsv.is-view .fsv-in-wrap:has(.fsv-tag) .fsv-in, html body .fsv.is-view .fsv-in-wrap:has(.fsv-open) .fsv-in { padding-inline-end: 0 !important; }
    html body .fsv.is-view .fsv-tag, html body .fsv.is-view .fsv-open { position: static; margin-inline-start: 6px; }
    html body .fsv.is-view .fsv-dx.dxbl-text-edit, html body .fsv.is-view .dxbl-text-edit.fsv-dx { height: auto !important; min-height: 0 !important; border: 0 !important; background: transparent !important; }
    html body .fsv.is-view .fsv-dx input { padding: 0 !important; font-size: 14.5px !important; font-weight: 800 !important; }
    html body .fsv.is-view .fsv-dx .dxbl-btn, html body .fsv.is-view .fsv-dx .dxbl-edit-btn-clear { display: none !important; }
    html body .fsv.is-view .fsv-l { font-weight: 500; color: var(--v-mute); }
    html body .fsv.is-view .fsv-grid { row-gap: 12px; }
    html body .fsv.is-view .fsv-pick, html body .fsv.is-view .fsv-pick.is-set { border: 0; background: transparent; height: auto; }
    html body .fsv.is-view .fsv-pick-main:not(#_) { padding: 0 !important; }
    html body .fsv.is-view .fsv-pick-ic { display: none; }
    html body .fsv.is-view .fsv-pick-bal { padding-inline-start: 0; }
    html body .fsv.is-view .fsv-methods button:disabled:not(.is-on):not(#_) { display: none !important; }   /* الطريقة المختارة بس */
    html body .fsv.is-view .fsv-methods { display: flex; flex: none; }
    html body .fsv.is-view .fsv-methods button.is-on:not(#_) { height: 36px !important; flex-direction: row; gap: 6px; padding: 0 12px !important; border-radius: 10px !important; }
    html body .fsv.is-view .fsv-methods button.is-on i { font-size: 16px; }
    html body .fsv.is-view .fsv-pay { flex-direction: row; align-items: center; flex-wrap: wrap; }
    html body .fsv.is-view .fsv-pay { flex-wrap: nowrap; gap: 8px; }
    html body .fsv.is-view .fsv-acct-t small { white-space: nowrap; flex: none; }
    html body .fsv.is-view .fsv-acct:not(#_) { flex: 1 1 0; min-width: 0; width: auto; height: 36px !important; border: 0 !important; background: transparent !important; padding: 0 4px !important; }
    html body .fsv.is-view .fsv-acct-t { flex-direction: row; gap: 6px; align-items: baseline; }
    html body .fsv.is-view .fsv-acct-ic { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════════════════════
   (2026-11-30) سند القبض المجمع / سند الصرف المجمع (CashGroupVoucher — .fsv.fsg)
   نفس شكل السند المبسط + جدول سطور بشكل المبيعات (هيدر فاتح ، الإجماليات حمرا) ، وكروت + شيت على الجوال
   ══════════════════════════════════════════════════════════════════════ */
html body .fsg .fsg-party-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr); gap: 12px; align-items: end; }
html body .fsg .fsg-party-row.is-pay { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
html body .fsg .fsg-party-row:not(:has(.fsg-sm)):not(.is-pay) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
html body .fsg .fsg-party { padding: 14px 18px; }

/* السطور */
html body .fsg .fsg-lines { flex: 1 1 auto; padding: 0; gap: 0; overflow: hidden; min-height: 0; }
html body .fsg .fsg-lines-hd { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #EEF2F3; }
html body .fsg .fsg-lines-hd i { color: var(--fs-primary); font-size: 18px; }
html body .fsg .fsg-lines-hd h2 { margin: 0 !important; padding: 0 !important; font-size: 15px !important; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); line-height: 1.4 !important; }
html body .fsg .fsg-lines-hint { font-size: 12.5px; color: var(--v-mute); }
html body .fsg .fsg-tbl-wrap { flex: 1 1 auto; min-height: 120px; max-height: 52vh; overflow: auto; }
html body .fsg .fsg-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
html body .fsg .fsg-tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--fs-calm-bg, #DDEFF3); color: var(--fs-ink-strong, var(--fs-strong)); border-bottom: 2px solid var(--fs-strong, #004F63); padding: 9px 8px; text-align: start; font-weight: 800; white-space: nowrap; }
html body .fsg .fsg-tbl td { padding: 6px 8px; border-bottom: 1px solid #EEF2F3; vertical-align: middle; }
html body .fsg .fsg-tbl tbody tr:nth-child(even):not(.is-new) { background: var(--fs-tint-1, #F7FBFC); }
html body .fsg .fsg-tbl .c-i { width: 36px; text-align: center; color: var(--v-mute); }
html body .fsg .fsg-tbl .c-no { width: 120px; }
html body .fsg .fsg-tbl .c-name { font-weight: 800; }
html body .fsg .fsg-tbl .c-amt { width: 130px; min-width: 120px; font-weight: 800; }
html body .fsg .fsg-tbl .c-name { min-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* (2026-12-02 المالك) اسم الحساب سطر واحد والمبلغ مايتزنقش */
html body .fsg .fsg-tbl .c-desc { width: 22%; }
html body .fsg .fsg-tbl .c-cc { width: 170px; }
html body .fsg .fsg-tbl .c-x { width: 40px; text-align: center; }
html body .fsg .fsg-in { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid var(--v-line); border-radius: 9px; background: #fff; padding: 0 8px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--v-ink); outline: none; }
html body .fsg .fsg-in:focus { border-color: var(--fs-primary); box-shadow: 0 0 0 3px rgba(var(--fs-primary-rgb, 0, 103, 128), .14); }
html body .fsg .fsg-in::placeholder { color: #9DB0B5; font-weight: 500; }
html body .fsg .fsg-newacc { display: flex; align-items: center; gap: 6px; }
html body .fsg .fsg-newacc .fsg-in { border: 1.5px dashed var(--fs-calm-bd, #BFE0E8); background: var(--fs-tint-1, #F2F9FA); }
html body .fsg .fsg-ic:not(#_), html body .fsg .fsg-del:not(#_) { width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; margin: 0; flex: none; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--fs-primary) !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: none !important; cursor: pointer; }
html body .fsg .fsg-del:not(#_) { color: var(--v-bad) !important; }
html body .fsg .fsg-ic:hover, html body .fsg .fsg-del:hover { background: var(--fs-tint-2, #EEF7F9) !important; }
html body .fsg .fsg-cc { display: flex; align-items: center; gap: 2px; }
html body .fsg .fsg-cc-btn:not(#_) { flex: 1 1 auto; min-width: 0; height: 36px !important; min-height: 0 !important; margin: 0; padding: 0 8px !important; border: 1px solid var(--v-line) !important; border-radius: 9px !important; background: #fff !important; color: var(--v-ink) !important; display: flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px !important; font-weight: 700; box-shadow: none !important; cursor: pointer; text-align: start; }
html body .fsg .fsg-cc-btn span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fsg .fsg-cc-btn i { color: var(--fs-primary); }
html body .fsg .fsg-tbl tr.is-new td { background: transparent; }
html body .fsg .fsg-tbl tr.is-new .c-i { color: var(--fs-primary); }

/* سطر الإجماليات (الأرقام حمرا زى المبيعات) */
html body .fsg .fsg-total { display: flex; align-items: center; gap: 18px; padding: 10px 16px; margin-top: auto; background: var(--fs-calm-bg, #DDEFF3); border-top: 1px solid var(--fs-calm-bd, #BFE0E8); font-size: 14px; }
html body .fsg .fsg-total-l { color: var(--fs-ink-strong, var(--fs-strong)); font-weight: 800; }
html body .fsg .fsg-total-v, html body .fsg .fsg-total-c b { color: #C0392B; font-weight: 800; }
html body .fsg .fsg-total-c { color: var(--v-ink2); }

/* الإجمالى فوق (مابيتكتبش) */
html body .fsg .fsv-amt-lbl { font-size: 13px; font-weight: 700; color: var(--fs-calm-muted, #CFE6EC); }
html body .fsg .fsg-amt-v { color: var(--v-amt); font-size: 38px; font-weight: 800; line-height: 1.15; }

/* بيانات السند فى العمود الجانبى */
html body .fsg .fsg-data { padding: 14px; gap: 10px; }
html body .fsg .fsg-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .fsg .fsg-span2 { grid-column: 1 / -1; }
html body .fsg .fsg-data .fsv-ta { height: 52px; }
@media (min-width: 769px) {
    html body .fsg .fsv-main { min-height: 0; }
    html body .fsg .fsv-body { min-height: 0; }
}

/* ══ الجوال ══ */
@media (max-width: 768px) {
    html body .fsg .fsg-party-row, html body .fsg .fsg-party-row.is-pay, html body .fsg .fsg-party-row:not(:has(.fsg-sm)):not(.is-pay) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    html body .fsg .fsv-party { order: 2; }
    html body .fsg .fsg-lines { order: 3; padding: 10px 12px; gap: 8px; }
    html body .fsg .fsg-data { order: 4; padding: 0; background: transparent; border: 0; }
    html body .fsg .fsv-pay { display: none; }
    html body .fsg .fsg-lines-hd { padding: 0; border: 0; }
    html body .fsg .fsg-data:not(.is-open) .fsg-data-grid { display: none; }
    html body .fsg .fsg-data.is-open .fsg-data-grid { background: #fff; border: 1px solid var(--v-line); border-radius: 14px; padding: 12px; margin-top: 8px; }
    html body .fsg .fsg-total { margin: 4px -12px -10px; border-radius: 0 0 16px 16px; }
    html body .fsg .fsg-amt-v { font-size: 30px; }
    html body .fsg .fsv-amt { flex-direction: column; }

    html body .fsg .fsg-cards { display: flex !important; flex-direction: column; gap: 8px; }
    html body .fsg .fsg-card:not(#_) { width: 100%; min-height: 58px !important; height: auto !important; margin: 0; padding: 9px 10px !important; display: flex; align-items: center; gap: 10px; border: 1px solid #EEF2F3 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; font-family: inherit; text-align: start; cursor: pointer; }
    html body .fsg .fsg-card-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
    html body .fsg .fsg-card-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
    html body .fsg .fsg-card-t b { font-size: 14.5px !important; font-weight: 800; color: var(--v-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html body .fsg .fsg-card-t small { font-size: 12px !important; color: var(--v-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html body .fsg .fsg-card-cc { color: var(--fs-primary); }
    html body .fsg .fsg-card-amt { flex: none; font-size: 15px; font-weight: 800; color: var(--v-ink); }
    html body .fsg .fsg-add:not(#_) { width: 100%; height: 46px !important; min-height: 0 !important; margin: 0; border: 1.5px dashed var(--fs-calm-bd, #8CC7D3) !important; border-radius: 12px !important; background: var(--fs-tint-1, #F2F9FA) !important; color: var(--fs-primary) !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 14.5px !important; font-weight: 800; box-shadow: none !important; cursor: pointer; }
    html body .fsg .fsg-empty { margin: 6px 0; text-align: center; color: var(--v-mute); font-size: 13px; }
    html body .fsg.is-view .fsg-data-grid .fsv-f.is-empty { display: none !important; }
}

/* ══ شيت البند (الجوال) — على الديسكتوب نافذة فى النص ══ */
html body .fsg-sheet-back { position: fixed; inset: 0; z-index: 1080; background: rgba(4, 37, 45, .45); }
html body .fsg-sheet { position: fixed; z-index: 1081; inset-inline: 0; bottom: 0; max-height: 88dvh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -10px 30px rgba(4, 37, 45, .25); font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; color: #0B2A33; }
@media (min-width: 769px) { html body .fsg-sheet { inset-inline: auto; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 480px; border-radius: 18px; padding: 16px 18px; } html body .fsg-sheet-grip { display: none; } }
html body .fsg-sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: #DCE6E9; align-self: center; }
html body .fsg-sheet-hd { display: flex; align-items: center; gap: 8px; }
html body .fsg-sheet-hd h2 { margin: 0 !important; font-size: 17px !important; font-weight: 800; color: var(--fs-ink-strong, var(--fs-strong)); }
html body .fsg-sheet-x:not(#_) { width: 36px !important; height: 36px !important; min-height: 0 !important; padding: 0 !important; margin: 0; border: 1px solid #DCE6E9 !important; border-radius: 10px !important; background: #fff !important; color: #3F5C64 !important; display: flex; align-items: center; justify-content: center; box-shadow: none !important; }
html body .fsg-sheet-x.is-del:not(#_) { color: #B42318 !important; }
html body .fsg-sheet .fsv-f { display: flex; flex-direction: column; gap: 6px; }
html body .fsg-sheet .fsv-l { font-size: 13px; font-weight: 700; color: #3F5C64; }
html body .fsg-sheet .fsv-l small { font-weight: 500; color: #5B7780; }
html body .fsg-s-search { display: flex; align-items: center; gap: 8px; height: 48px; border: 1.5px solid var(--fs-primary); border-radius: 12px; padding: 0 12px; }
html body .fsg-s-search i { color: var(--fs-primary); font-size: 18px; }
html body .fsg-s-search input:not(#_) { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; font-family: inherit; font-size: 16px !important; font-weight: 700; height: 44px !important; padding: 0 !important; box-shadow: none !important; }
html body .fsg-s-results { border: 1px solid #DCE6E9; border-radius: 12px; overflow: hidden; max-height: 240px; overflow-y: auto; }
html body .fsg-s-results button:not(#_) { width: 100%; min-height: 44px !important; height: auto !important; margin: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px !important; border: 0 !important; border-bottom: 1px solid #EEF2F3 !important; border-radius: 0 !important; background: #fff !important; font-family: inherit; text-align: start; box-shadow: none !important; }
html body .fsg-s-results button span { width: 70px; font-size: 13px; color: #5B7780; font-weight: 700; }
html body .fsg-s-results button b { flex: 1; font-size: 14.5px !important; color: #0B2A33; }
html body .fsg-s-picked:not(#_) { height: 48px !important; min-height: 0 !important; margin: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px !important; border: 1.5px solid var(--fs-calm-bd, #8CC7D3) !important; border-radius: 12px !important; background: var(--fs-tint-1, #F2F9FA) !important; font-family: inherit; text-align: start; box-shadow: none !important; }
html body .fsg-s-picked span { font-size: 13px; color: #5B7780; font-weight: 700; }
html body .fsg-s-picked b { flex: 1; font-size: 15px !important; color: #0B2A33; }
html body .fsg-s-picked i { color: var(--fs-primary); }
html body .fsg-s-amt { display: flex; align-items: center; gap: 8px; height: 56px; border: 1px solid #DCE6E9; border-radius: 12px; background: #F7FAFB; padding: 0 14px; }
html body .fsg-s-amt input:not(#_) { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; font-family: inherit; font-size: 26px !important; font-weight: 800; height: 52px !important; padding: 0 !important; box-shadow: none !important; color: #0B2A33; }
html body .fsg-s-amt span { font-size: 13px; font-weight: 800; color: #5B7780; }
html body .fsg-s-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .fsg-sheet .fsv-in { height: 46px; box-sizing: border-box; border: 1px solid #DCE6E9; border-radius: 12px; background: #F7FAFB; padding: 0 12px; font-family: inherit; font-size: 16px; }
html body .fsg-s-cc:not(#_) { height: 46px !important; min-height: 0 !important; margin: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px !important; border: 1px solid #DCE6E9 !important; border-radius: 12px !important; background: #F7FAFB !important; font-family: inherit; font-size: 14px !important; font-weight: 700; color: #0B2A33 !important; text-align: start; box-shadow: none !important; }
html body .fsg-s-cc span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fsg-s-acts { display: flex; gap: 8px; margin-top: 2px; }
html body .fsg-s-ok:not(#_), html body .fsg-s-more:not(#_) { flex: 1; height: 54px !important; min-height: 0 !important; margin: 0; border-radius: 14px !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px !important; font-weight: 800; box-shadow: none !important; cursor: pointer; }
html body .fsg-s-ok:not(#_) { border: 0 !important; background: var(--fs-primary) !important; color: #fff !important; }
html body .fsg-s-more:not(#_) { border: 1.5px solid var(--fs-primary) !important; background: #fff !important; color: var(--fs-primary) !important; }
/* (2026-11-30) العمود الجانبى فى السند المجمع يدخل فى 768 من غير سكرول: كارت إجمالى أصغر وشرح سطر واحد */
@media (min-width: 769px) {
    html body .fsg .fsv-amt { padding: 12px 16px 10px; gap: 2px; }
    html body .fsg .fsg-amt-v { font-size: 32px; }
    html body .fsg .fsv-side { gap: 8px; }   /* الفاصل بين الكروت (والفاصل الفاضى قبل الأزرار) أصغر ← يدخل فى 768 */
    html body .fsg .fsv-words { font-size: 12.5px; }
    html body .fsg .fsv-amt-foot { margin-top: 4px; padding-top: 6px; }
    html body .fsg .fsg-data { padding: 12px; }
    html body .fsg .fsg-data-grid { gap: 8px 10px; }
    html body .fsg .fsg-data .fsv-ta { height: 44px; padding-top: 10px; }
    html body .fsg .fsg-data .fsv-in, html body .fsg .fsg-data .fsv-dx.dxbl-text-edit { height: 40px !important; min-height: 40px !important; }
    html body .fsg .fsg-data .fsv-l { font-size: 12.5px; }
}

/* (2026-11-30) الجوال: شارة المسودة أيقونة بس (النص بيكسر عنوان السند لسطرين) ، والعنوان سطر واحد */
@media (max-width: 768px) {
    html body .fsv-head .fs-draft-chip .s-val { display: none; }
    html body .fsv-head .fs-draft-chip { padding-inline: 8px; gap: 6px; }
    html body .fsv-head .fsv-head-t h1 { white-space: nowrap; }
}

/* ══ (2026-12-01) خانة مرفق السند — FsAttachField (رفع ملف على السيرفر زى الوندوز بدل كتابة رابط) ══
   فاضية = زرار «إرفاق ملف» بإطار متقطع ، مرفوع = أيقونة النوع + اسم الملف + فتح + حذف (لون النجاح) */
html body .fsv .fsat { box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; min-width: 0; }
html body .fsv .fsat-ic { font-size: 18px; flex: none; }
html body .fsv .fsat-pick { border: 1px dashed var(--fs-primary); background: var(--v-field); color: var(--fs-primary); cursor: pointer; }
html body .fsv .fsat-pick:hover { background: var(--fs-tint-2, #EEF7F9); }
html body .fsv .fsat-pick.is-off { border-color: var(--v-line); color: var(--v-mute); cursor: default; pointer-events: none; }
html body .fsv .fsat-cta { font-weight: 800; font-size: 14px; white-space: nowrap; }
html body .fsv .fsat-hint { margin-inline-start: auto; font-size: 12px; color: var(--v-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html body .fsv .fsat-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }   /* الخانة الأصلية مستخبية ، والـ label هو الزرار */
html body .fsv .fsat-pick:focus-within, html body .fsv .fsv-f:has(.fsat-file:focus-visible) .fsat-pick { box-shadow: 0 0 0 3px rgba(var(--fs-primary-rgb, 0, 103, 128), .18); }
html body .fsv .fsat-has { border: 1px solid var(--v-ok); background: var(--v-ok-t); color: var(--v-ok); padding-inline-end: 6px; }
html body .fsv .fsat-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 13.5px; color: var(--v-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .fsv .fsat-open { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--v-ok); color: var(--v-ok); font-size: 13px; font-weight: 800; text-decoration: none; }
html body .fsv .fsat-del:not(#_) { flex: none; width: 32px !important; min-width: 32px !important; height: 30px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--v-bad) !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 17px; box-shadow: none !important; }
html body .fsv .fsat-del:not(#_):hover { background: var(--v-bad-t) !important; }
html body .fsv .fsat-err { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--v-bad); }
@media (max-width: 768px) {
    html body .fsv .fsat { min-height: 46px; }
    html body .fsv .fsat-hint { display: none; }   /* الجوال: «إرفاق ملف» بس علشان السطر مايتكسرش */
    html body .fsv.is-view .fsat-has { background: transparent; border: 0; padding: 0; min-height: 0; }   /* السند المحفوظ بيتعرض قراية */
}

/* ══ (2026-12-01) خانة الربط VoucherRefField — اختيار فاتورة/عقد/صيانة/مواصفة بدل الكتابة (زى الوندوز) ══ */
html body .fsv .fsrf { position: relative; display: flex; align-items: center; gap: 6px; min-height: 42px; box-sizing: border-box; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-field); padding-inline: 0 6px; min-width: 0; }
html body .fsv .fsrf:hover:not(.is-off) { border-color: var(--fs-primary); }
html body .fsv .fsrf-btn:not(#_) { flex: 1 1 auto; min-width: 0; height: 40px !important; min-height: 0 !important; display: flex !important; align-items: center; gap: 8px; padding: 0 12px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--fs-primary) !important; font-family: inherit; font-size: 14px; text-align: start; cursor: pointer; width: auto !important; }
html body .fsv .fsrf-btn:disabled { cursor: default; color: var(--v-ink) !important; }
html body .fsv .fsrf-ic { font-size: 18px; flex: none; }
html body .fsv .fsrf-ph { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .fsv .fsrf-no { font-weight: 800; font-size: 15px; color: var(--v-ink); font-variant-numeric: tabular-nums; }
html body .fsv .fsrf .fsv-tag { position: static; flex: none; }
html body .fsv .fsrf-chev { color: var(--v-mute); font-size: 16px; flex: none; pointer-events: none; }
html body .fsv .fsrf-clr:not(#_) { flex: none; width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--v-mute) !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 16px; box-shadow: none !important; }
html body .fsv .fsrf-clr:not(#_):hover { background: var(--v-bad-t) !important; color: var(--v-bad) !important; }
html body .fsv .fsrf.is-set { background: #fff; }
html body .fsv .fsrf.is-off { background: var(--v-field); }

/* ══ قايمة الاختيار VoucherRefPicker — ديسكتوب نافذة فى النص ، جوال شيت من تحت ══ */
html body .fsrp-back { position: fixed; inset: 0; z-index: 1990; background: rgba(4, 37, 45, .42); animation: fsrp-fade .15s ease-out; }
html body .fsrp { --rp-ink: #0B2A33; --rp-mute: #5B7780; --rp-line: #E3ECEE; --rp-soft: #F3F7F8;
    position: fixed; z-index: 1991; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 64px));
    display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 37, 45, .28), 0 4px 12px rgba(4, 37, 45, .10);
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; color: var(--rp-ink); animation: fsrp-in .18s ease-out; }
html body .fsrp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--rp-line); }
html body .fsrp-hic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); display: flex; align-items: center; justify-content: center; font-size: 21px; }
html body .fsrp-ht { display: flex; flex-direction: column; min-width: 0; flex: 1; }
html body .fsrp-ht b { font-size: 16.5px; font-weight: 800; }
html body .fsrp-ht span { font-size: 13px; color: var(--rp-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .fsrp-count { min-width: 28px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--rp-soft); color: var(--rp-mute); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
html body .fsrp-x:not(#_) { width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--rp-mute) !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 19px; box-shadow: none !important; }
html body .fsrp-x:not(#_):hover { background: var(--rp-soft) !important; color: var(--rp-ink) !important; }
html body .fsrp-search { margin: 12px 18px 4px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--rp-line); border-radius: 10px; background: var(--rp-soft); color: var(--rp-mute); }
html body .fsrp-search:focus-within { border-color: var(--fs-primary); background: #fff; }
html body .fsrp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--rp-ink); }
html body .fsrp-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
html body .fsrp-row:not(#_) { width: 100% !important; height: auto !important; min-height: 64px !important; display: flex !important; align-items: center; gap: 12px; padding: 10px 10px !important; border: 1px solid transparent !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: inherit !important; font-family: inherit; text-align: start; cursor: pointer; transition: background .12s, border-color .12s; }
html body .fsrp-row:not(#_):hover { background: var(--rp-soft) !important; border-color: var(--rp-line) !important; }
html body .fsrp-row:not(#_):focus-visible { outline: 2px solid var(--fs-primary); outline-offset: 1px; }
html body .fsrp-row.is-cur:not(#_) { background: var(--fs-tint-2, #EEF7F9) !important; border-color: var(--fs-primary) !important; }
html body .fsrp-no { min-width: 52px; height: 44px; padding: 0 8px; flex: none; border-radius: 10px; background: var(--rp-soft); color: var(--fs-primary); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
html body .fsrp-row.is-cur .fsrp-no { background: #fff; }
html body .fsrp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html body .fsrp-rem { font-size: 15px; font-weight: 800; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
html body .fsrp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--rp-mute); font-variant-numeric: tabular-nums; }
html body .fsrp-chev { color: #B7C8CD; font-size: 17px; flex: none; }
html body .fsrp-empty { padding: 28px 12px; text-align: center; color: var(--rp-mute); font-size: 14px; }
@keyframes fsrp-fade { from { opacity: 0; } }
@keyframes fsrp-in { from { opacity: 0; transform: translate(-50%, -48%); } }
@media (max-width: 768px) {
    html body .fsrp { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: 82dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: fsrp-up .22s ease-out; }
    html body .fsrp::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #D3DEE1; }
    html body .fsrp-head { padding: 10px 16px 12px; }
    html body .fsrp-search { margin: 10px 14px 2px; height: 44px; }
    html body .fsrp-row:not(#_) { min-height: 68px !important; }
    @keyframes fsrp-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html body .fsrp, html body .fsrp-back { animation: none; } }

/* ══ (2026-12-01) صفحة اعتماد مسودة جيلان (JilanApprove.razor) — زرار «راجع واعتمد» فى الإيميل ══ */
html body .jap { min-height: calc(100dvh - 70px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; box-sizing: border-box; background: #F3F7F8; font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }
html body .jap-card { width: min(460px, 100%); background: #fff; border: 1px solid #DCE6E9; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; color: #0B2A33; }
html body .jap-head { display: flex; align-items: center; gap: 12px; }
html body .jap-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); display: grid; place-items: center; font-size: 22px; }
html body .jap-ht { display: flex; flex-direction: column; }
html body .jap-ht b { font-size: 18px; font-weight: 800; }
html body .jap-ht span { font-size: 13px; color: #5B7780; }
html body .jap-amt { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--fs-strong, #0F4C5C); color: #fff; }
html body .jap-amt span { font-size: 14px; opacity: .85; }
html body .jap-amt b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
html body .jap-rows { margin: 0; display: flex; flex-direction: column; }
html body .jap-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EEF3F4; }
html body .jap-rows dt { color: #5B7780; font-size: 13.5px; }
html body .jap-rows dd { margin: 0; font-weight: 700; font-size: 14px; text-align: left; }
html body .jap-note { padding: 10px 12px; border-radius: 10px; background: var(--fs-tint-1, #F4FAFB); border: 1px solid var(--fs-tint-5, #DCE6E9); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
html body .jap-note small { display: block; font-size: 12px; color: var(--fs-primary); }
/* (2026-12-01) بنود السند المجمع فى صفحة الاعتماد: رقم الحساب · الاسم (والشرح تحته) · المبلغ */
html body .jap-lines { display: grid; gap: 0; border: 1px solid var(--fs-tint-5, #DCE6E9); border-radius: 10px; overflow: hidden; }
html body .jap-lines > small { padding: 7px 12px; font-size: 12px; color: var(--fs-primary); background: var(--fs-tint-1, #F4FAFB); }
html body .jap-line { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--fs-tint-5, #DCE6E9); font-size: 14px; }
html body .jap-line .n { flex: none; min-width: 48px; color: var(--fs-ink-muted, #6b7c85); font-size: 12.5px; }
html body .jap-line .t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body .jap-line .t em { display: block; font-style: normal; font-size: 12px; color: var(--fs-ink-muted, #6b7c85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .jap-line b { flex: none; font-variant-numeric: tabular-nums; }
html body .jap-acts { display: flex; gap: 8px; flex-wrap: wrap; }
html body .jap-btn:not(#_) { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 46px !important; min-height: 0 !important; padding: 0 16px !important; border-radius: 12px !important; font: inherit; font-size: 14.5px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: none !important; width: auto !important; }
html body .jap-pri:not(#_) { flex: 1 1 100%; border: 0 !important; background: var(--fs-primary) !important; color: #fff !important; }
html body .jap-sec:not(#_) { flex: 1; border: 1px solid #DCE6E9 !important; background: #fff !important; color: #0B2A33 !important; }
html body .jap-del:not(#_) { flex: 1; border: 1px solid #F3C9C2 !important; background: #fff !important; color: #B42318 !important; }
html body .jap-hint { margin: 0; font-size: 12.5px; color: #8AA3AA; text-align: center; }
html body .jap-msg { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #F3F7F8; font-size: 14px; font-weight: 700; }
html body .jap-msg.ok { background: #E6F4EA; color: #1E7A3C; }
html body .jap-msg.bad { background: #FDE8E4; color: #B42318; }
html body .jap-msg i { font-size: 20px; }
/* ══ (2026-12-01) توزيع مصروفات الفروع / تجميع مقبوضات الفروع (BranchTransScreen.razor) — نفس السند المجمع + عمود الفرع + لوحة القيود ══ */
html body .fbt .fbt-head-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); gap: 12px; align-items: end; }
html body .fbt .fbt-head-row.is-credit { grid-template-columns: minmax(0, 3fr) auto minmax(0, 5fr) auto; }
html body .fbt .fbt-sel { width: 100%; box-sizing: border-box; font-family: inherit; cursor: pointer; }
/* (2026-12-02 المالك) قايمة الفروع بلون «الموضوع» (الكهرمانى) — فوق وجوه الجدول — علشان تبان مختلفة عن باقى الخانات */
html body .fbt select.fbt-sel:not(#_) { appearance: none; -webkit-appearance: none; background-color: var(--fs-subject-bg, #FDF1E4) !important; border: 1px solid var(--fs-subject-bd, #F2C28E) !important; color: var(--fs-subject-ink, #6E3A0E) !important; font-weight: 800 !important; border-radius: 10px !important; padding-inline: 10px 28px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A9561A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: left 9px center !important; }
html body .fbt select.fbt-sel:not(#_):hover, html body .fbt select.fbt-sel:not(#_):focus { border-color: var(--fs-subject, #A9561A) !important; box-shadow: 0 0 0 3px rgba(169, 86, 26, .14) !important; outline: none; }
html body .fbt select.fbt-sel:disabled:not(#_) { opacity: 1; cursor: default; }
html body .fbt .fbt-head-row .fsv-f:first-child .fsv-l { color: var(--fs-subject, #A9561A); }
html body .fbt .fsg-tbl select.fbt-sel:not(#_) { height: 34px !important; font-size: 13px !important; }
html body .fbt .fsg-tbl tr:not(.is-other) td.c-br, html body .fbt .fsg-tbl tr.is-other td.c-br { color: var(--fs-subject-ink, #6E3A0E); }
html body #fbt-s-br:not(#_) { background-color: var(--fs-subject-bg, #FDF1E4) !important; border-color: var(--fs-subject-bd, #F2C28E) !important; color: var(--fs-subject-ink, #6E3A0E) !important; font-weight: 800; }
html body .fbt .fbt-collect { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-field); font-size: 13.5px; font-weight: 700; color: var(--v-ink2); white-space: nowrap; cursor: pointer; }
html body .fbt .fbt-collect.is-on { border-color: var(--fs-primary); color: var(--fs-primary); background: var(--fs-tint-2, #EEF7F9); }
html body .fbt .fbt-collect input { width: 16px; height: 16px; accent-color: var(--fs-primary); margin: 0; }
html body .fbt .fbt-warn { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--v-bad); }
html body .fbt .fsg-tbl .c-br { width: 165px; min-width: 150px; }
html body .fbt .fsg-tbl td.c-br select.fsg-in { min-width: 140px; }
@media (min-width: 769px) { html body .fbt .fsv-amt { padding: 9px 14px 7px; } html body .fbt .fsg-amt-v { font-size: 28px; } }   /* العمود الجانبى فيه لوحة القيود زيادة ← يدخل فى 768 */
html body .fbt .fsg-tbl .c-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
html body .fbt .fsg-tbl .c-pt { width: 150px; }
html body .fbt .fsg-tbl .c-desc { width: 16%; }
html body .fbt .fsg-tbl .c-cc { width: 140px; }
html body .fbt .fsg-tbl tr.is-other .c-br { color: var(--fs-accent, #B26B00); font-weight: 800; }
html body .fbt .fsg-tbl select.fsg-in { height: 36px; padding: 0 6px; }
html body .fbt .fbt-pt-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fbt .fbt-pt-name i { color: var(--fs-primary); flex: none; }
html body .fbt .fbt-ready { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--v-mute); }
html body .fbt .fbt-ready.ok { color: var(--v-ok); }
html body .fbt.is-view .fbt-ready { display: none; }   /* مستند محفوظ ← «جاهز للحفظ» مالهاش معنى */

/* لوحة القيود فى العمود الجانبى */
html body .fbt .fbt-prev { padding: 10px 12px; gap: 6px; min-height: 0; }
html body .fbt .fbt-prev-hd:not(#_) { display: flex; align-items: center; gap: 6px; width: 100%; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: inherit; color: var(--fs-ink-strong, var(--fs-strong)); font-size: 14px; text-align: start; cursor: default; }
html body .fbt .fbt-prev-hd i { color: var(--fs-primary); }
html body .fbt .fbt-prev-body { display: flex; flex-direction: column; gap: 6px; max-height: max(90px, calc(100dvh - 612px)); overflow-y: auto; }   /* الصفحة تدخل فى الشاشة من غير سكرول (768 ← 156 بكسل) */
html body .fbt .fbt-prev-empty { margin: 4px 0; font-size: 12.5px; color: var(--v-mute); }
html body .fbt .fbt-ent { border: 1px solid var(--fs-tint-5, #DCE6E9); border-radius: 10px; padding: 6px 8px; background: var(--fs-tint-1, #F7FBFC); }
html body .fbt .fbt-ent-hd { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--fs-strong, #004F63); margin-bottom: 2px; }
html body .fbt .fbt-ent-hd > b { flex: 1 1 auto; min-width: 0; }
html body .fbt .fbt-ent-no { font-size: 12.5px; color: var(--v-ink2); }
html body .fbt .fbt-ent-hd .fsg-ic:not(#_) { width: 28px !important; height: 28px !important; }
html body .fbt .fbt-ent-r { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; line-height: 1.6; }
html body .fbt .fbt-ent-r span { flex: none; width: 34px; color: var(--v-mute); }
html body .fbt .fbt-ent-r.cr { padding-inline-start: 12px; }
html body .fbt .fbt-ent-r em { flex: 1 1 auto; min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v-ink); }
html body .fbt .fbt-ent-r b { flex: none; font-variant-numeric: tabular-nums; }
html body .fbt .fbt-dates { display: flex; gap: 8px; align-items: center; margin: 10px 18px 0; }
html body .fbt .fbt-dates .fsv-dx, html body .fbt-dates .fsv-dx { flex: 1 1 0; min-width: 0; }
html body .fbt-dates { display: flex; gap: 8px; align-items: center; margin: 10px 18px 0; }
html body .fbt-dates .jap-btn:not(#_) { height: 38px !important; flex: none; }
html body .fbt-pick-row { display: flex; align-items: center; gap: 4px; }
html body .fbt-pick-row .fsrp-row { flex: 1 1 auto; }
/* (2026-12-02 المالك) زرار حذف النموذج — كان بشكل زرار المتصفح الخام (fsg-del بيشتغل جوه الجدول بس) ← أيقونة هادية بلون الخطر تظهر أوضح مع المرور */
html body .fbt-pick-del:not(#_) { flex: none; width: 36px !important; height: 36px !important; min-height: 0 !important; padding: 0 !important; margin: 0 2px; border: 1px solid transparent !important; border-radius: 10px !important;
    background: transparent !important; color: #A9B8BD !important; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: none !important; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
html body .fbt-pick-row:hover .fbt-pick-del:not(#_) { color: var(--v-bad, #B42318) !important; }
@media (hover: none) { html body .fbt-pick-del:not(#_) { color: var(--v-bad, #B42318) !important; } }   /* الجوال: مفيش مرور ← اللون ظاهر على طول */
html body .fbt-pick-del:not(#_):hover, html body .fbt-pick-del:not(#_):focus-visible { background: var(--v-bad-t, #FDE8E4) !important; border-color: #F6C9C1 !important; color: var(--v-bad, #B42318) !important; outline: 0; }
@media (max-width: 768px) {
    html body .fbt .fbt-head-row, html body .fbt .fbt-head-row.is-credit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    html body .fbt .fbt-head-row .fsv-f-type, html body .fbt .fbt-head-row .fsv-f-name { grid-column: 1 / -1; order: 2; }
    html body .fbt .fbt-collect { align-self: end; justify-content: center; }   /* «تجميع المبلغ» جنب الفرع (سطر أقل) */
    html body .fbt .fbt-prev { order: 3; }
    html body .fbt .fbt-prev-hd:not(#_) { cursor: pointer; justify-content: flex-start; }
    html body .fbt .fbt-prev-hd .fsv-mob { margin-inline-start: auto; }
    html body .fbt .fbt-prev:not(.is-open) .fbt-prev-body { display: none; }
    html body .fbt .fbt-prev-body { max-height: none; }
    html body .fbt .fsg-total { flex-wrap: wrap; gap: 6px 14px; }
}

/* ══ (2026-12-01) أرصدة أول المدة (OpeningBalanceScreen.razor) — العملاء/الموردين/الموظفين/مراكز التكلفة: محرر فى الجنب + القايمة المحفوظة ══ */
html body .fob .fob-count { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary); font-size: 13px; font-weight: 700; }
html body .fob .fob-xls:not(#_) { display: inline-flex !important; align-items: center; gap: 6px; height: 38px !important; min-height: 0 !important; padding: 0 14px !important; border: 1px solid var(--v-ok) !important; border-radius: 10px !important; background: var(--v-ok-t) !important; color: var(--v-ok) !important; font-family: inherit; font-size: 14px; font-weight: 800; box-shadow: none !important; cursor: pointer; width: auto !important; }
html body .fob .fob-xls:disabled { opacity: .5; cursor: default; }
html body .fob .fob-xls i { font-size: 18px; }
html body .fob .fob-ed { padding: 14px; gap: 12px; }
html body .fob .fob-ed-hd { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fs-ink-strong, var(--fs-strong)); }
html body .fob .fob-ed-hd i { color: var(--fs-primary); font-size: 18px; }
html body .fob .fob-amts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .fob .fob-amts .fsv-in { font-size: 18px; font-weight: 800; }
html body .fob .fob-warn { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--v-bad); }
html body .fob .fob-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html body .fob .fob-acts .fsv-primary { grid-column: 1 / -1; }
html body .fob .fob-acts .fsv-tile:not(#_) { flex-direction: row; height: 44px !important; gap: 8px; font-size: 14px !important; }
html body .fob .fob-acts .fob-del:not(#_) { color: var(--v-bad) !important; }
html body .fob .fob-list { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }   /* القايمة تملا ارتفاع الصفحة جنب المحرر */
html body .fob .fob-list-hd { padding: 10px 12px; border-bottom: 1px solid var(--v-line); }
html body .fob .fob-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-field); color: var(--v-mute); }
html body .fob .fob-search:focus-within { border-color: var(--fs-primary); background: #fff; }
html body .fob .fob-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--v-ink); }
html body .fob .fob-tbl-wrap { flex: 1 1 auto; min-height: 120px; max-height: calc(100dvh - 300px); overflow: auto; }
html body .fob .fob-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
html body .fob .fob-tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--fs-calm-bg, #DDEFF3); color: var(--fs-ink-strong, var(--fs-strong)); border-bottom: 2px solid var(--fs-strong, #004F63); padding: 9px 8px; text-align: start; font-weight: 800; white-space: nowrap; }
html body .fob .fob-tbl td { padding: 8px; border-bottom: 1px solid #EEF2F3; cursor: pointer; }
html body .fob .fob-tbl tbody tr:nth-child(even) { background: var(--fs-tint-1, #F7FBFC); }
html body .fob .fob-tbl tbody tr:hover { background: var(--fs-tint-2, #EEF7F9); }
html body .fob .fob-tbl tbody tr.is-cur { background: var(--fs-tint-2, #EEF7F9); box-shadow: inset -3px 0 0 var(--fs-primary); }
html body .fob .fob-tbl tbody tr.is-locked td { color: var(--v-mute); }
html body .fob .fob-tbl .c-no { width: 110px; }
html body .fob .fob-tbl .c-name { font-weight: 800; }
html body .fob .fob-tbl .c-amt { width: 130px; font-weight: 800; }
html body .fob .fob-tbl .c-dt { width: 110px; color: var(--v-ink2); }
html body .fob .fob-lk { margin-inline-start: 6px; color: var(--v-mute); font-size: 14px; }
html body .fob .fob-empty { margin: 18px 0; text-align: center; color: var(--v-mute); font-size: 14px; }
html body .fob .fob-total { margin-top: auto; gap: 18px; }
html body .fob .fob-total b { color: #C0392B; font-weight: 800; }
@media (max-width: 768px) {
    html body .fob .fob-ed { order: 1; }
    html body .fob .fob-list { order: 2; padding: 0; }
    html body .fob .fob-cards { display: flex !important; flex-direction: column; gap: 6px; padding: 8px 10px; }
    html body .fob .fob-card:not(#_) { width: 100%; min-height: 56px !important; height: auto !important; margin: 0; padding: 8px 10px !important; display: flex; align-items: center; gap: 10px; border: 1px solid #EEF2F3 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; font-family: inherit; text-align: start; cursor: pointer; }
    html body .fob .fob-card.is-cur:not(#_) { border-color: var(--fs-primary) !important; background: var(--fs-tint-1, #F2F9FA) !important; }
    html body .fob .fob-card-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
    html body .fob .fob-card-t b { font-size: 14.5px; font-weight: 800; color: var(--v-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html body .fob .fob-card-t small { font-size: 12px; color: var(--v-mute); }
    html body .fob .fob-card-a { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 800; color: var(--v-ink); }
    html body .fob .fob-card-a small { font-size: 11.5px; font-weight: 700; color: var(--v-mute); }
    html body .fob .fob-total { flex-wrap: wrap; gap: 6px 14px; }
    html body .fob .fob-acts { grid-template-columns: minmax(0, 1fr) auto auto; }   /* الجوال: الحفظ وجديد وحذف فى سطر واحد (أقل سكرول) */
    html body .fob .fob-acts .fsv-primary { grid-column: auto; }
    html body .fob .fob-acts .fsv-primary:not(#_) { height: 50px !important; font-size: 16px !important; }
    html body .fob .fob-acts .fsv-tile:not(#_) { width: 72px; height: 50px !important; flex-direction: column; gap: 2px; font-size: 12.5px !important; }
}

/* ══ (2026-12-02 المالك) FsBranchPicker — اختيار الفرع بلون «الموضوع» (الكهرمانى) + بحث (توزيع/تجميع الفروع ، قيود اليومية بإختيار الفرع) ══ */
html body .fbp { position: relative; width: 100%; min-width: 0; font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }
html body .fbp-btn:not(#_) { width: 100% !important; height: 42px !important; min-height: 0 !important; margin: 0; display: flex !important; align-items: center; gap: 8px; padding: 0 10px !important; border: 1px solid var(--fs-subject-bd, #F2C28E) !important; border-radius: 10px !important; background: var(--fs-subject-bg, #FDF1E4) !important; color: var(--fs-subject-ink, #6E3A0E) !important; box-shadow: none !important; font-family: inherit; font-size: 14px !important; font-weight: 800; text-align: start; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
html body .fbp-btn:not(#_):hover, html body .fbp-btn:not(#_):focus-visible, html body .fbp.is-open .fbp-btn:not(#_) { border-color: var(--fs-subject, #A9561A) !important; box-shadow: 0 0 0 3px rgba(169, 86, 26, .14) !important; outline: none; }
html body .fbp-btn:disabled:not(#_) { cursor: default; opacity: 1; }
html body .fbp-ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--fs-subject, #A9561A); color: #fff; font-size: 14px; }
html body .fbp-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fbp-no { flex: none; font-size: 11.5px; font-weight: 700; color: var(--fs-subject, #A9561A); background: #fff; border: 1px solid var(--fs-subject-bd, #F2C28E); border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
html body .fbp-chev { flex: none; color: var(--fs-subject, #A9561A); font-size: 15px; transition: transform .15s; }
html body .fbp.is-open .fbp-chev { transform: rotate(180deg); }
html body .fbp.is-compact .fbp-btn:not(#_) { height: 34px !important; font-size: 13px !important; padding: 0 6px !important; gap: 6px; }
html body .fbp.is-compact .fbp-ic { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }
html body .fbp-back { position: fixed; inset: 0; z-index: 1090; background: transparent; }
html body .fbp-pop { position: absolute; z-index: 1091; top: calc(100% + 6px); inset-inline-start: 0; width: max(100%, 280px); max-width: min(360px, 92vw); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fs-subject-bd, #F2C28E); border-radius: 14px; box-shadow: 0 18px 44px rgba(4, 37, 45, .22), 0 3px 10px rgba(4, 37, 45, .08); overflow: hidden; animation: fbp-in .14s ease-out; }
html body .fbp-pop-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; background: var(--fs-subject-bg, #FDF1E4); color: var(--fs-subject-ink, #6E3A0E); }
html body .fbp-pop-hd > i { font-size: 17px; color: var(--fs-subject, #A9561A); }
html body .fbp-pop-hd b { flex: 1 1 auto; font-size: 14px; font-weight: 800; }
html body .fbp-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: #fff; color: var(--fs-subject, #A9561A); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
html body .fbp-x:not(#_) { width: 28px !important; min-width: 28px !important; height: 28px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--fs-subject-ink, #6E3A0E) !important; display: inline-flex !important; align-items: center; justify-content: center; box-shadow: none !important; }
html body .fbp-search { display: flex; align-items: center; gap: 8px; margin: 8px 10px 4px; height: 38px; padding: 0 10px; border: 1px solid #E3ECEE; border-radius: 10px; background: #F7FAFB; color: #5B7780; }
html body .fbp-search:focus-within { border-color: var(--fs-subject, #A9561A); background: #fff; }
html body .fbp-search input:not(#_) { flex: 1; min-width: 0; height: 36px !important; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 0 !important; font: inherit; font-size: 14px !important; color: #0B2A33; }
html body .fbp-list { max-height: 280px; overflow-y: auto; padding: 4px 6px 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
html body .fbp-item:not(#_) { width: 100% !important; min-height: 40px !important; height: auto !important; margin: 0; display: flex !important; align-items: center; gap: 10px; padding: 6px 8px !important; border: 1px solid transparent !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important; color: #0B2A33 !important; font-family: inherit; font-size: 14px !important; font-weight: 700; text-align: start; cursor: pointer; }
html body .fbp-item:not(#_):hover, html body .fbp-item.is-hi:not(#_) { background: var(--fs-subject-bg, #FDF1E4) !important; border-color: var(--fs-subject-bd, #F2C28E) !important; }
html body .fbp-item.is-cur:not(#_) { color: var(--fs-subject-ink, #6E3A0E) !important; font-weight: 800; }
html body .fbp-item-no { flex: none; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: #F3F7F8; color: #5B7780; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
html body .fbp-item.is-cur .fbp-item-no { background: var(--fs-subject, #A9561A); color: #fff; }
html body .fbp-item-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .fbp-item-ok { flex: none; color: var(--fs-subject, #A9561A); font-size: 16px; }
html body .fbp-empty { margin: 12px 0; text-align: center; color: #5B7780; font-size: 13px; }
@keyframes fbp-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 768px) {
    html body .fbp-back { background: rgba(4, 37, 45, .42); }
    html body .fbp-pop { position: fixed; top: auto; bottom: 0; inset-inline: 0; width: 100%; max-width: none; border-radius: 20px 20px 0 0; max-height: 78dvh; padding-bottom: env(safe-area-inset-bottom, 0px); animation: fbp-up .2s ease-out; }
    html body .fbp-list { max-height: none; flex: 1 1 auto; }
    html body .fbp-item:not(#_) { min-height: 48px !important; }
    @keyframes fbp-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html body .fbp-pop { animation: none; } }
html body .fbt .fsg-tbl td.c-br { overflow: visible; }
html body .fbp .fbp-back { background: rgba(4, 37, 45, .30); }
@media (min-width: 769px) { html body .fbp .fbp-pop { position: fixed; top: 50%; left: 50%; inset-inline-start: auto; transform: translate(-50%, -50%); width: 360px; animation: none; } }   /* نافذة فى نص الشاشة (الجدول وكارت رأس القيد بيقصّوا اللى بيطلع بره) */
html body .fsv-card:has(.fbp.is-open), html body .fsg-tbl-wrap:has(.fbp.is-open), html body .inv-form:has(.fbp.is-open) { position: relative; z-index: 1200 !important; overflow: visible !important; }   /* الكارت اللى فيه الاختيار المفتوح فوق باقى الصفحة (الجوال: الشيت كان بيترسم ورا الكروت) */
html body .phx-branch-pick { width: 210px; flex: none; }   /* (2026-12-02) اختيار الفرع فى شريط تقرير صلاحية الأدوية */
html body .phx-branch-pick .fbp-btn:not(#_) { height: 38px !important; }

/* ══ (2026-12-02 المالك) FsBranchMultiPicker — نفس شكل اختيار الفرع بعلامات ✓ + الكل/لا شيء + تطبيق ══ */
html body .fbp-multi .fbp-btn:not(#_) { height: 38px !important; }
html body .fbp-tools { display: flex; gap: 6px; padding: 2px 10px 4px; }
html body .fbp-tools button:not(#_) { height: 30px !important; min-height: 0 !important; margin: 0; display: inline-flex !important; align-items: center; gap: 4px; padding: 0 10px !important; border: 1px solid var(--fs-subject-bd, #F2C28E) !important; border-radius: 8px !important; background: #fff !important; color: var(--fs-subject-ink, #6E3A0E) !important; font-family: inherit; font-size: 12.5px !important; font-weight: 800; box-shadow: none !important; cursor: pointer; }
html body .fbp-tools button:not(#_):hover { background: var(--fs-subject-bg, #FDF1E4) !important; }
html body .fbp-chk { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #C9D6DA; background: #fff; display: grid; place-items: center; color: #fff; font-size: 13px; }
html body .fbp-chk.on { background: var(--fs-subject, #A9561A); border-color: var(--fs-subject, #A9561A); }
html body .fbp-multi .fbp-item.is-cur .fbp-item-no { background: var(--fs-subject-bg, #FDF1E4); color: var(--fs-subject, #A9561A); }
html body .fbp-err { margin: 4px 12px 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #B42318; }
html body .fbp-foot { padding: 8px 10px 10px; border-top: 1px solid #EEF2F3; }
html body .fbp-apply:not(#_) { width: 100% !important; height: 40px !important; min-height: 0 !important; margin: 0; display: flex !important; align-items: center; justify-content: center; gap: 6px; border: 0 !important; border-radius: 10px !important; background: var(--fs-subject, #A9561A) !important; color: #fff !important; font-family: inherit; font-size: 14px !important; font-weight: 800; box-shadow: none !important; cursor: pointer; }
html body .mg-branch-wrap:has(.fbp.is-open), html body .pr-rpt-filter-grp:has(.fbp.is-open) { position: relative; z-index: 1200; }
html body .pr-rpt-filter-grp .fbp-multi { max-width: 360px; }
html body .mg-branch-wrap .fbp-multi { min-width: 190px; }
