/* Reset all */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:focus {
	outline: none;
}


/* ----- MAIN ----- */

* {
	box-sizing: border-box;	
}

html {
	height: 100%;
}

html, body {
	color: var(--color-inverse-hotel);
}

body {
	min-height: 100%;
	position: relative;
	font: 13px/16px Open Sans, sans-serif;
	/*background: #fff url("../images/backgrounds/house_roof_solar.jpg") no-repeat center fixed;
	background-size: cover;*/
	min-width: 300px;
}

input, select, button, option {
	font: 13px/16px Open Sans, sans-serif;
}

input, textarea, select {
	background: var(--color-kilo);
	color: var(--color-inverse-lima);
}

	option {
		background: var(--color-mike);
		color: var(--color-inverse-lima);
	}

	option:checked {
		background: var(--color-lima);
	}

	option:disabled {
		color: var(--color-inverse-delta);
	}

select {
	border: 1px solid var(--color-inverse-delta);
}

textarea {
	font: 13px/16px Open Sans, sans-serif;
}

/* base styling */

input.base:not([type="checkbox"]):not([type="range"]),
select.base,
textarea.base {
	border: 2px solid var(--color-inverse-delta);
	border-radius: var(--border-radius-echo);
	padding: 5px 10px;
	line-height: 26px;
}
	
	input.base:not([type="checkbox"]):not([type="range"]),
	select.base {
		height: 36px;
	}
	
		input.base:not([type="range"]):focus,
		select.base:focus,
		textarea.base:focus {
			border: 2px solid var(--color-inverse-golf);
		}

		input.base:not([type="range"]):not(:focus):hover,
		select.base:not(:focus):hover,
		textarea.base:not(:focus):hover {
			border: 2px solid var(--color-inverse-hotel);
		}
	
		input.base:not([type="checkbox"]):not([type="range"]).invalid,
		select.base.invalid,
		textarea.base.invalid {
			border: 2px solid var(--color-invalid-mike);
		}
		
		input.base.used {
			
		}
		
		input.base[type="checkbox"] {
			width: 25px;
			height: 25px;
			cursor: pointer;
		}

	/*input.base[type="time"]::-webkit-calendar-picker-indicator {*/
	input.base::-webkit-calendar-picker-indicator {
		filter: invert(0.5) saturate(5) hue-rotate(175deg);
	}

p {
	padding: 0.3em 0;
	line-height: 1.8em;
}

h1 {
	margin: 0.5em 0;
}

h2 {
	margin: 0.5em 0;
}

ul, ol {
	margin: 4px 0;
}

li {
	line-height: 1.6em;
}

a {
	text-decoration: none;
	color: var(--color-inverse-hotel);
}

	a:hover {
		color: var(--color-inverse-kilo);
	}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--color-inverse-golf);
  opacity: 1; /* Firefox */
}

:root {
	
	--opacity-alpha: 					0;
	--opacity-bravo: 					0.1;
	--opacity-delta: 					0.2;
	--opacity-echo: 					0.3;
	--opacity-golf: 					0.4;
	--opacity-hotel: 					0.5;
	--opacity-kilo: 					0.6;
	--opacity-lima: 					0.7;
	--opacity-mike: 					0.8;
	--opacity-tango: 					0.9;
	--opacity-zulu: 					1;
	
	--color-invalid-delta: 				rgba(171,0,3,0.2);
	--color-invalid-golf: 				rgba(171,0,3,0.4);
	--color-invalid-hotel: 				rgba(171,0,3,0.5);
	--color-invalid-mike: 				rgba(171,0,3,0.8);
	--color-invalid-zulu: 				rgba(171,0,3,1);
	
	--color-valid-delta: 				rgba(34,171,0,0.2);
	--color-valid-golf: 				rgba(34,171,0,0.4);
	--color-valid-hotel: 				rgba(34,171,0,0.5);
	--color-valid-mike: 				rgba(34,171,0,0.8);
	--color-valid-zulu: 				rgba(34,171,0,1);
}

