/* ============================================
   Tuition Tracking — Specific Styles
   Read-only monitoring dashboard
   ============================================ */

/* ---- Page Content ---- */
.page-content {
  padding: 24px 30px 44px;
}

/* ---- Summary Cards ---- */
.tuition-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.tuition-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: all var(--t-base);
  animation: rise 0.5s var(--ease-out) forwards;
  opacity: 0;
}

.tuition-stat-card:nth-child(1) { animation-delay: 0.05s; }
.tuition-stat-card:nth-child(2) { animation-delay: 0.10s; }
.tuition-stat-card:nth-child(3) { animation-delay: 0.15s; }
.tuition-stat-card:nth-child(4) { animation-delay: 0.20s; }

.tuition-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.tuition-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tuition-stat-icon .material-symbols-rounded { font-size: 24px; }
.tuition-stat-icon.total { background: var(--accent-bg); color: var(--accent); }
.tuition-stat-icon.paid { background: var(--success-bg); color: var(--success); }
.tuition-stat-icon.remaining { background: var(--warning-bg); color: var(--warning); }
.tuition-stat-icon.overdue { background: var(--danger-bg); color: var(--danger); }

.tuition-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tuition-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.tuition-stat-label {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.tuition-stat-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search input */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 10px;
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--t-fast);
}

.search-input {
  padding: 8px 14px 8px 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: all var(--t-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  min-width: 180px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input:focus + .search-icon,
.search-input-wrapper:focus-within .search-icon {
  color: var(--accent);
}

.select-filter {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  transition: all var(--t-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.select-filter:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: rgba(66, 133, 244, 0.2);
}

.btn-secondary .material-symbols-rounded { font-size: 17px; }

/* ---- Class Section Card ---- */
.class-section {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
  overflow: hidden;
  animation: rise 0.5s var(--ease-out) forwards;
  opacity: 0;
}

.class-section:nth-child(1) { animation-delay: 0.10s; }
.class-section:nth-child(2) { animation-delay: 0.18s; }
.class-section:nth-child(3) { animation-delay: 0.26s; }
.class-section:nth-child(4) { animation-delay: 0.34s; }
.class-section:nth-child(5) { animation-delay: 0.42s; }

.class-section-header {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: background var(--t-fast);
}

.class-section-header:hover {
  background: var(--bg-hover);
}

.class-section-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.class-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-section-icon .material-symbols-rounded {
  font-size: 20px;
}

.class-section-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.class-section-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.class-section-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mini stats in header */
.class-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.class-mini-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.class-mini-stat-value.green { color: var(--success); }
.class-mini-stat-value.red { color: var(--danger); }
.class-mini-stat-value.amber { color: var(--warning); }

.class-mini-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.class-collect-rate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-bar {
  width: 60px;
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.rate-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--success);
  transition: width 0.8s var(--ease-out);
}

.rate-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

.rate-text.excellent { color: var(--success); }
.rate-text.good { color: var(--accent); }
.rate-text.low { color: var(--danger); }

.chevron-toggle {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.class-section.collapsed .chevron-toggle {
  transform: rotate(-90deg);
}

/* Course rows inside section */
.class-section-body {
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.class-section.collapsed .class-section-body {
  max-height: 0 !important;
  padding: 0;
}

.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 14px 36px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: background var(--t-fast);
}

.course-row:last-child {
  border-bottom: none;
}

.course-row:hover {
  background: var(--bg-hover);
}

.course-row.is-completed {
  opacity: 0.45;
}

.course-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.course-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.course-row-dot.active { background: var(--success); }
.course-row-dot.upcoming { background: var(--info); }
.course-row-dot.completed { background: var(--text-muted); }

.course-row-name {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
}

.course-row-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.course-row-badge.active {
  background: var(--success-bg);
  color: var(--success);
}

.course-row-badge.upcoming {
  background: var(--info-bg);
  color: var(--info);
}

.course-row-badge.completed {
  background: rgba(0,0,0,0.04);
  color: var(--text-muted);
}

.course-row-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.course-fee-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.course-fee-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.course-fee-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.course-students-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paid-unpaid-chips {
  display: flex;
  gap: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.chip.paid {
  background: var(--success-bg);
  color: var(--success);
}

.chip.unpaid {
  background: var(--danger-bg);
  color: var(--danger);
}

.chip .material-symbols-rounded {
  font-size: 13px;
}

/* Student detail list per course */
.course-students-list {
  padding: 0 22px 12px 56px;
  display: none;
}

.course-students-list.open {
  display: block;
}

.student-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 3px;
  font-size: 0.82rem;
  transition: background var(--t-fast);
}

.student-fee-row:hover {
  background: var(--bg-hover);
}

.student-fee-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-fee-name {
  font-weight: 500;
  color: var(--text-primary);
}

.student-fee-sessions {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.student-fee-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fee-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.fee-status-chip.paid {
  background: var(--success-bg);
  color: var(--success);
}

.fee-status-chip.unpaid {
  background: var(--danger-bg);
  color: var(--danger);
}

.fee-status-chip.partial {
  background: var(--warning-bg);
  color: var(--warning);
}

.fee-status-chip.overpaid {
  background: var(--info-bg);
  color: var(--info);
}

.fee-status-chip.waived {
  background: var(--accent-light);
  color: var(--accent);
}

.fee-status-chip .material-symbols-rounded {
  font-size: 13px;
}

.fee-amount-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  min-width: 80px;
  text-align: right;
}

.fee-date-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 75px;
}

.btn-view-history {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-view-history:hover {
  background: var(--info-bg);
  color: var(--info);
}

.btn-view-history .material-symbols-rounded {
  font-size: 16px;
}

/* Toggle button for course details */
.btn-toggle-detail {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all var(--t-fast);
}

.btn-toggle-detail:hover {
  background: var(--accent-bg);
}

.btn-toggle-detail .material-symbols-rounded {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn-toggle-detail.open .material-symbols-rounded {
  transform: rotate(180deg);
}

/* ---- Modal (History) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 0;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  border: none !important;
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.modal-close:hover {
  background: #b91c1c !important;
  color: #fff !important;
  transform: scale(1.05);
}

.modal-body {
  padding: 18px 26px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 26px 20px;
}

/* History blocks */
.history-block {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.history-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--card-border);
}

.history-block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.history-block-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.history-block-body {
  padding: 10px 14px;
}

.history-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.8rem;
}

.history-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.history-date {
  font-size: 0.74rem;
  color: var(--text-muted);
  min-width: 76px;
}

.history-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--success);
}

