/**
 * Table Sorting & Filtering Styles
 * Premium editorial look
 */

/* Filter Controls */
.table-filter-controls {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.filter-label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.filter-search {
  padding: 0.625rem 0.875rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.filter-search:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sortable Table Headers */
.sortable-table thead th.sortable {
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

.sortable-table thead th.sortable:hover {
  background-color: #F3F4F6;
}

.sortable-table thead th.sortable[data-sort="asc"],
.sortable-table thead th.sortable[data-sort="desc"] {
  background-color: #EFF6FF;
  color: #2563EB;
}

.sort-indicator {
  margin-left: 0.375rem;
  font-weight: normal;
}

.sort-arrows {
  display: inline-block;
  font-size: 0.75rem;
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.sortable:hover .sort-arrows {
  color: #6B7280;
}

.sortable[data-sort] .sort-arrows {
  color: #2563EB;
}

/* Row Animation */
.sortable-table tbody {
  transition: opacity 0.15s ease;
}

/* No Results Message */
.no-results-message {
  padding: 2rem;
  text-align: center;
  color: #6B7280;
  font-size: 0.9375rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
  .filter-group {
    flex-direction: column;
  }

  .filter-label {
    min-width: 100%;
  }
}
