/*CSS for formbuilder module */

sup {
	vertical-align: baseline;
	font-size: 75%;
	position: relative;
	top: -0.4em;
	}

div.fieldset {
	position:relative;
	display:block;
	clear:both;
	overflow: hidden;
	padding:0px 0px 2px 0px;
	margin:0px;
	background:#efefef;
	border-bottom: 1px white solid;
	/*
	border-top: 1px white solid;
	border-left: 1px white solid;
	border-right: 1px dimgray solid;
	*/
	zoom:1; /*IE hack to force hasLayout*/
}
div.fieldset.flow {
	width:49.9%;
	float:left;
	clear:none;
}

div.fieldset h2 {
	background: #9a9a9a url("../images/bg_fieldset_h2.png") repeat-x left top;
	color: #222;
	position:relative;
	margin:0;
	padding: 0.6em 12px 0.5em 12px;
	font-weight: bold;
	font-size:11px;
	display:block;
}
div.fieldset h2 a {
	color: #fff;
}
div.fieldset h2 a:hover {
	color: #000;
}
div.fieldset h2 small {
	display: block;
	font-weight: normal;
	text-transform: none;
	margin-top: 2px;
	color: white;
	font-size: 1em;
	}
span.hrsimple {
	display: block;
	margin: 0;
	font-size: 1px;
	line-height: 1px;
	padding: 0px 4px 0px 4px;
	position: relative;
	border-top: 1px #bbb solid;
	}
span.hrdashed {
	display: block;
	position:relative;
	border-top: 1px #808080 dashed;
	}
div.formElement {
	position: relative;
	clear: both;
	padding: 4px 0 3px 0;
	background: url(../images/bg_formElement.png) repeat-x left top;
	zoom: 1;
	overflow: hidden;
	}
div.formElement.last {
	padding-bottom:3px;
}
div.formElement.hrule {
	background: #ddd url(../images/bg_hrsolid.png) repeat-x left top;
	color: #444;
	}
div.formElement.hrule p {
	margin: 0.2em 12px;
	}
/*
 * Depreciated : Use hrule
 */
Xdiv.formElement.hr {
	/*give it a bit more space*/
	margin-top:3px;
}
div.formElement.image {
	min-height: 90px;
}

