
html,
body {
	margin: 0px;
	padding: 0px;
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: #333;
}

h1,
h2,
h3 {
	margin: 0px 0px 20px;
	line-height: 1.4;
	font-weight: 400;
}

h1 {
	font-size: 26px;
}

h2 {
	font-size: 22px;
}

h1 {
	font-size: 18px;
}

/**
 * 	ELEMENTS
 */

.main {
	padding: 50px;
}

a[name=top] {
	display: block;
}

a.to-top {
	position: fixed;
	width: 36px;
	height: 36px;
	right: 5px;
	bottom: 5px;
	background-color: #62BB05;
	text-decoration: none;
	z-index: 5;
}

a.to-top:before {
	content: '\2191';
	width: 100%;
	line-height: 30px;
	font-size: 19px;
	display: block;
	font-weight: bold;
	text-align: center;
	color: #FFF;
}

.top {
	display: table;
	width: 100%;
}

.top > div {
	display: table-cell;
	vertical-align: top;
	padding-right: 70px;
}

.top > div:last-child {
	padding-right: 0px;
}

.date-picker {
	vertical-align: top;
	display: inline-block;
	min-width: 245px;
}

.date-picker > h2 {
    float: left;
}

.date-picker > .buttons {
    float: right;
}

.date-picker > .buttons a {
	vertical-align: top;
	display: inline-block;
	margin-left: 3px;
	height: 30px;
	background-color: #62BB05;
	text-align: center;
	text-decoration: none;
}

.date-picker > .buttons a:before {
	line-height: 29px;
	color: #FFF;
	font-family: 'FontAwesome';
	padding: 0px 7px;
	font-size: 18px;
}

.date-picker > .buttons a:first-child:before {
	content: '\21FD';
}

.date-picker > .buttons a:last-child:before {
	content: '\21FE';
}

.chart {
	vertical-align: top;
	display: inline-block;
	width: 100%;
}

.legend {
	min-width: 260px;
}

.legend > div {
	padding: 0px 0px 15px;
	margin: 0px 0px 15px;
	border-bottom: 1px solid #EEE;
	font-weight: 400;
}

.legend > div:last-child {
	border-bottom: none;
	margin-bottom: 0px;
	padding-bottom: 0px;
}

.legend > div > span {
	display: block;
}

.legend > div > span:first-child {
	color: #777;
	margin-bottom: 5px;
}

.legend > div > span:first-child span {
	color: #CCC;
	padding-left: 10px;
}

.legend > div > span:last-child {
	clear: both;
}

.legend > div > span:last-child a {
	color: #62BB05;
	text-decoration: none;
	word-break: break-word;
}

.date {
	text-align: right;
}

#date span {
	display: block;
	color: #DDD;
	line-height: 60px;
	font-size: 50px;
	font-weight: 300;
}


/* chart */

.chart #chart {
	width: 100%;
	height: 300px;
}

#chart svg {
	font-family: 'Open Sans', sans-serif !important;
}

#chart .chart-tooltip-time {
	font-size: 12px;
	display: block !important;
	font-weight: 400;
	padding: 0px 0px 10px 3px;
	color: red;
}


/* table */

.table {
	margin-top: 40px;
}

.table > h2 {
	float: left;
}

.table .nodata {
	font-size: 18px;
	font-style: italic;
	color: #888;
}

.table .filter {
	float: right;
}

.table .filter label {
	outline: none !important;
	box-shadow: none !important;
}

.table > table {
	width: 100%;
	empty-cells: show;
}

.table table td,
.table table th {
	padding: 6px 10px;
	border-bottom: 1px solid #EEE;
}

.table table thead th {
	background-color: #EEE;
	text-align: left;
	white-space: nowrap;
	vertical-align: top;
	border-bottom: 3px solid #FFF;
}

.table > table tbody tr td {
	vertical-align: top;
}

.table > table tbody tr td:first-child {
	font-weight: 600;
	font-size: 16px;
	vertical-align: top;
	width: 80px;
}

.table > table > tbody > tr > td:last-child {
	width: 300px;
}

