/* =============================================================================
CAKE ELEMENTS
============================================================================= */

/* Tables */
table {
	background: #fff;
	border:1px solid #ccc;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	background: #f2f2f2;
	border:1px solid #bbb;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	text-align: center;
}
th a {
	/*background:#f2f2f2;*/
	display: block;
	padding: 2px 4px;
	text-decoration: none;
	color:#EEEEEE;
}
th a:hover {
	background: #0085cc;
	color: #333;
	text-decoration: none;
}
table tr td {
	background: #fff;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: left;
	vertical-align: top;
}
table tr td.numeric {
	text-align:right;
}
table .indice {
	text-align:center;
	width:40px;
}
table tr.altrow td {
	background: #f4f4f4;
}
td.actions {
	text-align: center;
	white-space: nowrap;
	width:100px;
}
td.actions a {
	margin: 0px 6px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}

/* Paging */
div.paging {
	background:#fff;
	color: #ccc;
	margin-bottom: 2em;
}
div.paging div.disabled {
	color: #ddd;
	display: inline;
}
div.paging span {
}
div.paging span.current {
	color: #000;
}
div.paging span a {
}

/* Scaffold View */
/*
dl {
	line-height: 2em;
	margin: 0em 0em;
	width: 60%;
}
dl.altrow {
	background: #f4f4f4;
}
dt {
	font-weight: bold;
	padding-left: 4px;
	vertical-align: top;
}
dd {
	margin-left: 10em;
	margin-top: -2em;
	vertical-align: top;
}
*/

/* Forms */
form {
	clear: both;
	margin-right: 20px;
	padding: 0;
	width: 80%;
}
fieldset {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 16px 20px;
}
fieldset legend {
	background:#fff;
	color: #e32;
	font-size: 160%;
	font-weight: bold;
}
fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 16px 10px;
}
fieldset fieldset legend {
	font-size: 120%;
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}
form div {
	clear: both;
	margin-bottom: 1em;
	/*padding: .5em;*/
	vertical-align: text-top;
}
form div.input {
	color: #444;
}
form div.required {
	color: #333;
	font-weight: bold;
}
form div.submit {
	border: 0;
	float:left;
	/*
	clear: both;
	margin-top: 10px;
	margin-left: 140px;
	*/
}
label {
	display: block;
	font-size: 110%;
	padding-right: 20px;
}
input, textarea {
	clear: both;
	font-size: 140%;
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 2px;
	width: 100%;
}
select {
	clear: both;
	font-size: 120%;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	width: 100%;
}
option {
	font-size: 120%;
	padding: 0 3px;
}
input[type=checkbox] {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 0 3px 7px 0;
}
div.radio label {
	margin: 0 0 6px 20px;
}
input[type=submit] {
	display: inline;
	font-size: 110%;
	padding: 2px 5px;
	width: auto;
	vertical-align: bottom;
}

