     :root {
            --sidebar-bg: #3700B3;
            --primary: #3700B3;
            --sidebar-width: 260px;
            --collapsed-width: 70px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box;     border-left: none !important;}
        /* 1. إزالة الخط الأزرق الرأسي نهائياً من كل العناصر */

@font-face{
  font-family :fontarab;
  src :url("Expo-Arabic-Book.ttf");
}
body {
   font-family: fontarab !important; 
  direction: rtl;

  box-sizing: border-box;
background-color: #f8fafc !important;
    margin: 0;
    padding: 0;
    border: none !important;
}

.material-icons-outlined {
  vertical-align: middle;
  line-height: 1px;
}

.text-primary {
  color: #666666;
}

.text-blue {
  color: #246dec;
}

.text-red {
  color: #cc3c43;
}

.text-green {
  color: #367952;
}

.text-orange {
  color: #f5b74f;
}

.font-weight-bold {
  font-weight: 600;
}



/* ---------- HEADER ---------- */

.header {
  grid-area: header;
  height: 50px;
  margin-right:20px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;

}

.menu-icon {
  display: none;
}

/* ---------- SIDEBAR ---------- */


/* ---------- MAIN ---------- */



.main-title {
  display: flex;
  justify-content: space-between;
}

.main-title > p {
  font-size: 20px;
}

.main-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.card-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 25px;
  background-color: #ffffff;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}



.card-button > span {
  font-size: 20px;
  font-weight: 600;
}

.card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-inner > p {
  font-size: 18px;
}

.card-inner > span {
  font-size: 35px;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.charts-card {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 25px;
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
  border: 1px solid #d2d2d3;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}



/* table design  */
  .header{
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
}

  .controls{
    gap:10px;
}


.dropdown {
    position: relative;
}

.menu{
    display:none;
    position:absolute;
    top:110%;
    left:0;              /* بدل right */
    right:auto;
    text-align:right;    /* محاذاة النص */
    direction:rtl;       /* اتجاه صحيح */
    background:#fff;
    border-radius:8px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    min-width:180px;     /* زيادة العرض لمنع القص */
    z-index:999999;
}

.menu a{
    display:flex;        /* حل قص الأيقونة مع النص */
    align-items:center;
    gap:8px;
    padding:10px 14px;
    text-decoration:none;
    color:#111;
    white-space:nowrap; /* منع التفاف النص */
}

/* تصميم القائمة المنسدلة بشكل عصري */
.dropdown-menu {
    display: block !important; /* نجعلها موجودة دائماً في الـ DOM لتطبيق الأنيميشن */
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px); /* تبدأ من أسفل قليلاً */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* أنيميشن ناعم */
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px;
    text-align: right;
    pointer-events: none; /* تمنع التفاعل معها وهي مخفية */
    /* Transition: الخاصية | المدة | التوقيت | التأخير */
    transition: visibility 0s linear 0.2s, opacity 0.3s ease, transform 0.3s ease;
}

/* حالة الظهور عند الهوفر أو عند الضغط (توافق تام مع Bootstrap) */
.dropdown:hover .dropdown-menu, 
.dropdown .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* تصعد لمكانها الطبيعي */
    pointer-events: auto;
    /* عند الدخول (Hover) نجعل التأخير 0 لكي تظهر فوراً */
    transition-delay: 0s;
}
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px; /* تغطي الفراغ بين الزر والقائمة */
    right: 0;
    left: 0;
    height: 25px;
    background: transparent;
}
/* تنسيق الروابط داخل القائمة */
.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}
@media (max-width: 768px){
  .menu{
    left:50%;
    transform:translateX(-50%);
  }
}

/* ====== Card Wrapper ====== */
/* الحاوية الرئيسية لأدوات الجدول */
.dataTables_wrapper .row:first-child {
    display: flex !important;
    flex-direction: row-reverse !important; /* البدء من اليمين */
    flex-wrap: nowrap !important; /* سطر واحد في الشاشات الكبيرة والمتوسطة */
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff;
    padding: 15px;
    gap: 15px;
    margin: 0 !important;
    border-radius: 14px 14px 0 0;
}

/* قسم "عرض X صف" */
.dataTables_length {
    flex-shrink: 0 !important;
}

.dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.dataTables_length select {
    width: 80px !important; /* تكبير حقل الأرقام */
    height: 40px !important;
    border-radius: 8px;
    border: 1px solid #d2d6da;
    text-align: center;
    cursor: pointer;
}

/* قسم البحث المطاطي */
.dataTables_filter {
    flex-grow: 1 !important; /* يملأ المساحة المتبقية */
    display: flex !important;
    float: right; /* المحاذاة لليمين */
    margin: 15px 20px; /* إعطاء مساحة من الأعلى والجانبين */
    width: 100%; /* لضمان التحكم الكامل */
    justify-content: flex-end;
    align-items: center;
}

