#pagination {
  margin-top: 20px;
  margin-bottom: 20px;
}
.bottom-nav {
  display: none;
}

#pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#pagination li {
  margin: 0 5px;
}

#pagination li.disabled a {
  color: #999;
  pointer-events: none;
}

#pagination li a {
  display: block;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

#pagination li a:hover {
  background-color: #ddd;
}
@media (min-width: 991.98px) {
  main {
    padding-right: 240px;
  }
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-bottom: 10px;
}



/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  padding: 58px 0 0;
  /* Height of navbar */
  width: 240px;
  z-index: 600;
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 100%;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    height: 60px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0px -1px 10px rgba(0, 0, 0, 0.1);
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    height: 100%;
    width: 33.33%;
  }

  .bottom-nav a.active {
    color: #007bff;
  }

  .bottom-nav a i {
    font-size: 24px;
    margin-bottom: 2px;
  }

}

@media (max-width: 500px) {
  #result-table {
    font-size: 12px;
  }

  #result-table th,
  #result-table td {
    padding: 0.25rem;
  }

  #image-table {
    font-size: 12px;
  }

  #image-table th,
  #image-table td {
    padding: 0.20rem;
  }

  #show-expenses-t3 {
    font-size: 8px;
  }

  #show-expenses-t3 th,
  #show-expenses-t3 td {
    padding: 0.15rem;
  }

  #show-expenses-sq {
    font-size: 8px;
  }

  #show-expenses-sq th,
  #show-expenses-sq td {
    padding: 0.15rem;
  }

  #show-expenses-sd {
    font-size: 8px;
  }

  #show-expenses-sd th,
  #show-expenses-sd td {
    padding: 0.15rem;
  }
}


.sidebar .active {
  border-radius: 5px;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
}
@media print {
  /* استخدم هنا أي تنسيقات خاصة للطباعة */

  /* قم بإخفاء العنصر الذي يحمل الكلاس "bottom-nav" */
  .bottom-nav,header {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .mysize {
    font-size: 9px;
  }
  .mysize_info {
    font-size: 18px;
  }
}



.alert-zer {
  color: #ffffff;
  background-color: #3e7eff;
  border-color: #1da4ff;
}

.alert-cGreen {
  color: #254400;
  background-color: #cbff8e;
  border-color: #152403;
}

textarea {
  width: 100%;
  height: 100px;
}


.parent {
  font-size: 1.2rem;
}

.child {
  font-size: 0.8em;
}


.dz {
  border: dashed !important;
  background-color: #fbfbfb !important;
  border-radius: 10px !important;
}

.dz:hover {
  background-color: rgb(188, 255, 203) !important;
}
.dz-message:before {
  content: "اسحب الملفات هنا للتحميل";
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}
.dz-message:hover:before {
  color: #00360e;
}

.bg-profile{
  color: #4c7ac6;
  background-color: #385a93;
  border-color: #1a2b46;
}

.bg-caseinfo{
  color: #3f4351;
  background-color: #17181d;
  border-color: #000000;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

/* شكل الأزرار */
.pagination .page-link {
    border-radius: 14px;
    /* كان 10px */
    padding: 10px 14px;
    font-size: 14px;
    min-width: 42px;
    text-align: center;
}

/* تحسين اللمس في الموبايل */
@media (max-width: 576px) {

    .pagination .page-link {
        padding: 12px 16px;
        font-size: 15px;
        min-width: 46px;
    }

    .pagination {
        gap: 8px;
    }
}

.pagination .page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: bold;
}

.pagination .page-link {
    transition: all 0.2s ease;
}

.pagination .page-link:active {
    transform: scale(0.95);
}

.pagination {
    direction: rtl;
}

/* أول عنصر (يمين في RTL) */
.pagination .page-item:first-child .page-link {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* آخر عنصر (يسار في RTL) */
.pagination .page-item:last-child .page-link {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}