/*
 * "Calculadora de Gasto Eléctrico"
 * Estilos visuales de la página;
 */
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
.clearfix:after, .columns:after {content:".";visibility:hidden;display:block;height:0;clear:both;}
* html .clearfix, * html .columns {height: 1%;}
html, body {
	background:#9999CC;
	text-align:center;
}
#page {
	min-width:1000px;
	width:94%;
	margin:auto;
	margin-top:5px;
	background:#DDDDFF;
	padding:10px;
	-moz-border-radius: 15px;
	border-radius: 15px;
	color:#6666CC;
	text-align:left;
	font-family: Verdana, Geneva, sans-serif;
}

html.ios, html.ios body {
	background:#DDDDFF;
}
html.ios #page {
	-moz-border-radius: 0;
	border-radius: 0;
	width:auto;
}

h1 {
	font-size:150%;
	font-weight:bold;
	padding-bottom:10px;
}

h2 {
	font-size:120%;
	font-weight:bold;
	padding-bottom:10px;
}


#header h1 {
	color: #6666CC;
}



.panelbox {
	-moz-border-radius: 10px;
	border-radius: 10px;
	background:#EEEEFF;
	padding:10px;
}
.panelhead {
	margin-bottom:10px;
	position:relative;
}

.searchbox{
}
.searchbox form {
	width:93%;
	display:inline-block;
}
.searchbox label span {
	width: 105px;
	display: inline-block;
	float:left;
}
.searchbox input {
	width:65%;
	background:white;
	border:none;
	padding:3px;
	font-size:13px;
	-moz-border-radius: 7px;
	border-radius: 7px;
	display:inline-block;
	float:left;
}

.boxlevel {
	position:relative;
}
#level1 {
	padding-bottom:10px;
}
#level2 {
}

#elementbox {
	width:55%;
	float:left;
	height:500px;
}
#elementbox .searchbox input {
	width: 75%;
}

#categorybox {
	width:40%;
	float:right;
	height:500px;
}
#groupbox {
	width:55%;
	float:left;
	min-height:500px;
	padding-bottom: 3px;
}
#chartbox {
	width:40%;
	float:right;
	min-height:500px;
}

#setup {
	margin-bottom:5px;
	background:#FFAA00;
	color:#990000;
}
#setup a {
	text-decoration:none;
	display:inline-block;
	padding:20px;
	color:#990000;
}

.button {
	text-decoration:none;
	color:#CC0000;
	border:1px solid #CC0000;
	background:white;
	padding: 1px 0 1px 0;
	width:15px;
	display:inline-block;
	text-align:center;
	-moz-border-radius: 5px;
	border-radius: 5px;
	font-size:11px;
}
.button.new {
	color:#6666CC;
	border:1px solid #6666CC;
	background:#AAAAFF;
}
.button.delete {
	color:#CC0000;
	border:1px solid #CC0000;
	background:#FF9999;
}
.button.save {
	color:#009900;
	border:1px solid #009900;
	background:#66EE66;
}
.button.undo {
	color:#AA6600;
	border:1px solid #AA6600;
	background:#FFCC00;
}

.button.sendtogroup, .button.getelements {
	padding: 1px 0 0 0;
	font-size:10px;
	position:relative;
	top:-1px;
}

.button.amount {
	padding: 0 2px 0 2px;
	width:17px;
	height:17px;
	border:1px solid #9999CC;
	color:#9999CC;
	background:#EEEEFF;
	-moz-border-radius: 0;
	border-radius: 0;
}
/*
.button.amount.plus {
	-moz-border-top-left-radius: 5px;
	-moz-border-top-right-radius: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
.button.amount.minus {
	-moz-border-bottom-left-radius: 5px;
	-moz-border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}
*/



.button.amount.plus:active {
	border-color:#663300;
	color:#663300;
	background:#FF9900;
}
.button.amount.minus:active {
	border-color:#336600;
	color:#336600;
	background:#99CC00;
}

/* Nice Tricks with the Control Buttons */
.listitem .button.save {
	visibility:hidden;
}
.listitem .button.undo {
	visibility:hidden;
}
.listitem.editing .button.save {
	visibility:visible;
}
.listitem.editing .button.undo {
	visibility:visible;
}
.listitem.editing .button.delete {
	visibility:hidden;
}
.listitem.saving .button.delete {
	visibility:hidden;
}
.listitem.saving .button.save {
	visibility:hidden;
}
.listitem.saving .button.undo {
	visibility:hidden;
}
.listitem.saving.error .button.delete {
	visibility:visible;
}
.listitem.saving.error .button.save {
	visibility:visible;
}
.listitem.saving.error .button.undo {
	visibility:visible;
}

