.table > thead > tr > .table-sortable-heading {
  padding: 0;
}

.table-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}

.table-sm .table-sort-button {
  padding: 0.3125rem 0.625rem;
}

.table-sort-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.table-sort-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.table-sort-indicator {
  font-size: 0.75em;
  opacity: 0.6;
}

[aria-sort='ascending'] .table-sort-indicator,
[aria-sort='descending'] .table-sort-indicator {
  opacity: 1;
}
