/* 057: shared semantic Tabulator skin for workbench ledger primary tables */
.lt-wrap { position: relative; }
.lt-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.lt-btn {
  border:1px solid var(--border); background:var(--card); color:var(--text-1);
  border-radius: 7px; padding: 6px 10px; cursor: pointer; font-size: 12px;
}
.lt-btn:hover { border-color:var(--primary); }
.lt-btn.is-on {
  background:var(--blue-bg); border-color:var(--blue-border); color:var(--primary);
}
.lt-host { min-height: 48px; }
.lt-host.tabulator,
.lt-host .tabulator {
  background:var(--card) !important; border: 0 !important; font-size: 12px; color:var(--text-1);
}
.lt-host .tabulator-header {
  background:var(--seg) !important; border-bottom:1px solid var(--border) !important;
  color:var(--text-3);
}
.lt-host .tabulator-header .tabulator-col {
  background:var(--seg) !important; border-right:1px solid var(--border) !important;
}
.lt-host .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title { color:var(--text-3); }
.lt-host .tabulator-tableholder { background:var(--card) !important; }
.lt-host .tabulator-tableholder .tabulator-table {
  background-color:var(--card) !important; color:var(--text-1) !important;
}
.lt-host .tabulator-row {
  background:var(--card) !important; border-bottom:1px solid var(--border) !important;
  min-height: 42px;
}
.lt-host .tabulator-row.tabulator-row-even { background:var(--card) !important; }
.lt-host .tabulator-row:hover { background:var(--seg) !important; }
.lt-host .tabulator-row.lt-row-selected { background:var(--blue-bg) !important; }
.lt-host .tabulator-cell {
  border-right:1px solid var(--border) !important;
  padding: 6px 9px !important; color:var(--text-1);
}
.lt-host .tabulator-col-resize-handle { background: transparent; }
.lt-host .tabulator-col-resize-handle:hover { background:var(--primary); opacity: .35; }
.lt-host .tabulator-placeholder { color:var(--text-3); }
.lt-host .tabulator-frozen { background: inherit !important; }
.lt-host .tabulator-header .tabulator-frozen { background:var(--seg) !important; }
.lt-host .lt-money {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* default: hide header filters until .lt-filters-on */
.lt-host:not(.lt-filters-on) .tabulator-header .tabulator-col .tabulator-header-filter {
  display: none !important; height: 0 !important; padding: 0 !important;
  margin: 0 !important; overflow: hidden !important; border: 0 !important;
}
.lt-host .tabulator-header-filter input,
.lt-host .tabulator-header-filter select {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  background:var(--card); color:var(--text-1); border:1px solid var(--border);
  border-radius: 4px; padding: 3px 6px; font-size: 12px;
}
.lt-host .tabulator-header-filter input:focus,
.lt-host .tabulator-header-filter select:focus {
  outline: none; border-color:var(--blue-border);
}
.lt-host .tabulator-footer {
  background:var(--card) !important; border-top:1px solid var(--border);
  color:var(--text-1); font-weight: 600;
}
/* 合计行与固定列同样使用共享主题，避免 vendor 默认灰阶脱节。 */
.lt-host .tabulator-footer .tabulator-calcs-holder,
.lt-host .tabulator-footer .tabulator-calcs-holder .tabulator-row,
.lt-host .tabulator-header .tabulator-calcs-holder,
.lt-host .tabulator-header .tabulator-calcs-holder .tabulator-row,
.lt-host .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs {
  background:var(--seg) !important;
  border-color:var(--border) !important;
  color:var(--text-1) !important;
}
.lt-host .tabulator-calcs-bottom .tabulator-cell,
.lt-host .tabulator-calcs-top .tabulator-cell {
  background:var(--seg) !important; color:var(--text-1); font-variant-numeric: tabular-nums;
}
.lt-host .tabulator-data-tree-control {
  border-color:var(--border) !important; background:var(--card) !important;
}
