﻿
.tabulator {
  --row-caret-holder-width: 45px;
  --row-branch-holder-width: 70px;
}

.tabulator {
  background-color: transparent;
  border: var(--table-border);
  font-size: inherit;
  color: var(--table-color);
  box-shadow: var(--table-box-shadow);
  border-radius: var(--table-border-radius);
}
.tabulator .tabulator-tableholder .tabulator-table {
  color: var(--table-color);
  background-color: var(--table-bg-color);
}

.tabulator .tabulator-header {
  background-color: var(--table-head-bg-color);
  border-bottom: var(--table-head-border-bottom);
}
.tabulator .tabulator-header .tabulator-col {
  background: var(--table-head-bg-color);
  border-right: var(--table-head-col-border-right);
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  user-select: none !important;
}
.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left {
  border-right: var(--table-col-frozen-border);
}
.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left {
  border-right: var(--table-col-frozen-border);
  background-color: var(--table-col-frozen-bg-color);
}
@media (hover: hover) and (pointer: fine) {
  .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
    background-color: var(--table-head-hover-bg-color);
  }
}
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input,
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter select {
  background-color: var(--body-bg-color);
  outline: none;
  border: var(--control-border);
  border-radius: 5px;
  font-weight: normal;
  line-height: normal;
  padding: 4px !important;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
  opacity: 0.6;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort$="ding"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
  opacity: 1;
  border-top-color: var(--brand-color);
  border-bottom-color: var(--brand-color); /* active sort */
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 4px 8px;
}

.tabulator-row {
  background-color: transparent;
  border-bottom: var(--table-row-border-bottom);
}
.tabulator-row.tabulator-row-even {
  background-color: transparent;
}
.tabulator-row.tabulator-selectable:hover {
  background-color: var(--table-row-hover-bg-color) !important;
}

.tabulator .tabulator-col { border-right: none; }

.tabulator-row .tabulator-cell {
  border-right: none; padding: 4px 10px;
}
.tabulator-row .tabulator-cell .tabulator-data-tree-control,
.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse,
.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse::after,
.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand,
.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand::after  {
  border: none; background: none;
}
.tabulator-row .tabulator-cell .font-caret {
  font-size: 16px;
  display: inline-flex;
  flex: 0;
  min-width: var(--row-caret-holder-width);
  align-items: center;
  margin-right: 5px;
}
.tabulator-row .tabulator-cell .font-caret::before {
  width: 15px;
  text-align: left;
}
.tabulator-row .tabulator-cell .font-caret.fa-caret-down::before {
  content: "\f0d7";
  font-weight: 300;
}
.tabulator-row .tabulator-cell .font-caret::after {
  font-family: "Font Awesome 5 Pro";
  font-size: 20px;
  font-weight: 300;
  content: '\f07c';
  display: block;
}
.tabulator-row .tabulator-cell .font-caret + div {
  flex: 1;
  max-width: calc(100% - var(--row-caret-holder-width));
}
.tabulator-row .tabulator-cell .tabulator-data-tree-branch {
  border: none;
  flex: 0;
  min-width: var(--row-branch-holder-width);
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.tabulator-row .tabulator-cell .tabulator-data-tree-branch::before {
  display: block;
  border: none;
  font-family: "Font Awesome 5 Pro";
  content: "\f6a3";
  font-size: 20px;
  font-weight: 300;
  width: 35px;
}
.tabulator-row .tabulator-cell .tabulator-data-tree-branch + div {
  flex: 1;
  max-width: calc(100% - var(--row-branch-holder-width));
}
.tabulator-alert {
  background-color: var(--table-curtain-background-color) !important;
}
