.admin-students-active [data-view="module"] {
  max-width: 1520px;
  margin-inline: auto;
  color: var(--workbench-navy);
}

.admin-students-active .main-area { background: #eef4fa; }
.admin-students-active .topbar-tools .search-box { display: none; }
.admin-students-active [data-view="module"] .module-toolbar h1 { color: var(--workbench-navy); }
.admin-students-active [data-view="module"] .primary-button {
  background: var(--workbench-blue);
  border-color: var(--workbench-blue);
}
.admin-students-active [data-view="module"] button:disabled { opacity: .55; cursor: default; }

.admin-student-filters,
.admin-student-list-head,
.admin-student-pagination,
.admin-student-filter-options {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-student-filters,
.admin-students-active [data-view="module"] .admin-table-card {
  border: 1px solid var(--workbench-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px #183b670d;
}

.admin-student-filters {
  margin-bottom: 13px;
  padding: 13px;
}

.admin-student-search { position: relative; min-width: 0; flex: 1 1 270px; }
.admin-student-search svg { position: absolute; top: 12px; left: 11px; color: var(--workbench-muted); pointer-events: none; }
.admin-student-search input,
.admin-student-filter-options select {
  min-height: 42px;
  width: 100%;
  padding: 6px 9px;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #fff;
  color: var(--workbench-navy);
  font: inherit;
  font-size: 14px;
}
.admin-student-search input { padding-inline-start: 36px; }
.admin-student-filter-options { min-width: 0; flex: 1 1 500px; }
.admin-student-filter-options select { flex: 1 1 0; min-width: 90px; }
.admin-student-filter-options > button { flex: none; }
.admin-student-option-retry { color: #90511e; }
.admin-student-filter-toggle { display: none; }
.admin-student-mobile-count { display: none; }

.admin-students-active [data-view="module"] .admin-table-card { overflow: visible; padding: 12px; }
.admin-student-list-head { justify-content: space-between; margin-bottom: 12px; }
.admin-student-list-head > span { color: var(--workbench-muted); font-size: 13px; white-space: nowrap; }
.admin-student-scopes {
  display: inline-flex;
  min-width: 0;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--workbench-line);
  border-radius: 9px;
  background: #f3f7fd;
}
.admin-student-scopes button {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--workbench-muted);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
}
.admin-student-scopes button[aria-pressed="true"] { background: #dce9ff; color: #174abb; font-weight: 700; }

.admin-students-active [data-view="module"] table { table-layout: fixed; min-width: 0; }
[data-admin-student-columns] th { background: #eaf2fc; color: var(--workbench-navy); }
[data-admin-student-columns] th:nth-child(1) { width: 26%; border-top-left-radius: 8px; }
[data-admin-student-columns] th:nth-child(2) { width: 28%; }
[data-admin-student-columns] th:nth-child(3) { width: 18%; }
[data-admin-student-columns] th:nth-child(4) { width: 15%; }
[data-admin-student-columns] th:last-child { border-top-right-radius: 8px; }
.admin-student-row td { padding-block: 9px; overflow-wrap: anywhere; }
.admin-student-identity > div { display: flex; align-items: center; gap: 10px; }
.admin-student-initial {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: #deebff;
  color: #1f52bc;
  font-weight: 750;
}
.admin-student-group strong { font-size: 13px; font-weight: 650; }
.admin-student-date { font-variant-numeric: tabular-nums; }
.roster-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf1f7;
  color: #465971;
  font-size: 12px;
  font-weight: 700;
}
.roster-status.active { background: #e3f5ea; color: #126044; }
.roster-status.pending { background: #fff2da; color: #80501b; }
.admin-student-more { position: relative; display: inline-block; }
.admin-student-more summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  color: var(--workbench-blue);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.admin-student-more summary::-webkit-details-marker { display: none; }
.admin-student-more summary span:last-child { font-size: 19px; line-height: 1; }
.admin-student-more > div {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 100%;
  min-width: 110px;
  padding: 4px;
  border: 1px solid var(--workbench-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px #182b4929;
}
.admin-student-more button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--workbench-navy);
  font: inherit;
  text-align: left;
  white-space: nowrap;
}
.admin-student-more button.danger { color: #a82632; }
.admin-student-more button:hover { background: #edf4ff; }
.admin-student-feedback { padding: 28px 12px; color: var(--workbench-muted); text-align: center; }
.admin-student-feedback button { margin-inline-start: 8px; }
.admin-student-pagination { justify-content: flex-end; margin-top: 12px; }
.admin-student-pagination span { min-width: 54px; color: var(--workbench-muted); text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .admin-student-filters { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .admin-students-active .admin-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 60px;
    padding: 8px 12px;
    background: var(--workbench-blue);
    color: #fff;
  }
  .admin-students-active .admin-topbar strong {
    font-size: 16px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .admin-students-active .admin-topbar small,
  .admin-students-active .topbar-tools :is(.api-status, .ghost-button) { display: none; }
  .admin-students-active .topbar-tools { width: auto; margin: 0; }
  .admin-students-active :is(.sidebar-toggle, .avatar-button) { background: #fff; color: var(--workbench-blue); box-shadow: none; }
  .admin-students-active .content-area { padding: 12px 12px 22px; }
  .admin-students-active [data-view="module"] .module-toolbar { margin-bottom: 10px; }
  .admin-students-active [data-view="module"] .module-toolbar .primary-button { width: fit-content; min-height: 42px; }
  .admin-students-active [data-view="module"] .module-toolbar p { display: none; }
  .admin-students-active [data-view="module"] .module-toolbar { flex-direction: row; align-items: center; gap: 8px; }
  .admin-students-active [data-view="module"] .module-toolbar h1 { font-size: 17px; }
  .admin-students-active [data-view="module"]:has([data-student-class-actions][hidden]) .module-toolbar > div { display: none; }
  .admin-students-active .admin-student-mobile-count { display: inline; color: var(--workbench-muted); font-size: 13px; white-space: nowrap; }
  .admin-student-filters { padding: 8px; gap: 7px; }
  .admin-student-search { flex: 1 1 0; }
  .admin-student-filter-toggle { display: inline-flex; flex: none; gap: 4px; min-height: 42px; padding-inline: 8px; color: var(--workbench-blue); }
  .admin-student-filter-toggle svg { width: 16px; height: 16px; }
  .admin-student-filter-options {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: 100%;
    gap: 7px;
  }
  .admin-student-filter-toggle[aria-expanded="true"] + .admin-student-filter-options { display: grid; }
  .admin-student-filter-options select[name="class_name"],
  .admin-student-option-retry { grid-column: 1 / -1; }
  .admin-students-active [data-view="module"] .admin-table-card { padding: 8px; }
  .admin-student-scopes button { padding-inline: 9px; min-height: 38px; font-size: 13px; }
  .admin-student-list-head { gap: 5px; margin-bottom: 7px; }
  .admin-student-list-head > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-students-active [data-view="module"] :is(table, tbody) { display: block; width: 100%; }
  [data-admin-student-columns] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-student-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 3px 6px;
    padding: 9px 5px;
    border-top: 1px solid #e5eef8;
  }
  .admin-student-row td { padding: 0; border: 0; min-width: 0; }
  .admin-student-account { grid-column: 2; grid-row: 1; text-align: right; }
  .admin-student-account small { font-size: 10px; max-width: 90px; }
  .admin-student-actions { grid-column: 3; grid-row: 1; text-align: right; }
  .admin-student-actions > .muted-action { display: none; }
  .admin-student-more summary { min-width: 42px; min-height: 42px; justify-content: center; }
  .admin-student-more summary span:first-child { display: none; }
  .admin-student-group { grid-column: 1 / -1; grid-row: 2; }
  .admin-student-group strong, .admin-student-group small { display: inline; font-size: 12px; color: var(--workbench-muted); }
  .admin-student-group small::before { content: " · "; }
  .admin-student-date { display: none; }
  .admin-student-pagination { justify-content: space-between; }
}