div.formElement.required input ,
div.formElement.required textarea ,
div.formElement.required option {background-color: #C7E8FC;}	
div.formElement.invalid {
	position:relative;
	padding: 0 0 2px 0;
	margin: 0px;
	/*background-color: gold;*/
	vertical-align: top;
	display: block;
	white-space: nowrap;
	}

div.formElement.valid {
	position:relative;
	padding: 1px 2px 1px 2px;
	margin: 0px 0px 2px 0px;
	display: block;
	/*white-space: nowrap;*/
	}
	
div.formElement.invalid.required input {background-color: #E98C54;}
div.formElement.invalid.required option {background-color: #E98C54;}

div.formElement.valid.required input,
div.formElement.valid.required option,
div.formElement.valid.required textarea {background-color: #C7E8FC;display: block;}
div.formElement textarea.monospace {
	font-family:monospace;
}

div.formElement.hidden {
	/*minimise this element it's hidden*/
	border: none;
	padding: 0;
	display: none;
}

label,
label.blk {
	position: absolute;
	left: 0;
	display: block;
	color: #333;
	margin-top: 3px;
	margin-right:5px;
	text-align: right;
	vertical-align: top;
	width:12em;
	}

div.formElement ul {
	margin:0;
	padding:0;
}

div.formElement li {
	margin:0.5em 16px 0.5em 32px;
}
div.formElement p {
	overflow: hidden;
}
div.formElement th {
	background: none;
	border: none;
	border-bottom: 2px silver solid;
	border-left: 1px silver solid;
	padding: 2px 3px;
	text-align: left;
}

div.formElement table {
	border:1px silver solid;
	margin:0.5em 12px;
}
div.formElement td {
	padding: 2px 3px;
	background: none;
	border: none;
	border-bottom: 1px silver solid;
	border-left: 1px silver dotted;
}

div.formElement td.first,
div.formElement th.first {
	border-left:none;
}

/*For MCE*/
div.formElement table.mceEditor,
div.formElement table.mceLayout {
	margin: 0 10px;
	width:100%;
}
div.formElement table.mceEditor td,
div.formElement table.mceLayout td,
div.formElement table.mceLayout table {
	padding: 0;
	border: none;
	margin: 0;
}
span.mceEditorContainer td {
	padding:0; /*for tinyMce*/
	border:none;
	}



div.textblock {
	margin-top: 6px;
	position:relative;
	clear: both;
	color: #333;
	text-align: left;
	vertical-align: top;
	/*padding-left: 12.5em;*/
	}
div.textblock p {
	margin-left:0;
}

div.textnote {
	position:relative;
	clear: both;
	color: #333;
	text-align: left;
	vertical-align: top;
	padding-left: 11em;
	}

span.input,
span.blk {
	display:inline;
	margin-right:2px;
	float:left;
	clear:none;
	margin-left: 12.5em;
	zoom:1;
	z-index: 1;
	}
/*Full width for mce*/
div.formElement.html .input {
	margin-left : 0;
	float: none;
	display: block;
}
div.formElement.html {
	padding-top: 0;
}
div.formElement.html p.hrsolid {
	background:#DDDDDD url(../images/bg_hrsolid.png) repeat-x;
	margin: 0;
	padding: 0.4em 12px;
}
div.formElement.html .input {
	background:transparent url(../images/bg_formElement.png) repeat-x scroll left top;
	padding-top: 3px;
	margin-left: 0 !important;
}
	
/*	Modifiers for narrow width forms or fieldsets that are flowed to half the page width*/
div.fieldset.narrow label {
	width: 90px;
}
div.fieldset.narrow span.input,
div.fieldset.narrow span.blk,
div.fieldset.narrow p.descriptivetext,
div.fieldset.narrow p.blk {
	margin-left: 100px;
}
div.fieldset.narrow div.textblock {
	/*padding-left:115px;*/
}
/*End*/
	
span.checkboxgroup {
	overflow: hidden;
	display: inline-block;
	float: left;
}
span.checkboxgroup label {
	/*display: block;*/
	cursor: pointer;
	text-align: left;
	display: inline;
	float: left;
	position: relative;
	margin: 3px 1em 1px 0 ;
	white-space: nowrap;
	width: auto;
	min-width: 4em;
}
span.checkboxgroup input {
	margin: 0;
	vertical-align: top;
}
div.fieldset.narrow span.checkboxgroup label {
	/*width: 13em;*/
}
.boolean2 span.checkboxgroup label {
	width: auto;
	margin-right: 1em;
	min-width: 4em;
}
span.fixedwidthlabels label {
	width: 13em;
}
span.checkboxgroup span.buttons {
	positon: relative;
	float: none;
	display:block;
	clear: both;
	margin-top: 3px;
	padding-top: 4px;
}
span.checkboxgroup span.buttons a {
	font-size: 9px;
	padding: 1px 2px;
	margin-right: 3px;
}

div.fieldset.narrow span.vertical label, 
span.vertical label {
	display: block;
	float: none;
	width: auto;
	margin-right: 0;
}
span.input span {
	display: block;
}

span.input.preview p {
	margin-left: 12.5em;
}

div#invalidFormHeader {
	position:relative;
	/*height:1%;*/
	/*border: 2px #ff0000 dashed;*/
	padding: 4px 20px 4px 20px;
	font-size: 13px;
	background: gold url("../images/bg_errorheader.gif") top left repeat-x;
	color: black;
	font-weight: bold;}



div.errTxt {
	background:orange;
	color: #000;
	padding: 2px 12px;
	font-weight: bold;
	/*border-bottom: 1px red dotted;*/
	margin-bottom: 2px;
}

	
div.hintreq {
	float:left;
	clear:none;
	display:inline;
	margin-top: 3px;
	padding: 2px 2px 0px 1em;
	color: #0000a0;
	font-size:11px;
	vertical-align: top;}
	
div.outputtext p {
	float:none;
	clear:none;
	margin-left: 12.5em;
	font-size:11px;
	vertical-align: top;
}

p.descriptivetext {
	float: none;
	clear: both;
	display: block;
	margin-left: 12.5em;
	font-size: 11px;
	vertical-align: top;
}

span.input span.LV_validation_message {
	float: none;
	clear: none;
	display: inline;
} 
div.hint {
	float:left;
	clear:none;
	margin-top: 3px;
	padding: 0px 2px 0px 1em;
	color: #0000a0;
	font-size: 11px;
	vertical-align: top;
}
.daybyte .hint, 
.checkboxes .hint {
	/*Check box layouts use differend positioning*/
	float: none;
	clear: both;
	display: block;
	margin-left: 12.5em;
	font-size: 11px;
	vertical-align: top;
	padding: 2px;
}

div.textarea div.hint {
	float: left;
	clear: both;
	display: inline;
	margin: 0 0 0 11.5em;
}

/* Images and things */

img.previewThumb {
	display: inline-block;
	margin-right: 0.3em;
	border: 1px gray dotted;
	background: snow;
	max-width: 132px;
}

div#thumbnails {}
div#thumbnails div {
	font-size:10px;
	color:gray;
	float:left;
	clear:none;
	background-color:lightgrey;
	text-align:center;
	cursor:pointer;
	margin-left:2px;
	margin-bottom:2px;
	width:92px;
	height:110px;
	padding:2px 3px;
	border-top:1px white solid;
	border-left:1px white solid;
	border-right:1px gray solid;
	border-bottom:1px gray solid;
	}
div#thumbnails div.add {}
div#thumbnails div.img {}
div#thumbnails div.imgDel {
	background-color:red;
}
div#thumbnails div span {
	position:relative;
	display:block;
	margin:1px 0;
	}
