*,*:after,*:before {
	box-sizing: border-box;
}

.anim,.icoAnim path {
	transition-duration: .1s;
}

a[onclick], a[ng-click] {
	color: #3F51B5;
	text-decoration: underline;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

::-webkit-scrollbar {
	width: 5px ;
	/* for vertical scrollbars */
	height: 5px;
	/* for horizontal scrollbars */
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #BBB;
}

::-webkit-scrollbar-thumb:active {
	background: #777;
}

label,menu,[role="navigation"],[data-select="none"],[select="none"],nav.flex,context {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
}

[data-select="exception"] {
	-webkit-touch-callout: text;
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

.zoomable {
	cursor: zoom-in;
}

#dialog>.image {
	max-width: 95%!important;
	padding: 0;
	font-size: 0;
	border-radius: 5px;
}

.image img {
	max-width: 100%;
	max-height: 100%;
	height: 100%;
}

/*	Flex	*/
.flex.parent {
	display: flex;
	flex-flow: row wrap;
}

.flex.parent.around {
	justify-content: space-around;
}

.flex.parent.center {
	align-items: center;
}

.flex.parent.between {
	justify-content: space-between;
}

.flex.parent.reverse {
	flex-flow: row-reverse wrap;
}

.flex.parent.column {
	flex-flow: column wrap;
}

.flex.parent.column.reverse {
	flex-flow: column-reverse wrap;
}

.flex.parent.nowrap {
	flex-flow: row nowrap;
}

.flex.parent.nowrap.reverse {
	flex-flow: row-reverse nowrap;
}

.flex.parent.nowrap.column {
	flex-flow: column nowrap;
}

.flex.parent.nowrap.column.reverse {
	flex-flow: column-reverse nowrap;
}

.flex:not(.parent),.flex.child {
	flex: 1 auto;
}

.flex.min {
	flex: 0 0 auto;
}

.flex.fit {
	flex: 1 0 auto;
}

.flex.fit.strong {
	flex: 1 0 0;
}

.flex.menu,nav.flex {
	text-align: center;
	flex: 1 1 auto;
	font-size: 1.25em;
}

.flex.padding {
	padding: 1em;
}

.flex.parent:not(.column)>.flex.full {
	width: 100%;
}

.flex.parent:not(.column)>.flex.half {
	width: 50%;
}

.flex.parent.column>.flex.full {
	height: 100%;
}

.flex.parent.column>.flex.half {
	height: 50%;
}

#loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 1;
	z-index: 500;
	background: white;
	transition-duration: .3s;
}

#loading.hide {
	opacity: 0;
}

#loading ul {
	margin: auto;
	height: 21px;
	width: 200px;
	padding-left: 0;
	list-style: none;
}

#loading ul>li {
	top: 50%;
	text-align: center;
	transition-duration: 1s;
	opacity: 1;
}

#loading ul>li.error {
	color: #f44336;
}

#loading ul>li+li {
	opacity: 0;
}

#loading ul>li:after {
	content: '...';
}

ul[reverse], ul[reversed] {
	display: flex;
	flex-direction: column-reverse;
}

ul[reverse]>li, ul[reversed]>li {
	flex: 0 0 auto;
}

select {
	position: relative;
	padding: 3px 12px;
	min-height: 40px;
	z-index: 999;
}

select.name {
	width: 50%;
	font-size: 18px;
	font-weight: bold;
}

.details {
	box-shadow: 0 0 2px 2px rgba(0,0,0,.4);
	z-index: 10;
	background-color: white;
}

cycling-images {
	display: block;
	padding-top: 65%;
	position: relative;
}

cycling-images>div {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

cycling-images>.holder:not(.small) {
	min-height: 12em;
}

cycling-images>[ng-transclude] {
	pointer-events: none;
}

cycling-images>[ng-transclude]>div {
	position: absolute;
	right: 1em;
	z-index: 1;
	background: rgba(255,255,255,.5);
}

cycling-images .orientation {
	top: 1em;
	width: 2em;
	height: 2em;
	border-radius: 50%;
}

cycling-images .orientation>i.icon {
	display: block;
	width: 100%;
	height: 100%;
}

cycling-images .distance {
	padding: .25rem .5rem;
	bottom: .5em;
	border-radius: .5rem;
}

cycling-images>div.small {
	position: absolute;
	top: auto;
	right: 1rem;
	left: auto;
	bottom: 1rem;
	width: 20%;
	border: 3px solid white;
	border-radius: 5px;
	box-shadow: 0 0 5px 5px rgba(0, 0, 0, .3);
	z-index: 1;
	font-size: 0;
}

cycling-images img {
	width: 100%;
	height: 100%;
	background-color: black;
	object-fit: contain;
}

cycling-images .small img {
	cursor: pointer;
}

cycling-images>.small .spinner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 5px;
}

