/* Style elements for forms */

/*
Safari requires a minimum height of 63 pixels to draw a functioning scrollbar.
So if your code and the users settings produce a smaller box (e.g. rows=4 & default settings), no scrollbar will appear no matter how many lines the user enters.
Frustrating to users. One way to avoid this is textarea {min-height: 63px} in the CSS.
*/

/*
form p {
    display: block;
    margin: 0 0px 0 0px;
    padding: 0 0px 0 0px;
    border-color: black;
    border-style: solid;
    border-width: 0px;
}
*/

/* #6b6b6b was #467aa7
   #aaaaaa was #467aa7
*/

fieldset {
    padding: 1em;
    margin: 1em 1em 1em 0;
    border: #6b6b6b solid 1px;
    width: 375px;
    background: #eeeeee;
}

fieldset.twocolumn {
    width: 700px;
}

fieldset.fullscreen {
    width: 850px;
}

fieldset legend {
    background: #aaaaaa;
    color: #ffffff;
    font-weight: bold;
    border: #6b6b6b solid 1px;
    padding: 1px 10px;
}

fieldset div.field {
    display: block;
    float: left;
    width: 375px;
    vertical-align: middle;
}

fieldset div.fieldAttention {
    display: block;
    float: left;
    width: 375px;
    vertical-align: middle;
    background-color: wheat;
    border-color: red;
    border-width: 1px;
    border-style: solid;
    border-spacing: 1px;
    padding: 0 0 0 0;
}

fieldset div.field span.icons {
    width: 40px;
    vertical-align: middle;
}

fieldset div.field .fieldError {
    clear: both;
    margin: 0 5px 0 0;
    padding: 0 0 0 0;
    text-align: left;
    width: 345px;
    color: red;
}

label, input, select, textarea {
    display: block;
    float: left;
}

label {
    text-align: right;
    width: 120px;
    padding: 2px;
    margin: 0;
    margin-top: 3px;
    font-weight: bold;
}

label.required {
    color: black;
}

label.required:after {
    color: red;
    content: '*';
}

label.optional {
    color: black;
}

#login label {
    width: 60px;
}

/* TODO: Add classes and formatting for error/warning/information.  Possibly style input box, or add icon next to it. */

/* Formfield types:
imput
-------
text
password
checkbox
radio

file
button
reset
submit

image
hidden
*/

fieldset input.input_text {
    margin: 3px;
    width: 175px;
}

fieldset input.input_password {
    margin: 3px;
    width: 175px;
}

fieldset input.input_long_number {
    margin: 3px;
    width: 175px;
}

fieldset input.input_number {
    margin: 3px;
    width: 100px;
}

fieldset input.input_small_number {
    margin: 3px;
    width: 50px;
}

fieldset input.input_date {
    margin: 3px;
    width: 135px;
}

fieldset input.input_phone {
    margin: 3px;
    width: 100px;
}

fieldset input.input_email {
    margin: 3px;
    width: 175px;
}

fieldset input.input_checkbox {
    margin: 3px;
    float: left;
}

fieldset input.input_radio {
    margin: 3px;
}

fieldset select {
    margin: 3px;
    width: 175px;
}

fieldset textarea {
    margin: 3px;
    width: 175px;
    height: 100px;
}

fieldset input#extension {
    width: 42px;
}

.error {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: #ff0000;
}

.errortitle {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #ff0000;
}

.errorheader {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: #ff0000;
}

/* Other settings.  Move to seperate css file */

fieldset.dashboardTile {
    width: 208px;
    float: left;
    margin: 5px;
    padding: 5px;
}

fieldset.dashboardTileWide {
    width: 438px;
    float: left;
    margin: 5px;
    padding: 5px;
}

div#drop_box {
    float: left;
}

div.drop_box_active {
    background-color: green;
}

fieldset#report-constraints {
    width: 920px;
    margin: 0;
    padding: 2px 0 2px 0;
}

fieldset#report-constraints table {
    border-spacing: 0;
}

fieldset#report-constraints legend {
    margin: 1px 10px 1px 10px;
    padding: 1px 10px 1px 10px;
}

fieldset#report-constraints label {
    width: 100px;
}

div#dateInput label, div#dateInput input {
    display: inline;
    float: none;
    vertical-align: middle;
}

div#fromdateInput, div#todateInput {
    float: left; /*margin-left: 10px;*/
}

div#productInput {

}

div#lineInput {

}

div#locationDepartmentIndividualInput {

}

div#campaignConstraintInput {
/*float: right;*/
}

div#segmentationInput {

}

div.report-graph-constraints-display {
    width: 880px;
    height: 200px;
    margin: 0;
    padding: 0 20px 0 20px;
    background-color: #f9f9f9;
    border-left: 1px solid #6b6b6b;
    border-right: 1px solid #6b6b6b;
}

div.report-constraints-display {
    float: left;
    width: 220px;
    height: 200px;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

div.report-graph {
    float: left;
    width: 660px;
    height: 200px;
    margin: 0;
    padding: 0;
}

div.report-toolbar {
    width: 920px;
    height: 16px;
    margin: 0;
    padding: 2px 0 6px 0;
    border-left: 1px solid #6b6b6b;
    border-right: 1px solid #6b6b6b;
    background-color: #f9f9f9;
}

div.pagination {
    display: inline;
    width: 250px;
    margin: 0 40px 0 5px;
}

div.export {
    display: inline;
    width: 50px;
    margin: 0 5px 0 5px;
}

.report-title {
    width: 100%;
    text-align: center;
}

div.report-date {
    display: inline;
    width: 100px;
    margin: 0 5px 0 5px;
}

div#report-datagrid {
    clear: both;
}

