.admin-bills-list-table-container {
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  overflow-x: auto;
}

.filter-search-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filter-section,
.search-section {
  margin-bottom: 20px;
}

.filter-section input,
.filter-section select,
.search-section input,
.create-bill-form input,
.create-bill-form select {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.filter-section button,
.search-section button,
.create-bill-form button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #009879;
  color: white;
  cursor: pointer;
  width: 150px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.filter-section button:hover,
.search-section button:hover,
.create-bill-form button:hover {
  background-color: #007f6a;
}

.filter-section button + button,
.create-bill-form button + button {
  margin-left: 10px;
}

.filter-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.create-bill-form {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.create-bill-form h3 {
  margin-bottom: 15px;
  color: #009879;
}

.create-bill-button-container {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.create-bill-button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #009879;
  color: white;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.create-bill-button:hover {
  background-color: #007f6a;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
  text-align: left;
  table-layout: fixed;
}

.table th,
.table td {
  padding: 6px 10px;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

.table tr:hover {
  background-color: #f9f9f9;
}

.table th:nth-child(1),
.table td:nth-child(1) {
  width: 240px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 200px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 160px;
}

.table th:nth-child(4),
.table td:nth-child(4) {
  width: 120px;
}

.table th:nth-child(5),
.table td:nth-child(5) {
  width: 160px;
}

.table th:nth-child(6),
.table td:nth-child(6) {
  width: 110px;
}

.table th:nth-child(7),
.table td:nth-child(7) {
  width: 90px;
  text-align: right;
}

.table th:nth-child(8),
.table td:nth-child(8) {
  width: 130px;
  text-align: right;
}

.table th:nth-child(9),
.table td:nth-child(9) {
  width: 110px;
  text-align: center;
  white-space: nowrap;
}

.table th:nth-child(10),
.table td:nth-child(10) {
  width: 120px;
  text-align: center;
  white-space: nowrap;
}

.table th:nth-child(11),
.table td:nth-child(11) {
  width: 100px;
  text-align: center;
  vertical-align: middle;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.btn-danger {
  background-color: #d9534f;
  color: white;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-danger:hover {
  background-color: #c9302c;
}

.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-dialog {
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.confirm-dialog button {
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.confirm-dialog button:first-of-type {
  background: #d9534f;
  color: white;
}

.confirm-dialog button:last-of-type {
  background: #f0ad4e;
  color: white;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination-button {
  visibility: visible;
  margin: 0 10px;
}

.pagination-button.hidden {
  visibility: hidden;
}

.button-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.status-paid {
  background-color: #28a745;
}

.status-unpaid {
  background-color: #ffc107;
  color: black;
}

.status-overdue {
  background-color: #dc3545;
}