cycling-images>.warning {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	max-width: 90%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	background-color: rgba(202, 67, 67, 0.7);
	padding: .5em;
	border-radius: 3px;
	pointer-events: none;
}

cycling-images>[src$="dummy.svg"]+.warning {
	display: none;
}

.oldAudit {
	color: #ff7f7f;
}

#geoFetched {
	position: absolute;
	text-align: center;
	margin: 0;
	width: 100%;
	pointer-events: none;
}

.details>table {
	width: 100%;
	width: calc(100% - 2em);
	border-collapse: collapse;
	text-align: left;
	margin: 0 1em 1em;
	table-layout: fixed;
}

.details did-you-know {
	position: absolute;
	left: 1em;
	bottom: 2em;
}

.audit {
	max-height: 84px;
	overflow-y: scroll;
	white-space: normal;
}

.audit:empty::before {
	content: 'Audit zatím nebyl vyplněn.';
	line-height: 3em;
	color: #777;
}

.details td {
	white-space: nowrap;
	overflow-x: hidden;
	text-overflow: ellipsis;
}

.details th {
	font-size: 19px;
}

/*.details p{
	margin: .5em .25em;
}

.details p.bold{
	font-weight: bold;
}*/
.details nav, .details .nav {
	position: relative;
	width: 100%;
	background: #ddd;
}

.box.attachments {
	position: absolute;
	top: 50%;
	left: 110%;
	left: calc(100% + 1em);
	min-width: 400px;
	overflow: hidden;
	padding: 0;
	transform: translateY(-50%);
}

.box.attachments > .holder {
	min-height: 150px;
}

.attachments>table {
	width: 100%;
	border-collapse: collapse;
}

.attachments>table td {
	padding: .25em
}

.attachments>table>tbody>tr:nth-child(2n +1) {
	background-color: #eee;
}

.attachments>label {
	display: block;
	padding: .5em;
	margin-top: -5px;
	cursor: pointer;
}

.attachments > div > h2, .attachments > div > p {
	padding: 0;
	margin: 1rem;
}

.attachments button {
	display: block;
	width: calc(100% - 2rem);
	padding: 1rem;
	margin: 1rem;
	background-color: #aaa;
	border-color: #33691e;
	cursor: pointer;
	box-shadow: 0 0 3px 3px rgba(0, 0, 0, .3);
	transition: all .1s ease-in-out;
}

.attachments button:hover {
	box-shadow: 0 0 5px 4px rgba(0, 0, 0, .2);
}

a.button {
	display: block;
	padding: 1rem;
	margin: 1rem;
	text-decoration: none;
	color: #fff;
	background-color: #33691e;

	box-shadow: 0 0 3px 3px rgba(0, 0, 0, .3);
	transition: all .1s ease-in-out;
}

a.button:hover {
	box-shadow: 0 0 5px 4px rgba(0, 0, 0, .2);
}

i.paperclip.icon:hover {
	background-color: rgba(0,0,0,.2);
}

.white {
	color: white;
}

.icon.white path, .white>.icon path {
	fill: #fff;
}

.icon.grayed path, .grayed>.icon path {
	fill: #808080;
}

i.icon {
	position: relative;
	max-width: 100%;
	max-height: 100%;
}

html, body {
	height: 100%;
	max-height: 100%;
	max-height: 100vh;
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI',sans-serif;
}

#streetview {
	position: relative;
	height: calc(100% - 40px);
	width: 100%;
}

#map {
	position: absolute;
	height: calc(100% - 40px);
	width: 100%;
	bottom: 0;
	right: 0;

	box-shadow: 0 0 3px 3px rgba(0, 0, 0, .3);
	transition-duration: .5s;
	transition-property: width, height, bottom, right;
}

#map.minimap {
	width: 350px;
	height: 200px;
	bottom: 1em;
	right: 1em;
	z-index: 2;
}

body.view:not(.streetview-visible) #map .gm-style-pbc+* {
	box-shadow: 0 0 45px 15px rgba(76, 175, 80, .75) inset;
}

