 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap');

body *:not(i):not([class^="fa"]):not([class*=" fa"]) {
  font-family: 'Poppins_Extra-light','Poppins_SemiBold','Poppins','Poppins-Medium',
               'Cairo','Montserrat',-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto",
               "Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif !important;
}

 
 
    .nav-sidebar .nav-link {
    direction: rtl;
    text-align: right;
  }

  .nav-sidebar .nav-link .nav-icon {
    margin-left: 10px;
    margin-right: 0;
  }

  .nav-sidebar .nav-link p {
    margin: 0;
  }
  
    [dir="rtl"] .nav-treeview {
    padding-right: 1.5rem;
  }
    [dir="rtl"] .nav-link .fa-angle-left {
  margin-left: 0.5rem;
}

.nav-sidebar > .nav-item .nav-icon.fa,
.nav-sidebar > .nav-item .nav-icon.fab,
.nav-sidebar > .nav-item .nav-icon.fad,
.nav-sidebar > .nav-item .nav-icon.fal,
.nav-sidebar > .nav-item .nav-icon.far,
.nav-sidebar > .nav-item .nav-icon.fas,
.nav-sidebar > .nav-item .nav-icon.ion,
.nav-sidebar > .nav-item .nav-icon.svg-inline--fa {
  font-size: 0.85rem !important;
}

 

.mb-0{
	
	font-size: 14px;
}

 

  .btn-sidebar {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  
 .breadcrumb {
  display: flex;
  flex-direction: row; /* ← حتى مع RTL، العناصر تبقى بصف واحد */
  justify-content: flex-start;
}
.breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-left: 0.1rem;
    color: #6c757d;
    content: "/";
}
.breadcrumb-item+.breadcrumb-item {
   padding-left: 0px;
}

