@charset "UTF-8";

/* add_button----------------------------- add_button*/
.add_button {
  --main-focus: #2d8cf0;
  --font-color: #4c00ff;
  --bg-color-sub: #dedede;
  --bg-color: #eee;
  --main-color: #323232;
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  float: right;
}

.add_button,
.add_button__icon,
.add_button__text {
  transition: all 0.3s;
}

.add_button .add_button__text {
  color: var(--font-color);
  display: table;
  margin: 0 auto;
  font-weight: 600;
}

.add_button .add_button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add_button .svg {
  width: 20px;
  fill: var(--main-color);
}

.add_button:hover {
  background: var(--bg-color);
}

.add_button:hover .add_button__text {
  color: transparent;
}

.add_button:hover .add_button__icon {
  width: 148px;
  transform: translateX(0);
}

.add_button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

/* reload_button----------------------------- reload_button*/
.reload_button {
  --main-focus: #2d8cf0;
  --font-color: #0076f5;
  --bg-color-sub: #dedede;
  --bg-color: #eee;
  --main-color: #323232;
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.reload_button,
.reload_button__icon,
.reload_button__text {
  transition: all 0.3s;
}

.reload_button .reload_button__text {
  display: table;
  margin: 0 auto;
  color: var(--font-color);
  font-weight: 600;
}

.reload_button .reload_button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reload_button .svg {
  width: 20px;
  fill: var(--main-color);
}

.reload_button:hover {
  background: var(--bg-color);
}

.reload_button:hover .reload_button__text {
  color: transparent;
}

.reload_button:hover .reload_button__icon {
  width: 148px;
  transform: translateX(0);
}

.reload_button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

/* Style 9----------------------------- */
#page_title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #fff; /* لون النص */
  letter-spacing: 1px; /* مسافة بسيطة بين الأحرف */
  margin: 10px 0;
  padding: 10px; /* مسافة داخلية مريحة */
  background: linear-gradient(
    90deg,
    darkblue 0%,
    #2b3f54 100%
  ); /* خلفية متدرجة عصرية */
  border-radius: 20px; /* زوايا مستديرة */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* ظل خفيف للنص */
  font-family: "Tajawal", sans-serif; /* خط عربي عصري */
}
/* زرار راديو صفحة الرحلات*/

.radio-buttons-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.radio-button {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.radio-button__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-button__label {
  display: inline-block;
  padding-left: 30px;
  margin-bottom: 10px;
  position: relative;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.radio-button__custom {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #555;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.radio-button__input:checked + .radio-button__label .radio-button__custom {
  transform: translateY(-50%) scale(0.9);
  border: 5px solid #4c8bf5;
  color: #4c8bf5;
}

.radio-button__input:checked + .radio-button__label {
  color: #4c8bf5;
}

.radio-button__label:hover .radio-button__custom {
  transform: translateY(-50%) scale(1.2);
  border-color: #4c8bf5;
  box-shadow: 0 0 10px #4c8bf580;
}

/* -------------------------------------------------------- */
/* تثبيت ارتفاع ثابت للجدول وجعل التمرير من داخل الجدول */
.card-box.table-responsive {
  max-height: 80vh;
  max-width: 100vw;
  overflow-y: auto;
  overflow-x: auto;
}

.x_panel {
  border: 2px solid #1e3a66; /* لون وسماكة الحدود */
  border-radius: 20px; /* زوايا مستديرة */
  box-shadow: 0 4px 15px rgba(30, 58, 102, 0.5); /* ظل ناعم */
  padding: 20px; /* مسافة داخلية */
  background-color: #f9f9f9; /* لون خلفية */
  transition: all 0.3s ease-in-out; /* تأثير حركي */
}

.x_panel:hover {
  box-shadow: 0 8px 20px rgba(30, 58, 102, 0.7); /* تضخيم الظل عند التمرير */
  transform: scale(1.01); /* تكبير طفيف عند التمرير */
  z-index: 2; /* تعيين z-index أعلى عند التمرير */
}

#datatable-responsive_wrapper {
  position: sticky;
  top: 0;
  padding: 10px 0; /* توفير مسافة مريحة */
  border-bottom: 1px solid #ccc; /* خط سفلي لتوضيح الشريط */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* تأثير ظلال لإبراز العنصر */
}

/* تثبيت الصف الأول من الجدول */
#datatable-responsive thead th {
  position: sticky;
  top: 45px;
  border-bottom: 1px solid #ddd; /* تقليل عرض الحدود */
  background-color: #f9f9f9; /* تعيين لون ثابت للرؤوس */
}

/* تحسينات إضافية لتجربة التمرير */
.dataTables_scrollBody {
  overflow-y: auto; /* إضافة التمرير الداخلي */
  max-height: 400px; /* تعيين أقصى ارتفاع لجدول التمرير */
}

.right_col {
  max-height: 95vh;
  max-width: 100vw;
  overflow-y: auto; /* تفعيل التمرير العمودي */
  scrollbar-width: none; /* إخفاء شريط التمرير في Firefox */
}

