/***** Restructure this first ****/
/*
*{
    margin:0px;
    padding:0px;
}
*/

#content{
margin:0px; padding:0px; border:0px; text-align: center;	width:100%;	height:100%; position:relative;
}
#wrapper{
    -moz-box-shadow:0px 0px 3px #aaa;
    -webkit-box-shadow:0px 0px 3px #aaa;
    box-shadow:0px 0px 3px #aaa;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    border:1px solid #526477;
    background-color:#f9f9f9;
    overflow:hidden;
}
#steps{    
    overflow:hidden;
	position:relative;
}
.step{
    float:left;
	width:100%;
	position:relative;
}
#navigation{
    /* height:25px; */
    background-color:#e9e9e9;
    border:0px solid #fff;
	
	padding-left:10px;
	/* fallback */
	background-color: #1a82f7;
	background: url(images/linear_bg_2.png);
	background-repeat: repeat-x;

	/* Safari 4-5, Chrome 1-9 */
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#8b9bb3), to(#4f5e76));

	/* Safari 5.1, Chrome 10+ */
	background: -webkit-linear-gradient(top, #526477, #90aac4);

	/* Firefox 3.6+ */
	background: -moz-linear-gradient(top, #526477, #90aac4);

	/* IE 10 */
	background: -ms-linear-gradient(top, #4f5e76, #8b9bb3);

	/* Opera 11.10+ */
	background: -o-linear-gradient(top, #526477, #90aac4);
	
    /*border-bottom-left-radius:10px;
    border-bottom-right-radius:10px; */
}
#navigation ul{
/*    list-style:none;
	float:left;
	margin-left:22px;*/

	margin: auto; padding:0px; padding-right:2px; height: 23px; overflow:hidden; list-style:none; position: relative; 

}
#navigation ul li{
/*	float:left;
    border-right:1px solid #ccc;
    border-left:1px solid #ccc;
    position:relative;
	margin:0px 2px;*/
	
	margin:0px; padding:0px; border:0px; position: relative;
	display:inline-block; float:left; margin-right:3px;
	height: 100%; width:200px;		
}
#navigation ul li a{
    display:block;
    height:25px;
    background-color:#444;
    color:#777;
    outline:none;
    font-weight:bold;
    text-decoration:none;
    line-height:25px;
	
    padding:0px 20px;
	
    border-top-left-radius:4px;
    border-top-right-radius:4px; 	
    -moz-top-left-radius:4px;
	-moz-top-right-radius:4px;
    -webkit-top-left-radius:4px;
	-webkit-top-right-radius:4px;
		
    border-right:1px solid #d9dfe7;
    border-left:1px solid #d9dfe7;
	
    background:#f0f2f7;
}
#navigation ul li a:hover,
#navigation ul li.selected a{
    background:#d9dfe7;
    color:#666;
    text-shadow:1px 1px 1px #fff;
}
span.checked{
    background:transparent url(../images/checked.png) no-repeat top left;
    position:absolute;
    top:0px;
    left:1px;
    width:20px;
    height:20px;
}
span.error{
    background:transparent url(../images/error.png) no-repeat top left;
    position:absolute;
    top:0px;
    left:1px;
    width:20px;
    height:20px;
}
#steps form fieldset{
    border:none;
    padding-bottom:20px;
}
#steps form legend{
    text-align:left;
    background-color:#f0f0f0;
    color:#666;
    font-size:24px;
    text-shadow:1px 1px 1px #fff;
    font-weight:bold;
    float:left;
    width:590px;
    padding:5px 0px 5px 10px;
    margin:10px 0px;
    border-bottom:1px solid #fff;
    border-top:1px solid #d9d9d9;
}

/***** Restructure this first ****/