div#thumbnails div.imgDel a {color:black;}
div#thumbnails img {
	border-bottom:1px white solid;
	border-right:1px white solid;
	border-left:1px gray solid;
	border-top:1px gray solid;
	clear:both;
	background:gray;
	display:block;
	width:90px;
	margin:0;
	}


span.input span.langblock {
	position: relative;
	padding-right: 22px;
	margin-bottom: 1px;
}
span.input span.langblock span.lang {
	background-repeat:no-repeat;
	background-position:top left;
	width:20px;
	height:15px;
	display:block;
	position: absolute;
	right: 0;
	top: 1px;
}
span.input span.langblock span.lang span {
	visibility: hidden;
}
span.input span.langblock span.count {
	display:block;
	text-align: right;
}

/*language panel */
div#langpanel{
	position: relative;
	background:#efefef;
	border-top: 1px white solid;
	border-bottom: 1px dimgray solid;
	border-left: 1px white solid;
	border-right: 1px dimgray solid;
}
div#langpanel h2 {
	background-image: url("../images/bg_button.gif");
	position:relative;
	text-transform: capitalize;
	margin:0;
	padding:3px 0.5em 8px 0.5em;
	font-weight: bold;
	font-size:10px;
	display:block;
	color:#444;
}
div#langpanel div.buttons{
	position:absolute;
	top:2px;
	right:10px;
}
div#langpanel a {
	margin-left:4px;
	text-decoration: none;
	background-color:silver;
	background-repeat:no-repeat;
	background-position:1px center;
	height:13px;
	padding:2px;
	color:gray;
	float:left;
	border-top: 1px white solid;
	border-bottom: 1px dimgray solid;
	border-left: 1px white solid;
	border-right: 1px dimgray solid;
}
div#langpanel a span {
   margin: 0;
   margin-left:20px ;
}

div#langpanel a.sel{
	color:black;
	background-color:#efefef;
	border-bottom: 1px white solid;
	border-top: 1px dimgray solid;
	border-right: 1px white solid;
	border-left: 1px dimgray solid;
}
div#langpanel a:hover{
	border: 1px #2D5099 solid;
}


/*
////////
	Cat selector stuff
	Built using AJAX
	See formbuilder.js - catSelector();
////////
*/

div.catsel-panel {
	border:1px #2D5099 solid;
	background:white;
}
div.catsel-toolbar {
	color:white;
	background:silver;
	border-bottom:1px dimgray solid;
}
div.catsel-toolbar a {
	font-size:0.9em;
	line-height:2em;
	margin:2px;
	padding:1px 2px;
	border-top: 1px white solid;
	border-bottom: 1px dimgray solid;
	border-left: 1px white solid;
	border-right: 1px dimgray solid;
	}
