﻿/* CHECKBOX */
input[type="checkbox"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    position: relative;
    border: none;
    margin-bottom: -4px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

    input[type="checkbox"]:checked:before, .checkbox input[type="checkbox"]:checked:before, .checkbox-inline input[type="checkbox"]:checked:before {
        content: "";
        position: absolute;
        top: 0;
        left: 6px;
        display: table;
        width: 6px;
        height: 12px;
        border: 2px solid #fff;
        border-top-width: 0;
        border-left-width: 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

input[type="radio"], input[type="checkbox"] {
    margin: 4px 0 0;
    margin-top: 1px \9;
    line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}

    input[type="checkbox"]:focus, .checkbox input[type="checkbox"]:focus, .checkbox-inline input[type="checkbox"]:focus {
        outline: 1px dotted #009688;
        outline-offset: 4px;
    }

    input[type="checkbox"]:checked:after, .checkbox input[type="checkbox"]:checked:after, .checkbox-inline input[type="checkbox"]:checked:after {
        background-color: #009688;
        border-color: #009688;
    }

    input[type="checkbox"]:after, .checkbox input[type="checkbox"]:after, .checkbox-inline input[type="checkbox"]:after {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        margin-top: -2px;
        margin-right: 2px;
        border: 2px solid #666666;
        -ms-border-radius: 2px;
        border-radius: 2px;
        -webkit-transition: 240ms;
        -o-transition: 240ms;
        -moz-transition: 240ms;
        -ms-transition: 240ms;
        transition: 240ms;
    }

input[type="checkbox"]:disabled:after, 
.checkbox input[type="checkbox"]:disabled:after, 
.checkbox-inline input[type="checkbox"]:disabled:after {
    background-color: #bbbbbb;
    color: #999;
    border-color: transparent;
    cursor: not-allowed;
}

/* RADIO BUTTON */
input[type="radio"], .radio input[type="radio"], .radio-inline input[type="radio"] {
    position: relative;
    margin-top: 6px;
    margin-right: 2px;
    vertical-align: top;
    border: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    vertical-align: middle;
}

    input[type="radio"]:checked:before, .radio input[type="radio"]:checked:before, .radio-inline input[type="radio"]:checked:before {
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        -moz-transform: scale(0.5);
        transform: scale(0.5);
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before {
        position: absolute;
        left: 0;
        top: -3px;
        background-color: #009688;
        -webkit-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        -moz-transform: scale(0);
        transform: scale(0);
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before, input[type="radio"]:after, .radio input[type="radio"]:after, .radio-inline input[type="radio"]:after {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        -ms-border-radius: 50%;
        border-radius: 50%;
        -webkit-transition: 240ms;
        -o-transition: 240ms;
        -moz-transition: 240ms;
        -ms-transition: 240ms;
        transition: 240ms;
    }

    input[type="radio"]:checked:after, .radio input[type="radio"]:checked:after, .radio-inline input[type="radio"]:checked:after {
        border-color: #009688;
    }

    input[type="radio"]:after, .radio input[type="radio"]:after, .radio-inline input[type="radio"]:after {
        position: relative;
        top: -3px;
        border: 2px solid #666666;
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before, input[type="radio"]:after, .radio input[type="radio"]:after, .radio-inline input[type="radio"]:after {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        -ms-border-radius: 50%;
        border-radius: 50%;
        -webkit-transition: 240ms;
        -o-transition: 240ms;
        -moz-transition: 240ms;
        -ms-transition: 240ms;
        transition: 240ms;
    }

    input[type="radio"]:focus {
        outline: 1px dotted #009688;
        outline-offset: 4px;
    }

/**
* VALIDATION CLASSES
*/
.help-block {
    -ms-border-radius: 5px;
    border-radius: 5px;
    margin-top: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    -webkit-transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -ms-transition: opacity .25s ease-in-out;
    -o-transition: opacity .25s ease-in-out;
    transition: opacity .25s ease-in-out;
    -ms-opacity: 1;
    opacity: 1;
    clear: both;
}

    .help-block:empty {
        border: 0;
        padding: 0;
        margin: 0;
        -ms-opacity: 0;
        opacity: 0;
    }

    .help-block.field-validation-error {
        background: #a94442;
        color: white;
    }

        .help-block.field-validation-error .text-danger {
            color: #fff;
        }

        .help-block.field-validation-error:after, .help-block.field-validation-error:before {
            bottom: 100%;
            left: 50%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
        }

        .help-block.field-validation-error:after {
            border-color: transparent;
            border-bottom-color: #a94442;
            border-width: 5px;
            margin-left: -5px;
        }

        .help-block.field-validation-error:before {
            border-color: transparent;
            border-bottom-color: #a94442;
            border-width: 5px;
            margin-left: -5px;
        }

td, th {
    vertical-align: middle !important;
}

    /* Para valdiaciones en tables */
    td .help-block.field-validation-error {
        color: #fff;
        font-size: .9em;
        text-align: center;
        position: absolute;
    }

        td .help-block.field-validation-error span {
            display: inline-block;
            padding: 0 4px;
        }

        td .help-block.field-validation-error:after,
        td .help-block.field-validation-error:before {
            bottom: 100%;
            left: 10px;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
        }

        td .help-block.field-validation-error:after {
            border-color: transparent;
            border-bottom-color: #a94442;
            border-width: 5px;
            margin-left: -5px;
        }

        td .help-block.field-validation-error:before {
            border-color: transparent;
            border-bottom-color: #a94442;
            border-width: 5px;
            margin-left: -5px;
        }

input.width-small {
    width: 80px;
}

.form-loading-overlay {
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    background: rgba(255,255,255,0.5);
    width: 100%;
    height: 100%;
    z-index: 999999;
    text-align: center;
    padding-top: 100px;
}

    .form-loading-overlay .icon {
        display: block;
        top: 50%;
        position: absolute;
        left: 50%;
        color: #0C6565;
    }

/* for manual jquery validate*/
form label.error {
    font-size: 12px;
    color: #a94442;
    margin: 0;
}

.disabled {
    background-color: #eee;
    color: #999
}