.gc-table-scroll {
  max-height: min(72vh, 760px);
  overflow: auto !important;
  padding: 0 !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  isolation: isolate;
}

.gc-table-enhanced {
  isolation: isolate;
}

.gc-table-enhanced thead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #1e293b;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.28);
}

.gc-table-enhanced thead th {
  background-color: #1e293b !important;
  background-clip: padding-box;
  opacity: 1;
}

.gc-table-enhanced tfoot {
  position: sticky;
  bottom: 0;
  z-index: 28;
  background: #1e293b;
  box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.28);
}

.gc-table-enhanced tfoot td,
.gc-table-enhanced tfoot th {
  background-color: #1e293b !important;
  background-clip: padding-box;
  opacity: 1;
}

.gc-table-enhanced .gc-table-total-row > td,
.gc-table-enhanced .gc-table-total-row > th {
  position: sticky;
  bottom: 0;
  z-index: 27;
  background-color: #1e293b !important;
  background-clip: padding-box;
  opacity: 1;
  box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.28);
}

.gc-table-enhanced th[data-gc-sortable="true"] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.gc-table-enhanced th[data-gc-sortable="true"]::after {
  content: " ↕";
  color: #64748b;
  font-size: 0.82em;
}

.gc-table-enhanced th[data-gc-sortable="true"][aria-sort="ascending"]::after {
  content: " ↑";
  color: #fbbf24;
}

.gc-table-enhanced th[data-gc-sortable="true"][aria-sort="descending"]::after {
  content: " ↓";
  color: #fbbf24;
}

.gc-table-enhanced th.gc-table-sort-active {
  color: #fbbf24;
}

html.light .gc-table-enhanced thead,
html.light .gc-table-enhanced tfoot,
html.light .gc-table-enhanced .gc-table-total-row > td,
html.light .gc-table-enhanced .gc-table-total-row > th,
body.light .gc-table-enhanced thead,
body.light .gc-table-enhanced tfoot,
body.light .gc-table-enhanced .gc-table-total-row > td,
body.light .gc-table-enhanced .gc-table-total-row > th {
  background: #f1f5f9 !important;
}

html.light .gc-table-enhanced thead th,
html.light .gc-table-enhanced tfoot td,
html.light .gc-table-enhanced tfoot th,
body.light .gc-table-enhanced thead th,
body.light .gc-table-enhanced tfoot td,
body.light .gc-table-enhanced tfoot th {
  background-color: #f1f5f9 !important;
}

@media (max-width: 768px) {
  .gc-table-scroll {
    max-height: 68vh;
  }
}
