/* =========================
   DATATABLE TOP BAR ALIGNMENT
   ========================= */
.dataTables_wrapper .top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
}

/* "Show entries" box */
.dataTables_wrapper .dataTables_length {
  float: left !important;
  width: auto !important;
  font-size: 14px !important;
}

/* "Search" box */
.dataTables_wrapper .dataTables_filter {
  float: right !important;
  width: auto !important;
  text-align: right !important;
}

.dataTables_wrapper .dataTables_filter input {
  height: 32px !important;
  font-size: 14px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  border: 1px solid #ccc !important;
}

/* Small screen adjustment */
/*This will show both show entries and search box*/
/*@media (max-width: 768px) {
  .dataTables_wrapper .top {
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    width: 48% !important;
  }

  .dataTables_wrapper .dataTables_filter input {
    
    width: calc(100% - 4px) !important; 
    font-size: 13px !important;
    
    box-sizing: border-box !important; 
  }
}*/

/*To Hide Show Entries and display Search Box only*/
@media(max-width: 768px){
  .dataTables_length{
    display: none !important;
  }
}

/*To Hide search box on mobile */
/*@media(max-width: 768px){
  .dataTables_filter{
    display: none !important;
  }
}*/

/* =========================
   DATATABLE BOTTOM BAR ALIGNMENT
   ========================= */
.dataTables_wrapper .bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
  padding-top: 5px !important;
  border-top: 1px solid #eee !important;
}

/* Info text (left side) */
.dataTables_wrapper .dataTables_info {
  float: left !important;
  font-size: 13px !important;
  color: #666 !important;
  padding-top: 3px !important;
}

/* Pagination (right side) */
.dataTables_wrapper .dataTables_paginate {
  float: right !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  margin: 0 2px !important;
  background-color: #f8f9fa !important;
  color: #333 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

/*.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #007bff !important;
  color: #fff !important;
  border-color: #007bff !important;
}*/

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #007bff !important;
  color: #fff !important;
  border-color: #007bff !important;
}

/* Responsive fix for small screens */
@media (max-width: 768px) {
  .dataTables_wrapper .bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    width: 48% !important;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 12px !important;
    padding: 3px 6px !important;
  }
}