/* RECEIVER HEALTH: uptime, aircraft tracked today and the last week for one receiver. */
.receivers-health-link {
  color: var(--c-cyan);
}

.health-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.health-stats > div {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--c-grey-050505);
  border: 1px solid var(--c-grey-222);
  border-radius: 4px;
  color: var(--c-grey-aaa);
  font-size: 0.7rem;
}

.health-num {
  color: var(--c-white);
  font-size: 1.4rem;
  font-weight: bold;
}

.health-spark {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 120px;
  padding-top: 4px;
  border-bottom: 1px solid var(--c-grey-333);
}

.health-spark-bar {
  flex: 1;
  min-width: 1px;
  background: var(--c-cyan);
  border-radius: 1px 1px 0 0;
}

.health-spark-bar--gap {
  background: repeating-linear-gradient(45deg, rgba(220, 38, 38, 0.35) 0 3px, transparent 3px 6px);
}

.health-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--c-grey-aaa);
  font-size: 0.62rem;
}

/* board.css styles every table as the fixed-width BOARD; this one sizes to its content. */
#receiver-health-v .health-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#receiver-health-v .health-table th,
#receiver-health-v .health-table td {
  width: auto !important;
  padding: 6px 8px;
  border-bottom: 1px solid var(--c-grey-222);
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

#receiver-health-v .health-table th {
  color: var(--c-grey-aaa);
  font-size: 0.65rem;
}

.health-meter {
  display: inline-block;
  width: 80px;
  height: 8px;
  margin-right: 6px;
  overflow: hidden;
  vertical-align: middle;
  background: var(--c-grey-222);
  border-radius: 4px;
}

.health-meter span {
  display: block;
  height: 100%;
  background: var(--c-green);
}
