td 
{
    vertical-align: middle !important;
}


.swal-text:first-child {
    font-size: 30px;
}

.swal-footer {
    text-align: center !important;
}

body {
font-size: 20px;
font-family : 'Markazi Text' !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6
{
font-family : 'Markazi Text' !important;
PADDING: 10PX;
}



.bs-welcome-item .bs-welcome-header a {
    display: block;
    color: inherit;
font-family : 'Markazi Text' !important;
text-align: center;
    text-decoration: none;
        padding: 50px;
    font-size: 30px !important;
}


.r-vbar-page .r-left[data-fixed] {
    position: absolute !important;
    height: 100%;
}



    .r-left-collapsed.r-left-collapsed .menu-treelike li > ul.collapse.in a:hover, .r-left-collapsed.r-left-collapsed .dropdown.open.open.open.open > ul a:hover, .r-left-collapsed.r-left-collapsed .menu-treelike li > ul.collapse.in a:focus, .r-left-collapsed.r-left-collapsed .dropdown.open.open.open.open > ul a:focus {
        text-decoration: none;
        color: #fff;
        background-color: #3987c4 !important;
    }
    
    
    
    
    
    
    
    



/* General Header Styling */
.main-header {
    background-color: #0033A0;
    padding: 15px 30px;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    /* لمسة جمالية: خط سفلي بلون أصفر من الشعار */
    border-bottom: 3px solid #F2D500; ox-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    /* !! هذا هو السطر الجديد الذي يحل المشكلة !! */
    flex-direction: row-reverse;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styling and Animation */
.logo-container {
  background-color: rgba(255, 255, 255, 0.95); /* خلفية بيضاء شبه شفافة لكسر اللون */
    padding: 10px 12px; /* حشوة داخلية لإعطاء مساحة حول الشعار */
    border-radius: 12px; /* حواف دائرية لمظهر أنيق */
    display: inline-block; /* ضروري لتطبيق الحشوة والخلفية بشكل صحيح */
    line-height: 0; /* يمنع ظهور مسافة فارغة إضافية تحت الشعار */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* ظل خفيف لإعطاء عمق */}

.logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    animation: fadeInLogo 1.5s ease-in-out;
}

/* Program Name Styling */
.program-name {
    font-size: 3rem;
    color: #ffffff; 
    margin: 0;
    font-weight: 600;
}

/* Keyframes for Logo Animation (no change) */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Mobile (no change) */
@media (max-width: 768px) {
    .header-content {
        /* إرجاع العناصر للوضع الطبيعي في الموبايل */
        flex-direction: column;
        justify-content: center;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }

    .program-name {
        font-size: 1.2rem;
        text-align: center;
    }
}





















/* A4 Layout styles */

.invoice-box-a4 {
    background: white;
    width: 21cm;
    min-height: 29.7cm;
    padding: 1.5cm;
    margin: 1cm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    direction: rtl; /* Support for Arabic */
    font-family: 'Tahoma', sans-serif;
}

/* Print-specific styles */
@media print {
    body, .invoice-box-a4 {
        background: white;
        margin: 0;
        box-shadow: none;
        border: none;
    }
    .page-break { 
        page-break-after: always;
    }
}

/* Invoice specific elements */
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-title h1 { color: #333; }
.invoice-details { display: flex; justify-content: space-between; }
.invoice-body p { font-size: 14px; line-height: 1.8; }
.invoice-body p span { font-weight: bold; padding-right: 10px; }
.signatures { display: flex; justify-content: space-around; margin-top: 80px; }
.signature-box { text-align: center; }




/*
 * استهداف الرابط الموجود داخل العنصر الذي يحمل السمة المحددة
*/
span[data-itemtype="grid_details_link"] a {
    /* ----- الشكل واللون ----- */
    background-color: #337ab7; /* لون أزرق مشابه لزر "عرض" */
    color: #ffffff !important; /* !important لضمان تطبيق اللون الأبيض على النص */
    padding: 12px 12px; /* لتوفير مساحة داخلية مثل الأزرار الأخرى */

    /* ----- النص والتنسيق ----- */
    font-weight: normal; /* لجعل الخط عريضاً */
    text-decoration: none !important; /* لإزالة الخط أسفل الرابط */
    display: inline-block; /* لتمكين تطبيق الـ padding بشكل صحيح */
    text-align: center;
    border: none;
}

/*
 * تغيير لون الزر عند مرور الماوس فوقه
*/
span[data-itemtype="grid_details_link"] a:hover {
    background-color: #286090; /* درجة أغمق من اللون الأزرق */
    color: #ffffff !important;
    text-decoration: none;
}

/* الألوان المقترحة: استخدم لوحة ألوان متناسقة. */
/* مثال: أزرق داكن، أزرق فاتح، رمادي فاتح، أبيض. */
:root {
    --primary-color: #2c3e50;   /* أزرق داكن للخلفية */
    --secondary-color: #3498db; /* أزرق فاتح للعناصر المميزة */
    --text-color: #ecf0f1;      /* أبيض مائل للرمادي للنصوص */
    --hover-color: #2980b9;     /* لون عند التحويم */
    --shadow-color: rgba(0, 0, 0, 0.1); /* لون الظل */
}

.app-header {
    background-color: var(--primary-color);
    padding: 15px 30px; /* مسافة داخلية (أعلى/أسفل، يمين/يسار) */
    box-shadow: 0 4px 8px var(--shadow-color); /* ظل خفيف لإضافة عمق */
    display: flex; /* لترتيب المحتوى (الشعار واسم التطبيق) */
    align-items: center; /* لمحاذاة العناصر عموديًا في المنتصف */
    justify-content: flex-start; /* لترتيب العناصر من البداية (اليمين في العربية، اليسار في الإنجليزية) */
    flex-wrap: wrap; /* للسماح بالعناصر بالنزول لسطر جديد في الشاشات الصغيرة */
    direction: rtl; /* هام: لضمان أن الترتيب من اليمين لليسار */
}

.header-content {
    display: flex;
    align-items: center;
    /* هذا هو التعديل الرئيسي: تعيين مسافة افتراضية للموبايل */
    gap: 10px; /* مسافة افتراضية بين الشعار واسم التطبيق للموبايل والشاشات الصغيرة */
}

.app-logo {
    height: 50px; /* حجم الشعار */
    width: auto; /* للحفاظ على نسبة الأبعاد */
    transition: transform 0.8s ease-in-out; /* حركة ناعمة عند التحويم */
}

.app-logo:hover {
    transform: scale(1.1); /* تكبير الشعار قليلًا عند التحويم */
}

.app-title {
    color: var(--text-color);
    font-size: 2.2em; /* حجم خط كبير ومميز */
    margin: 0; /* إزالة الهوامش الافتراضية للعنوان */
    font-weight: 600; /* جعل الخط سميكًا */
    letter-spacing: 1px; /* تباعد بسيط بين الحروف لتحسين القراءة */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* ظل خفيف للنص */
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column; /* ترتيب العناصر عموديًا */
        text-align: center;
        padding: 10px 15px;
        justify-content: center; /* لتوسيط العناصر في العمود */
    }

    .header-content {
        flex-direction: column;
        gap: 10px; /* المسافة للموبايل تبقى 10px */
    }

    .app-logo {
        height: 40px;
    }

    .app-title {
        font-size: 1.8em;
    }
}

/* هذا هو التعديل الجديد: زيادة المسافة على شاشات الديسكتوب */
@media (min-width: 769px) { /* أو أي حجم شاشة تعتبره ديسكتوب */
    .header-content {
        gap: 200px; /* زيادة المسافة بين الشعار واسم التطبيق على الديسكتوب */
    }
    .app-header {
        justify-content: flex-start; /* للتأكد من أنها تبدأ من اليمين (في اتجاه rtl) */
    }
}