@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap");
/* أيقونات Font Awesome تُضاف في <head> كل صفحة:
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> */

/* ==========================================================================
   style.css — الملف المرجعي لتصميم صفحات جامعة المشرق
   الخط: Tajawal (400 / 500 / 700 / 800 / 900)
   الاتجاه: RTL

   الفهرس
   01. المتغيرات (Design Tokens)
   02. Reset والأساسيات
   03. التخطيط (Layout) والشبكات
   04. الترويسة والتذييل
   05. العناوين والنصوص
   06. الأزرار
   07. النماذج (Inputs / Select / Textarea / Checkbox / Radio / Switch)
   08. نموذج البحث
   09. رسائل النظام (Alerts)
   10. البطاقات وصناديق المعلومات
   11. الجداول
   12. الشارات (Badges / Pills / Chips)
   13. بطاقات الإحصائيات ولوحة التنبيهات
   14. التبويبات / التنقل / الصفحات / الفتات
   15. النوافذ المنبثقة (Modal) والدرج الجانبي (Drawer)
   16. Toast / Tooltip / Dropdown
   17. شريط التقدم / Spinner / حالة فارغة / Accordion / قوائم
   18. الإيصالات والمحفظة (خاص بلوحة الطلبات)
   19. أدوات مساعدة (Utilities)
   20. التجاوب (Responsive)
   21. الطباعة (Print)
   ========================================================================== */


/* ==========================================================================
   01. المتغيرات
   ========================================================================== */
:root {
    /* الألوان الأساسية */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    /* ألوان محايدة */
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --white: #ffffff;

    /* خلفيات الحالات */
    --success-bg: #d1fae5;  --success-text: #065f46;
    --danger-bg: #fee2e2;   --danger-text: #991b1b;
    --warning-bg: #fef3c7;  --warning-text: #92400e;
    --info-bg: #dbeafe;     --info-text: #1e3a8a;
    --neutral-bg: #e2e8f0;  --neutral-text: #475569;

    /* الحدود والظلال */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);

    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-info: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-page: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);

    /* الخطوط */
    --font-main: "Tajawal", Tahoma, Arial, sans-serif;
    --font-mono: Consolas, "Courier New", monospace;

    /* الطبقات */
    --z-dropdown: 100;
    --z-drawer: 900;
    --z-modal: 9999;
    --z-modal-top: 10000;
    --z-toast: 11000;

    /* المسافات */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    --transition: all 0.2s ease;
}


/* ==========================================================================
   02. Reset والأساسيات
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--gradient-page);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
    padding: 30px 15px;
}

/* الصفحات المتمركزة (استعلام / دخول) */
body.body-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

button, input, select, textarea { font-family: var(--font-main); }

:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }

::selection { background: var(--primary-light); color: var(--primary-dark); }

hr { border: none; border-top: 2px dashed var(--border-light); margin: 20px 0; }


/* ==========================================================================
   03. التخطيط والشبكات
   ========================================================================== */
.container {
    width: 100%;
    max-width: 950px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    margin: 0 auto;
    position: relative;
}
.container.container-sm { max-width: 600px; }
.container.container-lg { max-width: 1200px; }
.container.container-xl { max-width: 1500px; }

/* شبكات */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }


/* ==========================================================================
   04. الترويسة والتذييل
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 2px dashed var(--border-light);
    position: relative;
}

.header .logo img {
    width: 85px;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.header .header-content {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
}

.header .title-uni {
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .title-exam {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.header .title-result {
    font-weight: 900;
    color: var(--danger-color);
    font-size: 1.25rem;
}

.header .subtitle {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    margin-top: 3px;
}

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.footer {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 700;
}


/* ==========================================================================
   05. العناوين والنصوص
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { font-weight: 900; color: var(--secondary-color); line-height: 1.4; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 10px; font-weight: 500; }

strong, b { font-weight: 900; }

small, .text-small { font-size: 12px; }

code, kbd {
    font-family: var(--font-mono);
    background: var(--neutral-bg);
    color: var(--text-dark);
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    direction: ltr;
    unicode-bidi: embed;
}

/* عنوان القسم (خط برتقالي تحته) */
.section-title {
    font-weight: 900;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 8px;
    margin: 25px 0 15px;
    font-size: 1.3rem;
    position: relative;
    text-align: center;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}
.section-title.section-title-sm { font-size: 1.15rem; border-bottom-width: 2px; margin-top: 0; }
.section-title.section-title-start { text-align: right; }
.section-title.section-title-start::after { left: auto; right: 0; transform: none; }

/* ألوان وأوزان النص */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--accent-dark); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-ltr { direction: ltr; unicode-bidi: embed; }
.fw-400 { font-weight: 400; } .fw-500 { font-weight: 500; } .fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; } .fw-900 { font-weight: 900; }
.mono { font-family: var(--font-mono); font-weight: 900; direction: ltr; }


/* ==========================================================================
   06. الأزرار
   ========================================================================== */
