footer {
  padding: 0.2em;
}

h1.tickbeat {
  font-size: 26px;
}

table.beats.table.table-condensed td.number {
  text-align: right;
  font-size: 80%;
}

table.beats {
  margin-top: 3em;
}

.control {
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  width: 60px;
  display: inline-block;
  text-align: center;
}

.control.narrow {
  width: 40px;
}

.control:hover {
  text-decoration: none;
  background-color: #337ab7;
  color: black;
}

.beat .name,
.beat .description {
  margin: 2px;
}

.beat .name a:hover {
  text-decoration: none;
}
.beat .name a[href]:hover {
  text-decoration: none;
}

.beat .description {
  font-size: 85%;
  opacity: 0.6;
}
.beat.muted td,
.dark,
footer {
  opacity: 0.2;
}
tr.beat.muted {
  background-color: #272b30;
}
.beat.muted .controls {
  opacity: 0.5;
}
.beat.muted .controls:hover {
  opacity: 1;
}

.up {
  color: #0f0;
}

.down {
  color: #500;
}

.warn {
  color: #fd5;
}

.overall {
  margin-top: 0;
  font-size: 22px;
}

.overall strong {
  padding: 6px;
  width: 120px;
  display: inline-block;
  text-align: center;
}

.overall .up,
td span.dashboard.up {
  border-radius: 4px;
  background-color: rgba(0, 255, 0, 0.5);
}

.overall .down,
td span.dashboard.down {
  border-radius: 4px;
  background-color: rgba(255, 70, 70, 0.85);
}

.overall .warn,
td span.dashboard.warn {
  border-radius: 4px;
  background-color: rgba(180, 150, 50, 0.85);
}

td span.dashboard {
  display: inline-block;
  width: 3.5em;
  margin-top: 6px;
}

.history {
  margin: 0.5em;
  width: 10em;
  height: 0.8em;
  display: block;
  position: relative;
  background-color: rgba(100, 100, 100, 0.2);
  float: right;
}

.history-tick {
  padding: 0;
  margin-top: -0.7em; /* must be same as -1 * border-top/bottom height */
  display: inline-block;
  width: 1px;
  border-top: 0.7em solid rgba(255, 255, 255, 0.8);
  border-bottom: 0.7em solid rgba(255, 255, 255, 0.8);
  height: 0px;
  top: 50%;
  background-color: transparent;
  position: absolute;
  z-index: 2;
}

.history-bar.up {
  background-color: rgba(0, 255, 0, 0.5);
  border-top: 0.5em solid rgba(0, 255, 0, 0.5);
  border-bottom: 0.5em solid rgba(0, 255, 0, 0.5);
}
.history-bar.down {
  background-color: rgba(255, 0, 0, 0.5);
  border-top: 0.5em solid rgba(255, 0, 0, 0.5);
  border-bottom: 0.5em solid rgba(255, 0, 0, 0.5);
}

.history-bar {
  z-index: 1;
  padding: 0;
  margin-top: -0.5em; /* must be same as -1 * border-top/bottom height */
  display: inline-block;
  background-color: transparent;
  height: 0;
  top: 50%;
  position: absolute;
}

.historysvg .bg {
  fill: rgba(100, 100, 100, 0.2);
}
.historysvg .down {
  fill: rgba(255, 0, 0, 0.5);
}
.historysvg .warn {
  fill: rgba(180, 150, 50, 0.85);
}
.historysvg .up {
  fill: rgba(0, 255, 0, 0.5);
}
.historysvg .tick {
  fill: rgba(255, 255, 255, 0.7);
}

.htmx-request {
  opacity: 0.7;
  /* something swishy animated? */
}

.relative-time {
  /* background-color: rgba(255,0,255,0.4); */
  min-width: 8em;
  display: inline-block;
}

.curltick {
  display: none;
}

tr.curltick td {
  padding: 0 0 1.5em 0 !important;
}

tr.curltick tt {
  display: inline-block;
  width: 100%;
  overflow-x: hidden;
  color: rgba(0, 255, 0, 0.5);
  padding: 0.5em 0.5em 0.5em 2em;
  white-space: nowrap;
}

.curltick-visible .curltick {
  display: revert;
}

.curltick-visible .no-curlticks {
  display: none;
}

.controls {
  display: none;
}

.controls-visible .no-controls {
  display: none;
}

.controls-visible .controls {
  display: revert;
}
