﻿.smallIcon { 
  font-size: 14px !important;
}

.dashboardObject-containerDiv {
  height: 100% !important;
  width: 100%;
  border: none !important;
  border-radius: var(--IMD-BORDER-RADIUS);
}

.overflowAuto {
  overflow: auto;
}

.dashboardObject-containerDiv svg {
  /* mitigates against a Fusion bug that prevents scrolling on mobile */
  touch-action: unset !important;
  /* stops a small gap appearing next to the chart */
  left: 0 !important;
}


.dashboardObject-containerDiv.tree {
  display: flex;
  flex-direction: column;
  border-radius: var( --IMD-BORDER-RADIUS);
}

.dashboardObject_loading {
  height: 4em;
  width: 100%;
  text-align: center;
  color: var(--IMD-COLOR);
}

.dashboardObject_error {
  width: 100%;
  text-align: center;
  height: 30%;
  color: var(--IMD-COLOR);
}

.controlPanelText {
  height: 1.8em;
}

span.dashboardObject_header {
  color: #dd3333;
  font-weight: bold;
  font-size: 1.2em;
}

  span.dashboardObject_header::before {
    content: "\26A0";
  }


.panel_dropdown {
  width: 100%;
  -webkit-border-radius: 0px;
  background-color: var(--IMD-BACKGROUND-COLOR);
  border: 1px solid var(--IMD-COLOR);
  color: var(--IMD-COLOR);
  font-family: var(--IMD-FONT-FAMILY);
  font-size: var(--IMD-FONT-SIZE);
  font-weight: var(--IMD-FONT-WEIGHT);
}

.filterPanelLabel {
  color: var(--IMD-COLOR);
}

.filterpanelcontainer {
  overflow-y: auto;
  height: 100%;
  background-color: var(--IMD-BACKGROUND-COLOR);
  border-radius: var(--IMD-BORDER-RADIUS);
}

.filterpanel {
  background-color: var(--IMD-BACKGROUND-COLOR);
  color: var(--IMD-COLOR);
  font-family: var(--IMD-FONT-FAMILY);
  font-size: var(--IMD-FONT-SIZE);
  font-weight: var(--IMD-FONT-WEIGHT);
  border: none;
  margin: 10px 10px 0px 20px;
  display: grid;
  grid-gap: 30px;
  /*grid-template-columns: repeat(auto-fit, minmax(50px,1fr));*/
}

.filterpanelobject {
  padding: 0px 20px 0px 0px;
}

  .filterpanelobject > label:after {
    content: "\A";
    white-space: pre;
  }

.fpo_newrow {
  grid-column-start: 1;
}

.filterpaneltitle {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: bold;
}

.filterpanel input:not(.toggle) {
  width: 100%;
}

.filterpanel select {
  width: 100%;
}

.bold {
  font-weight: bold;
}

.titleHeading1 {
  background-color: var(--IMD-PANEL-BACKGROUND);
  color: var(--IMD-PANEL-TEXT);
  font-size: 1.17em;
  font-weight: bold;
  padding: 10px 0px 10px 0px;
}

.titleHeading2 {
  background-color: var(--IMD-ACCORDION-HEADER);
  color: var(--IMD-ACCORDION-HEADER-TEXT);
  font-size: 1.10em;
  font-weight: bold;
  padding: 7px 0px 7px 0px;
}

.titleHeading3 {
  font-weight: bold;
  padding: 5px 0px 5px 0px;
}

.titleNormal {
  font-weight: normal;
}

.titleAnnotation {
  font-size: 0.7em;
  font-style: italic;
}

.datepickerdiv {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
  align-items: center;
}

.datepickerdivitem {
  flex-grow: 1;
}

.datepickerdivitemnogrow {
  flex-grow: 0;
  padding: 0px 5px 0px 5px;
}

.filterpanel input {
  background-color: var(--IMD-BACKGROUND-COLOR);
  border: 1px solid var(--IMD-COLOR);
  color: var(--IMD-COLOR);
  font-family: var(--IMD-FONT-FAMILY);
  font-size: var(--IMD-FONT-SIZE);
  font-weight: var(--IMD-FONT-WEIGHT);
  padding: 0;
  box-shadow: none;
}

.filterpanel input[type=text] {
  -webkit-border-radius: 0px;
  height: 1.8em;
}

.filterpanel input[type=range] {
  -webkit-appearance: none;
  height: 2px;
  border-radius: 5px;
  background: var(--IMD-COLOR-FADED);
  border: none;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.filterpanel input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--IMD-NODE-COLOR);
  cursor: pointer;
}

.filterpanel input[type=range]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--IMD-NODE-COLOR);
  cursor: pointer;
}

.range-value {
  position: fixed;
}

