/* DataNet Grid — Tabulator Lazerpol/shadcn teması */

.tabulator {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
}

.tabulator .tabulator-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
}
.tabulator .tabulator-header .tabulator-col {
  background: transparent;
  border-right: 1px solid #f3f4f6;
}
.tabulator .tabulator-header .tabulator-col-content {
  padding: 0.55rem 0.75rem;
}
.tabulator .tabulator-header .tabulator-col-title {
  font-weight: 500;
  color: #374151;
}

.tabulator .tabulator-row {
  border-bottom: 1px solid #f3f4f6;
  min-height: 38px;
}
.tabulator .tabulator-row.tabulator-row-even {
  background: #fafafa;
}
.tabulator .tabulator-row:hover {
  background: #f3f4f6 !important;
}
.tabulator .tabulator-row .tabulator-cell {
  padding: 0.45rem 0.75rem;
  border-right: 1px solid #f3f4f6;
  vertical-align: middle;
}

/* Footer (pagination) */
.tabulator .tabulator-footer {
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}
.tabulator .tabulator-footer .tabulator-page {
  border-radius: 0.375rem;
  margin: 0 2px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}
.tabulator .tabulator-footer .tabulator-page.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.tabulator .tabulator-footer .tabulator-page:hover:not(.active):not(.disabled) {
  background: #eff6ff;
}
.tabulator .tabulator-footer .tabulator-page-size {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 4px 6px;
}

/* Header filter inputs */
.tabulator .tabulator-header-filter input,
.tabulator .tabulator-header-filter select {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  width: 100%;
}
.tabulator .tabulator-header-filter input:focus,
.tabulator .tabulator-header-filter select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Resize handle */
.tabulator-col-resize-handle {
  border-right: 1px solid transparent;
}
.tabulator-col-resize-handle:hover {
  border-right-color: #3b82f6;
}

/* Sort arrow rengi */
.tabulator .tabulator-col.tabulator-sortable[aria-sort="ascending"] .tabulator-col-content .tabulator-arrow,
.tabulator .tabulator-col.tabulator-sortable[aria-sort="descending"] .tabulator-col-content .tabulator-arrow {
  border-bottom-color: #2563eb;
}

/* ===== Dark Mode — Tabulator ===== */
html.dark .tabulator                                { border-color: rgba(255,255,255,0.07); color: #e0e0e0; }

html.dark .tabulator .tabulator-header             { background: #111111; border-color: rgba(255,255,255,0.07); }
html.dark .tabulator .tabulator-header .tabulator-col { border-color: rgba(255,255,255,0.06); }
html.dark .tabulator .tabulator-header .tabulator-col-title { color: #9a9a9a; }

html.dark .tabulator .tabulator-row                { background: #1c1c1c; border-color: rgba(255,255,255,0.05); }
html.dark .tabulator .tabulator-row.tabulator-row-even { background: #191919; }
html.dark .tabulator .tabulator-row:hover          { background: #2a2a2a !important; }
html.dark .tabulator .tabulator-row .tabulator-cell {
  color: #e0e0e0;
  border-color: rgba(255,255,255,0.05);
}

html.dark .tabulator .tabulator-footer             { background: #111111; border-color: rgba(255,255,255,0.07); color: #9a9a9a; }
html.dark .tabulator .tabulator-footer .tabulator-page {
  background: #1c1c1c;
  border-color: rgba(255,255,255,0.10);
  color: #c0c0c0;
}
html.dark .tabulator .tabulator-footer .tabulator-page:hover:not(.active):not(.disabled) { background: #2a2a2a; }
html.dark .tabulator .tabulator-footer .tabulator-page-size {
  border-color: rgba(255,255,255,0.10);
  background: #1c1c1c;
  color: #c0c0c0;
}

html.dark .tabulator .tabulator-header-filter input,
html.dark .tabulator .tabulator-header-filter select {
  background: #1c1c1c;
  border-color: rgba(255,255,255,0.12);
  color: #e0e0e0;
}
html.dark .tabulator .tabulator-header-filter input::placeholder { color: #444444; }
html.dark .tabulator .tabulator-header-filter input:focus,
html.dark .tabulator .tabulator-header-filter select:focus {
  border-color: #143458;
  box-shadow: 0 0 0 2px rgba(20,52,88, 0.15);
}

html.dark .tabulator-col-resize-handle:hover { border-right-color: #143458; }
