body {
	background: rgb(245,245,255);
	background: linear-gradient(180deg, rgba(245,245,255,1) 0%, rgba(245,245,255,1) 9%, rgba(255,255,255,1) 100%);
    font-size: 16px;
}
.col, .col-md, .col-md-6, .col-md-12 {
    padding: 1px;
    width: 100%;
}

/* Main header selection */
.header-tabs {
	margin-top: 0.6rem;
	background-color: #1A1E22;
	color: white;
}
.active-page { text-decoration: underline; }
.header-tabs:hover {
	cursor: pointer;
    text-decoration: underline;
    background-color: black;
	color: red;
}

.totals .value {
    text-align: right;
    float: right;
}

/* Datepicker */
#datepicker {
	margin: 0.5rem 0;
    padding: 0.8rem;
}
.dateButton, .datepicker {
    padding: 0.8rem;
}
.dateButton {
	cursor: pointer;
	text-decoration: none;
	background-color: lightgrey;
	border: 1px solid grey;
}
.dateButton:hover {
	border: 1px solid green;
	color: red;
}

h1, .h1 { font-size: 1.8rem; }
h2, .h2 { font-size: 1.4rem; }
h3, .h3 { font-size: 1.1rem; }
input, span, label, p, a, h4, .h4, td, th { font-size: 1rem; }
h5, .h5 { font-size: 0.9rem; }
h6, .h6 { font-size: 0.9rem; }
.subheader-value_base span label {
    margin: 0.5rem 0;
    height: 2.5rem;
}

.col-md-6 { width: 50%; }
.col-md-12 { width: 100%; }
.card-body {
    padding: 0.4rem;
}
.only-wide-screen { display: block; }
.only-tight-screen { display: none; }
/* like for the chart data */
.table td, .table th {
    padding: 0.6rem;
}

/* This is a div over every headline of each chart to make scrolling on mobile devices possible */
.scroll-touchable-headline {
    width: 90%;
    height: 2em;
    position: absolute;
    z-index: 99;
}

/* Smartphone upright */
@media screen and (max-width: 400px) {
    .card-body {
        padding: 0.8rem;
    }
    .only-wide-screen { display: none; }
    .only-tight-screen { display: block; }

    /* like for the chart data */
    .table td, .table th {
        padding: 0.4rem;
    }
}

#footer {
	font-size: 0.8rem;
	color: lightgrey;
	margin: 4px 10px;
	border-top: 1px dotted grey;
}
.last_updates_warn {
    color: black;
}
.last_updates_error {
    color: black;
    background-color: lightyellow;
}

/* ###############################
	Tooltip feature
*/
[data-tooltip] {
    display: inline-block;
    position: relative;
    cursor: help;
}
/* Tooltip styling */
[data-tooltip]:before {
    content: attr(data-tooltip);
    display: none;
    white-space: pre-line;
    position: absolute;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.9em;
    line-height: 1.4;
    min-width: 15rem;
    text-align: center;
    border-radius: 4px;
}
/* Dynamic horizontal centering */
[data-tooltip-position="top"]:before, [data-tooltip-position="bottom"]:before {
    left: 50%;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
/* Dynamic vertical centering */
[data-tooltip-position="right"]:before, [data-tooltip-position="left"]:before {
    top: 50%;
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
[data-tooltip-position="top"]:before {
    bottom: 100%;
    margin-bottom: 6px;
}
[data-tooltip-position="right"]:before {
    left: 100%;
    margin-left: 6px;
}
[data-tooltip-position="bottom"]:before {
    top: 100%;
    margin-top: 6px;
}
[data-tooltip-position="left"]:before {
    right: 100%;
    margin-right: 6px;
}

/* Tooltip arrow styling/placement */
[data-tooltip]:after {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}
/* Dynamic horizontal centering for the tooltip */
[data-tooltip-position="top"]:after, [data-tooltip-position="bottom"]:after {
    left: 50%;
    margin-left: -6px;
}
/* Dynamic vertical centering for the tooltip */
[data-tooltip-position="right"]:after, [data-tooltip-position="left"]:after {
    top: 50%;
    margin-top: -6px;
}
[data-tooltip-position="top"]:after {
    bottom: 100%;
    border-width: 6px 6px 0;
    border-top-color: #000;
}
[data-tooltip-position="right"]:after {
    left: 100%;
    border-width: 6px 6px 6px 0;
    border-right-color: #000;
}
[data-tooltip-position="bottom"]:after {
    top: 100%;
    border-width: 0 6px 6px;
    border-bottom-color: #000;
}
[data-tooltip-position="left"]:after {
    right: 100%;
    border-width: 6px 0 6px 6px;
    border-left-color: #000;
}
/* Show the tooltip when hovering */
[data-tooltip]:hover:before, [data-tooltip]:hover:after {
    display: block;
    z-index: 50;
}
[data-tooltip]:hover {
	border-bottom: dotted 1px;
}
/* Tooltip end */

/* Live data container */
.live-view-container {
	.label-bar-icon {
		border: 1px solid gray;
		height: 14px;
		background: none;
		display: flex;
		justify-content: center;
		align-items: center;
		white-space: nowrap;
		transition: border-radius  linear;
		overflow: visible !important; /* Otherwise the edges will be hidden during animation */
	}
	svg {
		height: 24px;
		width: 24px;
		float: left;
		align-items: center;
		background: aliceblue;
		z-index: 9;
	}
	.visualization-line {
		display: flex;
		width: 100%;
		margin: 1rem 0;
	}
	#second-line {
		border-radius: 10px;
		overflow: hidden;
        height: 24px;
	}
	#first-line .label-bar-icon {
		border-top-left-radius: 10px;
		border-top-right-radius: 10px;
		border-bottom: none;
	}
	#third-line .label-bar-icon {
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
		border-top: none;
	}
}
.live-view-table {
	.right-aligned {
		text-align: right;
		float: right;
	}
	.second-value {
		margin-right: 1rem;
	}
}
/* End live data */

#container_heap_pump_series .selected {
    text-decoration: underline;
    font-weight: bold;
    cursor: auto;
}
#container_heap_pump_series .inactive {
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}
#container_heap_pump_series .inactive:hover {
    text-decoration: underline;
}

/* Sticky header */
.sticky {
  position: fixed;
  z-index: 100;
  top: 0;
}
.sticky th {
  background-color: #F7F7FF;
}

