/* Современная тема Tabulator под Tailwind-эстетику.
   Подключается после tabulator.min.css — переопределяет квадратный дефолт. */

.products-table .tabulator {
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  overflow: visible;
}

.products-table .tabulator .tabulator-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  overflow: visible;
}

.products-table .tabulator .tabulator-col {
  background: transparent;
  border: none !important;
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.products-table .tabulator .tabulator-col .tabulator-col-content {
  padding: 0;
}

.products-table .tabulator .tabulator-col input.tabulator-header-filter-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #374151;
  background: #fff;
  outline: none;
}

.products-table .tabulator .tabulator-col input.tabulator-header-filter-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.products-table .tabulator .tabulator-row {
  border: none;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  min-height: 0;
  cursor: pointer;
}

.products-table .tabulator .tabulator-row.tabulator-row-even {
  background: #fff;
}

.products-table .tabulator .tabulator-row:hover {
  background: #faf5ff;
}

.products-table .tabulator .tabulator-cell {
  border: none;
  padding: 12px;
  vertical-align: middle;
  height: auto;
}

.products-table .tabulator .tabulator-row .tabulator-cell {
  height: auto;
}

.products-table .tabulator .tabulator-calcs-holder {
  border-top: 1px solid #e5e7eb;
}

/* Сортировка: мягкие стрелки */
.products-table .tabulator .tabulator-col.sorter-active {
  color: #7c3aed;
}

.products-table .tabulator .tabulator-col .tabulator-sorter .tabulator-arrow {
  border-bottom-color: #d1d5db;
  border-top-color: #d1d5db;
}

.products-table .tabulator .tabulator-col.sorter-active .tabulator-arrow.tabulator-asc {
  border-bottom-color: #7c3aed;
}

.products-table .tabulator .tabulator-col.sorter-active .tabulator-arrow.tabulator-desc {
  border-top-color: #7c3aed;
}

/* Скроллбары */
.products-table .tabulator ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.products-table .tabulator ::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.products-table .tabulator ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Alpine: скрыть элементы до инициализации */
[x-cloak] { display: none !important; }