.dataTables_filter label {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin: 0;
}

.dataTables_filter input {
    flex-grow: 1 !important;
    height: 40px !important;
    border-radius: 10px;
    border: 1px solid #d2d6da;
    padding: 0 15px;
    min-width: 150px;
}

/* التجاوب مع الموبايل والتابلت الصغير */
/* تحويل الجدول إلى كروت لشاشات التابلت والموبايل (حتى 1024 بكسل) */
@media screen and (max-width: 1024px) {
    /* إخفاء رأس الجدول تماماً */
    .table-modern thead {
        display: none !important;
    }

    /* تحويل السطر إلى كرت منفصل */
    .table-modern tbody tr {
        display: block !important;
        margin-bottom: 20px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 15px !important;
        padding: 15px !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

    /* جعل كل خلية تأخذ سطر كامل داخل الكرت */
    .table-modern td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        padding: 12px 5px !important;
    }

    .table-modern td:last-child {
        border-bottom: none !important;
    }

    /* إظهار العناوين الجانبية (data-label) */
    .table-modern td::before {
        content: attr(data-label); /* يأخذ النص من خاصية data-label في الـ HTML */
        font-weight: 800;
        color: #374151;
        font-size: 14px;
    }

    /* ضبط خيارات البحث والـ Entries في التابلت */
   /* ==========================================================================
   1. الإعدادات العامة والمتغيرات
   ========================================================================== */
:root {
    --sidebar-bg: #3700B3;
    --primary: #3700B3;
    --sidebar-width: 260px;
    --collapsed-width: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: fontarab;
    src: url("Expo-Arabic-Book.ttf");
}

body {
    font-family: fontarab !important;
    direction: rtl;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgba(224, 224, 235, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ==========================================================================
   2. تنسيق أدوات الجدول (البحث وعرض الصفوف) - المطلب الأساسي
   ========================================================================== */

/* الحاوية العلوية: تجعل العرض يميناً والبحث يساراً بشكل مطاطي */
.dataTables_wrapper .row:first-child {
    display: flex !important;
    flex-direction: row-reverse !important; 
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff;
    padding: 15px;
    gap: 20px;
    margin: 0 0 15px 0 !important;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-wrap: nowrap !important;
}

/* قسم "عرض X صف" - ثابت في جهة اليمين */
.dataTables_length {
    flex-shrink: 0 !important;
    order: 1;
}

.dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    font-weight: 700;
    white-space: nowrap;
    margin: 0;
}

.dataTables_length select {
    width: 80px !important;
    height: 40px !important;
    border-radius: 8px;
    border: 1px solid #d2d6da;
}

/* قسم البحث - يملأ كامل المساحة المتبقية جهة اليسار */
.dataTables_filter {
    flex-grow: 1 !important; 
    order: 2;
    display: flex !important;
}

.dataTables_filter label {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin: 0;
}

.dataTables_filter input {
    flex-grow: 1 !important; /* هذا ما يجعل الحقل يملأ المساحة المتاحة */
    width: 100% !important;
    height: 45px !important;
    border-radius: 10px;
    border: 1px solid #d2d6da;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ==========================================================================
   3. نظام الكروت (للتابلت iPad والموبايل) - متوافق مع 1024px
   ========================================================================== */
@media screen and (max-width: 1024px) {
    /* تنسيق أدوات الجدول في الشاشات الصغيرة */
    .dataTables_wrapper .row:first-child {
        flex-direction: column !important;
        gap: 15px;
        flex-wrap: wrap !important;
    }

    .dataTables_length, .dataTables_filter, .dataTables_filter label {
        width: 100% !important;
        justify-content: center !important;
    }

    /* تحويل الجدول إلى كروت */
    .table-modern thead {
        display: none !important;
    }

    .table-modern tbody tr {
        display: block !important;
        margin-bottom: 20px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 15px !important;
        padding: 15px !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

    .table-modern td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        padding: 12px 5px !important;
    }

    .table-modern td:last-child {
        border-bottom: none !important;
    }

    /* إظهار العناوين الجانبية من خاصية data-label */
    .table-modern td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #374151;
        font-size: 14px;
        text-align: right;
    }
}

/* ==========================================================================
   4. تنسيقات الجدول الأساسية (للمتصفح العادي)
   ========================================================================== */
.table-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    padding: 15px;
   
    overflow: visible !important; /* لضمان عدم قص القائمة المنسدلة */

}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    background: #f8fafc;
    padding: 14px;
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    text-align: center;
}

.table-modern td {
    padding: 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   5. تنسيقات الـ Sidebar والتنقل
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background: var(--sidebar-bg);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--collapsed-width);
}

