:root {
	--primary: #6200EE;
	--primary-variant: #3700B3;
	--secondary: #03DAC6;
	--secondary-variant: #018786;
}

* {
	font-family: "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "Helvetica Neue", "BBAlpha Sans", "S60 Sans", Arial, "sans-serif";
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
}

body {
	background-color: #eee;
}

.wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	height: 100%;
	overflow: hidden;
}

header {
	width: 100%;
	/*background-color: rgb(53, 73, 143);*/
	background-color: #3700b3;
	background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(55, 0, 179, 0) 70%);
	color: #fff;
}

header nav {
	position: relative;
	width: 100%;
	height: 58px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	align-content: center;
	flex-grow: 0;
	flex-shrink: 0;
}

header nav > button,
header nav > label,
header nav > label > button {
	height: 3rem;
	width: 3rem;
	padding: 0;
	background-color: transparent;
	border: none;
	cursor: pointer;
}
header nav .right {
	margin-left: auto;
}
.icon {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 1.5rem;
}
.icon-gps {
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4s4-1.8,4-4C16,9.8,14.2,8,12,8z M20.9,11c-0.5-4.2-3.8-7.5-7.9-7.9V1h-2v2.1C6.8,3.5,3.5,6.8,3.1,11H1v2h2.1c0.5,4.2,3.8,7.5,7.9,7.9V23h2v-2.1c4.2-0.5,7.5-3.8,7.9-7.9H23v-2H20.9z M12,19c-3.9,0-7-3.1-7-7c0-3.9,3.1-7,7-7s7,3.1,7,7C19,15.9,15.9,19,12,19z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-gps.active {
	opacity: 1;
}
.icon-menu {
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12,8c1.1,0,2-0.9,2-2s-0.9-2-2-2c-1.1,0-2,0.9-2,2S10.9,8,12,8z M12,10c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2S13.1,10,12,10z M12,16c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2S13.1,16,12,16z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-camera {
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Ccircle cx='12' cy='12' r='3.2'%3E%3C/circle%3E%3Cpath d='M9,2L7.2,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6c0-1.1-0.9-2-2-2h-3.2L15,2H9z M12,17c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S14.8,17,12,17z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-map {
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20.5,3c-0.1,0-0.1,0-0.2,0L15,5.1L9,3L3.4,4.9C3.2,5,3,5.1,3,5.4v15.1C3,20.8,3.2,21,3.5,21c0.1,0,0.1,0,0.2,0L9,18.9l6,2.1l5.6-1.9c0.2-0.1,0.4-0.3,0.4-0.5V3.5C21,3.2,20.8,3,20.5,3z M15,19l-6-2.1V5l6,2.1V19z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-map.active {
	opacity: 1;
}
.icon-arrow-left {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20,11H7.8l5.6-5.6L12,4l-8,8l8,8l1.4-1.4L7.8,13H20V11z'%3E%3C/path%3E%3C/svg%3E");
}

header nav svg,
header nav img {
	fill: #fff;
	height: 3rem;
	width: 3rem;
	padding: 0.73rem;
	display: block;
}

header nav img {
	padding: 0.50em;
}







header nav .location_icon {
	opacity: 0.4;
}

header nav .location_icon.active {
	opacity: 1;
}

h1,
h2 {
	margin: 0 0 0 1.2rem;
	display: block;
	font-weight: normal;
	font-size: 1.25rem;
	line-height: 100%;
	margin-right: auto;
	flex-shrink: 1;
	flex-grow: 1;
}


header .menu__list {
	position: absolute;
	top: 0.2rem;
	right: 0.2rem;
	z-index: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: rgba(220, 220, 220, 0.895);
	color: #000;
	border-radius: 0.2rem;
	box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
		0px 4px 5px 0px rgba(0, 0, 0, 0.14),
		0px 1px 10px 0px rgba(0, 0, 0, 0.12);
	transform: translateX(150%);
	transition: transform 0.1s ease-out 0.1s;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

#menu_CHK,
.menu_OVL {
	display: none;
}

#menu_CHK:checked~.menu_OVL {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	z-index: 1;
}

header nav #menu_CHK:checked~.menu__list {
	transform: translateX(0);
}

header .menu__list li {
	font-size: 0.9rem;
	padding: 0.9rem;
	min-width: 12rem;
	cursor: pointer;
}

#app-a2hs__btn {
	display: none;
}

button,
input {
	-webkit-appearance: none;
	-webkit-border-top-left-radius: 0px;
	-webkit-border-top-right-radius: 0px;
	-webkit-border-bottom-left-radius: 0px;
	-webkit-border-bottom-right-radius: 0px;
	outline: none;
}



.container {
	padding: 0.5rem 0.73rem 1rem;
	position: relative;
}


header small {
	display: block;
}



#sync-queue-banner {
	display: none;
	background-color: #000;
	color: #fff;
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
}

