/* The side navigation menu */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  font-family: "Roboto", sans-serif;
  color: #2B383E !important;
  background-color: #FAFAFA;
  overflow: hidden;
}

.sidebar-first-item {
    background-color: #F1B545 !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: #F1B545 !important;
    color: grey;
    font-weight: bold;
    height: 2rem !important;
    margin-top: 0;
    padding-top: 0;
    border-radius: 0px;
    border: none;
}

#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;
    /*border-bottom: 1px solid lightgrey;*/
}

.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: #2B383E;
}

.sidebar-first-item .Select-menu-outer {
    background-color: #F1B545 !important;
    overflow: hidden;
}

/*
.sidebar-first-item .Select-menu-outer .ReactVirtualized__Grid.ReactVirtualized__List.VirtualSelectGrid {
    height: 100% !important;
}
*/

.sidebar-dropdown {
    max-height: 350px;
    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 */
.custom-control {
  padding-left: 0;
  padding-right: 0;
}

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

.custom-control-label::before,
.custom-control-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%;
}

/*.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: absolute;
  width: 100%;
  /* height: 48px; */
  margin: 0;
  padding: 0;
  bottom: 0px;
  z-index: 1002 !important;
}

/* Info button on the sidebar bottom */
.sidebar-bottom #info-button {
  background-image: url("assets/images/Icon_Info.png");
  background-position: center;
  width: 52px !important;
  height: 52px !important;
}

/* Download button on the sidebar bottom */
.sidebar-bottom #download-button {
  background-image: url("assets/images/Icon_Download.png");
  background-position: 1rem;
  background-color: #2B383E;
  padding-left: 2rem;
  width: 100%;
  height: 100%;
}

#models-apply,
#prob-apply,
#was-apply {
  background-color: #2B383E;
    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;
}

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

/*
.sidebar-bottom  #info-button {
    background-image: url("assets/images/Icon_Info.png");
    background-position: center;
    width: 2.8vw;
}

.sidebar-bottom  #download-button {
    background-image: url("assets/images/Icon_Download.png");
    background-position: 1rem;
    background-color: #2B383E;
    padding-left: 2rem;
    width: -webkit-fill-available;
    width: -moz-available;
}
*/

.sidebar-bottom .card-text>.download-section {
    background-image: url("assets/images/download.svg");
    background-repeat: no-repeat;
    background-position: 0.5rem;
    background-color: lightgrey;
    display: block;
    width: 98%;
    height: 4vh;
    margin-bottom: 1rem !important;
    padding-left: 1rem !important;
    text-align: center;
    font-size: Small;
    color:  #2b383e !important;
    border: 2px solid #2b383e !important;
    text-decoration: none;
}

.sidebar-bottom .card-text>p>a {
    color:  #2b383e;
    text-decoration: underline;
}


.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 {
    height: 25vh !important;
    overflow: auto;
    font-size: Small;
}

.card-body {
	padding: 1rem;
}

.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);
}

.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;
  }
}
