body {
	font-family: sans-serif;
}

.current {
	width: 250px;
	position: relative;
	padding: 10px;
	padding-top: 30px;
	min-height: 200px;
	background: #f2f2f2;
	margin-bottom: 20px;
}

.current > * {
	transition: 2s ease height;
}

.current .timestamp {
	font-size: 12px;
	position: absolute;
	right: 15px;
	top: 15px;
}

.current .power_usage_all {
	width: 50px;
	background: #ff641e;
	bottom: 0px;
	position: absolute;
}

.current .power_pv {
	width: 35px;
	background: #ffc501;
	bottom: 0px;
	position: absolute;
}

.marker {
	position: absolute;
	left: 100%;
	right: 0px;
	border-top: 2px solid black;
	width: 120px;
	display: flex;
	align-items: start;
	justify-content: end;
	z-index: 10;
}
.power_usage_all .marker {
	width: 100px;
}

.marker .icon {
	font-size: 20px;
	padding-top: 3px;
}

.marker .value {
	line-height: 25px;
	height: 25px;
	padding-right: 10px;
}
.marker .value:after {
	content: 'KW';
	font-size: 10px;
	padding-left: 3px;
}

.current .power_pv .marker {
	border-color: #ffc501;
}
.current .power_pv[style="height: 0px;"] {
	display: none;
}

.current .power_pv .marker .icon {
	color: #ffc501;
}

.current .power_usage_all .marker {
	border-color: #ff641e;
}
.closeValue.current .power_usage_all .marker { 
	width: 190px;	
}
.current .power_usage_all .marker .icon {
	color: #ff631e;
}

.link {
	background: #f2f2f2;
	padding: 15px 20px;
	color: black;
	text-decoration: none;
	display: block;
	font-weight: 600;
	font-size: 14px;
}

.chart {
	display: flex;
	align-items: stretch;
	justify-content: start;
	width: 100%;
	min-height: 400px;
	position: relative;
	border-right: #f2f2f2 15px solid;
	box-sizing: border-box;
	margin-bottom: 10px;
}

.chart .time {
	flex-basis: 100%;
	position: relative;
	background: rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	
}

.chart .time  > * {
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	transition: 0.2s ease all;
}

.chart .power_pv {
	background: rgba(199, 199, 199, 0.4);
	border-top: #ffc401 4px solid;
	box-sizing: border-box;
}
.chart .power_pv[style="height: 0px;"] {
	border-top: 0px;	
}

.chart .time:hover .power_pv {
	opacity: 0.95;
}

.chart .power_usage_all {
	background: #ff631e;
}
.chart .power_usage_top1,
.top1  {
	background: #02c08f;
}
.stats .daily_top1 {
	color: #02c08f;
}
.chart .power_usage_top2,
.top2 {
	background: #aa69ff;
}
.stats .daily_top2 {
	color: #aa69ff;
}
.chart .power_usage_top3,
.top3 {
	background: #3976ef;
}
.stats .daily_top3 {
	color: #3976ef;
}

.usage {
	background: #ff621e;
}

.solar {
	background: #fad472;
}

.legend .box {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.legend .text {
	flex-basis: 160px;
}

.legend .row {
	display: flex;
	margin-bottom: 5px;
	justify-content: flex-end;
}

.chart .power_usage_top1, 
.chart .power_usage_top2, 
.chart .power_usage_top3 {
	position: relative;
	width: 100%;
	opacity: 1;
}

.chart .time:hover .power_usage_all {
	background: #e15415;
}


.time.full-hour:after {
	width: 1px;
	position: absolute;
	left: 0px;
	top: 0px;
	bottom: 0px;
	content: '';
	display: block;
	background: rgba(0, 0, 0, 0.133);	
}


.time.full-hour:before {
	content: attr(data-hour);
	position: absolute;
	top: 13px;
	left: -8px;
	z-index: 30;
	font-size: 14px;
	color: #a6a6a6;
	background: #f2f2f2;
	padding: 3px;
	transform: rotate(90deg);
}

.time.full-hour[data-hour="00:00"]:before {
	display: none !important;
}

@media only screen and (max-width : 700px) {
	.time.full-hour[data-hour="01:00"]:before  {
		display: none !important;
	}
}



.kwhLines {
	position: absolute;
	bottom: 0px;
	top: 0px;
	left: 0px;
	right: 0px;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	flex-direction: column;
	flex-direction: column-reverse;
	pointer-events: none;
}

.kwhLine {
	box-sizing: border-box;
	pointer-events: none;
	border-top: 1px solid rgba(0, 0, 0, 0.133);
	position: relative;
}

.kwhLine .label {
	content: attr(data-kw);
	position: absolute;
	left: 0px;
	top: 0px;
	padding-left: 5px;
	padding-top: 2px;
}

.kwhLine .label span {
	font-size: 10px;
}

.stats {
	padding: 10px;	
	margin-bottom: 30px;
	padding-top: 0px;
}

.stats .value {
	font-size: 25px;
}

.stats .value:after {
	content: 'KW/h';
	font-size: 13px;
	padding-left: 5px;
	opacity: 0.5;
}

.stats > * {
	background: #f2f2f2; 
	line-height: 40px;
	width: 180px;
	padding: 20px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	box-sizing: border-box;
}

.stats label {
	display: block;
	font-size: 11.5px;
	line-height: 13px;
	text-align: left;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.webcam {
	height: 282px;
	margin-bottom: 7px;
}

.fifty {
	display: flex;
	align-items: start;
	justify-content: center;
}

.daily.solar, 
.daily.used {
	margin-bottom: 0px;
}

.daily.sold, 
.daily.bought {
	padding-top: 0px;
}

.daily.bought .value, 
.daily.sold .value {
	font-size: 18px;
	line-height: 30px;
}
.daily.bought label, 
.daily.sold label {
	opacity: 0.5;
	font-size: 10px;
}

.stats .daily_top1 .value,
.stats .daily_top2 .value,
.stats .daily_top3 .value {
	font-size: 18px;
}



.debug {
	font-size: 12px;
}
.debug table td {
	padding: 0px 5px;
}

div.result {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 900px;
	margin: 20px auto;
	padding: 0 15px;
}

div.result h1 {
	font-size: 22px;
	margin-bottom: 10px;
}

div.result br {
	line-height: 1.6;
}

.resulttable {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-top: 15px;
}

.resulttable th {
	background: #2c3e50;
	color: #fff;
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.resulttable th:not(:first-child) {
	text-align: right;
}

.resulttable td {
	padding: 8px 12px;
	border-bottom: 1px solid #e8e8e8;
	text-align: left;
}

.resulttable td:not(:first-child) {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.resulttable tr:nth-child(even) {
	background: #f7f9fb;
}

.resulttable tr:hover {
	background: #edf2f7;
}

@media only screen and (max-width : 860px) {
	.fifty {
		display: block;
	}
	.stats {
		padding: 0px;	
	}
	
	.stats > * {
		width: 100%;	
	}
	
	.webcam {
		width: 100%; 
		height: auto;
		margin-bottom: 20px;
	}

	.current {
		width: 100%;
		box-sizing: border-box;
	}
}

@media only screen and (min-width : 860px) {
	.current {
		min-height: 492px; 
		box-sizing: border-box;
	}	
}