/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
   
   czerwony:##FFE8E8
   zielony:#caffad;
   żółty: #ffffcc
   szary: #eee;
	
   
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Intelihome */
html{
	margin:0;
	padding:0;
	height:100%;
	}
body{
	height:100%;
	background:#fff;
	font-family:tahoma;
	font-size:16px;
	padding:0;
	margin:0;
}
a{
	color:#ff0033;
	text-decoration:none;
	}
a:hover{
	color:#000;
	}
.hidden{
	display:none;
	}
.right{
	float:right;
	}
.unknown{
	background:#eee;
	}
.pending{
	background:#0033ff;
	}
.warning{
	background:#ffff00;
	}
.exception{
	background:#ff0033;
	}
.ok{
	background:#00ff33;
	}
.shadow{
	-webkit-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
	-moz-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
	box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
}
.to-right{
	text-align:right;
}
.hover-no-shadow:hover{
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
}
table{
	width:100%;
	display:table;
	margin-bottom:1.5em;
	}
table td.mobile-th,
table td.mobile-nl{
	display:none;
	}
table thead{
	background:#000;
	color:#fff;
	}
table tr{
	border-bottom:solid #000 1px;
	}
table th,
table td{
	padding:0.2em;
	padding-bottom:0.3em;
	text-align:left;
}
hr{
	display:block;
	clear:both;
	border:none;
	height:2px;
	background:#000;
	}
form{
	position:relative;
	text-align:left;
	}
form div{
	padding:0.3em;
	}
form label{
	display:inline-block;
	float:left;
	clear:left;
	width:30%;
	padding:0.4em;
	margin-bottom:0.4em;
	background:#eee;
	}
form span.value{
	display:inline-block;
	width:65%;
	padding:0.4em;
}
form em{
	display:inline-block;
	font-size:0.8em;
	font-style:italic;
}
form div.submit{
	text-align:center;
	}
input,
select,
button,
a.button{
	display:inline-block;
	width:auto;
	border:solid #888 0.1em;
	font-size:1em;
	padding:0.2em;
	}
input[type="submit"],
input[type="button"],
button,
a.button{
	min-width:6em;
	text-align:center;
	border:solid red 0.1em;
	background:#FFE8E8;
	color:#000;
	padding:0.4em 0.2em;
	margin:0;
	margin-right:0.5em;
	margin-bottom:0.5em;
	border-radius:5px;
	-webkit-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
	-moz-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
	box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
}
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
a.button:hover{
	background:#fff;
	color:#000;
	cursor:pointer;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
}
td.message{
	background:url('../img/message.png') no-repeat;
	background-size:50%;
	background-position:3% 50%;
}
td.warning{
	background:url('../img/warning.png') no-repeat;
	background-size:50%;
	background-position:5% 50%;
}
td.exception{
	background:url('../img/exception.png')no-repeat;
	background-size:40%;
	background-position:10% 50%;
}
.header-icon{
	display:inline-block;
	background-size:contain;
	padding-left:1.6em;
}

#container{
	min-height:100%;
	position:relative;
	padding:1em;
	padding-top:0;
	padding-bottom:0;
	}
#main-wrapper{
	overflow-y:auto;
	padding-top:5.5em;
	padding-bottom:6em;
	}
#header{
	position:fixed;
	width:auto;
	left:0;
	top:0;
	z-index:100;
	right:0;
	height:3em;
	padding:0.5em 1em;
	text-align:left;
	color:#000;
	border-bottom:solid #aaa 0.1em;
	background:radial-gradient(closest-corner, #fff, #ddd);
	}
#header h1{
	display:inline-block;
	float:left;
	padding:0;
	margin:0;
	font-size:2em;
	}
#header h1 a{
	display:inline-block;
	float:left;
	clear:both;
	text-shadow: 0.1em 0.1em 0.1em rgba(150, 150, 150, 1);
	color:#000;
	}
#logout-button{
	display:inline-block;
	float:right;
	font-size:1em;
	padding:1.5em 1.8em;
	color:transparent;
	clear:none;
	border-width:0.1em;
	border-color:none;
	border-style:solid;
	background:url('../img/logout.png');
	background-size:80% 80%;
	background-position:center center;
	background-repeat:no-repeat;
	border-radius:5px;
	}
#logout-button:hover{
	background-color:#fff;
	border-color:#aaa;
	}
#header-data{
	position:relative;
	display:block;
	width:80%;
	clear:left;
	float:left;
	padding:0.4em 0;
	color:#555;
	font-size:0.8em;
	text-align:left;
}
#header-data b{
	display:inline;
	font-weight:bold;
	}
