body {
	margin: 10px;
	padding: 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: small;
}

button {
	cursor: pointer;
}

label   {
	width: 130px;
	display: inline-block;
}

select {
	width: 145px;
	margin: 1px;
}

input[type="date"] {
	width: 140px;
	margin: 2px;
}

/* Align label "Service" in form */
.shifted_labels {
	margin-left : 23px;	
}

/*#panel {
	padding: 5px;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	width: 70%;
	height: 170px;
	border: 1px solid grey;
	border-radius: 10px;
	background-color: #f0f5f9;
	box-shadow: 0 4px 4px 0 grey, 0 4px 10px 0 grey;
}*/

#panel {
	padding: 10px;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	width: 60%;
	min-width: 410px;
/* 	height: 180px; */
	border: 1px solid grey;
	border-radius: 10px;
	background-color: #f0f5f9;
	box-shadow: 0 4px 4px 0 grey, 0 4px 10px 0 grey;
}

.form_button {
	margin-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
}

#buttons {
	width: 100%;
	text-align: right;
}

#buttons button {
	margin: 5px;	
}

/***********************/
#panel_container a.open, #panel_container a.close {
	padding: 8px 15px;
	background: #f0f5f9;
	text-decoration: none;
	border-left: 1px solid grey;
	border-right: 1px solid grey;
	border-bottom: 1px solid grey;
	border-radius: 10px;
	background-color: #f0f5f9;
	box-shadow: 0 4px 4px 0 grey, 0 4px 10px 0 grey;
}

#panel_container {
	position: absolute;
/* 	top: -300px; */
/* 	top: -50px; */
	-webkit-transition: all .5s ease-in;
	-moz-transition: all .5s ease-in;
	transition: all .5s ease-in;
	z-index: 10;
}

#panel_container a.open, #panel_container a.close {
	position: absolute;
	right: -20px;
    top: 200px;
	-moz-radius: 0 0 8px 8px;
	border-radius: 0 0 8px 8px;
}
#panel_container a.close {
	display: none;
}
#panel_container:target {
	top: 10px;
}

/* code pour la fermeture */

#panel_container:target a.close {
	display: block;
}
#panel_container:target a.open {
	display: none;
}
#closed_panel:target #panel_container {
	top: -200px;
}

/***********************/

img.loading {
	height: 100px;
	margin-top: 5%;
}

#filter_div {
	height: 50px;
	width: 100%;
}

div.dashboard_div {
	margin-top: 40px;
	height: 100%;
	width: 100%;
}

div.graph {
	display: none;
	width: 100%;
}
div.graph div.chart {
	display: inline-block;
	padding: 4%, 5%;
	height: 300px;
/* 	width: 95%; */
	width: 98%;
}

div.graph div.menu_graph div.download img,
div.graph div.menu_graph div.switch img,
div.download img {
	width: 24px;
	padding: 5px;
	cursor: pointer;
}

/*div.download {float: left;}*/

div.menu_graph {
	border-width: 2px;
	border-radius: 5px;
	background-color: #74879a; 
	vertical-align:top;
	display: inline-block;
	margin-top: 5%;
}


div.map_div {
	margin-top:3%;
	width: 100%;
}

#map {
	display: inline-block;
	height: 500px;
	width: 92%;
	margin-left: 2%;
}

div.map_div div.menu_graph {
	border-width: 2px;
	border-radius: 5px;
	background-color: #74879a; /* grey */
	vertical-align:top;
	display: inline-block;
	margin-top: 5%;
	margin-right: 1%;
}

/* <= 900px */
@media screen and (max-device-width: 900px) {
	#dashboard_div {
		padding: auto;
	}
	#map {
		width: 300px;
	}
}

#map_div {
	display: none;
	margin-top: 10px;
/* 	text-align: center; */
	width: 100%;
}

#legend_container {
	display: flex;
	justify-content: space-evenly;
/* 	display: none;  */
/* 	width: 300px; */
/* 	margin-left: 5%; */
}

#legend_container span {
	margin: 5px;
}

#legend_container p {
	font-weight: bold;
}

#request_legend {
	height: 20px;
	width: 200px;
	margin-top: 1%;
}

#rect {
	height: 20px;
	width: 200px;
	fill:url(#grad1);
}

#div_min_session_legend, #div_max_session_legend {
	width:49%; 
	display:inline-block;
}

/*** Manage the popup "Share" ***/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color:  #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 11px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #005da7;
  color: white;
  border-radius: 10px 10px 0 0 ;
}

.modal-body {padding: 16px;}

#dashboard_url {
	width: 100%;
}

/*** Manage the tootlip "Copied to clipboard" ***/
.modal-body .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: -15%;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-body .tooltiptext::after {
	content: "";
	position: absolute;
	top: -40%;
	left: 0%;
	margin-left: 45%;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #555 transparent;
}

/*** Manage the accordions ***/
.accordions {
	display: none;
	width: 100%;
}

.accordion {
  background-color: #f0f5f9;
  color: #444;
  cursor: pointer;
  padding: 5px;
  /*width: 98%;*/
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
/*   float: left; */
  margin: 5px;
  border: 1px solid #bbb;
  border-radius: 5px;
}

.active, .accordion:hover {
  background-color: #96caf5;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.accordion_content {
  /*padding: 0 18px;*/
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/* ol popup */
.ol-popup {
	position: absolute;
	background-color: white;
	-webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
	padding: 15px;
	border-radius: 10px;
	border: 1px solid #cccccc;
	bottom: 12px;
	left: -50px;
	min-width: 200px;
}

#popup-content {
	max-height: 150px;
    overflow-y: auto;	
}

.ol-popup:after, .ol-popup:before {
	top: 100%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.ol-popup:after {
	border-top-color: white;
	border-width: 10px;
	left: 48px;
	margin-left: -10px;
}

.ol-popup:before {
	border-top-color: #cccccc;
	border-width: 11px;
	left: 48px;
	margin-left: -11px;
}

.ol-popup-closer {
	text-decoration: none;
	position: absolute;
	top: 2px;
	right: 8px;
}

.ol-popup-closer:after {
	content: "X";
}