/* 90 day uptime history, appended to the compiled style.css so a future
   sass rebuild does not overwrite it */

.uptime {
  width: 100%;
  margin-top: 20px; }

.uptime__bar {
  display: flex;
  align-items: stretch;
  height: 34px; }

.uptime__day {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 1px;
  border-radius: 2px;
  background-color: #D8D8D8;
  cursor: default;
  outline: none;
  transition: opacity 0.12s ease-in-out; }
  .uptime__day:first-child {
    margin-left: 0; }
  .uptime__day:last-child {
    margin-right: 0; }
  .uptime__day:hover,
  .uptime__day:focus {
    opacity: 0.65; }

.uptime__day--operational {
  background-color: #008300; }

.uptime__day--degraded {
  background-color: #E8A33D; }

.uptime__day--partial {
  background-color: #EF7B22; }

.uptime__day--major {
  background-color: #E6362B; }

.uptime__day--nodata {
  background-color: #D8D8D8; }

.uptime__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.75em;
  line-height: 1.3333333333em;
  color: #7A8794; }

.uptime__legend-side {
  flex: 0 0 auto; }

.uptime__legend-uptime {
  flex: 1 1 auto;
  padding: 0 10px;
  text-align: center; }

.uptime__tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #30425A;
  color: #FFFFFF;
  font-size: 0.75em;
  line-height: 1.3333333333em;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease-in-out; }
  .uptime__tooltip.is-visible {
    opacity: 1;
    visibility: visible; }

/* the leftmost visible day changes with the number of bars that still fit */
.only-lg,
.only-md,
.only-sm {
  display: none; }

@media (min-width: 1024px) {
  .only-lg {
    display: inline; } }

@media (min-width: 768px) and (max-width: 1023px) {
  .only-md {
    display: inline; }
  .uptime__day.hide-md {
    display: none; } }

@media (max-width: 767px) {
  .only-sm {
    display: inline; }
  .uptime__day.hide-sm {
    display: none; }
  .uptime__bar {
    height: 30px; }
  .uptime__day {
    margin: 0 1.5px; } }
