.data-table {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table__search {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table__search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.data-table__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.data-table__container {
  overflow-x: auto;
}

.data-table__table {
  width: 100%;
  border-collapse: collapse;
}

.data-table__header {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.data-table__header--sortable {
  cursor: pointer;
  user-select: none;
}

.data-table__header--sortable:hover {
  background-color: #f1f5f9;
}

.data-table__header-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-table__sort-indicator {
  font-size: 0.75rem;
  color: var(--color-primary);
}

.data-table__row {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s;
}

.data-table__row:hover {
  background-color: var(--color-bg);
}

.data-table__row--clickable {
  cursor: pointer;
}

.data-table__row--clickable:hover {
  background-color: #f1f5f9;
}

.data-table__cell {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.data-table__loading,
.data-table__empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-secondary);
}

.data-table__skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.data-table__skeleton-cell {
  flex: 1;
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

.data-table__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.data-table__pagination-info {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.data-table__pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.data-table__pagination-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.data-table__pagination-btn:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

.data-table__pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.data-table__pagination-page {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

