
:root
{
        --checkbox-width: 18px;
        --checkbox-width-sm: 12px;
}
/* GESTIONE CHECKBOX TABELLE (più piccole) - START */
.tc_checkbox
{
        position: relative;
        min-width: 25px;
}
/* checkbox container usato nelle tabelle */
.tc_checkbox .checkbox-container.checkbox-container_absolute
{
        position: absolute;
        height: var(--checkbox-width-sm);
        width: var(--checkbox-width-sm);
        top: 50%;
        transform: translateY(-50%);
        padding-left: 0;
}
.tc_checkbox .checkbox-container.checkbox-container_absolute.checkbox-centered
{
        /*width: var(--checkbox-width-sm);*/
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
}
.tc_checkbox .checkbox-container input
{
        height: var(--checkbox-width-sm);
        width: var(--checkbox-width-sm);
}
.tc_checkbox .checkbox-container .checkmark
{
        height: var(--checkbox-width-sm);
        width: var(--checkbox-width-sm);
}
.tc_checkbox .checkbox-container .checkmark:after
{
        left: 3px;
        top: 1px;
        width: 4px;
        height: 7px;
}
/* GESTIONE CHECKBOX TABELLE (più piccole) - END */
/* The checkbox-container */
.checkbox-container
{
        display: block;
        position: relative;
        /*padding-left: 35px;*/
        padding-left: var(--checkbox-width);
        cursor: pointer;
        /*font-size: 22px;*/
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}
.form-input-row .checkbox-container
{
        margin-right: 0.35rem;
}
/* Hide the browser's default checkbox */
.checkbox-container input
{
        position: absolute;
        opacity: 0;
        cursor: pointer;
/*        height: 0;
        width: 0;*/
        left: 0;
        height: var(--checkbox-width);
        width: var(--checkbox-width);
        z-index: 1;
}

/* Create a custom checkbox */
.checkbox-container .checkmark
{
        position: absolute;
        top: 0;
        left: 0;
        height: var(--checkbox-width);
        width: var(--checkbox-width);
        background-color: white;
        border-radius: 2px;
        border: solid 1px var(--color-gray);
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark
{
        background-color: var(--color-gray-clear);
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark
{
        background-color: var(--color-blue-electric);
        border-color: var(--color-blue-electric);
}
.checkbox-container:hover input:checked ~ .checkmark
{
        filter: brightness(1.05);
}
.checkbox-container input:focus  ~ .checkmark
{
        box-shadow: var(--focus-box-shadow);
}
/* Create the checkmark/indicator (hidden when not checked) */
.checkbox-container .checkmark:after
{
        content: "";
        position: absolute;
        display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after
{
        display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after
{
        left: 5px;
        top: 2px;
        width: 6px;
        height: 10px;
        border: solid var(--color-gray-dark);
        border-width: 0 2px 2px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
}
