.scroll-table {
  position: relative;
}

.scroll-table-body {
  overflow: auto;
  max-height: calc(100vh - var(--assistant-top, 56px) - 2rem);
  -webkit-overflow-scrolling: touch;
}

.scroll-table-body thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--tblr-bg-surface, #fff) !important;
  box-shadow: inset 0 -1px 0 var(--tblr-border-color, #e6e7e9);
}

.scroll-table-body tfoot td,
.scroll-table-body tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.scroll-table-body tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 10rem;
}

.scroll-table-body tbody tr > :first-child {
  background-color: var(--tblr-bg-surface, #fff);
}

.scroll-table-body thead tr > :first-child,
.scroll-table-body tfoot tr > :first-child {
  z-index: 3;
}

.scroll-table-body tr > :first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: var(--tblr-border-color, #e6e7e9);
}

.scroll-table::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .15s;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, .12));
}

.scroll-table.has-more-right::after {
  opacity: 1;
}
