.student-list-page,
.teacher-list-page,
.class-list-page,
.lesson-list-page,
.enrollment-list-page,
.view-stack {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}
.student-list-page > *,
.teacher-list-page > *,
.class-list-page > *,
.lesson-list-page > *,
.enrollment-list-page > *,
.class-year-group {
  min-width: 0;
  max-width: 100%;
}
.table-wrap {
  max-width: 100%;
  min-width: 0;
}
.table-wrap .inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: max-content;
}
.table-wrap .small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.table-wrap .small-action svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.table-wrap table:has(td:last-child .small-action) th:last-child,
.table-wrap table:has(td:last-child .small-action) td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  width: 108px;
  min-width: 108px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(20, 30, 45, 0.2);
}
.table-wrap table:has(td:last-child .small-action) th:last-child {
  z-index: 4;
  background: #f4f8fc;
}
.table-wrap .small-action:focus-visible {
  outline: 2px solid #008c9e;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .table-wrap .small-action {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
  .table-wrap table:has(td:last-child .small-action) th:last-child,
  .table-wrap table:has(td:last-child .small-action) td:last-child {
    width: 112px;
    min-width: 112px;
    padding-left: 8px;
    padding-right: 8px;
  }
}