body.edit:not(.streetview-visible) #map .gm-style-pbc+* {
	box-shadow: 0 0 45px 15px rgba(63, 81, 181, .75) inset;
}

#map:only-child {
	height: 100%;
}

#main>nav {
	position: relative;
	height: 40px;
	width: 100%;
	padding: 6px 45px 0 0;
	background-color: white;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
	z-index: 1000;
	overflow: hidden;
}

#main>.stores + nav, #main>.mapper + nav {
	padding: 0;
}

#main>nav>i {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: background-color .1s;
}

#main>nav>i:hover {
	background-color: rgba(0, 0, 0, .2);
}

#main>nav>div {
	white-space: nowrap;
}

#main>nav>div.more {
	position: absolute;
	white-space: normal;
}

#main>nav>div>span {
	float: right;
}

#main>nav>div>span+span {
	margin-right: .25em;
}

i.icon>svg {
	display: block;
	position: relative;
	max-height: 100%;
	max-width: 100%;
}

.inline.icon {
	display: inline-block;
	height: 2em;
	width: 2em;
	margin: -0.5em;
}

#main {
	min-width: 300px;
	max-width: 800px;
	max-width: 50vw;
	width: 33%;
	max-height: 100%;
	background: white;
	box-shadow: 0px 0px 10px 3px rgba(0,0,0,.4);
	/* overflow: hidden; */
	z-index: 2;
}

ul.toolbar {
	display: flex;
	margin: 0;
}

ul.toolbar.right {
	flex-direction: row-reverse;
}

ul.toolbar>li.fill {
	flex: 1;
	pointer-events: none;
}

ul.toolbar>li:empty {
	pointer-events: none;
}

ul.toolbar>li, .square-button {
	display: inline-block;
	cursor: pointer;
	position: relative;
	transition: background .1s;
	font-size: 0;
}

ul.toolbar>li:empty, ul.toolbar>li>i, .square-button>i {
	display: inline-block;
	height: 40px;
	width: 40px;
}

@supports (aspect-ratio: 1 / 1) {
	ul.toolbar>li:empty, ul.toolbar>li>i, .square-button>i {
		width: auto;
		aspect-ratio: 1 / 1;
	}
}


ul.toolbar>li.button, .square-button {
	display: flex;
	height: 40px;
	padding: 0 .5em 0 0;
	align-items: center;
	justify-content: center;
	background: none;
	-webkit-appearance: none;
	border-radius: 0;
	border-style: outset;
}

ul.toolbar>li.button.disabled {
	background-color: #ccc;
	color: #777;
	cursor: default;
}

ul.toolbar>li.button.disabled path {
	fill: #777
}

ul.toolbar>li.button.toggle {
	float: left;
}

ul.toolbar>li.button+li.button {
	margin-left: .5em;
}

ul.toolbar>li:hover, .square-button:hover {
	background: rgba(0,0,0,0.2);
}

ul.toolbar>li.flex.fill {
	flex: 1;
	visibility: hidden;
	pointer-events: none;
}

ul.toolbar>li.max {
	font-size: 1.8rem;
	padding-left: 12px;
	width: auto;
	cursor: default;
	flex: 1;
}

ul.toolbar>li.max:hover {
	background: transparent
}

.toolbar>.text, .toolbar>.link {
	vertical-align: top;
	font-size: 23px;
	width: auto;
}

.toolbar>.text, .toolbar>.link>a, .toolbar>.link>button {
	width: auto;
	padding: 6px 5px;
}

.toolbar>.link {
	vertical-align: top;
	font-size: 23px;
	width: auto;
}

.toolbar>.link>a, .toolbar>.link>button {
	display: block;
	color: inherit;
	height: 100%;
	text-decoration: none;
	border: 0;
	background: transparent;
	font-size: inherit;
}

.toolbar>.text[disabled], .toolbar>.link>[disabled] {
	cursor: not-allowed;
	color: #bbb;
	background-color: transparent!important;
}

ul.toolbar>li.disabled {
	cursor: default;
}

ul.toolbar>li.disabled:hover {
	background: initial;
}

ul.toolbar>li.disabled path {
	opacity: .3;
}

ul.toolbar>li i.active path {
	fill: #60afff;
}

.stores .number, .mapper .number {
	padding: 1em;
	font-size: 18px;
}

.stores.small .number, .mapper.small .number {
	padding: 0 1em;
}

.stores.seznam li, .mapper.seznam li {
	background-color: #eee;
	color: black;
}

