/* ============================================================
   Jadawel UI v2 — «Vitrine» سمة عصرية أنيقة
   خلفية محيطية متدرجة · بطاقات بطبقات ظل ناعمة · تدرج نيلي→بنفسجي
   زجاجية (frost) للشريط العلوي وأغطية النوافذ · خط Noto Kufi Arabic
   كل الأصناف السابقة محفوظة بأسمائها — ترقية بصرية فقط
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --ju-bg:      #F6F7FB;
    --ju-card:    #FFFFFF;
    --ju-border:  rgba(15, 23, 42, 0.07);
    --ju-border-2: #E5E9F2;
    --ju-text:    #0F172A;
    --ju-mute:    #64748B;
    --ju-brand:   #4F46E5;
    --ju-brand-2: #6366F1;
    --ju-brand-3: #818CF8;
    --ju-violet:  #7C3AED;
    --ju-brand-50:#EEF2FF;
    --ju-grad:     linear-gradient(135deg, #6366F1 0%, #4F46E5 55%, #4338CA 100%);
    --ju-grad-soft: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    --ju-ring:     0 0 0 4px rgba(99, 102, 241, 0.16);
    --ju-sh-card:  0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -20px rgba(15, 23, 42, 0.14);
    --ju-sh-pop:   0 4px 10px rgba(15, 23, 42, 0.05), 0 24px 56px -24px rgba(15, 23, 42, 0.22);
    --ju-sh-brand: 0 8px 20px -6px rgba(79, 70, 229, 0.45);
    --ju-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── الأساس ── */
