.wb-table-toolbar,
.wb-pagination,
.tf-chips,
.tf-title,
.tf-directions,
.tf-footer,
.tf-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wb-table-toolbar,
.tf-title,
.tf-footer {
  justify-content: space-between;
}
.wb-pagination,
.tf-chips {
  margin: 12px 0;
}
.wb-pagination button {
  min-width: 46px;
  min-height: 46px;
}
.warehouse-table.tf-reduced {
  min-width: 0;
  width: 100%;
}
.tf-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: var(--mut);
  background: transparent;
  border: 0;
  padding: 4px 0;
  min-height: 44px;
  font: inherit;
}
.tf-heading svg {
  flex-shrink: 0;
}
.tf-active,
.tf-sort-mark {
  color: var(--blue);
}
.tf-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 18px;
  box-sizing: border-box;
  overflow: auto;
  background: var(--sf);
  color: var(--ink);
  border: 1px solid var(--ln2);
  border-radius: 10px;
  box-shadow: 0 12px 32px #0006;
  font-size: 16px;
}
.tf-panel button,
.tf-columns {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ln2);
  border-radius: 8px;
  background: var(--sf);
  color: var(--ink);
  font: inherit;
}
.tf-panel button[aria-pressed='true'],
.tf-panel .tf-apply {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bluebg);
}
.tf-title,
.tf-directions {
  margin-bottom: 14px;
}
.tf-title button {
  min-width: 44px;
}
.tf-directions button {
  flex: 1;
}
.tf-fields,
.tf-footer {
  border-top: 1px solid var(--ln2);
  padding-top: 14px;
}
.tf-footer {
  margin-top: 14px;
}
.tf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.tf-option input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.tf-option small {
  margin-left: auto;
  color: var(--mut);
}
.tf-options {
  max-height: 260px;
  overflow: auto;
}
.tf-panel input:not([type='checkbox']) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  padding: 10px;
  background: var(--sf);
  color: var(--ink);
  border: 1px solid var(--ln2);
  border-radius: 8px;
  color-scheme: var(--native-scheme, dark);
}
.tf-search,
.tf-list-actions {
  margin-bottom: 10px;
}
.tf-range,
.tf-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.tf-range label,
.tf-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tf-chip {
  display: inline-flex;
  max-width: 100%;
}
.tf-chip button {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--bluebg);
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.tf-chip button:first-child {
  border-radius: 8px 0 0 8px;
}
.tf-chip button:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 0;
  flex-shrink: 0;
}
.tf-error {
  color: var(--danger-text, #ffb3b3);
}
.tf-panel [hidden],
.warehouse-table [hidden] {
  display: none;
}
@media (max-width: 420px) {
  .tf-range {
    grid-template-columns: 1fr;
  }
}

.table-tools table tbody tr.table-filtered-out { display: none; }
.table-tools { min-width: 0; }

.table-tools table tbody tr.table-page-hidden { display: none; }
.table-pagination, .table-pagination nav, .table-pagination label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.table-pagination { justify-content: space-between; padding: 16px 0; }
.table-pagination select { width: auto; }
.table-pagination nav[hidden] { display: none; }
.table-pagination [aria-current='page'] { background: var(--blue); color: var(--on-accent, #07111c); border-color: var(--blue); }
.table-page-range { color: var(--secondary-text, #a4b4c8); }

.tf-range > span { align-self: center; color: var(--mut); }

.tf-range:has(> span) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