ul.seznam {
	overflow-y: auto;
	overflow-y: overlay;
	margin: 0 0 -4px;
	z-index: 0;
}

ul.noPadding, ul.toolbar {
	padding-left: 0;
	list-style-type: none;
}

.seznam>li {
	position: relative;
	height: 56px;
	background-color: #666;
	color: white;
	transition: background ease .1s;
	cursor: pointer;
}

.seznam>li.hidden {
	text-align: center;
	padding-top: 1em;
	font-weight: bold;
	background-color: #666 !important;
	transition: height .1s, padding-top .1s;
}

.seznam.small>li.hidden {
	padding-top: 3px;
}

.seznam.stores>li.hidden, .seznam.mapper>li.hidden {
	background-color: #eee;
}

.seznam>li>i[svg="warning"] {
	position: absolute;
	height: 30px;
	width: 30px;
}

i[svg="warning"] path {
	fill: rgb(236, 207, 66);
}

.seznam>li:hover {
	background: #909090;
}

.seznam.small>li {
	height: 28px;
}

.seznam.small>li>img, .seznam.small>li>.mask {
	width: 40px;
}

.seznam.small>li>.holder>* {
	display: inline-block;
	align-self: baseline;
}

.seznam.small>li>i[svg="show"], .seznam.small>li>i[svg="show"]>svg {
	width: 28px;
}

.seznam>li>img, .seznam>li>i {
	transition: width .1s;
}

.seznam>li.reserved {
	background: repeating-linear-gradient( -45deg, rgba(102,102,102,.7), rgba(102,102,102,.8) 10px, rgba(102,102,102,1) 10px, rgba(102,102,102,.9) 19.8px );
}

.seznam>li.reserved:hover {
	background: repeating-linear-gradient( -45deg, rgba(102,102,102,.6), rgba(102,102,102,.7) 10px, rgba(102,102,102,.9) 10px, rgba(102,102,102,.8) 19.8px );
}

.seznam>li.selected {
	background-color: #33691E;
}

.seznam.overview>li {
	background: transparent !important;
	color: black;
}

.seznam.overview>li .mask {
	display: none;
}

.seznam.overview>li:hover,.seznam.overview>li.selected:hover {
	background-color: rgba(0,0,0,.2);
}

.seznam>li.selected:hover {
	background: rgba(51, 105, 30, 0.9);
}

.seznam>li.selected.reserved {
	background: repeating-linear-gradient( -45deg, rgba(51,105,31,.7), rgba(51,105,31,.8) 10px, rgba(51,105,31,1) 10px, rgba(51,105,31,.9) 19.8px);
}

.seznam>li.selected.reserved:hover {
	background: repeating-linear-gradient( -45deg, rgba(51,105,31,.6), rgba(51,105,31,.7) 10px, rgba(51,105,31,.9) 10px, rgba(51,105,31,.8) 19.8px );
}

.seznam>li>img {
	display: inline-block;
	width: 80px;
	height: 100%;
}

.seznam>li>div {
	display: inline-block;
}

.seznam>li>div.mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	opacity: .6;
}

.mask svg {
	height: 100%;
	width: auto;
	margin: auto;
}

.mask path {
	fill: #fff;
}

.seznam>li>div.holder {
	display: inline-block;
	height: 100%;
	width: 120px;
	padding-left: 5px;
	vertical-align: top;
	white-space: nowrap;
}

.seznam.small div.holder {
	display: inline-flex;
}

.seznam.small>li>div>h3 {
	flex-grow: 0;
	flex-shrink: 0;
	margin-right: .5em;
}

.seznam.small>li>div>p {
	flex-shrink: 1;
}

