table.sortable th[role="columnheader"] {
  cursor: pointer;
  position: relative;
  padding-right: 1.75rem;
  user-select: none;
}

table.sortable th[role="columnheader"]::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  opacity: 0.3;
  transform: translateY(-50%);
}

table.sortable th[aria-sort="ascending"]::after {
  border-top: 5px solid currentColor;
  border-bottom: 0;
  opacity: 0.8;
}

table.sortable th[aria-sort="descending"]::after {
  border-top: 0;
  border-bottom: 5px solid currentColor;
  opacity: 0.8;
}

table.sortable th[role="columnheader"]:hover::after {
  opacity: 0.8;
}