@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap');
* {
	margin: 0px;
	padding: 0px;
	font-family: 'Rubik', sans-serif;
    font-size: 13px;
    line-height: 1.75em;
    text-rendering: optimizeLegibility;
}

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

body {
	background: #EBEBEB;
}

#content {
	width: 100%;
	max-width: 800px;
	text-align: left;
	background: white;
	border-radius: 0.5em;
	box-shadow: 0 1.25em 1em rgba(0,0,0,0.1);
	margin: 2rem auto;
}

#header {
	padding: 2em;
	border-bottom: 2px solid #EBEBEB;
}

#header img{
	max-height: 60px;
	max-width: 200px;
}

#header h1 a {
	text-decoration: none;
}
#header h2 {
	font-weight: bold;
	font-size: 1.5rem;
}

span.info {
    background: #EEE;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    display: block;
}

#wrapper h2, #wrapper div, #wrapper p {
	padding: 0 2rem;
}
#map div {
	padding: 0;
}
#legenda p, #wrapper .fileupload p {
	padding: 0;
}

	#wrapper h2 {
		font-weight: normal;
		font-size: 1.15rem;
		border-top: 1px solid #EBEBEB;
		padding-top: 1rem;
	}
	
	#wrapper h2 span {
		color: inherit;
		font-weight: inherit;
		font-size: inherit;
	}
	#wrapper h2 span:after {
		content: ' - ';
	}
	
	#wrapper table a {
		color: gray;
	}
	
	#wrapper table a:hover {
		text-decoration: underline;
		cursor: pointer;
	}
	
	input[type="text"], input[type="number"], input[type="tel"], input[type="email"] {
		width: 100%;
        resize: none;
        padding: .25em 0.5em;
        border: 1px solid black!important;
        box-sizing: border-box;
        margin: .5em 0;
        border-radius: 4px;
	}
	input.search-input{
		width: 100%;
		padding: 4px 5px;
		border: 1px solid black;
		box-sizing: border-box;
		border-radius: 4px;
		line-height: 1em;
	}

	table td input {
		width: 95%;
		padding: 4px 2%;
		border: 1px solid black;
		box-sizing: border-box;
		border-radius: 4px;
		line-height: 1em;
	}
	textarea {
		width: 100%;
		resize: none;
		padding: 2px 5px;
		border: 1px solid black;
		box-sizing: border-box;
		border-radius: 4px;
		height: 75px;
		overflow-y: auto;
	}
	
	input[type="submit"], a.button {
		background: black;
		color: white;
		padding: 0.25rem 1rem;
		border-radius: 4px;
		margin-top: 15px;
		border: 0;
	}
	
	select {
		padding: 5px;
		margin-top: 0;
		width: 100%;
	}
	
	table {
		border: none;
		width: 100%;
		table-layout: fixed;
	}
	
	table td {
		padding: 2px;
		border: 1px solid white;
	}
	
	p {
		margin-top: 1rem;
		margin-bottom: 1rem;
	}
	
#error, div.error {
	border: 1px solid orangered;
	font-weight: bold;
	text-align: center;
	background: orangered;
	color: white;
	box-sizing: border-box;
	border-radius: 4px;
	width: calc(100% - 4rem);
	margin: 1rem 2rem!important;
	padding: 0.25rem 1rem!important;
}
div.errorlabel {
	color: orangered;
}
.error {
	border: 1px solid #B05852!important;
	background: #F0DFDF;
}

#google_maps {
	margin-top: 10px;
	height: 500px;
	width: 100%;
	padding: 5px;
	box-sizing: border-box;
	border: 1px solid #BBB;
}

#result, #resultobjects {
	width: 100%;
	padding: 5px 0;
	box-sizing: border-box;
}
#result .object, #resultobjects .object {
	padding: 0.5em 0;
}
	
footer {
	margin-top: 1rem;
	padding: 2rem;
	border-top: 1px solid #EBEBEB;
}
footer p {
	font-size: 12px;
	text-align: center;
}

#map .leaflet-control-layers-list * {
	line-height: 1.5em;
}
#map .leaflet-control-layers-group-name {
	font-weight: bold;
	line-height: 1.5em;
	padding-bottom: 1em;
}


#disclaimer {
    text-align: center;	
}

#disclaimer p a {
	color: inherit;
	text-decoration: none;
}

#debug {
	background: white;
	clear: both;
	padding: 5px;
}

#overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: rgba(0,0,0,0.5);
}
#overlay #message,
dialog {
	background: #FFFFFF;
	border: 1px solid #333;
	width: 300px;
	margin: 10% auto 0;
	padding: 10px;
	text-align: center;
}

::backdrop {
  background: rgba(0,0,0,0.5);
  opacity: 0.75;
}

.ui-autocomplete { z-index: 3000 !important;}

.easy-button-button .button-state {
	display: inline;
}

form div label {
    flex: 1;
    padding-right: 1em;
}
form label {
    font-weight: bold;
}
form div {
    display: flex;
}

@media (max-width: 580px) {
	#wrapper h2, #wrapper p, #wrapper div {
		padding: 0 1rem;
	}
	#content {
		width: 100%!important;
		border: 0;
		padding: 0;
		margin: 0;
	}
	body, th, td, input, textarea, select, option, p {	
		font: normal 15px/2em Arial,Helvetica,Geneva,sans-serif;
	}
	
	#header, #header *, h1 a {
		text-align: center;
		float: none!important;
	}
	#header h1 {
		display: block;
	}
	
	table img {
		display: none;
	}
	
	#header img{
		margin-top:-5px;
		padding-top:-5px;
	}
	textarea {
		line-height: 1.5em;
	}
	#legenda span{
		margin: 0px;	
	}
	#wrapper {
		width: auto;
		padding: 1.5em;
		min-height: 300px;
	}
	#map{
		width: 100%;
		height: 60vh!important;
	}
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	form div {
		display: block;
	}
}

.working{
	background: url('/public/loading.gif') no-repeat right center;
}
#errorcount, #extramessage {
    width: calc(100% - 4rem);
    border: 1px solid #b05852;
    font-weight: 700;
    background: #f0dfdf;
    color: #b05852;
    box-sizing: border-box;
    margin: 1rem 2rem!important;
    padding: 0.25rem 1rem!important;
}
.errorlabel {
	width: calc(100% - 4rem);
	padding: 0 !important;
}
.object span {
	flex-grow: 1;
}
.legend {
	display: inline-block;
    width: 10px!important;
    height: 10px!important;
    background: #999;
    border-radius: 50%;
    border: 2px solid black;
    margin: 0px 1px -1px 7px;
    padding: 0.25rem!important;
}

/* upload */
#fileToUpload {
	display: none;
}
.fileupload {
	flex-direction: column;
}
.selection:empty {
	display: none;
}
.selection {
    padding: 0 !important;
    flex-direction: column;
}
.selection:before {
	content: 'Je hebt het volgende bestand geselecteerd:';
	display: block;
}