ul.messenger{
	display:block;
	clear:both;
	margin-left:1.5em;
	min-height:2em;
	background:#caffdd;
	border:solid #009900 0.1em;
	padding:0.5em;
	font-size:1em;
	margin-bottom:1.5em;
cursor:pointer;
}
ul.messenger li{
	padding:0.5em 0;
	border-bottom:solid #999 0.1em;
	}
ul.messenger li:last-child{
	border:none;
	}
ul.messenger span.close-notification{
display:none;
/*
	display:inline-block;
	float:right;
	width:1em;
	height:1em;
	cursor:pointer;
	background:url('../img/close.png') center center no-repeat;
*/
}
ul.messenger span.close-notification:hover{
	background-color:#fff;
}
#messenger-warnings{
	background:#ffffcc;
	border:solid #bdb76b 0.1em;
}
#messenger-exceptions{
	background:#FFE8E8;
	border:solid red 0.1em;
}
#menu,
#menu li,
#menu a,
#menu li ul{
	display:block;
	}
#menu{
	float:left;
	width:15%;
	text-align:left;
	padding-bottom:1em;
}
#menu li a{
	height:2em;
	margin-bottom:0.5em;
	border:solid #000 2px;
	padding:0 0.5em;
	line-height:1.9em;
	background:#000;
	border-radius:5px;
	}
#menu li a:hover{
	color:#fff;
	}
#menu li a.active{
	background:#fff;
	color:#000;
	cursor:default;
}
#menu a.child-active{
	color:#fff;
	cursor:default;
}
#menu li ul li a{
	margin-left:1.5em;
	background:#000;
}
#main{
	width:85%;
	float:left;
}
#footer{
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	height:3em;
	padding:0.5em;
	border-top:solid #aaa 0.1em;
	background:radial-gradient(closest-corner, #fff, #ddd);
	text-align:center;
	}
#zend,
#arduino{
	display:inline-block;
	height:3em;
	width:30%;
	margin:0 auto;
	background-size:contain;
	}
#zend{
	background:url('../img/zend.png') no-repeat center center;
	}
#arduino{
	background:url('../img/arduino_logo.png') no-repeat center center;
	}
#breadcrumbs{
	height:3em;
	margin-left:1.5em;
	margin-bottom:1.5em;
	padding:0 0.5em;
	border:solid #aaa 0.1em;
	background:#eee;
}
#page-title{
	display:inline-block;
	float:left;
	height:3em;
	line-height:3em;
	padding:0 0.4em;
}
#toggle-menu{
	display:none;
}
#content{
	clear:both;
	margin-left:1.5em;
}
#form-cover{
	display:none;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	opacity:0.4;
	background:url('../img/refreshing.gif') no-repeat center center;
	background-color:gray;
	z-index:100;
}
#last-seconds{
	background:url('../img/wireless-small.png') left center no-repeat;
}
#message-count{
	background:url('../img/message-small.png') left center no-repeat;
}
#warning-count{
	background:url('../img/warning-small.png') left center no-repeat;
}
#exception-count{
	background:url('../img/exception-small.png') left center no-repeat;
}
table.nodes-table th,
table.nodes-table td{
	padding:0.4em 0.4em;
	margin:0;
	}
table.nodes-table span{
	display:inline-block;
	float:left;
	position:relative;
	line-height:2em;
	padding:0;
	}
table.nodes-table span.node-status{
	width:2em;
	height:2em;
	border:solid #000 1px;
	margin-right:1em;
	cursor:pointer;
	}
table.nodes-table span.node-status img{
	width:100%;
	height:auto;
	max-height:100%;
	}
table.nodes-table span.node-title{
	height:2em;
	width:30%;
	}
table.nodes-table span.title-exception{
	color:#ff0000;
	font-weight:bold;
	}
