/* Match the Bootstrap custom-checkbox appearance wherever a plain input is used. */
input[type="checkbox"]:not(.custom-control-input) {
    appearance: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    vertical-align: middle;
    border: 1px solid #b7b9cc;
    border-radius: 0.25rem;
    background: #fff center / 50% 50% no-repeat;
}
input[type="checkbox"]:not(.custom-control-input):is(:checked, :indeterminate) {
    border-color: var(--primary, #4e73df);
    background-color: var(--primary, #4e73df);
}
input[type="checkbox"]:not(.custom-control-input):checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E");
}
input[type="checkbox"]:not(.custom-control-input):indeterminate {
    background-image: linear-gradient(#fff, #fff);
    background-size: 50% 2px;
}
input[type="checkbox"]:not(.custom-control-input):focus-visible {
    outline: 2px solid var(--primary, #4e73df);
    outline-offset: 2px;
}
input[type="checkbox"]:not(.custom-control-input):disabled { opacity: 0.55; }
@media (forced-colors: active) {
    input[type="checkbox"]:not(.custom-control-input) { appearance: auto; }
}