/* Notices and Errors */
div.message {
	clear: both;
	color: #900;
	font-size: 140%;
	font-weight: bold;
	margin: 1em 0;
}
div.error-message {
	clear: both;
	color: #900;
	font-weight: bold;
}
p.error {
	background-color: #e32;
	color: #fff;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
p.error em {
	color: #000;
	font-weight: normal;
	line-height: 140%;
}
.notice {
	background: #ffcc00;
	color: #000;
	display: block;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
.success {
	background: green;
	color: #fff;
}

/*  Actions  */
div.actions ul {
	margin: 0px 0;
	padding: 0;
}
div.actions li {
	display: inline;
	list-style-type: none;
	line-height: 2em;
	margin: 0 2em 0 0;
	white-space: nowrap;
}
div.actions ul li a {
	background:#fff;
	color: #003d4c;
	text-decoration: none;
}
div.actions ul li a:hover {
	color: #333;
	text-decoration: underline;
}

/* Related */
div.related {
	clear: both;
	display: block;
}

/* Debugging */
pre {
	color: #000;
	background: #f0f0f0;
	padding: 1em;
}
pre.cake-debug {
	background: #ffcc00;
	font-size: 120%;
	line-height: 140%;
	margin-top: 1em;
	overflow: auto;
	position: relative;
}
div.cake-stack-trace {
	background: #fff;
	border: 4px dotted #ffcc00;
	color: #333;
	margin: 0px;
	padding: 6px;
	font-size: 120%;
	line-height: 140%;
	overflow: auto;
	position: relative;
}
div.cake-code-dump pre {
	position: relative;
	overflow: auto;
}
div.cake-stack-trace pre, div.cake-code-dump pre {
	color: #000;
	background-color: #F0F0F0;
	margin: 0px;
	padding: 1em;
	overflow: auto;
}
div.cake-code-dump pre, div.cake-code-dump pre code {
	clear: both;
	font-size: 12px;
	line-height: 15px;
	margin: 4px 2px;
	padding: 4px;
	overflow: auto;
}
div.cake-code-dump span.code-highlight {
	background-color: #ff0;
	padding: 4px;
}
div.code-coverage-results div.code-line {
	padding-left:5px;
	display:block;
	margin-left:10px;
}
div.code-coverage-results div.uncovered span.content {
	background:#ecc;
}
div.code-coverage-results div.covered span.content {
	background:#cec;
}
div.code-coverage-results div.ignored span.content {
	color:#aaa;
}
div.code-coverage-results span.line-num {
	color:#666;
	display:block;
	float:left;
	width:20px;
	text-align:right;
	margin-right:5px;
}
div.code-coverage-results span.line-num strong {
	color:#666;
}
div.code-coverage-results div.start {
	border:1px solid #aaa;
	border-width:1px 1px 0px 1px;
	margin-top:30px;
	padding-top:5px;
}
div.code-coverage-results div.end {
	border:1px solid #aaa;
	border-width:0px 1px 1px 1px;
	margin-bottom:30px;
	padding-bottom:5px;
}
div.code-coverage-results div.realstart {
	margin-top:0px;
}
div.code-coverage-results p.note {
	color:#bbb;
	padding:5px;
	margin:5px 0 10px;
	font-size:10px;
}
div.code-coverage-results span.result-bad {
	color: #a00;
}
div.code-coverage-results span.result-ok {
	color: #fa0;
}
div.code-coverage-results span.result-good {
	color: #0a0;
}

div#languages, div#login_info {
	float:right;
}

div#languages {
	margin-right:20px;
}

div#languages a {
	margin-left:2px 0 2px 0;
	padding:0;
}

div#languages img {
	margin:0;
	border:1px solid #333;
	margin:0;
}

div#languages a.active img {
	border-color:#0099FF;
}


input[type=text].intd {
	width:inherit;
}

table div {
	padding:0;
	margin:0;
}


/**********************************
 * TEMPLATES INDEX
 **********************************/
.template_select_item {
	float:left;
	height:200px;
	margin-right:20px;
	margin-bottom:20px;
	height:300px;
}

.template_select_item a img {
	max-height:200px;
	max-width:200px;
	width:auto;
	#border:0;
	border:8px solid #FFF;
}

.template_select_item a img:hover {
	border-color:#C0C0C0;
}

.template_select_item a img.selected {
	border:8px solid #336699;
}

.template_select_item a {
	
}

.template_select_item a span {
	text-decoration:none;
	display:block;
	margin-left:8px;
	width:180px;
}

#navbar {
	display:none;
}

iframe.preview {
	width:100%;
	height:500px;
	border:3px solid #C0C0C0;
}

#templates_index hr {
	margin-top:20px;
	margin-bottomm:20px;
	border:3px solid #B0B0B0;
}

.template_item {
	float:left;
	width:150px;
	margin:0 20px 10px 0;
}

.template_item .thumbnail {
	width:140px;
	height:140px;
	border:5px solid #B0B0B0;
	padding:0;
	text-align:center;
	background-color:#B0B0B0;
	float:left;
}

.template_item .thumbnail > img {
	max-width:140px;
	max-height:140px;
}

.template_item .thumbnail:hover {
	border-color:#777777;
}

.template_item .template_desc {
	float:left;
}

.template_item .template_desc .template_name {
	font-weight:bold;
}

.definitive_file {
	font-weight:bold;
}

.temporal_file {
	
}

#templates_index .selected {
	border-color:blue;
}


/********************************************************
 * LEFT SIDE BAR
 ********************************************************/

#left-sidebar {
	color:#000;
	border: 1px solid #C0C0C0;
	width: 240px;
	padding:20px;
	padding-top:10px;
	float:left;
	margin-right:20px;
}

#left-sidebar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#left-sidebar ul li a {
	padding-top:6px;
	padding-bottom:6px;
	padding-left:0px;
	display:block;
}

#left-sidebar ul li a:hover {
	text-decoration:underline;
}

/********************************************************
 * DINAMIC FIELDS
 ********************************************************/
#dynamic_fields .dynamic_field {
	padding:10px;
	display:block;
	border:2px solid #FFF;
	min-width:300px;
}

#dynamic_fields .dynamic_field:hover {
	background:#DDDDFF;
	border:2px dotted #c0c0c0;
}

#dynamic_fields .dynamic_field label {
	margin-right: 5px;
}

