/* ==|== forms ========== */
form {
    margin-bottom: 1em;
    zoom: 1; }

form:before, form:after {
    display: table;
    content: "";
    zoom: 1; }

form:after {
    clear: both;
}

fieldset {
    margin-bottom: 1em;
    padding-top: 10px;
}

fieldset legend, fieldset .legend {
    display: block;
    padding-left: 150px;
    font-size: 18px;
    line-height: 1;
    color: #074389;
}

.lt-ie8 fieldset legend, .lt-ie8 fieldset .legend {
    padding: 0 0 5px 145px;
    line-height: 1.5;
}

fieldset legend.secondary, fieldset .legend.secondary {
    padding-left: 0;
    font-size: 12px;
    font-weight: bold;
    color: #444;
}

.lt-ie8 fieldset legend.secondary, .lt-ie8 fieldset .legend.secondary {
    padding: 0 0 5px 0;
}

label, .formLabel, input, select, textarea {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: normal;
}

.formRow {
    margin-bottom: 1px;
    padding: 8px 0;
    display: block;
    clear: both;
}

.formRow:before, .formRow:after {
    display: table;
    content: "";
    zoom: 1; }

.formRow:after {
    clear: both;
}

.formRow.condensed, .condensed .formRow {
    padding: 4px 0;
}

label, .formLabel {
    padding-top: 4px;
    font-size: 12px;
    line-height: 18px;
    float: left;
    text-align: right;
    color: #404040;
    width: 130px;
}

.formRow span.errorMsg {
    float: none;
    display: inline-block;
    padding-top: 0;
    line-height: auto;
}

.formRow span.error {
    float: none;
    text-align: left;
    color: #b94a48;
    padding-left: 5px;
    display: inline-block;
    clear: both;
    font-weight: normal;
}

.radCheck {
    padding-top: 4px;
    vertical-align: middle;
}

.radCheck label {
    float: none;
    padding: 0 0 5px 0;
    display: block;
    width: auto;
    text-align: left;
}

.radCheck input[type=checkbox], .radCheck input[type=radio] {
    float: left;
}

.inputError label, .inputError .formLabel {
    color: #b94a48;
}

.inputError input, .inputError textarea, .inputError select, .inputError [disabled], .inputError [readonly] {
    border: 1px solid #b94a48;
}

.formRow textarea+span.errorMsg {
    margin-top: 6px;
}

.input {
    margin-left: 150px;
}

td .input {
    margin: 0;
    display: inline;
}

.input img {
    margin-bottom: 9px;
}

.formRow em {
    color: #999;
    position: relative;
}

/*
.formRow em:hover:after { background: #333; border-radius: 5px; bottom: 26px; color: #fff; content: attr(title); left: 20%; padding: 5px; position: absolute; z-index: 98; width: 220px; }
.formRow em:hover:before { border: solid; border-color: #333 transparent; border-width: 6px 6px 0 6px; bottom: 20px; content: ""; left: 50%; position: absolute; z-index: 99; }
*/
input[type=checkbox], input[type=radio] {
    cursor: pointer;
}

input, textarea, select, .uneditable-input, .input strong, .readonly {
    display: inline-block;
    width: 210px;
    height: 26px;
    padding: 3px;
    font-size: 12px;
    line-height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.input strong {
    border-color: #eee;
    box-shadow: 0 1px 2px rgba(0,0,0,0.024) inset;
    width: auto;
    width: 210px;
    height: auto;
    min-height: 26px;
    word-wrap: break-word;
}

.readonly {
    border-color: transparent;
}

span.readonly {
    display: inline;
}

select {
    width: 210px;
}

#sidebar input, #sidebar textarea, #sidebar label, #sidebar .formLabel {
    width: 132px;
}

#sidebar select {
    width: 140px;
}

input[type=checkbox], input[type=radio] {
    width: auto;
    height: auto;
    min-height: 18px;
    padding: 0;
    margin: 0 5px 0 0;
    line-height: normal;
    border: none;
}