.range-value span {
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--IMD-NODE-COLOR);
  color: var(--IMD-NODE-TEXT-COLOR);
  font-size: 12px;
  display: block;
  position: absolute;
  transform: translate(-50%, 0);
  border-radius: 6px;
  padding-left: 5px;
  padding-right: 5px;
  min-width: 30px;
  white-space: nowrap;
}

 .range-value span:before {
   content: "";
   position: absolute;
   width: 0;
   height: 0;
   border-bottom: 10px solid var(--IMD-NODE-COLOR);
   border-left: 5px solid transparent;
   border-right: 5px solid transparent;
   bottom: 100%;
   left: 50%;
   margin-left: -5px;
   margin-top: -1px;
 }

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-left: 7px;
  margin-right: 7px;
  margin-top: 7px;
  line-height: 0.3;
  opacity: 0.4;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.slider-tick {
  position: relative;
  display: flex;
  justify-content: center;
  width: 2px;
  background: var(--IMD-COLOR-FADED);
  margin-bottom: $unit*2;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.slider-minor-tick {
  background: var(--IMD-COLOR-FADED);
  line-height: 0.2;
  width: 1px;
  margin-bottom: 2px;
}

.filterpanel label {
  margin-bottom: 0rem;
  padding: 0px 5px 0px 0px;
  line-height: normal;
}

.filterpanel input[type=date]::-webkit-calendar-picker-indicator {
  filter: var(--IMD-INVERT-ICONS);
}

.filterpanel input[type=checkbox] + label {
  cursor: pointer;
}

.filterpanel input[type=checkbox]:not(.toggle) {
  display: none;
}

  .filterpanel input[type=checkbox] + label:before {
    content: "\2714";
    justify-content: center;
    align-content: center;
    border: 0.1em solid var(--IMD-COLOR);
    width: 1em;
    height: 1em;
    padding-left: 0.2em;
    padding-right: 0.2em;
    margin-right: 0.2em;
    vertical-align: middle;
    color: transparent;
    transition: .2s;
  }

  .filterpanel input[type=checkbox] + label:active:before {
    transform: scale(0);
  }

  .filterpanel input[type=checkbox]:checked + label:before {
    background-color: var(--IMD-NODE-COLOR);
    border-color: var(--IMD-NODE-COLOR);
    color: white;
  }

  .filterpanel input[type=checkbox]:disabled + label:before {
    transform: scale(1);
    border-color: #aaa;
  }

  .filterpanel input[type=checkbox]:checked:disabled + label:before {
    transform: scale(1);
    background-color: #bfb;
    border-color: #bfb;
  }

.filterpanel input[type=number] {
  height: 1.5em;
}

.slider_labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.slider_maxlabel {
  text-align: right;
}

button {
  border: none;
  background-color: var(--IMD-PANEL-BACKGROUND);
  color: var(--IMD-PANEL-TEXT);
  padding: 5px 10px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

button:hover {
  background-color: var(--IMD-NODE-COLOR);
  color: var(--IMD-NODE-TEXT-COLOR);
}

button:disabled,
button[disabled] {
  background-color: var(--IMD-BACKGROUND-COLOR);
  color: var(--IMD-DISABLED-BUTTON);
  cursor: default;
}

.listButtonsBottom {
  text-align: right;
  padding: 4px 0px 0px 0px;
}

.listButtonsBottom > button {
  cursor: pointer;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
  /*div.pq-grid * {
  color: var(--IMD-COLOR);
}*/
  div.pq-grid .vis_totalCol * {
    color: var(--IMD-TOTAL-COLOR);
    font-weight: bold;
  }

.vis_totalCol {
  background-color: var(--IMD-TOTAL-BACKGROUND-COLOR) !important;
}

.pq-grid-title-row, .pq-grid-title-row > .pq-grid-col:not([class*="colStyle"]) {
  background-color: var(--IMD-GRID-HEADER-COLOR) !important;
  border-color: var(--IMD-GRID-BORDER-COLOR) !important;
  border-bottom: 1px solid;
}

div[class*="colStyle"] > span
{
  background-color: initial !important;
}

.pq-title-span, .pq-td-div {
  color: var(--IMD-GRID-HEADER-TEXT) !important;
}

.pq_rowCol {
  background-color: var(--IMD-GRID-ROW-HEADER-COLOR) !important;
  border-color: var(--IMD-GRID-BORDER-COLOR) !important;
  color: var(--IMD-GRID-HEADER-TEXT);
}

.pq-merge-cell, .pq-grid-header-table {
  background-color: var(--IMD-GRID-HEADER-COLOR) !important;
}


.verticalText {
  writing-mode: vertical-lr;
  transform: rotate(180deg); /* text reads from bottom-up */
  display: flex;
  align-items: center;
  flex-direction: column;
}

.verticalText > div {
  display:flex;
  align-items:center;
}

.pq-title-span:has(.verticalText){
  display:flex;
  justify-content:center;
}

.pq-td-div:has(.verticalText) {
  display:flex;
  justify-content:center;
}

  div [id^="pq-head-cell"]:has(.verticalText) {
  display: flex;
  align-items: center;
}

.tabContentWrapper {
  height: calc(100% - 47px);
}

.mapAddButton {
  padding: 6px 8px;
  font: 14px/16px "Open Sans", Helvetica, Arial, sans-serif;
  color: white;
  background: rgba(255,0,0,0.8);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
  cursor: pointer;
}



/* Treeview Header */
.treeviewHeader {
  border-bottom: 1px solid var(--IMD-COLOR);
  padding: 5px 10px 5px 10px;
  border-radius: var(--IMD-BORDER-RADIUS) var(--IMD-BORDER-RADIUS) 0px 0px;
}

/* Treeview Apply Button */
.treeviewApplyButtonEnabled {
  bottom: 0;
  background-color: #7AB028;
  height: 30px;
  width: 100%;
  text-align: center;
  padding: 3px 0px 0px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.treeviewApplyButtonDisabled {
  bottom: 0;
  color: var(--IMD-BACKGROUND-COLOR);
  background-color: var(--IMD-DISABLED-BUTTON);
  height: 30px;
  width: 100%;
  text-align: center;
  padding: 3px 0px 0px 0px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.treeContainer {
  top: 32px;
  left: 0px;
  right: 0px;
  bottom: 33px;
  overflow: auto;
  height: 100%;
}


.headline_container {
  margin: 0px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font: var(--IMD-FONT-FAMILY);
  overflow: hidden;
  background-color: var(--IMD-BACKGROUND-COLOR);
}

.headlineGrid {
  display: grid;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  grid-template-rows: auto auto auto 1fr;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  margin: 20px;
  max-width: 1000px;
}

.headlineValueCell {
  overflow: hidden;
}

.headlineChartCell {
  overflow: hidden;
}

.headline_div {
  width: 100%;
  margin: 0px auto;
}

.headline_header {
  vertical-align: bottom;
  text-align: center;
  line-height: 100%;
  color: var(--IMD-COLOR);
  overflow: hidden;
}

.headline_value {
  text-align: center;
  line-height: 100%;
  font-weight: bold;
  color: var(--IMD-COLOR);
  overflow: hidden;
}

.headline_trend {
  vertical-align: top;
  text-align: left;
  line-height: 100%;
  color: var(--IMD-COLOR);
  overflow: hidden;
}

.headline-left {
  text-align: left;
  padding-left: 20px;
}


/* phones in either portrait or landscape */
@media only screen and (max-width: 499.9px) and (max-height:1023.9px) and (pointer:coarse), only screen and (max-height: 499.9px) and (max-width:1023.9px) and (pointer:coarse) {
  body {
    overflow: visible;
  }


  .headline_container {
    height: 350px;
  }

  .treeContainer {
    max-height: 50vh;
    height: auto;
    flex-grow: 1;
  }

  .dashboardObject-containerDiv:fullscreen .treeContainer {
    max-height: unset;
  }
}

.jsoneditor-tree {
  background-color: white;
}

.multichart_titleandchartsparent {
  display: grid;
  width: 100%;
  height: 100%;
  grid-auto-rows: auto 1fr;
}

.multichart_grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: auto 1fr;
  grid-auto-rows: minmax(50px, 1fr);
}

.multichart_title {
  width: 100%;
  height: 100%;
  text-align: center;
}

.multichart_label {
  height: 100%;
  width: 100%;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mapInfo {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: var(--IMD-BACKGROUND-COLOR);
  color: var(--IMD-COLOR);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}

  .mapInfo h4 {
    margin: 0 0 5px;
    color: var(--IMD-COLOR);
  }

.mapLegend {
  line-height: 18px;
  background: var(--IMD-BACKGROUND-COLOR);
  color: var(--IMD-COLOR);
}

  .mapLegend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
  }

.mapToolTip {
  background: var(--IMD-BACKGROUND-COLOR) !important;
  color: var(--IMD-COLOR) !important;
}

.leaflet-popup-content {
  background: var(--IMD-BACKGROUND-COLOR);
  color: var(--IMD-COLOR);
}

.leaflet-popup-content-wrapper {
  background: var(--IMD-BACKGROUND-COLOR) !important;
}

.leaflet-popup-tip {
  background: var(--IMD-BACKGROUND-COLOR) !important;
}

@media only screen /* phones in portrait */
and (max-width: 499.9px) and (max-height: 1023.9px) {
  .multichart_grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto minmax(50px, 1fr);
  }

  .multichart_label {
    text-align: center;
    justify-content: center;
  }
}


