:where(.ui-table-shell) {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--ui-color-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-color-surface);
}

:where(.ui-table-scroll) {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

:where(.ui-table) {
  width: 100%;
  border-collapse: collapse;
  background: var(--ui-color-surface);
}

:where(.ui-table thead th) {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-color-primary);
  color: #fff;
}

:where(.ui-table-total) {
  min-height: var(--ui-control-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-color-primary);
  color: #fff;
  font-weight: 900;
}