input[type=file], input[type=image] {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

input[type=button], input[type=reset], input[type=submit] {
    width: auto;
    height: auto;
}

input[type=file] {
    background-color: #ffffff;
}

select, input[type=file] {
    height: 27px;
    line-height: 27px;
}

.lt-ie8 select, input[type=file] {
    height: auto;
    margin-top: 4px;
}

select[multiple] {
    height: inherit;
    background-color: #ffffff;
}

textarea {
    height: auto;
}

.uneditable-input {
    background-color: #fff;
    display: block;
    border-color: #eee;
    -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.025);
    -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.025);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.025);
    cursor: not-allowed;
}

:-moz-placeholder {
    color: #bfbfbf;
}

::-webkit-input-placeholder {
    color: #bfbfbf;
}

input, textarea {
    -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
    -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
    -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
    -o-transition: border linear 0.2s, box-shadow linear 0.2s;
    transition: border linear 0.2s, box-shadow linear 0.2s;
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

input:focus, textarea:focus, input[type=file]:focus, input[type=checkbox]:focus, select:focus, .focused {
    outline: 0;
    border-color: rgba(82,168,236,0.8);
    border-color: rgb(82,168,236);
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(82,168,236,0.6);
    -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(82,168,236,0.6);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(82,168,236,0.6);
}

/*input[type=file]:focus, input[type=checkbox]:focus, select:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; outline: 1px dotted #666; }*/
input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] {
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
}

input.tiny, .pagination input.tiny {
    width: 50px!important;
}

input.bare, input.bare[disabled], input[disabled].bare {
    border: none!important;
    padding: 0!important;
    background: transparent!important;
    box-shadow: none!important;
    width: auto!important;
    cursor: inherit!important;
}

.actions {
    padding: 0 20px 0 150px;
    border-radius: 0 0 3px 3px;
    clear: both;
}

td .actions {
    padding: 0 20px 0 0;
}

.actions input {
    margin-left: 0;
}

/* --|-- stacked forms ---------- */
.stacked, #sidebar form, #contentSub form {
    padding-left: 0;
}

.stacked fieldset, #sidebar form fieldset, #contentSub form fieldset {
    padding-top: 9px;
}

.stacked legend, #sidebar form legend, #contentSub form legend {
    padding-left: 0;
}

.stacked label, .stacked .formLabel, .stacked .formRow .errorMsg, #sidebar label, #sidebar .formLabel, #contentSub label, #contentSub .formLabel {
    display: block;
    float: none;
    width: auto;
    text-align: left;
    line-height: 20px;
    padding-top: 0;
}

.stacked .error, .stacked span.error {
    padding-left: 0;
}

form.stacked .actions, #sidebar form .actions, #contentSub form .actions, form.stacked .input, #sidebar form .input, #contentSub form .input {
    margin-left: 0;
    padding-left: 0;
}

/* --|-- inline forms ---------- */
.formInline fieldset legend, .formInline fieldset .legend {
    display: inline-block;
    padding-left: 0;
}

.lt-ie8 .formInline fieldset legend, .lt-ie8 .formInline fieldset .legend {
    display: inline;
}

.formInline .formRow {
    display: inline-block;
    clear: none;
    margin-right: 10px;
}

.lt-ie8 .formInline .formRow {
    display: inline;
}

.formInline .formRow:before, .formInline .formRow:after {
    display: inherit;
    content: "";
    zoom: 1; }

.formInline .formRow:after {
    clear: none;
}

.formInline label, .formInline .formLabel {
    float: none;
    display: inline-block;
    text-align: left;
    width: auto;
}

.lt-ie8 .formInline label, .lt-ie8 .formInline .formLabel {
    display: inline;
}

.formInline input {
    width: auto!important;
}

.formInline input[type=text], .formInline textarea, .formInline select, .formInline .uneditable-input, .formInline .input strong, .formInline .readonly {
    display: inline-block;
    width: auto!important;
    min-width: 100px;
}

.lt-ie8 .formInline input[type=text], .lt-ie8 .formInline textarea, .lt-ie8 .formInline select, .lt-ie8 .formInline .uneditable-input, .lt-ie8 .formInline .input strong, .lt-ie8 .formInline .readonly {
    display: inline;
}

.formInline .input, .formInline .actions {
    display: inline-block;
    margin-left: 5px;
}

.lt-ie8 .formInline .input, .formInline .actions {
    display: inline;
}