.table > table tbody tr td:not(.show):first-child {
	border: none;
}

.table > table tbody tr td.hide:not(.show):first-child {
	visibility: hidden;	
}

.table > table > tbody > tr.hidden {
	display: none !important;
}

.table > table > tbody > tr.divider ~ tr.hidden ~ tr.divider {
	display: none;
}

.table > table tbody tr.divider td {
	padding: 3px 0px 0px 0px;
	border: none;
	background-color: #EEE;
}

.table > table tbody tr td.accordion {
	position: relative;
	max-height: 21px;
	overflow: visible;
}

.table > table tbody tr td.accordion span {
	cursor: pointer;
	display: inline-block;
	width: 21px;
	height: 21px;
	background-color: #DDD;
	
	transition: 300ms linear;
}

.table > table tbody tr td.accordion span:hover,
.table > table tbody tr td.accordion span.visible {
	background-color: #62BB05;
}

.table > table tbody tr td.accordion span:before {
	content: '+';
	width: 100%;
	line-height: 20px;
	font-size: 18px;
	display: block;
	font-weight: bold;
	text-align: center;
	color: #FFF;
}

.table > table tbody tr td.accordion div {
	display: none;
	position: absolute;
	left: 40px;
	top: 6px;
	width: 400px;
	overflow: hidden;
	padding: 4px;
	z-index: 1;
}

.table > table tbody tr td.accordion span.visible + div{
	display: block;
}

.table > table tbody tr td.accordion div table {
	width: 100%;
	background-color: #FFF;
	border: 1px solid #DDD;
	box-shadow: 0px 0px 3px #DDD;
	color: #333;
}

.table > table tbody tr td.accordion div table td {
	padding: 4px 10px;
	vertical-align: top;
	word-break: break-word;
	font-size: 12px;
}

.table > table tbody tr td.accordion div table td:first-child {
	font-weight: bold;
	width: 150px;
}

.table > table tbody tr td.accordion div table td:last-child {
	font-weight: normal;
}

.table > table tbody tr td.ping .indicator {
	display: inline-block;
	vertical-align: top;
	margin-top: 0px;
	width: 100px;
	height: 18px;
	border: 1px solid #DDD;
	background-color: #FFF;
	float: right;
}

.table > table tbody tr td.ping .indicator span {
	display: block;
	height: 100%;
}

.table > table tbody tr td.notice {
	position: relative;
	overflow: visible;
}

.table > table tbody tr td.notice .textarea {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 32px;
	height: 100px;
	z-index: 1;
}

.table > table tbody tr td.notice .textarea textarea {
	width: 100%;
	height: 90px;
	padding: 5px 0px;
	border: 1px solid #DDD;
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	font-weight: 300;
	text-indent: 5px;
	outline: none;
}

.table > table tbody tr td.notice div.save,
.table > table tbody tr td.notice div.close {
	background-color: #D00;
	width: 30px;
	height: 30px;
	cursor: pointer;
	position: absolute;
	top: 0px;
	right: 0px;
	color: #FFF;
	text-align: center;
	line-height: 30px;
	font-weight: bold;
	font-size: 18px;
	z-index: 2;
	
	transition: 300ms linear;
}

.table > table tbody tr td.notice div.save {
	background-color: #62BB05;
	top: 30px;
}

.table > table tbody tr.problem > td:nth-child(n+2),
.table > table tbody tr.timeout > td:nth-child(n+2) {
	background-color: #dd2222;
	color: #FFF;
	font-weight: bold;
}

.table > table tbody tr.problem > td.accordion span,
.table > table tbody tr.maintenance > td.accordion span,
.table > table tbody tr.timeout > td.accordion span {
	background-color: #FFF;
}

.table > table tbody tr.problem > td.accordion span:before {
	color: #dd2222;
}

.table > table tbody tr.problem td.accordion div {
	background-color: #FFF;
	border-color: #dd2222;
	box-shadow: 0px 0px 3px #dd2222;
	color: #333;
}

.table > table tbody tr.timeout > td:nth-child(n+2) {
	background-color: #ff9900;
}

