html, body {margin: 0;}

body {
	font-family: sans-serif;
	color: #333;
}

/* Pie - legend next to pie, below it on narrow embeds */
.pie_wrap {
	padding: 10px;
}

.pie_header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #555;
	margin-bottom: 10px;
}

.pie_header b {
	color: #333;
	font-size: 14px;
}

.pie_body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.pie_chart {
	flex: 1 1 240px;
	min-width: 0; /* lets drawn chart shrink when embed gets narrower (phone rotation) */
	position: relative; /* Chart.js needs it to also grow back when embed gets wider */
	max-width: 420px;
	margin: 0 auto;
}

.pie_legend {
	flex: 1 1 280px;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
}

.pie_legend li {
	display: flex;
	align-items: center;
	padding: 3px 0;
	border-bottom: 1px solid #eee;
}

.pie_legend .swatch {
	flex: 0 0 14px;
	height: 14px;
	border-radius: 2px;
	margin-right: 8px;
}

.pie_legend .name {
	flex: 1;
}

.pie_legend .num {
	white-space: nowrap;
	margin-left: 8px;
	color: #555;
}

.google-visualization-tooltip { 
	pointer-events: none; 
}

.styled-table {
    border-collapse: collapse;
	/*
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
	min-width: 400px;
	max-width: 800px;
	*/
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
	width: 100%;
}

.styled-table thead tr {
    color: rgb(53, 51, 51);
    text-align: left;
	background-color: #ffffff;
}

.styled-table th {
	border-bottom: 2px solid darkgrey;
	font-weight: bold;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/*
.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}
*/

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid darkgray;
}


.styled-table tbody tr.active-row {
    background-color: #ffffff;
}

.styled-table tbody tr.non-active-row {
    background-color: #f3f3f3;
}
/* Pie opened as whole page (TV, projector): pie on half of the screen as big as screen height allows, legend on the other half */
@media (min-width: 768px) {
	.fullpage .pie_body {
		flex-wrap: nowrap;
	}

	.fullpage .pie_chart {
		flex: 0 0 auto;
		width: min(calc(50vw - 20px), calc(100vh - 110px));
		max-width: none;
		margin: 0;
	}

	.fullpage .pie_legend {
		flex: 1 1 auto;
		max-width: 640px; /* numbers stay close to list names */
	}
}
