/* Shared styling for the supplier-offer and Parts List Excel View grids.
   ID selectors keep these rules effective when the vendor theme loads on demand. */
:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) {
    --tabulator-column-divider: var(--crm-dark-control-border, #cdd6df);
    font-size: 12px;
    line-height: 1.3;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator)
:is(.tabulator-header .tabulator-col[tabulator-field], .tabulator-row .tabulator-cell:not(.tabulator-editing)) {
    border-right: 1px solid var(--tabulator-column-divider);
}

/* Draw the grouped title divider without adding to the width of its child columns. */
#partsListTabulatorGrid.tabulator .tabulator-col-group > .tabulator-col-content {
    box-shadow: inset -1px 0 var(--tabulator-column-divider);
}

#partsListTabulatorGrid.tabulator :is(.tabulator-col, .tabulator-cell:not(.tabulator-editing)).supplier-col-group {
    border-right-width: 2px;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) .tabulator-row {
    min-height: 26px;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) .tabulator-row .tabulator-cell {
    min-height: 26px;
    padding: 4px 6px;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 4px 6px;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) .tabulator-cell.tabulator-editing {
    padding: 0;
}

:is(#quote-lines-table-container .tabulator, #partsListTabulatorGrid.tabulator) :is(.tabulator-cell input, .tabulator-cell select, .tabulator-header-filter input) {
    font: inherit;
    min-height: 0;
    padding: 2px 4px;
}

#partsListTabulatorGrid .stock-total-badge {
    min-width: 32px;
    padding: 1px 5px;
}
