/**
 * @file
 * Tablesort indicator styles.
 */

.tablesort {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.875rem; /* 14px */
  height: 1rem; /* 16px */
  margin-top: -0.5rem; /* -8px */
  opacity: 0.5;
  background: url(../../images/icons/000f33/sort--inactive--ltr.svg) no-repeat 0 50%;
  background-size: auto;

  @media (forced-colors: active) {
    background: linktext;
    mask-image: url(../../images/icons/000f33/sort--inactive--ltr.svg);
    mask-repeat: no-repeat;
    mask-position: 0 50%;
  }
}
[dir="rtl"] .tablesort {
  right: auto;
  left: 1rem; /* 16px */
  background-image: url(../../images/icons/000f33/sort--inactive--rtl.svg);

  @media (forced-colors: active) {
    background: linktext;
    mask-image: url(../../images/icons/000f33/sort--inactive--rtl.svg);
    mask-repeat: no-repeat;
    mask-position: 0 50%;
  }
}
.tablesort--asc,
[dir="rtl"] .tablesort--asc {
  opacity: 1;
  background-image: url(../../images/icons/003ecc/sort--asc.svg);

  @media (forced-colors: active) {
    background: linktext;
    mask-image: url(../../images/icons/003ecc/sort--asc.svg);
  }
}
.tablesort--desc,
[dir="rtl"] .tablesort--desc {
  opacity: 1;
  background-image: url(../../images/icons/003ecc/sort--desc.svg);

  @media (forced-colors: active) {
    background: linktext;
    mask-image: url(../../images/icons/003ecc/sort--desc.svg);
  }
}