.seznam>li>div.holder>* {
	margin: 0;
	overflow-x: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.seznam:not(.mapper)>li>i[svg="show"] path {
	fill: #fff;
}

.seznam.overview>li>i[svg="show"] path {
	fill: #333;
}

.seznam>li>i[svg="show"],.seznam>li>i[svg="show"]>svg {
	height: 100%;
	width: 56px;
	order: 99;
}

.seznam b {
	float: right;
	padding-right: 1em;
}

.resizable {
	position: relative;
}

.resizable.no-transition {
	transition: none !important;
}

.rg-right, .rg-left, .rg-top, .rg-bottom {
	display: block;
	width: 14px;
	height: 14px;
	line-height: 14px;
	position: absolute;
	z-index: 1;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}

.inner>.rg-right, .inner>.rg-left, .inner>.rg-top, .inner>.rg-bottom {
	margin: 0;
	z-index: 15;
}

.rg-right span, .rg-left span, .rg-top span, .rg-bottom span {
	position: absolute;
	box-sizing: border-box;
	display: block;
	border: 1px solid #ccc;
}

.rg-right span, .rg-left span {
	border-width: 0 1px !important;
	top: 50%;
	margin-top: -10px;
	margin: -10px 0 0 3.5px;
	height: 20px;
	width: 7px;
}

.rg-top span, .rg-bottom span {
	border-width: 1px 0 !important;
	left: 50%;
	margin: 3.5px 0 0 -10px;
	width: 20px;
	height: 7px;
}

.small>.rg-top, .small>.rg-bottom, .small>.rg-right, .small>.rg-left {
	opacity: 0;
	background-color: white;
	border: 1px solid white;
}

.small>.rg-top, .small>.rg-bottom {
	margin-left: -18px!important;
	left: 50%;
	height: 16px;
	width: 36px;
}

.small>.rg-right, .small>.rg-left {
	margin-top: -18px!important;
	top: 50%;
	height: 36px;
	width: 16px;
}

.small:hover>.rg-top, .small:hover>.rg-bottom, .small:hover>.rg-right, .small:hover>.rg-left {
	opacity: 1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
}

.rg-top:active, .rg-bottom:active, .rg-right:active, .rg-left:active {
	opacity: 1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
}

.rg-top {
	cursor: row-resize;
	width: 100%;
	top: 0;
	left: 0;
	margin-top: -7px;
	border-radius: 0 0 5px 5px;
}

.rg-right {
	cursor: col-resize;
	height: 100%;
	right: 0;
	top: 0;
	margin-right: -14px;
	border-radius: 5px 0 0 5px;
}

.rg-bottom {
	cursor: row-resize;
	width: 100%;
	bottom: 0;
	left: 0;
	margin-bottom: -7px;
	border-radius: 5px 5px 0 0;
}

.rg-left {
	cursor: col-resize;
	height: 100%;
	left: 0;
	top: 0;
	margin-left: -14px;
	border-radius: 0 5px 5px 0;
}

p.justify {
	text-align: justify
}

p.grayed {
	color: #aaa;
}

p.nomargin,p.noMargin {
	margin: 0;
}

#name>h2 {
	margin: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	padding-left: .3em;
	line-height: 1.6em;
	padding-right: .1em;
	cursor: help;
}

#modal,#error,#lock,#process,#save {
	position: absolute;
	top: 50px;
	right: 2em;
	z-index: 10;
	color: #fff;
	font-weight: bold;
	padding: .5em .75em;
	box-shadow: 0 0 3px 0 #000;
	cursor: pointer;
}

#modal {
	background-color: #333;
}

#lock {
	width: 76px;
	height: 76px;
	background-color: #fff;
	border-radius: 5px;
	padding: 0;
	transition: 1s;
	cursor: default;
}

#lock>svg {
	width: 100%;
	height: 100%;
}

#lock path {
	fill: #F44336;
}

#error {
	background-color: #F44336;
	padding: 1em 1.5em;
}

#process {
	padding: 16px;
	padding-left: 52px;
	background-color: white;
	color: black;
}

#process .spinner {
	margin: 0;
}

#save {
	background-color: rgba(202, 67, 67);
	right: 1em;
}

#save td {
	text-align: right;
}

#save svg {
	margin: -16px 0;
}

#save path {
	fill: currentColor;
}

#dialog {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

#dialog>div, #dialog>form {
	position: relative;
	background: white;
	max-width: 700px;
	max-height: calc(100vh - 8em);
	min-width: 12em;
	min-height: 12em;
	overflow-y: auto;
	margin: .5em;
	padding: 2rem 3rem;
}

dialog, #dialog>div, #dialog>form {
	box-shadow: 0 0 5px 0 rgba(0,0,0,.8);
	border: none;
}

dialog::backdrop, #dialog {
	background: rgba(0,0,0,.2);
}

#dialog td.icon {
	max-width: 50px;
	height: 50px;
}

#dialog td.icon>svg {
	height: 50px;
	width: 50px;
}

#dialog h3 {
	margin: 0
}

#dialog input {
	margin: .75em 0;
	padding: .25em;
}

#dialog button {
	border: 0;
	width: 30%;
	height: 40px;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
	line-height: 1.8em;
	cursor: pointer;
}

