/*
Input Machinator
jQuery plugin that will make your non-styleable inputs (checkboxes, radio buttons, selects) pretty.
It works by hiding the original inputs and adding certain span elements that will appear to the user,
while still allowing you to interact with the inputs from javascript as if this plugin didn't exist.

----------

Copyright (c) 2013, Sense/Net Inc. http://www.sensenet.com/
Created by Timur Krist�f, Panna Zs�mba, and Anik� Litv�nyi
Licensed to you under the terms of the MIT License

----------

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

label {
    display: inline-block;
    vertical-align: top;
}

/* #region checkbox */

.machinator-checkbox {
    background: transparent url("") top left no-repeat;
    display: inline-block;
    width: 21px;
    height: 21px;
    cursor: pointer;
}
.machinator-checkbox.checked {
        background: transparent url("") bottom left no-repeat;
}
.machinator-checkbox.Disabled {
    cursor: default;
}
.machinator-checkbox.Disabled,
.machinator-checkbox.unchecked.Disabled {
    background: transparent url("") top right no-repeat;
}
.machinator-checkbox.checked.Disabled {
    background: transparent url("") bottom right no-repeat;
}
.machinator-checkbox-label {
    cursor: pointer;
}
.machinator-checkbox-label.Disabled {
    cursor: default;
}

/* #endregion checkbox */

/* #region radio */

.machinator-radio {
    vertical-align: text-top;
    margin: 1px 5px 0 0;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("") top left no-repeat;
    cursor: pointer;
}
.machinator-radio.checked {
    background: url("") bottom left no-repeat;
}
.machinator-radio.Disabled {
    cursor: default;
}
.machinator-radio.Disabled,
.machinator-radio.unchecked.Disabled {
    background: transparent url("") top right no-repeat;
}
.machinator-radio.checked.Disabled {
    background: transparent url("") bottom right no-repeat;
}
.machinator-radio-label {
    cursor: pointer;
}
.machinator-radio-label.Disabled {
    cursor: default;
}

/* #endregion radio */

/* #region select */

.machinator-select {
    width: 100%;
    display: inline-block;
    margin-bottom: 5px;
    padding: 7px 20px 6px 10px;
    background: #fff url("") no-repeat right -108px;
    color: #555;
    border: 1px solid #bad6e9;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-align: left;
    text-decoration: none !important;
}
.machinator-select:hover {
    text-decoration: none;
}
.machinator-select.Disabled {
    background: #dedede url("") no-repeat right -108px;
    border: 1px solid #c0c0c0;
    color: #7c7c7c;
    cursor: default;
}
.machinator-select-dropdown {
    background: #fff;
    border: 1px solid #bad6e9;
    list-style: none;
    width: 300px;
    margin: 0;
    padding: 0;
    z-index: 300;
    max-height: 250px !important;
    overflow-y: auto;
    text-decoration: none;
    -webkit-user-select: all !important;
}
.machinator-select-dropdown li {
    padding: 7px 5px;
    color: #555;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}
.machinator-select-dropdown li.selected {
    background-color: #f6fbfd;
}
.machinator-select-dropdown li:hover {
    background-color: #f6fbfd;
    color: #005fac;
}
.machinator-select-dropdown li.Disabled {
    cursor: default;
    background: transparent;
    color: #000;
}

.machinator-select-dropdown li img, .machinator-select img {
    margin-right: 10px;
    vertical-align: middle;
    height: 30px;
}
.machinator-select-dropdown .machinator-optgroup {
        cursor: default;
}
.machinator-select-dropdown  .machinator-optgroup-options {
        list-style: none;
        margin: 0;
        padding: 5px 0 5px 10px;
}
.machinator-select-dropdown  .machinator-optgroup:hover {
        background-color: #65a7d2;
        color: #000;
}
.machinator-select-dropdown  .machinator-optgroup.Disabled {
        background-color: #ddd;
}
.machinator-select.customhtml-example {
    background: #fff url("") no-repeat right -103px;
}