/*
 * Highlighted table rows have a light, opaque background in both themes.
 * Keep this global: replacement rows, links and nested muted text must remain
 * readable on every report, not only on the drug page.
 */
html:root body :is(table.table[class], table:not(.table)) > tbody > tr:is(
    .table-success, .table-warning, .table-info, .table-primary, .table-secondary,
    .table-light, .table-active, .manufacturer-product-selected, .brand-self,
    .drug-row-highlight, .row-selected, .selected-row, .highlighted, .is-selected,
    .bg-white, .bg-light, [style*="background"]
) > :is(td, th) {
    --bs-table-bg: #e8f4ef !important;
    --bs-table-bg-type: #e8f4ef !important;
    --bs-table-bg-state: #e8f4ef !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-color: #16392e !important;
    --bs-table-striped-color: #16392e !important;
    --bs-table-hover-color: #16392e !important;
    background-color: #e8f4ef !important;
    color: #16392e !important;
}

html:root body :is(table.table[class], table:not(.table)) > tbody > tr:is(
    .table-success, .table-warning, .table-info, .table-primary, .table-secondary,
    .table-light, .table-active, .manufacturer-product-selected, .brand-self,
    .drug-row-highlight, .row-selected, .selected-row, .highlighted, .is-selected,
    .bg-white, .bg-light, [style*="background"]
) > :is(td, th) *:not(.badge):not(.badge *) {
    color: #16392e !important;
    border-bottom-color: currentColor !important;
}

html:root body :is(table.table[class], table:not(.table)) > tbody > tr.table-warning > :is(td, th) {
    --bs-table-bg: #fff3cd !important;
    --bs-table-bg-type: #fff3cd !important;
    --bs-table-bg-state: #fff3cd !important;
    background-color: #fff3cd !important;
}

html:root body :is(table.table[class], table:not(.table)) > tbody > tr:is(
    .table-success, .table-warning, .table-info, .table-primary, .table-secondary,
    .table-light, .table-active, .manufacturer-product-selected, .brand-self,
    .drug-row-highlight, .row-selected, .selected-row, .highlighted, .is-selected,
    .bg-white, .bg-light, [style*="background"]
) .badge:is(.bg-light, .bg-white, .bg-warning, .bg-info) {
    color: #16392e !important;
}