@import url("/site/css/jquery-alerts/jquery.alerts.css");

form {
    display: inline;
    line-height: normal;
}

fieldset {
    max-width: 800px;
    border: 0;
    padding: 0;
    margin: 1em 0;
    padding-top:.75em;
    position: relative;
}

form > fieldset {
    margin-left: -12px;
}

.jqmWindow form > fieldset {
    margin-left: 0;
}

form h2 {
    clear: left;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #eee; 
    border-top: 1px solid #999; 
    border-bottom: 1px solid #999; 
    padding: 2px;
    margin: 5px 0px
}

form h3 {
    padding: 2px 10px; 
    margin: 5px 0;
    font-size: 1.1em;
    clear: both;
}

legend {
    padding: 4px 12px 0;
    margin: 0;
    width: auto;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    color: white;
    background-color: #af292f;
    display: block;
    border-bottom: 0;    
}

fieldset fieldset legend {
    color: #af292f;
    background-color: #ffffff;
    padding: 1em 0 0 0;
}

legend + * {
    border-top: 6px solid #af292f;
    padding-top: 20px !important;
    margin-top: -12px !important;
    -webkit-margin-collapse: separate;
}

fieldset fieldset {
    margin: 0;
    padding-left: 2em;
    clear: left;
}

fieldset fieldset legend + * {
    border-width: 2px;
    margin-top: -10px !important;
}

form .instructions {
    clear: both;
    background-color: #ededed;
    padding: 12px;
    line-height: 18px;
    display: block
}

form .hint {
    margin: 0;
    padding: 0 12px;
    float: right;
    width: 28%;
    background-color: transparent;
    color: black;
    display: none;
    position: absolute;
    left: 69%;
    z-index: 10;
}

form .stickyhint {
    margin: 0;
    padding: 0 12px;
    float: right;
    width: 28%;
    background-color: transparent;
    color: black;
    position: absolute;
    left: 69%;
    z-index: 10;
}

.field.highlight .hint, .field:hover .hint {
    display: block;
}

form .hint p {
    padding: 0px 5px 5px 32px;
    background-color: white;
    background-image: url(/site/images/icons/finger_left.png);
    background-repeat: no-repeat;
    background-position: 3px 3px;
    line-height: 16px;
}

form .field, form dl.static {
    clear: both;
    padding: 18px 0;
    margin: 0;
    font-size: 12px;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Used for float clearing */
    line-height: 20px;
}

.field.highlight label {
    font-weight: bold
}

form .field label, form .field div.compoundLabel, form .static dt {
    clear: left;
    float: left;
    width: 29%;
    margin: 0 5px;
    text-align: right;
    line-height: 20px;
}

form .field label.long {
    text-align: left;
    float: none;
    display: block;
    width: 55%;
    margin-left: 10%;
}

form .field label.long + input, 
form .field label.long + select,
form .field label.long + textarea {
    width: 55%;
    margin-left: 10%;
}

form .static dt {
    padding: 2px;
}

form .static dd {
    float: left;
    margin: 0 5px;
    font-weight: bold;
    padding: 2px;
    width: 35%
}

form .static dd + dd {
    clear: left;
    margin-left: 29%;
    padding-left: 21px; /* Accommodate for spacing of missing dt element */
}

form .static dd a.delete {
    float: right;
}

form .static dd input[type='text'] {
    margin-left: -5px; /* Adjust to align with field inputs */
}

form .static dd.money {
    width: 120px;
    text-align: right;
}

form .static dd ul, form .static dd ol {
    margin-top: 0;
    padding-top: 0;
    padding-left: 1em;
}

form .static dd ul {
    list-style: square;
}

form .static .subtle {
    font-weight: normal;
}

.recaptcha label {
    float: none !important;
}

fieldset fieldset .field label, fieldset fieldset .static dt {
    width: 26%
}

fieldset fieldset fieldset .field label, fieldset fieldset fieldset .static dt {
    width: 23%
}

form .field label.error, form .field div.compoundLabel.error {
	color: red;
    border: 0;
}

form .field label span.description, form dl.static dt span.description {
    display: block;
    font-size: 11px;
    line-height: 12px;
    font-style: italic;
    font-weight: normal;
}

input[type="text"], 
input[type="password"],
input[type="email"], 
input[type="url"], 
input[type="submit"],
input[type="button"],
textarea, 
select  
{
    margin: 0 .5em;
}

input[type="text"], 
input[type="email"], 
input[type="url"], 
input[type="password"],
textarea, 
select  
{
    border: 1px solid #a5a7a7;
}

