/**
 * @file
 * Table sort indicator.
 */

th.is-active img {
  display: inline;
}
td.is-active {
  background-color: #edfafd;
}

th a:has(.tablesort) {
  display: flex;
}


.tablesort {
  width: 16px;
  height: 16px;
  vertical-align: top;
  margin: 1px 0 0 5px;
}

.tablesort-heading > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tablesort-heading {
  position: relative;
  padding-right: 0.5rem;
}

.tablesort-heading.is-active {
  color: #00385f;
  background: #c6ecf6;
}

.tablesort-heading > a,
.tablesort-heading > a:hover,
.tablesort-heading > a:focus {
  color: inherit;
  text-decoration: none;
}

.tablesort-heading > a:not(:has(.tablesort--asc, .tablesort--desc)) {
  width: 100%;
  background-image: url("../../images/icons/sort.svg");
  padding-right: 22px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px;
}

.tablesort-heading a::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  width: 100%;
}

.tablesort-heading a:hover::before,
.tablesort-heading a:focus::before {
  background: currentColor;
}

.tablesort-heading > a:has(.tablesort--asc, .tablesort--desc)::before {
  background-color: currentColor;
}

.tablesort-heading > a:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
}

.tablesort--asc {
  background-image: url("../../images/icons/sort-asc.svg");
}

.tablesort--desc {
  background-image: url("../../images/icons/sort-desc.svg");
}

