/* -------------------------------------------------------------- 
   
   Stencil forms.css
   * Sets up default form styling.
  
-------------------------------------------------------------- */


.stn-form { width: 100%; padding: 5px; margin: 0 auto; }


.stn-form fieldset
{
	border: none;
	padding-top: 30px;;
	padding-bottom: 1.5em;
	margin-bottom: 2em;
	position: relative;
	
}

.stn-form legend 
{ 
	background: transparent;
	font-size: 16px;
	font-weight: bold; 
	font-style: italic;
	padding: 0 10px .5em; 
	display: block;
	margin-bottom: 0;
	border-bottom: 3px solid #EEE;
	width: 100%;
}

.stn-form legend { margin-bottom: 2.25em; }

@-moz-document url-prefix() { .stn-form legend { margin-bottom: 0 !important; } } 


legend span
{
	font-family: georgia;
	font-size: 30px;
	padding-right: .5em;
}





.stn-form label
{ 
	margin-right: 10px; 
	padding-right: 10px; 
	line-height: 2.25em;
	padding-bottom: .5em;
	width: 125px; 
	display: block; 
	float: left;  
	font-weight: bold; 
	text-align: right; 
	position: relative; 
}

	.stn-form label em.required { position: absolute; right: 0; font-size: 120%; font-style: normal; color: #C00; }

.stn-form .field input:focus,
.stn-form .field textarea:focus,
.stn-form .field select:focus { outline: none; border-color: #86C1D2; 	-moz-box-shadow: 1px 1px 10px #9CCCDA; -webkit-box-shadow: 1px 1px 10px #9CCCDA; }

.stn-form .field.error input,
.stn-form .field.error textarea,
.stn-form .field.error select { border-color: #c00 !important; -moz-box-shadow: 0px 0px 5px #F00 !important; -webkit-box-shadow: 0px 0px 5px #F00 !important; }

	.error > .errorText { display: block; }

	.errorText { display: none; font-size: 11px; color: #C00; margin-left: 150px; margin-top: .25em; }

.stn-form .field { margin-bottom: 2em; position: relative; }

	.stn-form .field input, .stn-form .field select, .stn-form .field textarea
	{
		padding: 6px;
		border: 1px solid #BBB;
		-moz-border-radius: 3px;	
		-webkit-border-radius: 3px;
		-moz-box-shadow: 1px 1px 3px rgba(0,0,0, 0.2);
	}
	
	.stn-form .field input[type=text],
	.stn-form .field input[type=email],
	.stn-form .field input[type=password]{
		width:200px;
	}
	.stn-form .date input[type=text]{
		width:100px;
	}
	.stn-form .field textarea{
		width:300px;
	}
	.stn-form .long input[type=text]{
		width:300px;
	}

	.stn-form .icon-textarea textarea{
		margin-left:145px;
		display:block;
	}
	
.stn-form .controlset .controlset-fields { margin-left: 150px; padding-top:5px; }
.stn-form #tabs-2 .controlset .controlset-fields { margin-left: 220px; padding-top:5px; }
.stn-form #tabs-2 div.field:nth-child(even),
.stn-form #tabs-3 div.field:nth-child(even){
	background: none repeat scroll 0 0 #F4F4F4;
}

	.stn-form .controlset .controlset-fields label
	{ 
		font-size: 11px;
		font-weight: normal;
		display: inline;
		width: auto;
		padding-left: 5px;
		float: none;
		text-shadow: none;
	}

	.stn-form .controlset .controlset-fields input { display: inline !important; float: none !important; border: none !important; }


.stn-form.label-top label { width: 100%; text-align: left; display: block; }
	.stn-form.label-top .field { margin-bottom: 1.5em;}
	.stn-form.label-top label em { position: relative; }
	.stn-form.label-top .controlset-fields { margin-left: 0;}
	.stn-form.label-top .actionrow { margin-left: 0; }
	.stn-form.label-top .help { padding-left: 0; margin-left: 0; }
	.stn-form.label-top .errorText { margin-left: 0; }
	.stn-form.label-top legend { padding: 0; }

.stn-form .actionrow { margin-left: 150px; }



.stn-form a.help{
	background: url(../../img/admin/help.png) no-repeat 0 0;
	width: 16px;
	height: 16px;
	display: inline-block;
	font-size: 0;
    position:relative;
    z-index:24;
    color:#000;
    left: 8px;
    top: 2px;
    text-decoration:none;
    outline: none;
}

.stn-form a.help:hover{z-index:25;}

.stn-form a.help span{display: none}

.stn-form a.help:hover span
{
    display:block;
    font-size: 11px;
    position:absolute;
    top:-6px; 
    left:1.5em; 
    width:17em;
    border:1px solid #DDD;
    padding: 3px 7px;
    background-color:#F1F1F1; color:#000;
    text-align: left;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 0 1px rgba(0,0,0,.25);
}


/** Add **/
html, body { height: 100%; }
div.color-picker { border-left: 1px solid #000; border-top: 1px solid #000; position: absolute; left: 0px; top: 0px; padding: 0px; z-index: 9999; }
div.color-picker ul { list-style: none; padding: 0px; margin: 0px; float: left; }
div.color-picker ul li { display: block; width: 15px; height: 15px; border-right: 1px solid #000; border-bottom: 1px solid #000; margin: 0px; float: left; cursor: pointer; position: relative; }
div.color-picker ul li:last-child:after {
	-moz-transform: rotateZ(45deg);
	-webkit-transform: rotateZ(45deg);
	transform: rotateZ(45deg);
}
div.color-picker ul li:last-child:before {
	-moz-transform: rotateZ(-45deg);
	-webkit-transform: rotateZ(-45deg);
	transform: rotateZ(-45deg);
}
div.color-picker ul li:last-child:after,
div.color-picker ul li:last-child:before {
	content: "";
	position: absolute;
	left: -21%;
	top: 50%;
	width: 22px;
	height: 1px;
	background-color: #999;	
}
input.color_picker {
	color: #FFF;
	width: 80px !important;
}

.stn-form .field [readonly] {
	background: #eee;
}
.stn-form .field [readonly]:focus {
	border-color: #BBB;
	box-shadow: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
}
.stn-form .field [disabled] {
	color: #000;
	background: #eee;
}
.stn-form .field .color_picker {
	background: #fff;
}

.ms-container{
  background: transparent url('/img/switch.png') no-repeat 50% 50%;
  width: 370px;
}

.ms-container:after{
  content: ".";
  display: block;
  height: 0;
  line-height: 0;
  font-size: 0;
  clear: both;
  min-height: 0;
  visibility: hidden;
}

.ms-container .ms-selectable, .ms-container .ms-selection{
  background: #fff;
  color: #555555;
  float: left;
  width: 45%;
}
.ms-container .ms-selection{
  float: right;
}

.ms-container .ms-list{
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
  -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
  -o-transition: border linear 0.2s, box-shadow linear 0.2s;
  transition: border linear 0.2s, box-shadow linear 0.2s;
  border: 1px solid #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  position: relative;
  height: 200px;
  padding: 0;
  overflow-y: auto;
}

.ms-container .ms-list.ms-focus{
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  outline: 0;
  outline: thin dotted \9;
}

.ms-container ul{
  margin: 0;
  list-style-type: none;
  padding: 0;
}

.ms-container .ms-optgroup-container{
  width: 100%;
}

.ms-container .ms-optgroup-label{
  margin: 0;
  padding: 5px 0px 0px 5px;
  cursor: pointer;
  color: #999;
}

.ms-container .ms-selectable li.ms-elem-selectable,
.ms-container .ms-selection li.ms-elem-selection{
  border-bottom: 1px #eee solid;
  padding: 2px 10px;
  color: #555;
  font-size: 14px;
}

.ms-container .ms-selectable li.ms-hover,
.ms-container .ms-selection li.ms-hover{
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background-color: #08c;
}

.ms-container .ms-selectable li.disabled,
.ms-container .ms-selection li.disabled{
  background-color: #eee;
  color: #aaa;
  cursor: text;
}

.stn-form .field input:checked {
	background: none repeat scroll 0 0 #78F000;
	outline: 2px solid #09F;
	outline-offset: 1px;
	-moz-box-shadow: 1px 1px 1px #9CCCDA;
	-webkit-box-shadow: 1px 1px 1px #9CCCDA;
}

.stn-form .field input:checked {
	background: none repeat scroll 0 0 #78F000;
	outline: 2px solid #09F;
	outline-offset: 1px;
	-moz-box-shadow: 1px 1px 1px #9CCCDA;
	-webkit-box-shadow: 1px 1px 1px #9CCCDA;
}

.stn-form .controlset .controlset-fields label {
	font-size: 14px;
}
.stn-form input.shortnum {
	width: 50px !important;
}
.stn-form input.middlenum {
	width: 100px !important;
}
.stn-form input.longnum {
	width: 150px !important;
}
.stn-form input.longtext {
	width: 300px !important;
}
.stn-form input.x-longtext {
	width: 450px !important;
}
.stn-form input.shorttext {
	width: 100px !important;
}
.stn-form input.x-shorttext {
	width: 60px !important;
}
.stn-form .info p {
	margin: 1em 0 0.5em 170px;
	color: #ff0000;
}

.stn-form #tabs ul li.required a:after {
	vertical-align: middle;
	color: #e32;
	content: '*';
	display: inline;
}

.stn-form div.errorTitle {
	font-size: 14px;
	color: #C00;
	margin-left: 150px;
	margin-top: .25em;
}

.ui-datepicker {
	z-index: 1000 !important;
}

.stn-form div.group-box {
	border: 1px solid #BBB;
	padding: 10px 0px 0px 0px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	margin: 20px 0px;
}

.stn-form div.group-fields {
	margin-bottom: 3em;
}

.stn-form div.group-fields div.field {
	float: left;
	position: static;
}

.stn-form div.group-fields div.field:last-child {
	float: none;
}

.error-message {
	font-size: 11px;
	color: #C00;
	margin-left: 150px;
	margin-top: .25em;
	background: inherit;
	display: block;
	text-shadow: none;
	border: 0;
}

.search-box .stn-form .controlset-fields {
	float: none;
	margin-right: 20px;
}
.search-box .stn-form .controlset-fields:nth-last-of-type(2) {
	float: left;
}

.search-box .stn-form .controlset-fields label {
	margin-right: 5px;
	padding: 3px 10px 3px 5px;
	font-weight: normal;
	display: inline-block;
	float: none;
	font-size: 16px;
	min-width: 40px;
	width: auto;
	text-align: left;
	line-height: 1.5em;
}

.stn-form a.urlCheck {
	font-size: 14px;
	margin: 0 10px;
}

#dialog_parent .stn-form fieldset {
	margin-bottom: 0px;
	padding-bottom: 0px;
}

.stn-form .controlset > .field {display: inline !important; float: none !important;}
.stn-form .controlset > .field input { display: inline !important; float: none !important; border: 1px solid #BBB !important; }

.shops .controlset-fields {
	width: 500px;
}

.field .checkbox {
	min-width: 78px;
	display: inline-block;
}
.field .checkbox label {
	font-weight: normal;
	position: static;
	width: auto;
	display: inline-block !important;
	min-width: 50px;
	text-align: left !important;
}
.field .checkbox > * {
	float: none;
}

.schedule-body .field.shops {
	margin-left: 60px;
}


.textEditor {
	display: inline-block !important;
	visibility: visible !important;
}
.htmlEditor {
	display: none !important;
	visibility: hidden !important;
}
