/* ============================================================================
   Workhub — Table & filter styles
   ============================================================================ */

.tf-filters-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 16px;
}
.tf-filters-bar .form-select { width: auto; min-width: 140px; padding: 8px 10px; font-size: 13px; }
.tf-filters-bar .tf-filter-search { flex: 1; min-width: 180px; }

.tf-table-wrapper {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.tf-table-scroll { overflow-x: auto; }
table.tf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tf-table thead th {
  text-align: left; padding: 12px 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.tf-table tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
table.tf-table tbody tr:last-child td { border-bottom: none; }
table.tf-table tbody tr { cursor: pointer; transition: background .1s ease; }
table.tf-table tbody tr:hover { background: var(--surface-2); }

.tf-table-sortable { cursor: pointer; user-select: none; }
.tf-table-sortable i { margin-left: 4px; font-size: 10px; opacity: .6; }

.tf-cell-title { font-weight: 600; }
.tf-cell-muted { color: var(--text-muted); }

.tf-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
.tf-pagination-btns { display: flex; gap: 6px; }
.tf-pagination-btns button {
  width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text);
}
.tf-pagination-btns button:disabled { opacity: .4; cursor: not-allowed; }
.tf-pagination-btns button.active { background: var(--accent); color: #06231F; border-color: var(--accent); }

.tf-checkbox-cell { width: 36px; }

@media (max-width: 768px) {
  .tf-filters-bar { flex-direction: column; align-items: stretch; }
  .tf-filters-bar .form-select { width: 100%; }
}