fieldset input[type="text"], 
fieldset input[type="password"], 
input[type="email"], 
input[type="url"], 
fieldset textarea,
fieldset select {
    background-color: #f7f7f7;
}    

.field.highlight input[type="text"], 
.field.highlight input[type="email"], 
.field.highlight input[type="url"], 
.field.highlight textarea, 
.field.highlight select,
.field:hover input[type="text"], 
.field:hover input[type="email"], 
.field:hover input[type="url"], 
.field:hover textarea, 
.field:hover select,
fieldset input[type="text"]:focus, 
fieldset input[type="email"]:focus, 
fieldset input[type="url"]:focus, 
fieldset textarea:focus,
fieldset select:focus {
    background-color: white;
}

input[type="text"].error, input[type="email"].error, input[type="url"].error, textarea.error, select.error {
    background-color: #fbefef;
    color: black
}

.maxlength {
    margin-left: 30%;
    padding-left: 7px
}

form .field .existingFile
{
    width: 100%;
    margin-left: 30%;
    padding-left: 1.5em
}

form .field .existingFile input[type="checkbox"]
{
    margin-left: 2em
}

input[type="image"] 
{
    border: 0;
}

form img.calendar 
{
    cursor: pointer;
    border: 0;
    margin: 0 .5em;
}

form img.calendar:hover 
{
    background: red;
}

form .field option
{
    font-size: 1em;
}

form .field .dateList {
    padding-top: 2px;
}

form .large {
    font-size: 18px;
}

form .total {
    padding-top: 5px !important;
    padding-bottom: 10px !important;
    font-weight: bold;
    border-top: 1px solid #333;
    font-size: 16px;
}

textarea {
    width: 30%;
    height: 80px;
}

textarea.big {
    width: 30%;
    height: 100px;
}

textarea.bigger {
    width: 30%;
    height: 150px;
}

textarea.biggest {
    width: 30%;
    height: 200px;
}

textarea.scrollable-x {
    overflow: scroll;
    white-space: nowrap;
}

ul.checkboxes {
    float: left;
    width: 60%;
    margin-top: 0;
    padding-left: 0;
}

ul.checkboxes label {
    clear: none !important;
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
    font-weight: normal;    
}

ul.checkboxes li {
   list-style: none;
   margin-left: 0;
   margin-bottom: .25em;
   padding-left: 0;
   width: 50%;
   float: left;
}

ul.checkboxes li input {
    clear: none;
    float: left;
}

.mceEditor {
    clear: right;
}

.existing {
    margin-left: 30%;
}

.existing ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: .5em
}

form .field span.error {
	display: block;
	width: 30%;
    float: right;
    color: red;
    font-weight: bold;
    line-height: normal;
}

form .agreement, form .notice {
    clear: both;
    margin: 16px 0 0 -12px;
    padding: 16px;
    background-color: #af292f;
    color: white;
    max-width: 768px;
}

form .agreement p, form .notice p {
    margin: 0
}

form .submit {
    clear: both;
    text-align: center; 
    margin: 16px 0 0 -12px;
    padding: 16px;
    max-width: 768px;
    background-color: #f6f6f6;
}

fieldset .submit {
    margin-left: 0; /* Correct for -12px left margin defined above */
}


form .submit.top {
    margin: 0;
    padding: 0;
    position: absolute;
    right: 10px;
    background-color: transparent;
}

form .submit .ajax_updater, form .submit.top button, form .submit.top input[type='submit'], form .submit.top input[type='button'] {
    min-width: 100px;
    font-size: 14px;
}

form input[type="submit"], form input[type="button"] {
    font-weight: bold;
    background-color: #ccc;
    color: black;
    font-family: "Trebuchet MS", "Lucida Sans", "DejaVu Sans", sans-serif;
    opacity: .8;
    filter:alpha(opacity=80);
}

button.delete {
    opacity: .8;
    filter:alpha(opacity=80);
}

form .submit input[type="submit"], form .submit input[type="button"] {
    margin: .5em;
    padding: 5px 10px;
    font-size: 14px;    
}