div.catsel-toolbar a:hover{
	border: 1px white solid;
	color:white;
}
div.catsel-display {
	padding:2px;
	min-height:2em;
}

#catsel-portal {
	border:1px white solid;
	padding:1px;
	margin:0;
	background:black;
	width:26em;
	min-height:10em;
	margin-left:auto;
	margin-right:auto;
	top:30%;
	position:absolute;
	z-index:100;
	overflow:hidden;
	zoom:1;
}
#catsel-portalContent {
	width:100%;
	overflow:auto;
	background:white;
	min-height:12em;
	max-height:28em;
	zoom:1;
}

#catsel-portalTitle {
	background:silver;
	color:white;
	border-bottom:1px gray solid;
	position:relative;
	zoom:1;
}
#catsel-portalTitle h4 {
	margin:0;
	padding:3px 10px;
	border-top:1px white solid;
	border-bottom:1px dimgray solid;
	}
#catsel-portalTitle .widgets {
	float:right;
}
#catsel-portalTitle .widgets button {
	margin:2px 2px 0 0;
	padding:0 1px;
	font-size:9px;
}

iframe#ie6selectMasker {
	border:4px red solid;
	display:none;/*sorry for IE5*/
	position:absolute;/*must have*/
	top:0;/*must have*/
	left:0;/*must have*/
	z-index:1;/*must have*/
	filter:mask();/*must have*/
	width:3000px;/*must have for any big value*/
	height:3000px;/*must have for any big value*/
}


/*
////////
	Cat selector textarea replacement using AJAX
////////
*/

.catsel-display ul {
	margin:0 0 0 1.5em;
	padding:0;
}

.catsel-display li {
}


/*
////////////////
	Generic portal
////////////////
*/


.portal {
	border:1px white solid;
	padding:1px;
	margin:0;
	background:black;
	width:32em;
	min-height:10em;
	margin-left:auto;
	margin-right:auto;
	top:30%;
	position:absolute;
	z-index:100;
	overflow:hidden;
	zoom:1;
}
.portalContent {
	width: 100%;
	overflow: auto;
	background: #EEEEEE;
	padding: 3px 0;
	min-height: 14em;
	max-height: 32em;
	zoom: 1;
}

.portalTitle {
	background:silver;
	color:white;
	border-bottom:1px gray solid;
	position:relative;
	zoom:1;
}
.portalTitle h4 {
	margin:0;
	padding:3px 10px;
	border-top:1px white solid;
	border-bottom:1px dimgray solid;
	}
.portalTitle .widgets {
	float:right;
}
.portalTitle .widgets button {
	margin:2px 2px 0 0;
	padding:0 1px;
	font-size:9px;
}

.portal input.format-d-m-y {
	width:auto;
}
.portal input,
.portal textarea {
	width:22em;
}

/*
////////////////
	Image group : Display all images for given item in new window
////////////////
*/

div.imagegroup {
	overflow: hidden;
	border-bottom: 1px grey solid;
}
div.imagegroup .image {
	float: left;
	clear: left;
	border: 1px grey solid;
	background: #fff;
	padding: 3px;
	display: block;
}
div.imagegroup .image span {
	display: block;
	padding: 2px;
}



/*
////////////////
	Live validation javascript
////////////////
*/

.LV_validation_message{
    font-weight:bold;
    margin:0 0 0 5px;
}

.LV_valid {
    color:#00CC00;
}
	
.LV_invalid {
    color:#CC0000;
}
    
.LV_valid_field,
input.LV_valid_field:hover, 
input.LV_valid_field:active,
textarea.LV_valid_field:hover, 
textarea.LV_valid_field:active {
    border: 1px solid #00CC00;
}
    
.LV_invalid_field, 
input.LV_invalid_field:hover, 
input.LV_invalid_field:active,
textarea.LV_invalid_field:hover, 
textarea.LV_invalid_field:active {
    border: 1px solid #CC0000;
}

/*
////////////////
	Orverrides for forms displayed within the ModalBox panel
////////////////
*/
#MB_content .innerpanel,
#MB_content .fieldset {
	background: none;
	border: none;
}
#MB_content .fieldset h2 {
	background: none;
}
#MB_content .fieldset h2 small {
	color: #666;
}
#MB_content div.invalid {
	border: 1px silver dotted;
}
