﻿/*
    Nombre : mfx-options-controls.css
    Resumen: Conjunto de estilos aplicados a botones de opciones, botones circulares o casillas, de la aplicación
    Fecha  : Año 2019
    Autor  : Jorge I. Ruiz
    Edita  : 22/01/23           MIFIndex global

*/

/*---------------------------------------------------------------------------------------------------------------
    Casillas - material style
---------------------------------------------------------------------------------------------------------------*/
.md-check {
    height: 20px;
    margin-bottom:8px;
}

    .md-check input[type="checkbox"] {
        display: none
    }

        .md-check input[type="checkbox"] + label {
            display: inline-block;
            margin-left: 0.5em;
        }

            .md-check input[type="checkbox"] + span:before,
            .md-check input[type="checkbox"] + label + span:before {
                border: 2px solid #1961ac;
                border-radius: 3px;
                color: transparent;
                content: "✓";
                cursor: pointer;
                display: inline-block;
                float: left;
                font-size: 1em;
                line-height: 1.1em;
                text-align: center;
                -webkit-transition: all .3s ease-in-out;
                -o-transition: all .3s ease-in-out;
                transition: all .3s ease-in-out;
                width: 20px;
            }

        .md-check input[type="checkbox"]:checked + span:before,
        .md-check input[type="checkbox"]:checked + label + span:before {
            background-color: #1961ac;
            color: #fff
        }

/*------------------------------------------------------------
    checklist control: casillas
------------------------------------------------------------*/
.md-check-list input[type="checkbox"] {
    display: none
}

    .md-check-list input[type="checkbox"] + label:before {
        border: 2px solid #1961ac;
        border-radius: 3px;
        color: transparent;
        content: "✓";
        cursor: pointer;
        display: inline-block;
        float: left;
        font-size: 1em;
        line-height: 1.1em;
        margin-left: 0.5em;
        margin-right: 0.5em;
        margin-bottom: 8px; /*MIFIndex Global*/
        text-align: center;
        -webkit-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
        width: 20px;
    }

    .md-check-list input[type="checkbox"]:checked + label:before {
        background-color: #1961ac;
        color: #fff
    }

/*---------------------------------------------------------------------------------------------------------------
    Radio - material style
---------------------------------------------------------------------------------------------------------------*/
.md-radio {
    margin: 0.5rem 0;
}

    .md-radio.md-radio-inline {
        display: inline-block;
    }

    .md-radio input[type="radio"] {
        display: none;
    }

        .md-radio input[type="radio"]:checked + label:before {
            border-color: #1961ac;
        }

        .md-radio input[type="radio"]:checked + label:after {
            transform: scale(1);
        }

    .md-radio label {
        display: inline-block;
        /*height: 20px;*/
        position: relative;
        padding: 0 30px;
        margin-bottom:8px;
        cursor: pointer;
        vertical-align: bottom;
    }

        .md-radio label:before, .md-radio label:after {
            position: absolute;
            content: '';
            border-radius: 50%;
            transition: all .3s ease;
            transition-property: transform, border-color;
        }

        .md-radio label:before {
            left: 0;
            top: 0.1rem;
            width: 1.2em;
            height: 1.2em;
            border: 2px solid rgba(0, 0, 0, 0.54);
        }

        .md-radio label:after {
            top: 0.35rem;
            left: 0.25rem;
            width: 0.6em;
            height: 0.6em;
            transform: scale(0);
            background: #1961ac;
        }