#sync-queue-banner.visible {
	display: block;
}

#sync-queue-count:not(empty):before {
	content: "(";
}

#sync-queue-count:not(empty):after {
	content: ")";
}


#qr-input-button {
	width: 2.8rem;
	height: 2.8rem;
	position: absolute;
	bottom: 1.0rem;
	right: 0.7rem;
	display: block;
	cursor: pointer;
	fill: #555555;
	padding: 0.648rem;
}

#qr-input-reader {
	/* background-color: red; */
}

.screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: translateY(100vh);
	will-change: transform;
	transition-property: transform;
	transition-duration: 0.25s;
	transition-timing-function: ease-in;
	background-color: #eee;
	overflow: auto;
}

.screen.show {
	transform: translateY(0vh);
	transition-timing-function: ease-out;
}

#screen-map-overview {
	top: 138.1875px;
	height: calc(100% - 138.1875px);
}

#meter-read-details,
#asset-details-details {
	position: relative;
}


#meter-search-input,
#meter-read-input,
#qa-tests-details input,
#qa-tests-details textarea,
#qa-tests-details select {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.85rem 0.1rem 0.85rem 4.0rem;
	border: none;
	border-radius: 0.2rem;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: 1.2rem center;
	background-size: 1.13rem;
	font-size: 1rem;
	outline: none;
}

#meter-search-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777777'%3E%3Cpath d='M15.5,14h-0.8l-0.3-0.3c1-1.1,1.6-2.6,1.6-4.2C16,5.9,13.1,3,9.5,3C5.9,3,3,5.9,3,9.5S5.9,16,9.5,16c1.6,0,3.1-0.6,4.2-1.6l0.3,0.3v0.8l5,5l1.5-1.5L15.5,14z M9.5,14C7,14,5,12,5,9.5S7,5,9.5,5C12,5,14,7,14,9.5S12,14,9.5,14z'%3E%3C/path%3E%3C/svg%3E");
	padding: 0.85rem 3.0rem 0.85rem 3.4rem;
}

#meter-read-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 25' fill='%23777777'%3E%3Cpath d='M15.39 19.34L14 11l-1.39 8.34C11.65 19.84 11 20.85 11 22c0 1.66 1.34 3 3 3s3-1.34 3-3C17 20.85 16.35 19.84 15.39 19.34z'/%3E%3Cpath d='M14 3C6.27 3 0 9.27 0 17c0 2.06 0.44 4.01 1.24 5.77 0.54-0.31 1.15-0.6 1.8-0.87C2.37 20.4 2 18.75 2 17 2 10.37 7.37 5 14 5s12 5.37 12 12c0 1.75-0.37 3.4-1.04 4.9 0.65 0.27 1.26 0.56 1.8 0.88C27.56 21.01 28 19.06 28 17 28 9.27 21.73 3 14 3z'/%3E%3Cpath d='M3.83 21.38l-0.62-1.9 3.81-1.24 0.62 1.9L3.83 21.38zM9.06 11.93l-2.35-3.24 1.62-1.18 2.35 3.24L9.06 11.93zM13 6h2v4h-2V6zM7.02 15.8l-3.8-1.24 0.62-1.9 3.8 1.24L7.02 15.8zM20.98 15.8l-0.62-1.9 3.81-1.24 0.62 1.9L20.98 15.8zM17.32 10.75l2.35-3.23 1.62 1.18 -2.35 3.24L17.32 10.75zM24.17 21.38l-3.8-1.24 0.62-1.9 3.81 1.24L24.17 21.38z'/%3E%3C/svg%3E")
}

