.deductions-card {
  margin-bottom: 18px;
}

.range-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -7px 0 13px;
  color: var(--muted);
  font-size: 9px;
}

.range-summary b {
  color: var(--ink);
  text-transform: capitalize;
}

.range-summary small {
  padding: 3px 7px;
  border-radius: 12px;
  background: var(--green-2);
  color: var(--green);
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-popover {
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}

.chart-popover rect {
  fill: #2c202a;
  filter: drop-shadow(0 4px 7px rgba(31, 20, 29, .18));
}

.chart-popover text {
  fill: #d9cfd6;
  font-size: 8px;
}

.chart-popover .chart-popover-value {
  fill: #fff;
  font-size: 10px;
  font-weight: 700;
}

.chart-hover:hover .chart-popover,
.chart-hover:focus .chart-popover {
  opacity: 1;
}

.chart-hover:hover .chart-point,
.chart-hover:focus .chart-point {
  r: 5px;
  fill: #6c3966;
}

.deduction-total {
  text-align: right;
}

.deduction-total span,
.deduction-total small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.deduction-total b {
  display: block;
  margin: 3px 0;
  font-size: 22px;
}

.deduction-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.deduction-grid > div {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.deduction-grid > div:last-child {
  border-right: 0;
}

.deduction-grid span,
.deduction-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.deduction-grid b {
  display: block;
  margin: 6px 0;
  font-size: 14px;
}

.deduction-grid b.positive {
  color: var(--green);
}

.deduction-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.deduction-foot b {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .deduction-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deduction-grid > div {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .deductions-card .card-header,
  .deduction-foot {
    display: grid;
  }

  .deduction-total {
    text-align: left;
  }

  .deduction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .deduction-grid {
    grid-template-columns: 1fr;
  }
}