.main-content {
    margin-right: var(--sidebar-width);
    transition: var(--transition);
    padding: 20px;
}

.sidebar.collapsed ~ .main-content {
    margin-right: var(--collapsed-width);
}

@media (max-width: 768px) {
    .sidebar { right: -100%; }
    .sidebar.active { right: 0; }
    .main-content { margin-right: 0 !important; }
}

/* ==========================================================================
   6. أدوات إضافية (الطباعة واللمسات النهائية)
   ========================================================================== */
@media print {
    .no-print, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info {
        display: none !important;
    }
}

.toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
}
.table-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    padding:15px;
}

/* ====== Table Base ====== */
.table-modern{
    width:100%;
    border-collapse:collapse;
   
}

.table-modern thead{
    background:#f8fafc;
}

.table-modern th,
.table-modern td{
    padding:14px;
    text-align:center;
    vertical-align:middle;
}

.table-modern th{
    font-weight:700;
    color:#1f2937;
    font-size:14px;
}

.table-modern tbody tr{
    border-bottom:1px solid #e5e7eb;
    transition:background .2s;
}

.table-modern tbody tr:hover{
    background:#f9fafb;
}

/* ====== Status / Icons ====== */
.badge-success{
    background:#dcfce7;
    color:#166534;
    padding:4px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
    padding:4px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

/* ====== Action Buttons ====== */
.action-btn{
    padding:6px 10px;
    border-radius:6px;
    font-size:13px;
    border:none;
}

.action-edit{
    background:#e0f2fe;
    color:#0369a1;
}

.action-delete{
    background:#fee2e2;
    color:#991b1b;
}

/* ====== Responsive (Mobile) ====== */
@media (max-width:768px){
    .table-modern thead{
        display:none;
    }

    .table-modern tr{
        display:block;
        margin-bottom:15px;
        border:1px solid #e5e7eb;
        border-radius:12px;
        padding:10px;
    }

    .table-modern td{
        display:flex;
        justify-content:space-between;
        padding:10px;
        text-align:right;
    }

    .table-modern td::before{
        content:attr(data-label);
        font-weight:700;
        color:#374151;
    }
}
/* الحاوية الرئيسية */
.table-wrapper{
    max-width:100%;
}

/* الهيدر مرتبط بعرض الجدول */
.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    padding:0 4px; /* محاذاة دقيقة مع حدود الجدول */
}

/* العنوان */
.table-title{
    margin:0;
    font-weight:800;
    text-align:right;
}

/* زر التصدير */
.controls{
    display:flex;
    justify-content:flex-end;
}

/* RTL صحيح */
html[dir="rtl"] .table-header{
    flex-direction:row;
}

/* موبايل */
@media (max-width:768px){
  
    .controls{
        justify-content:flex-start;
    }
}


/* ---------- SCROLLBARS ---------- */

::-webkit-scrollbar {
  width: 5px;
  height: 6px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #a5aaad;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #4f35a1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a5aaad;
}


/* ---------- MEDIA QUERIES ---------- */


/* Medium <= 992px */
@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "header"
      "main";
  }

  
  .menu-icon {
    display: inline;
  }

  
}

/* Small <= 768px */
@media screen and (max-width: 768px) {
  .main-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .charts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

/* Extra Small <= 576px */
@media screen and (max-width: 576px) {
  .header-left {
    display: none;
  }
}


/* edit bootstrap style */
.btn-add-new {
    background-color: #28a745; /* أخضر مريح للعين */
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2); /* ظل أخضر خفيف */
}

.btn-add-new:hover {
    background-color: #218838;
    transform: translateY(-2px); /* حركة بسيطة للأعلى عند التمرير */
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}
.btn {
   border: none;
    padding: 5px 10px; 
    border-radius: 5px;
  }


.btn-primary:hover,.btn_back:hover {
 background-position: right center;
}

.text-primary {
    color: #007bff !important
}


/* modal trash design */

/* popup dialog style */
.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* الحل هنا: تفعيل التمرير العمودي ومنع الأفقي */
    overflow-y: auto; 
    overflow-x: hidden; 
    
    transition: 0.5s ease-in-out;
}

/* لضمان أن المحتوى الداخلي لا يلتصق بحواف الشاشة ويسمح بالتمرير */
.overlay-content {
    position: relative;
    top: 5%; 
    width: 100%;
    padding-bottom: 50px; /* مساحة إضافية في الأسفل لضمان ظهور آخر الصفوف */
}


.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
.popup-modal{
z-index:99999999 !important;
}
.btn-modal {
  height: 50px;
  line-height: 30px;  
  width: 50px;  
  font-size: 1em;
  font-weight: bold;
  border-radius:10px;
  background-color: #ff0000;
  color: white;
  text-align: center;
  cursor: pointer;
  opacity:0.7;
    -webkit-transition: 0.6s ease-out;
  -moz-transition: 0.6s ease-out;
  transition: 0.6s ease-out;
  align-content:center;
}
.btn-modal:hover {
opacity:1;
  -webkit-transform: rotateZ(360deg);
  -moz-transform: rotateZ(360deg);
  transform: rotateZ(360deg);
}