.bg_midlayer {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

	.bg_midlayer .weaken { /* a layer to ease everything beneath it down more to the light / dark theme */
		position: absolute;
		width: 100%;
		height: 100%;
		background-color: var(--color-romeo);
	}

		body.dark .bg_midlayer .weaken {
			background-color: var(--color-mike);
		}

	.bg_midlayer .pattern {
		position: absolute;
		width: 100%;
		height: 100%;
	}

		.bg_midlayer svg.pattern {
			width: 100%;
			height: 100%;
		}

			/* On default (light) mode, we want the pattern to be whitening */

			body > .bg_midlayer svg.pattern pattern * {
				fill: var(--color-zulu);
				opacity: var(--opacity-hotel);
			}

			/* For some reason on dark mode a whitening pattern looks better than a darkening, so reverse the color and adjust opacity */

			body.dark > .bg_midlayer svg.pattern pattern * {
				fill: var(--color-inverse-zulu);
				opacity: var(--opacity-delta);
			}

			/* placement of additional pattern graphics (where every graphic is assumed to be 30*30) */
			/* Does not work, using x and y in the svg instead
			body > .bg_midlayer svg.pattern pattern svg:nth-child(2) {
				left: 30px;
			}*/

.inbody {
	position: relative;
	/* width: 100%; not required? */
	min-height: 100%;
}

.nojs_container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.nojs_container .nojs {
		display: flex;
		align-items: center;
		flex-shrink: 1;
		padding: 30px;
		background: var(--color-mike);
		animation: 1s fadeIn;
		animation-fill-mode: forwards;
		visibility: hidden;
		font-weight: bold;
		font-size: 18px;
		border-radius: var(--border-radius-hotel);
		border: 1px solid var(--color-inverse-delta);
	}
		
		.nojs_container .nojs .icon {
			width: 30px;
			height: 30px;
			margin: 0 20px 0 0;
		}

	@keyframes fadeIn {
	  99% {
		visibility: hidden;
	  }
	  100% {
		visibility: visible;
	  }
	}

/*svg polygon.hexagon11 {
	stroke: rgba(255,255,255,0.3);
}*/
/*
.svg_logo {
	position: absolute;
	top: 20px;
	left: 50%;
	margin-left: -150px;
	width: 300px;
}

.logo svg {
	margin: -6px 10px -8px 0;
	height: 36px;
}
*/
.system_message {
	position: fixed;
	top: 5px;
	left: 5px;
	right: 5px;
	padding: 10px;
	background: rgba(255, 247, 122, 0.95);
	font-weight: bold;
	color: #444;
	text-align: center;
	border: 1px solid #444;
	border-radius: var(--border-radius-hotel);
	z-index: 999;
}

	.system_message a {
		text-decoration: underline;
		color: #444;
	}
/*
.agency_logo {
	min-width: 20px;
	min-height: 10px;
	background: url(../svg/logo.svg);
	background-repeat: no-repeat;
	background-size: contain;
}
*/

.logo > svg.logo path.text {
	fill: var(--color-inverse-lima); /* 53,53,53 */
}

.logo > svg.logo rect.graph {
	/*fill: rgba(0,119,6,1.00); /* greendata: #007706 */
	fill: var(--color-agency);
}

	.logo > svg.logo.co2manager rect.graph {
		fill: rgba(0,117,158,1.00); /* co2monitor: #00759e */
	}

	.logo > svg.logo.energiemanager rect.graph {
		fill: rgba(255,108,10,0.8); /* energiemanager: rgba(255,108,10,1.00) */
	}
	
/* ----- HEADER ----- */

header {
	width: 100%;
	margin: 0 0 10px 0;
}

	header .main {
		display: flex;
		flex-wrap: wrap;
		/*padding: 10px 0 0 10px;*/
		padding: 5px;
		background: var(--color-zulu);
		border-bottom: 1px solid var(--color-inverse-bravo-hotel);
	}
/*
		@media (max-width: 500px) {
			header .main {
				flex-wrap: wrap;
			}
		}
*/
		header .main > .logo.brand {
			height: auto;
			margin: 0 30px 0 0;
			padding: 4px 8px;
			display: flex;
			align-items: center;
			cursor: default;
		}

			header .main > .logo.brand:hover {
				background: none;
			}

			header .main .logo.brand svg {
				width: 190px;
				padding: 10px 0 5px 0;
			}

		header .main .tools {
			flex-grow: 1;
			display: flex;
			flex: 1 1 200px;
			flex-wrap: wrap-reverse;
			justify-content: space-between;
		}

			/*
			@media (max-width: 720px) {
				header .main .tools {
					flex-wrap: wrap-reverse;
				}
			}
			*/

			header .page_control {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				flex: 1 1 200px;
				/*flex-basis: 200px;*/
				/*margin: 0 10px 0 0;*/
			}

				header .page_control > div {
					padding: 5px;
				}

					header .page_control .search_select .dropdown {
						top: 5px;
					}

				/*
				header .page_control .grouped {
					display: flex;
					/*padding: 0 5px 10px 5px;*/
				/*	padding: 5px;
				}
				
				header .grouped .home_button {
					margin: 0 0 0 10px;
				}

				header .breadcrumbs {
					display: flex;
					margin-top: 10px;
					width: 400px;
					overflow: hidden;
					/*border-radius: 8px;
					background: rgba(0,0,0,0.025);*/
				/*
				}

					header .breadcrumb {
						display: flex;
						align-items: center;
					}

						header .breadcrumb .button {
							text-align: left;
							white-space: nowrap;
						}

						header .breadcrumb .arrow {
							margin: 0 5px;					
							color: rgba(0,0,0,0.5);
						}
				*/
			header .system_control {
				display: flex;
				align-items: center;
				/*padding: 0 5px 10px 5px;*/
				padding: 5px;
			}

				header .system_control .button {
					margin: 0 6px;
				}

					header .system_control .button:first-child {
						margin-left: 0;
					}

				.as_sub_authority header .system_control .person_data, 
				.as_sub_authority header .system_control .logout {
					color: rgba(201,179,57,0.6) !important;
				}

					.as_sub_authority header .system_control .person_data svg.icon {
						opacity: var(--opacity-hotel) !important;
					}
 
					.as_sub_authority header .system_control .logout svg.icon {
						opacity: var(--opacity-lima) !important;
					}

						.as_sub_authority header .system_control .person_data svg.icon *, 
						.as_sub_authority header .system_control .logout svg.icon * {
							fill: rgba(201,179,57,1) !important;
						}
	
	header .user_preferences {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		width: 100%;
		padding: 5px;
		background: var(--color-inverse-alpha-hotel);
		border-top: 1px solid var(--color-inverse-delta);
		border-bottom: 1px solid var(--color-inverse-bravo-hotel);
	}

		.user_preferences .preference {
			display: flex;
			align-items: center;
			margin: 5px;
			padding: 10px;
			border-radius: var(--border-radius-hotel);
		}

			.user_preferences label {
				margin: 0 10px 0 0;
			}

			.user_preferences .theme_select {
				padding: 5px;
				border-radius: var(--border-radius-hotel);
			}

			



	.account_activate {
		/*background: #444;*/
		/*background: #FFD890;*/
		display: flex;
		justify-content: center;
		border-top: 1px solid #fff;
        background: var(--color-inverse-lima);
	}

		.account_activate .notices {
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			align-items: center;
			padding: 2px;
		}

			.account_activate .part {
				min-height: 58px;
				display: inline-flex;
				align-items: center;
				margin: 2px;
				padding: 5px;
				border-radius: var(--border-radius-echo);
				border: 1px solid var(--color-inverse-hotel);
				/*background: #FF9824;*/
				/*background: rgba(255, 255, 255, 0.6);
				color: #976200;*/
                background: var(--color-mike);
			}

				.account_activate .part .flex-column {
					padding: 5px;
				}
	
			.account_activate input {
				width: 80px;
				height: 22px;
			}

			.account_activate .button {
				display: inline-flex;
				padding: 0 6px 2px 6px;
				border: 1px solid #fff;
				font-weight: normal;
			}

		.account_activate .busy_indicator {
			height: 50px;
			width: 50px;
			padding: 10px;
		}

			.account_activate .busy_indicator img {
				height: 30px;
				width: 30px;
			}

/* ----- GENERAL ----- */
/*
.floatleft {
	float: left;
}

	.form_field.floatleft {
		width: auto;
	}

	.form_field_infix {
		padding: 5px 0;
	}

.clear {
	clear: both;
	font-size: 0;
	line-height: 0;
}
*/

.page_item {
	display: none;
}

	.page_item:first-child {
		display: block;
	}
	
	
.SmartIcon {
	line-height: 0px;
}
	
.system_header {
	background: rgba(122,122,122,1);
	color: #fff;
	text-align: center;
	padding: 10px;
}

	.system_header a {
		color: #ccc;
	}
	
		.system_header a:hover {
			color: #aaa;
		}

/* Overflow Menu */

.overflow_menu_area {
	
}

	.overflow_menu_area .overflow_menu {
		display: none;
	}

		.overflow_menu_area.overflowMenuIsActive .overflow_menu/*, 
		.overflow_menu:hover .hidden*/ {
			display: flex;
		}

	.overflow_menu_area .button.show_overflow_menu {
		
	}

		.overflow_menu_area.overflowMenuIsActive .button.show_overflow_menu/*, 
		.overflow_menu:hover .button.show_overflow_menu*/ {
			display: none;
		}

		.overflow_menu_area .button.show_overflow_menu.glass.foxtrot:not(:hover) svg.icon * {
			fill: rgba(0,0,0,0.2);
		}



/* Flex Table */

.flex-table {
	
}

	.flex-table > .flex-row {
		display: grid;
		grid-template-rows: auto;
  		grid-template-columns: 150px auto;
	}

		.flex-table > .flex-row > .flex-column {
			
		}

/* Flex Table (small screen, switch to flex) */
/*
.flex-table {
	
}

	.flex-table > .flex-row {
		display: flex;
		flex-direction: row;
	}

		.flex-table > .flex-row > .flex-column {
			flex: 1;
		}
*/


/*
.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

	.flex-column.center {
		justify-content: center;
	}
*/



.flex {
	display: flex;
}

	.flex.container {
		padding: 5px;
		flex-wrap: wrap;
	}

		.flex.container > *:not(.flex.container) {
			margin: 5px;
		}

		.flex.container .flex.container {
			padding: 0; /* No need for padding, we already have padding at parent */
		}

		/*
		.box_container > .box.center,
		.box_container > .box_container.center {
			align-self: center;
		}
		*/
		.flex.container.center {
			align-self: center;
			/*padding: 0; /* ignore this padding, there is already a box_container around us supplying the padding */
			justify-content: center;
		}

		.flex.container > .box.max,
		.flex.container > .flex.container.max {
			width: 100%;
		}

.flex.row {
	flex-direction: row;
}

.flex.column {
	flex-direction: column;
}

/* box */

.box {
	padding: 10px;
	border: 1px solid var(--color-inverse-bravo-hotel);
	background: var(--color-lima);
}

	.box.plain {
		border: none;
	}

	.box.inversecolors {
		background: var(--color-inverse-bravo);
	}

	/* auto invers a box in a box */
	.box:not(.inversecolors) .box:not(.inversecolors) {
		background: var(--color-inverse-bravo);
	}

	/* Fix paddings and margins for boxes that are also flex.containers themselves */
	.flex.container > .box {
		margin: 5px;
	}

	.flex.container .box.flex.container {
		padding: 5px;
	}

	/* variants */

	.box .text {
		padding: 10px;
	}

.hide,
.hidden {
	display: none !important;
}

.template {
	display: none;	
}

/* shaping styles */

/* default */
.shape-default,
.box {
	/* border-radius: var(--border-radius-hotel); up till 2022-10-14 */
	border-radius: var(--border-radius-lima);
}

	/* every time we go inside another box the border-radius decreases */
	.shape-default .shape-default, 
	.box .box, 
	.shape-default .box, 
	.box .shape-default {
		border-radius: var(--border-radius-golf);
	}

	/* alternative */
	.shape-alt {
		border-radius: var(--border-radius-alpha);
	}

/* svg.icon */

icon-container {
	
}

	icon-container svg.icon {
		display: block; /* eliminates parent container div deviating size */
	}
	
	icon-container svg.icon {
		width: 20px;
		height: 20px;
	}

	icon-container.small svg.icon {
		width: 16px;
		height: 16px;
	}

	icon-container.large svg.icon {
		width: 24px;
		height: 24px;
	}

	icon-container.max svg.icon {
		width: 100%;
		height: 100%;
	}

	icon-container svg.icon {
		opacity: 0.4;
	}

/* icon */

body svg.icon {
	opacity: var(--opacity-hotel);
}

	body svg.icon * {
		fill: var(--color-inverse-zulu);
	}

	body a:hover svg.icon {
		opacity: var(--opacity-kilo);
	}


/* toolbar */

.toolbar {
	display: flex;
	justify-content: space-between;
}

	.toolbar .left,
	.toolbar .right, 
	.toolbar .center {
		display: flex;
		align-items: center;
	}

/* executor */

.executor {
	display: flex;
	padding: 5px;
}

	.executor.flex-row {
		grid-template-columns: 200px auto;
	}

	.executor button.execute {
		justify-content: flex-start;
		text-align: left;
	}

	.executor .feedback {
		display: flex;
		justify-content: space-between;
		margin: 0 0 0 10px;
		padding: 3px;
		border-radius: var(--border-radius-hotel);
	}

		.executor .feedback > .label {
			margin: 0 3px 0 0;
			padding: 0 7px;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.executor .feedback.success {
			background: var(--color-valid-hotel);
		}

		.executor .feedback.fail {
			background: var(--color-invalid-hotel);
		}

			.executor .feedback > button {
				height: 30px;
			}
