.finance-chart-title {
  margin: 28px 0 12px;
  color: var(--navy);
  font-size: 18px;
}

.finance-chart-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border-radius: 16px;
  padding: 18px 20px;
}

.finance-chart-legend {
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  display: flex;
}

.finance-chart-legend span {
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.finance-chart-legend span::before {
  content: "";
  border-radius: 99px;
  width: 20px;
  height: 7px;
  display: block;
}

.finance-chart-legend .revenue::before { background: #2fa66d; }
.finance-chart-legend .expenses::before { background: #f1784b; }
.finance-chart { gap: 18px; display: grid; }

.finance-chart article {
  grid-template-columns: minmax(180px, 28%) 1fr;
  align-items: center;
  gap: 20px;
  display: grid;
}

.finance-chart-event { min-width: 0; }
.finance-chart-event b, .finance-chart-event small { display: block; }

.finance-chart-event b {
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--navy);
  font-size: 12px;
  overflow: hidden;
}

.finance-chart-event small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}

.finance-chart-bars { gap: 7px; display: grid; }

.finance-chart-bars > div {
  background: #f1f3f6;
  border-radius: 999px;
  height: 22px;
  position: relative;
  overflow: hidden;
}

.finance-chart-bars i {
  border-radius: 999px;
  height: 100%;
  display: block;
  transition: width .35s ease;
}

.finance-chart-bars i.revenue { background: linear-gradient(90deg, #2fa66d, #72cf9b); }
.finance-chart-bars i.expenses { background: linear-gradient(90deg, #f1784b, #ffad83); }

.finance-chart-bars span {
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  line-height: 22px;
  position: absolute;
  top: 0;
  right: 9px;
}

@media (max-width: 700px) {
  .finance-chart-card { padding: 15px; }
  .finance-chart article { grid-template-columns: 1fr; gap: 8px; }
  .finance-chart-legend { justify-content: flex-start; }
  .finance-chart-event b { white-space: normal; }
  .finance-chart-bars span { font-size: 8px; }
}
