section .container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  width: 80%;
  margin: 20px auto;
  background: #6d8c54;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 16px 24px;
  text-align: center;
}

.mandi-filter-section {
  margin: 20px auto;
  background: #6d8c54;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 16px 24px;
  text-align: left;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.filter-chip {
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
  cursor: default;
}

.clear-chip {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

.clickable {
  color: #0077cc;
  cursor: pointer;
  transition: color 0.2s ease;
}
.clickable:hover {
  color: #ff6600;
  text-decoration: underline;
}

.card-header h2 {
    color: #f1cf69;
}

.card h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #f1cf69;
}

.card p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: white;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters select,
.filters input {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}

.filters button {
  background: #f1cf69;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filters button:hover, .pagination button:hover {
  background: #b69d52;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #6d8c54;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

th {
  background-color: #385420;
  color: #fff;
  font-weight: 600;
}

tr:hover td {
  background-color: #f3f4f6;
}

td.clickable {
  color: #f1cf69;
  cursor: pointer;
  font-weight: 500;
}

.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination button {
  background: #f1cf69;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.summary {
  font-size: 0.9rem;
  color: #4b5563;
}

.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d1fae5;
  border-top: 4px solid #f1cf69;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mandi-page-header {
    position: relative;
    display: block;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* padding: 120px 0px 120px; */
    z-index: 1;
    overflow: hidden;
}

.mandi-page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(var(--agribid-primary-rgb, 51, 75, 53), 0.7);
    z-index: -1;
}