.table-sort-button,
#reports .table-sort-button,
.required-parts .table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: inherit;
}
.table-sort-button > span { min-width: 0; overflow-wrap: anywhere; }
.table-sort-button > svg, .required-parts .table-sort-button > svg { flex: 0 0 13px; height: 13px; width: 13px; }
.table-sort-button:hover, #reports .table-sort-button:hover, .required-parts .table-sort-button:hover { background: #e2e6eb; color: var(--ink); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--ink); }
#reports th:not(:first-child) .table-sort-button { justify-content: flex-end; }
@media (min-width: 621px) and (max-width: 900px) {
  .required-parts-table th:nth-child(4) { width: 124px; }
}
@media (max-width: 620px) {
  .required-parts-table thead { display: block; }
  .required-parts-table thead tr { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 10px; background: #f2f5f6; border: 0; }
  .required-parts-table thead th { display: block; width: auto; padding: 0; }
  .required-parts-table thead th:last-child { display: none; }
  .required-parts-table .table-sort-button { width: auto; min-height: 44px; }
}
@media (pointer: coarse) { .table-sort-button, #reports .table-sort-button, .required-parts .table-sort-button { min-height: 44px; } }
@media print { .table-sort-button svg { display: none; } }
