#obal {
	list-style-type: none; /* remove bullets */
	display: flex; /* flexbox */
	flex-wrap: wrap; /* multiple lines */
	align-items: stretch;
	margin: 0px;
	padding: 0px;
	width: 100%;
	overflow: auto;
}

.flexchild {
	padding: 0;
	margin-right: 5px;
	margin-bottom: 5px;
	flex-grow: 1; /* stretch box width */
	height: 250px;
	border: 0px;
	display: block;
	overflow-y: auto;
	overflow-x: hidden;
}

.panel_data {
	min-height: 180px;
}

.chart_wrapper {
	position: relative;
	margin: auto;
}

.chart_wrapper canvas {
	display: table-cell !important;
	vertical-align: middle;
}

.panel_wrapper {
	float: left;
	text-align: left;
	box-sizing: border-box;
	width: 100%;
	height: 230px;
}

.panel_header {
	padding: 4px;
	font-weight: bold;
	height: 16px;
	cursor: move;
}

.header_link {
	float: right;
	padding-left: 2px !important;
	padding-right: 2px !important;
}

#overlay {
	display: none;
	scroll: auto;
}

#overlay_detail {
	text-align: left;
	overflow: auto;
}

#detail_in {
    overflow: auto;
    height: 100%;
}

.txt_med {
	font-size: 1.3em;
}

.txt_big {
	font-size: 1.7em;
}

.txt_huge {
	font-size: 4.0em;
}

.rpad {
	padding-right: 1em !important;
}

.texalirig {
	text-align: right;
}

.cactiTable .panel_data span {
	line-height: initial;
}

.color_red {
	background: rgba(255,255,255,1) !important;
	background: -moz-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(221,20,20,1)), color-stop(100%, rgba(221,20,20,1))) !important;
	background: -webkit-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
}

.color_red_bubble {
	color: rgba(221,20,20,1);
}

.color_yellow {
	background-color: #dddd00;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,200,0,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(230,230,0,1)), color-stop(100%, rgba(230,230,0,1))) !important;
	background: -webkit-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
}

.color_yellow_bubble {
	color: rgba(230,230,0,1);
}

.color_green {
	background-color: #457915;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(69,121,0,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(69,121,21,1)), color-stop(100%, rgba(69,121,21,1))) !important;
	background: -webkit-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
}

.color_green_bubble {
	color: rgba(69,121,0,1);
}

.color_grey {
	background-color: #9c9c9c;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(156,156,156,1)), color-stop(100%, rgba(156,156,156,1))) !important;
	background: -webkit-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
}

.color_grey_bubble {
	color: rgba(156,156,156,1);
}

.color_grey, .color_grey i {
	color: black !important;
}

.color_yellow, .color_yellow i {
	color: black !important;
}

.color_red, .color_red i {
	color: white !important;
}

.color_green, .color_green i {
	color: snow !important;
}

.rpad {
	padding-right: 20px;
}

.red {
	color: red;
}

.fa {
	padding-right: 3px;
}

#block {
    width: 14px;
    height: 14px;
    float: right;
}

.db_href {
	padding: 3px 5px;
	background-color: rgba(128,128,128,0.5);
	margin-right: 5px;
}

.db_href_active {
	font-weight: bold;
}

.float_left {
	float: left;
}

.float_right {
	float: right;
}

.quarter-panel {
	min-width: 340px;
	width: calc(25% - 1em);
}

.third-panel {
	min-width: 460px;
	width: calc(33% - 1em);
}

.half-panel {
	min-width: 580px;
	width: calc(50% - 1em);
}

// Tablets in Portrait mode
@media screen and (max-width: 640px) {
	.quarter-panel {
		min-width: calc(50% - 1em);
		width: calc(50% - 1em);
	}

	.third-panel {
		min-width: calc(75% - 1em);
		width: calc(75% - 1em);
	}

	.half-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
		overflow-x: auto;
	}
}

// iPhone and other devices
// in Portrait mode
@media screen and (max-width: 420px) {
	.quarter-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}

	.third-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}

	.half-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}
}

.panel_data h4 {
	margin: 2px 0px;
}