/* image style upload */
/** end style page index*/
#img-preview {
  display: none;
  width: 100px;
  margin-bottom: 20px;
}
#img-cat img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 10px;
}
#img-cat {

  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-cat img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}

#img-preview {
  display: none;
  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-preview img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}
#img-preview-service {
  display: none;
  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-preview-service img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999999999; /* Sit on top */
  padding-top: 10px; /* Location of the box */
   padding-left: 10px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4);

}


/* style image table */
.avatar img{
  width:50px;
  height:50px;
  border-radius:10px;
}


/* toastr design button */
    #success{background: green;}
    #error{background: red;}
    #warning{background: coral;}
    #info{background: cornflowerblue;}
    #question{background: grey;}


    /* gradient card dashboard */
.gradient-1 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #895cf2 0%, #ffabf4 50%, #895cf2 100%);
  transition: 0.5s;
}
.text-1 {
  color:#ffabf4;
}

.gradient-2 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #00c3ff 0%, #ffff1c 50%, #00c3ff 100%);
  transition: 0.5s;
}

.text-2 {
  color:#ffff1c;
}

.gradient-3 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #ff6a00 0%, #ee0979 50%, #ff6a00 100%);
  transition: 0.5s;
}

.text-3 {
  color:#ee0979;
}

.gradient-4 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #0052d4 0%, #65c7f7 50%, #0052d4 100%);
  transition: 0.5s;
}

.text-4 {
  color:#65c7f7;
}

.gradient-5 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #45b649 0%, #dce35b 50%, #45b649 100%);
  transition: 0.5s;
}

.text-5 {
  color:#dce35b;
}

.gradient-6 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #ffd200 0%, #f7971e 50%, #ffd200 100%);
  transition: 0.5s;
}

.text-6 {
  color:#f7971e;
}

.gradient-7 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #e100ff 0%, #7f00ff 50%, #e100ff 100%);
  transition: 0.5s;
}

.text-7 {
  color:#7f00ff;
}


.gradient-1:hover ,.gradient-2:hover ,.gradient-3:hover ,.gradient-4:hover ,.gradient-5:hover ,.gradient-6:hover ,.gradient-7:hover {
  background-position: right center;
}

/*sidebar design*/
.
.card-button {
    background-color: #ffffff;
    width: 280px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    display: flex;
    flex-direction: column;

    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; /* إضافة تأثير الانتقال */
}

/* تأثير عند تمرير الفأرة */
.card-button:hover {
    transform: scale(1.05); /* تكبير البطاقة بنسبة 5% */
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التمرير */
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* مسافة بين العنوانين */
}

.icon-circle {
   /* لون دائري أزرق للإيقونة */
    color: white;
    border-radius: 10px; /* شكل دائري */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px; /* مسافة بين الإيقونة والعنوان الرئيسي */
    font-size: 24px; /* حجم الأيقونة */
}

.main-title {
    font-size: 20px;
}

.sub-title {
    color: #6c757d; /* لون نص فرعي رمادي */
    margin: 5px 0 15px 0;
}