@media (max-width: 1000px) {
  /* الأجهزة المحمولة */
  .right_col {
    overflow-y: visible; /* إزالة الخاصية */
  }
  .operation_btn {
    flex-direction: column; /* تحويل التخطيط إلى عمودي */
    align-items: stretch; /* تمديد العناصر لتتوافق مع عرض الحاوية */
  }
  #dt-search-1 {
    width: 100%; /* اجعل الحقل بعرض الصفحة */
    max-width: 100%; /* تأكد من عدم تجاوزه */
    box-sizing: border-box; /* يضمن أن الحشوة والحدود مشمولة */
  }

  .dataTables_filter {
    flex-direction: column; /* تحويل التخطيط إلى عمودي */
    align-items: stretch; /* تمديد العناصر لتتوافق مع عرض الحاوية */
  }
  .dataTables_paginate {
    flex-direction: column; /* تحويل التخطيط إلى عمودي */
    align-items: stretch; /* تمديد العناصر لتتوافق مع عرض الحاوية */
  }

  .salary-radio-label {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

.list-unstyled::-webkit-scrollbar,
.right_col::-webkit-scrollbar {
  display: none; /* إخفاء شريط التمرير في المتصفحات المبنية على WebKit */
}

/* علامة تحميل الجدول */
.dt-processing {
  top: 0;
  background: transparent; /* إزالة الخلفية */
  border: none; /* إزالة الحواف */
  box-shadow: none; /* إزالة أي ظلال قد تكون على العنصر */
}

/* تصميم الجدول الأساسي */
/* تصميم الـ thead */
.custom-thead {
  background-color: darkblue;
  color: rgb(110, 120, 207);
  transition: all 0.3s ease-in-out;
  border-radius: 20px;
}
/* تأثير على الصفوف عند التمرير */
.dt-scroll {
  border-radius: 20px;
}
th {
  text-align: center !important; /* محاذاة النص في الـ thead */
}

/* تأثير على الصفوف عند التمرير */
.custom-thead th {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* تغيير لون الخلفية عند المرور */
.custom-thead th:hover {
  background-color: #0056b3;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* حركة انسيابية داخل الـ thead */
.custom-thead th::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: auto;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

/* حركة على النص عند المرور */
.custom-thead th:hover::before {
  left: 0;
  transition: all 0.3s ease-in-out;
}

thead tr:first-child th:first-child {
  border-top-right-radius: 20px; /* زاوية علوية يمين */
}

thead tr:first-child th:last-child {
  border-top-left-radius: 20px; /* زاوية علوية يسار */
}

/* استهداف الأزرار العامة */

.btn-group .btn {
  background-color: transparent;
  color: #490794; /* لون النص */
  border: #490794; /* إزالة الحدود */
  font-size: 16px; /* حجم النص */
  transition: all 0.3s ease-in-out; /* حركة انسيابية */
}

/* عند تمرير الماوس على الزر */
.btn-group .btn:hover {
  background-color: #3711be; /* أزرق داكن */
  color: #fff; /* لون النص */
  transform: scale(1.08); /* تكبير بسيط */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ظل */
}

/* عند الضغط على الزر */
.btn-group .btn:active {
  background-color: #fffb00; /* أزرق أغمق */
  transform: scale(1.13); /* تكبير أكبر */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* ظل أكبر */
}

.form-check-input {
  transform: scale(1.5); /* تكبير الحجم بنسبة 50% */
  margin: 5px; /* تعديل المسافات إذا لزم الأمر */
}

.center_item {
  align-items: center;
}

.form-control,
.filter-option-inner-inner {
  text-align: right;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* لتسليط الضوء على العمود */
.highlight-column {
  background-color: rgba(
    222,
    246,
    255,
    0.8
  ) !important; /* تقليل الشفافية لتحسين الأداء */
}

.dataTables_filter input {
  width: 300px !important; /* السماح بالعرض التلقائي */
  max-width: 300px; /* أقصى عرض 300 بكسل */
}

form .btn {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

form .btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#accordion {
  width: 100%; /* يجعل العنصر يتمدد ليملأ عرض الحاوية */
}

.collapse .card-body {
  width: 100%; /* يجعل العنصر يتمدد ليملأ عرض الحاوية */
  border-color: #0177f5;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

body {
  background-color: #2b3f54;
}

.salary-radio-btn {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.salary-radio-label {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid #dee2e6;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  user-select: none;
  font-size: 0.85rem;
  margin: 3px;
}

.salary-radio-btn:checked + .salary-radio-label {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  transform: scale(1.05);
}

.salary-radio-label:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.salary-radio-btn:checked + .salary-radio-label:hover {
  background-color: #0b5ed7;
}

.radio-group-salary {
  position: relative;
  display: inline-block;
}

#search_1 {
  background-color: transparent;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* تخصيص مدخلات النصوص */
input:read-only[type="date"],
input:read-only[type="text"],
input:read-only[type="number"],
textarea:read-only,
button:disabled,
input:disabled:not([type="button"]):not([type="checkbox"]),
textarea:disabled {
  opacity: 0.5;
  /* تقليل الوضوح */
  cursor: not-allowed;
  /* تغيير المؤشر */
  background-color: #e9ecef;
  /* لون خلفية خافت */
  color: #6c757d;
  /* لون النص */
  border-color: #ced4da;
  /* لون الإطار */
  box-shadow: none;
  /* إزالة الظلال */
}
.tiny-icon {
  font-size: 12px; /* حجم صغير جدًا */
}
/* ملف: خاص ب taps */
.tab-pane {
  position: relative; /* لاحتواء الـ spinner-overlay */
}
.spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
/* Attachments*/

.attach-hover {
  position: relative;
  display: block;
}

.attach-hover .preview {
  display: none;
  position: sticky;
  top: 100%;
  left: 50%;
  margin-top: 5px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow: hidden;
}

/* إظهارها عند المرور فوق .attach-hover */
.attach-hover:hover .preview,
/* أو عند المرور فوق .preview مباشرةً */
.attach-hover .preview:hover {
  display: block;
}

/* تعطيل تصغير الصور داخل المرفقات نهائياً */
.attachments-body img {
  width: auto !important;
  height: auto !important;
  max-width: 300px;
  max-height: 600px;
}
