/*
 * Sewers Online — Tabulator overrides (loaded after tabulator_bootstrap5.min.css)
 * Minimal, light, compact presentation.
 */

/* ── Table chrome ─────────────────────────────────────────────── */
.tabulator {
  font-size: 14px;
  border: 1px solid #dee2e6;
}

/* ── Column headers ───────────────────────────────────────────── */
.tabulator .tabulator-header {
  font-weight: 600;
  font-size: 13px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.tabulator .tabulator-header .tabulator-col {
  padding: 4px 4px;
}

/* ── Rows ─────────────────────────────────────────────────────── */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  min-height: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.tabulator .tabulator-row .tabulator-cell {
  padding: 2px 4px;
}

/* no zebra striping */
.tabulator .tabulator-row.tabulator-row-even {
  background-color: inherit;
}

/* ── Selection ────────────────────────────────────────────────── */
/* keep text color/bg neutral — the checkbox is the indicator */
.tabulator .tabulator-row.tabulator-selected {
  background-color: inherit;
  color: inherit;
}

/* subtle hover */
.tabulator .tabulator-row:hover {
  background-color: #f5f8fc;
}

/* ── Tree toggle — hidden; grouping is clear from indentation ── */
.tabulator .tabulator-data-tree-control {
  display: none;
}

/* tighten tree indent since toggle is hidden */
.tabulator .tabulator-data-tree-branch-empty {
  width: 4px;
}

/* ── Checkbox / radio column ──────────────────────────────────── */
.tabulator .tabulator-row .tabulator-cell input[type="checkbox"],
.tabulator .tabulator-row .tabulator-cell input[type="radio"] {
  margin: 0;
}

/* ── Row header (flat-table select-all column) ────────────────── */
.tabulator .tabulator-row .tabulator-row-header {
  padding: 2px 0;
}

/* ── Group header rows — slightly bolder ──────────────────────── */
.tabulator .tabulator-row[role="treeitem"] .tabulator-cell b {
  font-weight: 600;
}
