:root {
    --bt-table-head-bg: #3d5165;
    --bt-table-head-color: #fff;
    --bt-table-head-accent: #f4811f;
}

:is(
    table.table:not(.table-invoice):not(.tableCotizar),
    table.marketing-table,
    table.feedback-table,
    .mfa__table > table,
    .sca__table > table,
    .link-summary table,
    .mei table
) > thead > tr > th {
    background-color: var(--bt-table-head-bg) !important;
    color: var(--bt-table-head-color) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    font-weight: 700;
}

:is(
    table.table:not(.table-invoice):not(.tableCotizar),
    table.marketing-table,
    table.feedback-table,
    .mfa__table > table,
    .sca__table > table,
    .link-summary table,
    .mei table
) > thead > tr > th :is(a, span, i, svg) {
    color: inherit !important;
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column {
    position: relative;
    padding-right: 32px !important;
    cursor: pointer;
    user-select: none;
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column::after {
    position: absolute;
    top: 50%;
    right: 12px;
    color: rgba(255, 255, 255, .62);
    content: "\2195";
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column:hover,
table.bt-sortable-table > thead > tr > th.bt-sortable-column:focus-visible {
    background-color: #314356 !important;
    outline: none;
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column:focus-visible {
    box-shadow: inset 0 0 0 2px var(--bt-table-head-accent);
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column[aria-sort="ascending"]::after {
    color: var(--bt-table-head-accent);
    content: "\2191";
}

table.bt-sortable-table > thead > tr > th.bt-sortable-column[aria-sort="descending"]::after {
    color: var(--bt-table-head-accent);
    content: "\2193";
}

table.dataTable > thead .sorting,
table.dataTable > thead .sorting_asc,
table.dataTable > thead .sorting_desc {
    color: var(--bt-table-head-color) !important;
}