#dialog button.gray {
	cursor: not-allowed;
}

#dialog button>i.icon {
	width: 40px;
	height: 40px;
	top: 15px;
	margin-top: -40px;
	margin-left: -10px;
	display: inline-block;
}

#dialog .send>button {
	max-width: 45%;
	margin-bottom: 1em;
	min-width: 180px;
}

#dialog button.reset-pass {
	width: auto;
	padding: 0 1em;
}

.logIn p {
	margin-bottom: 0;
}

.logIn p.note {
	color: #f44336;
}

.logIn h3 {
	font-size: 30px;
	font-weight: 400;
}

#dialog button.anim path {
	transition: path .1s;
}

#dialog .logIn input {
	width: 100%;
	margin: 0;
	margin-top: .5em;
	background-color: transparent;
	border: 0;
	height: 40px;
	font-size: 16px;
	padding-left: 0;
	padding-bottom: 0;
	border-bottom: 2px solid #333;
	transition: border-color .1s;
	outline: 0;
}

#dialog .logIn input:focus {
	border-color: #0288D1;
}

#dialog .logIn input[type="checkbox"] {
	width: auto;
	height: auto;
	margin-right: .5em;
}

button path {
	fill: currentColor;
}

span.green, b.green {
	color: #4CAF50;
}

button.green {
	color: white;
	background: #4CAF50;
}

button.green[disabled] {
	background: #708971;
	color: #ccc;
	cursor: default;
}

button.green.gray {
	background: #708971;
}

button.blue {
	color: white;
	background: #3F51B5;
}

span.blue, b.blue {
	color: #3F51B5;
}

button.red {
	color: white;
	background: #F44336;
}

span.red, b.red {
	color: #F44336;
}

button.red:hover {
	background: #D32F2F;
}

button.green:hover {
	background: #43A047;
}

button.green.gray:hover {
	background: #6A9A6C;
}

button.blue:hover {
	background: #3949AB;
}

#dialog>div.warning {
	position: relative;
	z-index: 1;
	box-shadow: 0 0 20px 10px rgba(0,0,0,.3);
}

.warning>i[svg="warning"] {
	display: block;
	margin: -20px auto -30px;
	max-width: 250px;
	height: 250px;
}

.warning>i[svg="cross"] {
	position: absolute;
	top: 0;
	right: 0;
	height: 76px;
	width: 76px;
	z-index: 1;
	cursor: pointer;
}

.warning>i>svg {
	width: 100%;
	height: auto;
	margin-bottom: -25%;
	z-index: -1;
}

.warning>p {
	margin: 0 -.5em .25em;
	font-size: 2em;
}

.warning>button {
	width: 200px;
	margin: .5em auto 1em;
	border: 0;
	color: white;
	background-color: #33691E;
	text-align: center;
	font-size: 85%;
	cursor: pointer;
}

#canvas,#print {
	display: none;
}

kbd {
	display: inline-block;
	border: 3px solid #ddd;
	border-radius: 8px;
	text-transform: uppercase;
}

kbd>kbd {
	position: relative;
	background: #bbb;
	padding: 0 .5em .125em;
	min-width: 1em;
	height: 1.4em;
	text-align: center;
	border: 0;
	border-radius: 5px;
	font-weight: bold;
}

kbd>kbd:only-child {
	padding: 0 0.3em .125em;
}

kbd>kbd+kbd {
	margin-left: 0.6em;
}

kbd>kbd+kbd:before {
	position: absolute;
	display: inline;
	content: '+';
	left: -.8em;
}

ul.print {
	position: absolute;
	left: -2em;
	top: 2.5em;
	width: 140px;
	height: 0;
	opacity: 0;
	z-index: 2;
	padding: 0;
	overflow: hidden;
	list-style-type: none;
	transition: top .3s, opacity .3s, height .3s;
	transition-delay: .25s;
	cursor: pointer;
}

.hoverable:hover>ul.print {
	height: 115px;
	opacity: 1;
	top: 3em;
	transition-delay: .5s;
}

.hoverable:hover>ul.print:active {
	height: 0;
	opacity: 0;
	top: 2.5em;
	transition-delay: 0s;
	transition-duration: 0s;
}

ul.print>li {
	padding: 1px 5px;
	transition: background-color .1s;
}

ul.print>li:hover {
	background-color: #ccc;
}

