
html, body {
	margin: 0px;
	height: 100%;
	font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
	background-color: #888;
}

#panorama, #map {
	z-index: 1000;
}

#panorama {
	background-color: #000;
	position: absolute;
	bottom: 0;
	display: flex;
	align-items: center;
}
.panorama-unavailable {
	margin: auto;
	text-align: center;
	padding: 2em;
	color: #777;
}
#menu {
	position: absolute;
	background-color: #FFF;
	width: 100%;
	height: 100%;
}
.menu {
	width: 100%;
	height: 100%;
	overflow: auto;
}
#mobile-map-back, .mobileMapButton {
	display: none;
}

@-ms-viewport {
	width: device-width;
}

@media (min-width: 800px) {
	#menu {
		top: 0;
		right: 0;
		width: 60%;
		height: 60%;
	}
	#map {
		top: 0;
		left: 0;
		width: 40%;
		height: 100%;
	}
	#panorama {
		right: 0;
		width: 60%;
		height: 40%;
	}
	ul.toolbar li.mobile-map-switching {
		display: none;
	}
}

@media (min-width: 1200px) {
	#menu, #panorama {
		width: 49%;
	}
	#map {
		width: 51%;
	}
}

@media (max-width: 800px) {
	#map, #panorama {
		display: none;
		width: 100%;
		height: 100%;
	}
	.inMobileMap #map {
		display: block;
	}
	.inMobilePanorama #panorama {
		display: block;
	}
	.inMobileMap #mobile-map-back, .inMobilePanorama #mobile-map-back {
		display: block;
	}
	.add-form-table .mobileMapButton {
		display: inline;
	}
	.add-form-table .halfIfMobile {
		width: 50%;
	}
	.add-form-table input, .add-form-table select {
		font-size: 1.1em;
		padding: 0.2em;
	}
	.add-form-table input.positionButton {
		padding: 0.6em !important;
	}
}

.noPanoramaPage #panorama {
	display: none;
}
.noPanoramaPage.inMobilePanorama #panorama {
	display: table;
}
.noPanoramaPage.inMobilePanorama #panorama .panorama-unavailable {
	display: table-cell;
	vertical-align: middle;
}
.noPanoramaPage #menu {
	height: 100%;
}

#photozoom {
	display: none;
}
.inPhotoZoom #mobile-map-back {
	display: block;
}
.inPhotoZoom #photozoom {
	display: block;
}
#photozoom div {
	z-index: 1000;
	position: absolute;
	background-color: black;
	opacity: 0.8;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
#photozoom img {
	z-index: 1002;
	max-width: 100%;
	max-height: 100%;
	bottom: 0;
	left: 0;
	margin: auto;
	overflow: auto;
	position: fixed;
	right: 0;
	top: 0;
}
#mobile-map-back {
	z-index: 1020;
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	padding: 1em;
	text-align: center;
	cursor: pointer;
	background-color: #F0F0F0;
	color: black;
	text-decoration: none;
	-webkit-box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
}

/*** menu ***/
ul.toolbar {
	display: block;
	background-color: #F0F0F0;
	-webkit-box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
	margin: 0; padding: 0;
	list-style-type: none;
	margin-bottom: 0.1em;
}

ul.toolbar li {
	display: inline-block;
	margin: 0; padding: 0;
}

ul.toolbar li a {
	display: block;
	margin: 0; padding: 0;
	padding: 0.9em 1.1em;
	cursor: pointer;
	text-decoration: none;
	color: black;
}

ul.toolbar li a:hover {
	background-color: #DDD;
}

ul.toolbar li a.active {
	background-color: #BBB;
}

#index-grid, #trash-grid {
	padding: 0.4em;
	font-size: 0.8em;
}

/*** navigation ***/
.nav-form-table {
	margin-top: 0.8em;
	width: 100%;
}
.nav-form-table select {
	box-sizing: border-box;
	padding: 0.5em;
	width: 100%;
	font-size: 1.2em;
}
.nav-form-table input[type=button] {
	padding: 0.5em;
	width: 100%;
	font-size: 1.2em;
}

/*** adding ***/
.form-table {
	margin-top: 0.8em;
	width: 100%;
}
.form-table select, .form-table input, .form-table textarea {
	box-sizing: border-box;
	width: 100%;
}
.form-table input.half {
	width: 50%;
}
.form-table textarea {
	height: 8em;
	font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
}
.form-table input[type=button], .form-table input[type=submit] {
	padding: 0.5em;
}
.form-table input[type=checkbox] {
	width: auto;
}
.form-table label {
	display: block;
	margin-top: 0.8em;
}
.form-table .required {
	color: darkred;
}

/*** report detail ***/
#status-form {
	margin-top: 1.2em;
	margin-bottom: 0em;
	line-height: 2.2em;
}
#report-nazev {
	margin-top: 0.3em;
	margin: 0px;
}
#report-autor {
	font-style: italic;
}
#report-foto img {
	width: 100%;
}
#report-popis {
	margin-bottom: 1em;
}
.report-text {
	margin: 1em;
	word-wrap: break-word;
}
#report-foto-remove-label {
	white-space: pre;
}
#report-podnadpis {
	margin: 0.4em 0em 0.5em 0em;
	font-style: italic;
}
#report-stav {
	font-weight: bold;
}
#report-nazev-edit {
	font-size: 1.2em;
	font-weight: bold;
	width: 70%;
}
#report-popis-edit {
	width: 100%;
	height: 15em;
	font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
}
.edit-report-full {
	display: block;
	width: 100%;
	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
.edit-report-half {
	display: inline-block;
	width: 50%;
	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

/*** grid ***/
.jsgrid {
	margin-top: 0.2em;
	word-wrap: break-word;
	margin: auto;
}
.jsgrid .rowtitle {
	font-weight: bold;
}
.jsgrid-edit-row {
	padding: .1em;
}
.jsgrid-edit-row td {
	padding: 0px;
}
.jsgrid-edit-row textarea {
	padding: 0px !important;
	margin: 0px !important;
	border: none;
	resize: vertical;
	font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
}
.jsgrid-edit-row input[type=text] {
	padding: 0px !important;
	margin: 0px !important;
	border: none;
}
.jsgrid-nodata-row td {
	padding: 1em;
}
.jsgrid-pager {
	text-align: center;
	font-size: 1.1em;
}
.jsgrid-pager-page {
	padding: 0em;
}
.jsgrid-pager a, .jsgrid-pager-current-page {
	text-decoration: none;
	padding: 0.6em 0.5em;
}
.jsgrid-pager-nav-button a {
	font-size: 1.5em;
	padding: 0.4em;
}

/*** search ***/
.search {
	margin: 0.8em;
	margin-bottom: 0em;
	text-align: center;
}
.search input[type=search] {
	width: 100%;
	margin: auto;
}
.search input[type=submit] {
	width: 40px;
	margin-left: -45px;
	border: none;
	background: transparent;
}

/*** stats ***/
.stats-setting {
	padding: 1em;
	text-align: center;
}
.stats-setting input[type=number] {
	width: 50px;
}

/*** pois ***/
.pois-setting {
	padding: 1em;
	text-align: center;
}

/*** login ***/
.login-content {
	padding: 1em;
}
.login-content h2, .login-content h3 {
	margin: 0.4em 0em;
}
.login-content input, .login-content label {
	margin: 0.3em;
}

@media print {
	body {
		transform: scale(.7);
	}
	.toolbar, .stats-setting {
		display: none !important;
	}
	body, .menu {
		height: auto;
		width: auto;
	}
}