html { color-scheme: light; }
body, .fi-body {
    background:
        radial-gradient(1100px 700px at 88% -12%, rgba(99, 102, 241, 0.075), transparent 62%),
        radial-gradient(900px 650px at -8% 108%, rgba(124, 58, 237, 0.055), transparent 58%),
        radial-gradient(700px 500px at 50% 118%, rgba(56, 189, 248, 0.04), transparent 60%),
        var(--ju-bg) !important;
    background-attachment: fixed !important;
    font-family: 'Cairo', 'Noto Kufi Arabic', system-ui, sans-serif !important;
    color: var(--ju-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.fi-header-heading { font-weight: 800 !important; font-size: 25px !important; color: #0F172A !important; }
.fi-header-subheading { color: #64748B !important; font-size: 14px !important; margin-top: 4px !important; line-height: 1.7; }
::selection { background: rgba(99, 102, 241, .22); color: #1E1B4B; }
:focus-visible { outline: 2px solid #A5B4FC; outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: #C7CDD9 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
    background: #C7CDD9; border-radius: 999px;
    border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ── السايدبار: أبيض بغسلة نيلية علوية وعنصر نشط متدرج ── */
.fi-sidebar {
    background:
        radial-gradient(560px 210px at 50% -60px, rgba(99, 102, 241, 0.07), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #FCFCFF 100%) !important;
    border-inline-end: 1px solid var(--ju-border) !important;
}
.fi-sidebar-group-label { color: #94A3B8 !important; font-size: .68rem !important; font-weight: 700; }
.fi-sidebar-item {
    border-radius: .75rem !important; color: #475569 !important;
    transition: background .18s var(--ju-ease), color .18s var(--ju-ease);
}
.fi-sidebar-item:hover { background: #F4F5FB !important; color: #0F172A !important; }
.fi-sidebar-item-active, .fi-sidebar-item[aria-current="page"] {
    background: var(--ju-grad-soft) !important; color: var(--ju-brand) !important; font-weight: 700;
    box-shadow: inset 0 0 0 1px #C7D2FE, 0 4px 14px -6px rgba(79, 70, 229, 0.28);
}
.fi-sidebar-item-active .fi-sidebar-item-icon { color: var(--ju-brand) !important; }

/* ── التوب بار: زجاجي مصقول ── */
.fi-topbar {
    background: rgba(246, 247, 251, 0.72) !important;
    backdrop-filter: blur(16px) saturate(1.7);
    -webkit-backdrop-filter: blur(16px) saturate(1.7);
    border-bottom: 1px solid var(--ju-border) !important;
}
.fi-topbar .fi-global-search-field input {
    border-radius: 9999px !important; background: #fff !important;
    border: 1px solid var(--ju-border) !important;
    transition: border-color .18s, box-shadow .18s;
}
.fi-topbar .fi-global-search-field input:focus {
    border-color: var(--ju-brand-3) !important;
    box-shadow: var(--ju-ring) !important;
}

/* ── بطاقات ورقائق Filament ── */
.fi-card, .fi-section, .fi-wi-stat {
    background: #fff !important; border: 1px solid var(--ju-border) !important;
    border-radius: 1rem !important; box-shadow: var(--ju-sh-card) !important;
}
.fi-btn {
    border-radius: .75rem !important; font-weight: 700;
    transition: transform .15s var(--ju-ease), box-shadow .2s, background .15s;
}
.fi-btn:active { transform: scale(0.985); }
.fi-btn-color-primary {
    background: var(--ju-grad) !important; border: none !important;
    box-shadow: var(--ju-sh-brand) !important;
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
.fi-btn-color-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.55) !important; }
.fi-btn-color-primary:active { transform: scale(0.985); }
.fi-badge { border-radius: 9999px !important; font-weight: 700 !important; }
.fi-input, .fi-select, .fi-textarea, .fi-fo-input, .fi-fo-select, .fi-fo-textarea {
    border-radius: .75rem !important; border-color: var(--ju-border-2) !important;
    background: #FBFBFE; transition: border-color .18s, box-shadow .18s;
}
.fi-input:focus, .fi-fo-input:focus { border-color: var(--ju-brand-3) !important; box-shadow: var(--ju-ring) !important; }
.fi-ta-table thead th {
    color: #64748B !important; font-weight: 700 !important;
    background: #F8F9FF !important;
    border-bottom: 1px solid var(--ju-border) !important;
}
.fi-ta-table tbody tr { transition: background .15s; }
.fi-ta-table tbody tr:hover { background: #F8F9FF !important; }

/* ── شريط الخطوات (دوائر متصلة) ── */
.ju-steps { display: flex; align-items: flex-start; margin-bottom: 2rem; }
.ju-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.ju-step .c {
    width: 40px; height: 40px; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: #F1F5F9; color: #94A3B8; border: 2px solid #E2E8F0;
    transition: all .3s var(--ju-ease);
}
.ju-step .l { font-size: 11px; color: #64748B; text-align: center; white-space: nowrap; transition: color .2s; }
.ju-step.is-active .c {
    background: var(--ju-grad); border-color: transparent; color: #fff;
    box-shadow: var(--ju-ring), 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: scale(1.06);
}
.ju-step.is-active .l { color: var(--ju-brand); font-weight: 700; }
.ju-step.is-future { opacity: .55; }
.ju-step:hover { text-decoration: none; }
.ju-step:hover .c { border-color: #C7D2FE; color: #4F46E5; }
.ju-arrow {
    flex: 1; height: 2px; background: linear-gradient(90deg, #E2E8F0, #EAEFF8);
    margin-top: 19px; min-width: 16px; border-radius: 2px;
}

/* ── بطاقة إحصاء (عمودية: بلاطة أعلى ← رقم ← تسمية) ── */
.ju-stat {
    background: var(--ju-card); border: 1px solid var(--ju-border); border-radius: 16px;
    padding: 16px; box-shadow: var(--ju-sh-card);
    transition: transform .25s var(--ju-ease), box-shadow .25s var(--ju-ease), border-color .2s;
    position: relative; overflow: hidden;
}
.ju-stat::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--ju-grad); opacity: 0; transition: opacity .25s;
}
.ju-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 20px 44px -16px rgba(79, 70, 229, 0.24);
    border-color: #DDE3F2;
}
.ju-stat:hover::after { opacity: 1; }
.ju-stat .tile {
    width: 2.5rem; height: 2.5rem; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
/* تحويل البنية الأفقية الحالية لعمودية كما في النموذج */
.ju-stat > .flex { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.ju-stat .num {
    font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.ju-stat .lbl { font-size: 12px; color: #64748B; margin-top: 2px; }

/* ── رأس لوحة: صف حر بلا خلفية/حد — بلاطة + عنوان + زر صلب ── */
.ju-section { display: flex; flex-direction: column; }
.ju-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; /* mb-4 كالنموذج */
}
.ju-panel {
    background: var(--ju-card); border: 1px solid var(--ju-border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--ju-sh-card);
    transition: box-shadow .25s var(--ju-ease);
}
.ju-panel:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 40px -20px rgba(15, 23, 42, 0.18); }
.ju-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px; background: transparent; border: none;
}
.ju-panel-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #0F172A; font-size: 16px; }
.ju-panel-title .tile {
    width: 32px; height: 32px; border-radius: 9px; background: var(--ju-grad-soft);
    display: flex; align-items: center; justify-content: center; color: #4F46E5;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}
/* زر صلب متدرج نيلي */
.ju-btn-soft {
    display: inline-flex; align-items: center; gap: .375rem; cursor: pointer;
    background: var(--ju-grad); color: #fff; border: none;
    padding: 8px 14px; border-radius: 12px;
    font-size: 12px; font-weight: 600; font-family: inherit;
    box-shadow: var(--ju-sh-brand);
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
.ju-btn-soft:hover { filter: brightness(1.07); box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.55); transform: translateY(-1px); }
.ju-btn-soft:active { transform: scale(0.97); }
/* حذف الكل: نصي أحمر صغير كالنموذج */
.ju-btn-danger-soft {
    display: inline-flex; align-items: center; gap: .25rem; cursor: pointer;
    font-size: 12px; font-weight: 500; padding: 8px 8px; border-radius: 8px;
    color: #EF4444; background: transparent; border: none; transition: background .15s, color .15s;
    font-family: inherit;
}
.ju-btn-danger-soft:hover { background: #FEF2F2; color: #DC2626; }
.ju-count-pill {
    border-radius: 9999px; background: #F1F5F9; color: #64748B;
    padding: .12rem .6rem; font-size: .68rem; font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-variant-numeric: tabular-nums;
}
.ju-search {
    width: 100%; border-radius: 12px !important; border: 1px solid var(--ju-border-2) !important;
    font-size: .875rem; background: #FBFBFE !important; padding: 10px 16px;
    font-family: inherit; color: #0F172A;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.ju-search:hover { border-color: #C7D2FE !important; }
.ju-search:focus {
    outline: none; background: #fff !important;
    border-color: var(--ju-brand-3) !important; box-shadow: var(--ju-ring);
}

/* ── حالة فراغ النموذج ── */
.ju-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.5rem 1rem; text-align: center; }
.ju-empty .t { font-weight: 800; color: #475569; font-size: .85rem; }
.ju-empty .d { color: #94A3B8; font-size: .72rem; line-height: 1.7; }

/* ── 22. بطاقة الفراغ المتقطعة الجذابة (كالنموذج) — قابلة للنقر للإضافة ── */
.ju-empty-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 2.25rem 1.5rem; text-align: center;
    background: linear-gradient(180deg, rgba(248,250,252,0.6), rgba(255,255,255,0.3));
    border: 2px dashed #D6DCE8; border-radius: 16px;
    cursor: pointer; width: 100%;
    transition: all .25s var(--ju-ease);
    position: relative; overflow: hidden;
}
.ju-empty-card:hover {
    border-color: #A5B4FC;
    background: linear-gradient(180deg, rgba(238,242,255,0.5), rgba(255,255,255,0.5));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.18);
}
.ju-empty-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(240px 120px at 50% 0%, rgba(99, 102, 241, 0.05), transparent 70%);
}
.ju-empty-card .ic {
    width: 3rem; height: 3rem; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EEF2FF, #F5F7FF); color: #6366F1;
    border: 1px solid #E0E7FF;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    transition: transform .3s var(--ju-ease), box-shadow .25s;
}
.ju-empty-card:hover .ic {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.35);
}
.ju-empty-card .plus {
    position: absolute; top: 0.75rem; inset-inline-start: 0.75rem;
    width: 1.5rem; height: 1.5rem; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ju-grad); color: #fff;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.4);
    font-size: 0.85rem; font-weight: 800; line-height: 1;
    opacity: 0; transform: scale(0.6) rotate(-90deg);
    transition: all .3s var(--ju-ease);
}
.ju-empty-card:hover .plus { opacity: 1; transform: scale(1) rotate(0deg); }
.ju-empty-card .t { font-size: 0.9375rem; font-weight: 800; color: #334155; }
.ju-empty-card .d { font-size: 0.78rem; color: #94A3B8; line-height: 1.8; max-width: 22rem; }
.ju-empty-card .cta {
    margin-top: 0.25rem; font-size: 0.78rem; font-weight: 700; color: #4F46E5;
    display: inline-flex; align-items: center; gap: 0.3rem;
    opacity: 0.85; transition: opacity .2s;
}
.ju-empty-card:hover .cta { opacity: 1; }

/* ── بطاقة تقدم الإعداد (سايدبار) ── */
.ju-progress-card {
    margin: .75rem; padding: .8rem; border-radius: .9rem;
    background: var(--ju-grad-soft); border: 1px solid #C7D2FE;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.ju-progress-card .t { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; color: #4338CA; margin-bottom: .5rem; }
.ju-progress-track { width: 100%; height: .35rem; background: rgba(99, 102, 241, 0.18); border-radius: 9999px; overflow: hidden; margin-bottom: .3rem; }
.ju-progress-fill {
    height: 100%; background: linear-gradient(90deg, #818CF8, #4F46E5 60%, #4338CA);
    border-radius: 9999px; transition: width .6s var(--ju-ease);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}
.ju-progress-card .x { font-size: .65rem; color: #6366F1; font-weight: 700; }

/* ── hover البطاقات: رفع + توهج نيلي ── */
[data-ju-panel] .ju-fade {
    transition: transform 0.3s var(--ju-ease), box-shadow 0.3s var(--ju-ease), border-color .2s;
}
[data-ju-panel] .ju-fade:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(79, 70, 229, 0.22);
}

/* ── استجابة الشاشات الضيقة: الأعمدة تتكدس عمودياً بترتيب منطقي ── */
@media (max-width: 1024px) {
    .jw-page > div[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    #juCols { grid-template-columns: 1fr !important; }
    #juCols > [data-ju-panel="stages"] { order: 1; }
    #juCols > [data-ju-panel="subjects"] { order: 2; }
    #juCols > div:last-child { order: 3; }
}
@media (max-width: 560px) {
    .jw-page > div[style*="repeat(4"] { grid-template-columns: 1fr !important; }
    .ju-steps { flex-wrap: wrap; gap: 0.5rem; }
    .ju-arrow { min-width: 12px; }
}

/* ── ظهور متدرج للبطاقات (stagger ناعم) ── */
@keyframes ju-fade-up {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ju-fade { animation: ju-fade-up .55s var(--ju-ease) both; }

/* ── بطاقة المعالج الذكي: تدرج نيلي→بنفسجي بلمعة زجاجية ── */
.ju-wizard {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin: 0.875rem 0; padding: 1.1rem 1.25rem;
    background:
        radial-gradient(420px 220px at 92% -30%, rgba(255, 255, 255, 0.22), transparent 62%),
        radial-gradient(340px 200px at 4% 130%, rgba(129, 140, 248, 0.35), transparent 60%),
        linear-gradient(130deg, #4338CA 0%, #4F46E5 48%, #7C3AED 100%);
    border-radius: 1rem;
    box-shadow: 0 14px 36px -10px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
    position: relative; overflow: hidden;
}
.ju-wizard-text { display: flex; align-items: center; gap: .9rem; }
.ju-wizard-icon {
    width: 3rem; height: 3rem; border-radius: .9rem; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}
.ju-wizard h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .25rem; }
.ju-wizard p { font-size: .8rem; color: rgba(255, 255, 255, 0.82); margin: 0; line-height: 1.7; }
.ju-wizard-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.ju-wizard-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem 1rem; border-radius: .8rem; cursor: pointer;
    background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px);
    transition: background .18s, transform .15s var(--ju-ease);
}
.ju-wizard-btn:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.ju-wizard-btn-go {
    background: #fff; color: #4F46E5; border-color: #fff;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.22);
}
.ju-wizard-btn-go:hover { background: #EEF2FF; transform: translateY(-1px); }

/* ── شريط البحث الموحد + رقائق الفلترة ── */
.ju-toolbar {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.ju-toolbar-search {
    flex: 1; min-width: 220px; position: relative;
    display: flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--ju-border-2); border-radius: 12px;
    padding: 10px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color .18s, box-shadow .18s;
}
.ju-toolbar-search:hover { border-color: #C7D2FE; }
.ju-toolbar-search:focus-within { border-color: var(--ju-brand-3); box-shadow: var(--ju-ring); }
.ju-toolbar-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: .875rem; color: #0F172A;
}
.ju-toolbar-search input::placeholder { color: #94A3B8; }
.ju-toolbar-chips { display: flex; align-items: center; gap: .4rem; }
.ju-chip {
    padding: 10px 14px; border-radius: 9999px; cursor: pointer;
    font-family: inherit; font-size: .75rem; font-weight: 500;
    background: #fff; color: #64748B; border: 1px solid var(--ju-border-2);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: all .18s var(--ju-ease);
}
.ju-chip:hover { border-color: #C7D2FE; color: #4F46E5; transform: translateY(-1px); }
.ju-chip.is-on {
    background: var(--ju-grad-soft); color: #4F46E5; border-color: #C7D2FE;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12), 0 3px 10px -4px rgba(79, 70, 229, 0.3);
    font-weight: 600;
}

/* ── رأس نافذة منبثقة موحد ── */
.ju-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(180deg, #FFFFFF, #FBFBFF);
    border-bottom: 1px solid #EEF0F7;
}
.ju-modal-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; color: #0F172A; margin: 0; }
.ju-modal-title .tile {
    width: 32px; height: 32px; border-radius: 9px; background: var(--ju-grad-soft); color: #4F46E5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}
.ju-modal-close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; border: none; cursor: pointer;
    background: transparent; color: #94A3B8; padding: 0;
    transition: background .15s, color .15s, transform .25s var(--ju-ease);
}
.ju-modal-close:hover { background: #F1F5F9; color: #475569; transform: rotate(90deg); }
.ju-modal-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.55rem 1.25rem; border-radius: 12px; border: none; cursor: pointer;
    background: var(--ju-grad); color: #fff; font-family: inherit;
    font-size: 0.875rem; font-weight: 600; box-shadow: var(--ju-sh-brand);
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
.ju-modal-btn-primary:hover { filter: brightness(1.07); box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.55); transform: translateY(-1px); }
.ju-modal-btn-primary:active { transform: scale(0.97); }
.ju-modal-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.55rem 1rem; border-radius: 12px; cursor: pointer;
    background: #fff; color: #475569; border: 1px solid var(--ju-border-2); font-family: inherit;
    font-size: 0.875rem; font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background .15s, border-color .15s, transform .15s var(--ju-ease);
}
.ju-modal-btn-secondary:hover { background: #F8F9FF; border-color: #C7D2FE; transform: translateY(-1px); }
.ju-modal-btn-secondary:active { transform: scale(0.97); }

/* ============================================================
   لمسات «Vitrine» الإضافية — توحيد العناصر المضمنة (inline)
   ============================================================ */

/* بلاطات الأيقونات المضمنة (48×48 و 2.5rem): حلقة زجاجية داخلية */
[style*="width:48px;height:48px;border-radius:12px"],
[style*="width:2.5rem;height:2.5rem;border-radius:0.75rem"] {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

/* حدود البطاقات المضمنة: لون واحد متناسق بدل التعدد */
[style*="border:1px solid #E2E8F0"],
[style*="border:1px solid #e2e8f0"],
[style*="border:1px solid #dbeafe"],
[style*="border:1px solid #E5E7EB"] {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* أغطية النوافذ المنبثقة: زجاجية داكنة ناعمة بدل الأسود الصلب */
[style*="background:rgba(0,0,0,0.55)"] {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px) saturate(1.15);
    -webkit-backdrop-filter: blur(6px) saturate(1.15);
}

/* لوحات النوافذ البيضاء (radius 1rem مضمن): ظل عميق أنيق */
[style*="border-radius:1rem"][style*="background:white"],
[style*="border-radius:1rem"][style*="background:#ffffff"],
[style*="border-radius:1rem"][style*="background:#fff"] {
    box-shadow: var(--ju-sh-pop) !important;
}

/* أرقام جدولية في كل مكان */
.ju-wizard *, .ju-stat *, .ju-panel-title *, .ju-count-pill { font-variant-numeric: tabular-nums; }

/* ── توحيد كل الانتقائات النظامية (select) بلغة التصميم ── */
.fi-body select,
main select,
.ju-panel select,
[data-ju-panel] select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--ju-border-2) !important;
    border-radius: 12px !important;
    background-color: #FBFBFE !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.8rem center !important;
    padding: 9px 14px 9px 2.2rem !important;
    min-height: 40px;
    font-family: inherit !important;
    font-size: .8rem;
    font-weight: 600;
    color: #0F172A !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.fi-body select:hover,
main select:hover { border-color: #C7D2FE !important; }
.fi-body select:focus,
main select:focus {
    outline: none !important;
    border-color: var(--ju-brand-3) !important;
    box-shadow: var(--ju-ring) !important;
    background-color: #fff !important;
}
.fi-body select:disabled,
main select:disabled { opacity: .55; cursor: not-allowed; }
select option { font-family: inherit; color: #0F172A; background: #fff; }

/* ── توحيد الحاويات الخام (Tailwind islands) مع نظام Vitrine ── */
div.rounded-xl.border.border-gray-200,
section.rounded-xl.border.border-gray-200,
div.rounded-xl.border.border-slate-200,
section.rounded-xl.border.border-slate-200 {
    border-radius: 14px !important;
    border-color: rgba(15, 23, 42, 0.07) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -20px rgba(15, 23, 42, 0.14) !important;
}
div.rounded-lg.border.border-gray-200,
section.rounded-lg.border.border-gray-200,
div.rounded-lg.border.border-slate-200,
section.rounded-lg.border.border-slate-200 {
    border-radius: 12px !important;
    border-color: rgba(15, 23, 42, 0.07) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* حقول الإدخال الخام: نفس لغة النموذج */
input.border-gray-200, input.border-gray-300,
textarea.border-gray-200, textarea.border-gray-300 {
    border-color: var(--ju-border-2) !important;
    border-radius: 12px !important;
    background: #FBFBFE;
    transition: border-color .18s, box-shadow .18s;
}
input.border-gray-200:focus, input.border-gray-300:focus,
textarea.border-gray-200:focus, textarea.border-gray-300:focus {
    outline: none !important;
    border-color: var(--ju-brand-3) !important;
    box-shadow: var(--ju-ring) !important;
    background: #fff;
}

/* أزرار-شارات خام صغيرة (chips فئات border): تنعيم */
button.rounded-lg.border.border-gray-200 {
    border-color: var(--ju-border-2) !important;
    border-radius: 9999px !important;
    transition: all .18s var(--ju-ease);
}
button.rounded-lg.border.border-gray-200:hover {
    border-color: #C7D2FE !important; color: #4F46E5;
    transform: translateY(-1px);
}

/* ── توحيد حقول وأزرار النوافذ القديمة (inline خام) بنظام Vitrine ── */
input[style*="border:1px solid #d1d5db"],
input[style*="border:1px solid #D1D5DB"],
textarea[style*="border:1px solid #d1d5db"],
select[style*="border:1px solid #d1d5db"] {
    border: 1px solid var(--ju-border-2) !important;
    border-radius: 12px !important;
    background: #FBFBFE !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
input[style*="border:1px solid #d1d5db"]:hover,
textarea[style*="border:1px solid #d1d5db"]:hover,
select[style*="border:1px solid #d1d5db"]:hover { border-color: #C7D2FE !important; }
input[style*="border:1px solid #d1d5db"]:focus,
textarea[style*="border:1px solid #d1d5db"]:focus,
select[style*="border:1px solid #d1d5db"]:focus {
    outline: none !important;
    border-color: var(--ju-brand-3) !important;
    box-shadow: var(--ju-ring) !important;
    background: #fff !important;
}

/* زر الحفظ النيلي السادة داخل النوافذ: تدرج النظام + ظل */
button[style*="background:#4f46e5"],
button[style*="background:#4F46E5"] {
    background: var(--ju-grad) !important;
    border-radius: 12px !important;
    box-shadow: var(--ju-sh-brand);
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
button[style*="background:#4f46e5"]:hover,
button[style*="background:#4F46E5"]:hover {
    filter: brightness(1.07);
    box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}
button[style*="background:#4f46e5"]:active,
button[style*="background:#4F46E5"]:active { transform: scale(0.97); }
button[style*="background:#4f46e5"]:disabled,
button[style*="background:#4F46E5"]:disabled { opacity: .6; filter: grayscale(.2); transform: none; }

/* زر الإلغاء محدود الإطار داخل النوافذ: نمط ثانوي أنيق */
button[style*="border:1px solid #d1d5db"][style*="color:#374151"],
button[style*="border:1px solid #D1D5DB"][style*="color:#374151"] {
    border-color: var(--ju-border-2) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background .15s, border-color .15s, transform .15s var(--ju-ease);
}
button[style*="border:1px solid #d1d5db"][style*="color:#374151"]:hover,
button[style*="border:1px solid #D1D5DB"][style*="color:#374151"]:hover {
    background: #F8F9FF; border-color: #C7D2FE; transform: translateY(-1px);
}

/* ============================================================
   Vitrine Polish — طبقة الجاذبية
   لمسات حية: لمعان، نبض، تدرجات نصية، وتفاعلات دقيقة
   ============================================================ */

/* ── 1. عناوين الصفحات: تدرج نصي نيلي عميق ── */
.fi-header-heading,
.fi-simple-page h1 {
    background-image: linear-gradient(120deg, #0F172A 30%, #334155 55%, #4F46E5 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

/* ── 2. صفحة الدخول: بطاقة مهيبة بشريط هوية علوي ── */
.fi-simple-main {
    border-radius: 20px !important;
    border: 1px solid var(--ju-border) !important;
    box-shadow: var(--ju-sh-pop) !important;
    position: relative;
    overflow: hidden;
    animation: ju-fade-up .6s var(--ju-ease) both;
}
.fi-simple-main::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--ju-grad);
    z-index: 1;
}
.fi-simple-page img { filter: drop-shadow(0 6px 16px rgba(79, 70, 229, 0.3)); }

/* حقول دخول Filament: زوايا أنعم وحلقة تركيز نيلية */
.fi-input-wrp { border-radius: 12px !important; transition: box-shadow .18s, border-color .18s; }
.fi-input-wrp:focus-within {
    box-shadow: 0 0 0 1px #A5B4FC, var(--ju-ring) !important;
}
.ws-google-btn {
    border-radius: 12px !important;
    border-color: var(--ju-border-2) !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all .18s var(--ju-ease);
}
.ws-google-btn:hover {
    border-color: #C7D2FE !important; background: #F8F9FF;
    transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.25);
}

/* ── 3. المعالج الذكي: لمعان يكتسح السطح دورياً ── */
.ju-wizard::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
    transform: translateX(-160%) skewX(-5deg);
    animation: ju-shine 5s var(--ju-ease) infinite;
}
@keyframes ju-shine {
    0%, 55% { transform: translateX(160%) skewX(-5deg); }
    100% { transform: translateX(-160%) skewX(-5deg); }
}

/* ── 4. الأزرار الصلبة: وميض يمر عند المرور ── */
.ju-btn-soft, .ju-modal-btn-primary,
button[style*="background:#4f46e5"], button[style*="background:#4F46E5"] {
    position: relative; overflow: hidden;
}
.ju-btn-soft::after, .ju-modal-btn-primary::after,
button[style*="background:#4f46e5"]::after, button[style*="background:#4F46E5"]::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; width: 36%;
    left: -60%; transform: skewX(-22deg);
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left .55s var(--ju-ease); pointer-events: none;
}
.ju-btn-soft:hover::after, .ju-modal-btn-primary:hover::after,
button[style*="background:#4f46e5"]:hover::after, button[style*="background:#4F46E5"]:hover::after { left: 128%; }

/* ── 5. بطاقات الإحصاء: البلاطة تتنفس عند المرور ── */
.ju-stat .tile { transition: transform .35s var(--ju-ease); }
.ju-stat:hover .tile { transform: scale(1.1) rotate(-4deg); }
.ju-stat .num { transition: letter-spacing .25s var(--ju-ease); }
.ju-stat:hover .num { letter-spacing: 0.02em; }

/* ── 6. خطوة النشطة في شريط التقدم: نبض نيلي ── */
@keyframes ju-pulse {
    0%   { box-shadow: var(--ju-ring), 0 6px 16px rgba(79, 70, 229, 0.4), 0 0 0 0 rgba(79, 70, 229, 0.30); }
    70%  { box-shadow: var(--ju-ring), 0 6px 16px rgba(79, 70, 229, 0.4), 0 0 0 11px rgba(79, 70, 229, 0); }
    100% { box-shadow: var(--ju-ring), 0 6px 16px rgba(79, 70, 229, 0.4), 0 0 0 0 rgba(79, 70, 229, 0); }
}
.ju-step.is-active .c { animation: ju-pulse 2.4s ease-out infinite; }

/* ── 7. ظهور متتابع أرقام للبطاقات (stagger) ── */
.ju-fade:nth-child(2) { animation-delay: .07s; }
.ju-fade:nth-child(3) { animation-delay: .14s; }
.ju-fade:nth-child(4) { animation-delay: .21s; }
.ju-fade:nth-child(5) { animation-delay: .28s; }

/* ── 8. حالات الفراغ: أيقونة داخل هالة ناعمة ── */
.ju-empty svg, .ju-empty x-heroicon-o-user-group { opacity: .9; }
.ju-empty .t { background-image: linear-gradient(120deg, #334155, #4F46E5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── 9. لمسات نصية ── */
input::placeholder, textarea::placeholder { color: #94A3B8; }
.ju-search::placeholder { color: #94A3B8; }

/* ── 10. زر توليد الجدول الرئيسي: حضور أقوى ── */
.fi-btn-color-primary { letter-spacing: .01em; }

/* ── 11. القوائم المنسدلة (قائمة المستخدم): لوحة مهيبة ── */
.fi-dropdown-panel,
.fi-user-menu-panel {
    border-radius: 16px !important;
    border: 1px solid var(--ju-border) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 24px 48px -16px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
    animation: ju-dropdown-in .22s var(--ju-ease) both;
    background: #fff;
}
@keyframes ju-dropdown-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* رأس القائمة (اسم المستخدم) */
.fi-dropdown-panel > div:first-child {
    background: linear-gradient(180deg, #F8F9FF, #FFFFFF);
    border-bottom: 1px solid #EEF0F7;
    padding: 12px 16px;
}
/* عناصر القائمة: hover نيلي ناعم */
.fi-dropdown-list-item button:hover,
.fi-dropdown-list-item a:hover {
    background: #F4F5FB !important;
}
.fi-dropdown-list-item button:active,
.fi-dropdown-list-item a:active { transform: scale(0.99); }

/* مبدّل الوضع (٣ أيقونات): تحويله لشريط مقسّم أنيق */
.fi-dropdown-list-item .flex.items-center.justify-center {
    gap: 2px; padding: 3px;
    background: #F1F4F9; border-radius: 10px;
}
.fi-dropdown-list-item .flex.items-center.justify-center button {
    border-radius: 8px !important;
    transition: all .18s var(--ju-ease);
    position: relative;
}
.fi-dropdown-list-item .flex.items-center.justify-center button:hover {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    color: #4F46E5 !important;
    transform: translateY(-1px);
}

/* ── 12. تلميحات السايدبار المصغّر: توحيد ── */
[role="tooltip"], .fi-tooltip {
    border-radius: 10px !important;
    font-family: inherit !important;
}

/* ── 13. جداول Filament: صفوف بخطوط شعرية خفيفة ── */
.fi-ta-table tbody tr:nth-child(even) { background: #FBFBFE; }

/* ── 14. تنبيهات Filament (toasts): بطاقات زجاجية أنيقة ── */
.fi-notif {
    border-radius: 14px !important;
    border: 1px solid var(--ju-border) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 20px 44px -14px rgba(15, 23, 42, 0.22) !important;
    overflow: hidden;
    font-family: inherit !important;
    animation: ju-fade-up .35s var(--ju-ease) both;
}
.fi-notif-icon-ctn { border-radius: 10px !important; }
.fi-notif-color-success { border-inline-start: 3px solid #10B981 !important; }
.fi-notif-color-danger  { border-inline-start: 3px solid #EF4444 !important; }
.fi-notif-color-warning { border-inline-start: 3px solid #F59E0B !important; }
.fi-notif-color-info    { border-inline-start: 3px solid #4F46E5 !important; }
.fi-notif-close-btn {
    border-radius: 8px !important;
    transition: transform .25s var(--ju-ease), background .15s;
}
.fi-notif-close-btn:hover { transform: rotate(90deg); background: #F1F5F9 !important; }

/* ── 15. أزرار إجراءات البطاقات (تعديل/حذف): ظاهرة دائماً بخفوت ──
   كانت مخفية تماماً حتى hover (opacity-0) فتبدو مفقودة للمستخدم ── */
.ju-card-actions {
    opacity: 0.55;
    transition: opacity .2s var(--ju-ease);
}
.group:hover .ju-card-actions,
.group:focus-within .ju-card-actions { opacity: 1; }
.ju-card-actions button {
    border-radius: 9px;
    transition: background .15s, color .15s, transform .15s var(--ju-ease);
}
.ju-card-actions button:hover {
    background: #F1F5F9;
    transform: translateY(-1px);
}
.ju-card-actions button:hover:has(svg.text-red-400) { background: #FEF2F2; }
/* الشاشات اللمسية: ظهور كامل دائم */
@media (hover: none) { .ju-card-actions { opacity: 1; } }

/* توافق: أي مجموعة أزرار قديمة بنمط opacity-0 المتبقية */
.opacity-0.group-hover\:opacity-100 { opacity: 0.55; }
.group:hover .opacity-0.group-hover\:opacity-100,
.group:focus-within .opacity-0.group-hover\:opacity-100 { opacity: 1; }

/* ── 16. نافذة التنبيه العامة (app-alert): توحيد كامل بالنظام ── */
/* الترويسة الزرقاء المتدرجة القديمة ← ju-modal-head */
div[x-on\:app-alert\.window] [style*="linear-gradient(135deg,#2563eb,#3b82f6)"] {
    background: linear-gradient(180deg, #FFFFFF, #FBFBFF) !important;
    border-bottom: 1px solid #EEF0F7;
}
div[x-on\:app-alert\.window] [style*="linear-gradient(135deg,#2563eb,#3b82f6)"] h3 {
    color: #0F172A !important;
}
div[x-on\:app-alert\.window] [style*="linear-gradient(135deg,#2563eb,#3b82f6)"] svg {
    color: #4F46E5 !important;
}
/* زر الإغلاق داخلها */
div[x-on\:app-alert\.window] [style*="background:rgba(255,255,255,0.12)"] {
    background: transparent !important; color: #94A3B8 !important;
    border-radius: 9px !important;
    transition: background .15s, color .15s, transform .25s var(--ju-ease);
}
div[x-on\:app-alert\.window] [style*="background:rgba(255,255,255,0.12)"]:hover {
    background: #F1F5F9 !important; color: #475569 !important; transform: rotate(90deg);
}
/* زر «حسناً» الأزرق السادة ← تدرج النظام */
div[x-on\:app-alert\.window] button[style*="background:#2563eb"] {
    background: var(--ju-grad) !important;
    border-radius: 12px !important;
    box-shadow: var(--ju-sh-brand);
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
div[x-on\:app-alert\.window] button[style*="background:#2563eb"]:hover {
    filter: brightness(1.07); box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}
div[x-on\:app-alert\.window] button[style*="background:#2563eb"]:active { transform: scale(0.97); }

/* ── 17. التنبيه الطائر (app-toast النجاح): لمسة زجاجية ── */
div[x-on\:app-toast\.window] > div > div {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25), 0 20px 44px -12px rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(6px);
}

/* ── 18. أزرار الحذف الصلبة الحمراء داخل النوافذ: تدرج أحمر مهيب ── */
button[style*="background:#dc2626"],
button[style*="background:#DC2626"] {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 55%, #B91C1C 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.45);
    transition: transform .15s var(--ju-ease), box-shadow .2s, filter .2s;
}
button[style*="background:#dc2626"]:hover,
button[style*="background:#DC2626"]:hover {
    filter: brightness(1.07);
    box-shadow: 0 10px 26px -6px rgba(220, 38, 38, 0.55);
    transform: translateY(-1px);
}
button[style*="background:#dc2626"]:active,
button[style*="background:#DC2626"]:active { transform: scale(0.97); }
button[style*="background:#dc2626"]:disabled,
button[style*="background:#DC2626"]:disabled { opacity: .6; transform: none; }

/* كتل تفاصيل الحذف داخل النوافذ (البيانات المرتبطة): تنعيم */
[style*="background:#fef2f2"][style*="border:1px solid #fca5a5"],
[style*="background:#FEF2F2"][style*="border:1px solid #FCA5A5"] {
    border-color: #FECACA !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(180deg, #FEF2F2, #FFF5F5) !important;
    box-shadow: inset 0 0 0 1px rgba(254, 226, 226, 0.6);
    line-height: 1.9;
}

/* ============================================================
   19. طبقة الطباعة العربية — وضوح وتنفّس
   الخط العربي أعلى من اللاتيني (مدادات ونقاط) ويحتاج تباعداً أوفر
   ============================================================ */

/* الأساس: تباعد أسطر مريح للعربية بدل 1.5 اللاتيني */
body, .fi-body { line-height: 1.7; }

/* النصوص مقاس 10px (0.625rem): أصغر من حد قراءة العربية — ترفع لـ 11.5px */
[style*="font-size:0.625rem"],
[style*="font-size:10px"],
.text-\[10px\] {
    font-size: 0.72rem !important;
    line-height: 1.75 !important;
    letter-spacing: 0 !important;
}

/* النصوص الثانوية 12px: تباعد أوفر بدل 1.33 المزاح */
.text-xs { line-height: 1.7 !important; }

/* فقرات الجسم داخل البطاقات والنوافذ */
.ju-panel p, .ju-modal-head ~ div p { line-height: 1.85; }

/* تدفق الكلمات العربية: فاصل خفيف يحسّن التتبع البصري */
body { word-spacing: 0.015em; }

/* ── 20. رسائل التحقق الداخلية داخل النوافذ (inline messages) ── */
.ju-inline-error {
    display: flex; align-items: flex-start; gap: 0.5rem;
    background: linear-gradient(180deg, #FEF2F2, #FFF7F7);
    border: 1px solid #FECACA; border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem; font-weight: 500; color: #B91C1C;
    line-height: 1.8; margin-bottom: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(254, 226, 226, 0.5);
}
.ju-inline-error::before {
    content: "⚠"; flex-shrink: 0; font-size: 0.85rem; line-height: 1.8;
}
.ju-inline-info {
    display: flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(180deg, #F8FAFC, #FFFFFF);
    border: 1px dashed #CBD5E1; border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem; font-weight: 500; color: #64748B;
    line-height: 1.8;
}

/* ── 21. بطاقة الفصل داخل المرحلة: مربعة بحواف دائرية ── */
.ju-sec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.18);
    border-color: rgba(79, 70, 229, 0.35) !important;
}
.ju-sec-card button:hover { filter: brightness(0.97); }
.ju-sec-card button[title="تعديل"]:hover { background: #E2E8F0 !important; color: #0F172A; }
.ju-sec-card button[title="حذف"]:hover { background: #FEE2E2 !important; }

/* الأرقام في السياق العربي: محاذاة مريحة */
.num, [style*="numFmt"], .ju-stat .num { font-feature-settings: "tnum" 1, "lnum" 1; }

/* عناوين النوافذ الثانوية: تناسق مع عناوين اللوحات */
.ju-modal-title h3, .ju-modal-title { letter-spacing: -0.005em; }

/* نص زر الحفظ داخل النوافذ: لا يُقص مع الأيقونات */
button span[wire\:loading] { letter-spacing: 0; }

/* ── 24. صفحة الإعدادات — لوحات وخيارات بنمط النظام ── */
.ju-settings-tab {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 0.9rem; border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: #64748B;
    font-family: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    transition: all .2s var(--ju-ease);
}
.ju-settings-tab:hover { background: #F4F5FB; color: #0F172A; }
.ju-settings-tab.is-on {
    background: var(--ju-grad-soft); color: var(--ju-brand);
    border-color: #C7D2FE;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.1), 0 3px 10px -4px rgba(79,70,229,0.3);
    font-weight: 700;
}

.ju-set-panel {
    border: 1px solid rgba(15,23,42,0.07); border-radius: 16px;
    background: #fff; padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 12px 32px -20px rgba(15,23,42,0.14);
}
.ju-set-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.ju-set-head .tile {
    width: 2.25rem; height: 2.25rem; border-radius: 9px;
    background: var(--ju-grad-soft); color: #4F46E5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.14);
}
.ju-set-title { font-size: 0.9375rem; font-weight: 800; color: #0F172A; line-height: 1.5; margin: 0; }
.ju-set-sub { font-size: 0.72rem; color: #94A3B8; margin: 0.125rem 0 0; line-height: 1.6; }
.ju-set-label { font-size: 0.8125rem; font-weight: 700; color: #334155; margin-bottom: 0.5rem; }

/* خيار راديو أنيق: نقطة + نص + رمز جانبي */
.ju-set-option {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.8rem; border-radius: 11px;
    border: 1px solid var(--ju-border-2); background: #FBFBFE;
    cursor: pointer; transition: all .2s var(--ju-ease);
}
.ju-set-option:hover { border-color: #C7D2FE; transform: translateX(-2px); }
.ju-set-option .dot {
    width: 1.1rem; height: 1.1rem; border-radius: 999px; flex-shrink: 0;
    border: 2px solid #CBD5E1; background: #fff;
    transition: all .2s var(--ju-ease); position: relative;
}
.ju-set-option .txt { font-size: 0.8125rem; font-weight: 600; color: #334155; }
.ju-set-option .glyph {
    margin-inline-start: auto; font-size: 0.6875rem; font-weight: 700;
    color: #94A3B8; font-variant-numeric: tabular-nums;
}
.ju-set-option.is-on {
    background: var(--ju-grad-soft); border-color: #C7D2FE;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.1), 0 3px 10px -4px rgba(79,70,229,0.25);
}
.ju-set-option.is-on .dot {
    border-color: var(--ju-brand); border-width: 4px;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
.ju-set-option.is-on .txt { color: #3730A3; font-weight: 700; }
.ju-set-option.is-on .glyph { color: #6366F1; }

/* بطاقة صيغة العرض */
.ju-set-format {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    min-width: 6.5rem; padding: 0.8rem 1rem; border-radius: 12px;
    border: 2px solid var(--ju-border-2); background: #FBFBFE; cursor: pointer;
    font-family: inherit; transition: all .2s var(--ju-ease);
}
.ju-set-format:hover { border-color: #C7D2FE; transform: translateY(-2px); }
.ju-set-format .ex { font-size: 1.0625rem; font-weight: 800; color: #0F172A; }
.ju-set-format .lbl { font-size: 0.7rem; color: #94A3B8; font-weight: 600; }
.ju-set-format.is-on {
    background: var(--ju-grad-soft); border-color: var(--ju-brand);
    box-shadow: 0 6px 16px -6px rgba(79,70,229,0.35);
}
.ju-set-format.is-on .ex { color: var(--ju-brand); }
.ju-set-format.is-on .lbl { color: #6366F1; }

/* عدادات الحصص داخل القيود */
.ju-counter {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.5rem; border-radius: 10px;
    background: #fff; border: 1px solid var(--ju-border-2);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.ju-counter button {
    width: 1.75rem; height: 1.75rem; border-radius: 8px; border: none;
    background: var(--ju-grad-soft); color: var(--ju-brand);
    font-size: 1rem; font-weight: 800; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s var(--ju-ease);
}
.ju-counter button:hover { background: #C7D2FE; transform: translateY(-1px); }
.ju-counter .val {
    min-width: 2rem; text-align: center;
    font-size: 0.9375rem; font-weight: 800; color: var(--ju-brand);
    font-variant-numeric: tabular-nums;
}

/* ── 25. جداول الإعدادات على الجوال: جدول ← بطاقات مكدسة ── */
@media (max-width: 640px) {
    .ju-responsive-table thead { display: none; }
    .ju-responsive-table, .ju-responsive-table tbody { display: block; width: 100%; }
    .ju-responsive-table tr {
        display: block;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        margin-bottom: 0.625rem;
        padding: 0.375rem 0.625rem;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .ju-responsive-table td {
        display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
        padding: 0.4rem 0.25rem;
        border-bottom: 1px dashed #EEF0F7 !important;
        text-align: right;
    }
    .ju-responsive-table td:last-child { border-bottom: none !important; }
    .ju-responsive-table td::before {
        content: attr(data-label);
        font-size: 0.72rem; font-weight: 700; color: #94A3B8; flex-shrink: 0;
    }
    .ju-responsive-table td > :first-child { margin-inline-start: auto; }
}

/* ── احترام تقليل الحركة ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── #26 ju-preset-* : schedule complexity cards (small, near-square) ─── */
.ju-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
    max-width: 46rem;
    width: 100%;
    margin: 0.75rem auto 0;
}
.ju-preset-card {
    aspect-ratio: 1 / 0.95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.625rem 0.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ju-preset-card:hover { border-color: #A5B4FC; }
.ju-preset-card .ico { font-size: 1.375rem; line-height: 1; }
.ju-preset-card .ttl { font-size: 0.8125rem; font-weight: 700; color: #111827; line-height: 1.2; }
.ju-preset-card .dsc { font-size: 0.6875rem; line-height: 1.05rem; color: #64748B; }
.ju-preset-card.is-on {
    border-color: #6366F1;
    background: #EEF2FF;
    box-shadow: 0 8px 20px -12px rgba(99, 102, 241, 0.5);
}
.ju-preset-card.is-on .ttl { color: #4338CA; }
@media (max-width: 640px) {
    .ju-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── #27 ju-backup-* : backup tab — grid, version rows, chips, dropzones ─── */
.ju-backup-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 48rem) {
    .ju-backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ju-backup-grid > .ju-span-2 { grid-column: 1 / -1; }
}
.ju-bk-count {
    margin-inline-start: auto; padding: 0.2rem 0.65rem; border-radius: 999px;
    background: #EEF2FF; color: #4338CA; font-size: 0.6875rem; font-weight: 800; white-space: nowrap;
}
.ju-bk-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 16rem; overflow-y: auto; padding-inline-start: 2px; }
.ju-bk-row {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.625rem 0.875rem; border: 1px solid rgba(15,23,42,0.07); border-radius: 12px;
    background: linear-gradient(180deg,#FBFBFE,#fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ju-bk-row:hover { border-color: #C7D2FE; box-shadow: 0 6px 16px -12px rgba(15,23,42,0.25); }
.ju-bk-row.is-active { border-color: #A7F3D0; background: linear-gradient(180deg,#F0FDF9,#fff); }
.ju-bk-name { font-size: 0.8125rem; font-weight: 700; color: #0F172A; }
.ju-bk-meta { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.2rem; font-size: 0.6875rem; color: #94A3B8; }
.ju-bk-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #D1FAE5; color: #047857; font-size: 0.625rem; font-weight: 800; }
.ju-bk-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.ju-bk-act {
    padding: 0.3rem 0.7rem; border: none; border-radius: 8px;
    font-size: 0.6875rem; font-weight: 700; cursor: pointer; font-family: inherit;
    text-decoration: none; display: inline-block; white-space: nowrap;
    transition: filter 0.12s ease;
}
.ju-bk-act:hover { filter: brightness(0.92); }
.ju-bk-act.save { background: #059669; color: #fff; }
.ju-bk-act.activate { background: #4F46E5; color: #fff; }
.ju-bk-act.dl { background: #E2E8F0; color: #334155; }
.ju-bk-act.edit { background: #FEF3C7; color: #92400E; }
.ju-bk-act.del { background: #FEE2E2; color: #991B1B; }
.ju-bk-field {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    padding: 0.35rem 0.35rem 0.35rem 0.9rem; margin-bottom: 0.75rem;
    border: 1px solid #A7F3D0; border-radius: 12px; background: #F0FDF9;
}
.ju-bk-field input[type="text"] {
    flex: 1; min-width: 8rem; border: none; outline: none; background: transparent;
    font-size: 0.8125rem; font-family: inherit; color: #0F172A;
}
.ju-bk-field input[type="text"]::placeholder { color: #94A3B8; }
.ju-bk-btn {
    display: block; width: 100%; padding: 0.65rem 1rem; border: none; border-radius: 10px;
    font-size: 0.8125rem; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit;
    transition: filter 0.12s ease;
}
.ju-bk-btn:hover { filter: brightness(0.92); }
.ju-bk-btn.violet { background: #7C3AED; }
.ju-bk-btn.amber { background: #D97706; }
.ju-bk-btn.emerald { background: #059669; }
.ju-bk-btn.danger { background: #EF4444; }
.ju-bk-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ju-bk-label { font-size: 0.7188rem; font-weight: 700; color: #475569; margin-bottom: 0.4rem; }
.ju-bk-format { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ju-bk-format label {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 0.3rem;
    padding: 0.55rem 0.4rem; border: 2px solid rgba(15,23,42,0.08); border-radius: 10px;
    background: #fff; font-size: 0.7188rem; font-weight: 700; color: #475569;
    cursor: pointer; text-align: center; transition: all 0.13s ease;
}
.ju-bk-format label:hover { border-color: #C4B5FD; }
.ju-bk-format label.is-on {
    border-color: #7C3AED; background: #F5F3FF; color: #5B21B6;
    box-shadow: 0 6px 16px -12px rgba(124,58,237,0.55);
}
.ju-bk-format input { position: absolute; opacity: 0; pointer-events: none; }
.ju-file-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.3rem; padding: 1.1rem 0.75rem; border: 1.5px dashed #C7D2FE; border-radius: 12px;
    background: #F8FAFF; cursor: pointer; text-align: center; overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ju-file-drop:hover { border-color: #7C3AED; background: #F5F3FF; }
.ju-file-drop.amber { border-color: #FDE68A; background: #FFFBEB; }
.ju-file-drop.amber:hover { border-color: #D97706; background: #FFF7ED; }
.ju-file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ju-file-drop .t { font-size: 0.75rem; font-weight: 700; color: #475569; word-break: break-all; }
.ju-file-drop .h { font-size: 0.65rem; color: #94A3B8; }
.ju-bk-err { display: block; margin-top: 0.3rem; font-size: 0.65rem; color: #DC2626; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   #30 الوضع الداكن الشامل — يعيد تعريف متغيرات النظام + يصحح
   القيم الثابتة في المكونات والأنماط السطرية عبر الصفحات كلها
   ═══════════════════════════════════════════════════════════════════ */
html.dark { color-scheme: dark; }
html.dark:root, :root:has(html.dark) { }
html.dark {
    --ju-bg:       #0A0F1E;
    --ju-card:     #131C31;
    --ju-border:   rgba(148, 163, 184, 0.14);
    --ju-border-2: #2A3A5C;
    --ju-text:     #EDF2FA;
    --ju-mute:     #9DB0CC;
    --ju-brand-50: rgba(99, 102, 241, 0.18);
    --ju-grad-soft: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(99,102,241,0.12));
    --ju-ring:     0 0 0 4px rgba(129, 140, 248, 0.28);
    --ju-sh-card:  0 2px 6px rgba(0,0,0,0.35), 0 16px 40px -24px rgba(0,0,0,0.65);
    --ju-sh-pop:   0 4px 12px rgba(0,0,0,0.45), 0 28px 64px -28px rgba(0,0,0,0.8);
}
html.dark body, html.dark .fi-body {
    background:
        radial-gradient(1100px 700px at 88% -12%, rgba(99, 102, 241, 0.13), transparent 62%),
        radial-gradient(900px 650px at -8% 108%, rgba(124, 58, 237, 0.10), transparent 58%),
        radial-gradient(800px 560px at 50% 118%, rgba(56, 189, 248, 0.05), transparent 60%),
        #0A0F1E !important;
}
html.dark .fi-header-heading,
html.dark .fi-simple-page h1 {
    background-image: linear-gradient(120deg, #F8FAFC 15%, #C7D2FE 60%, #818CF8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}
html.dark .fi-header-subheading { color: #94A3B8 !important; }
html.dark ::selection { background: rgba(129,140,248,0.35); color: #EEF2FF; }

/* ── المكونات ذات القيم الثابتة ── */
html.dark .ju-settings-tab { color: #94A3B8; }
html.dark .ju-settings-tab:hover { background: rgba(255,255,255,0.06); color: #E2E8F0; }
html.dark .ju-settings-tab.is-on { border-color: #C7D2FE; color: #C7D2FE; }
html.dark .ju-counter { background: #0D1526; box-shadow: none; }
html.dark .ju-set-format { background: #0D1526; }
html.dark .ju-set-format .ex { color: #E2E8F0; }
html.dark .ju-set-format:hover { border-color: #818CF8; }
html.dark .ju-search { background: #0D1526 !important; }
html.dark .ju-search:focus { background: #131C31 !important; }
html.dark .ju-chip { background: #0D1526; color: #9DB0CC; }
html.dark .ju-chip:hover { color: #A5B4FC; }
html.dark .ju-count-pill { background: rgba(255,255,255,0.08); color: #CBD5E1; border-color: rgba(255,255,255,0.08); }
html.dark .ju-toolbar-search { background: #0D1526; }
html.dark .ju-set-panel { background: #131C31; }
html.dark .ju-set-head .tile {
    /* يحافظ على هوية لون كل بطاقة — التدرجات الباستيل تتحول بألوانها عبر الطبقة العامة */
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    filter: brightness(1.28) saturate(1.12);
}
html.dark .ju-set-title { color: #F1F5F9; }
html.dark .ju-set-sub { color: #8FA3BF; }
html.dark .ju-set-option { background: #0D1526; }
html.dark .ju-set-option .txt { color: #CBD5E1; }
html.dark .ju-set-option .dot { border-color: #475569; }
html.dark .ju-set-option:hover { border-color: #475569; }
html.dark .ju-set-option.is-on { border-color: #818CF8; }
html.dark .ju-set-option.is-on .txt { color: #C7D2FE; }
html.dark .ju-preset-card { background: #111A2C; border-color: #263350; }
html.dark .ju-preset-card .ttl { color: #F1F5F9; }
html.dark .ju-preset-card .dsc { color: #94A3B8; }
html.dark .ju-preset-card:hover { border-color: #6366F1; }
html.dark .ju-preset-card.is-on { background: rgba(99,102,241,0.16); border-color: #818CF8; }
html.dark .ju-preset-card.is-on .ttl { color: #C7D2FE; }
html.dark .ju-set-option.is-on { box-shadow: inset 0 0 0 1px rgba(129,140,248,0.28), 0 6px 18px -10px rgba(99,102,241,0.45); }
html.dark .ju-preset-card.is-on { box-shadow: inset 0 0 0 1px rgba(129,140,248,0.28), 0 10px 26px -12px rgba(99,102,241,0.5); }
html.dark .ju-stat, html.dark .ju-set-panel { box-shadow: var(--ju-sh-card), inset 0 1px 0 rgba(255,255,255,0.04); }

/* ── النسخ الاحتياطي ── */
html.dark .ju-bk-count { background: rgba(99,102,241,0.16); color: #C7D2FE; }
html.dark .ju-bk-row { background: linear-gradient(180deg,#101A2E,#131C31); border-color: rgba(148,163,184,0.12); }
html.dark .ju-bk-row:hover { border-color: #475569; }
html.dark .ju-bk-row.is-active { border-color: rgba(16,185,129,0.45); background: linear-gradient(180deg,rgba(16,185,129,0.12),#131C31); }
html.dark .ju-bk-name { color: #F1F5F9; }
html.dark .ju-bk-badge { background: rgba(16,185,129,0.20); color: #6EE7B7; }
html.dark .ju-bk-act.dl { background: #334155; color: #E2E8F0; }
html.dark .ju-bk-act.edit { background: rgba(245,158,11,0.18); color: #FCD34D; }
html.dark .ju-bk-act.del { background: rgba(239,68,68,0.18); color: #FCA5A5; }
html.dark .ju-bk-field { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
html.dark .ju-bk-field input[type="text"] { color: #E2E8F0; }
html.dark .ju-bk-btn.ghost { background: #111A2C; color: #CBD5E1; border-color: #263350; }
html.dark .ju-bk-label { color: #94A3B8; }
html.dark .ju-bk-format label { background: #0D1526; border-color: #2A3A5C; color: #CBD5E1; }
html.dark .ju-bk-format label:hover { border-color: #8B5CF6; }
html.dark .ju-bk-format label.is-on { background: rgba(124,58,237,0.16); border-color: #8B5CF6; color: #DDD6FE; }
html.dark .ju-file-drop { background: #0D1526; border-color: #33456B; }
html.dark .ju-file-drop:hover { background: rgba(124,58,237,0.08); border-color: #7C3AED; }
html.dark .ju-file-drop.amber { background: rgba(217,119,6,0.06); border-color: rgba(217,119,6,0.35); }
html.dark .ju-file-drop.amber:hover { background: rgba(217,119,6,0.10); }
html.dark .ju-file-drop .t { color: #CBD5E1; }

/* ── الشريط السفلي + الترحيب ── */
html.dark .ju-bottom-nav { background: rgba(10,15,30,0.95); border-top-color: rgba(148,163,184,0.14); box-shadow: 0 -12px 32px -16px rgba(0,0,0,0.6); }
html.dark .ju-bottom-item { color: #94A3B8; }
html.dark .ju-bottom-item:hover { color: #A5B4FC; }
html.dark .ju-bottom-item.is-on { color: #A5B4FC; background: rgba(99,102,241,0.20); box-shadow: inset 0 0 0 1px rgba(129,140,248,0.32), 0 0 20px -6px rgba(99,102,241,0.5); }
html.dark .ju-topbar-hello { background: linear-gradient(180deg, rgba(99,102,241,0.20), rgba(99,102,241,0.12)); box-shadow: inset 0 0 0 1px rgba(129,140,248,0.25); }
html.dark .ju-topbar-hello .hi { color: #94A3B8; }
html.dark .ju-topbar-hello .nm { color: #C7D2FE; }

/* ── جداول الجوال (بطاقات data-label) ── */
html.dark .ju-responsive-table tr { background: #111A2C; border-color: rgba(255,255,255,0.10); box-shadow: none; }
html.dark .ju-responsive-table td { border-bottom: 1px dashed #263350 !important; }

/* ── تصحيح الأنماط السطرية الفاتحة الشائعة عبر كل الصفحات ── */
html.dark [style*="background:#fff;"], html.dark [style$="background:#fff"],
html.dark [style*="background:white;"], html.dark [style$="background:white"],
html.dark [style*="background-color:white"] { background: #131C31 !important; }
html.dark [style*="background:#EEF0F5"] { background: #2A3A5C !important; }
html.dark [style*="background:#E2E8F0"], html.dark [style*="background:#e2e8f0"] { background: #2A3A5C !important; }
html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-track { background: transparent; }
html.dark ::-webkit-scrollbar-thumb { background: #26344F; border-radius: 8px; border: 2px solid #0A0F1E; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #33456B; }

/* ── #30ب توسيعات الداكن: صيغ background-color + درجات 50/100 + نصوص داكنة ملوّنة ── */
/* نيلي/بنفسجي */
html.dark [style*="background-color:#EEF2FF"], html.dark [style*="background-color:#F5F3FF"],
html.dark [style*="background-color:#E0E7FF"], html.dark [style*="background-color:#EDE9FE"],
html.dark [style*="background:#ECFEFF"], html.dark [style*="background-color:#ECFEFF"],
html.dark [style*="background:#DDD6FE"], html.dark [style*="background-color:#DDD6FE"] { background: rgba(99,102,241,0.16) !important; }
/* أحمر/وردي */
html.dark [style*="background:#FEF2F2"], html.dark [style*="background-color:#FEF2F2"],
html.dark [style*="background:#FEE2E2"], html.dark [style*="background-color:#FEE2E2"],
html.dark [style*="background:#FECACA"], html.dark [style*="background-color:#FECACA"],
html.dark [style*="background:#FFE4E6"], html.dark [style*="background-color:#FFE4E6"] { background: rgba(239,68,68,0.16) !important; }
/* كهرماني/برتقالي */
html.dark [style*="background:#FEF3C7"], html.dark [style*="background-color:#FEF3C7"],
html.dark [style*="background:#FDE68A"], html.dark [style*="background-color:#FDE68A"],
html.dark [style*="background:#FFEDD5"], html.dark [style*="background-color:#FFEDD5"],
html.dark [style*="background:#fffbeb"], html.dark [style*="background-color:#fffbeb"] { background: rgba(245,158,11,0.15) !important; }
/* أخضر/زمرد/تركوازي */
html.dark [style*="background:#F0FDF4"], html.dark [style*="background-color:#F0FDF4"],
html.dark [style*="background:#DCFCE7"], html.dark [style*="background-color:#DCFCE7"],
html.dark [style*="background:#D1FAE5"], html.dark [style*="background-color:#D1FAE5"],
html.dark [style*="background:#CFFAFE"], html.dark [style*="background-color:#CFFAFE"] { background: rgba(16,185,129,0.15) !important; }
/* أزرق/سماوي */
html.dark [style*="background:#DBEAFE"], html.dark [style*="background-color:#DBEAFE"],
html.dark [style*="background:#F0F9FF"], html.dark [style*="background-color:#F0F9FF"],
html.dark [style*="background:#E0F2FE"], html.dark [style*="background-color:#E0F2FE"],
html.dark [style*="background:#BFDBFE"], html.dark [style*="background-color:#BFDBFE"] { background: rgba(59,130,246,0.16) !important; }
/* رمادي فاتح كخلفية (رقائق/أزرار ثانوية) */
html.dark [style*="background:#E5E7EB"], html.dark [style*="background:#e5e7eb"],
html.dark [style*="background-color:#E5E7EB"], html.dark [style*="background-color:#e5e7eb"],
html.dark [style*="background:#F3F4F6"], html.dark [style*="background-color:#F3F4F6"] { background: rgba(255,255,255,0.10) !important; }

/* نصوص داكنة ملوّنة ← درجات فاتحة من نفس العائلة */
html.dark [style*="color:#4F46E5"], html.dark [style*="color:#4f46e5"],
html.dark [style*="color:#4338CA"], html.dark [style*="color:#4338ca"],
html.dark [style*="color:#3730A3"], html.dark [style*="color:#3730a3"],
html.dark [style*="color:#6D28D9"], html.dark [style*="color:#6d28d9"],
html.dark [style*="color:#5B21B6"], html.dark [style*="color:#7E22CE"], html.dark [style*="color:#7e22ce"],
html.dark [style*="color:#7C3AED"], html.dark [style*="color:#7c3aed"] { color: #A5B4FC !important; }
html.dark [style*="color:#1D4ED8"], html.dark [style*="color:#1d4ed8"],
html.dark [style*="color:#1E40AF"], html.dark [style*="color:#1e40af"],
html.dark [style*="color:#2563EB"], html.dark [style*="color:#2563eb"],
html.dark [style*="color:#0369A1"], html.dark [style*="color:#0369a1"],
html.dark [style*="color:#075985"] { color: #93C5FD !important; }
html.dark [style*="color:#B91C1C"], html.dark [style*="color:#b91c1c"],
html.dark [style*="color:#991b1b"], html.dark [style*="color:#7F1D1D"],
html.dark [style*="color:#DC2626"], html.dark [style*="color:#dc2626"] { color: #FCA5A5 !important; }
html.dark [style*="color:#B45309"], html.dark [style*="color:#b45309"],
html.dark [style*="color:#92400e"], html.dark [style*="color:#9a3412"],
html.dark [style*="color:#C2410C"], html.dark [style*="color:#c2410c"],
html.dark [style*="color:#D97706"], html.dark [style*="color:#d97706"] { color: #FCD34D !important; }
html.dark [style*="color:#065F46"], html.dark [style*="color:#065f46"],
html.dark [style*="color:#047857"], html.dark [style*="color:#047857"],
html.dark [style*="color:#15803D"], html.dark [style*="color:#059669"], html.dark [style*="color:#059669"] { color: #6EE7B7 !important; }
/* الحالات الصغيرة للنصوص الأساسية + .num */
html.dark [style*="color:#0f172a"], html.dark [style*="color:#111827"],
html.dark [style*="color:#1e293b"], html.dark [style*="color:#334155"],
html.dark [style*="color:#374151"], html.dark [style*="color:#475569"] { color: #E2E8F0 !important; }
html.dark .num { color: #EDF2FA; }

/* ── #30ج بدائل داكنة للكلاسات ذات الألوان الثابتة + صيغ صغيرة متبقية ── */
html.dark .ju-panel-title { color: #F1F5F9; }
html.dark .ju-panel-title .tile { color: #A5B4FC; }
html.dark .ju-empty .t { color: #CBD5E1; background-image: none; -webkit-text-fill-color: currentColor; }
html.dark .ju-empty-card .t { color: #E2E8F0; }
html.dark .ju-progress-card .x { color: #A5B4FC; }
html.dark .ju-modal-title { color: #F1F5F9; }
html.dark .ju-modal-close:hover { background: rgba(255,255,255,0.08); color: #E2E8F0; }
html.dark .ju-sec-card button[title="تعديل"]:hover { background: #334155 !important; color: #E2E8F0 !important; }
html.dark .ju-set-label { color: #CBD5E1; }
html.dark .ju-chip:hover { color: #A5B4FC; }
html.dark .ju-btn-danger-soft:hover { background: rgba(239,68,68,0.15); color: #FCA5A5; }
html.dark .text-primary { color: #818CF8 !important; }
/* درجات باستيل بصيغة صغيرة */
html.dark [style*="background:#eef2ff"], html.dark [style*="background-color:#eef2ff"],
html.dark [style*="background:#f5f3ff"], html.dark [style*="background-color:#f5f3ff"] { background: rgba(99,102,241,0.16) !important; }
html.dark [style*="background:#ecfdf5"], html.dark [style*="background-color:#ecfdf5"] { background: rgba(16,185,129,0.15) !important; }
html.dark [style*="background:#eff6ff"], html.dark [style*="background-color:#eff6ff"] { background: rgba(59,130,246,0.16) !important; }
html.dark [style*="background:#ecfeff"], html.dark [style*="background-color:#ecfeff"] { background: rgba(6,182,212,0.15) !important; }
/* حدود باستيل صغيرة */
html.dark [style*="#c7d2fe"], html.dark [style*="#ddd6fe"],
html.dark [style*="#e2e8f0"], html.dark [style*="#d1d5db"], html.dark [style*="#e5e9f2"] { border-color: rgba(255,255,255,0.12) !important; }

/* ── #30د بقايا مستهدفة: أسماء أيام الجدول، مربعات الإعدادات، درجات وردية ── */
html.dark .ws-day-name { color: #F1F5F9 !important; }
html.dark .ju-set-head .tile { color: #A5B4FC; }
html.dark [style*="color:#DB2777"], html.dark [style*="color:#db2777"],
html.dark [style*="color:#BE185D"], html.dark [style*="color:#be185d"] { color: #F9A8D4 !important; }
html.dark [style*="color:#3F3F46"], html.dark [style*="color:#3f3f46"],
html.dark [style*="color:#52525B"], html.dark [style*="color:#52525b"] { color: #D4D4D8 !important; }
html.dark [style*="color:#E11D48"], html.dark [style*="color:#e11d48"] { color: #FDA4AF !important; }
html.dark .text-zinc-700 { color: #D4D4D8 !important; }
html.dark .text-rose-600 { color: #FDA4AF !important; }
html.dark .text-indigo-500, html.dark svg.text-indigo-500 { color: #818CF8 !important; }
/* نصوص العلامة التجارية على الأسطح الداكنة (عدادات القيود وأمثالها) */
html.dark .ju-counter button, html.dark .ju-counter .val { color: #A5B4FC !important; }
html.dark .ju-set-option.is-on .glyph { color: #A5B4FC; }
html.dark .ju-set-format.is-on .lbl { color: #A5B4FC; }
html.dark .ju-set-option .glyph { color: #8FA3BF; }

/* ── #30هـ تعويض كلاسات تدرج Tailwind غير المولّدة في CSS الفيلمنت ── */
/* رؤوس المودالات + ترويسة جدول الأيام (نيلي وأزرق) */
.bg-gradient-to-l.from-indigo-600.to-indigo-500 { background-image: linear-gradient(to left, #6366F1, #4F46E5) !important; }
.bg-gradient-to-l.from-blue-700.to-blue-500 { background-image: linear-gradient(to left, #3B82F6, #1D4ED8) !important; }
html.dark .bg-gradient-to-l.from-indigo-600.to-indigo-500 { background-image: linear-gradient(to left, #4F46E5, #312E81) !important; }
html.dark .bg-gradient-to-l.from-blue-700.to-blue-500 { background-image: linear-gradient(to left, #1D4ED8, #172554) !important; }
/* بطاقات التفضيلات المتدرجة (برتقالي/سماوي/بنفسجي فاتح) */
.from-orange-50\/60.to-white { background-image: linear-gradient(to bottom right, rgba(255,247,237,0.6), #fff) !important; }
.from-sky-50\/60.to-white { background-image: linear-gradient(to bottom right, rgba(240,249,255,0.6), #fff) !important; }
.from-violet-50\/60.to-white { background-image: linear-gradient(to bottom right, rgba(245,243,255,0.6), #fff) !important; }
html.dark .bg-gradient-to-br { background-image: none !important; background-color: rgba(255,255,255,0.03) !important; }

/* ─── #31 ju-modal-* : نظام موحد لمودالات المحررات (يعمل بالوضعين عبر المتغيرات) ─── */
.ju-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ju-modal-grid.thirds { grid-template-columns: 2fr 1fr; }
@media (max-width: 480px) { .ju-modal-grid, .ju-modal-grid.thirds { grid-template-columns: 1fr; } }
.ju-modal-label { display: block; font-size: 0.72rem; font-weight: 700; color: #334155; margin-bottom: 0.3rem; }
html.dark .ju-modal-label { color: #9DB0CC; }
.ju-modal-input {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid var(--ju-border-2); background: var(--ju-card); color: var(--ju-text);
    border-radius: 10px; padding: 0.55rem 0.8rem; font-size: 0.85rem; font-family: inherit; outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ju-modal-input:focus { border-color: #818CF8; box-shadow: 0 0 0 4px rgba(99,102,241,0.14); }
.ju-modal-input::placeholder { color: #94A3B8; }
.ju-modal-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 700; color: var(--ju-mute); cursor: pointer; }
.ju-modal-check input { width: 1.05rem; height: 1.05rem; accent-color: #4F46E5; cursor: pointer; }
.ju-modal-error {
    border: 1px solid rgba(239,68,68,0.35); background: rgba(239,68,68,0.10); color: #DC2626;
    border-radius: 10px; padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 600;
}
html.dark .ju-modal-error { color: #FCA5A5; background: rgba(239,68,68,0.14); }
.ju-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; padding-top: 0.5rem; }
.ju-modal-btn-cancel {
    padding: 0.55rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--ju-border-2);
    background: transparent; color: var(--ju-mute); font-size: 0.8rem; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: border-color 0.15s ease, color 0.15s ease;
}
.ju-modal-btn-cancel:hover { border-color: #94A3B8; color: var(--ju-text); }
.ju-modal-btn-save {
    padding: 0.55rem 1.4rem; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff;
    font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit;
    box-shadow: 0 6px 16px -6px rgba(79,70,229,0.5); transition: filter 0.15s ease;
}
.ju-modal-btn-save:hover { filter: brightness(1.06); }
.ju-modal-btn-save:disabled { opacity: 0.6; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   #32 توحيد شكل كل نوافذ الموقع بنيوياً (بلا تعديل القوالب)
   يستهدف الهيكلين: المودالات السطرية (classes/assignments/
   preferences/weekly) والمودالات الفئوية (backup/confirms)
   ═══════════════════════════════════════════════════════════════ */
/* خامات شبكة Tailwind غير المولّدة — تصلح تكديس الأزواج في كل الصفحات */
.grid.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* 1) بطاقة النافذة — النمط السطري */
div[style*="position:fixed"][style*="inset:0"][style*="z-index:5"] > div[style*="position:relative"][style*="max-width"] {
    background: var(--ju-card) !important;
    border: 1px solid var(--ju-border);
    border-radius: 16px;
    box-shadow: var(--ju-sh-pop) !important;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
}
/* 1ب) بطاقة النافذة — النمط الفئوي */
.fixed.inset-0 > .relative.w-full {
    background: var(--ju-card) !important;
    border: 1px solid var(--ju-border);
    border-radius: 16px;
    box-shadow: var(--ju-sh-pop) !important;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

/* 2) الحقول (نص/رقم/وقت/قائمة) داخل أي نافذة — النمط الموحد */
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] input[style*="border:1px solid #d1d5db"],
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] select[style*="border:1px solid #d1d5db"],
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] textarea[style*="border:1px solid #d1d5db"],
.fixed.inset-0 input[style*="border:1px solid #d1d5db"],
.fixed.inset-0 select[style*="border:1px solid #d1d5db"] {
    background: var(--ju-card) !important;
    color: var(--ju-text) !important;
    border: 1.5px solid var(--ju-border-2) !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.8rem !important;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] input:focus,
.fixed.inset-0 input:focus, .fixed.inset-0 select:focus {
    border-color: #818CF8 !important;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.14) !important;
    outline: none;
}
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] input::placeholder,
.fixed.inset-0 input::placeholder { color: #94A3B8; }

/* 3) الأزرار داخل النوافذ */
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="border:1px solid #d1d5db"],
.fixed.inset-0 button[style*="border:1px solid #d1d5db"] {
    background: transparent !important;
    color: var(--ju-mute) !important;
    border: 1.5px solid var(--ju-border-2) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    cursor: pointer; font-family: inherit;
    transition: border-color 0.15s ease, color 0.15s ease;
}
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="border:1px solid #d1d5db"]:hover,
.fixed.inset-0 button[style*="border:1px solid #d1d5db"]:hover { border-color: #94A3B8 !important; color: var(--ju-text) !important; }
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#4f46e5"],
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#059669"],
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#dc2626"],
.fixed.inset-0 button[style*="background:#4f46e5"],
.fixed.inset-0 button[style*="background:#059669"],
.fixed.inset-0 button[style*="background:#d97706"] {
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px -6px rgba(15,23,42,0.35);
    cursor: pointer; font-family: inherit;
    transition: filter 0.15s ease;
}
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#4f46e5"]:hover,
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#059669"]:hover,
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] button[style*="background:#dc2626"]:hover,
.fixed.inset-0 button[style*="background:#4f46e5"]:hover,
.fixed.inset-0 button[style*="background:#059669"]:hover { filter: brightness(1.08); }

/* 4) صناديق الأخطاء بأحرف صغيرة */
html.dark [style*="background:#fef2f2"], html.dark [style*="background-color:#fef2f2"] {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.35) !important;
    color: #FCA5A5 !important;
}
html.dark [style*="border:1px solid #fca5a5"] { border-color: rgba(239,68,68,0.35) !important; }

/* 5) خيارات القوائم المنسدلة داخل النوافذ تتبع الوضع */
html.dark .fixed.inset-0 select option,
html.dark div[style*="position:fixed"][style*="inset:0"] select option { background: #131C31; color: #E2E8F0; }

/* ─── #32ب رأس موحد لكل نوافذ الموقع (يجرد التدرجات الفرعية والصناديق الملونة) ─── */
div[style*="position:fixed"][style*="inset:0"][style*="z-index:5"] .ju-modal-head,
.fixed.inset-0 .ju-modal-head {
    background: linear-gradient(180deg, var(--ju-card), color-mix(in srgb, var(--ju-card) 94%, #EEF2FF)) !important;
    border-bottom: 1px solid var(--ju-border) !important;
    padding: 0.9rem 1.25rem !important;
}
html.dark div[style*="position:fixed"][style*="inset:0"][style*="z-index:5"] .ju-modal-head,
html.dark .fixed.inset-0 .ju-modal-head {
    background: linear-gradient(180deg, #16213A, #131C31) !important;
}
html.dark .ju-modal-title { color: #F1F5F9; }
html.dark .ju-modal-title .tile { color: #A5B4FC; }

/* ─── #32ج محاذاة أبعاد النوافذ: عرض موحد 26rem + إيقاع داخلي موحد ─── */
.fixed.inset-0 > .relative.w-full { max-width: 26rem !important; }
div[style*="position:fixed"][style*="inset:0"][style*="z-index:5"] > div[style*="position:relative"][style*="max-width"] { max-width: 26rem !important; }
/* جسم النافذة: نفس الإحداثيات في النمطين */
.fixed.inset-0 .relative > .p-5 { padding: 1.25rem 1.5rem 1.5rem !important; }
.fixed.inset-0 .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.fixed.inset-0 .ju-modal-grid { gap: 1rem; }

/* ─── #32د تغطية الأنماط الشاذة المتبقية ─── */
/* أ) كل البطاقات السطرية مهما كان z-index (يشمل 60/1000 والحوارات العريضة بلا كلاس داكن) */
div[style*="position:fixed"][style*="inset:0"][style*="display:flex"] > div[style*="position:relative"][style*="max-width"] {
    background: var(--ju-card) !important;
    border: 1px solid var(--ju-border);
    border-radius: 16px !important;
    box-shadow: var(--ju-sh-pop) !important;
}
/* ب) البطاقات الفئوية بلا .relative (بذور/استعادة/تأكيدات الإعدادات) */
.fixed.inset-0 > .w-full[class*="max-w"] {
    background: var(--ju-card) !important;
    border: 1px solid var(--ju-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--ju-sh-pop) !important;
    max-width: 26rem !important;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}
/* ج) تسطيح الرؤوس الملونة داخل هذه البطاقات */
.fixed.inset-0 > [class*="max-w"] > .border-b {
    background: linear-gradient(180deg, var(--ju-card), color-mix(in srgb, var(--ju-card) 94%, #EEF2FF)) !important;
    border-bottom: 1px solid var(--ju-border) !important;
}
html.dark .fixed.inset-0 > [class*="max-w"] > .border-b {
    background: linear-gradient(180deg, #16213A, #131C31) !important;
}
html.dark .fixed.inset-0 > [class*="max-w"] h3 { color: #F1F5F9 !important; }
/* د) أزرار بالفئات داخل النوافذ */
.fixed.inset-0 button.border-gray-300, .fixed.inset-0 button.border-gray-200 {
    background: transparent !important; color: var(--ju-mute) !important;
    border: 1.5px solid var(--ju-border-2) !important; border-radius: 10px !important;
    font-weight: 700 !important; cursor: pointer; font-family: inherit;
}
.fixed.inset-0 button.bg-indigo-600, .fixed.inset-0 button.bg-red-600,
.fixed.inset-0 button.bg-emerald-600, .fixed.inset-0 button.bg-amber-600 {
    border: none !important; border-radius: 10px !important; color: #fff !important;
    font-weight: 700 !important; box-shadow: 0 6px 16px -6px rgba(15,23,42,0.35); cursor: pointer;
}
/* هـ) عناوين البطاقات عديمة الرأس (تأكيد إعادة الافتراضيات) */
.fixed.inset-0 > .w-full[class*="max-w"] h3 { font-size: 0.9375rem; font-weight: 700; }

/* ─── #30هـ كلاسات تحذيرية فاتحة (قسم الأوزان المتقدم وكل مشابه) ─── */
html.dark .bg-amber-50 { background: rgba(245,158,11,0.10) !important; }
html.dark .border-amber-200 { border-color: rgba(245,158,11,0.30) !important; }
html.dark .text-amber-700 { color: #FCD34D !important; }
html.dark .text-amber-600 { color: #FBBF24 !important; }
html.dark .bg-emerald-50 { background: rgba(16,185,129,0.10) !important; }
html.dark .border-emerald-200 { border-color: rgba(16,185,129,0.30) !important; }
html.dark .bg-red-50 { background: rgba(239,68,68,0.10) !important; }
html.dark .border-red-200 { border-color: rgba(239,68,68,0.30) !important; }
html.dark .bg-green-50 { background: rgba(16,185,129,0.10) !important; }
/* فواصل الصفوف الفاتحة داخل القوائم */
html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(255,255,255,0.08) !important; }
html.dark .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(255,255,255,0.09) !important; }
/* نصوص وصفية شائعة بلا بديل داكن */
html.dark .text-gray-500 { color: #94A3B8 !important; }
html.dark .text-gray-400 { color: #8FA3BF !important; }
html.dark .text-indigo-600 { color: #A5B4FC !important; }

/* ─── #30و تدرجات فاتحة سطرية ← نظائر داكنة (تفلت من فحص backgroundColor) ─── */
/* صفوف وبطاقات محايدة */
html.dark [style*="180deg,#FBFBFE"], html.dark [style*="180deg,#fbfbfe"],
html.dark [style*="180deg,#FAFCFF"], html.dark [style*="180deg,#FFFBFA"],
html.dark [style*="180deg,#FFFCF8"], html.dark [style*="180deg,#f8fafc"] { background: linear-gradient(180deg,#101A2E,#131C31) !important; }
/* صفوف حمراء تحذيرية */
html.dark [style*="180deg,#FEF2F2"], html.dark [style*="180deg,#fef2f2"] { background: linear-gradient(180deg,rgba(239,68,68,0.12),rgba(239,68,68,0.05)) !important; }
html.dark [style*="border:1px solid #FECACA"], html.dark [style*="border-bottom:1px solid #FECACA"] { border-color: rgba(239,68,68,0.35) !important; }
html.dark [style*="border-bottom:1px solid #FED7AA"] { border-bottom-color: rgba(217,119,6,0.35) !important; }
/* كهرماني */
html.dark [style*="180deg,#fef3c7"] { background: linear-gradient(180deg,rgba(245,158,11,0.22),rgba(245,158,11,0.12)) !important; }
html.dark [style*="180deg,#FFFBEB"], html.dark [style*="180deg,#fffbeb"], html.dark [style*="135deg,#FFF7ED"] { background: linear-gradient(180deg,rgba(217,119,6,0.12),rgba(217,119,6,0.04)) !important; }
/* نيلي/بنفسجي/أزرق/أخضر باستيل */
html.dark [style*="180deg,#eef2ff"], html.dark [style*="135deg,#EEF2FF"] { background: linear-gradient(180deg,rgba(99,102,241,0.14),rgba(99,102,241,0.06)) !important; }
html.dark [style*="135deg,#EDE9FE"] { background: rgba(139,92,246,0.15) !important; }
html.dark [style*="135deg,#DBEAFE"] { background: rgba(59,130,246,0.16) !important; }
html.dark [style*="135deg,#D1FAE5"], html.dark [style*="135deg,#bbf7d0"] { background: rgba(16,185,129,0.15) !important; }
html.dark [style*="135deg,#FEF2F2"] { background: rgba(239,68,68,0.14) !important; }
/* حدود rgba الرمادية الدقيقة على الصفوف */
html.dark [style*="rgba(15,23,42,0.06)"], html.dark [style*="rgba(15,23,42,0.08)"],
html.dark [style*="rgba(15, 23, 42, 0.06)"], html.dark [style*="rgba(15, 23, 42, 0.08)"] { border-color: rgba(255,255,255,0.09) !important; }

/* ─── #30ز استدراكات المسح الشامل: قوائم النظام، الطباعة، التفضيلات ─── */
/* قوائم select على مستوى النظام (كانت #FBFBFE/#0F172A بلا بديل داكن) */
html.dark .fi-body select, html.dark main select,
html.dark .ju-panel select, html.dark [data-ju-panel] select {
    background: #0D1526 !important;
    color: #E2E8F0 !important;
    border-color: var(--ju-border-2) !important;
}
html.dark main select option, html.dark .fi-body select option { background: #131C31; color: #E2E8F0; }
/* أزرار لوحة الطباعة (تخصيص التنسيق ونحوه) الوراثة الزنك */
html.dark .print-panel-left button, html.dark .print-layout button.text-zinc-700 { color: #D4D4D8 !important; }
/* حبيبة النصاب الرمادية بصفحة التفضيلات (dark:bg-white/15 غير مولّدة) */
html.dark .bg-gray-300 { background: rgba(255, 255, 255, 0.14) !important; }
/* الباستيل الوردي (مربعات «تجنب») */
html.dark [style*="background:#FFF1F2"], html.dark [style*="background:#fff1f2"],
html.dark [style*="background-color:#FFF1F2"] { background: rgba(244, 63, 94, 0.14) !important; }
html.dark [style*="color:#7F1D1D"], html.dark [style*="color:#7f1d1d"], html.dark [style*="color:#9F1239"] { color: #FECDD3 !important; }
html.dark [style*="background:#d1d5db"], html.dark [style*="background:#D1D5DB"] { background: rgba(255, 255, 255, 0.14) !important; }

/* ─── #33 إشعار تطبيق سطح المكتب — نسخة داكنة ─── */
html.dark .jd-desktop-toast {
    background: #131C31 !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 24px 56px -18px rgba(0,0,0,0.7) !important;
}
html.dark .jd-toast-icon {
    background: rgba(16, 185, 129, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}
html.dark .jd-toast-title { color: #F1F5F9 !important; }
html.dark .jd-toast-desc { color: #9DB0CC !important; }
html.dark .jd-toast-close:hover { background: rgba(255, 255, 255, 0.08) !important; color: #E2E8F0 !important; }

/* ─── #34 قائمة المستخدم والقوائم المنسدلة — الوضع الداكن ─── */
/* اسم المستخدم/بريده داخل رأس القائمة: نفس تدرج العناوين الداكن */
html.dark .fi-dropdown-header {
    background-image: linear-gradient(120deg, #F8FAFC 20%, #C7D2FE 65%, #818CF8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html.dark .fi-dropdown-header * { color: inherit; -webkit-text-fill-color: inherit; }
/* شريط مبدّل الثيم (شمس/قمر/شاشة): إطار داكن بدل الفاتح */
html.dark .fi-theme-switcher {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
}
html.dark .fi-theme-switcher-btn { color: #9DB0CC !important; }
html.dark .fi-theme-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #A5B4FC !important;
}
/* عناصر القائمة (تسجيل الخروج...) عند التحويم */
html.dark .fi-dropdown-list-item:hover,
html.dark .fi-dropdown-list-item a:hover,
html.dark .fi-dropdown-list-item button:hover { background: rgba(255, 255, 255, 0.06) !important; }
html.dark .fi-dropdown-list-item * { color: #CBD5E1; }
/* لوحة القائمة المنسدلة نفسها (احتياط إن غاب بديل Filament) */
html.dark .fi-dropdown-panel-content,
html.dark [class*="fi-dropdown-panel"] {
    background: #131C31 !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}
/* أزرار أوامر الجدول (توليد/حذف) بنسخ داكنة */
html.dark .ws-primary-command { background: rgba(5,150,105,0.16) !important; color: #6EE7B7 !important; border: 1px solid rgba(5,150,105,0.35) !important; box-shadow: none !important; }
html.dark .ws-danger-command { background: rgba(239,68,68,0.14) !important; color: #FCA5A5 !important; border: 1px solid rgba(239,68,68,0.35) !important; }
html.dark [style*="background:#FBFBFE"], html.dark [style*="background:#F8FAFC"],
html.dark [style*="background:#F8FAFF"], html.dark [style*="background:#F1F5F9"],
html.dark [style*="background:#f9fafb"], html.dark [style*="background:#fafafa"],
html.dark [style*="background:#F4F5FB"] { background: #0D1526 !important; }
html.dark [style*="background:#fff;"] { background: #131C31 !important; }
html.dark [style*="background:linear-gradient(180deg,#f8fafc"] { background: linear-gradient(180deg,#182338,#101A2E) !important; }
html.dark [style*="background:linear-gradient(180deg,#f1f5f9"] { background: linear-gradient(180deg,#182338,#0D1526) !important; }
html.dark [style*="background:linear-gradient(180deg,#eef2ff"] { background: linear-gradient(180deg,#312E81,#1E1B4B) !important; }
html.dark [style*="background:#EEF2FF"], html.dark [style*="background:#F5F3FF"] { background: rgba(99,102,241,0.14) !important; }
html.dark [style*="background:#ECFDF5"] { background: rgba(16,185,129,0.12) !important; }
html.dark [style*="background:#FFF7ED"], html.dark [style*="background:#fff7ed"] { background: rgba(217,119,6,0.12) !important; }
html.dark [style*="background:#EFF6FF"] { background: rgba(59,130,246,0.12) !important; }
/* نصوص داكنة على خلفيات فاتحة ← نصوص فاتحة */
html.dark [style*="color:#0F172A"], html.dark [style*="color:#111827"],
html.dark [style*="color:#1E293B"], html.dark [style*="color:#1E1B4B"] { color: #E2E8F0 !important; }
html.dark [style*="color:#334155"], html.dark [style*="color:#374151"],
html.dark [style*="color:#475569"], html.dark [style*="color:#1E293B;"] { color: #CBD5E1 !important; }
html.dark [style*="color:#6b7280"] { color: #9CA3AF !important; }
/* حدود فاتحة ← حدود داكنة */
html.dark [style*="#E5E7EB"], html.dark [style*="#e5e7eb"],
html.dark [style*="#E2E8F0"], html.dark [style*="#E5E9F2"],
html.dark [style*="#D1D5DB"], html.dark [style*="#d1d5db"] { border-color: rgba(255,255,255,0.12) !important; }
html.dark [style*="rgba(15,23,42,0.07)"], html.dark [style*="rgba(15, 23, 42, 0.07)"] { border-color: rgba(255,255,255,0.09) !important; }

/* ─── #28 ju-bottom-nav : bottom navigation bar + sidebar removal ─── */
.fi-sidebar { display: none !important; }
.fi-main-ctn { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; }
.fi-topbar button[x-on\:click*="store.sidebar"] { display: none !important; }
.fi-main { padding-bottom: 5.5rem !important; }
.ju-bottom-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
    display: flex; justify-content: center; gap: 0.25rem;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 -10px 30px -18px rgba(15,23,42,0.35);
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
}
.ju-bottom-item {
    flex: 1 1 0; min-width: 0; max-width: 11rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    padding: 0.4rem 0.2rem; border-radius: 12px;
    color: #64748B; text-decoration: none; font-size: 0.58rem; font-weight: 700; font-family: inherit;
    line-height: 1.25; transition: color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.ju-bottom-item .ic { width: 1.2rem; height: 1.2rem; }
.ju-bottom-item .lbl {
    max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ju-bottom-item:hover { color: #4F46E5; background: rgba(99,102,241,0.07); }
.ju-bottom-item.is-on {
    color: #4F46E5; background: #EEF2FF;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.18);
}
.ju-bottom-item.is-on .ic { stroke-width: 2; }

/* ─── #29 ju-topbar-hello : ترحيب المستخدم بالشريط العلوي ─── */
.ju-topbar-hello {
    display: flex; align-items: center; gap: 0.35rem;
    margin-inline-end: 0.75rem; padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #F5F3FF, #EEF2FF);
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.14);
    font-size: 0.78rem; line-height: 1.4; white-space: nowrap;
    user-select: none;
}
.ju-topbar-hello .wave { font-size: 0.9rem; }
.ju-topbar-hello .hi { color: #64748B; font-weight: 600; }
.ju-topbar-hello .nm {
    color: #4338CA; font-weight: 800;
    max-width: 12rem; overflow: hidden; text-overflow: ellipsis;
}


/* ═══ تحصين ألوان الأزرار (2026-09-20) ═══
   التدرجات وحدها تجعل الزر أبيض بنص أبيض إذا حُجبت background-image
   (إضافات متصفح مثل Dark Reader / توفير البيانات / أنماط تباين) —
   لون صريح تحت كل تدرج فتبقى الأزرار ظاهرة دائماً */
.fi-btn-color-primary,
.ju-btn-soft,
.ju-modal-btn-primary,
.ju-modal-btn-save,
.ju-step.is-active .c,
.ju-empty-card .plus,
div[x-on\:app-alert\.window] button[style*="background:#4f46e5"],
div[x-on\:app-alert\.window] button[style*="background:#4F46E5"],
div[x-on\:app-alert\.window] button[style*="background:#2563eb"] {
    background-color: #4F46E5 !important;
}

/* == Tailwind color utilities (2026-09-20) ==
   color classes used in blade templates but missing from all loaded CSS */
.bg-amber-500 { background-color: #F59E0B; }
.bg-amber-500\/10 { background-color: #F59E0B1A; }
.bg-amber-900 { background-color: #78350F; }
.bg-amber-900\/20 { background-color: #78350F33; }
.bg-amber-900\/30 { background-color: #78350F4C; }
.bg-amber-900\/50 { background-color: #78350F80; }
.bg-black\/50 { background-color: #00000080; }
.bg-blue-500 { background-color: #3B82F6; }
.bg-blue-500\/10 { background-color: #3B82F61A; }
.bg-emerald-100 { background-color: #D1FAE5; }
.bg-emerald-500 { background-color: #10B981; }
.bg-emerald-500\/10 { background-color: #10B9811A; }
.bg-emerald-900 { background-color: #064E3B; }
.bg-emerald-900\/30 { background-color: #064E3B4C; }
.bg-emerald-900\/40 { background-color: #064E3B66; }
.bg-emerald-900\/50 { background-color: #064E3B80; }
.bg-emerald-900\/60 { background-color: #064E3B99; }
.bg-emerald-950\/20 { background-color: #022C2233; }
.bg-emerald-950\/30 { background-color: #022C224C; }
.bg-emerald-950\/40 { background-color: #022C2266; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1F2937; }
.bg-gray-800\/30 { background-color: #1F29374C; }
.bg-gray-800\/40 { background-color: #1F293766; }
.bg-gray-800\/50 { background-color: #1F293780; }
.bg-gray-800\/60 { background-color: #1F293799; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-900\/70 { background-color: #111827B2; }
.bg-indigo-100 { background-color: #E0E7FF; }
.bg-indigo-500 { background-color: #6366F1; }
.bg-indigo-900 { background-color: #312E81; }
.bg-indigo-900\/30 { background-color: #312E814C; }
.bg-indigo-900\/40 { background-color: #312E8166; }
.bg-indigo-950 { background-color: #1E1B4B; }
.bg-indigo-950\/30 { background-color: #1E1B4B4C; }
.bg-indigo-950\/40 { background-color: #1E1B4B66; }
.bg-indigo-950\/50 { background-color: #1E1B4B80; }
.bg-orange-500 { background-color: #F97316; }
.bg-pink-500 { background-color: #EC4899; }
.bg-purple-50 { background-color: #FAF5FF; }
.bg-red-100 { background-color: #FEE2E2; }
.bg-red-500\/10 { background-color: #EF44441A; }
.bg-red-900 { background-color: #7F1D1D; }
.bg-red-900\/20 { background-color: #7F1D1D33; }
.bg-red-900\/30 { background-color: #7F1D1D4C; }
.bg-red-950\/30 { background-color: #450A0A4C; }
.bg-red-950\/40 { background-color: #450A0A66; }
.bg-rose-100 { background-color: #FFE4E6; }
.bg-rose-500\/20 { background-color: #F43F5E33; }
.bg-rose-900\/30 { background-color: #8813374C; }
.bg-rose-950\/40 { background-color: #4C051966; }
.bg-sky-500\/10 { background-color: #0EA5E91A; }
.bg-slate-100 { background-color: #F1F5F9; }
.bg-slate-100\/80 { background-color: #F1F5F9CC; }
.bg-slate-50 { background-color: #F8FAFC; }
.bg-slate-700 { background-color: #334155; }
.bg-teal-700 { background-color: #0F766E; }
.bg-violet-500 { background-color: #8B5CF6; }
.bg-violet-500\/10 { background-color: #8B5CF61A; }
.bg-violet-500\/15 { background-color: #8B5CF626; }
.bg-white\/10 { background-color: #FFFFFF1A; }
.bg-white\/15 { background-color: #FFFFFF26; }
.bg-white\/5 { background-color: #FFFFFF0D; }
.bg-white\/70 { background-color: #FFFFFFB2; }
.bg-yellow-900\/20 { background-color: #713F1233; }
.border-amber-300 { border-color: #FCD34D; }
.border-amber-500 { border-color: #F59E0B; }
.border-amber-500\/20 { border-color: #F59E0B33; }
.border-amber-500\/30 { border-color: #F59E0B4C; }
.border-amber-500\/40 { border-color: #F59E0B66; }
.border-amber-700\/30 { border-color: #B453094C; }
.border-amber-800 { border-color: #92400E; }
.border-amber-900\/40 { border-color: #78350F66; }
.border-blue-200 { border-color: #BFDBFE; }
.border-blue-500\/30 { border-color: #3B82F64C; }
.border-emerald-400 { border-color: #34D399; }
.border-emerald-500 { border-color: #10B981; }
.border-emerald-500\/20 { border-color: #10B98133; }
.border-emerald-600 { border-color: #059669; }
.border-emerald-700 { border-color: #047857; }
.border-emerald-800 { border-color: #065F46; }
.border-gray-700 { border-color: #374151; }
.border-indigo-200 { border-color: #C7D2FE; }
.border-indigo-400 { border-color: #818CF8; }
.border-indigo-500 { border-color: #6366F1; }
.border-indigo-500\/40 { border-color: #6366F166; }
.border-indigo-800 { border-color: #3730A3; }
.border-indigo-900 { border-color: #312E81; }
.border-orange-200 { border-color: #FED7AA; }
.border-orange-700\/30 { border-color: #C2410C4C; }
.border-red-300 { border-color: #FCA5A5; }
.border-red-500 { border-color: #EF4444; }
.border-red-500\/30 { border-color: #EF44444C; }
.border-red-600 { border-color: #DC2626; }
.border-red-700 { border-color: #B91C1C; }
.border-red-800 { border-color: #991B1B; }
.border-rose-200 { border-color: #FECDD3; }
.border-rose-900\/40 { border-color: #88133766; }
.border-sky-200 { border-color: #BAE6FD; }
.border-sky-500\/20 { border-color: #0EA5E933; }
.border-sky-700\/30 { border-color: #0369A14C; }
.border-slate-100 { border-color: #F1F5F9; }
.border-slate-500 { border-color: #64748B; }
.border-violet-200 { border-color: #DDD6FE; }
.border-violet-300 { border-color: #C4B5FD; }
.border-violet-500 { border-color: #8B5CF6; }
.border-violet-600 { border-color: #7C3AED; }
.border-violet-700\/30 { border-color: #6D28D94C; }
.border-white\/10 { border-color: #FFFFFF1A; }
.border-white\/15 { border-color: #FFFFFF26; }
.border-white\/20 { border-color: #FFFFFF33; }
.border-white\/5 { border-color: #FFFFFF0D; }
.border-yellow-200 { border-color: #FEF08A; }
.border-yellow-700 { border-color: #A16207; }
.border-yellow-800 { border-color: #854D0E; }
.divide-white\/10 { divide-color: #FFFFFF1A; }
.divide-white\/5 { divide-color: #FFFFFF0D; }
.hover\:bg-blue-700:hover { background-color: #1D4ED8; }
.hover\:bg-blue-950/20:hover { background-color: #17255433; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1F2937; }
.hover\:bg-indigo-700:hover { background-color: #4338CA; }
.hover\:bg-red-100:hover { background-color: #FEE2E2; }
.hover\:bg-red-700:hover { background-color: #B91C1C; }
.hover\:bg-rose-100:hover { background-color: #FFE4E6; }
.hover\:bg-rose-200:hover { background-color: #FECDD3; }
.hover\:bg-rose-500/15:hover { background-color: #F43F5E26; }
.hover\:bg-rose-500/30:hover { background-color: #F43F5E4C; }
.hover\:bg-sky-600:hover { background-color: #0284C7; }
.hover\:bg-slate-100:hover { background-color: #F1F5F9; }
.hover\:bg-slate-600:hover { background-color: #475569; }
.hover\:bg-teal-800:hover { background-color: #115E59; }
.hover\:bg-violet-200/70:hover { background-color: #DDD6FEB2; }
.hover\:bg-violet-500/25:hover { background-color: #8B5CF640; }
.hover\:bg-white/10:hover { background-color: #FFFFFF1A; }
.hover\:bg-white/20:hover { background-color: #FFFFFF33; }
.hover\:bg-white/5:hover { background-color: #FFFFFF0D; }
.hover\:text-red-500:hover { color: #EF4444; }
.hover\:text-red-700:hover { color: #B91C1C; }
.hover\:text-rose-300:hover { color: #FDA4AF; }
.hover\:text-slate-600:hover { color: #475569; }
.ring-amber-400 { ring-color: #FBBF24; }
.ring-emerald-400 { ring-color: #34D399; }
.ring-emerald-500 { ring-color: #10B981; }
.ring-indigo-200 { ring-color: #C7D2FE; }
.ring-indigo-500 { ring-color: #6366F1; }
.ring-indigo-600 { ring-color: #4F46E5; }
.ring-red-500 { ring-color: #EF4444; }
.ring-violet-500 { ring-color: #8B5CF6; }
.text-amber-200 { color: #FDE68A; }
.text-amber-300 { color: #FCD34D; }
.text-amber-400 { color: #FBBF24; }
.text-amber-800 { color: #92400E; }
.text-blue-400 { color: #60A5FA; }
.text-blue-600 { color: #2563EB; }
.text-blue-700 { color: #1D4ED8; }
.text-blue-800 { color: #1E40AF; }
.text-emerald-300 { color: #6EE7B7; }
.text-emerald-400 { color: #34D399; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065F46; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-800 { color: #1F2937; }
.text-gray-900 { color: #111827; }
.text-green-300 { color: #86EFAC; }
.text-green-400 { color: #4ADE80; }
.text-green-600 { color: #16A34A; }
.text-green-700 { color: #15803D; }
.text-green-800 { color: #166534; }
.text-indigo-200 { color: #C7D2FE; }
.text-indigo-300 { color: #A5B4FC; }
.text-indigo-400 { color: #818CF8; }
.text-indigo-700 { color: #4338CA; }
.text-indigo-800 { color: #3730A3; }
.text-orange-300 { color: #FDBA74; }
.text-orange-400 { color: #FB923C; }
.text-orange-700 { color: #C2410C; }
.text-orange-800 { color: #9A3412; }
.text-purple-700 { color: #6B21A8; }
.text-red-200 { color: #FECACA; }
.text-red-300 { color: #FCA5A5; }
.text-red-500 { color: #EF4444; }
.text-red-600 { color: #DC2626; }
.text-red-700 { color: #B91C1C; }
.text-red-800 { color: #991B1B; }
.text-rose-200 { color: #FECDD3; }
.text-rose-300 { color: #FDA4AF; }
.text-rose-400 { color: #FB7185; }
.text-rose-700 { color: #BE123C; }
.text-rose-800 { color: #9F1239; }
.text-sky-200 { color: #BAE6FD; }
.text-sky-300 { color: #7DD3FC; }
.text-sky-400 { color: #38BDF8; }
.text-sky-700 { color: #0369A1; }
.text-sky-800 { color: #075985; }
.text-slate-100 { color: #F1F5F9; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-400 { color: #94A3B8; }
.text-slate-500 { color: #64748B; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1E293B; }
.text-slate-900 { color: #0F172A; }
.text-slate-950 { color: #020617; }
.text-violet-300 { color: #C4B5FD; }
.text-violet-300\/60 { color: #C4B5FD99; }
.text-violet-300\/70 { color: #C4B5FDB2; }
.text-violet-600 { color: #7C3AED; }
.text-violet-700 { color: #6D28D9; }
.text-violet-700\/70 { color: #6D28D9B2; }
.text-violet-700\/80 { color: #6D28D9CC; }
.text-violet-800 { color: #5B21B6; }
.text-yellow-300 { color: #FDE047; }
.text-yellow-700 { color: #A16207; }
.text-yellow-800 { color: #854D0E; }


/* == Tailwind color utilities (2026-09-20) ==
   color classes used in blade templates but missing from all loaded CSS */
.bg-amber-500\/10 { background-color: #F59E0B1A; }
.bg-amber-900\/20 { background-color: #78350F33; }
.bg-amber-900\/30 { background-color: #78350F4C; }
.bg-amber-900\/50 { background-color: #78350F80; }
.bg-black\/50 { background-color: #00000080; }
.bg-blue-500\/10 { background-color: #3B82F61A; }
.bg-emerald-500\/10 { background-color: #10B9811A; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-900\/30 { background-color: #064E3B4C; }
.bg-emerald-900\/40 { background-color: #064E3B66; }
.bg-emerald-900\/50 { background-color: #064E3B80; }
.bg-emerald-900\/60 { background-color: #064E3B99; }
.bg-emerald-950\/20 { background-color: #022C2233; }
.bg-emerald-950\/30 { background-color: #022C224C; }
.bg-emerald-950\/40 { background-color: #022C2266; }
.bg-gray-800\/30 { background-color: #1F29374C; }
.bg-gray-800\/40 { background-color: #1F293766; }
.bg-gray-800\/50 { background-color: #1F293780; }
.bg-gray-800\/60 { background-color: #1F293799; }
.bg-gray-900\/70 { background-color: #111827B2; }
.bg-indigo-600 { background-color: #4F46E5; }
.bg-indigo-900\/30 { background-color: #312E814C; }
.bg-indigo-900\/40 { background-color: #312E8166; }
.bg-indigo-950\/30 { background-color: #1E1B4B4C; }
.bg-indigo-950\/40 { background-color: #1E1B4B66; }
.bg-indigo-950\/50 { background-color: #1E1B4B80; }
.bg-red-500\/10 { background-color: #EF44441A; }
.bg-red-600 { background-color: #DC2626; }
.bg-red-900\/20 { background-color: #7F1D1D33; }
.bg-red-900\/30 { background-color: #7F1D1D4C; }
.bg-red-950\/30 { background-color: #450A0A4C; }
.bg-red-950\/40 { background-color: #450A0A66; }
.bg-rose-500\/20 { background-color: #F43F5E33; }
.bg-rose-900\/30 { background-color: #8813374C; }
.bg-rose-950\/40 { background-color: #4C051966; }
.bg-sky-500\/10 { background-color: #0EA5E91A; }
.bg-slate-100\/80 { background-color: #F1F5F9CC; }
.bg-violet-500\/10 { background-color: #8B5CF61A; }
.bg-violet-500\/15 { background-color: #8B5CF626; }
.bg-white\/10 { background-color: #FFFFFF1A; }
.bg-white\/15 { background-color: #FFFFFF26; }
.bg-white\/5 { background-color: #FFFFFF0D; }
.bg-white\/70 { background-color: #FFFFFFB2; }
.bg-yellow-900\/20 { background-color: #713F1233; }
.border-amber-500\/20 { border-color: #F59E0B33; }
.border-amber-500\/30 { border-color: #F59E0B4C; }
.border-amber-500\/40 { border-color: #F59E0B66; }
.border-amber-700\/30 { border-color: #B453094C; }
.border-amber-900\/40 { border-color: #78350F66; }
.border-blue-500\/30 { border-color: #3B82F64C; }
.border-emerald-500\/20 { border-color: #10B98133; }
.border-indigo-500\/40 { border-color: #6366F166; }
.border-orange-700\/30 { border-color: #C2410C4C; }
.border-red-500\/30 { border-color: #EF44444C; }
.border-rose-900\/40 { border-color: #88133766; }
.border-sky-500\/20 { border-color: #0EA5E933; }
.border-sky-700\/30 { border-color: #0369A14C; }
.border-violet-700\/30 { border-color: #6D28D94C; }
.border-white\/10 { border-color: #FFFFFF1A; }
.border-white\/15 { border-color: #FFFFFF26; }
.border-white\/20 { border-color: #FFFFFF33; }
.border-white\/5 { border-color: #FFFFFF0D; }
.divide-white\/10 { divide-color: #FFFFFF1A; }
.divide-white\/5 { divide-color: #FFFFFF0D; }
.hover\:bg-blue-700:hover { background-color: #1D4ED8; }
.hover\:bg-blue-950/20:hover { background-color: #17255433; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:bg-indigo-700:hover { background-color: #4338CA; }
.hover\:bg-red-700:hover { background-color: #B91C1C; }
.hover\:bg-rose-200:hover { background-color: #FECDD3; }
.hover\:bg-rose-500/15:hover { background-color: #F43F5E26; }
.hover\:bg-rose-500/30:hover { background-color: #F43F5E4C; }
.hover\:bg-sky-600:hover { background-color: #0284C7; }
.hover\:bg-slate-600:hover { background-color: #475569; }
.hover\:bg-teal-800:hover { background-color: #115E59; }
.hover\:bg-violet-200/70:hover { background-color: #DDD6FEB2; }
.hover\:bg-violet-500/25:hover { background-color: #8B5CF640; }
.hover\:bg-white/10:hover { background-color: #FFFFFF1A; }
.hover\:bg-white/20:hover { background-color: #FFFFFF33; }
.hover\:bg-white/5:hover { background-color: #FFFFFF0D; }
.text-violet-300\/60 { color: #C4B5FD99; }
.text-violet-300\/70 { color: #C4B5FDB2; }
.text-violet-700\/70 { color: #6D28D9B2; }
.text-violet-700\/80 { color: #6D28D9CC; }

.text-white { color: #FFFFFF; }
/* Tailwind 50-shades (2026-09-20) */
.bg-rose-50 { background-color: #FFF1F2; }
.bg-blue-50 { background-color: #EFF6FF; }
.bg-indigo-50 { background-color: #EEF2FF; }
.bg-amber-50 { background-color: #FFFBEB; }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-sky-50 { background-color: #F0F9FF; }
.bg-yellow-50 { background-color: #FEFCE8; }
.bg-emerald-50 { background-color: #ECFDF5; }
.bg-red-50 { background-color: #FEF2F2; }
.bg-green-50 { background-color: #F0FDF4; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-violet-50 { background-color: #F5F3FF; }
.bg-amber-50\/60 { background-color: #FFFBEB99; }
.bg-indigo-50\/60 { background-color: #EEF2FF99; }
.bg-emerald-50\/60 { background-color: #ECFDF599; }

/* == Tailwind structural utilities (2026-09-21) ==
   layout/size/spacing classes used in blade templates but missing from loaded CSS */
.border-0 { border-width: 0px; }
.border-b-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-0.5 { gap: 0.125rem; }
.gap-1.5 { gap: 0.375rem; }
.gap-2.5 { gap: 0.625rem; }
.h-1.5 { height: 0.375rem; }
.h-12 { height: 3rem; }
.h-2 { height: 0.5rem; }
.h-2.5 { height: 0.625rem; }
.h-3.5 { height: 0.875rem; }
.h-cell { height: ; }
.items-baseline { align-items: baseline; }
.leading-tight { line-height: 1.25; }
.line-through { text-decoration-line: line-through; }
.max-h-[600px] { max-height: ; }
.max-h-80 { max-height: 20rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1.5 { margin-bottom: 0.375rem; }
.mb-3 { margin-bottom: 0.75rem; }
.min-w-7 { min-width: 1.75rem; }
.min-w-8 { min-width: 2rem; }
.mr-auto { margin-right: auto; }
.mt-0.5 { margin-top: 0.125rem; }
.mt-1.5 { margin-top: 0.375rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mx-4 { margin-inline: 1rem; }
.my-1 { margin-block: 0.25rem; }
.opacity-25 { opacity: 0.25; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.p-0.5 { padding: 0.125rem; }
.p-1.5 { padding: 0.375rem; }
.p-2.5 { padding: 0.625rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pt-1 { padding-top: 0.25rem; }
.px-1.5 { padding-inline: 0.375rem; }
.px-2.5 { padding-inline: 0.625rem; }
.px-3.5 { padding-inline: 0.875rem; }
.px-5 { padding-inline: 1.25rem; }
.py-0.5 { padding-block: 0.125rem; }
.py-1.5 { padding-block: 0.375rem; }
.py-2.5 { padding-block: 0.625rem; }
.py-24 { padding-block: 6rem; }
.rounded-2xl { border-radius: ; }
.rounded-l-md { border-radius-left: ; }
.rounded-r-md { border-radius-right: ; }
.transform { transform: translate(var(--tw-translate-x,0),var(--tw-translate-y,0)) rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1)); }
.uppercase { text-transform: uppercase; }
.w-1.5 { width: 0.375rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-2 { width: 0.5rem; }
.w-2.5 { width: 0.625rem; }
.w-3.5 { width: 0.875rem; }
.w-fit { width: fit-content; }

/* (يدوي) أحجام نص arbitrary وظلال ومتفرقات ناقصة */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.leading-7 { line-height: 1.75rem; }
.leading-relaxed { line-height: 1.625; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0/0.1), 0 2px 4px -2px rgb(0 0 0/0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0/0.25); }
.tracking-wider { letter-spacing: 0.05em; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.border-collapse { border-collapse: collapse; }
.border-separate { border-separate: separate; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rotate-180 { transform: rotate(180deg); }
.table { display: table; }
.placeholder-gray-400::placeholder { color: #9CA3AF; }
.decoration-gray-300 { text-decoration-color: #D1D5DB; }
@media print { .no-print { display: none !important; } }

/* ═══ جوال: أهداف لمس مريحة (≥44px) — شريط الجلسات وأزراره ═══ */
@media (max-width: 640px) {
    .jw-sess-chip,
    #jw-save-btn,
    #jw-saveas-btn {
        min-height: 44px;
    }
    #jw-save-btn,
    #jw-saveas-btn {
        min-width: 44px;
    }
}
