#tableContainer {
  max-height: 50vh;
  min-height: 300px;
}

/* Filter Buttons Active State */
.btn.filter-btn.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}



.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal__overlay.modal--open {
  opacity: 1;
  pointer-events: auto;
}


/* Actions cell alignment and buttons */
.actions-cell-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--card-border, #e2e8f0);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-icon.active-toggle-btn.active {
  color: #10b981;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.btn-icon.active-toggle-btn.inactive {
  color: #94a3b8;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-icon.edit-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.btn-icon.delete-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

/* Student name container */
.student-name-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.student-avatar-badge.boy {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.student-avatar-badge.girl {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.student-avatar-badge.other {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.student-info-wrap {
  display: flex;
  flex-direction: column;
}

.student-full-name {
  font-weight: 700;
  color: var(--text, #1e293b);
  font-size: 13.5px;
}

.student-meta-sub {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-status.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-waiver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
}

.badge-waiver.missing {
  color: #94a3b8;
  font-weight: 400;
}

/* Pending Student Registrations Section */
.pending-section {
  background: #fff8f1;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.06);
}

.pending-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.pending-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pending-header-title h2 {
  font-size: 16px;
  font-weight: 800;
  color: #92400e;
  margin: 0;
}

.pending-badge-icon {
  font-size: 20px;
}

.pending-header-sub {
  font-size: 12.5px;
  color: #b45309;
  margin-top: 2px;
}

.pending-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.pending-card {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.pending-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.pending-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #fef3c7;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.pending-student-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white, #0f172a);
  margin-bottom: 2px;
}

.pending-student-meta {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.pending-card-body {
  font-size: 12.5px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pending-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
}

.pending-info-label {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.pending-info-val {
  font-weight: 700;
  color: var(--text-white, #0f172a);
  text-align: right;
}

.pending-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #fef3c7;
}

.btn-approve {
  flex: 1;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-approve:hover {
  background: #059669;
}

.btn-decline {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-decline:hover {
  background: #fee2e2;
  color: #dc2626;
}

.pending-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
  color: #b45309;
  font-size: 13.5px;
  font-weight: 600;
  background: #fffbeb;
  border-radius: 8px;
  border: 1px dashed #fcd34d;
}