#dynamic_fields .dynamic_field .options {
	display:block;
	text-align:right;
	margin-bottom:-5px;
}

#dynamic_fields #conf_box {
	background:#333;
	color:white;
	display:block;
	width: 255px;
	min-height:100px;
	left:334px;
	position:absolute;
	display:none;
	padding:10px;
} 

#dynamic_fields #conf_box form {
	margin-bottom:30px;
}

#dynamic_fields #conf_box form .field input, #dynamic_fields #conf_box form .field textarea {
	width:200px;
	float:right;
}


#dynamic_fields #conf_box form textarea {
	height:100px;
}


#dynamic_fields #conf_box form label {
	width:70px;
	float:right;
}

#dynamic_fields #conf_box #btn_done {
	position:absolute;
	bottom:10px;
	right:10px;
}

#dynamic_fields #conf_box #btn_remove {
	position:absolute;
	bottom:10px;
	left:10px;
}

#dynamic_fields #conf_box table tr td {
	vertical-align:top;
}

#dynamic_fields .selected_field {
	border:2px solid #333;
}

#dynamic_fields .selected_field:hover {
	border:2px solid #333;
	background:#FFF;
}

#dynamic_fields .dynamic_field .dynamic_label {
	font-weight:bold;
	color:black;
}

textarea.code {
	width:100%;
	height:600px;
}

div.smart_list_filter {
	padding-top:5px;
	padding-bottom:5px;
	/* float:left; */
}


/********************************************************
 * STATS
 ********************************************************/

div.legend, div.legend table {
	width:auto;
	float:left;
}


/********************************************************
 * CONTACTS
 ********************************************************/
textarea.contacts_list {
	height:400px;
}


/********************************************************
 * LIVE SEARCH
 ********************************************************/
#livesearch input {
        width:190px;
}

.livesearch_results {
        width:inherit;
        background-color:#0085cc;
}

.livesearch_results a.item {
        width:inherit;
        display:block;
        padding:10px;
        border-bottom:1px solid #0065aa;
        text-decoration:none;
}

.livesearch_results a.item:hover {
        background-color:#1195dd;
}

.livesearch_results a.item h1 {
        display:block;
        margin-top:0;
        background:none;
        font-size:12px;
        margin-bottom:5px;
        color:#FFFFFF;
}

.livesearch_results a.item p {
        margin:0;
        color:#C6D2F4;
}

.livesearch_results a.item .highlight {
        background:#22a5ee;
}





/********************************************************
 * VISTAS
 ********************************************************/

.view dt {
        font-weight:bold;
        width:200px;
        text-align:right;
        margin-right:10px;
		float:left;
}

.view dt, .view dd {
/*	height:20px;*/
	display:block;
}

.view dd { 
	padding-left: 210px;
}

.view hr {
	margin-top:40px;
	margin-bottom:40px;
	border:3px solid #B0B0B0;
}


#login-box .permission_error {
	display:none;
}

.ui-sortable {
	cursor:move;
}

#flashMessage {
	display:none;
}

/********************************************************
 * SEND BUTTON ON SIDEBAR
 ********************************************************/
#aside #btn-send {margin:0 0 15px 0;}
#aside #btn-send a {float:left; padding-left:27px; height:37px; overflow:hidden; background:url("../design/btn-send-left.gif") 0 0 no-repeat; text-decoration:none; font-weight:bold; cursor:pointer;}
#aside #btn-send a span {float:left; display:block; width:163px; padding:8px 0 10px 10px; background:url("../design/btn-create-right.gif") -2px 0 no-repeat;}
#aside #btn-send a:hover {background-position:0 -37px;}


.layout_table, .layout_table tr, .layout_table tr td {
	border:0;
}


/********************************************************
 * SMART LISTS (DYNAMIC CONTACT GROUPS)
 ********************************************************/
.rules_containers {
	float:left;
	display:table;
}
.rules_containers .rules_row span.rule_field {
	font-weight:bold;
}
.rules_containers .rules_row span.rule_value {
	font-weight:bold;
	font-style:italic;
}
.rules_containers .rules_row div {
	float:left;
}


/********************************************************
 * STEPS
 ********************************************************/

#step_options {
	float:right;
	margin-top:30px;
}

.wave_mail_message {
	margin-left:210px;
}


/********************************************************
 * WAVES
 ********************************************************/

#content .priority { min-width:100px; }

#content .priority_1 {color:#000;}
#content .priority_2 {background-color:#AAAAFF;color:#000;}
#content .priority_3 {background-color:#0A79AE;}
#content .priority_4 {background-color:#FF5500;}
#content .priority_5 {background-color:#AA0000;}