/* Accounts styles. */

.account-card {
  min-height: 175px;
  position: relative;
  overflow: hidden;
}
.account-card:after {
  content: "";
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--green-soft);
  position: absolute;
  right: -35px;
  bottom: -50px;
}
.account-head span {
  color: var(--muted);
  font-size: 12px;
}
.account-card strong {
  display: block;
  font-size: 24px;
  margin-top: 38px;
}
.account-card small {
  color: var(--muted);
}

.account-summary {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
.account-actions {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 6px;
}
.account-actions .delete-account {
  color: var(--orange);
}
.account-card > small {
  display: block;
}

.account-chart-panel {
  margin-bottom: 16px;
}
.account-chart {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}
.donut-wrap {
  position: relative;
  width: 212px;
  height: 212px;
  justify-self: center;
}
.donut-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
.donut-wrap canvas:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 50%;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-center small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.donut-center strong {
  font-size: 19px;
  letter-spacing: -0.03em;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.donut-center > small:first-child {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-inline: auto;
}
#donutCenterSub {
  margin: 5px 0 0;
  font-size: 11px;
}
#donutCenterSub:empty {
  display: none;
}
.account-legend {
  display: grid;
  gap: 3px;
  align-content: center;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: default;
}
.legend-row:hover,
.legend-row.active {
  background: var(--surface2);
}
.legend-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.legend-key {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.legend-name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-row > b {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.legend-row > small {
  width: 54px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .account-chart {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .donut-wrap {
    width: 188px;
    height: 188px;
  }
  .account-legend {
    align-content: start;
  }
}
