/* Form related styles */

/* Form tags */
optgroup
{
    background-color: #f7f7f7;
    font-weight: normal;
    color: #666;
}

optgroup option
{
    background-color: #ffffff;
    color: #000000;
}

/* Bamboo Form */
.bambooForm {
    display: inline;
    float: left;
    clear: left;
    border-collapse: collapse;
    width: 100%;
	border-bottom: 1px solid #BBD0E5;
    border-collapse: collapse;
	padding: 0 0 0 0;
	background-color: #F5F8FB;
}

.bambooAuiDialogForm {
	border-top: 0px;
	border-bottom: 0px;
    background-color: #FFFFFF;
}

.bambooAuiDialogForm .fieldLabelArea {
    font-size: 12px;
    font-weight:bold;
    color: #003366;
}

.bambooAuiDialogForm ul.actionErrorList {
    margin-top: 0;
    margin-bottom: 8px;
}

.hideHeadingSection
{
    border-top: none;
    /*padding-top: 5px;*/
}
.topPadded
{
    /*border-top: none;*/
    padding-top: 5px;
}

.tabContent .bambooForm
{
    margin-top: 10px;
}

#tabContainer .tabContent .bambooForm
{
    margin: 10px 5px 10px 5px;
    width: 99%;
}

.bambooForm input[type=reset], .bambooForm input[type=submit], .bambooForm input[type=button], .bambooForm button
{
    min-width: auto !important; /* hack for ie */
    min-width: 80px;
}

.bambooForm input, .bambooForm label
{
    vertical-align: bottom;
}

/* Form header */
.bambooForm h2
{
    border-top: 1px solid #BBD0E5;
    margin-bottom: 10px;
}

/* Style for subsection*/
.bambooForm .titleSection, .bambooForm h3 {
    border-top: 1px solid #BBD0E5;
    border-bottom: 1px solid #BBD0E5;
    background-color: #EBF1F7;
	color: #003366;
    font-weight: bold;
    padding: 4px 4px 4px 10px;
    margin-bottom: 10px;
    vertical-align: middle;
}

.bambooForm h3.title
{
    border-top: none;
    margin-top: 0;
    margin-bottom: 15px;
}

.bambooForm div.toolbar
{
    margin-top: 0;
}

/* Used for field label separtion e.g. OR */
.bambooForm .sectionSubHeader {
    font-weight: bold;
    font-style: italic;
}

/* Sub area h1 */
.bambooForm .bambooForm h1 {
    font-size: 16px;
}

.descriptionSection {
    padding: 4px 4px 4px 0;
    margin-left: 1em;
    margin-right: 1em;
    margin-top: -8px;
    margin-bottom: 10px;
    border: none;
    line-height: 110%;
}

.subHeadingDetails .descriptionSection {
    margin-top: 5px;
}

.bambooForm fieldset {
    margin-bottom: 0px;
}

.contentSection {
    padding: 0px;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 10px;
    border: none;
    line-height: 110%;    
}

.bambooForm .formFooter {
    padding: 5px 0 5px 0;
    border-top: 1px solid #BBD0E5;
	background-color: #EBF1F7;
}

.noTopBorder
{
    border-top: none!important;
}

.bambooForm .formFooter.wizardFooter {
    text-align: right;
}

.bambooForm .formFooter.wizardFooter #cancelButton{
    margin-left: 10px;
}


.bambooForm .fieldAreaError{
}

.bambooForm .fieldArea .errorBox {
    color: #cc0000;
    font-weight: bold;
}

.bambooForm .fieldArea {
    clear: left;
    margin: 0 0 0 1em;
	padding-bottom: 1px;
}

.bambooForm .fieldArea label.fieldLabelArea, .bambooForm .fieldArea .firstColumn {
	display: inline;
	position: relative;
	float: left;
	margin-top: 0.15em;
	padding: 0 0 5px 0;

}

.bambooForm .fieldArea .fieldValueArea
{
}

.fieldDescription {
	margin: 3px 0 0 0;
	padding: 0 0 5px 0;
	font-size: 95%;
    line-height: 100%;
    color: #7F7F7F;
}

/* Special styles for checlbox*/

.bambooForm label.labelForCheckbox, .bambooForm .checkboxArea .fieldDescription {
    float: none;
    display: block;
    padding: 0px;
    margin-bottom: 5px;
    text-align: left;
}

.radioOptionDescription
{
    margin-top: 0;
    margin-left: 20px;
}

.bambooForm .checkboxLabel {
}

.bambooForm .checkboxErrorLabel {
    color: red;
}

.bambooForm span.required {
    color: red;
}

.bambooForm .fieldLabelArea .required
{
	position: absolute;
	top: 0;
	height: 8px;
	margin: 0 0 0 -4px;
    vertical-align: top;
}

.buttons {
    text-align: center;
    margin: 0 auto;
}

.emphasise a {
    font-weight: bold;
}

body.agents .bambooForm {
    margin: 10px 0 10px 0;
}

.bambooForm span.note {
    background: #fff;
    color: #999;
    font-size: 0.92em;
    margin: 0 0 0 5px;
}

body.agents .bambooForm .descriptionSection h3 {
    background: #F5F8FB;
    border: none;
    color: #036;
    margin: 5px 0 0 0;
    padding: 0;
}