.action-button {
    background-color: #28a745; /* لون الزر */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* تأثير عند تمرير المؤشر على الزر */
.action-button:hover {
    background-color: #218838; /* تغيير لون الزر عند التمرير */
}
/*end sidebar design*/
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


/*treeview*/

/* ————————————————————–
  Tree core styles
*/
.tree { margin: 1em; direction: rtl; }

.tree input {
  position: absolute;
  text-align:right; 
  clip: rect(0, 0, 0, 0);
  }

.tree input ~ ul { display: none; }

.tree input:checked ~ ul { display: block; }

/* ————————————————————–
  Tree rows
*/
.tree li {
  line-height: 1.2;
  position: relative;
  padding:16px 33px 0 0;
  }

.tree ul li { padding: 16px 33px 0 0; }

.tree > li:last-child { padding-bottom: 0; }

/* ————————————————————–
  Tree labels
*/
.tree_label {
  position: relative;
  display: inline-block;
  background: #fff;
  }

label.tree_label { cursor: pointer; }

label.tree_label:hover { color: #666; }

/* ————————————————————–
  Tree expanded icon
*/
label.tree_label:after {
  background: #000;
  color: #fff;
  position: relative;
  z-index: 1;
  float: left;
  margin: 0 1em 0 -2em;
  width: 1em;
  height: 1em;
  border-radius: 1em;
  content: '+';
  text-align: center;
  line-height: .9em;
  }

:checked ~ label.tree_label:after { content: '–'; }

/* ————————————————————–
  Tree branches
*/
.tree li:before {
  position: absolute;
  top: 0;
  right:  -1.5em;
  display: block;
  height: 0.5em;
  width: 1em;

  content: '';
  }

.tree_label:after {
    
    
    
     position: absolute;
  top: 0;
  bottom: 0;
  left: -.5em;
  display: block;
  width: 0;
  border-right: 1px solid #777;
  content: "";
    
 
  }

label.tree_label:before { border-bottom: 0; }

:checked ~ label.tree_label:after {
    
     height: 1em;
  bottom: auto;
  
  }

.tree li:last-child:after {
    
    
  

  bottom: 0;
  top: 0.5em;
  height: auto;
  
  
  
 
  }

.tree > li:last-child:before { display: none; }

.tree_custom {
  display: block;
  background: #eee;
  padding: 1em;
  border-radius: 0.3em;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #d1ecf1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: right;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
   color: #0c5460;
}

/* Change background color of buttons on hover */

.tab button:hover {
margin-top:-5px;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #007bff;
  color: #fff;

}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* end tab style*/
.choosedate{
  display:none;
}

/* style icon button dashboard  */
.card-dashboard{
  border-radius:10px;
}
.icon-button{
  width: 50px;
  height:50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: .85em;
    font-weight: 400;
    padding: 2px;
    margin: 2px;
    border-radius:50%;

}

.icon-button .fa{
    vertical-align: middle;
    font-size:20px;
}

/* header img logo */
.img-header-logo , .img-header-login{
  width:50%;
  height:50%;
}
.img-header-logo img , .img-header-login img{
  width:100%;
}

/* new cards  dashboard css */

/* التنسيق الأساسي للموقع */


.stats-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* التصميم الموحد للبطاقة */
.stat-card {
    width: 210px;
    padding: 30px 20px;
    border-radius: 28px; /* حواف دائرية ناعمة */
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-number { margin: 0; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.stat-title { margin: 0; font-size: 15px; color: #666; font-weight: 600; }
.stat-percent { font-size: 13px; font-weight: 700; }

/* -----------------------------------------------------------
   تعديل الألوان هنا (داخل كل كلاس بشكل منفصل)
   الرقم الأخير (0.25) هو المسؤول عن قوة لون الخلفية
----------------------------------------------------------- */

/* 1. مبيعات - وردي */
.sales-box {
    background-color: rgba(255, 77, 109, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(255, 77, 109, 0.4);
}
.sales-box .icon-circle { background-color: rgba(255, 77, 109, 1); }
.sales-box .stat-percent { color: rgba(255, 77, 109, 1); }

/* 2. طلبات - برتقالي */
.orders-box {
    background-color: rgba(255, 159, 67, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(255, 159, 67, 0.4);
}
.orders-box .icon-circle { background-color: rgba(255, 159, 67, 1); }
.orders-box .stat-percent { color: rgba(255, 159, 67, 1); }

/* 3. منتجات - أخضر */
.products-box {
    background-color: rgba(39, 174, 96, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(39, 174, 96, 0.4);
}
.products-box .icon-circle { background-color: rgba(39, 174, 96, 1); }
.products-box .stat-percent { color: rgba(39, 174, 96, 1); }

/* 4. عملاء - بنفسجي */
.customers-box {
    background-color: rgba(162, 155, 254, 0.3); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(162, 155, 254, 0.5);
}
.customers-box .icon-circle { background-color: rgba(162, 155, 254, 1); }
.customers-box .stat-percent { color: rgba(162, 155, 254, 1); }

/* responsice table  */
/* تنسيق الجداول لتصبح كروت في الموبايل */
@media screen and (max-width: 768px) {
    /* إخفاء رأس الجدول */
    .table thead {
        display: none;
    }
    
    /* جعل كل سطر يبدو كأنه كارت منفصل */
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* جعل كل خلية تأخذ عرض كامل وتظهر العنوان الجانبي */
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 8px 5px !important;
        text-align: left !important;
    }

    .table tbody td:last-child {
        border-bottom: none !important;
    }

    /* إضافة النص التوضيحي قبل القيمة */
    .table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        margin-left: 10px;
        text-align: right;
    }

    /* تعديل الصور لتناسب الحجم الصغير */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين شكل الأزرار في الخيارات لكي لا تخرج عن الإطار */
    .table td .btn {
        margin: 2px;
        padding: 5px 10px;
    }
}

.alert-dark{
  background-color:#f2f2f2 !important;
}


/* form input style */
  .form-group {
            position: relative;
           
        }

        .form-group input {
            width: 100%;
            padding: 10px;
            font-size: 15px;
            border: 1.8px solid #cbd5e1;
            border-radius: 5px;
            outline: none;
            background: transparent;
          
        }

        .form-group label {
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            background: transparent;
            padding: 0 6px;
            color: #64748b;
            font-size: 14px;
            transition: 0.3s ease;
            pointer-events: none;
        }

        /* عند التركيز أو وجود قيمة */
        .form-group input:focus + label,
        .form-group input:not(:placeholder-shown) + label {
            top: -8px;
            font-size: 12px;
            color: #2563eb;
        }

        .form-group input:focus {
            border-color: #2563eb;
        }

        /*sidebar design */


/* --- حالة الطي (Collapsed) --- */

/* --- الزر الخارجي --- */
.toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001; /* رفعه ليكون فوق الـ Sidebar في الموبايل */
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
   
}

/* --- Sidebar الأساسي --- */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    border-top-left-radius: 50px;
    background: var(--sidebar-bg);
    z-index: 1000;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: var(--transition); /* ضمان نعومة التصغير */
}

/* حاوية التمرير داخل الـ Sidebar */
.menu-list {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    padding-top: 20px;
    list-style: none;
}

/* تنسيق روابط القائمة */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 5px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* تنسيق الأيقونات والصور داخل الروابط */
.menu-item i, 
.menu-item .icon img {
    min-width: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

/* ضبط حجم الصور لتناسب الأيقونات */
.menu-item .icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* --- حالة الطي (Collapsed) للكمبيوتر --- */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: var(--collapsed-width);
    }

    /* توسيط الهيدر واللوجو عند الطي */
    .sidebar.collapsed .sidebar-header {
        justify-content: center;
        padding: 20px 0;
    }
    
    .sidebar.collapsed .img-header-logo {
        width: 40px !important; /* حجم اللوجو عند الطي */
        margin: 0 auto;
    }

    /* توسيط الأيقونات تماماً عند الطي */
    .sidebar.collapsed .menu-item {
        justify-content: center;
        padding: 12px 0;
    }

    .sidebar.collapsed .menu-item i,
    .sidebar.collapsed .menu-item .icon img {
        min-width: unset;
        margin: 0;
        width: 28px; /* تكبير بسيط للصورة لتكون واضحة عند الطي */
        height: 28px;
    }

    .sidebar.collapsed .link-text {
        display: none;
    }
}

/* --- حالة الموبايل --- */
@media (max-width: 768px) {
    .sidebar {
        right: -100%;
        width: 280px !important;
        border-top-left-radius: 0; /* إلغاء الانحناء في الموبايل لمظهر أفضل */
    }
    .sidebar.active {
        right: 0;
    }
    .main-content { margin-right: 0 !important; }
}

/* تنسيق شريط التمرير */
.menu-list::-webkit-scrollbar {
    width: 5px;
}
.menu-list::-webkit-scrollbar-track {
    background: transparent;
}
.menu-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
/* الحالة الافتراضية (Sidebar مفتوح بالكامل) */
.main-content {
    margin-right: var(--sidebar-width); /* مثلاً 260px */
    transition: all 0.3s ease;
    padding: 20px;
    width: auto;
}

/* عندما يكون الـ Sidebar مطوياً (Collapsed) */
.sidebar.collapsed ~ .main-content {
    margin-right: var(--collapsed-width); /* مثلاً 70px */
}

/* في الموبايل: المحتوى يأخذ الشاشة كاملة لأن الـ Sidebar يكون فوقه أو مخفي */
@media (max-width: 768px) {
    .main-content {
        margin-right: 0 !important;
        width: 100%;
    }
}


/* NEW CARD BUTTON FOR DASHBOARD */
/* تصميم الكارت الخارجي */
/* تنسيق الكارت ليكون متجاوباً داخل col-md-3 */
.category-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f1f1f1;
    height: 100%; /* لتوحيد ارتفاع الكروت إذا كانت النصوص طويلة */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* تأثير التفاعل عند تمرير الماوس */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0,0,0,0.05);
}

/* صندوق الأيقونة */
.icon-box {
    width: 65px;
    height: 65px;
    border-radius: 18px; /* زوايا دائرية ناعمة */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* تنسيق الأيقونة FontAwesome 4 */
.icon-box i {
    font-size: 26px;
    line-height: 1;
}

/* تنسيق العنوان */
.card-details .title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

/* إزالة الخط الأزرق الافتراضي من الروابط */
.col-md-3 a {
    text-decoration: none !important;
}
/* للكمبيوتر والشاشات الكبيرة: 5 عناصر */
@media (min-width: 992px) {
    .col-custom-5 {
        width: 20%; /* 100% / 5 = 20% */
        float: right; /* بما أن الموقع عربي */
        padding: 0 10px;
    }
}

/* للشاشات المتوسطة (Tablets): 3 عناصر */
@media (min-width: 768px) and (max-width: 991px) {
    .col-custom-5 {
        width: 33.33%;
        float: right;
        padding: 0 10px;
    }
}

/* للموبايل: عنصرين في الصف لكي لا تصبح صغيرة جداً */
@media (max-width: 767px) {
    .col-custom-5 {
        width: 50%;
        float: right;
        padding: 0 5px;
    }
}

/* تأكد من جعل الصف (row) يستخدم flex لترتيب العناصر بشكل صحيح */
.row {
    display: flex;
    flex-wrap: wrap;
}
/* للكمبيوتر والشاشات الكبيرة */
@media (min-width: 992px) {
    .col-custom-5 {
        width: 20%; 
        float: right;
        display: flex;
        justify-content: center; /* يضمن توسيط الكارد داخل الـ 20% */
    }

    .category-card {
        width: 160px; /* التحكم في العرض الفعلي للكارد هنا */
        height: 160px; /* لجعله مربعاً متناسقاً */
        padding: 15px;
        /* باقي تنسيقاتك الأصلية للـ border-radius والـ background */
    }

    /* تصغير الأيقونة لتتناسب مع حجم الكارد الجديد */
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .icon-box i {
        font-size: 20px;
    }

    .card-details .title {
        font-size: 13px;
    }
}

/* للموبايل: نترك الكارد مرناً ليملأ نصف الشاشة */
@media (max-width: 767px) {
    .col-custom-5 {
        width: 50%;
        float: right;
        padding: 5px;
    }
    .category-card {
        width: 100%; /* يأخذ كامل المساحة المتاحة في الموبايل */
        padding: 20px;
    }
}
/* تنسيق إضافي لضمان ظهور القائمة فوق العناصر الأخرى */
    .dropdown-menu {
        z-index: 9999 !important;
        margin-top: 5px;
    }
    .btn-white {
        background-color: white !important;
        border-radius: 8px;
    }


    /* add buttons and trash */
    /* تنسيق الكروت المربعة داخل الـ Popup */
.options-grid {
 display: flex;
    flex-wrap: wrap; /* هذا هو السر: يسمح بنزول العناصر لسطر جديد */
    justify-content: center;
    gap: 15px; /* المسافة بين الكروت */
    padding: 20px;
    max-width: 100%;
}

.option-card {
 width: 130px; /* عرض ثابت للكارت */
    height: 130px; /* ارتفاع ثابت ليكون مربعاً */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: white;
    text-decoration: none !important;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    flex-shrink: 0; /* يمنع الكارت من الانضغاط أو تغيير حجمه */
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.option-card i {
    font-size: 30px;
    margin-bottom: 10px;
}

.option-card span {
    font-size: 16px;
    font-weight: bold;
}

.bg-add { background-color: #4477ce; } /* لون زر الإضافة الأزرق */
.bg-trash { background-color: #c00000; } /* لون السلة الأحمر */

/* تعديل مودال بوتستراب ليكون أنيقاً */
.modal-content {
    border-radius: 20px;
    border: none;
}
/* للموبايل الصغير جداً */
@media (max-width: 360px) {
    .option-card {
        width: 110px;
        height: 110px;
    }
}
    /*  table style  */
/* إخفاء السهم الافتراضي لبوتستراب */
.dropdown-toggle::after {
    display: none !important;
}

/* زر النقاط الثلاث العمودية */
.action-dots-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #64748b;
}

.action-dots-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

/* قائمة الخيارات المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px;
    text-align: right;
    min-width: 160px;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
    visibility: hidden;
    opacity: 0;
}

.dropdown.show .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

/* 4. تنسيق الجدول ليكون بدون خطوط رأسية (خطوط أفقية فقط) */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.table-modern th, 
.table-modern td {
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important; /* خط أفقي فقط */
    padding: 12px;
}

/* 5. تنسيق زر النقاط الثلاث (Dropdown) بشكل عصري */
.action-dropdown .btn-light {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.action-dropdown .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    padding: 8px;
    text-align: right;
}

.action-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 6. إخفاء سهم الـ Dropdown الافتراضي */
.no-caret::after {
    display: none !important;
}

/* 7. زر "إضافة" الأخضر الجديد */
.btn-add-new {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
   
    font-weight: 600;
    transition: 0.3s;
}

.btn-add-new:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
}

/* 8. ضمان عدم ظهور الخط في وضع الجوال */
@media (max-width: 768px) {
    .table-modern tr {
        border: 1px solid #eee !important;
        margin-bottom: 10px;
        display: block;
        border-radius: 10px;
    }
    .table-modern td {
        border-bottom: 1px solid #f1f5f9 !important;
    }
}
/* إزالة الحدود اليسارية التي تظهر كخط أزرق */
.card-button:first-child,
.card-button:nth-child(2),
.card-button:nth-child(3),
.card-button:nth-child(4) {
    border-left: none !important;
}

/* إخفاء أي حدود افتراضية قد تأتي من مكتبة الجداول وتسبب خطاً في جهة اليسار */
.dataTables_wrapper, 
.table-card, 
.table-modern {
    border-left: none !important;
}
/* سكرول بار أنيق */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
/* animation */
    /* 1. تعريف حركة الظهور مع منع ظهور أي خطوط جانبية أثناء الحركة */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            /* translate3d أفضل من translate العادي لمنع تشوهات الخطوط */
            transform: translate3d(0, 30px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    /* 2. الكلاس المعدل لمنع الخطوط الرأسية */
    .animate-item {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
        
        /* الحل السحري: هذه الخواص تمنع ظهور الحدود الوهمية أثناء الانميشن */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        border: none !important; /* إزالة أي حدود قد تظهر كخط رأسي */
        outline: none !important;
    }

    /* 3. تنظيف الـ row لضمان عدم وجود حدود يسارية تظهر مع الحركة */
    .animate-row {
        border-left: none !important;
        margin-left: 0;
        margin-right: 0;
    }

    /* 4. تأثير الظهور المتتابع */
  /* from design */
    .main-form-container {

    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
  }

  .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
  }

  /* ترويسة رشيقة */
  .card-header-custom {
    background: #ffffff;
    color: #000000;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 20px; /* تقليل السماكة */
  }

  .card-header-custom h5 { font-size: 1.1rem; margin: 0; }

  /* تقليل المسافات بين الحقول */
  .form-label-custom {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
    font-size: 0.85rem;
    display: block;
  }

  /* توحيد الارتفاع ليكون 42px بدلاً من 50px */
  .form-control, .form-select, .input-group-text {
    border-radius: 6px !important;
    padding: 6px 12px !important;
    border: 1px solid #e2e8f0 !important;
    height: 42px !important; 
    font-size: 0.9rem;
  }

  /* عناوين الأقسام */
  .section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    margin-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #edf2f7;
  }

  .section-title i { color: #000000 !important; }

  /* تعديل الـ Switch ليكون أصغر وأقل ارتفاعاً */
  .switch-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 42px;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    margin-left: 10px;
  }

  .switch input { opacity: 0; width: 0; height: 0; }
  .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e0; transition: .4s; border-radius: 34px; }
  .slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
  input:checked + .slider { background-color: #0d6efd; }
  input:checked + .slider:before { transform: translateX(16px); }

  /* زر حفظ مدمج */
  .btn-save {
    padding: 8px 40px;
    border-radius: 6px;
    background-color: #0d6efd;
    border: none;
    
  }

  /* تقليل الهوامش بين الصفوف */
  .mb-custom { margin-bottom: 15px !important; }

  /* table style  */
  /* توسيط عناوين الجدول (thead) */
#table thead th, 
.table-modern thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

/* توسيط محتوى الخلايا (tbody) */
#table tbody td, 
.table-modern tbody td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* ضمان تمركز حاوية الـ dropdown والزر بداخل الخلية */
td[data-label="خيارات"], 
.no-print {
    display: table-cell; /* لضمان سلوك الخلية */
    text-align: center !important;
}

/* جعل حاوية الـ dropdown تتمركز كعنصر داخل الخلية */
.action-dropdown {
    display: inline-block; 
    vertical-align: middle;
}

/* تحسين شكل الزر ليكون متناسقاً في المنتصف */
.action-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* dark and reading mode  */
/* paginator  */
/* حاوية الترقيم - توسيط كامل */
.dataTables_wrapper .dataTables_paginate {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 30px 0 !important;
    gap: 5px !important;
}

/* التنسيق الأساسي للأزرار (الأرقام) */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important; 
    border-radius: 50px !important; /* شكل دائري أو كبسولة */
    background: #fdfdfd !important;
    color: #444 !important;
    padding: 8px 16px !important;
    min-width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    margin: 0 2px !important;
}

/* زر الصفحة الحالية (عند الضغط أو الاختيار) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #11cdef, #1171ef) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important; /* التأكيد على الانحناء عند الضغط */
    box-shadow: 0 4px 10px rgba(17, 205, 239, 0.3) !important;
    transform: scale(1.05); /* تكبير بسيط للرقم النشط */
    z-index: 2;
}

/* تأثير التمرير (Hover) على الأرقام غير النشطة */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: #f0f2f5 !important;
    color: #11cdef !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
}

/* أزرار السابق والتالي */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: bold !important;
    background: #fff !important;
    border-radius: 50px !important;
}

/* إخفاء الحدود التي تظهر أحياناً عند النقر (Focus) */
.dataTables_wrapper .dataTables_paginate .paginate_button:active,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* paginator  */