/* Supply on the Regimen page: one block a medication, its strengths tiled under it. */
.supply-group + .supply-group {
  margin-top: 20px;
}
.supply-med {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 1rem;
}
.supply-med .muted {
  font-size: 0.85rem;
  font-weight: 500;
}
.supply-group > .tile-list + .row {
  margin-top: 6px;
}
.supply-untracked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.supply-meter {
  display: block;
  margin: 2px 0 10px;
  height: 6px;
}
/* Blue, not the accent pink: a full bar in pink read as red, as if something were wrong. */
.meter.supply-meter {
  background: var(--info-soft);
}
.meter.supply-meter::before {
  background: var(--info);
}
.meter.meter-warn {
  background: var(--warn-soft);
}
.meter.meter-warn::before {
  background: var(--warn, #c77700);
}
.hint.hint-warn,
.small.hint-warn {
  color: var(--warn-text, var(--text));
}
.supply-check {
  display: grid;
  gap: 6px;
  margin: 6px 0 10px;
}
.supply-check .hint {
  margin: 0;
}
/* What's on hand, on the current regimen's card: soft tiles with the Supply page's meter. */
.supply-summary {
  margin-top: 12px;
}
/* "Track supply" is a link that looks like "Add notes". */
.supply-summary .q-new-btn {
  text-decoration: none;
}
.supply-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.supply-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.supply-tile:hover {
  border-color: var(--line);
}
.supply-tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.supply-tile-head .med-route {
  margin-top: 0;
}
.supply-tile-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
/* .meter grows along a row; in this column it would collapse to no height. */
.supply-tile .supply-meter {
  flex: none;
  margin: 0;
}
.supply-tile-left {
  font-size: 0.82rem;
  color: var(--text-2);
}
.supply-row {
  display: grid;
  gap: 8px;
}
.supply-row + .supply-row {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.supply-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