#meter-search-result {
	/*padding: 0 0.73rem 0.73rem;*/
	overflow: scroll;
	flex-grow: 1;
	height: 100%;
}

#meter-search-result>div {
	padding: 0.7rem 0.8rem;
	/*margin: 1.3rem 0;*/
	background-color: #fff;
	border-bottom: thin solid rgba(86, 54, 91, 0.3);
	/*border-radius: 0.2rem;*/
	/*box-shadow: 0 1px 6px rgba(0,0,0,0.15);*/
	background-repeat: no-repeat;
	background-position: center right;
	background-size: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpolygon points='8.6,16.3 13.2,11.8 8.6,7.2 10,5.8 16,11.8 10,17.8 '%3E%3C/polygon%3E%3C/svg%3E");
	font-size: 0.84rem;
}

#meter-search-result>div.import_reading {
	background-position: center right, calc(100% - 3rem) center;
	background-size: 2rem, 1.4rem;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpolygon points='8.6,16.3 13.2,11.8 8.6,7.2 10,5.8 16,11.8 10,17.8 '%3E%3C/polygon%3E%3C/svg%3E"),
		url(/ui-icons/device4.svg);
	color: var(--secondary);
}

#meter-search-result .safeguard {
	background-image: url(/ui-icons/shield-alert.svg);
	background-size: 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 1.5em;
}

#screen-meter-read .safeguard {
	background-color: #dc3545;
	color: #ffffff;
	width: 100%;
	display: inline-block;
	padding: 0.4em 0.4em;
	margin-bottom: 0.7em;
}


#meter-read-submit,
#qa-tests-submit {
	display: block;
	width: 100%;
	margin-top: 1rem;
	margin-bottom: 1rem;
	background-color: #5CB85C;
	border: thin solid #4CA84C;
	color: #fff;
	font-size: 1rem;
	padding: 0.9em 0.2em;
	vertical-align: middle;
	transition: opacity 0.4s ease;
	opacity: 1;
}

#meter-read-submit:disabled,
#qa-tests-submit:disabled {
	opacity: 0.4;
}

#meter-read-submit svg,
#qa-tests-submit svg {
	fill: #ffffff;
	height: 1.5em;
	width: auto;
	margin-left: 1em;
	vertical-align: middle;
}

#qa-tests-details input,
#qa-tests-details textarea,
#qa-tests-details select {
	padding-left: 0.7rem;
	padding-right: 0.7rem;
	margin-bottom: 1rem;
}

#qa-tests-details .testrow select {
	margin-bottom: 0;
}




.screen .asset_gps_available:after {
	content: url(/ui-icons/gps27.svg);
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	vertical-align: baseline;
	margin-left: 0.6em;
}




/*
 * Image Preview
 */
.image_preview:not([src]) {
	/*image without src attribute */
	display: none;
}

.image_preview {
	width: 4.5em;
	height: 4.5em;
	object-fit: cover;
	position: absolute;
	top: 0.0em;
	right: 0.5em;
	border: 2px solid #666;
	border-radius: 5px;
}

.image_preview:hover {
	z-index: 1;

	width: auto;
	height: auto;
	max-width: calc(100vw - 3em);
	max-height: calc(100vh - 7em);

	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);

	box-shadow: 0 0 0px 50vmax rgb(0 0 0 / 60%);
	border-radius: 0;
	border-color: #444;
}






/*
 * Current Location Update Button
 */
#current-location-set {
	margin-top: 1.8rem;
	/*flex-grow: 1;*/
	background-color: #3700b3;
	border: thin solid #3700b3;
	;
	color: #fff;
	font-size: 1rem;
	display: block;
	width: 100%;
	min-height: 3.5rem;
}
#current-location-set:disabled {
	opacity: 0.4;
}

#current-location-set small {
	display: block;
	font-size: 0.7rem;
}

#current-location-set small span {
	display: inline-block;
	/*max-width: 6em;*/
	max-width: 34%;
	overflow-x: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#current-location-set small span:empty {
	display: none;
}
#current-location-set span.label:after {
	content: "Update Location";
}
#current-location-set span.label.updated:after {
	content: "Successfully Updated!";
}

#current-location-lat:not(:empty):before {
	content: "Lat: ";
}

#current-location-lng:not(:empty):before {
	content: "Lng: ";
}

#current-location-acc {
	max-width: unset !important;
}

