.billsListTableContainer {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px;
  font-family: Arial, sans-serif;
}

.filterContainer {
  margin-bottom: 20px;
  padding: 10px;
}

.filterContainer label {
  margin-right: 10px;
  font-weight: normal;
}

.filterContainer select {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
  text-align: left;
  background-color: white;
  border: 1px solid #ddd;
}

.table th,
.table td {
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ddd;
}

.table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: bold;
  font-size: 12px;
}

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

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

/* Compact column widths for horizontal fit */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 100px; /* Owner Name */
  font-size: 12px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 80px; /* Visit Type */
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 80px; /* Vet Name */
}

.table th:nth-child(4),
.table td:nth-child(4) {
  width: 70px; /* Date */
}

.table th:nth-child(5),
.table td:nth-child(5) {
  width: 60px; /* Amount */
}

.table th:nth-child(6),
.table td:nth-child(6) {
  width: 60px; /* Tax */
}

.table th:nth-child(7),
.table td:nth-child(7) {
  width: 60px; /* Interest */
}

.table th:nth-child(8),
.table td:nth-child(8) {
  width: 70px; /* Total Due */
}

.table th:nth-child(9),
.table td:nth-child(9) {
  width: 70px; /* Status */
}

.table th:nth-child(10),
.table td:nth-child(10) {
  width: 80px; /* Due Date */
}

.table th:nth-child(11),
.table td:nth-child(11) {
  width: 70px; /* Time Remaining */
}

.table th:nth-child(12),
.table td:nth-child(12) {
  width: 120px; /* Actions */
}

/* Button styling - simple and clean */
.table button {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  margin: 1px;
  background-color: white;
}

.table button:hover {
  background-color: #f0f0f0;
}

/* Download button */
.table button:first-of-type {
  background-color: #17a2b8;
  color: white;
  border-color: #17a2b8;
}

.table button:first-of-type:hover {
  background-color: #138496;
}

/* Pay button */
.table button:last-of-type {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.table button:last-of-type:hover {
  background-color: #218838;
}

/* Remove responsive transforms for horizontal fit */
@media (max-width: 1400px) {
  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 6px 4px;
  }

  .table button {
    font-size: 10px;
    padding: 3px 6px;
  }
}
