/* Frontend table styling */
.wft-table-wrap { margin: 1rem 0; }
.wft-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 .85rem;
}
.wft-toolbar-no-search { justify-content: flex-end; }
.wft-search-label { flex: 1 1 320px; }
.wft-search-input {
  width: 100%;
  max-width: 420px;
  padding: .65rem .8rem;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 8px;
  background: #fff;
}
.wft-results-count {
  color: rgba(0,0,0,.68);
  font-size: .95rem;
}
.wft-scroll { overflow-x:auto; }
.wft-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.wft-table th, .wft-table td {
  border: 1px solid rgba(0,0,0,.08);
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
}
.wft-table thead th { background: rgba(0,0,0,.03); }
.wft-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
.wft-sort-button::after {
  content: "↕";
  color: rgba(0,0,0,.45);
  font-size: .85em;
}
.wft-sort-button.is-active::after {
  content: "↑";
  color: rgba(0,0,0,.8);
}
.wft-sort-button.is-active[data-direction="desc"]::after {
  content: "↓";
}
.wft-pagination { display:flex; gap:.35rem; flex-wrap:wrap; margin-top:.85rem; align-items:center; }
.wft-page {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 2.25rem;
  padding:.4rem .65rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration:none;
  cursor: pointer;
}
.wft-page.is-active {
  font-weight:700;
  background: rgba(0,0,0,.06);
}
.wft-empty-row td {
  text-align: center;
  color: rgba(0,0,0,.72);
}

@media (max-width: 640px) {
  .wft-search-input {
    max-width: none;
  }
}
