/* Ticket list: sorting, search, paging (E222) ------------------------------------------ */

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.list-filters .filter {
  margin: 0;
}

.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.list-tools__search {
  flex: 1 1 16rem;
  min-width: 0;
}

.list-tools__type {
  flex: 0 1 12rem;
  min-width: 9rem;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: inherit;
  text-decoration: none;
}

.sort:hover,
.sort:focus-visible {
  color: var(--text);
}

th[aria-sort] .sort {
  color: var(--text);
}

.sort__arrow {
  font-size: 0.875rem;
  line-height: 1;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hairline);
}

.pager__now {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pager__off {
  opacity: 0.45;
  cursor: default;
}

/* The subject takes the room the list has; the short columns keep their line. Narrow, the rows are cards. */
@media (min-width: 48.0625rem) {
  .table td.cell--subject {
    width: 100%;
    min-width: 14rem;
  }

  .table td.cell--type,
  .table td.cell--state,
  .table td.cell--requester {
    white-space: nowrap;
  }
}

@media (max-width: 48rem) {
  .table td.cell--created {
    display: none;
  }

  .list-filters .filter {
    width: 100%;
  }

  .list-tools__type {
    flex: 1 1 100%;
  }
}

