/* ═══════════════════════════════════════════════════════════════════
   fs-tabs.css — (2026-12-03 المالك: «عمّمها» ، وبدأنا بكارت الصنف) التبويبات الملوّنة الموحّدة
   ▸ مكان واحد لألوان التبويبات فى كل الشاشات — أى شاشة جديدة تاخدها بكلاسين بس:
       1) على الحاوية:        class="fs-ctabs"     (التبويبات أولاد مباشرين ، والمختار عليه .on)
       2) على أيقونة التبويب:  class="fs-ct-ic"     (المربع الصغير الملوّن)
   ▸ الشكل (المقاسات والترتيب) بيفضل فى ملف الشاشة نفسها — هنا الألوان والحالة المختارة بس
   ▸ أول تبويب بلون الثيم ، والباقى ألوان ثابتة مافيهاش برتقالى (علشان ثيم البرتقالى) ، والمختار تدرّج من لون الثيم
   ▸ التبويب المختار: .on أو .is-on (فواتير المشتريات)
   ▸ المستخدمين بيه: الموظفين (.fem) ، المستخدمين (.fus) ، كارت الصنف (.ic-rail) ، كارت العميل والمورد (.cu-tabs) ،
     المشتريات ومرتجعها وسند الإخراج (.fs-ptabs) ، لوحة الإدارة (.mg-tabs)
   ▸ مش عليه (مقصود): لوحة الرئيسية (.db-tabs بهويتها البرتقالى) وفلتر الجرس (.fsb-tabs)
   ═══════════════════════════════════════════════════════════════════ */

/* لون كل تبويب حسب ترتيبه (--tc) */
html body .fs-ctabs > * { --tc: var(--fs-primary, #0E7C86); }
html body .fs-ctabs > :nth-child(6n+2) { --tc: #2563EB; }   /* أزرق */
html body .fs-ctabs > :nth-child(6n+3) { --tc: #7C3AED; }   /* بنفسجى */
html body .fs-ctabs > :nth-child(6n+4) { --tc: #16A34A; }   /* أخضر */
html body .fs-ctabs > :nth-child(6n+5) { --tc: #DB2777; }   /* وردى */
html body .fs-ctabs > :nth-child(6n+6) { --tc: #0891B2; }   /* سماوى */

/* مقاس افتراضى للتبويب ومربع الأيقونة — بـ :where علشان أى مقاس فى ملف الشاشة يكسبه */
html body :where(.fs-ctabs) > :where(button) { border-radius: 10px; }
html body :where(.fs-ctabs) :where(i.fs-ct-ic) { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; font-size: 16px; }

/* التبويب العادى: الأيقونة جوه مربع فاتح بلونها ، وعند الوقوف بالماوس الخلفية بتاخد لمسة من نفس اللون */
html body .fs-ctabs > :not(#_) { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease; }
html body .fs-ctabs .fs-ct-ic:not(#_) { color: var(--tc) !important; background: color-mix(in srgb, var(--tc) 13%, #fff) !important; transition: background .15s ease, color .15s ease; }
html body .fs-ctabs > :not(.on):not(.is-on):not(#_):hover { background: color-mix(in srgb, var(--tc) 7%, #fff) !important; }

/* المختار: تدرّج من لون الثيم + ظل خفيف ، والكلام والأيقونة أبيض */
html body .fs-ctabs > :is(.on, .is-on):not(#_) { background: linear-gradient(135deg, var(--fs-primary, #0E7C86), var(--fs-primary-deep, #004F63)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 4px 12px color-mix(in srgb, var(--fs-primary) 35%, transparent) !important; }
html body .fs-ctabs > :is(.on, .is-on) .fs-ct-ic:not(#_) { color: #fff !important; background: rgba(255, 255, 255, .2) !important; }
html body .fs-ctabs > :is(.on, .is-on) small { color: rgba(255, 255, 255, .85) !important; }
html body .fs-ctabs > :focus-visible { outline: 2px solid var(--fs-primary) !important; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html body .fs-ctabs > :not(#_), html body .fs-ctabs .fs-ct-ic:not(#_) { transition: none; }
}
