mat-checkbox {
    --mdc-checkbox-disabled-selected-checkmark-color: #7E858B !important;
}

.mdc-checkbox__background {
    width: 24px !important;
    height: 24px !important;
    top: 0px !important;
    left: 0px !important;
    border-color: #7E858B !important;
    border-radius: 4px !important;
}

mat-checkbox:not(.mat-mdc-checkbox-disabled):hover span {
    color: #00458F !important;
}

.mat-mdc-checkbox>.mdc-form-field {
    display: inline-flex !important;
    justify-content: baseline !important;
    align-items: baseline !important;
}

.mdc-checkbox {
    padding: 0 !important;
    margin: 0px !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
}

mat-checkbox .mdc-form-field>label {
    position: relative !important;
    top: -2px !important;
    padding-left: 12px !important;
}

/* Colore checbox */
.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,
.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate="true"]:enabled~.mdc-checkbox__background {
    border-color: #002E5F !important;
    background-color: #002E5F !important;
}

.mdc-checkbox .mdc-checkbox__native-control:hover~.mdc-checkbox__background {
    border-color: #00458F !important;
}

.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #19191A;
}

/* Effetto al click sulla checkbox */
.mdc-checkbox__ripple {
    display: none !important;
}

.mat-mdc-checkbox-ripple {
    display: none !important;
}

/* Label generale e checkbox */
.mdc-label {
    line-height: 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #19191A !important;
    display: inline-flex !important;
    align-items: baseline !important;
    margin: 0 !important;
}

/* Checkbox disabilitata */
mat-checkbox input[disabled] {
    opacity: 0 !important;
}

.inail-mat-input-checkbox-disabled {
    cursor: not-allowed !important;
}

.mdc-checkbox--disabled label {
    color: #54595D !important;
}

.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background {
    background-color: #E4E5E9 !important;
    border-color: #E4E5E9 !important;
}

/* Checkbox in errore */
// .ng-invalid mat-checkbox .mdc-checkbox__background {
//     border-color: #C9291B !important;
// }

mat-checkbox.ng-invalid.ng-touched .mdc-checkbox__background,
.inail-mat-checkbox-group.ng-invalid.ng-touched .mdc-checkbox__background {
    border-color: #C9291B !important;
}
.mat-mdc-checkbox-touch-target {
    width: inherit !important;
    height: inherit !important;
    top: 0px !important;
    left: 0px !important;
    transform: none !important;
    //right: 0px !important;
}

.mdc-checkbox__native-control {
    width: 24px !important;
    height: 24px !important;
    top: 0px !important;
    left: 0px !important;
    margin: 0px !important;
    //right: 0px !important;
}

//Classe per checkbox horizontale 
.inail-mat-inline-checkbox {
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
}

.inail-mat-checkbox-legend {
    font-size: 14px !important;
    color: #19191A !important;
    line-height: 24px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}