
.hide {
	display: none;
}

div.chart {
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: auto;
	grid-template-areas:
		"title"
		"svg"
		"legend";
	box-sizing: border-box;
	width: 100%;
	margin: 1em 0 0 0;
}

div.chart:empty {
	margin: 0;
	border: none;
}

div.chart.top {
	grid-template-areas:
		"title"
		"legend"
		"svg";
}

div.chart.bottom {
	grid-template-areas:
		"title"
		"svg"
		"legend";
}

div.chart.left {
	grid-template-columns: auto auto;
	grid-template-areas:
		"title title"
		"legend svg"
}

div.chart.right {
	grid-template-columns: auto auto;
	grid-template-areas:
		"title title"
		"svg legend"
}

div.chart_title {
	grid-area: title;
	font-family: arial, tahoma, lucida sans, verdana, sans-serif;
	font-size: 16px;
	padding: 0.5em;
	text-align: center;
}

div.data_table div.chart_title {
	grid-area: initial;
	padding: 0.5em 0;
	text-align: left;
}

div.chart svg {
	grid-area: svg;
}

div.legend {
	grid-area: legend;
	box-sizing: border-box;
	position: relative;
	font-family: tahoma, lucida sans, verdana, sans-serif;
	font-size: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 0.5em;
	margin: 0;
	padding: 0.5em;
	overflow-x: hidden;
	print-color-adjust: exact;
}

div.legend.left,
div.legend.right {
	flex-direction: column;
	align-items: flex-start;
}

div.legend div.lgd_entry {
	display: flex;
	align-items: center;
}

div.legend.left div.lgd_entry,
div.legend.right div.lgd_entry {
	align-items: baseline;
}

div.legend div.lgd_marker {
	width: 1em;
	height: 1em;
	margin-right: 0.3em;
	flex-shrink: 0;
}

div.legend div.lgd_label {
	color: #000;
	margin-right: 1em;
	cursor: default;
	user-select: none;
}

div.chart line,
div.chart rect {
	shape-rendering: crispEdges;
}

#ttip {
	position: absolute;
	max-width: 14em;
	font-family: arial, tahoma, lucida sans, verdana, sans-serif;
	font-size: 12px;
	background-image: linear-gradient(to bottom right, #fff, #f2f2f2);
	padding: 0.2em 0.4em;
	line-height: 1.4;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 2px 2px 3px 0px rgba(33,33,33,0.4);
	z-index: -5;
	opacity: 0;
}

#ttip.show {
	z-index: auto;
	opacity: 1;
}

#ttip span.lbl {
	color: #555;
	display: block;
}

#ttip span.val {
	font-weight: bold;
}

rect:hover {
	stroke: #000;
}

text {
	font-family: arial, tahoma, lucida sans, verdana, sans-serif;
	font-size: 12px;
	cursor: default;
	user-select: none;
}

.tick line {
	stroke: #ccc;
}

div.msg {
	text-align: center;
	padding: 1em;
	background-color: #ffd;
}

div.data_table {
	font-family: arial, tahoma, lucida sans, verdana, sans-serif;
	font-size: 14px;
	padding-bottom: 0.5em;
	overflow-x: auto;
}

table.data_table {
	table-layout: fixed;
	margin: 0 0 0.5em 0;
	border: 1px solid #eee;
	border-spacing: 2px;
}

table.data_table tr td {
	overflow: hidden;
	white-space: nowrap;
}

table.data_table tr td {
	max-width: 20em;
}

table.data_table th {
	font-weight: normal;
	color: #01689b;
	padding: 0.2em 0.4em;
	min-width: 2em;
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	cursor: pointer;
}

table.data_table th.lbl.column-1 {
	min-width: 14em;
}

table.data_table th.lbl.column-2 {
	min-width: 10em;
}

table.data_table th.asc:after,
table.data_table th.desc:after {
	padding-left: 0.2em;
	color: #ccc;
}

table.data_table th.asc:after {
	content: '\25b2';
}

table.data_table th.desc:after {
	content: '\25BC';
}

table.data_table td {
	padding: 0.2em 0.4em;
}

table.data_table th.val,
table.data_table td.val {
	text-align: right;
}

table.data_table tbody tr:nth-child(odd) {
	background-color: #f6f6f6;
}

table.data_table tbody tr:hover {
	background-color: #fff8c1;
	cursor: pointer;
}

div.data_table div.pager button {
	font-size: 16px;
}

div.data_table span.pages {
	color: #555;
	font-size: 16px;
	margin: 0 0.5em;
	vertical-align: bottom;
	user-select: none;
}

div.data_table button {
	margin: 0 0.1em;
	padding: 0.1em 0.6em;
}

div.data_table button.first:before {
	content: '\00AB';
}

div.data_table button.prev:before {
	content: '\2039';
}

div.data_table button.next:before {
	content: '\203A';
}

div.data_table button.last:before {
	content: '\00BB';
}

@media screen and (min-width: 768px) {

#ttip {
	max-width: 16em;
	font-size: 14px;
}

}