.formInline .actions {
    padding: 0;
    clear: none;
}

.formInline .radCheck input[type=checkbox], .formInline .radCheck input[type=radio] {
    float: none;
    display: inline-block;
}

.lt-ie8 .formInline .radCheck input[type=checkbox], .lt-ie8 .formInline .radCheck input[type=radio] {
    display: inline;
}

/* --|-- inline rows only ---------- */
.formRow.rowInline {
    display: inline-block;
    clear: none;
    margin-right: 10px;
}

.lt-ie8 .formRow.rowInline {
    display: inline;
}

.rowInline label, .rowInline .formLabel {
    float: none;
    display: inline-block;
    text-align: left;
    width: auto;
}

.lt-ie8 .rowInline label, .lt-ie8 .rowInline .formLabel {
    display: inline;
}

.rowInline input {
    width: auto!important;
}

.rowInline input[type=text], .rowInline textarea, .rowInline select, .rowInline .uneditable-input, .rowInline .input strong, .rowInline .readonly {
    display: inline-block;
    width: auto!important;
    min-width: 100px;
}

.lt-ie8 .rowInline input[type=text], .lt-ie8 .rowInline textarea, .lt-ie8 .rowInline select, .lt-ie8 .rowInline .uneditable-input, .lt-ie8 .rowInline .input strong, .lt-ie8 .rowInline .readonly {
    display: inline;
}

.rowInline .input, .rowInline .actions {
    display: inline-block;
    margin-left: 5px;
}

.lt-ie8 .rowInline .input, .rowInline .actions {
    display: inline;
}

.rowInline .actions {
    padding: 0;
    clear: none;
}

.rowInline .radCheck input[type=checkbox], .rowInline .radCheck input[type=radio] {
    float: none;
    display: inline-block;
}

.lt-ie8 .rowInline .radCheck input[type=checkbox], .lt-ie8 .rowInline .radCheck input[type=radio] {
    display: inline;
}

/* --|-- required ---------- */
.req {
    background-color: #f0f5fd;
    border-color: #b1caf1;
}

/* --|-- buttons ---------- */
.button.primary, .button.primary:hover, .button.positive, .button.positive:hover, .button.negative, .button.negative:hover {
    color: #fff;
}

.button {
    cursor: pointer;
    display: inline-block;
    background-color: #e6e6e6;
    background-repeat: no-repeat;
    padding: 3px 5px 4px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.75);
    color: #333;
    font-size: 12px;
    line-height: normal;
    border: 1px solid #ccc;
    border-bottom-color: #bbb;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
    background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
    background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
    background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
    background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -webkit-transition: 0.1s linear all;
    -moz-transition: 0.1s linear all;
    -ms-transition: 0.1s linear all;
    -o-transition: 0.1s linear all;
    transition: 0.1s linear all;
}

.button:hover {
    background-position: 0 -15px;
    color: #333;
    text-decoration: none;
}

.button:focus {
    outline: 1px dotted #666;
}

