/* Switches (checkboxes) */

/* Switch normal */

.onoffswitch {
    width: 70px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none;
}

    .onoffswitch-checkbox {
        display: none;
    }

    .onoffswitch-label {
        display: block; 
        overflow: hidden; 
        cursor: pointer;
        border: 1px solid #e5e5e5;
        border-radius: 50px;
    }

    .onoffswitch-inner {
        margin-left: -100%;
        width: 200%;
        display: block;
        transition: margin 0.3s ease-in 0s;
    }

    .onoffswitch-inner:before, 
    .onoffswitch-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 25px;
        padding: 0;
        line-height: 25px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .onoffswitch-inner:before {
        content: "SI";
        padding-left: 16px;
        background-color: #fff;
        color: #33A9FF;
    }    

    .onoffswitch-inner:after {
        content: "NO";
        padding-right: 15px;
        background-color: #fff;
        color: #bbb;
        text-align: right;
        position: relative;
        left: 2px;
    }    

    .onoffswitch-switch {
        margin: 0;
        width: 27px;
        display: block;
        background: #DDDDDD;
        position: absolute; 
        top: 0; 
        bottom: 0;
        right: 44px;
        border-radius: 50px;
        transition: all 0.3s ease-in 0s; 
    }

    .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
        margin-left: 0;
    }

    .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
        background-color: #33A9FF;
        right: 0px; 
    }

    .onoffswitch-checkbox:disabled + .onoffswitch-label .onoffswitch-switch {
        opacity: 0.3;
        filter:Alpha(opacity=30);
    }

/* Switch mini */

.onoffswitch-mini {
    width: 32px;
    display: inline-block;
    position: relative;
    top: 2px;
    -webkit-user-select:none; 
    -moz-user-select:none; 
    -ms-user-select: none;
}

    .onoffswitch-mini .onoffswitch-checkbox {
        display: none;
    }

    .onoffswitch-mini .onoffswitch-label {
        height: 15px;
        display: block; 
        overflow: hidden; 
        cursor: pointer;
        border: 1px solid #e5e5e5;
        border-radius: 50px;
    }

    .onoffswitch-mini .onoffswitch-inner {
        margin-left: -100%;
        width: 200%;
        display: block;
        transition: margin 0.3s ease-in 0s;
    }

    .onoffswitch-mini .onoffswitch-inner:before, 
    .onoffswitch-mini .onoffswitch-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 25px;
        padding: 0;
        line-height: 25px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .onoffswitch-mini .onoffswitch-inner:before {
        content: "";
        padding-left: 14px;
        background-color: #fff; 
        color: #666666;
    }

    .onoffswitch-mini .onoffswitch-inner:after {
        content: "";
        padding-right: 14px;
        background-color: #fff; 
        color: #bbb;
        text-align: right;
        position: relative;
        left: 4px;
    }

    .onoffswitch-mini .onoffswitch-switch {
        margin: 0;
        width: 15px;
        display: block;
        background: #DDDDDD;
        position: absolute; 
        top: 0; 
        bottom: 0;
        right: 17px;
        border-radius: 50px;
        transition: all 0.3s ease-in 0s; 
    }

    .onoffswitch-mini .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
        margin-left: 0;
    }

    .onoffswitch-mini .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
        background-color: #33A9FF;
        right: 0px; 
    }