/* Table-header sorting and column-filter controls. */

/* Sorting arrows */

div.ajaxtable_container table tr th div.ajaxtable_orderDir {
  display: block;
  visibility: hidden;
  white-space: nowrap;
  vertical-align: middle;
  position: relative;
  top: 0;
  margin-left: 0;
  width: 18px;
  min-width: 18px;
  height: 18px;
  line-height: 0;
  overflow: visible;
}

div.ajaxtable_container[data-ajaxtable-qty='1'] table tr th div.ajaxtable_orderDir {
  display: none;
}

div.ajaxtable_container table tr th:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir,
div.ajaxtable_container table tr th.ajaxtable_ordered div.ajaxtable_orderDir,
div.ajaxtable_container table tr th.ajaxtable_ordered:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_up,
div.ajaxtable_container table tr th.ajaxtable_ordered:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_down {
  visibility: visible;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir div {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  flex: 0 0 9px;
  width: 18px;
  min-width: 18px;
  height: 9px;
  margin: 0;
  color: #ccc;
  transition: color 0.18s ease;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir div.ajaxtable_spinner {
  flex: 0 0 18px;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir div.ajaxtable_up {
  top: 0;
  align-items: center;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir div.ajaxtable_down {
  top: 9px;
  align-items: center;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir span.ajaxtable_sortIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  min-width: 18px;
  height: 18px;
  overflow: visible;
  font-size: 16.2px;
  line-height: 16.2px;
  pointer-events: none;
  transition: transform 0.18s ease;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir span.ajaxtable_sortIcon > i,
div.ajaxtable_container table tr th div.ajaxtable_orderDir span.ajaxtable_sortIcon > svg {
  display: block;
  width: auto;
  max-width: 18px;
  height: 16.2px !important;
  font-size: 16.2px;
  line-height: 16.2px;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir span.ajaxtable_sortIcon > svg {
  width: auto !important;
}

div.ajaxtable_container table tr th div.ajaxtable_orderDir div.ajaxtable_down span.ajaxtable_sortIcon {
  top: -9px;
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_down,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_up {
  visibility: visible;
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_up,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_down {
  visibility: hidden;
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_up,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_down {
  visibility: visible;
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_up,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_down {
  color: var(--lor-color);
  cursor: default;
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_down,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_up {
  color: var(--lor-color);
}

div.ajaxtable_container table tr th.ajaxtable_notOrdered:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)):not(:has(div.ajaxtable_orderDir div.ajaxtable_up:hover)) div.ajaxtable_orderDir div.ajaxtable_down span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_up span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc:hover:not(:has(div.ajaxtable_columnFilter:hover)):not(:has(div.ajaxtable_columnFilterValue:hover)) div.ajaxtable_orderDir div.ajaxtable_down span.ajaxtable_sortIcon {
  color: var(--lor-color-dark);
  transform: scale(1.1);
}

div.ajaxtable_container table tr th.ajaxtable_notOrdered div.ajaxtable_orderDir div.ajaxtable_up:hover,
div.ajaxtable_container table tr th.ajaxtable_notOrdered div.ajaxtable_orderDir div.ajaxtable_down:hover,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_up:hover,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_down:hover {
  color: var(--lor-color-dark);
  cursor: pointer;
}

div.ajaxtable_container table tr th.ajaxtable_notOrdered div.ajaxtable_orderDir div.ajaxtable_up:hover span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_notOrdered div.ajaxtable_orderDir div.ajaxtable_down:hover span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_up:hover span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_down:hover span.ajaxtable_sortIcon {
  transform: scale(1.1);
}

div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_asc div.ajaxtable_orderDir div.ajaxtable_down:hover span.ajaxtable_sortIcon,
div.ajaxtable_container table tr th.ajaxtable_ordered.ajaxtable_orderDir_desc div.ajaxtable_orderDir div.ajaxtable_up:hover span.ajaxtable_sortIcon {
  color: var(--lor-color);
  transform: none;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.18s ease, background-color 0.18s ease;
}

/* Keep the active filter available for clearing when filtering returns no rows. */

div.ajaxtable_container[data-ajaxtable-qty='0']:has(
  div.ajaxtable_filter[data-ajaxtable-filter-active='1'],
  th.ajaxtable_columnFilterActive
) table tr th:not(.ajaxtable_columnFilterActive) div.ajaxtable_columnFilter {
  display: none;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter:hover {
  color: var(--lor-color);
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter > i,
div.ajaxtable_container table tr th div.ajaxtable_columnFilter > svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter:hover > i,
div.ajaxtable_container table tr th div.ajaxtable_columnFilter:hover > svg {
  transform: scale(1.1);
}

div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--lor-color-dark);
  color: #fff;
  transform: scale(1);
  transform-origin: center;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter:hover {
  background-color: var(--lor-color);
  color: #fff;
  transform: scale(1.1);
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter.ajaxtable_columnFilterDoubleClick {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: rgb(var(--alert-red, 206, 0, 0)) !important;
  color: #fff;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter.ajaxtable_columnFilterDoubleClick div.ajaxtable_spinner {
  background-color: rgb(var(--alert-red, 206, 0, 0));
  color: #fff;
}

div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter > i,
div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter > svg {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter:hover > i,
div.ajaxtable_container table tr th.ajaxtable_columnFilterActive div.ajaxtable_columnFilter:hover > svg {
  transform: scale(1);
}

div.ajaxtable_container table tr th div.ajaxtable_headerLine {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
}

div.ajaxtable_container table tr th div.ajaxtable_headerLine div.ajaxtable_orderDir {
  flex: 0 0 auto;
  align-self: flex-start;
  top: 0;
  margin-left: 0;
}

div.ajaxtable_container table tr th div.ajaxtable_headerLine div.ajaxtable_headerActions {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
  height: 18px;
}

div.ajaxtable_container table tr th span.ajaxtable_headerLabel {
  display: inline-flex;
  align-items: flex-start;
  min-width: 0;
  line-height: 18px;
}

div.ajaxtable_container table tr th span.ajaxtable_headerLabel > i,
div.ajaxtable_container table tr th span.ajaxtable_headerLabel > svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  vertical-align: top;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilterValues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  margin-top: 3px;
  white-space: normal;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilterValue {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: 2px 5px;
  overflow: hidden;
  border: 1px solid var(--lor-color);
  border-radius: 4px;
  background-color: var(--lor-color);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: normal;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilterValue:hover,
div.ajaxtable_container table tr th div.ajaxtable_columnFilterValue:focus {
  border-color: rgb(var(--alert-red, 206, 0, 0));
  background-color: rgb(var(--alert-red, 206, 0, 0));
  color: #fff;
  outline: none;
}

div.ajaxtable_container table tr th div.ajaxtable_columnFilter svg,
div.ajaxtable_container table tr th div.ajaxtable_columnFilter i,
div.ajaxtable_container table tr th div.ajaxtable_columnFilter path {
  pointer-events: none;
}

div.ajaxtable_container table tr th.ajaxtable_hasOrder:hover {
  background-color: #fcfcfc;
  cursor: pointer;
}