.box {
	z-index: 1;
	padding: .5em;
	border-radius: 2px;
	background-color: white;
	box-shadow: 0 0 3px 3px rgba(0,0,0,.2);
}

.box.toggle {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 50px;
	z-index: 3;
	display: flex;
}

.box.toggle>button {
	padding: .5em;
	cursor: pointer;
}

.box.toggle>button+button {
	margin-left: .5em;
}

#legend {
	position: absolute;
	top: 130px;
	right: 1em;
	z-index: 1;
}

#legend .buttons {
	margin: -5px -5px 0;
	height: 25px;
}

#legend .buttons button, #directions button {
	width: 45%;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color .1s;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
}

#legend table td:first-child {
	width: 17px;
}

.motives td>div.dashed {
	border: 2px dotted white;
	background: linear-gradient(to right, #333 , red);
}

#legend>.motives {
	position: fixed;
	bottom: 24px;
	right: 10px;
	cursor: pointer;
	overflow: auto;
	max-height: calc(100vh - 24px - 50px - 40px);
	z-index: 2;
}

.street-view-opened {
	opacity: .1;
	transition: opacity .1s;
}

.street-view-opened:hover {
	opacity: 1;
}

div.circle {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	margin-top: 3px;
	position: relative;
}

.motives label {
	cursor: pointer;
}

.motives input {
	width: 15px;
	height: 15px;
	margin: 0;
	margin-right: 3px;
}

.motives tr.hidden>td {
	text-decoration: line-through;
	color: #999;
}

#legend>div {
	padding: .5em;
	margin-bottom: 1em;
}

#legend i.icon {
	float: right;
}

#legend [svg="cross"] svg {
	position: absolute;
	top: -10px;
	right: -10px;
	height: 40px;
	width: 40px;
	max-height: 40px;
	max-width: 40px;
	cursor: pointer;
}

#legend>div.toggle {
	display: flex;
	position: absolute;
	right: 50vw;
	padding: 0;
}

.motives tr.hidden>td>div:after {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: repeating-linear-gradient( -45deg, rgba(0,0,0,.3), rgba(0,0,0,.3) 3px, transparent 3px, transparent 6px );
}

#legend>button {
	-webkit-appearance: none;
	appearance: none;
	border: 0px solid #999;
	border-radius: 2px;
	padding: .5em;
	background-color: white;
	box-shadow: 0 0 5px 3px rgba(0, 0, 0, .2);
	cursor: pointer;
	font-weight: bold;
	float: right;
}

.motives svg {
	margin: -5px;
	margin-bottom: -7px;
	width: 25px;
	height: 25px;
}

#legend .hidden path {
	fill: #999;
}

#directions {
	position: absolute;
	max-width: 200px;
	bottom: 90px;
	left: 10px;
}

#directions>p {
	margin: 0;
}

#directions>p.info {
	color: #333;
	font-style: italic;
	padding-bottom: .5em;
	border-bottom: 1px solid #ccc;
	margin-bottom: .5em;
}

#directions>table {
	width: 100%;
}

#directions>button {
	width: 80px;
	height: 35px;
}

.highlight {
	outline: 3px solid red;
	z-index: 1005;
	transform: translateZ(0px);
}

p.subheader {
	margin-top: 0;
	color: #888;
}

#dialog button.right {
	float: right;
	margin-top: 1em;
	text-align: center;
}

#filters {
	z-index: 50;
	position: absolute;
	top: 50px;
	right: 10px;
}

#filters>label {
	display: block;
	text-align: right;
}

#filters span {
	vertical-align: middle;
	padding-right: 8px;
}

#filters input,#filters select {
	width: 150px;
	height: 40px;
	padding-left: 1em;
}

.pointer {
	cursor: pointer;
}

.print {
	width: 500px;
}

.print fieldset {
	background-color: #eee;
	margin-bottom: 1em;
}

.print fieldset>legend {
	font-weight: bold;
	font-size: 1.2em;
}

.print fieldset>label {
	display: block;
}

.bold {
	font-weight: bold;
}

.center {
	text-align: center;
}

.right>button {
	margin-top: 8px;
	width: 100% !important;
}

@media print {
	@page {
		size: landscape;
		margin: 0;
	}

	body {
		margin: 1.6cm;
	}

	html, body {
		height: auto;
	}

	body>* {
		display: none;
	}

	#print {
		display: block;
		page-break-after: auto;
	}
}

.labels {
	font-family: "Lucida Grande", "Arial", sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-align: center;
	width: 20px;
	white-space: nowrap;
}

