/* Advantage RPC Portal Phase 3.0G: sticky headers for long tables. */

.server-dashboard-table-wrap,
.phone-wrap,
.recent-registration-table-wrap {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.server-dashboard-table-wrap,
.phone-wrap {
  max-height: min(72vh, 780px);
}

.recent-registration-table-wrap {
  max-height: min(60vh, 620px);
}

.server-dashboard-table thead th,
.phone-table thead th,
.recent-registration-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--theme-surface-muted);
  box-shadow:
    0 1px 0 var(--theme-border),
    0 7px 16px rgba(0, 59, 111, .09);
}

@media (max-width: 980px) {
  .server-dashboard-table-wrap {
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 840px) {
  .recent-registration-table-wrap {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
}
