/* Keep entry labels and names together inside the table's scroll area. */
.admin-entry-scroll {
  max-height: min(65vh, 42rem);
  max-height: min(65dvh, 42rem);
  overflow: auto;
  scrollbar-gutter: stable;
  scroll-padding-top: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-entry-scroll:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.admin-entry-scroll > table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-entry-scroll > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #08101a;
  box-shadow: inset 0 -2px #735e27;
}

.admin-entry-scroll > table > tbody > tr > td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #08101a;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.18);
}

.admin-entry-scroll > table > thead > tr > th:first-child {
  left: 0;
  z-index: 4;
}

body[data-page="adminBrackets"] .admin-entry-scroll #bracketBowlerBody td:first-child,
.admin-entry-scroll #bracketBowlerHead th:first-child {
  display: table-cell;
  min-width: 11rem;
  max-width: 14rem;
  white-space: normal;
  overflow: visible;
  font-size: .85rem;
  line-height: 1.35;
}

@media print {
  .admin-entry-scroll {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .admin-entry-scroll > table > thead > tr > th,
  .admin-entry-scroll > table > tbody > tr > td:first-child {
    position: static;
    box-shadow: none;
  }
}