.button.primary {
    color: #ffffff;
    background-color: #004785;
    background-repeat: repeat-x;
    background-image: -khtml-gradient(linear, left top, left bottom, from(#476ba1), to(#004785));
    background-image: -moz-linear-gradient(top, #476ba1, #004785);
    background-image: -ms-linear-gradient(top, #476ba1, #004785);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #476ba1), color-stop(100%, #004785));
    background-image: -webkit-linear-gradient(top, #476ba1, #004785);
    background-image: -o-linear-gradient(top, #476ba1, #004785);
    background-image: linear-gradient(top, #476ba1, #004785);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#476ba1', endColorstr='#004785', GradientType=0);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    border-color: #004785 #004785 #003f81;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
}

.button.negative {
    background-color: #c43c35;
    background-repeat: repeat-x;
    background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
    background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35));
    background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: linear-gradient(top, #ee5f5b, #c43c35);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    border-color: #c43c35 #c43c35 #882a25;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
}

.button.positive {
    background-color: #67813b;
    background-repeat: repeat-x;
    background-image: -khtml-gradient(linear, left top, left bottom, from(#839959), to(#67813b));
    background-image: -moz-linear-gradient(top, #839959, #67813b);
    background-image: -ms-linear-gradient(top, #839959, #67813b);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #839959), color-stop(100%, #67813b));
    background-image: -webkit-linear-gradient(top, #839959, #67813b);
    background-image: -o-linear-gradient(top, #839959, #67813b);
    background-image: linear-gradient(top, #839959, #67813b);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#839959', endColorstr='#67813b', GradientType=0);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    border-color: #67813b #67813b #3d773d;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
}

.button.active, .button:active {
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.05);
    -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.05);
}

.button.disabled, .button[disabled] {
    cursor: default;
    background-image: none;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    filter: alpha(opacity=65);
    -khtml-opacity: 0.65;
    -moz-opacity: 0.65;
    opacity: 0.65;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.button.disabled:hover, .button[disabled]:hover {
    background-image: none;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    filter: alpha(opacity=75);
    -khtml-opacity: 0.75;
    -moz-opacity: 0.75;
    opacity: 0.75;
}

button.button::-moz-focus-inner, input[type=submit].button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.lt-ie8 .button:hover, .lt-ie9 .button:hover {
    background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #ffffff);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0);
}

.lt-ie8 .button.primary:hover, .lt-ie9 .button.primary:hover {
    background-image: -ms-linear-gradient(top, #476ba1, #476ba1);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#476ba1', endColorstr='#476ba1', GradientType=0);
}

.lt-ie8 .button.positive:hover, .lt-ie9 .button.positive:hover {
    background-image: -ms-linear-gradient(top, #829858, #829858);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#829858', endColorstr='#829858', GradientType=0);
}

.lt-ie8 .button.negative:hover, .lt-ie9 .button.negative:hover {
    background-image: -ms-linear-gradient(top, #ed5d59, #ed5d59);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed5d59', endColorstr='#ed5d59', GradientType=0);
}

.ie9 .button, .ie9 .button:hover {
    filter: none;
}

.ie9 .button {
    background: #e8e8e8;
}

.ie9 .button:hover {
    background: #fff;
}

.ie9 .button.primary {
    background: #064a88;
}

.ie9 .button.primary:hover {
    background: #476ba1;
}

.ie9 .button.positive {
    background: #69833e;
}

.ie9 .button.positive:hover {
    background: #829858;
}

.ie9 .button.negative {
    background: #c83f38;
}

.ie9 .button.negative:hover {
    background: #ed5d59;
}

/* --|-- buttons with dropdowns ---------- */
.buttonGroup {
    display: inline-block;
    position: relative;
}

.lt-ie8 .buttonGroup {
    display: inline;
    zoom: 1; float: left;
}

.buttonGroup:after {
    clear: both;
}

.buttonGroup .button {
    border-radius: 0 0 0 0;
    float: left;
    margin-left: -1px;
    position: relative;
}

.buttonGroup .button:first-child {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    margin-left: 0;
}

.buttonGroup .button:last-child, .buttonGroup .dropdownToggle {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.buttonGroup .dropdownToggle {
    box-shadow: 1px 0 0 rgba(255,255,255,0.125) inset, 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
    padding-left: 5px;
    padding-right: 5px;
}

.dropdownMenu {
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    display: none;
    float: left;
    position: absolute;
    left: 0;
    top: 100%;
    list-style: none;
    margin: 0;
    max-width: 220px;
    min-width: 160px;
    padding: 4px 0;
    z-index: 1000;
}

.dropdownMenu a {
    clear: both;
    color: #555;
    display: block;
    font-weight: normal;
    line-height: 26px;
    padding: 3px 15px;
    white-space: nowrap;
}

.dropdownMenu .divider {
    background-color: #E5E5E5;
    border-bottom: 1px solid #fff;
    height: 1px;
    margin: 5px 1px;
    overflow: hidden;
}

.button .arrow {
    margin-left: 0;
    margin-top: 7px;
}

.button.primary .arrow, .button.positive .arrow, .button.negative .arrow {
    border-top-color: #fff;
    opacity: 0.75;
}

.arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #000;
    content: "▾";
    display: inline-block;
    height: 0;
    opacity: 0.3;
    text-indent: -999em;
    vertical-align: top;
    width: 0;
    font-family: "Arial Unicode MS";
}