table.nodes-table span.node-value{
	min-width:300px;
	line-height:2em;
	box-shadow:none;
}
table.nodes-table span.node-value label{
	clear:left;
	padding:0 0.2em;
	margin-right:0.2em;
}
table.nodes-table span.node-value select{
	height:2.2em;
	margin-right:0.5em;
	border:solid #000 1px;
}
table.nodes-table span.node-value select,
table.nodes-table span.node-value label{
	float:left;
	margin-bottom:0.2em;
}
table.nodes-table span.node-value select{
	background-color:#ffffcc; 
}
table.nodes-table span.node-value select.status-1{
	background-color:#caffad;
}
table.nodes-table span.node-value select.status-0{
	background-color:#eee;
}
table.nodes-table span.node-value select option{
	background-color:#fff;
}
table.nodes-table span.node-value button.switch{
	background:#eee;
	border-color:#ccc;
	color:#999;
	padding-left:0.5em;
	padding-right:0.5em;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
}
table.nodes-table span.on-off,
table.nodes-table span.open-close,
table.nodes-table span.lck-unlck,
table.nodes-table span.temp,
table.nodes-table span.bar_perc,
table.nodes-table span.heat-area{
	width:6em;
	padding:0 1em;
	border:solid #000 1px;
}
table.nodes-table span.on,
table.nodes-table span.open,
table.nodes-table span.lck{
	background: linear-gradient(90deg, #fff 50%, #000 50%);
	text-align:right;
	color:#fff;
}
table.nodes-table span.off,
table.nodes-table span.close,
table.nodes-table span.unlck{
	background: linear-gradient(90deg, #eee 50%, #fff 50%);
}
table.nodes-table span.node-action{
	float:right;
	}
table.nodes-table span.node-cancel a{
	background-color:#ffffcc;
	border-color:#bdb76b;
	color:#000;
	}
table.nodes-table span.node-cancel a:hover{
	background:#fff;
	}
table.nodes-table span.node-action a{
	display:inline-block;
	float:right;
	width:6em;
	padding:0;
	text-align:center;
	border-radius:5px;
}
table.nodes-table span.node-data{
	display:none;
	clear:both;
	width:100%;
	height:auto;
	margin-top:1em;
	padding:0.2em 0.4em;
	background:#eee;
	font-size:0.9em;
	}
table.nodes-table span.node-data-label{
	display:inline-block;
	float:left;
	clear:left;
	width:35%;
	color:#555;
}
table.nodes-table span.node-data-value{
	display:inline-block;
	float:left;
	color:#555;
}
table.nodes-table span.heat-area{
	display:inline-block;
	width:10em;
	text-align:center;
	background:#eee;
}
table.nodes-table span.temp,
table.nodes-table span.heat-area-active{
	display:inline-block;
	width:6em;
	background:#eee;
	text-align:center;
	color:#fff;
	background: linear-gradient(90deg, #0033ff 25%, #ff0033 75%);
	}
table.nodes-table span.heat-area-active{
	width:10em;
}
table.nodes-table span.bar_perc{
	width:8em;
	padding:0;
	}
table.nodes-table span.percent {
	display:inline-block;
	position:absolute;   
	left:37%;
	color:#000;
	z-index:10;
}
table.nodes-table span.bar {
	height:2em;
	background-color:#ccc;
}
table.nodes-table span.unknown{
	border-color:#aaa;
	background:url('../img/unknown.png') no-repeat center;
	background-size:80%;
}
table.nodes-table span.disabled{
	border-color:#aaa;
	background:url('../img/disabled.png') no-repeat center;
	background-size:80%;
}
table.nodes-table span.ok{
	border-color:#aaa;
	background:url('../img/ok.png') no-repeat center;
	background-size:80%;
}
table.nodes-table span.pending{
	border-color:#aaa;
	background:url('../img/pending.png') no-repeat center;
	background-size:80%;
}
table.nodes-table span.warning{
	border-color:#aaa;
	background:url('../img/warning.png') no-repeat center;
	background-size:80%;
}
table.nodes-table span.exception{
	border-color:#aaa;
	background:url('../img/exception.png') no-repeat center;
	background-size:80%;
}
table.nodes-table a.small-link{
	float:right;
	margin-right:1em;
	font-weight:bold;
	font-size:0.8em;
}
table.nodes-table a.move{
	display:inline-block;
	position:relative;
	top:0.5em;
	float:right;
	width:1em;
	height:1em;
	height:100%;
	line-height:1em;
	margin-left:0.3em;
	margin-right:1em;
	color:transparent;
}
table.nodes-table a.move:hover{
	background-color:#fff;
}
table.nodes-table a.move-up{
	background:url('../img/up.png') no-repeat center;
	background-size:contain;
}
table.nodes-table a.move-down{
	background:url('../img/down.png') no-repeat center;
	background-size:contain;
}
#paginator-wrapper{
	width:100%;
	text-align:center;
	}
#paginator{
	display:block;
	margin:0 auto;
	}
#paginator li{
	display:inline-block;
	}
#paginator li a{
	display:inline-block;
	background:#000;
	color:#fff;
	float:none;
	border:solid #000 1px;
	padding:0.2em 0.4em;
	-webkit-box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.4);
	-moz-box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.4);
	box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.4);
	}
#paginator li a:hover{	
	background:#fff;
	color:#000;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
	}
#paginator li a.active,
#paginator li a.active:hover{
	background:#ff0000;
	color:#fff;
	cursor:default;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
	}
#paginator li a.disabled,
#paginator li a.disabled:hover{
	color:#000;
	background:#fff;
	border:#fff;
	cursor:default;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
	}
