/* The side navigation menu */
:root {
	--blue: #2B383E;
	--dark_grey: #6c757d;
	--yellow: #F1B545;
}

.sidebar {
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 100%;
	font-family: "Roboto", sans-serif !important;
	color: var(--blue) !important;
	background-color: #FAFAFA;
	overflow: hidden;
	z-index: 1049;
}

.sidebar-first-item {
	background-color: var(--yellow) !important;
}

.sidebar-first-item>label {
	padding-top: 0.3em;
	padding-left: 0.5em;
	margin-bottom: 0;
}

.sidebar-first-item .Select-control,
.sidebar-first-item .Select-control .Select-multi-value-wrapper .Select-input {
	background-color: var(--yellow) !important;
	color: grey;
	font-weight: bold;
	height: 2rem !important;
	margin-top: 0;
	padding-top: 0;
	border-radius: 0px;
	border: none;
	box-shadow: none !important;
}

#app-sidebar>label {
	color: #8A959F;
}

#evaluation-variable.sidebar-first-item,
#observations-variable.sidebar-first-item {
	background-color: #6C7B82 !important;
}

#evaluation-variable.sidebar-first-item .dash-dropdown .Select .Select-control .Select-multi-value-wrapper .Select-value,
#observations-variable.sidebar-first-item .dash-dropdown .Select .Select-control .Select-multi-value-wrapper .Select-value {
	background-color: #6C7B82 !important;
	color: #FFFFFF !important;
}

#evaluation-variable.sidebar-first-item .dash-dropdown .Select .Select-control .Select-multi-value-wrapper .Select-value .Select-value-label,
#observations-variable.sidebar-first-item .dash-dropdown .Select .Select-control .Select-multi-value-wrapper .Select-value .Select-value-label {
	background-color: #6C7B82 !important;
	color: #FFFFFF !important;
}

.sidebar .card-header {
	padding-left: .5rem;
	padding-right: 0px;
}

.sidebar-item {
	height: 2rem;
	margin: 1rem 0;
}

.sidebar-item>label {
	height: 1.5rem;
}

.sidebar-item>button {
	height: 2rem;
	display: table-cell;
	outline: none;
	text-align: left;
	text-decoration: none !important;
	vertical-align: middle;
	margin-bottom: .6rem;
}

.sidebar-item>button:hover,
.sidebar-item>button:focus {
	font-weight: bold;
	color: var(--blue);
}

#variable-dropdown-forecast div.Select-menu-outer .Select-menu {
	height: auto !important;
	background-color: var(--yellow) !important;
}

#variable-dropdown-forecast .Select-arrow {
	padding-right: 11px;
}

.sidebar-dropdown {
	/* max-height: 46vh; */
	overflow-y: auto;
	overflow-x: hidden;
}

.sidebar-dropdown>label {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.78rem;
}

.sidebar>label {
	margin-left: 1rem;
	margin-top: 0.5rem;
	display: block;
	font-size: small;
}

/* Custom control: Classes recently added by Francesco */
.form-check {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	padding-left: 0;
	padding-right: 0.2rem;
	margin-bottom: 0;
}

.form-check-label {
	/* margin-left: 1rem; */
	margin-top: 0.1rem;
	display: block;
	font-size: small;
}

.form-check-label::before,
.form-check-label::after {
	left: unset;
	right: 0.5rem;
	float: right;
	vertical-align: top;
}

/* --- */

.sidebar-dropdown>label>input[type=checkbox] {
	float: right;
	vertical-align: bottom;
	/*
    margin-right: 1rem !important;
    margin-top: 0.6rem;
    */
}

.sidebar-dropdown>label>input[type=radio] {
	float: right;
	vertical-align: bottom;
	/*
    margin-right: 1rem !important;
    margin-top: 0.6rem;
    */
}

.card-header {
	display: block;
}

.card-header>h2>button.btn-link {
	white-space: normal;
	float: left !important;
	text-align: left !important;
	display: block;
	width: 100%;
	text-decoration: none;
}

.card-header>h2>button.btn-link:hover {
	text-decoration: underline;
}

.card {
	border-top: none;
	border-bottom: none;
}

/*.accordion>.card>.card-header:after {
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Brands","Font Awesome 5 Free";
  font-size: 15px;
  font-weight: 900;
  font-style: normal;
  content: "\f107";
  float: right;
  color: grey;
}*/

.accordion>.card>.card-header[aria-expanded="true"]:after {
	display: inline-block;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free";
	font-size: 15px;
	font-weight: 900;
	font-style: normal;
	content: "\f107";
	float: right;
	color: grey;
}

.accordion .card {
	border-radius: 0;
	border-right: 0;
}

.sidebar-bottom {
	position: fixed;
	width: inherit;
	margin: 0;
	padding: 0;
	bottom: 0px;
	z-index: 1002 !important;
	border-right: 1px solid var(--dark_grey);
}

/* Download button on the sidebar bottom */
.sidebar-bottom #download-button {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: space-around;
	background-image: url("./images/Icon_Download.png");
	background-position: 15% 55%;
	background-color: var(--blue);
	width: 100%;
	height: 48px;
	color: white;
	padding-top: 0.6rem;
	padding-left: 30px;
}

