/* allotment_management_14_plot_review_table.php */

/* Style for the search box container */

/* Sticky controls at the top */
.rent-collection-controls {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 15px;
  border-bottom: 3px solid #4CAF50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rent-collection-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  max-height: 600px;
  position: relative;
  border: 1px solid #ddd;
  margin-top: 15px;
}

.rent-collection-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background-color: #fff;
}

.rent-collection-table th,
.rent-collection-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.rent-collection-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f2f2f2;
  color: #555;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rent-collection-table td {
  background-color: #f9f9f9;
}

.filter-button {
  background-color: #4CAF50; /* Green background */
  border: 2px dashed #8DCD60; /* Dashed border */
  color: white; /* White text */
  padding: 10px 24px; /* Padding around the text */
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px; /* Text size */
  font-weight: bold; /* Bold text */
  margin: 4px 2px; /* Spacing around buttons */
  cursor: pointer;
  border-radius: 25px; /* Rounded corners */
  transition-duration: 0.4s; /* Smooth transition for hover effect */
}

.filter-button:hover {
  background-color: #367a36; /* Darker green for the hover state */
  color: white;
  border: 2px dashed #7CB342; /* Optionally change the border color on hover */
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .filter-button {
    padding: 12px 20px; /* Slightly larger padding for touch-friendliness */
    margin: 10px 0; /* More vertical space between buttons */
    font-size: 18px; /* Slightly larger text for readability */
    width: 100%; /* Full width for better mobile layout */
  }
}

.custom-checkbox {
  appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
}

.custom-checkbox:checked {
  background-color: #fff;
  border: 1px solid #ccc;
}

.custom-checkbox:checked:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #4CAF50; /* Green */
  border-radius: 50%;
}

.table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  max-height: 600px;  /* adjust this as needed */
}

table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background-color: #fff;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

th {
  background-color: #f2f2f2;
  color: #555;
}

td {
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
}

.year-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.year-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.year-checkboxes label:hover {
  background-color: #e0e0e0;
}

.year-checkboxes input[type="checkbox"] {
  margin-right: 10px;
}

.rent-collection-table-container {
  margin-top: 20px;
}

.rent-collection-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.rent-collection-table th, .rent-collection-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.rent-collection-table th {
  background-color: #f4f4f4;
}

.rent-collection-table .custom-checkbox {
  margin-right: 10px;
}

.paid-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: green;
  border-radius: 50%;
  margin-left: 5px;
}

.unpaid-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  margin-left: 5px;
}

.email-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.email-notice {
  margin-top: 20px;
  font-size: 14px;
}

.email-notice ul {
  list-style-type: disc;
  margin-left: 20px;
}
