#bookingsTable_wrapper .dataTables_filter label {
  font-weight: bold;
  text-align: center;
}

/* Action buttons styling */
.btn-group-actions {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-group-actions .btn {
  min-width: 32px;
  padding: 0.25rem 0.5rem;
}

/* Ensure consistent button sizing */
.btn-group-actions .btn i {
  font-size: 0.875rem;
}

/* Mobile responsive table styles */
@media screen and (max-width: 768px) {
  #bookingsTable {
    border: 0;
  }

  #bookingsTable thead {
    display: none;
  }

  #bookingsTable tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #bookingsTable td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #f4f4f4;
    text-align: right;
  }

  #bookingsTable td:last-child {
    border-bottom: none;
  }

  #bookingsTable td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
    flex: 1;
    color: #495057;
  }

  #bookingsTable td[data-label="Actions"] {
    flex-direction: column;
    gap: 8px;
  }

  #bookingsTable td[data-label="Actions"]::before {
    margin-bottom: 8px;
  }

  #bookingsTable td[data-label="Actions"] .btn-group-actions {
    width: 100%;
    justify-content: center;
  }

  /* Empty state for mobile */
  #bookingsTable tbody tr td[colspan] {
    display: table-cell;
    text-align: center;
    border: 1px solid #ddd;
  }
}

/* Ensure buttons wrap nicely on all screen sizes */
@media screen and (max-width: 576px) {
  .btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .btn-group-actions {
    gap: 0.5rem;
  }
}

/* Make DataTables search box responsive */
@media screen and (max-width: 576px) {
  #bookingsTable_wrapper .dataTables_filter {
    text-align: left !important;
  }

  #bookingsTable_wrapper .dataTables_filter label {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #bookingsTable_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

/* Make all data labels bold in mobile view */
@media screen and (max-width: 768px) {
  #bookingsTable td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
    flex: 1;
    color: #495057;
  }
}

/* Add spacing between label and value in mobile cards */
@media screen and (max-width: 768px) {
  #bookingsTable td {
    gap: 10px;
  }
}

/* Tooltip styling */
.tooltip {
  font-size: 0.875rem;
}

/* Form styling improvements */
.form-group label .text-danger {
  font-size: 0.875rem;
}

/* Modal improvements */
.modal-header.bg-danger {
  color: white;
}

.modal-header.bg-danger .close {
  color: white;
  opacity: 0.8;
}

.modal-header.bg-danger .close:hover {
  opacity: 1;
}

/* Button spacing in forms */
#groupForm button {
  margin-right: 0.5rem;
}

#groupForm button:last-child {
  margin-right: 0;
}

/* Date filter buttons styling */
.date-filter-buttons {
  display: inline-flex;
  gap: 0.25rem;
}

.date-filter-buttons .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.date-filter-buttons .btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.date-filter-buttons .btn:not(.active):hover {
  background-color: #e7f1ff;
}

/* Card header with filters */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header .card-title {
  margin-bottom: 0;
}

.card-header .card-tools {
  margin-left: auto;
}

/* Responsive filter buttons */
@media screen and (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header .card-tools {
    width: 100%;
    margin-left: 0;
  }

  .date-filter-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .date-filter-buttons .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.25rem;
  }

  .date-filter-buttons .btn i {
    display: block;
    margin-bottom: 0.25rem;
  }
}

@media screen and (max-width: 576px) {
  .date-filter-buttons .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
}