.mapBox {
	position: absolute;
	transform: translateX(-50%);
	background: white;
	font-size: 1.5em;
	color: red;
}

.relative {
	position: relative;
}

.spinner {
	pointer-events: none;
}

hr {
	margin: 4px 0 2px;
}

.title {
	position: absolute;
	left: 0;
	right: 0;
	height: 0;
	text-align: center;
}

.title>h1 {
	margin: 0;
	font-weight: normal;
	font-size: 30px;
	pointer-events: none;
}

#dialog>.bug {
	position: relative;
	width: 700px;
	max-width: initial;
	min-height: 500px;
	max-height: 80%;
	height: 1000px;
	padding: 0;
	transition: width .3s;
}

@media(min-width: 800px) {
	#dialog>.bug {
		width: 700px;
	}
}

@media(min-width: 950px) {
	#dialog>.bug {
		width: 850px;
	}
}

@media(min-width: 1200px) {
	#dialog>.bug {
		width: 1000px;
	}
}

@media(min-width: 1400px) {
	#dialog>.bug {
		width: 1200px;
	}
}

#dialog>.bug>iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
}

.contracts>div {
	position: relative;
	min-height: 80px;
	margin-bottom: 1em;
}

.contracts>div .icon path {
	fill: #ccc;
}

.contracts>div:hover .icon path {
	fill: #000;
}

.contracts h1 {
	margin-top: 0;
	width: 100%;
	font-weight: normal;
}

.contracts h1>span {
	font-size: initial;
}

.contracts>div>h1 {
	margin: 0;
	padding-right: 50px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.contracts a {
	position: absolute;
	display: flex;
	align-items: center;
	right: -30px;
	top: 0;
	bottom: 0;
}

.contracts>div>div {
	flex: 1;
	padding-right: 50px;
	text-align: right;
}

.contracts>div span {
	display: block;
}

.contracts i.icon {
	width: 80px;
	height: 80px;
}

did-you-know {
	position: relative;
	display: flex;
	align-items: center;
	flex-flow: row nowrap;
	width: 90%;
	margin: 1rem auto;
	border-radius: 15px;
	padding-right: 1rem;
	border: 3px solid #ddd;
	background-color: #eee;
}

did-you-know[cross] {
	cursor: pointer;
	padding-right: 2em;
}

did-you-know.overlay {
	position: absolute;
	width: auto;
	left: 5rem;
	right: 5rem;
	bottom: 2rem;
}

did-you-know>i[svg="cross"] {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
}

did-you-know>i:not([svg="cross"]) path {
	fill: red;
}

.streetview-visible #legend {
	display: none;
}

details {
	margin-top: .5em;
	padding: .5em;
	border: 1px solid black;
}

details > summary {
	margin: -.5em -.5em .5em;
	padding: .5em;
}

details > p {
	margin: 0;
}

details > pre {
	overflow: scroll;
}

#draw-debug[open] {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	gap: 1em;
	grid-template-areas:
		"canvas . . . ."
		"canvas . . . ."
		"canvas . . . ."
		"canvas . . . .";
	justify-items: center;
}

#draw-debug>canvas {
	grid-area: canvas;
	height: 100%;
	width: 100%;
}

#resize {
	position: relative;
	cursor: e-resize;
	z-index: 50;
	background-color: #fff;
	transition: background-color .3s;
	--opacity: 0;
}

#resize.active {
	background-color: #000;
}

#resize:hover {
	background-color: #777;
	--opacity: 1 !important;
}

#resize::before {
	content: '|||';
	display: flex;
	justify-content: center;
	align-items: center;

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

	width: 50px;
	height: 50px;

	opacity: var(--opacity);
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 5px 2px rgba(0,0,0,.3);
	transition: background-color .3s;
}

#resize::before:hover {
	background-color: #777;
}

#resize[direction="vertical"] {
	cursor: n-resize;
}

#resize[direction="vertical"]::before {
	transform: translate(-50%, -50%) rotateZ(90deg);
}

#settings{
	position: relative;
}

#settings>h3 {
	margin-top: 0;
}

#settings>button {
	position: absolute;
	top: .5em;
	right: .5em;
	height: 40px;
	width: 40px;
}

#settings>.row {
	display: grid;
	grid-template: 'icon label' 40px / 40px 1fr;
}

#settings>.row>label {
	grid-area: label;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: 40px;
	gap: 0 1em;
	align-items: center;
}