.icon-custom {
    float: left;
    font-size: 50px;
    opacity: 0.3;
    margin: -120px 0px 0px 10px;
}

 /* contant2 */
 
 /* card */
 
 

    /* عنوان القسم */
    .section-title {
      padding-bottom: 5px;
      text-align: right;
      font-size: 17px;
      font-weight: 600;
      color: #006064; /* تركواز غامق */
      margin: 30px 0 25px;
      border-right: 4px solid #0097a7;
      padding-right: 10px;
    }

    /* الحاوية الرئيسية للبطاقات */
    .stats-container {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      justify-content: flex-start;
      direction: rtl;
    }

    /* البطاقة */
    .stat-card {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      flex: 1 1 180px;
      max-width: 200px;
      display: flex;
      align-items: center;
      padding: 10px 12px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      min-height: 70px;
      color: #222;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    }

    /* دائرة الأيقونة */
    .icon-circle {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 18px;
      margin-left: 10px;
      flex-shrink: 0;
    }

    /* محتوى البطاقة */
    .stat-content {
      text-align: right;
      flex-grow: 1;
      overflow: hidden;
    }

    .stat-content h3 {
      margin: 0;
      font-size: 1.4rem;
      color: #222;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stat-content p {
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      margin: 0;
    }

    .stat-footer {
      margin-top: 4px;
      font-size: 0.75rem;
      color: #4a90e2;
      text-align: right;
      font-weight: 500;
      user-select: none;
    }

    /* تدرجات الألوان */

    /* صف أزرق */
    .row-blue .stat-card:nth-child(1) { background-color: #e6f0fb; }
    .row-blue .stat-card:nth-child(2) { background-color: #d1e7fb; }
    .row-blue .stat-card:nth-child(3) { background-color: #bdddfb; }
    .row-blue .stat-card:nth-child(4) { background-color: #a8d3fa; }
    .row-blue .stat-card .icon-circle { background-color: #4a90e2; }

    /* صف أخضر */
    .row-green .stat-card:nth-child(1) { background-color: #e7f6ec; }
    .row-green .stat-card:nth-child(2) { background-color: #d2f0df; }
    .row-green .stat-card:nth-child(3) { background-color: #bdead2; }
    .row-green .stat-card:nth-child(4) { background-color: #a9e5c5; }
    .row-green .stat-card .icon-circle { background-color: #4caf50; }

    /* صف رملي */
    .row-sand .stat-card:nth-child(1) { background-color: #fdf9f3; }
    .row-sand .stat-card:nth-child(2) { background-color: #faeedf; }
    .row-sand .stat-card:nth-child(3) { background-color: #f5dec3; }
    .row-sand .stat-card:nth-child(4) { background-color: #edd3ae; }
    .row-sand .stat-card .icon-circle { background-color: #c49b6c; }

    /* صف كحلي */
    .row-navy .stat-card:nth-child(1) { background-color: #e8f0fa; }
    .row-navy .stat-card:nth-child(2) { background-color: #d0e1f4; }
    .row-navy .stat-card:nth-child(3) { background-color: #c0d4ed; }
    .row-navy .stat-card:nth-child(4) { background-color: #b3c8e6; }
    .row-navy .stat-card .icon-circle { background-color: #2c3e50; }
	
 

 .title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem; /* المسافة بين العنوان والزر */
    margin-bottom: 0rem;
    direction: rtl;
  }

 

  .add-action-link {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #6c5ce7;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
  }

  .add-action-link i {
    margin-left: 0.3rem;
    font-size: 1rem;
  }

  .add-action-link:hover {
    color: #0056b3;
  }
  
  .section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

  .card-link-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  text-indent: -9999px;
}
.stat-card {
  position: relative; /* مهم جدًا لكي تعمل overlay */
  overflow: hidden;
}

  
 


/* **************************** */
 /* Table */
 
 
  
 /*    */
  
  .nav-sidebar .nav-link {
    direction: rtl;
    text-align: right;
  }

  .nav-sidebar .nav-link .nav-icon {
    margin-left: 10px;
    margin-right: 0;
  }

  .nav-sidebar .nav-link p {
    margin: 0;
  }
  
    [dir="rtl"] .nav-treeview {
    padding-right: 1.5rem;
  }
    [dir="rtl"] .nav-link .fa-angle-left {
  margin-left: 0.5rem;
}

.nav-sidebar > .nav-item .nav-icon.fa,
.nav-sidebar > .nav-item .nav-icon.fab,
.nav-sidebar > .nav-item .nav-icon.fad,
.nav-sidebar > .nav-item .nav-icon.fal,
.nav-sidebar > .nav-item .nav-icon.far,
.nav-sidebar > .nav-item .nav-icon.fas,
.nav-sidebar > .nav-item .nav-icon.ion,
.nav-sidebar > .nav-item .nav-icon.svg-inline--fa {
  font-size: 0.85rem !important;
}

html[lang="ar"] body, 
[lang="ar"] {
  font-family: "Poppins", 'Cairo', "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !important;
}

.mb-0{
	
	font-size: 14px;
}
 

 

  .btn-sidebar {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  
 .breadcrumb {
  display: flex;
  flex-direction: row; /* ← حتى مع RTL، العناصر تبقى بصف واحد */
  justify-content: flex-start;
}
.breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-left: 0.1rem;
    color: #6c757d;
    content: "/";
}
.breadcrumb-item+.breadcrumb-item {
   padding-left: 0px;
}

.icon-custom {
    float: left;
    font-size: 50px;
    opacity: 0.3;
    margin: -120px 0px 0px 10px;
}

/* اتجاه RTL للجدول */


    table.dataTable {
      direction: rtl;
    }

    /* محاذاة النص يمينًا داخل رؤوس وأعمدة الجدول */
    table.dataTable thead th,
    table.dataTable tbody td {
      text-align: right !important;
    }

    /* تصحيح ترتيب العناصر */
    .dataTables_filter,
    .dt-buttons {
      float: left !important;
      text-align: left !important;
	  
    }

    .dataTables_length {
      float: right !important;
      text-align: right !important;
    }

    .dataTables_info {
      float: right !important;
      text-align: right !important;
    }

    .dataTables_paginate {
      float: left !important;
      text-align: left !important;
    }

/* جعل رؤوس الأعمدة position: relative للسماح بوضع الأسهم */
table.dataTable thead th {
  position: relative;
}

/* توحيد مكان أسهم الترتيب في RTL - اجعلها كلها في الجهة اليسرى أو اليمنى */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
  right: auto !important;
  left: 0.5em !important; /* ← يمكنك جعله right: 0.5em !important إذا أردت السهم يمين */
}

 body[dir="rtl"] .dt-buttons.btn-group.flex-wrap {
  direction: rtl;
}

 
 
  
body[dir="rtl"] .dt-buttons .btn {
    /* رمادي فاتح جداً (تقريباً لون الخلفية الافتراضية) */
  color: #495057 !important;              /* نص رمادي غامق مريح للعين */
  border: 1px solid #ced4da !important;  /* حد رمادي فاتح */
  
  box-shadow: none !important;            /* إزالة الظلال */
}

body[dir="rtl"] .dt-buttons .btn:hover {
  background-color: #dee2e6 !important;  /* رمادي فاتح أكثر عند المرور */
  color: #343a40 !important;              /* نص أغمق قليلاً */
  border-color: #adb5bd !important;       /* حدود أغمق قليلاً */
}


 

 .btn-group>.btn-group:not(:last-child)>.btn, .btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
	 border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

.btn-group>.btn-group:not(:first-child)>.btn, .btn-group>.btn:not(:first-child) {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
	border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

/* أزرار المنتصف */
.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn, .btn-group>.btn:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.card-header {
     
	 background-color: #007bff;
      color: white;
      padding: 15px 20px;
      font-size: 1.2rem;
 
   
}
div.dataTables_wrapper div.dataTables_filter input {
    margin-right: 0.5em;

}

table.dataTable {
    clear: both;
    margin-top: 20px !important;
    margin-bottom: 20px !important;

}


table.dataTable>thead>tr>th:not(.sorting_disabled), table.dataTable>thead>tr>td:not(.sorting_disabled) {
      padding-right: 10px;  
	  padding-left: 10px;  
}


 

 /* العمود ككل */
.action-cell {
  width: 12%;
}

/* الحاوية العمودية للأزرار */
.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px; /* التباعد العمودي */
}

/* الأزرار بشكل عام */
.action-buttons .btn {
  width: 80%;      /* تقليل عرض الزر */
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* تعديل */
.btn-edit {
  background-color: #3498db;
  color: white;
}
.btn-edit:hover {
  background-color: #2d85c6;
}

/* حذف */
.btn-delete {
  background-color: #e74c3c;
  color: white;
}
.btn-delete:hover {
  background-color: #c44134;
}

/* أرشفة */
.btn-archive {
  background-color: #5d6d7e;
  color: white;
}
.btn-archive:hover {
  background-color: #4b5a6b;
}

 
 .file-icon {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 8px; /* حواف ناعمة وليست دائرية */
  background-color: #3498db; /* الأزرق المستخدم */
  transition: background-color 0.2s, transform 0.2s;
  margin: 0 5px;
}

.file-icon:hover {
  background-color: #2d85c6; /* درجة أغمق عند التمرير */
  transform: scale(1.05); /* تكبير بسيط */
}

.file-icon i {
  color: white;         /* الأيقونة باللون الأبيض */
  font-size: 18px;
  vertical-align: middle;
}

 
.sub-info {
  font-size: 0.9em;
  color: #999; /* رمادي خافت */
  margin-top: -10px;
}

.sub-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.05); /* رمادي شبه شفاف */
  color: #555;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 5px;
}

.sub-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.05);
  color: #555;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 5px;
  position: relative;
  z-index: 2; /* مهم لتكون فوق رابط البطاقة العام */
}

.clickable-badge {
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.clickable-badge:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
 

 /* */
 
 
     :root {
      --sidebar-width: 280px;      /* عرض كامل */
      --sidebar-mini-width: 80px;  /* عرض مصغّر (أيقونات) */
    }

    /* ===== Sidebar يمين ===== */
    .main-sidebar {
      right: 0 !important;
      left: auto !important;
      width: var(--sidebar-width) !important;
      transition: all .3s ease-in-out;
    }

    /* ===== إزاحة المحتوى ===== */
    /* شيل أي إزاحة يسار نهائي */
    .content-wrapper,
    .main-header,
    .main-footer {
      margin-left: 0 !important;
    }
	
 @media (min-width: 992px)
.sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0rem!important;
}




    /* شاشات كبيرة (≥992px) */
    @media (min-width: 992px) {
      body:not(.sidebar-collapse) .content-wrapper,
      body:not(.sidebar-collapse) .main-header,
      body:not(.sidebar-collapse) .main-footer {
        margin-right: var(--sidebar-width) !important;
      }

      body.sidebar-collapse .content-wrapper,
      body.sidebar-collapse .main-header,
      body.sidebar-collapse .main-footer {
        margin-right: var(--sidebar-mini-width) !important;
      }

      /* sidebar مصغّر */
      body.sidebar-collapse .main-sidebar {
        width: var(--sidebar-mini-width) !important;
      }
    }

    /* شاشات صغيرة (<992px) */
    @media (max-width: 991.98px) {
      .main-sidebar {
        transform: translateX(var(--sidebar-width)); /* مخفي افتراضياً يمين */
        position: fixed !important;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: transform .3s ease-in-out;
      }

      body.sidebar-open .main-sidebar {
        transform: translateX(0) !important; /* يظهر overlay */
      }

      /* المحتوى كامل الشاشة */
      .content-wrapper,
      .main-header,
      .main-footer {
        margin-right: 0 !important;
      }
    }

    /* ===== RTL للقائمة ===== */
    .nav-sidebar .nav-link {
      direction: rtl;
      text-align: right;
    }
    .nav-sidebar .nav-icon {
      margin-left: .5rem;
      margin-right: 0;
    }
	
	
	body.sidebar-mini.sidebar-collapse .content-wrapper,
body.sidebar-mini.sidebar-collapse .main-footer,
body.sidebar-mini.sidebar-collapse .main-header {
  margin-left: 0rem !important;
   
}


.custom-sidebar {
  background-color: #FFF !important; /* لون خلفية رمادي-أزرق فاتح */
  color: #333;               /* لون النص */
}

.custom-sidebar .nav-link {
  color: #333;
}

.custom-sidebar .nav-link.active {
  background-color: #dbeafe; /* لون الخلفية عند التحديد */
  color: #111;
}

.custom-sidebar .brand-link {
  background-color: #3b82f6; /* شريط العنوان العلوي */
  color: white;
}
  .box-shadow {
		0 1px 1px rgba(0,0,0,.16),0 1px 1px rgba(0,0,0,.23)!important;
  }
	
	
  .userinfo {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  white-space: nowrap;
  position: relative;
  border-bottom: 1px solid #e9e9e9;
  background: url('images/back.jpg') center center no-repeat;
  background-size: cover;
  height: 135px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}


/* تكبير مربع البحث داخل DataTables */
.dataTables_filter input {
    width: 300px !important;      /* حجم العرض، يمكن تغييره */
    height: 30px;      /* ارتفاع المربع */
    font-size: 14px;   /* حجم الخط داخل المربع */
    padding: 5px 10px; /* مساحة داخلية للمحتوى */
    border-radius: 5px; /* حواف دائرية بسيطة */
}


