/*----------------------------------------------------------------------------
 *
 * admin/forms.css: global admin form styles
 *
 *---------------------------------------------------------------------------*/
 
 
/*----------------------------------------------------------------------------
 * General forms
 *---------------------------------------------------------------------------*/

form {
	padding: 1em;
	border: 1px solid #f90;
	background: #fff;
	zoom: 1; /* IE margin fix */
	}

form.plain, form.button-to {
    border: none;
    padding: 0;
    }
    
form h3 {
    border-bottom: none;
    font-size: 1.1em;
    }
    
.tabbed {
	margin: 0 0 0.5em 0;
	border: 1px solid #f90;
	padding: 1em;
	zoom: 1; /* IE margin fix */
	clear: left;
	}

		
label {
	margin: 0.5em 2em 0 0;
	line-height: 1.25em;
	color: #666;
}

input,
textarea {
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 1.1em;
	line-height: 1.25em;
}

input { 
	padding: 0.1em 0.35em;
    }
    
textarea { 
	padding: 0.1em 0.35em;
    }
    
select {
    font-size: 1.1em;
    padding: 0.1em 0.15em;
    height: 1.7em;
	background-color: #fff;
    }

select option {
    padding: 0.2em;
    }
    
textarea {
	height: 8em;
	width: 500px;
	margin-bottom: 1em;
}

input:focus,
textarea:focus {
	background-color: #FFFBCF;
}

fieldset {
    margin-bottom: 2em;
	clear: both;
	padding: 1em 1.5em;
	border: none;
	background: #e7e7e7;
	border-bottom: 1px solid #ddd;
}

fieldset fieldset {
	margin-top: 1em;
    }

fieldset legend {
	font-weight: bold;
	padding: 0.5em 1em;
	text-transform: lowercase;
	color: #999;
	background-color: #e7e7e7;
	position: relative;
	top: -2em;
	margin-left: -1.5em;
}

fieldset #gmap_container {
	border: 1px solid #ccc;
	margin-bottom: 0.25em;
}

fieldset #gmap {
	border: 1px solid #fff;
}

form p span.prompt {
	display: block;
	margin: 0.5em 1em 1.5em;
	font-size: 0.95em;
	color: #666;
}

form p span.prompt a {
    color: #333;
    }
    
fieldset.columns p label {
	display: block;
	float: left;
	text-align: right;
	width: 12em;
}

fieldset.columns p span.prompt {
	margin-left: 15em;
}

fieldset.columns.l15 p label {
	width: 15em;
}

fieldset.i6 input {
	width: 6em;
	}
	
fieldset.i8 input {
	width: 8em;
	}
	
fieldset.i10 input {
	width: 10em;
	}
	
fieldset.i12 input {
	width: 12em;
	}
	
fieldset.columns div {
	float: left;
	}

fieldset.columns p {
	clear: none;
	}
		
fieldset.columns.two p {
	float: left;
	width: 40%;
}

fieldset.columns.three p {
	float: left;
	width: 30%;
}

form p.prompt,
form fieldset.columns p.prompt {
    float: none;
    clear: left;
    font-size: 1.15em;
    width: 100%;
    }

fieldset.roles div {
    clear: left;
    }

fieldset.roles div p label {
    width: 10em;
    display: block;
    float: left;
    clear: none;
    }
    
fieldset.roles div p {
	float: left;
	width: 12em;
	}
    
fieldset p input {
}

fieldset.center {
    text-align: center;
    }

label {
	margin-right: 1em;
}

select option {
	margin-right: 2em;
}

.multiple_select {
	border: 1px solid #aaa;
  	height: 100px;
  	background: #fff;
	width: 350px;
	padding: 5px 0 0 10px;
  	margin: 0 0 1em 0;
  	overflow: auto;
}

.multiple_select ul {
  	list-style-type: none;
}

.multiple_select ul li label {
	padding-left: 5px;
}

.multiple_select ul {
  	background: #fff;
}