.btn {
    font-family: var(--font-main);
    font-weight: 800;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--gradient-primary); color: #fff; }
.btn-accent    { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.btn-accent:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.btn-success   { background: var(--success-color); color: #fff; }
.btn-danger    { background: var(--danger-color); color: #fff; }
.btn-info      { background: var(--info-color); color: #fff; }
.btn-warn      { background: var(--warning-color); color: #fff; }
.btn-secondary { background: var(--neutral-bg); color: var(--text-dark); }
.btn-dark      { background: var(--dark-bg); color: #fff; }

/* أزرار بحدود */
.btn-outline-primary { background: #fff; color: var(--primary-color); border: 2px solid #bfdbfe; }
.btn-outline-primary:hover { background: #eff6ff; }
.btn-outline-accent  { background: #fff; color: var(--accent-dark); border: 2px solid #fde68a; }
.btn-outline-accent:hover { background: #fffbeb; }
.btn-outline-danger  { background: #fff; color: var(--danger-color); border: 2px solid #fecaca; }
.btn-outline-danger:hover { background: #fef2f2; }
.btn-outline-success { background: #fff; color: var(--success-color); border: 2px solid #a7f3d0; }
.btn-outline-success:hover { background: #ecfdf5; }

/* زر خفيف (بدون خلفية) */
.btn-ghost { background: transparent; color: var(--primary-color); }
.btn-ghost:hover { background: var(--primary-light); }

/* أزرار الخروج */
.logout-btn {
    background: var(--danger-bg);
    color: var(--danger-color);
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.logout-btn:hover { background: #fecaca; color: var(--danger-color); }

/* الأحجام */
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* حالة التعطيل */
.btn:disabled, .btn.disabled {
    background: #f1f5f9; color: var(--text-muted);
    cursor: not-allowed; opacity: 0.7; transform: none; box-shadow: none;
}

/* زر التحميل */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
    content: ""; position: absolute; width: 18px; height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.5); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* زر الخدمة (شبكة ثلاثية) */
.services-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; }
.service-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; font-size: 15px; font-weight: 800;
    border-radius: 10px; cursor: pointer; text-align: center; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.btn-print       { background: var(--gradient-primary); color: #fff; }
.btn-print:hover { opacity: 0.9; transform: translateY(-2px); color: #fff; }
.btn-review      { background: #fff; color: #2563eb; border: 2px solid #bfdbfe; }
.btn-review:hover { background: #eff6ff; }
.btn-supplements { background: #fff; color: #d97706; border: 2px solid #fde68a; }
.btn-supplements:hover { background: #fffbeb; }

/* أزرار الإجراءات داخل الجداول (شبكة 2×2) */
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 200px; margin: 0 auto; }
.act-btn {
    font-weight: 800; padding: 6px 8px; border: none; border-radius: 6px;
    cursor: pointer; font-size: 11px; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: var(--transition); white-space: nowrap;
}
.act-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.act-view     { background: #e0e7ff; color: #3730a3; }
.act-receipt  { background: #dbeafe; color: #1e40af; }
.act-approve  { background: #d1fae5; color: #065f46; }
.act-reject   { background: #fee2e2; color: #991b1b; }
.act-disabled { background: #f1f5f9; color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }

/* مجموعة أزرار */
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: 0 10px 10px 0; }
.btn-group .btn:last-child { border-radius: 10px 0 0 10px; }


/* ==========================================================================
   07. النماذج
   ========================================================================== */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.form-label { font-weight: 800; color: var(--secondary-color); font-size: 13px; }
.form-label .required { color: var(--danger-color); margin-right: 3px; }

.form-control,
.form-select,
.form-textarea {
    font-family: var(--font-main);
    font-weight: 700;
    padding: 11px 14px;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
}
.form-control::placeholder, .form-textarea::placeholder { color: var(--text-muted); font-weight: 500; }

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

.form-textarea { min-height: 100px; resize: vertical; }
.form-control.ltr { direction: ltr; text-align: center; }

/* حالات التحقق */
.form-control.is-valid, .form-select.is-valid { border-color: var(--success-color); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger-color); }
.form-hint { font-size: 12px; color: var(--text-light); font-weight: 700; }
.form-error { font-size: 12px; color: var(--danger-color); font-weight: 800; }
.form-success { font-size: 12px; color: var(--success-color); font-weight: 800; }

.form-control:disabled, .form-select:disabled, .form-textarea:disabled {
    background: #f1f5f9; color: var(--text-muted); cursor: not-allowed;
}

/* مجموعة إدخال بأيقونة / زر */
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: 0 10px 10px 0; flex: 1; }
.input-group .input-addon {
    display: flex; align-items: center; padding: 0 14px;
    background: var(--neutral-bg); border: 2px solid var(--border-color);
    border-right: none; border-radius: 10px 0 0 10px;
    font-weight: 800; color: var(--text-light);
}

/* Checkbox / Radio */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; }
.check input[type="checkbox"], .check input[type="radio"] {
    width: 18px; height: 18px; accent-color: var(--primary-color); cursor: pointer;
}

/* مفتاح تبديل (Switch) — <label class="switch"><input type="checkbox"><span class="slider"></span></label> */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0; background: var(--border-color);
    border-radius: 26px; cursor: pointer; transition: var(--transition);
}
.switch .slider::before {
    content: ""; position: absolute; width: 20px; height: 20px;
    right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition);
}
.switch input:checked + .slider { background: var(--success-color); }
.switch input:checked + .slider::before { transform: translateX(-20px); }

/* رفع الملفات */
.file-drop {
    border: 3px dashed var(--border-color); border-radius: var(--border-radius);
    padding: 30px; text-align: center; background: var(--light-bg);
    color: var(--text-light); font-weight: 800; cursor: pointer; transition: var(--transition);
}
.file-drop:hover, .file-drop.dragover { border-color: var(--primary-color); background: #eff6ff; color: var(--primary-color); }

/* شريط الفلاتر */
.filters {
    background: var(--light-bg); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: 16px; margin-bottom: 18px;
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.filters .fgroup { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-weight: 800; color: var(--secondary-color); font-size: 13px; }
.filters input, .filters select {
    font-family: var(--font-main); font-weight: 700; padding: 9px 12px;
    border: 2px solid var(--border-color); border-radius: var(--border-radius-sm);
    font-size: 14px; background: #fff;
}

/* أزرار الفلترة السريعة (Chips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: var(--border-radius-pill);
    background: #fff; border: 2px solid var(--border-light);
    font-weight: 800; font-size: 13px; color: var(--text-dark);
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.chip.active { background: var(--gradient-primary); border-color: transparent; color: #fff; }
.chip .count {
    background: var(--neutral-bg); color: var(--neutral-text);
    padding: 0 8px; border-radius: var(--border-radius-pill); font-size: 11px; font-weight: 900;
}
.chip.active .count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.chip.chip-danger .count { background: var(--danger-bg); color: var(--danger-text); }


/* ==========================================================================
   08. نموذج البحث
   ========================================================================== */
.search-form {
    display: flex; flex-direction: row; gap: 12px;
    align-items: center; justify-content: center;
    margin: 15px 0 30px; flex-wrap: nowrap;
}

.search-form input[type="text"],
.search-form input[type="number"] {
    font-family: var(--font-main); font-weight: 700;
    padding: 14px 20px; width: 320px;
    border: 2px solid var(--border-color); border-radius: 10px;
    font-size: 16px; text-align: center; background: #fff; color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    direction: ltr; flex-shrink: 0;
}

.search-form input:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.search-form button {
    font-family: var(--font-main); font-weight: 800; width: 130px;
    background: var(--gradient-accent); color: #fff; border: none;
    padding: 14px 20px; font-size: 16px; cursor: pointer; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0; white-space: nowrap;
}
.search-form button:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }

/* صندوق الدخول */
.login-box {
    max-width: 400px; margin: 80px auto; background: #fff; padding: 35px;
    border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center;
}
.login-box h2 { color: var(--secondary-color); font-weight: 900; margin-bottom: 20px; }
.login-box input {
    padding: 12px; border: 2px solid var(--border-color); border-radius: 9px;
    width: 100%; font-size: 16px; text-align: center; font-weight: 800; margin-bottom: 12px;
}
.login-box button {
    background: var(--gradient-primary); color: #fff; border: none; padding: 12px;
    border-radius: 9px; font-weight: 800; width: 100%; cursor: pointer; font-size: 16px;
}


/* ==========================================================================
   09. رسائل النظام (error / warning / info / success)
   ========================================================================== */
.message-box {
    font-weight: 800; padding: 20px 24px; margin: 20px 0;
    border-radius: var(--border-radius); font-size: 1.05rem; text-align: center;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    gap: 15px; line-height: 1.8;
}
.message-box .icon-box {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.message-box .text-box { flex: 1; text-align: right; }
.message-box .text-box strong { font-weight: 900; }

.message-box.error   { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-right: 5px solid var(--danger-color); }
.message-box.error .icon-box   { background: linear-gradient(135deg, #ef4444, #dc2626); }

.message-box.warning { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #78350f; border-right: 5px solid var(--warning-color); }
.message-box.warning .icon-box { background: linear-gradient(135deg, #f59e0b, #d97706); }

.message-box.info    { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e3a8a; border-right: 5px solid var(--info-color); }
.message-box.info .icon-box    { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

.message-box.success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border-right: 5px solid var(--success-color); }
.message-box.success .icon-box { background: linear-gradient(135deg, #10b981, #059669); }

/* رسالة مضغوطة (سطر واحد) */
.alert-inline {
    font-weight: 800; padding: 12px 16px; border-radius: 10px; font-size: 14px;
    border-right: 4px solid; margin: 10px 0;
}
.alert-inline.success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-color); }
.alert-inline.error   { background: var(--danger-bg);  color: var(--danger-text);  border-color: var(--danger-color); }
.alert-inline.warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-color); }
.alert-inline.info    { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info-color); }

/* ملاحظة ملونة داخل المحتوى */
.note-box {
    background: var(--warning-bg); border: 2px solid var(--warning-color);
    border-radius: 10px; padding: 12px; margin: 15px 0;
}
.note-box strong { color: var(--warning-text); }
.note-box .note-body {
    margin-top: 6px; padding: 10px; background: #fff; border-radius: 6px;
    font-weight: 700; white-space: pre-wrap;
}


/* ==========================================================================
   10. البطاقات وصناديق المعلومات
   ========================================================================== */
.card {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: 20px;
    box-shadow: var(--shadow-sm);
}
.card-header {
    font-weight: 900; color: var(--secondary-color); font-size: 1.1rem;
    padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.card.card-hover { transition: var(--transition); }
.card.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.card-primary { border-color: var(--primary-color); border-width: 3px; }

/* صندوق البيانات الأساسية */
.student-info-box {
    background: var(--light-bg); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: 22px; margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); text-align: right;
}
.student-info-box .section-title { margin-top: 0; font-size: 1.15rem; border-bottom-width: 2px; }

.info-container { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.info-row {
    display: flex; flex-wrap: nowrap; gap: 15px;
    justify-content: space-between; align-items: center;
    font-size: 15px; color: var(--text-dark); width: 100%;
}
.info-item { display: inline-flex; align-items: baseline; padding: 4px 8px; font-weight: 800; flex: 1; }
.info-item strong { color: var(--secondary-color); margin-left: 6px; white-space: nowrap; font-weight: 900; }
.item-gpa { font-weight: 900; color: var(--danger-color); }

/* لوحة التفاصيل */
.details-panel {
    background: #fff; border: 3px solid var(--primary-color);
    border-radius: var(--border-radius); padding: 22px; margin: 20px 0; box-shadow: var(--shadow);
}
.details-panel h2 {
    color: var(--primary-color); font-weight: 900; margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-color); padding-bottom: 8px;
}
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.detail-box { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 12px; }
.detail-box .lbl { font-size: 12px; color: var(--text-light); font-weight: 800; margin-bottom: 4px; }
.detail-box .val { font-size: 15px; color: var(--text-dark); font-weight: 900; }

/* مربع إرشادي / فارغ */
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--text-light); font-weight: 800;
    background: var(--light-bg); border: 2px dashed var(--border-color); border-radius: var(--border-radius);
}
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 12px; display: block; }


/* ==========================================================================
   11. الجداول
   ========================================================================== */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--border-radius); }

/* جدول النتيجة */
table.grades-table {
    width: 75%; border-collapse: collapse; margin: 25px auto;
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: var(--shadow); background: #fff;
}
table.grades-table th, table.grades-table td {
    border: 1.5px solid var(--border-color); padding: 12px 15px;
    text-align: right; font-size: 15px; font-weight: 800; color: var(--text-dark);
}
table.grades-table th { background: var(--gradient-primary); color: #fff; font-weight: 900; text-align: center; }
table.grades-table td:last-child { text-align: center; }
table.grades-table tr:nth-child(even) { background-color: var(--light-bg); }

.grade-warning {
    background-color: var(--danger-bg) !important;
    color: var(--danger-color) !important;
    font-weight: 900 !important;
}

/* جدول البيانات العام (لوحات الإدارة) */
table.data-table {
    width: 100%; border-collapse: collapse; margin-top: 15px;
    border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.data-table th, .data-table td {
    border: 1.5px solid var(--border-color); padding: 10px 8px;
    text-align: right; font-size: 13px; font-weight: 800; color: var(--text-dark);
}
.data-table th { background: var(--gradient-primary); color: #fff; text-align: center; font-size: 12.5px; }
.data-table tbody tr:nth-child(even) { background: var(--light-bg); }
.data-table tbody tr:hover { background: #eff6ff; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: var(--primary-dark); }
.data-table.sticky-head thead th { position: sticky; top: 0; z-index: 2; }
.data-table .cell-center { text-align: center; }
.data-table .cell-num { text-align: center; font-family: var(--font-mono); direction: ltr; color: var(--primary-color); font-weight: 900; }

/* تلوين الصفوف حسب الحالة */
.row-success { background: #f0fdf4 !important; }
.row-warning { background: #fffbeb !important; }
.row-danger  { background: var(--danger-bg) !important; }
.row-info    { background: #eff6ff !important; }
.row-muted   { background: #f1f5f9 !important; color: var(--text-light); }

/* جدول مضغوط للتفاصيل */
table.items-table { width: 100%; border-collapse: collapse; margin: 15px 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.items-table th, .items-table td { border: 1.5px solid var(--border-color); padding: 9px 10px; text-align: right; font-size: 13px; font-weight: 800; color: var(--text-dark); }
.items-table th { background: var(--gradient-primary); color: #fff; text-align: center; font-size: 12px; }

/* ترقيم الصفحات */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-light); border-radius: 10px;
    font-weight: 800; font-size: 14px; color: var(--text-dark); background: #fff;
}
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination .current { background: var(--gradient-primary); border-color: transparent; color: #fff; }
.pagination .disabled { opacity: 0.45; pointer-events: none; }


/* ==========================================================================
   12. الشارات
   ========================================================================== */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: var(--border-radius-pill);
    font-weight: 900; font-size: 11px; white-space: nowrap;
}
.badge-primary { background: var(--info-bg);    color: #1e40af; }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-info    { background: #cffafe;           color: #0891b2; }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-text); }
.badge-solid-primary { background: var(--primary-color); color: #fff; }
.badge-solid-danger  { background: var(--danger-color);  color: #fff; }

/* حالات الطلبات */
.status-PENDING_VERIFICATION, .status-PENDING_FINANCE { background: var(--warning-bg); color: var(--warning-text); }
.status-VERIFIED, .status-PAYMENT_APPROVED, .status-APPROVED { background: var(--success-bg); color: var(--success-text); }
.status-REJECTED, .status-PAYMENT_REJECTED { background: var(--danger-bg); color: var(--danger-text); }
.status-ARCHIVED { background: var(--neutral-bg); color: var(--neutral-text); }
.status-COMPLETED { background: var(--info-bg); color: #1e40af; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-weight: 900; font-size: 11px; white-space: nowrap; }

/* أنواع الطلبات */
.type-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-weight: 900; font-size: 11px; }
.type-RECHECK { background: var(--info-bg); color: #1e40af; }
.type-SUPPLEMENT { background: var(--warning-bg); color: var(--warning-text); }

/* حالات الدفع للمادة */
.item-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 900; }
.item-badge.paid, .item-badge.original { background: var(--success-bg); color: var(--success-text); }
.item-badge.partial, .item-badge.added { background: var(--warning-bg); color: var(--warning-text); }
.item-badge.unpaid { background: var(--danger-bg); color: var(--danger-text); }
.item-badge.free { background: var(--info-bg); color: #1e40af; }

/* حبوب صغيرة */
.pill { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 800; margin: 0 2px; }
.pill-success { background: var(--success-bg); color: var(--success-text); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger-text); }
.pill-info    { background: #cffafe; color: #0891b2; }

/* نقطة حالة */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); margin-left: 6px; }
.dot-success { background: var(--success-color); }
.dot-danger  { background: var(--danger-color); }
.dot-warning { background: var(--warning-color); }
.dot-info    { background: var(--info-color); }


/* ==========================================================================
   13. بطاقات الإحصائيات ولوحة التنبيهات
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 20px 0; }
.stat-card {
    background: #fff; border: 2px solid var(--border-light); border-radius: var(--border-radius);
    padding: 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card .num { font-weight: 900; font-size: 1.7rem; line-height: 1.2; }
.stat-card .lbl { font-weight: 800; font-size: 12px; color: var(--text-light); margin-top: 4px; }
.stat-card.pending-ver .num { color: var(--warning-color); }
.stat-card.verified .num    { color: var(--success-color); }
.stat-card.rejected .num    { color: var(--danger-color); }
.stat-card.archived .num    { color: var(--text-light); }
.stat-card.completed .num   { color: var(--info-color); }
.stat-card.total .num       { color: var(--primary-color); }

/* لوحة التنبيهات */
.alerts-panel {
    background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid var(--accent-color);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
.alerts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.alerts-title { font-weight: 900; color: #92400e; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.alerts-title i { color: var(--accent-dark); font-size: 1.2rem; }
.alerts-count { background: #dc2626; color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 900; animation: pulse-badge 2s infinite; }
.alerts-hint { font-weight: 700; color: #78350f; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

.alert-card {
    background: #fff; border-radius: 10px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    border: 2px solid transparent; transition: all 0.2s; position: relative; overflow: hidden;
}
.alert-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); }
.alert-card.danger  { border-color: var(--danger-color); }
.alert-card.danger:hover  { background: #fef2f2; }
.alert-card.warning { border-color: var(--warning-color); }
.alert-card.warning:hover { background: #fffbeb; }
.alert-card.info    { border-color: var(--primary-color); }
.alert-card.info:hover    { background: #eff6ff; }
.alert-card .alert-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0; position: relative;
}
.alert-card.danger .alert-icon  { background: linear-gradient(135deg, #ef4444, #dc2626); }
.alert-card.warning .alert-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.alert-card.info .alert-icon    { background: linear-gradient(135deg, #2563eb, #1e40af); }
.alert-card .alert-icon .pulse {
    position: absolute; top: -2px; right: -2px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--danger-color); border: 2px solid #fff;
    animation: pulse-dot 1.5s infinite;
}
.alert-card .alert-content { flex: 1; }
.alert-card .alert-num { font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--text-dark); }
.alert-card.danger .alert-num  { color: #dc2626; }
.alert-card.warning .alert-num { color: var(--accent-dark); }
.alert-card.info .alert-num    { color: var(--primary-color); }
.alert-card .alert-lbl { font-size: 11.5px; font-weight: 800; color: var(--text-light); margin-top: 3px; }
.alert-card .arrow { color: var(--border-color); font-size: 14px; transition: all 0.2s; }
.alert-card:hover .arrow { color: var(--primary-color); transform: translateX(-4px); }


/* ==========================================================================
   14. التبويبات / التنقل / الفتات
   ========================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 3px solid var(--border-light); margin-bottom: 18px; overflow-x: auto; }
.tab {
    padding: 10px 20px; font-weight: 800; color: var(--text-light); cursor: pointer;
    border-radius: 10px 10px 0 0; border: none; background: transparent; font-size: 14px; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -3px; transition: var(--transition);
}
.tab:hover { color: var(--primary-color); background: #eff6ff; }
.tab.active { color: var(--primary-color); border-bottom-color: var(--accent-color); background: #eff6ff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* شريط التنقل */
.navbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    background: var(--gradient-primary); color: #fff; padding: 12px 20px;
    border-radius: var(--border-radius); margin-bottom: 20px; box-shadow: var(--shadow);
}
.navbar .brand { font-weight: 900; font-size: 1.2rem; color: #fff; }
.navbar .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.navbar .nav-links a { color: #fff; font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 8px; }
.navbar .nav-links a:hover, .navbar .nav-links a.active { background: rgba(255, 255, 255, 0.2); }

/* فتات الخبز */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; margin-bottom: 16px; color: var(--text-light); }
.breadcrumb a { color: var(--primary-color); }
.breadcrumb .sep::before { content: "‹"; color: var(--text-muted); }
.breadcrumb .current { color: var(--text-dark); }

/* خطوات (Stepper) */
.steps { display: flex; justify-content: space-between; gap: 8px; margin: 20px 0; counter-reset: step; }
.step { flex: 1; text-align: center; font-weight: 800; font-size: 12.5px; color: var(--text-muted); position: relative; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 50%;
    background: var(--neutral-bg); color: var(--neutral-text); font-weight: 900;
}
.step.done::before { background: var(--success-color); color: #fff; content: "✓"; }
.step.active { color: var(--primary-color); }
.step.active::before { background: var(--gradient-primary); color: #fff; }


/* ==========================================================================
   15. Modal و Drawer
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
    z-index: var(--z-modal); display: none;
    justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal {
    background: #fff; border-radius: 14px; max-width: 520px; width: 100%;
    max-height: 95vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal.modal-lg { max-width: 900px; }
.modal-header {
    background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; padding: 14px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 900; font-size: 1.05rem;
}
.modal-header .close-btn {
    background: var(--danger-color); color: #fff; border: none; padding: 6px 14px;
    border-radius: 6px; font-weight: 900; cursor: pointer; font-size: 14px;
}
.modal-body { flex: 1; overflow: auto; padding: 18px; background: var(--light-bg); }
.modal-footer { padding: 14px 20px; background: #fff; border-top: 2px solid var(--border-light); display: flex; gap: 10px; flex-wrap: wrap; }
.modal-footer .btn { flex: 1; padding: 12px; }

/* نافذة تأكيد صغيرة */
.confirm-modal { max-width: 440px; padding: 25px; text-align: center; }
.confirm-modal h3 { margin-bottom: 12px; }
.confirm-modal .actions { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }

/* الدرج الجانبي */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: var(--z-drawer); display: none; }
.drawer-overlay.show { display: block; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: 520px; max-width: 100%;
    background: #fff; z-index: calc(var(--z-drawer) + 1); box-shadow: var(--shadow-lg);
    transform: translateX(-100%); transition: transform 0.3s ease; display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-header { padding: 16px 20px; background: var(--gradient-primary); color: #fff; font-weight: 900; display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 18px; }
.drawer-footer { padding: 14px 20px; border-top: 2px solid var(--border-light); display: flex; gap: 10px; }


/* ==========================================================================
   16. Toast / Tooltip / Dropdown
   ========================================================================== */
.toast-container { position: fixed; top: 20px; left: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 260px; max-width: 380px; padding: 14px 18px; border-radius: 10px;
    font-weight: 800; font-size: 14px; color: #fff; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px; animation: toast-in 0.3s ease;
}
.toast.success { background: var(--gradient-success); }
.toast.error   { background: var(--gradient-danger); }
.toast.warning { background: var(--gradient-accent); }
.toast.info    { background: var(--gradient-info); }
.toast.hide { animation: toast-out 0.3s ease forwards; }

/* Tooltip — <span class="tooltip" data-tip="نص">…</span> */
.tooltip { position: relative; cursor: help; }
.tooltip::after {
    content: attr(data-tip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
    background: var(--dark-bg); color: #fff; padding: 6px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition);
    z-index: var(--z-dropdown);
}
.tooltip:hover::after { opacity: 1; }

/* قائمة منسدلة */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; top: 105%; left: 0; min-width: 190px; background: #fff;
    border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow);
    padding: 6px; display: none; z-index: var(--z-dropdown);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px;
    border: none; background: transparent; font-weight: 800; font-size: 13px;
    color: var(--text-dark); border-radius: 7px; cursor: pointer; text-align: right;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: #eff6ff; color: var(--primary-color); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 5px 0; }


/* ==========================================================================
   17. Progress / Spinner / Accordion / Lists
   ========================================================================== */
.progress { width: 100%; height: 12px; background: var(--neutral-bg); border-radius: var(--border-radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: var(--border-radius-pill); transition: width 0.4s ease; }
.progress-bar.success { background: var(--gradient-success); }
.progress-bar.danger  { background: var(--gradient-danger); }
.progress-bar.accent  { background: var(--gradient-accent); }

.spinner {
    width: 36px; height: 36px; border: 4px solid var(--border-light);
    border-top-color: var(--primary-color); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 20px auto;
}
.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; min-height: 16px; }

/* Accordion — <details class="accordion"><summary>…</summary><div class="accordion-body">…</div></details> */
.accordion { border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.accordion summary { padding: 12px 16px; font-weight: 800; cursor: pointer; color: var(--secondary-color); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "▾"; transition: var(--transition); }
.accordion[open] summary::after { transform: rotate(180deg); }
.accordion[open] summary { background: #eff6ff; }
.accordion-body { padding: 14px 16px; border-top: 1px solid var(--border-light); }

/* قوائم */
.list-group { list-style: none; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; background: #fff; }
.list-group li { padding: 11px 16px; border-bottom: 1px solid var(--border-light); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.list-group li:last-child { border-bottom: none; }
.list-group li:hover { background: var(--light-bg); }
ul.list-check { list-style: none; }
ul.list-check li::before { content: "✓"; color: var(--success-color); font-weight: 900; margin-left: 8px; }

/* خط زمني */
.timeline { border-right: 3px solid var(--border-light); padding-right: 18px; margin: 15px 0; }
.timeline-item { position: relative; padding: 8px 12px; background: #fff; border-radius: 8px; margin-bottom: 10px; border-right: 4px solid var(--primary-color); box-shadow: var(--shadow-sm); }
.timeline-item.approved { border-right-color: var(--success-color); }
.timeline-item.rejected { border-right-color: var(--danger-color); }
.timeline-item::before { content: ""; position: absolute; right: -29px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-color); border: 2px solid #fff; }
.timeline-item .t-title { font-weight: 900; color: var(--secondary-color); font-size: 13px; }
.timeline-item .t-body  { font-size: 13px; font-weight: 700; margin-top: 3px; }
.timeline-item .t-meta  { font-size: 11.5px; color: var(--text-light); font-weight: 700; margin-top: 3px; }


/* ==========================================================================
   18. الإيصالات والمحفظة
   ========================================================================== */
/* خلية المدفوع/المتبقي */
.payment-cell { padding: 6px !important; }
.payment-cell .row1 { font-weight: 900; color: var(--success-color); font-size: 13px; text-align: center; }
.payment-cell .row1.danger { color: var(--danger-color); }
.payment-cell .row2 { font-size: 11px; color: var(--text-light); font-weight: 700; text-align: center; margin-top: 2px; }
.payment-cell .row3 { font-size: 10.5px; font-weight: 800; text-align: center; margin-top: 3px; }

/* صندوق المحفظة */
.wallet-box { margin: 15px 0; padding: 16px; border-radius: 10px; border: 2px solid; }
.wallet-box.credit   { background: #cffafe; border-color: #0891b2; }
.wallet-box.fullpaid { background: #f0fdf4; border-color: var(--success-color); }
.wallet-box.partial  { background: var(--warning-bg); border-color: var(--warning-color); }
.wallet-box.allfree  { background: #eff6ff; border-color: var(--primary-color); }
.wallet-box .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.wallet-box .lbl { font-size: 11px; color: var(--text-light); font-weight: 800; }
.wallet-box .val { font-size: 1.2rem; font-weight: 900; }
.wallet-analysis { margin-top: 12px; padding: 10px; background: #fff; border-radius: 8px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px; }
.wallet-analysis .item { text-align: center; }
.wallet-analysis .item .num { font-size: 1.1rem; font-weight: 900; }
.wallet-analysis .item .lbl { font-size: 10.5px; color: var(--text-light); font-weight: 800; }

/* بطاقة الإيصال */
.receipt-card {
    background: var(--light-bg); border: 2px solid var(--border-color); border-radius: 10px;
    padding: 14px; margin-bottom: 12px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center;
}
.receipt-card.approved { border-color: var(--success-color); background: #f0fdf4; }
.receipt-card.rejected { border-color: var(--danger-color);  background: #fef2f2; }
.receipt-card.pending  { border-color: var(--warning-color); background: #fffbeb; }
.receipt-card .thumb { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 2px solid var(--border-light); cursor: zoom-in; flex-shrink: 0; }
.receipt-card .file-info { flex: 1; min-width: 250px; }
.receipt-card .file-info .fname { font-weight: 900; color: var(--text-dark); margin-bottom: 6px; }
.receipt-card .file-info .meta { font-size: 12.5px; color: var(--text-light); font-weight: 700; }
.receipt-card .amount-box { text-align: center; min-width: 130px; }
.receipt-card .amount-box .amt { font-size: 1.2rem; font-weight: 900; color: var(--accent-color); }
.receipt-card .amount-box .amt-orig { font-size: 11.5px; color: var(--text-light); font-weight: 700; text-decoration: line-through; margin-top: 2px; }
.receipt-card .actions-col { display: flex; flex-direction: column; gap: 6px; }
.receipt-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-weight: 900; font-size: 11px; }
.receipt-badge.PENDING  { background: var(--warning-bg); color: var(--warning-text); }
.receipt-badge.APPROVED { background: var(--success-bg); color: var(--success-text); }
.receipt-badge.REJECTED { background: var(--danger-bg);  color: var(--danger-text); }

/* معاينة الإيصال داخل Modal */
.receipt-preview {
    background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 15px; text-align: center;
    min-height: 300px; display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.receipt-preview img { max-width: 100%; max-height: 60vh; border-radius: 8px; cursor: zoom-in; transition: transform 0.3s ease; }
.receipt-preview img.zoomed { transform: scale(1.8); cursor: zoom-out; }
.receipt-preview iframe { width: 100%; height: 60vh; border: none; border-radius: 8px; }

.amount-section { background: #f0fdf4; border: 2px solid var(--success-color); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.amount-section .label { font-weight: 800; color: var(--success-text); margin-bottom: 6px; font-size: 13px; }
.amount-section .original { font-size: 15px; color: #047857; font-weight: 800; margin-bottom: 10px; }
.amount-section input {
    font-weight: 800; width: 100%; padding: 12px; border: 2px solid var(--success-color);
    border-radius: 9px; font-size: 16px; text-align: center; direction: ltr; background: #fff;
}


/* ==========================================================================
   19. أدوات مساعدة
   ========================================================================== */
.hidden { display: none !important; }
.block { display: block; }
.w-100 { width: 100%; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); }
.p-2 { padding: var(--space-2); } .p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); }
.rounded { border-radius: var(--border-radius-sm); }
.shadow { box-shadow: var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-print { }


/* ==========================================================================
   الحركات (Animations)
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes toast-in  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fade-in 0.4s ease; }


/* ==========================================================================
   20. التجاوب
   ========================================================================== */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 15px 10px; }

    .header { flex-direction: column; text-align: center; }
    .search-form { flex-direction: column; gap: 10px; }
    .search-form input[type="text"],
    .search-form input[type="number"],
    .search-form button { width: 100%; }

    .services-container { grid-template-columns: 1fr; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    table.grades-table { width: 100%; }

    .message-box { flex-direction: column; text-align: center; }
    .message-box .text-box { text-align: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr; }
    .filters .fgroup { width: 100%; }
    .filters input, .filters select { width: 100%; }
    .wallet-box .grid4 { grid-template-columns: repeat(2, 1fr); }
    .alerts-grid { grid-template-columns: 1fr; }
    .alerts-header { flex-direction: column; align-items: flex-start; }
    .navbar { flex-direction: column; align-items: flex-start; }
    .steps { flex-direction: column; }
    .drawer { width: 100%; }
    .toast-container { right: 10px; left: 10px; }
    .toast { min-width: 0; max-width: none; }

    /* الجداول العريضة تتمرر أفقيًا */
    table.data-table { display: block; overflow-x: auto; white-space: nowrap; }
}


/* ==========================================================================
   21. الطباعة
   ========================================================================== */
@media print {
    @page { size: A4 portrait; margin: 15mm; }

    body { background: #fff !important; padding: 0 !important; margin: 0 !important; }

    .container {
        box-shadow: none !important; padding: 10mm !important;
        width: 100% !important; max-width: 100% !important;
        border: 1.5px solid #64748b !important; border-radius: 8px !important;
    }

    .search-box, .search-form, .services-container, .no-print,
    .filters, .chips, .pagination, .navbar, .toast-container,
    .btn, .actions-grid, .alerts-panel { display: none !important; }

    table.grades-table, table.data-table {
        width: 85% !important; box-shadow: none !important;
        border: 1.5px solid #000 !important; margin: 20px auto !important;
    }
    table.grades-table th, table.grades-table td,
    table.data-table th, table.data-table td {
        border: 1.5px solid #000 !important; padding: 8px 12px !important; color: #000 !important;
    }
    table.grades-table th, table.data-table th { background: #e2e8f0 !important; }

    .student-info-box { border: 1.5px solid #64748b !important; background: #fff !important; }
    .header .title-uni { -webkit-text-fill-color: #1e40af; color: #1e40af; }
}
