/* Overview page.
   Goes with: js/screens/overview.js. */

.rule {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) 150px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
}
.rule .track {
  position: relative;
  height: 20px;
  background: var(--soft);
  border-radius: 6px;
}
.rule .fill {
  height: 100%;
  border-radius: 6px;
}
.rule .target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
}
body[data-page=overview] .hero {
  display: block;
}
.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kpi-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel[data-page=overview] .kpi .l {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel[data-page=overview] .kpi.hi {
  display: none;
}
.panel[data-page=overview] .kpis {
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
}
.trend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .trend {
  margin-top: 6px;
}
.trend svg {
  flex: none;
}
.donut {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.donut svg {
  flex: none;
  width: 150px;
  height: 150px;
}
.donut .lg {
  flex: 1;
  min-width: 180px;
  max-width: 460px;
  display: grid;
  gap: 7px;
}
.donut .lg div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink2);
}
.donut .lg i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.donut .lg b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}
.donut .lg small {
  color: var(--mute);
  font-size: 12px;
  min-width: 34px;
  text-align: right;
}
@media screen and (max-width:640px) {
  .rule {
    grid-template-columns: 80px minmax(0,1fr) 110px;
  }
}
@media screen and (max-width:700px) {
  body[data-page=overview] .htxt:before {
    color: var(--band-ink2);
  }
  .donut {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .donut svg {
    width: 150px;
    height: 150px;
    align-self: center;
  }
  .donut .lg {
    min-width: 0;
    max-width: none;
  }
  body[data-page=overview] .panel[data-page=overview] {
    margin-top: 0;
    padding-top: 0;
  }
}
@media (prefers-reduced-motion:reduce) {
  .donut circle {
    transition: none;
  }
}
@media screen and (min-width:900px) {
  .donut {
    flex-wrap: nowrap;
    gap: 40px;
    padding: 4px 8px;
  }
  .donut svg {
    width: 180px;
    height: 180px;
  }
  .donut .lg {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
    row-gap: 12px;
  }
}