/*
form#stat-form{
	clear:both;
	overflow-y:auto;
	border:solid #ccc 1px;
	margin-bottom:2em;
	line-height:1.5em;
	padding:1em;
	}
form#stat-form div{
	display:inline-block;
	width:auto;
	float:left;
	padding:0;
	padding-right:1em;
	}
form#stat-form label,
form#stat-form input{
	display:inline-block;
	width:auto;
	float:none;
	}
form#stat-form div.right,
form#stat-form input.right{
	float:right;
	padding-right:0;
	}
*/
div.chart-wrapper{
	margin-bottom:2em;
	}
/* 
	for android: max-device-width:680px
	for windows: max-width
	for handheld: handheld
	
*/

@media only screen and (max-device-width:680px)
{

	html,
	body {
		width:100%;
		font:40px sans-serif;
		background: #fff;
		color: #000;
		margin: 0;
		}
	.hide-mobile{
		display:none;
		}
	td.message,
	td.warning,
	td.exception{
		background-size:contain;
	}
	#main-wrapper{
		padding-top:5em;
		padding-bottom:3em;
		}
	#containter{
		width:100%;
		clear:both;
		float:none;
		padding:0;
		margin:0;
		}
	#header,
	#menu,
	#breadcrumbs,
	#messenger,
	#main,
	#content,
	#footer
	{
		width:100%;
		clear:both;
		float:none;
		margin:0;
		margin-bottom:1em;
		padding:0;
	}
	#footer{
		margin:0;
		}
	#breadcrumbs{
		width:auto;
		}
	#header{
		width:auto;
		padding:1em;
		}
	#header h1{
		float:right;
		}
	#header a{
		float:left;
		}
	#header-data{
		float:right;
		clear:none;
		text-align:right;
		font-size:0.6em;
		}
	#menu{
		position:absolute;
		z-index:100;
		left:0;
		width:70%;
		background:#eee;
		padding:1em;
		border:solid #000 0.1em;
		border-left:none;
		border-top-right-radius:0.5em;
		border-bottom-right-radius:0.5em;
		}
	#header{
		font-size:30px;
		-webkit-box-shadow:none;
		-moz-box-shadow:none;
		box-shadow:none;
		}
	#menu
	{
		display:none;
		background:radial-gradient(closest-corner, #fff, #ddd);
		-webkit-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
		-moz-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
		box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.4);
	}
	#menu li a,
	#menu li ul li a{
		padding:0.5em 0.5em;
		}
	#toggle-menu
	{
		display:block;
		float:right;
		width:15%;
		height:100%;
		padding:0;
		margin:0;
		cursor:pointer;
		font-size:0;
		background:url('../img/menu.png') no-repeat left center;
		background-size:100%;
	}
	ul.messenger{
		margin-left:0;
		}
	ul.messenger li span{
		display:inline-block;
		clear:both;
	}
	table th,
	table td{
		padding-top:0.8em;
		padding-bottom:0.8em;
		}
	table tr.mobile-stacked{
		border-bottom:solid #fff 1em;
		background:#eee;
		}
	table td.mobile-th{
		display:block;
		width:18%;
		height:100%;
		min-height:100%;
		float:left;
		background:#000;
		color:#fff;
		}
	table td.mobile-td{
		display:table-cell;
		width:78%;
		margin:auto;
		float:right;
		clear:right;
		}
	table td.mobile-nl{
		display:block;
		width:100%;
		height:1px;
		}
	table.nodes-table tr{
		border-bottom:solid #000 0.1em;
		}
	table.nodes-table td{
		width:100%;
		padding-bottom:1em;
		}
	table.nodes-table span{
		float:right;
		margin:0;
		}
	table.nodes-table span.node-status{
		width:10%;
		float:right;
		clear:right;
		margin:0;
	}
	table.nodes-table span.node-title{
		width:80%;
		float:left;
		margin-bottom:1em;
	}
	table.nodes-table span.node-value{
		clear:both;
		float:right;
		width:120%;
		height:auto;
		padding:0;
		margin-bottom:0.5em;
		text-align:right;
	}
	table.nodes-table span.node-value label{
		width:30%;
	}
	table.nodes-table span.node-action{
		float:left;
		}
	table.nodes-table span.node-data{
		clear:both;
		float:right;
		width:100%;
		height:auto;
		font-size:34px;
		padding:0;
		}
	table.nodes-table span.node-data-label{
		width:50%;
		padding-left:1em;
		}
	table.nodes-table a.move{
		float:left;
		width:60px;
		height:60px;
		height:100%;
		line-height:60px;
		margin-left:1em;
		margin-bottom:1em;
	}
	table.nodes-table a.small-link{
		font-size:34px;
	}
	table.nodes-table span.bar {
		float:left;
	}
	form label{
		width:96%;
		height:auto;
		float:none;
		}
	form em{
		clear:both;
	}
	form input{
		max-width:90%;
		height:auto;
		float:none;
		}
	form#stat-form{
		padding-bottom:0;
		}
	form#stat-form label{
		width:30%;
		}
}