.table-grid-shell {
    min-width: 0;
}

.tabulator-host.is-enhanced {
    display: block;
}

.table-grid-shell .tabulator {
    border: 1px solid var(--ui-border-soft);
    border-radius: 12px;
    background: var(--ui-surface);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ui-text-heading);
}

.table-grid-shell .tabulator .tabulator-header {
    border-bottom: 1px solid var(--ui-border-soft);
    background: var(--ui-table-head-bg);
}

.table-grid-shell .tabulator .tabulator-header .tabulator-col {
    border-right: 1px solid var(--ui-border-subtle);
    background: var(--ui-table-head-bg);
}

.table-grid-shell .tabulator .tabulator-header .tabulator-col:hover,
.table-grid-shell .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
    background: var(--ui-selected-bg);
}

.table-grid-shell .tabulator .tabulator-header .tabulator-col:last-child {
    border-right: 0;
}

.table-grid-shell .tabulator .tabulator-tableholder .tabulator-table {
    background: var(--ui-surface);
}

.table-grid-shell .tabulator .tabulator-row {
    background: var(--ui-table-row-bg);
}

.table-grid-shell .tabulator .tabulator-row .tabulator-cell {
    border-right: 0;
    background: var(--ui-table-row-bg);
    color: var(--ui-text-heading);
}

.table-grid-shell .tabulator .tabulator-row.tabulator-row-even,
.table-grid-shell .tabulator .tabulator-row.tabulator-row-odd {
    background: var(--ui-table-row-bg);
}

.table-grid-shell .tabulator .tabulator-row:hover,
.table-grid-shell .tabulator .tabulator-row:hover .tabulator-cell {
    background: var(--ui-table-row-hover-bg);
}

.table-grid-shell .tabulator .tabulator-row.tabulator-selected,
.table-grid-shell .tabulator .tabulator-row.tabulator-selected .tabulator-cell {
    background: var(--ui-selected-bg);
}

.table-grid-shell .tabulator .tabulator-row.tabulator-selected:hover,
.table-grid-shell .tabulator .tabulator-row.tabulator-selected:hover .tabulator-cell {
    background: var(--ui-selected-bg);
}

.table-grid-shell .tabulator .tabulator-cell.tabulator-frozen,
.table-grid-shell .tabulator .tabulator-col.tabulator-frozen {
    background: inherit;
}

.table-grid-shell .tabulator .tabulator-footer {
    border-top: 1px solid var(--ui-border-soft);
    background: var(--ui-surface-overlay-muted);
}