.button.getelements {
	visibility:hidden;
}
html.elementstogroup .button.getelements {
	visibility:visible;
}
.listitem.brandnew input {
	border:1px solid #CCCCFF;
}




.list {
	padding-right:5px;
}
.listholder {
	height:auto;
}

.sample {
	display:none;
}
/* A 'listitem' inside a 'list' must be normally visible */
.sample.v {
	display:auto;
}

.listitem {
	background:#F6F6FF;
	position:relative;
	padding:2px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.listitem.deleting {
	background:#FF9999 !important;
}
.listitem.editing {
	background:#FFFF99 !important;
}
.listitem.saving {
	background:#AAFFAA !important;
}
.listitem.deleting.error {
	background:#FFAA00 !important;
}
.listitem.editing.error {
	background:#FFAA00 !important;
}
.listitem.saving.error {
	background:#FFAA00 !important;
}
.listitem.sendingtogroup {
	background:#99CC00 !important;
}


.listitem label {
	font-size:11px;
}
.listitem input {
	background:transparent;
	border:none;
	font-size:12px;
	padding:0;
	border:1px solid transparent;
}
.listitem.brandnew input {
	border:1px solid #CCCCFF;
}


.button.new {
	float:right;
}


/*
 * ELEMENT ITEM
 */

#elementbody .list {
	height:470px;
	padding-right:2px;
	overflow-y: scroll;
}

.listitem.element {
	margin-bottom:3px;
	height:70px;
}
.listitem.element .controls {
	position:absolute;
	width:40px;
	height:55px;
	right:0px;
	top:0;
	padding:3px;
	text-align:right;
}
.listitem.element .controls .botton {
	margin-bottom: 3px;
}
.listitem.element .controls .sendtogroup {
}
.listitem.brandnew.element .controls .sendtogroup {
	visibility:hidden;
}

.listitem.element .fields {
	padding-right:40px;
}
.listitem.element .field {
	margin-bottom:3px;
}

.listitem.element .field label span {
	display: inline-block;
	width: 70px;
}

.listitem.element .field input{
	width: 75%;
}

.listitem.element .field.name {
	display: inline-block;
	width:70%;
}
.listitem.element .field.name input {
	font-weight:bold;
}

/* WATTS */
.listitem.element .field.watts {
	display: inline-block;
	width:120px;
}
.listitem.element .field.watts label span {
	display: inline;
}
.listitem.element .field.watts input {
	width: 45px;
	text-align:right;
}

/* DESCRIPCIÓN */
.listitem.element .field.description {
	width:100%;
}
.listitem.element .field.description input {
	width: 85%;
}

/* CATEGORY */
.listitem.element .field select {
	background: white;
	border:none;
}








/*
 * CATEGORY ITEM
 */

#categorybody .list {
	padding-right:2px;
	height:470px;
	overflow-y: scroll;
}

.listitem.category {
	margin-bottom:3px;
	height:45px;
}
.listitem.category .controls {
	position:absolute;
	width:40px;
	height:40px;
	right:5px;
	top:0;
	padding:2px 0 0 4px;
	text-align:right;
}
.listitem.category .fields {
	padding-right:45px;
}
.listitem.category .field {
	margin-bottom:3px;
}
.listitem.category .field label span {
	display: inline-block;
	width: 70px;
}
.listitem.category .field.name {
	width: 100%;
}
.listitem.category .field.name input {
	font-weight:bold;
	width: 70%;
}
/* DESCRIPCIÓN */
.listitem.category .field.description {
	width:100%;
}
.listitem.category .field.description input {
	width: 70%;
}

#category_1.listitem.category .button.delete {
	visibility:hidden;
}







/*
 * GROUP ITEM
 */

#groupbody .list {
	padding-right:2px;
}


.listitem.group {
	margin-bottom:7px;
	min-height:45px;
	background:#CCCCFF;
	padding:5px;
}
.listitem.group .controls {
	position:absolute;
	width:40px;
	height:40px;
	right:5px;
	top:0;
	padding:2px 0 0 4px;
	text-align:right;
}
.listitem.group .controls .getelements {
	font-size:9px;
	padding-top:2px;
}