#current-location-acc:not(:empty):before {
	content: "Acc: ";
}

#current-location-acc:not(:empty):after {
	content: "m";
}












#current-location-mapview-follow-me {
	fill: #999999;
}

#current-location-mapview-follow-me.active {

	fill: #3388ff;
}

#map,
#map-asset,
#map-overview {
	/*background-color: white;*/
	width: 100%;
	height: 30vh;
	margin-top: 1em;
}

#map-overview {
	margin: 0;
	height: 100%;
}

#map-overview .gm-style-iw div[onclick] {
	color: var(--secondary);
}

@media (min-width: 767px) {

	#map,
	#map-asset {
		height: 35vh;
	}
}




#takePictureField,
#uploadImageForm {
	display: none;
}




/* MODALS */
.modal {
	background-color: rgba(0, 0, 0, 0.45);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-around;
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s linear;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.modal.visible {
	visibility: visible;
	opacity: 1;
}

.modal .modal-box {
	display: flex;
	flex-direction: column;
	min-width: 280px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	font-size: 1rem;
	transform: scale(.8);
	background-color: #fff;
	border-radius: 0.25em;
	box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12);
	transition: transform 0.15s ease-out;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 592px) {
	.modal .modal-box {
		max-width: 560px;
	}
}

.modal.visible .modal-box {
	transform: scale(1);
}

.modal-head,
.modal-content,
.modal-bottom {
	padding: 0.5625rem 1.5rem;
	flex-shrink: 0;
}

.modal-head {
	font-size: 1.25em;
	line-height: 2em;
	letter-spacing: .0125em;
	padding-bottom: 0;
	font-weight: 500;
}

.modal-content {
	color: #777;
}

.modal-bottom {
	text-align: right;
}

.modal-bottom button {
	display: inline-block;
	font-size: 0.875em;
	color: #6200ee;
	letter-spacing: 0.0592em;
	text-transform: uppercase;
	font-weight: 500;
	vertical-align: middle;
	padding: 0.375rem 0.5rem;
	border: none;
	border-radius: 0.25em;
	background-color: transparent;
	outline: none;
	transition: background-color 0.15s linear;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-appearance: none;
}

.modal-bottom button {
	margin-left: 0.5rem
}

.modal-bottom button:hover {
	background-color: #6200ee10;
	cursor: pointer;
}

.modal-bottom button:active {
	background-color: #6200ee33;
}

.modal-bottom button:disabled {
	cursor: pointer;
	opacity: 0.5;
}

.modal-content label {
	display: block;
	color: #444;
	padding: 0.45em 0;
}

.modal-content label input {
	outline: none;
}

.modal-content label input[type=radio] {
	margin-right: 1em;
}

.modal-content input[type=number],
.modal-content input[type=text],
.modal-content input[type=email] {
	width: 100%;
	border: none;
	border-bottom: solid medium var(--purple);
	font-size: 1em;
	padding: 0.3em 0.1em 0;
	margin-bottom: 1em;
	outline: none;
}

.modal-bottom .a2hs_ios {
	width: 100%;
	text-align: center;
	margin-bottom: 0.5rem;
}

.modal-bottom .a2hs_ios img {
	height: 1.6em;
	width: auto;
	vertical-align: bottom;
	margin: 0 0.3em;
}

@media (max-width: 374px) {
	.modal-bottom .a2hs_ios {
		font-size: 4.1vw;
	}
}

#location-request-modal.visible svg {
	max-height: 4.5em;
}

#location-request-modal.visible svg rect {
	/*transition: fill-opacity 0.1s linear;*/
	will-change: fill-opacity;
	animation-name: inProgressFill;
	animation-duration: 1.1s;
	animation-iteration-count: infinite;
	fill: var(--secondary)
}

#location-request-modal.visible svg #box1 {
	animation-delay: 0s;
}

#location-request-modal.visible svg #box2 {
	animation-delay: 0.3s;
}

#location-request-modal.visible svg #box3 {
	animation-delay: 0.6s;
}

@keyframes inProgressFill {
	0% {
		fill-opacity: 0;
	}

	13% {
		fill-opacity: 1;
	}

	26% {
		fill-opacity: 0;
	}

	100% {
		fill-opacity: 0;
	}
}