/* ==========================================================================
   tRules
   ========================================================================== */

/* stages */

#ruleSearchStage {
	position: relative;
}

#ruleEditStage {
	display: none;
}

#gutterContent .button {
	margin-bottom: 15px;
	width: 140px;
}

#gutterContent .button.small {
	margin-bottom: 5px;
	width: 100px;
}
   
   
/* rule search form */


#toggleSearch {
	display: none;
}

#ruleSearchResultsWrapper {
	min-height: 200px;
}

/* rule search results */

#ruleSearchResults {
	display: none;
}

#resultsTable .code-descr {
	display: none;
}

#resultsTable .keys,
#resultsTable .provider-type,
#resultsTable .service-category,
#resultsTable .benefit,
#resultsTable .status,
#resultsTable .actions {
	text-align: center;
}

#resultsTable.detailed .provider-type,
#resultsTable.detailed .service-category,
#resultsTable.detailed .benefit {
	text-align: left;
}

#resultsTable.detailed .provider-type .tooltip,
#resultsTable.detailed .service-category .tooltip,
#resultsTable.detailed .benefit .tooltip {
	border: none;
	cursor: default;
}

#resultsTable.detailed .code-descr {
	display: inline;
}

/* hide columns of certain fields chosen in search */
#resultsTable.tp-id .tp-id,
#resultsTable.client-id .client-id,
#resultsTable.ds-id .ds-id {
	display: none;
}


/* create new rule */

#newRuleModal #templates {
	transition: opacity 0.25s ease;
}

#newRuleModal #templates.hide-me {
	opacity: 0.0;
	visibility: hidden;
}


/* nested key lists */

.key-list {
	float: left;
	min-width: 120px;
	min-height: 35px;
	margin: 5px;
	padding: 2px 5px;
	border-width: 1px;
	border-style: solid;
	background: url(images/darker.png);
}

.key-list li {
	font-size: 12px !important;
	line-height: 12px !important;
	padding: 3px 0;
	white-space: nowrap;
}

.key-list li:first-child {
	font-size: 10px !important;
	font-family: 'OpenSansBold', Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	overflow: hidden;
}

.key-list li:first-child a {
	float: right;
	margin-left: 10px;
}


/* rule preview modal */

#viewRuleModal .heading {
	margin: 0;
}

#viewRuleModal #viewRuleDescr {
	width: 70%;
}

#viewRuleModal #ruleSettingsTable {
	max-width: 85%;
}

#viewRuleModal table.form th {
	white-space: nowrap;
}

#ruleStatusTable {
	float: right;
}


/* rule keys */

#ruleEditStage .tab-body {
	position: relative;
}

#ruleEditStage .tab-body > .btn-bar {
	position: absolute;
	right: 10px;
	top: -40px;
}

.keys .col {
	width: 31%;
}

.keys .picklist li {
	padding-left: 5px;
}


/* rule details */

#detailsTable th.codes {
	width: 40px;
}

#detailsTable th.description {
	width: 40%;
}

#detailsTable th.action,
#detailsTable th.actions {
	width: 80px;
}

#detailsTable .condition-data {
	display: none;
}


/* detail conditions */

#editExpressionModal #conditions .scroll-pane {
	height: 164px; /* 41 pixels per row*/
	overflow: hidden;
	overflow-y: auto;
}

/* ==========================================================================
   Expression Builder
   ========================================================================== */  

#string {
	margin-top: 20px;
	text-align: center;
	font-size: 1.5em;
}
   
#expression {
	margin-bottom: 20px;
	min-height: 55px;
}

#expression div {
	line-height: 54px;
	text-align: center;
}

#expression div em {
	font-family: 'OpenSansBold', Arial, Helvetica, sans-serif;
}

#expression span {
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	font-family: 'OpenSansSemibold', Arial, Helvetica, sans-serif;
	font-size: 1.5em;
	line-height: 1.5em;
	margin: 5px;
	color: #202020;
	cursor: pointer;
}

#expression .condition {
	padding: 0 8px;
	background: #baaf9a;
	border: 3px solid #a99b81;
	border-top-color: #cbc3b3;
	border-left-color: #cbc3b3;
	border-radius: 4px;
}

#expression .condition:hover {
	background-color: #c3b9a7;
}

#expression .condition.selected {
	background: #6ab8ea;
	border: 3px solid #8fcaef;
	border-top-color: #46a6e4;
	border-left-color: #46a6e4;
}

#expression .boolean {
	text-transform: uppercase;
	width: 30px;
	height: 30px;
	border-radius: 15px;
	line-height: 30px;
	font-size: 0.8em;
	background: #aaa;
}

#expression .not,
#expression .paren {
	cursor: default;
}

#expression .not {
	color: #ff6347;
}

#expression .paren {
	font-size: 2.0em;
	vertical-align: bottom;
	color: #959595;
}

#conditions li {
	overflow: hidden;
	padding: 4px 0;
}

#conditions li div {
	float: left;
	width: 22%;
	margin-right: 2%;
	vertical-align: middle;
}

#conditions li.header {
	color: #8fa4b2;
	text-shadow: 0px 1px 0px rgba(0,0,0,1.0);
	font-family: 'OpenSansSemibold', Arial, Helvetica, sans-serif;
	font-size: 0.9em;
	transition: opacity 0.25s ease;
}

#conditions li.hide-me {
	opacity: 0.0;
}

#conditions li select {
	width: 100%;
}

#conditions .remove {
	margin: 8px 0 0 -1%;
}