/* theming everything that bootstrap doesn't theme in the current version somewhy */

[data-bs-theme=dark] .table-active {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .table-select {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.0625);
}

[data-bs-theme=dark] .column-select {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.2);
}

/*focused cell, same as table-active (which is used for the table-active), but opacity 0.3 instead of 0.1*/
[data-bs-theme=dark] .focused-cell,
[data-bs-theme=dark] .focused-cell.column-select {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.3);
}

[data-bs-theme=dark] :not(.first-visible-row):not(.table-active) > .duplicate-cell {
    --bs-table-color-state: rgba(255, 255, 255, 0.3);
}

/* it's a copy of btn-dark - inverting btn-light, somewhy btns are not themed in the current version of bootstrap  */
[data-bs-theme=dark] .btn-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: #212529;
    --bs-btn-border-color: #212529;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #424649;
    --bs-btn-hover-border-color: #373b3e;
    --bs-btn-focus-shadow-rgb: 66, 70, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4d5154;
    --bs-btn-active-border-color: #373b3e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #212529;
    --bs-btn-disabled-border-color: #212529;
}
