.mdc-checkbox__background {
    width: 13px !important;
    height: 13px !important;
    top: 0px !important;
    left: 0px !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: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important
}

mat-checkbox .mdc-form-field>label {
    position: relative !important;
    top: -2px !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;
}

/* 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: 20.6333px !important;
    font-size: 14.44px !important;
    color: #000;
    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 {
    line-height: 20.6333px !important;
    font-size: 14.44px !important;
    color: #000 !important;
}

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

/* Checkbox in errore */

.ng-invalid mat-checkbox label {
    color: #C9291B !important;
    font-weight: bold !important;
    word-wrap: break-word !important;
    font-size: 14.44px !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: inherit !important;
    height: inherit !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;
}