.fee-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Filter Bar */
.fee-list-wrapper .fee-filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.fee-list-wrapper .fee-filter-bar label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  gap: 8px;
}

.fee-list-wrapper .fee-filter-bar select {
  padding: 8px 14px;
  min-width: 160px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.fee-list-wrapper .fee-filter-bar select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Section */
.fee-list-wrapper .fee-table-section {
  margin-bottom: 24px;
}

.fee-list-wrapper .fee-table-section h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.fee-list-wrapper .fee-table-wrapper {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table Header */
.fee-list-wrapper .fee-table-header {
  display: grid;
  grid-template-columns: 200px 120px 140px repeat(5, 80px) 100px 50px;
  gap: 1px;
  background: #f3f4f6;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.fee-list-wrapper .fee-table-header > div {
  text-align: center;
}

.fee-list-wrapper .fee-table-header > div:first-child {
  text-align: left;
}

/* Table Body */
/* .fee-list-wrapper .fee-table-body {
  max-height: 400px;
  overflow-y: auto;
} */

.fee-list-wrapper .fee-table-row {
  display: grid;
  grid-template-columns: 200px 120px 140px repeat(5, 80px) 100px 50px;
  gap: 1px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  transition: background-color 0.2s;
}

.fee-list-wrapper .fee-table-row:hover {
  background-color: #f9fafb;
}

.fee-list-wrapper .fee-table-row > div {
  text-align: center;
  font-size: 14px;
  color: #374151;
}

.fee-list-wrapper .fee-table-row > div:first-child {
  text-align: left;
}

/* Student Info */
.fee-list-wrapper .student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fee-list-wrapper .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

.fee-list-wrapper .student-info span {
  font-weight: 500;
  color: #111827;
}

/* Fee Status */
.fee-list-wrapper .fee {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

.fee-list-wrapper .fee.red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.fee-list-wrapper .fee.green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* More Button */
.fee-list-wrapper .more {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fee-list-wrapper .more::after {
  content: "\2807"; /* Unicode for vertical 3 dots (⋮) */
  font-size: 20px;
  color: #555;
}

/* Dropdown menu */
.more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 120px;
  z-index: 1000;
}

.more-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.more-menu a:hover {
  background: #f5f5f5;
}

/* Student link */
.student-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.student-link:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Pagination */
.fee-list-wrapper .fee-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.fee-list-wrapper .prev-btn,
.fee-list-wrapper .next-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.fee-list-wrapper .prev-btn:hover,
.fee-list-wrapper .next-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.fee-list-wrapper .prev-btn:disabled,
.fee-list-wrapper .next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fee-list-wrapper .page-numbers {
  display: flex;
  gap: 8px;
}

.fee-list-wrapper .page-numbers span {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.2s;
}

.fee-list-wrapper .page-numbers span:hover {
  background: #f3f4f6;
  color: #374151;
}

.fee-list-wrapper .page-numbers span:first-child {
  background: #3b82f6;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fee-list-wrapper {
    padding: 16px;
  }

  .fee-list-wrapper .fee-filter-bar {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .fee-list-wrapper .fee-filter-bar label {
    flex-direction: column;
    gap: 4px;
  }

  /*  Keep table as-is but allow horizontal scroll */
  .fee-list-wrapper .fee-table-wrapper {
    overflow-x: auto;
  }

  .fee-list-wrapper .fee-table-header,
  .fee-list-wrapper .fee-table-row {
    grid-template-columns: 200px 120px 140px repeat(5, 80px) 100px 50px;
    min-width: 900px; /* force horizontal scroll */
  }

  .fee-list-wrapper .fee-pagination {
    flex-direction: column;
    gap: 16px;
  }
}


/* Scrollbar Styling for Table Body */
.fee-list-wrapper .fee-table-body::-webkit-scrollbar {
  width: 6px;
}

.fee-list-wrapper .fee-table-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.fee-list-wrapper .fee-table-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.fee-list-wrapper .fee-table-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