/* dead button on the sidebar bottom of eval section*/
button.dead-button {
	background-image: none !important;
	pointer-events: none;
	background-color: var(--dark_grey) !important;
}

.models-selectors {
	height: 17rem;
	overflow-x: hidden;
	overflow-y: scroll;
}

.models-selectors-fullscreen {
	height: 26rem;
	overflow-x: hidden;
	overflow-y: hidden;
}

#was-dropdown {
	display: none;
}

#models-apply,
#prob-apply,
#was-apply {
	background-color: var(--blue);
	color: #FFFFFF;
	font-family: "Roboto", sans-serif !important;
	letter-spacing: 0;
	height: 2rem;
	border: none;
	width: 100%;
	text-align: center;
}

span>#models-apply,
span>#prob-apply,
span>#was-apply {
	margin: 0.5rem 0;
}

.btn:disabled {
	opacity: 0.3 !important;
}

.sidebar-bottom .btn {
	border-radius: 0;
	background-repeat: no-repeat;
	height: 10px;
	font-size: Medium;
	margin: 0 !important;
	width: -moz-fit-content;
	width: fit-content;
}

#userguide-icon {
	padding-right: 7px;
	position: relative;
	top: 38%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.sidebar-bottom .card-text>.download-section {
	background-image: url("./images/download.svg");
	background-repeat: no-repeat;
	background-position: 0.5rem;
	background-color: white;
	display: block;
	width: 98%;
	height: 33px;
	margin-bottom: 1rem !important;
	padding-left: 1rem !important;
	text-align: center;
	font-size: Small;
	color: var(--blue);
	color: rgb(0 0 0 / 70%);
	border: 2px solid var(--blue) !important;
	text-decoration: none;
	font-weight: 700;
}

.sidebar-bottom .card-text>.download-section:hover {
	color: white;
	background-color: var(--dark_grey) !important;
	font-weight: 700;
}

.sidebar-bottom .card-text>.download-section:active {
	color: var(--blue);
	font-weight: 700;
	border: 1.5px solid var(--blue) !important;
}

.sidebar-bottom .card-text>p>a {
	color: var(--blue);
	text-decoration: underline;
}

.card:has(.show)>.card-header {
	background-color: rgb(235, 235, 235) !important;
	border-radius: 0;
}

.collapsible-cards {
	margin: 0 !important;
}

.collapsible-cards .col {
	margin: 0 !important;
	padding: 0 !important;
}

.collapsible-cards .col .collapse .card {
	margin: 0 !important;
	padding: 0 !important;
	border: none;
}

.collapsible-cards .col .collapse .card .card-body {
	overflow: hidden;
	font-size: Small;
}

.download-menu {
	height: 42vh;
}

.fullscreen-download-menu {
	height: 26vh;
}

.card-body {
	padding: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.175) !important;
	border-left: none;
	border-right: none;
}

.caret-span {
	color: #212529;
	font-size: 1.3em;
	font-weight: bold;
	position: absolute;
	right: 0;
	top: .0em;
	right: .5em;
}

.caret-span-closed {
	color: #212529;
	position: absolute;
	right: .5em;
	top: .8rem;
	font-size: 1.3em;
	font-weight: bold;
	transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
}

#group-1-toggle span {
	top: .15rem;
}

.Select-arrow-zone {
	bottom: .3em;
	right: .5em;
	color: #212529;
}

/* overide dash default dropdown arrow*/
.Select-arrow {
	visibility: hidden;
}

/* Step 1: Common Properties
These styles are required to make icons render reliably */
.icon::after {
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}


/*style new caret arrow*/
.Select-arrow:after {
	display: inline-block;
	position: relative;
	visibility: visible;
	font-family: 'Font Awesome 5 free';
	font: var(-fa-font-solid);
	/*only one hyphen at beginning to function*/
	content: "\f106";
	font-weight: 900;
	vertical-align: middle;
	font-size: 1.3em;
	transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
}

/*rotate new caret*/
.is-open>.Select-control .Select-arrow:after {
	display: inherit;
	top: .2em;
	transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
}

/* Remove icon on the bottom right corner */
.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right {
	display: none !important;
}


/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
div.tab-parent {
	margin-left: 200px;
	height: 100%;
	top: 0;
	bottom: 0;
}

/* On screens that are less than 700px wide, make the sidebar into a topbar */
/* @media screen and (max-width: 700px) { */
/*   .sidebar { */
/*     width: 100%; */
/*     height: auto; */
/*     position: relative; */
/*   } */
/*   .sidebar a {float: left;} */
/*   div.content {margin-left: 0;} */
/* } */
/**/

/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
	.sidebar a {
		text-align: center;
		float: none;
	}
}

#app-sidebar button {
	text-shadow: none;
	transition: text-shadow 0.1s ease;
}

#app-sidebar button:hover {
	text-shadow: 0px 0.3px 0.3px var(--dark_grey);
}

#app-sidebar button:active {
	text-shadow: rgba(0, 0, 0, 0.8) 0px 0px 1px;
}