/*** -------------------------- Expression Builder Control Styles -------------------------------- ***/
.expr-container {
  font-size: 13px;
  position: relative;
  display: inline-block;
  zoom: 1;
  width:98%;
  border: 1px solid transparent;  
  *display: inline;
  border: 1px solid #aaa; 
  background-color: #fff;
  
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);    
}
.expr-container-focus {
  -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  -moz-box-shadow   : 0 0 5px rgba(0,0,0,.3);
  box-shadow        : 0 0 5px rgba(0,0,0,.3);
  border: 1px solid #5897fb;
}
div.expr-container ul.selected-expr {
  margin: 0;
  padding: 0px;
  cursor: text;
  overflow: hidden;
  height: auto !important;
  position: relative;
  z-index:4000;  
  display: block;
}
ul.selected-expr li {
  float: left;
  list-style: none;
}
div.expr-container ul.selected-expr li.expr-field {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
div.expr-container ul.selected-expr li.expr-field input.expr-inp-field {
  color: #666;
  background: transparent !important;
  border: 0 !important;
  height: 15px;
  padding: 5px;
  margin: 1px 0;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow   : none;
  box-shadow        : none;
}
div.expr-container ul.selected-expr li.selected-token {
  -webkit-border-radius: 3px;
  -moz-border-radius   : 3px;
  border-radius        : 3px;
  -moz-background-clip   : padding;
  -webkit-background-clip: padding-box;
  background-clip        : padding-box;
  background-color: #e4e4e4;
  /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 ); */
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%); 
  -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  -moz-box-shadow   : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  box-shadow        : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  color: #333;
  border: 1px solid #aaaaaa;
  line-height: 13px;
  padding: 3px 5px 3px 5px;
  margin: 3px 0 3px 5px;
  position: relative;
  cursor: default;
}
div.expr-container ul.selected-expr li.control {
	color: #6192C9;
}
div.expr-container ul.selected-expr li.arithoperator {
	color: #F72323;
	font-weight:bold;
}
div.expr-container ul.selected-expr li.relationaloperator {
	color: #FF833B;
	font-weight:bold;
}
div.expr-container ul.selected-expr li.groupingoperator {
	color: #27873E;
	font-weight:bold;
}
div.expr-container ul.selected-expr li.logicaloperator {
	color: #4522B5;
	font-weight:bold;
}

div.expr-container ul.selected-expr li.selected-token-delete {
  background: #d4d4d4;
}

div.tokencontainer {
  background: #fff;
  border: 1px solid #aaa;
  position: absolute;
  overflow-y:auto;
  overflow-x: visible;
  -webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
  -moz-box-shadow   : 0 4px 5px rgba(0,0,0,.15);
  box-shadow        : 0 4px 5px rgba(0,0,0,.15);
  z-index: 40010;
}
table.tokenitems {
  margin: 0px;
  padding: 0px;
}
table.tokenitems tr.tokenitemrow, table.tokenitems tr.tokenitemrow td {
  cursor: pointer;
  overflow: visible;
  margin: 0px;
  padding: 0px 2px 0px 0px;
  border-right: 1px solid #aaa;
  white-space:nowrap;
  font-size:13px;
}
table.tokenitems tr.active-result {
  cursor: pointer;
}

table.tokenitems tr.l_focus {
  background-color: #3875d7;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );  
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
  background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
  color: #fff;
}


/********** Check Box ***************/
	.cb-enable, .cb-disable, .cb-enable span, .cb-disable span { background: url(images/switch.gif) repeat-x; display: block; float: left; }
	.cb-enable span, .cb-disable span { line-height: 30px; display: block; background-repeat: no-repeat; font-weight: bold; }
	.cb-enable span { background-position: left -90px; padding: 0 10px; }	
	
	.cb-disable span { background-position: right -180px;padding: 0 10px; }
	
	.cb-disable-selected {
		/*background: url(images/switch.gif) repeat-x; display: block; float: left;
		line-height: 30px; display: block; background-repeat: repeat-x; font-weight: bold;			 */
		background-position: left -30px; color: #fff; 
	}
	.cb-disable-selected span { 
		 /*background: url(images/switch.gif) repeat-x; display: block; float: left; 
		line-height: 30px; display: block; background-repeat: no-repeat; font-weight: bold;			 */
		padding: 0px 10px;
		background-position: right -210px;		
	}
	
	.cb-enable.selected { background-position: 0 -30px; }
	.cb-enable.selected span { background-position: left -120px; color: #fff; } 