.history-note {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.history-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

.history-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--card-border);
}

.history-total-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.history-total-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--success);
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  font-size: 0.84rem;
  color: var(--text-primary);
  animation: toastIn 0.4s var(--ease-out) forwards;
  min-width: 260px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast .material-symbols-rounded { font-size: 20px; }
.toast.success .material-symbols-rounded { color: var(--success); }
.toast.error .material-symbols-rounded { color: var(--danger); }
.toast.info .material-symbols-rounded { color: var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* ---- Empty state ---- */
.empty-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.empty-msg .material-symbols-rounded {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}


/* ============================================
   VIEW TOGGLE — Class / Student switch
   ============================================ */
.tuition-view-toggle {
  display: flex;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.tuition-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: calc(var(--radius-sm) - 2px);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.tuition-view-btn:hover {
  color: var(--text-secondary);
}

.tuition-view-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tuition-view-btn .material-symbols-rounded {
  font-size: 16px;
}

/* ============================================
   STUDENT VIEW — Cards with payment history
   ============================================ */
.student-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-card-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: rise 0.5s var(--ease-out) forwards;
  opacity: 0;
}

.student-card-item:nth-child(1) { animation-delay: 0.05s; }
.student-card-item:nth-child(2) { animation-delay: 0.10s; }
.student-card-item:nth-child(3) { animation-delay: 0.15s; }
.student-card-item:nth-child(4) { animation-delay: 0.20s; }
.student-card-item:nth-child(5) { animation-delay: 0.25s; }
.student-card-item:nth-child(6) { animation-delay: 0.30s; }
.student-card-item:nth-child(7) { animation-delay: 0.35s; }
.student-card-item:nth-child(8) { animation-delay: 0.40s; }

.student-card-header {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--t-fast);
}

.student-card-header:hover {
  background: var(--bg-hover);
}

.student-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.student-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.student-card-class {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.student-card-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-card-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.student-card-fee {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.student-card-fee-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.student-card-right .chevron-toggle {
  transition: transform 0.25s ease;
}

/* Body — collapsed by default */
.student-card-body {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--card-border);
}

.student-card-body.open {
  display: block;
}

/* History grid inside student body */
.student-history-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.student-history-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 0.82rem;
  transition: background var(--t-fast);
}

.student-history-row:last-child {
  border-bottom: none;
}

.student-history-row:hover {
  background: var(--bg-hover);
}

.student-history-course {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.student-history-course-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.student-history-course-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.student-history-course-period {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-history-fee,
.student-history-paid,
.student-history-date {
  text-align: right;
}

.student-history-status {
  display: flex;
  justify-content: flex-end;
}

/* ============================================
   RESPONSIVE — Tuition page
   ============================================ */
@media (max-width: 1200px) {
  .tuition-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar-left {
    flex-wrap: wrap;
  }
  .filter-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-content { padding: 16px; }
  .tuition-summary { grid-template-columns: 1fr; }
  .course-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .course-row-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .class-section-right { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar-left { flex-direction: column; gap: 8px; }
  .toolbar-right { width: 100%; justify-content: flex-end; }
  .student-history-row { grid-template-columns: 1fr; gap: 4px; }

  /* Toggle full width */
  .tuition-view-toggle { width: 100%; }
  .tuition-view-btn { flex: 1; justify-content: center; }

  /* Search & filters full width */
  .filter-group { width: 100%; flex-direction: column; gap: 6px; }
  .search-input-wrapper { width: 100%; }
  .search-input { width: 100%; min-width: auto; }
  .select-filter { width: 100%; }

  /* Export button icon-only */
  .toolbar-right .btn-secondary span:not(.material-symbols-rounded) {
    display: none;
  }
  .toolbar-right .btn-secondary {
    padding: 8px 10px;
  }

  .student-card-right { flex-direction: column; align-items: flex-end; gap: 6px; }
}