.disabled_form input, .disabled_form select, .disabled_form text_area{
	color: #666;	
}

/*----------------------------------------------------------------------------
 * Buttons
 *---------------------------------------------------------------------------*/

.buttons input, form.button-to input, #content a.button {
	font-size: 0.9em;
	font-weight: bold;
	padding: 0.25em 0.75em;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #666;
	border-bottom: 1px solid #666;
	margin: 0 0.5em;
	color: #333;
	background-color: #e7e7e7;
	text-decoration: none;
}

#content a.button {
 	display: block;
	}

#content td a.button {
	margin-bottom: 0.25em;
	}
	
#buttons_top, #buttons_bottom {
    text-align: right;
    }

#buttons_top {
    margin-bottom: 0em;
    }    
    
#buttons_bottom {
    clear: both;
    margin-top: 0.75em;
    }    
    
.buttons input.right {
	float: right;
	}

.buttons input:disabled {
    color: #999;
    }
    

/*----------------------------------------------------------------------------
 * Errors / notices / warnings
 *---------------------------------------------------------------------------*/

span.field-with-errors input,
span.field-with-errors textarea,
textarea.too_many_chars {
	background-color: #ffcccc;
	}

#content div.error_explanation {
	margin: 0.5em 0;
	padding: 0.5em 1em;
	background: #e7e7e7;
	clear: left;
	}

body #content div.error_explanation h3 {
	margin: 0.5em 0;
	border: none;
	font-size: 1em;
	color: red;
	clear: left;
	}

#content .block div.error_explanation {
	margin: 0;
	padding: 0 0 0.75em 0;
	background: transparent;
	display: block;
	}

#content .block div.error_explanation h3 {
	margin: 0 0 0.25em 0;
	}

div.error_explanation ul {
	margin: 0 0 0 2em;
	font-size: 0.9em;
	color: #333;
	}

div.error_explanation ul li {
	margin: 0 0 0.25em 0;
	}

form p span.warning,
form p span.error {
	margin-left: 1em;
	color: red;
	font-weight: bold;
	}

form span.notice {
	margin-left: 1em;
	color: green;
	}

span.char_count {
    font-size: 0.9em;
    margin-left: 1em;
}

span.too_many_chars {
    font-weight: bold;
    color: #f00;
 }

.jobs{
    margin-bottom: 15px;
}
/*----------------------------------------------------------------------------
 * Checkboxes / radio buttons
 *---------------------------------------------------------------------------*/

form ul.checkboxes {
    list-style-type: none;
    margin: 0;
    font-size: 1em;
    }

form ul.checkboxes li {
    margin: 0 3em 1em 0;
    display: inline;
    }
    
form ul.checkboxes input {    
    margin-right: 1em;
    }

form ul.nested_radio_buttons {
    list-style-type: none;
    font-size: 1em;
    }

form ul.nested_radio_buttons li li {
    display: inline;
    margin: 0 0 1em 2em;
    }    


/*----------------------------------------------------------------------------
 * Messages
 *---------------------------------------------------------------------------*/

#flash_messages {
}

#messages {
	margin: 0 5em;
	padding: 0.5em 1em;
	background-color: #FFFBCF;
	border: 1px solid #ddd;
	text-align: left;
}

#messages p.close {
    font-size: 0.85em;
    }
    
#messages p.close a {
    color: #666;
    }
    
div#messages p {
	font-weight: bold;
	margin: 0.5em 0;
	padding-left: 30px;
	background-repeat: no-repeat;
	background-position: left 50%;

}

div#messages p a {
	color: #333;
}

div#messages p.notice {
	color: green;
	background-image: url(/global/images/icons_medium/check.png);
}

div#messages p.warning {
	color: #666666;
	background-image: url(/global/images/icons_medium/information.png);
}

div#messages p.error {
	color: red;
	background-image: url(/global/images/icons_medium/error.png);
}

body.plain div#messages p {
	padding: 0;
	background: none;
}



/*----------------------------------------------------------------------------
 * Form tabs
 *---------------------------------------------------------------------------*/
	
