
/* all background-color selectors should be duplicated here with .background-inherit */
/* needed for sticky, toolbars, etc. (see .background-inherit comment / usages) */

body .background-inherit {
    background-color: var(--bs-body-bg);
}

.btn .fa-spinner.background-inherit,
.btn:first-child:hover .fa-spinner.background-inherit {
    background-color: transparent; /*to remove the background of the loading spinner animation*/
}

.btn .background-inherit {
    background-color: var(--bs-btn-bg);
}

.btn:first-child:hover .background-inherit {
    background-color: var(--bs-btn-hover-bg);
}

.table > :not(caption) > * > *.background-inherit,
.table > :not(caption) > * > * .background-inherit
{
    background-color: var(--bs-table-bg);

    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

/* we don't need transparent background, otherwise background-inherit won't work */
.table {
    --bs-table-bg: var(--bs-body-bg);
}
