/* ══════════════════════════════════════════════════════════════════════
   fs-users.css — (2026-12-02) المستخدمين ومجموعات المستخدمين وتغيير كلمة المرور + إضافات شاشة الصلاحيات
   ▸ مبنى فوق fs-voucher.css (.fsv) و fs-closing.css (.fcl): الكروت والخانات والجداول والمربعات من هناك ، وده الزيادة بس
   ▸ الألوان من متغيرات الثيم (--fs-primary / --fs-strong / --fs-action / --fs-calm-*)
   ══════════════════════════════════════════════════════════════════════ */

/* ══ المستخدمين ══ */
@media (min-width: 769px) { html body .fus .fus-side { width: 440px; } }
html body .fus .fus-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
html body .fus .fus-tab:not(#_) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px !important; min-height: 0 !important; margin: 0; padding: 0 4px !important; border: 1px solid var(--v-line) !important; border-radius: 10px !important; background: #fff !important; color: var(--v-ink2) !important; font-family: inherit; font-size: 12.5px !important; font-weight: 700; cursor: pointer; box-shadow: none !important; }
html body .fus .fus-tab i { font-size: 18px; }
html body .fus .fus-tab.on:not(#_) { background: var(--fs-primary) !important; border-color: var(--fs-primary) !important; color: #fff !important; }
html body .fus .fus-pane { display: flex; flex-direction: column; gap: 10px; }
html body .fus .fus-flags { display: flex; flex-direction: column; gap: 6px; max-height: calc(100dvh - 380px); overflow-y: auto; padding-inline-end: 2px; }
html body .fus .fus-flag { min-height: 38px; align-items: center; line-height: 1.4; padding: 6px 10px; font-weight: 600; }
html body .fus .fus-inline { display: flex; align-items: center; gap: 8px; padding-inline-start: 34px; font-size: 13px; color: var(--v-ink2); }
html body .fus .fus-inline .fsv-in { width: 110px; height: 36px; }
html body .fus .fus-num .fsv-in { width: 120px; }
html body .fus .fus-move { display: flex; gap: 8px; align-items: center; }
html body .fus .fus-move .fsv-in { flex: 1 1 auto; height: 38px; }
html body .fus .fus-q { flex: 1 1 auto; }
html body .fus .fus-gf { width: 220px; height: 40px; }
html body .fus .fus-br { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v-ink2); }
html body .fus .fcl-tbl tbody tr.is-off td { color: var(--v-mute); }

/* ══ شاشة الصلاحيات: مستخدمى المجموعة + Excel ══ */
html body .pm-users:not(#_) { height: 44px !important; min-height: 0 !important; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 12px !important; border: 1px solid var(--fs-calm-bd, #9CC6D1) !important; border-radius: 12px !important; background: #fff !important; color: var(--fs-primary) !important; font-family: inherit; font-size: 14px !important; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: none !important; }
html body .pm-users i { font-size: 18px; }
html body .pm-ulist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--fs-tint-4, #DCE6E9); border-radius: 12px; max-height: 140px; overflow-y: auto; }
html body .pm-u { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 10px; background: var(--fs-tint-1, #F2F9FA); border: 1px solid var(--fs-tint-4, #DCE6E9); text-decoration: none; color: var(--fs-ink-strong, #0B2A33); line-height: 1.3; }
html body .pm-u b { font-size: 13px; }
html body .pm-u small { font-size: 11.5px; color: #5B7780; }
html body .pm-u.off { background: #FDE8E4; border-color: #F3B8AE; }
html body .pm-u:hover { border-color: var(--fs-primary); }
html body .pm-u-empty { font-size: 13px; color: #5B7780; }
html body .pm-u-acts { display: inline-flex; gap: 6px; margin-inline-start: auto; }
html body .pm-u-acts .pm-users:not(#_) { height: 36px !important; font-size: 13px !important; }
@media (max-width: 768px) {
    html body .pm-users:not(#_) { height: 40px !important; padding: 0 10px !important; }
    html body .pm-u-acts { width: 100%; margin: 0; }
    html body .pm-u-acts .pm-users:not(#_) { flex: 1 1 0; justify-content: center; }
}

/* ══ تغيير كلمة المرور (الهيدر) ══ */
html body .fs-um-pw:not(#_) { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--fs-tint-4); font-size: 14px; font-weight: 700; color: var(--fs-ink-strong, #0B2A33); text-decoration: none; }
html body .fs-um-pw:not(#_):hover { background: var(--fs-tint-1, #F2F9FA); color: var(--fs-primary); }
html body .fs-um-pw i { font-size: 17px; color: var(--fs-primary); }
html body .fcp-back { position: fixed; inset: 0; z-index: 2000; background: rgba(11, 42, 51, .45); }
html body .fcp { position: fixed; z-index: 2001; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); overflow: hidden; font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; color: #0B2A33; }
html body .fcp-hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--fs-calm-bg, #DDEFF3); }
html body .fcp-hd > i { font-size: 20px; color: var(--fs-primary); }
html body .fcp-hd b { flex: 1 1 auto; font-size: 16px; font-weight: 800; }
html body .fcp-x:not(#_) { width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: #3F5C64 !important; box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; }
html body .fcp-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
html body .fcp-l { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #3F5C64; }
html body .fcp-in { height: 44px; padding: 0 12px; border: 1px solid #DCE6E9; border-radius: 10px; background: #F7FAFB; font: inherit; font-size: 15px; outline: none; }
html body .fcp-in:focus { border-color: var(--fs-primary); background: #fff; }
html body .fcp-err { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; color: #B42318; font-size: 13px; font-weight: 700; }
html body .fcp-note { margin: 4px 0 0; font-size: 12px; color: #5B7780; }
html body .fcp-ft { display: flex; gap: 8px; padding: 0 14px 14px; }
html body .fcp-save:not(#_) { flex: 1 1 auto; height: 46px !important; min-height: 0 !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0 !important; border-radius: 12px !important; background: var(--fs-action, #D97726) !important; color: #fff !important; font-family: inherit; font-size: 15px !important; font-weight: 800; box-shadow: none !important; }
html body .fcp-cancel:not(#_) { height: 46px !important; min-height: 0 !important; padding: 0 18px !important; border: 1px solid #DCE6E9 !important; border-radius: 12px !important; background: #fff !important; color: #3F5C64 !important; font-family: inherit; font-size: 14px !important; font-weight: 700; box-shadow: none !important; }

@media (max-width: 768px) {
    html body .fus .fus-gf { width: 100%; }
    html body .fus .fcl-list-hd.fcl-row { flex-direction: column; align-items: stretch; }
    html body .fus .fus-flags { max-height: none; }
    html body .fcp { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ══ (2026-12-02 المالك) FsPicker — نفس اختيار الفرع (fbp-* فى fs-voucher.css) بالظبط ، الألوان بس تركوازى بدل الكهرمانى ══ */
html body .fbp.fbp-calm .fbp-btn:not(#_) { border-color: var(--fs-tint-4, #BFE0E8) !important; background: var(--fs-tint-2, #EEF7F9) !important; color: var(--fs-primary-ink, #00495B) !important; }
html body .fbp.fbp-calm .fbp-btn:not(#_):hover, html body .fbp.fbp-calm .fbp-btn:not(#_):focus-visible, html body .fbp.fbp-calm.is-open .fbp-btn:not(#_) { border-color: var(--fs-primary, #006780) !important; box-shadow: 0 0 0 3px rgba(var(--fs-primary-rgb, 0, 103, 128), .14) !important; }
html body .fbp.fbp-calm .fbp-ic { background: var(--fs-primary, #006780); }
html body .fbp.fbp-calm .fbp-no { color: var(--fs-primary, #006780); border-color: var(--fs-tint-4, #BFE0E8); }
html body .fbp.fbp-calm .fbp-chev { color: var(--fs-primary, #006780); }
html body .fbp.fbp-calm .fbp-pop { border-color: var(--fs-tint-4, #BFE0E8); }
html body .fbp.fbp-calm .fbp-pop-hd { background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary-ink, #00495B); }
html body .fbp.fbp-calm .fbp-pop-hd > i, html body .fbp.fbp-calm .fbp-count, html body .fbp.fbp-calm .fbp-item-ok { color: var(--fs-primary, #006780); }
html body .fbp.fbp-calm .fbp-x:not(#_) { color: var(--fs-primary-ink, #00495B) !important; }
html body .fbp.fbp-calm .fbp-search:focus-within { border-color: var(--fs-primary, #006780); }
html body .fbp.fbp-calm .fbp-item:not(#_):hover, html body .fbp.fbp-calm .fbp-item.is-hi:not(#_) { background: var(--fs-tint-2, #EEF7F9) !important; border-color: var(--fs-tint-4, #BFE0E8) !important; }
html body .fbp.fbp-calm .fbp-item.is-cur:not(#_) { color: var(--fs-primary-ink, #00495B) !important; }
html body .fbp.fbp-calm .fbp-item.is-cur .fbp-item-no { background: var(--fs-primary, #006780); color: #fff; }
html body .fus .fus-move .fbp { flex: 1 1 auto; }
html body .fus .fbp.fus-gf { flex: none; }
html body .fus .fbp.fus-gf .fbp-btn:not(#_) { height: 40px !important; }
@media (max-width: 768px) { html body .fus .fbp.fus-gf { width: 100%; } }
/* (2026-12-02) شاشة الصلاحيات: اختيار المجموعة بقى FsPicker — الإطار الخارجى بيتشال علشان مايبقاش إطارين */
html body .pm-grp.pm-grp-pk { border: 0; background: none; padding: 0; height: auto; gap: 8px; }
html body .pm-grp.pm-grp-pk .fbp { flex: 1 1 auto; min-width: 0; }
/* (2026-12-02 المالك) الويب والجوال معلومة بس فى ملف المستخدم والكروت */
html body .fus .fus-access { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; }
html body .fus .fus-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: #F3F5F6; border: 1px solid #E1E7E9; color: #5B7780; font-size: 12.5px; font-weight: 700; }
html body .fus .fus-chip i { font-size: 15px; }
html body .fus .fus-chip.on { background: #E7F6EE; border-color: #BFE5CF; color: #17663F; }
html body .fus .fus-access small { display: inline-flex; align-items: center; gap: 4px; color: #6B8187; font-size: 11.5px; }
html body .fus .fus-acc { display: inline-flex; gap: 6px; margin-top: 3px; }
html body .fus .fus-acc i { font-size: 15px; color: #C9D3D6; }
html body .fus .fus-acc i.on { color: #17663F; }
html body .fus .fcl-tbl td.fus-gn { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }   /* اسم المجموعة سطر واحد (بعد عمودى الويب والجوال) */

/* ══ (2026-12-02 المالك) إدارة الفروع: الشركات والفروع والمخازن (.fbr) — نفس شكل المستخدمين ══ */
html body .fbr .fbr-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 1px; border: 1px solid rgba(0, 0, 0, .08); }
html body .fbr .fbr-en { color: var(--v-mute, #5B7780); }
html body .fbr .fbr-res { background: var(--fs-tint-2, #EEF7F9); color: var(--fs-primary-ink, #00495B); }
html body .fbr .fbr-note { font-size: 12px; margin: 0; }
html body .fbr .fbr-branch { width: 230px; flex: none; }
html body .fbr .fbr-branch .fbp-btn:not(#_) { height: 38px !important; }
html body .fbr .fcl-acts a.fsv-tile { text-decoration: none; }
@media (max-width: 768px) { html body .fbr .fbr-branch { width: 100%; order: 10; } }