div#content ul#form_tabs {
    clear: left;
	margin: 0px 0px 2px 0px; padding: 0px;
	font-size: 1em;
    height: auto;
}

ul#form_tabs li {
	white-space: nowrap;
	margin-top: 1px;
	float: left;
}
    
ul#form_tabs li a {
    line-height: 1.5em;
    padding: 0.25em 0.75em;
	color: #999;
    background: #ddd top right no-repeat url(/global/images/dynamic/corner/dddddd/ffffff/5/5/tr.png);
    margin-right: 2px;
	border-bottom: none;
    float: none;
}

body ul#form_tabs li a:hover {
	color: #666;
	background-color: #ddd;
	}

body ul#form_tabs li.current a {	
	color: #fff;
	font-weight: bold;
    background: #f90 top right no-repeat url(/global/images/dynamic/corner/ff9900/ffffff/5/5/tr.png);
    border-bottom: 1px solid #f90;
	}
	
ul#form_tabs li a.unavailable,
ul#form_tabs li a.unavailable:hover {
	color: #ccc;
	background-color: #e7e7e7;
}



/*----------------------------------------------------------------------------
 * List views
 *---------------------------------------------------------------------------*/

form#filter {
	float: right;
	margin: 0; padding: 0;
	border: none;
	}


/*----------------------------------------------------------------------------
 * Tabbed forms
 *---------------------------------------------------------------------------*/

#content form table.list {
	clear: both;
	margin-top: 0.5em;
	background-color: white;
	border: none;
	}

form .date_info {
    margin: 0 0 0.75em 0;
    float: left;
    color: #666;
    }

form .date_info .pipe {
    margin: 0 0.25em;
    }

#icon_heading_container {
    margin-bottom: 1em;
    }
    
#icon_heading_content {
    margin-bottom: 6px;
    }

#icon_heading_content img {
    margin-right: 10px;
    float: left;
    }
    

/*----------------------------------------------------------------------------
 * Specific form input styles
 *---------------------------------------------------------------------------*/

form.button_to {
    padding: 0;
    border: none;
    }
    
textarea.street_address {
    width: 30em;
    height: 3em;
    margin-bottom: 0;
    }
    
textarea.property_features {
    width: 30em;
    height: 7em;
    margin-bottom: 0;
    }

textarea.telephone {
    width: 20em;
    height: 5em;
    margin-bottom: 0;
    }
    
textarea.email_address {
    width: 20em;
    height: 5em;
    margin-bottom: 0;
    }
    
form span.prompt blockquote {
    display: block;
    margin: 0.5em 0;
    padding: 3px;
    background-color: white;
    font-size: 1.5em;
    font-family: monospace;
    }

#markup_field_container {
    }
    
input.date {
    width: 5em;
    }
    

    
/*----------------------------------------------------------------------------
 * DL forms
 *---------------------------------------------------------------------------*/

form.dl_form fieldset {
    padding: 0;
    }
    
form.dl_form dl {
    clear: left;
    margin: 0;
    padding: 0.3em 1em 0.2em 1em;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    }

body#account_login form.dl_form dl {
	width: 28em;
}

    
form.dl_form dl dt {
    float: left;
    text-align: right;
    display: block;
    width: 200px;
    margin: 0.35em 2em 0.25em 0;
    font-size: 0.9em;
    }
    
form.dl_form dl dd {
    padding-bottom: 0.2em;
    display: table-cell;
	width: 600px;
    }

body#account_login form.dl_form dl dd {
	width: 12em;
}

form.dl_form dl dt label {
    font-size: 1em;
    margin-right: 0;
    }

form.dl_form dl dd label {
    font-size: 1em;
    margin-right: 1.5em;
    }
    
form.dl_form dl dt, form.dl_form dl label {
    color: #333;
    }
    
form.dl_form fieldset.with_prompt div.prompt {
    padding: 0.75em 1em 0.25em 1em;
    border-bottom: 1px solid #ccc;
    }
    
