/* Complemento ao Bootstrap: apenas checkbox/radio, sem alterar ícones ou cores de seleção. */
.form-check-input:not(:checked):not([type="checkbox"]:indeterminate) {
    border-color: #6c757d;
}

.form-check-input:not(:disabled) {
    cursor: pointer;
}

.form-check-input:not(:checked):not([type="checkbox"]:indeterminate):not(:disabled):hover {
    border-color: #495057;
}

.form-check-input:checked:not(:disabled):hover,
.form-check-input[type="checkbox"]:indeterminate:not(:disabled):hover {
    box-shadow: 0 0 0 1px #6c757d;
}

.form-check-input:not(:disabled):focus-visible {
    outline: 3px solid var(--cor-principal, #0d6efd);
    outline-offset: 2px;
    box-shadow: none;
}

.form-check-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-check-input:disabled:not(:checked):not([type="checkbox"]:indeterminate) {
    background-color: #e9ecef;
}

/* Mantém cores do sistema e indicação de foco em alto contraste. */
@media (forced-colors: active) {
    .form-check-input:not(:checked):not([type="checkbox"]:indeterminate) {
        border-color: ButtonText;
    }
    .form-check-input:not(:disabled):focus-visible {
        outline-color: Highlight;
    }
    .form-check-input:disabled {
        opacity: 1;
        border-color: GrayText;
    }
}