body.agents .bambooForm ul.agent-details {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

body.agents .bambooForm ul.agent-details li {
    margin: 0;
    padding: 0 0 0 80px;
    position: relative;
}

body.agents .bambooForm ul.agent-details li span.type {
    left: 0;
    position: absolute;
    top: 0;
    width: 80px;
}

body.agents .bambooForm .descriptionSection .fieldArea {
    margin: 0 0 6px 0;
}

body.agents .bambooForm .formFooter {
    padding: 0.6em 0.5em 0.5em;
    position: relative;
}

body.agents .bambooForm .formFooter a.capabilities {
    left: 0.5em;
    line-height: 2;
    position: absolute;
    top: 0.3em;
}

body.agents .bambooForm .formFooter .button-link {
    margin: -0.2em 0 0 1em;
}

.plan-requirements .formFooter {
    overflow: auto;
    padding: 0.6em 0.5em 0.5em;
}

.plan-requirements .formFooter .button-link {
    margin: -0.2em 0 0 1em;
}

.button-link,
    .button-link:link,
    .button-link:visited,
    .button-link:hover {
    background: #f0f0f0;
    border: 1px solid #fafafa;
    border-right: 1px solid #848484;
    border-bottom: 1px solid #848484;
    color: #000;
    padding: 0.2em 0.4em;
    text-align: center;
    text-decoration: none;
}

.button-link:active,
    .button-link:focus {
    background: #f0f0f0;
    border: 1px solid #848484;
    border-right: 1px solid #fafafa;
    border-bottom: 1px solid #fafafa;
    color: #000;
    text-decoration: none;
}

form.capability-types .descriptionSection {
    overflow: auto;
}

form.capability-types fieldset {
    border: 1px solid #aaa;
    display: block;
    float: left;
    margin: 0 0 10px 30px;
    padding: 4px 4px 0 0;
    position: relative;
    width: auto;
}

form.capability-types fieldset span.alternate {
    background: #f5f8fb;
    color: #3c78b5;
    left: -30px;
    position: absolute;
    text-transform: uppercase;
    top: -6px;
}

form.capability-types fieldset label {
    float: left;
    margin: 0 0 4px 0;
    width: auto;
}

form.capability-types fieldset #builder-path-label {
    clear: both;
}

form.capability-types fieldset label span {
    display: block;
    float: left;
    line-height: 2;
    text-align: right;
    padding: 0 5px 0 0;
    width: 100px;
}

form.capability-types fieldset label input {
    width: 210px;
}

form.capability-types fieldset label input#builder-path {
    width: 533px;
}

form.capability-types fieldset.disabled label input {
    background: #f5f8fb;
}

#add-requirement .descriptionSection {
    overflow: auto;
}

#add-requirement fieldset {
    border: none;
}

input.textField, textarea.textField
{
	width: 85%;
	border: 1px #bbbbbb solid;
	padding: 3px;
}

input.textField:focus, textarea.textField:focus
{
	border: 1px #a1c4e6 solid;
}

/* Width Styles. Standard is a 13em column and the narrow one is a 6em column */

/* A style for use when there is no first column*/
.bambooForm .fieldArea {
	padding-left: 14em;
}

#choosePlansForBulkAction .fieldArea {
    padding-left: 2em;
}

.bambooForm .fieldArea label.fieldLabelArea, .bambooForm .fieldArea .firstColumn {
	left: -14em;
	width: 13em;
	margin-right: -13em;
}

.bambooForm .fieldLabelArea .required
{
	left: 13em;
}

.bambooForm.narrowForm .fieldArea {
	padding-left: 7em;
}

.bambooForm.narrowForm .fieldArea label.fieldLabelArea, .bambooForm .fieldArea .firstColumn {
	left: -7em;
	width: 6em;
	margin-right: -6em;
}

.bambooForm.narrowForm .fieldLabelArea .required
{
	left: 6em;
}

.bambooForm .project {
    margin-left: 2em;
}
.bambooForm .project-builds {
    margin-left: 2em;
}

.bambooForm .buildExpiryIndent {
    margin-left: 2em;
}

.bambooForm .rightAlignedButton {
    margin-right: 1em;    
    float: right;
    padding-top: 15px;
}

.bambooForm .rightAligneButtonDesc
{
    margin-left: 1em;
    padding-bottom: 10px;
    width: 80%;
}

/* Special goodies for webkit browsers */
input[type='password'] {
    -webkit-appearance: caps-lock-indicator;
}

/* checkbox control */
/* firefox */
.checkboxArea input[type=checkbox] {
    position: relative;
    top: 2px;
}
/* safari */
@media screen and (-webkit-min-device-pixel-ratio:0){
	.checkboxArea input[type=checkbox] {
         top: 0px;
    }
}

.cronEditorForm {
    margin-left: 15em;
    padding-bottom: 10px;
}

.cronEditorForm .timeForm .textField {
    width: 3em;
}

.cronEditorForm .dayOfWeekForm .labelForCheckbox {
    margin-left: -15em;
}

.cronEditorForm .cronStringForm {
    margin-left: -1em;
}

.cronEditorForm .cronStringForm .fieldValueArea {
    margin-left: -5em;
    margin-right: 1.5em;
}

.cronEditorForm .fieldArea .errorBox {
    margin-left: -5em;
}

.cronEditorForm .monthForm select {
    margin-left: 3px;
}

.popupRemoveErrorLogForm
{
    display: none;
}

.planCheckboxList {
    padding-top: 5px;
    padding-bottom: 5px;
}

.planCheckboxList .fieldLabelArea {
    padding-left: 12px;
    width: 13px;
    float: left;
}

.planCheckboxList .checkboxArea {
    clear: none;
}

/* ---------------------------------------------------------------------------------------------------------- Form end */