form.dl_form em.required {
    margin: 0 0.1em 0 0.1em;
    font-weight: bold;
    color: red;
    }
    
form.dl_form textarea {
    margin-bottom: 0;
    }
    
form.dl_form dl.text dd input {
	color: #444;
    }
    
form.dl_form dl.radio dd,
form.dl_form dl.check_box dd {
    padding-top: 0.2em;
    }

form.dl_form dl ul {
    list-style-type: none;
	margin: 0 0 1em 0;
}

form.dl_form dl ul.possible_duplicates {
    list-style-type: disc;
    }
    
form.dl_form span.date_toggle {
    font-size: 0.85em;
    color: #666;
    }
    

/*----------------------------------------------------------------------------
 * DL forms: auxilliary content (headers, tabs, help, etc.)
 *---------------------------------------------------------------------------*/

#content h3.tab a {
    color: #fff;
    border: none;
    }

#content h3.tab a:hover {
    background-color: transparent;
    border: none;
    }

div.form_actions {
    margin: 0 0 0.25em 0;
    }

div#content form dl .hideable_help {
    color: #666;
    font-size: 0.85em;
    }

div#content form dl p.hideable_help, 
div#content form dl .hideable_help p { 
    margin: 0.25em 10% 0.25em 0;
    }

body.hide_help .hideable_help {
    display: none;
    }

body.hide_help .hideable_help.unhideable {
    display: block;
    }
        
form.dl_form div.buttons.top {
    margin: 0 0 0.5em 0;
    }
    
#content h3.tab {
    float: left;
    clear: both;
    font-size: 1em;
    color: #fff;
    background: #f90 top right no-repeat url(/global/images/dynamic/corner/ff9900/ffffff/5/5/tr.png);
    margin: 0.5em 0 0 0;
    padding: 0.25em 0.75em 0.15em 0.6em;
    border: none;
    }

#content h3.tab a {
    color: #fff;
    }
    
form.dl_form fieldset {
    clear: both;
    background: #e7e7e7;
    border-top: 1px solid #f90;
    border-bottom: none;
    margin: 0 0 0.25em 0;
    padding: 0;
    }

form.dl_form textarea.markup,
form.dl_form textarea.markup_compact {
    margin: 0;
    }

#content form.dl_form textarea.markup {
    height: 15em;
    }
    
#content form.dl_form textarea.markup_compact {
    height: 5em;
    }

form.dl_form span.form_date {
    color: #777;
    }

form.dl_form fieldset.list {
    border-bottom: 1px solid #ccc;
    padding: 1em;
    }

form.dl_form fieldset div.fieldset_intro {
    background: #e7e7e7;
    padding: 1em 1em 0.5em 1em;
    }
        
form.dl_form label em.required {
    margin: 0 0.1em 0 0.1em;
    font-weight: bold;
    color: red;
    }

form tr.current td {
    background: #FFFBCF;
    }
    
   
/*----------------------------------------------------------------------------
 * Common form content
 *---------------------------------------------------------------------------*/

div.markdown_reference {
    width: 500px;
    }
    
div.markdown_reference table {
    margin: 0 0 0.5em 0;
    }
    
    
/*----------------------------------------------------------------------------
 * Colours
 *---------------------------------------------------------------------------*/

.colours dl input {
  float: left;
}

.colours dl p.swatch {
  border: 1px solid #ddd;
  border-top-color: #999;
  border-left-color: #999;
  float: left;
  margin: 0 2px;
  cursor: pointer;
}

.colours dl p.swatch span {
  display: block;
  float: left;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid #fff;
}

.colours dl p.hideable_help {
  clear: left;
}
  
.colours dl p.swatch span span {
  display: none;
}

/*----------------------------------------------------------------------------
 * Terms and conditions panel
 *---------------------------------------------------------------------------*/

div.terms_and_conditions {
  overflow: scroll;
  border: 1px solid #CCC;
  height: 300px;
  width: 550px;
  margin: 10px;
  padding: 3px;
}
