.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.data-table { min-width: 900px; font-size: 0.88rem; }
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F9FAFC;
  color: var(--muted);
  text-align: left;
  padding: 11px 12px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FBFCFD; }
.sticky-col { position: sticky; left: 0; z-index: 3; background: inherit; }
.sticky-col-2 { position: sticky; left: 92px; z-index: 3; background: inherit; }
.sticky-col-3 { position: sticky; left: 245px; z-index: 3; background: inherit; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.pagination button { border: 1px solid var(--border); background: #fff; color: var(--navy); border-radius: 8px; min-width: 34px; height: 34px; font-weight: 700; }
.pagination button.active { background: var(--green); border-color: var(--green); color: #fff; }
.empty-state { padding: 34px; text-align: center; color: var(--muted); }
.status-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 850;
}
.status-circle.p { background: var(--light-green); color: var(--green); }
.status-circle.a { background: var(--light-red); color: var(--error); }
.status-circle.l { background: var(--light-orange); color: #9a5b00; }
.status-circle.lv { background: var(--light-purple); color: #6931a3; }
.mark-input { width: 92px; min-height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--light-green);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.class-results-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.76rem;
}
.class-results-table th,
.class-results-table td {
  padding: 8px 6px;
  white-space: normal;
  line-height: 1.18;
}
.class-results-table th { font-size: 0.68rem; }
.class-results-table .sticky-col,
.class-results-table .sticky-col-2,
.class-results-table .sticky-col-3 {
  position: static;
}
.class-results-table th:nth-child(1),
.class-results-table td:nth-child(1) { width: 38px; }
.class-results-table th:nth-child(2),
.class-results-table td:nth-child(2) { width: 70px; }
.class-results-table th:nth-child(3),
.class-results-table td:nth-child(3) { width: 132px; }
.class-results-table th:nth-child(4),
.class-results-table td:nth-child(4) { width: 118px; }
.class-results-table th:nth-child(n+5):nth-child(-n+13),
.class-results-table td:nth-child(n+5):nth-child(-n+13) { width: 72px; text-align: center; }
.class-results-table th:nth-child(n+14),
.class-results-table td:nth-child(n+14) { width: 62px; text-align: center; }
.class-results-table th:last-child,
.class-results-table td:last-child { width: 74px; text-align: left; }
.class-results-table th:nth-last-child(3),
.class-results-table td:nth-last-child(3) { width: 74px; }