.listitem.group .fields {
	padding-right:40px;
}
.listitem.group .field {
	margin-bottom:3px;
}
.listitem.group .field label span {
	display: inline-block;
	width: 70px;
}
.listitem.group .field.name {
	width: 100%;
}
.listitem.group .field.name input {
	font-weight:bold;
	width: 70%;
}
/* DESCRIPCIÓN */
.listitem.group .field.description {
	width:100%;
}
.listitem.group .field.description input {
	width: 70%;
}


.listitem.group .grouphascategorytitle {
	display:block;
	font-weight:bold;
}
.listitem.group .categoryhaselements {
	padding-left:20px;
}


.listitem.group .elementname {
	display:block;
	font-size:11px;
	font-weight:bold;
}

.listitem.group .haselements .listitem {
	background:transparent;
}

.listitem.group fieldset.amount, .listitem.group td.amount {
	position:relative;
	padding-right:30px;
	float:left;
}
.listitem.group .amount .text.amount{
	text-align:right;
	width:35px;
}
.listitem.group .amount .button.amount{
	position:absolute;
	top:-1px;
	right:-1px;
	font-size:9px;
	width:20px;
	height:10px;
	font-size:7px;
}
.listitem.group .amount .button.amount.minus{
	top:8px;
}


#groupbody table {
	font-size:11px;
	width:100%;
	background:#EEEEFF;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color:#6666CC;
	table-layout:fixed;
}
#groupbody table th {
	padding:2px;
	text-align:center;
	vertical-align:middle;
}
#groupbody table tr {
	height:18px;
	vertical-align:top;
}
#groupbody table td {
	border-top: 1px solid #CCCCFF;
	padding: 2px 2px 0 2px;
}

#groupbody tr.category {
	background:white;
}
#groupbody th.colname {
	/*width:250px;*/
}
#groupbody th.colwatts {
	width:40px;
}
#groupbody th.colpunta {
	width:140px;
}

#groupbody th.amount {
	width:55px;
}
#groupbody td.amount {
	padding:0 20px 0 0;
}
#groupbody td.elementname {
	padding-left:20px;
	position:relative;
}
#groupbody td.elementwatts {
	text-align:right;
}
.peaklabel {
	margin-left:5px;
}
.perc {
	margin-top:1px;
	margin-left:10px;
	margin-right:10px;
	width: 70px;
	display:inline-block;
}
.perc .ui-slider-range { background: #ef2929; }
.perc .ui-slider-handle { border-color: #ef2929; }

/* Making 'Delete' always visible inside the table */ 
#groupbody table tr .listitem.editing .button.delete {
	visibility:visible;
}
#groupbody table tr .button.delete {
	font-weight:normal;
	visibility:visible;
	position:absolute;
	left:2px;
	top:2px;
	font-size: 8px;
	width:10px;
	height:10px;
}

.powerchart {
	float:left;
	width:230px;
}
.costchart {
	float:left;
	width:300px;
}

.zerocost .powerchart, .zerocost .costchart  {
	display:none;
}

#groupbody table.summarytable {
	margin-top:5px;
	text-align:right;
}
#groupbody table.summarytable th {
	text-align:right;
	font-weight:bold;
}
#groupbody table.summarytable td, #groupbody table.summarytable th {
	padding:2px 10px 2px 10px;
}
#groupbody table.summarytable tfoot {
	font-weight:bold;
}




/*
 * BIG ERROR MESSAGE
 */

#errorwrapper {
	position:absolute;
	width:10px;
	height:10px;
	left:50%;
	top:-20px;
}
#errormessage {
	position:absolute;
	left:-350px;
	top:0;
	width:700px;
	height:120px;

	padding:25px 10px 10px 10px;
	background:#FF9999;
	color: #990000;
	border:2px solid #990000;
	text-align:center;

	-moz-border-radius: 10px;
	border-radius: 10px;
}
#errormessage.loading {
	display:none;
}


/*
 * DB RESTORE Button
 */

#dbrestore {
	font-size:10px;
	display:inline-block;
	width:70px;
	padding:2px;
	background:#BBBBFF;
	-moz-border-radius: 5px;
	border-radius: 5px;
	margin-top:5px;
	margin-right:10px;
	text-decoration:none;
	position:absolute;
	top:5px;
	right:0;
}
