.status-heatmap-canvas-wrapper {
  // position: relative;
  cursor: crosshair;

  // allow tooltips on hover of warning text
  .datapoints-warning {
    pointer-events: none;
  }

  .datapoints-warning span {
  background-color: $warning-bg;
  color: $text-color;
  padding: 1px;
  }
}

.status-heatmap-wrapper {
  position: relative;
  a.logo {
    display: block;
    background: $branding-logo no-repeat;
    background-size: contain;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    opacity: $branding-opacity;

    :hover > & {
      opacity: 1;
    }
  }
}

.statusmap-panel {
  position: relative;

  .axis .tick {
    text {
      fill: $text-color;
      color: $text-color;
      font-size: $font-size-tick;
    }

    line {
      opacity: 0.4;
      stroke: $text-color-weak;
    }
  }

  // This hack prevents mouseenter/mouseleave events get fired too often
  svg {
    pointer-events: none;

    rect {
      pointer-events: visiblePainted;
    }
  }
}

.statusmap-tooltip {
  // from .grafana-tooltip
  // '.grafana-tooltip a' makes links not readable for tooltip items.
  position: absolute;
  padding: 10px;
  font-weight: 200;
  border-radius: 5px;
  max-width: 800px;
  max-height: 600px;
  overflow: hidden;
  line-height: 14px;
  z-index: 9999;

  // more overrides
  white-space: nowrap;
  font-size: $font-size-sm;
  background-color: $graph-tooltip-bg;
  color: $text-color;

  // Hide markers for values in tooltip.
  ul li {
    list-style: none;
  }

  .discrete-item {
    color: #ffffff;
    padding: 1px;
    font-weight: bold;
    text-shadow: 0 0 0.2em #212124, 0 0 0.2em #212124, 0 0 0.2em #212124;
  }
}

.statusmap-tooltip-frozen {
  position: relative;
  z-index: 1;
}

.statusmap-histogram rect {
  fill: $text-color-weak;
}

.status-heatmap-crosshair {
  line {
    stroke: darken($red,15%);
    stroke-width: 1;
  }
}

.status-heatmap-selection {
  stroke-width: 1;
  fill: rgba(102, 102, 102, 0.4);
  stroke: rgba(102, 102, 102, 0.8);
}

.width-c-40 {
  width: 40.0rem!important
}
.width-c-50 {
  width: 50.0rem!important
}
.width-c-60 {
  width: 60.0rem!important
}
.width-c-70 {
  width: 70.0rem!important
}

.statusmap-pagination {
  // space between legend and pagination controls
  margin-top: 5px;
  label {
    margin-right:0px;
  }
  input {
    margin-right: 0px;
  }
  .last-in-group {
    margin-right: 4px;
  }
}

.pagination-buttons{text-align: right;}

.status-heatmap-legend-wrapper {
  margin: 0 10px;

  svg {
    height: 24px;
    float: left;
    white-space: nowrap;
    //padding-left: 10px; // DO NOT TOUCH THIS! legend will be clipped!
  }

  .status-heatmap-color-legend {
    margin-top: 4px;
  }

  .status-heatmap-legend-values {
    display: inline-block;
  }

  .axis .tick {
    text {
      fill: $text-color;
      color: $text-color;
      font-size: $font-size-tick;
    }

    line {
      opacity: 0.4;
      stroke: $text-color-weak;
    }

    .domain {
      opacity: 0.4;
      stroke: $text-color-weak;
    }
  }
}

.statusmap-about {
  .header-logo {
    height: 145px;
    width: 330px;
    background: $about-header-logo no-repeat;
    background-size: contain;
    margin-bottom: 7px;
  }
  a {
    text-decoration: underline;
  }
}