form input[type="button"].small {
    padding: 3px;
    font-size: 13px;
    margin: 0 5px;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover, button.delete:hover {
    cursor: pointer;
    opacity: 1;
    filter:alpha(opacity=100);
}

form input[type="submit"].accept, form button.accept {
    /*background-image: url('/site/images/join/check.png');
    background-repeat: no-repeat;
    background-position: 97%;
    padding-right: 24px;*/    
}

input[disabled="disabled"], button[disabled="disabled"] {
    cursor: text !important;
}

form .submit .alternatives {
    margin: .5em
}

form .submit .delete {
    font-family: "Trebuchet MS", "Lucida Sans", "DejaVu Sans", sans-serif;
    background-image: url('/site/images/icons/delete.png');
    background-repeat: no-repeat;
    background-position: 2px 2px;
    padding: 0 0 0 24px !important;   
    background-color: inherit;
    border: 0;
    float: right;
    position: relative;
    top: 18px;
    color: red
}

form .submit .save, form #saveProgress input[type="button"], form #saveProgress input[type="submit"] {
    font-family: "Trebuchet MS", "Lucida Sans", "DejaVu Sans", sans-serif;
    background-image: url('/site/images/icons/disk.png');
    background-repeat: no-repeat;
    background-position: 2px 2px;
    padding-left: 24px;
	padding-bottom: 4px;
    background-color: inherit;
    border: 0;
    color: green;
    font-weight: normal;
    font-size: inherit;
    float: right;
}

form .submit .save {
    position: relative;
    top: 18px;    
}

button.save:hover, button.delete:hover {
    text-decoration: underline;
}

.documentation {
    padding: 1em;
    color: #555;
}

.documentation h3 {
    border-top: 4px solid #69c;
    color: #69c;
    padding-top: 6px;
    padding-left: 22px;
    font-weight: normal;
    background-image:url('/site/images/icons/information.png');
    background-repeat: no-repeat;
    background-position: bottom left;
}

.documentation ul, .documentation ol {
    padding-left: 2em;
    margin-left: 0;
    line-height: 24px;
}

.documentation ul {
    list-style: square
}

img.datepicker {
    cursor: pointer;
    margin: 0;
    vertical-align: top;
}

#sidebar .module input {
    margin: 0;
}

div.multifileWrapper, div.options {
    float: left;
}

form div.wrapper {
    float: left;
}

form div.wrapper input, div.wrapper img {
    clear: both;
    margin-bottom: 2px
}

div.multifileWrapper input[type="file"] {
    margin-bottom: 2px;
}

div.existingFile {
    clear: both
}

ul.radios {
    float: left;
    width: 30%;
    margin-top: 0;
    padding-left: 0;
}

ul.radios li {
   list-style: none;
   margin-left: 0;
   margin-bottom: 8px;
   padding-left: 0;
   width: 100%;
   float: left;
}

/* Edge case involving multi-form tables */
table td ul.radios {
    width: 100%;
}

table td ul.radios li {
    margin-bottom: 4px;
}

ul.radios li input[type="radio"] {
    clear: none;
    float: left;
}

ul.radios li label {
    clear: none;
    float: none;
    width: 100%;
    padding-top: 2px;
    margin: 0 0 0 2em;
    display: block;
    text-align: left;
    line-height: 16px;
}

div.growlUI { 
    background: url(/site/images/icons/48/growl-check.png) no-repeat 10px 10px;
    font-size: 16px;
}

div.growlUI h1, div.growlUI h2 {
    color: white; 
    padding: 5px 5px 5px 75px; 
    text-align: left;
    margin: 0;
}

div.growlUI.error {
    background: url(/site/images/icons/48/growl-error.png) no-repeat 10px 10px;
    border: 0;
}

input[type="submit"].ajax_updater {
    width: 20%;
    float: right;
}

form #saveProgress {
    padding: 5px;
    width: 120px;
    position: fixed;
    right: 15px;
    bottom: 100px;
    border: 1px solid #999;
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
    font-size: .8em
}

form #saveProgress h4 {
    margin: 6px 0;
    font-style: normal;
    text-align: center;
}

form input[type="submit"].link, form input[type="button"].link {
    background-color: transparent; 
    border: 0; 
    padding: 0;
    font-size: inherit;
    font-weight: normal;
    text-decoration: underline;
    color: #004b91;
}

form input[type="submit"].link:hover, form input[type="button"].link:hover {
    color: #af292f;
}

.placeholder { color: #aaa; }

.ui-autocomplete-loading {
    background: white url('/site/images/spinner.gif') right center no-repeat;
}

input[type="button"]#formProgressReset {
    display: inline;
    background-color: #af292f;
    color: white;
    font-weight: bold;
    font-size: .9em;
    padding: 2px 5px   
}

img.acReset {
    display: none;
    cursor: pointer;
    vertical-align: middle
}

img.acReset.selected {
    display: inline;
}

.ui-autocomplete-input.selected {
    font-weight: bold;
    border: 0;
}