/* Form elements */

form { position: relative; }
fieldset {
    border-radius: 5px;
}
legend { padding: 0 10px; }

.button,
button,
label,
input,
select,
textarea {
    position: relative;
    display: inline-block;
    _display: inline;
    *display: inline;
    margin: 2px 0;
    padding: 0 4px;
    height: 2em;
    line-height: 2em;
    font-weight: normal;
    resize: none;
    color: #555555;
    vertical-align: baseline;
    border-radius: 5px;
}
label { padding: 0; border: none; }
select { padding: 4px; }
textarea {
    height: 4em;
    line-height: 1.2em;
    padding: 4px;
}

input,
select,
textarea {
    width: 100px;
    background-color: #FFF;
    border: 1px solid #BFBFBF;
/*    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
*/}
/*.button:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    background-color: #FFD;
    color: #663300;
    border-color: rgba(82, 168, 236, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
    border-color: #d99d00;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(217, 157, 0, 0.6);
    outline: 0 !important;
}
*/
.button,
button,
input[type="submit"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
    width: auto;
    text-align: center;
    vertical-align: middle;
}
input[type="checkbox"] {
    height: auto;
    border-radius: 0;
}
input[type="radio"] {
    height: auto;
    border: 0;
}
/* Объемные кнопки для формы */
.button,
button,
input[type="submit"],
input[type="button"] {
    -display: inline-block;
    padding: 0 15px;
    -height: 34px;
    -line-height: 34px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    text-decoration: none;
    -vertical-align: bottom;

    border: 1px solid #347A00;
    color: #FFFFFF;

    background: #558233;
    background: -moz-linear-gradient(top, #72ab45 0%, #558233 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#72ab45), color-stop(100%,#558233));
    background: -webkit-linear-gradient(top, #72ab45 0%,#558233 100%);
    background: -o-linear-gradient(top, #72ab45 0%,#558233 100%);
    background: -ms-linear-gradient(top, #72ab45 0%,#558233 100%);
    background: linear-gradient(to bottom, #72ab45 0%,#558233 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#72ab45', endColorstr='#558233',GradientType=0 );
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    cursor: pointer;
    background: #558233;
    background: -moz-linear-gradient(top, #558233 0%, #72ab45 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#558233), color-stop(100%,#72ab45));
    background: -webkit-linear-gradient(top, #558233 0%,#72ab45 100%);
    background: -o-linear-gradient(top, #558233 0%,#72ab45 100%);
    background: -ms-linear-gradient(top, #558233 0%,#72ab45 100%);
    background: linear-gradient(to bottom, #558233 0%,#72ab45 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#558233', endColorstr='#72ab45',GradientType=0 );
}

[disabled],
[disabled]:hover,
input[type="submit"][disabled],
input[type="submit"][disabled]:hover,
input[type="button"][disabled],
input[type="button"][disabled]:hover {
    color: #C9C9C9;
    background: #F9F9F9;
    border-color: #C9C9C9;
    border-color: #DDD;
    cursor: default;
}
label.disabled {  color: #C9C9C9; }
.datetimepicker { width: 120px; }
.datepicker { width: 80px; }
.timepicker { width: 45px; }

/* описатели обязательных полей */
.require label:after {
    content: "*";
    color: #F70000;
    font-size: 22px;
    line-height: 0;
    vertical-align: middle;
    padding: 0 0 0 4px;
}

/* form properties */
form section { margin: 10px 0; }
form section.right { margin-left: 104px; }
form section.right label { width: auto; }
form input[type=submit] { width: auto; }


/* Error fields */

.error input,
.error select,
.error textarea {
    color: #b94a48;
    border-color: #b94a48;
}

.error input:focus,
.error select:focus,
.error textarea:focus {
    border-color: #953b39;
    -webkit-box-shadow: 0 0 6px #d59392;
    -moz-box-shadow: 0 0 6px #d59392;
    box-shadow: 0 0 6px #d59392;
}
.error .help { color: #b94a48; }

