/* overwrite conflicts from style.css */
details.details-dropdown[open] {
  background-color: unset;
  border-bottom: unset;
}
.details-dropdown summary {
  cursor: unset;
}

/* Tweak to change the look and feel */
:root {
  --button-background: #e6e6e6;
  --button-color: black;
  
  --dropdown-highlight: #e4f2fd;
  --dropdown-width: 170px;
  --dropdown-background: white;
  --dropdown-color: black;
}

/* Boring button styles */
.details-dropdown .toggle-dropdown {
  /* Frame */
  display: inline-block;
  border-radius: 50px;
  box-sizing: border-box;
  
  /* Style */
  border: none;
  background: var(--button-background);
  color: var(--button-color);
  font-size: 17px;
  cursor: pointer;
}

.deteails-dropdown .toggle-dropdown:active {
  filter: brightness(75%);
}

/* Dropdown styles */
.details-dropdown {
  position: relative;
  padding: 0;
  
  border: none;
}

.details-dropdown summary {
  list-style: none;
  list-style-type: none;
}

.details-dropdown > summary::-webkit-details-marker {
  display: none;
}

.details-dropdown summary:focus {
  outline: none;
}

.details-dropdown summary:focus {
  outline: none;
}

.details-dropdown ul {
  position: absolute;
  margin: 20px 0 0 0;
  padding: 20px 0;
  width: var(--dropdown-width);
  right: 0;
  margin-left: calc((var(--dropdown-width) / 2)  * -1);
  box-sizing: border-box;
  z-index: 3;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: var(--dropdown-background);
  border-radius: 6px;
  list-style: none;
}

.details-dropdown ul li {
  padding: 0;
  margin: 0;
}

.details-dropdown ul li a:link, .details-dropdown ul li a:visited, .details-dropdown ul li button {
  display: inline-block;
  padding: 10px 0.8rem;
  width: 100%;
  box-sizing: border-box;
  
  color: var(--dropdown-color);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  line-height: normal;
}

.details-dropdown ul li a:hover, .details-dropdown ul li button:hover {
  background-color: var(--dropdown-highlight);
}

/* Dropdown triangle */
.details-dropdown ul::before {
  content: ' ';
  position: absolute;
  width: 0;
  height: 0;
  top: -10px;
  left: 50%;
  margin-left: -10px;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent var(--dropdown-background) transparent;
}


/* Close the dropdown with outside clicks */
.details-dropdown > summary::before {
  display: none;
}

.details-dropdown[open] > summary::before {
  content: ' ';
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.details-dropdown.period-selector ul {
  right: unset;
  margin-left: unset;
}

label.modal-trigger:hover {
  cursor: pointer;
}

label.modal-trigger a, label.modal-trigger button {
  pointer-events: none;
}