.table > table tbody tr.timeout > td.accordion span:before {
	color: #333;
}

.table > table tbody tr.timeout td.accordion div {
	background-color: #FFF;
	border-color: #ff9900;
	box-shadow: 0px 0px 3px #ff9900;
	color: #333;
}

.table > table tbody tr.maintenance > td:nth-child(n+2) {
	background-color: #F5F5F5;
	color: #999;
	font-weight: normal;
	font-style: italic;
}

.status-ok {
	color: #62BB05;
	font-weight: bold;
}

.status-bad {
	font-weight: bold;
}

/*
.status-bad {
	background-color: #bb0000;
	color: #FFF;
	font-weight: bold;
	padding: 5px;
	border-radius: 3px;
}
*/

/** jquery ui fixes **/

.ui-checkboxradio-radio-label,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
	font-size: 13px;
}

/*
.ui-checkboxradio-icon-space {
	padding-left: 3px;
}
*/

/** helper **/

.clear {
	float: none;
	clear: both;
}


/**************** responsive *****************/


@media (max-width: 1439px) {
	.legend {
		display: none !important;
	}
	
	.table > table tbody tr td.ping .indicator {
		display: block;
		margin-top: 5px;
		float: none;
	}
}

@media (max-width: 1024px) {
	.main {
		padding: 20px;
	}

	.top > div {
	    display: inline-block;
	    padding: 0px 0px 50px 0px;
	}
	
	.date-picker {
		padding-right: 70px !important;
	}
	
	.legend {
		display: inline-block !important;
	}
	
	.date {
		display: block;
		position: absolute;
		top: 20px;
		right: 20px;
		white-space: nowrap;
	}
	
	.date h2 {
		display: inline-block;
		padding-right: 10px;
	}
	
	.date h2:after {
		content: ':';
	}
	
	.date #date {
		display: inline-block;
	}
	
	.date #date span {
		display: inline-block;
		color: #999;
	    line-height: normal;
	    font-size: 22px;
	    font-weight: 400;
	}
	
	.date #date span:not(:last-child):after {
		content: '.';
	}
	
	.table .filter {
		float: none;
		clear: both;
		display: block;
		margin: 0px 0px 30px 0px;
	}
}

@media (max-width: 768px) {
	.chart #chart {
		height: 350px;
	}

	.table > table > thead {
		display: none;
	}

	.table > table > tbody > tr > td,
	.table > table > thead > tr > th {
		padding: 8px 12px;
		border-bottom: 1px solid #EEE;
		display: block;
		width: auto !important;
	}
	
	.table > table > tbody > tr.divider td {
		margin: 10px -20px 10px -20px;
		background-color: #62BB05 !important;
	}
	
	.table > table > tbody > tr > td:first-child {
		visibility: visible !important;
		display: block !important;
		background-color: #EEE;
	}
	
	.table > table > tbody > tr > td:last-child {
		border: none;
	}
	
	.table > table tbody tr td.ping .indicator {
		width: 100%;
	}
	
	/* prefix/postfix */
	.table > table > tbody > tr:not(.divider) > td:nth-child(1):after {
		content: ' Uhr';
	}
	.table > table > tbody > tr:not(.divider) > td:nth-child(2):before {
		content: 'Name: ';
	}
	.table > table > tbody > tr:not(.divider) > td:nth-child(3):before {
		content: 'Status: ';
	}
	.table > table > tbody > tr:not(.divider) > td:nth-child(4):after {
		content: ' - mehr Infos';
	}
	.table > table > tbody > tr:not(.divider) > td:nth-child(5):before {
		content: 'SMS versandt: ';
	}
	.table > table > tbody > tr:not(.divider) > td:nth-child(6):before {
		content: 'Antwortzeit: ';
	}
}

@media (max-width: 500px) {
	.date h2 {
		display: none;
	}
	
	.table > table tbody tr td.accordion div {
		left: -10px;
		right: -10px;
		width: auto;
		top: 33px;
	}
	
	.table > table tbody tr td.accordion div table {
	}
}