/* Marty — Plan page styles (F4). Uses core tokens from app.css. */

.plan-chips { margin-bottom: 16px; }

/* -------------------------------------------------- stat cards ---- */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card { padding: 14px 16px; }
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-pos { color: var(--green-dark); }
.stat-neg { color: var(--red); }

/* -------------------------------------------------- donut --------- */

.donut-wrap {
  position: relative;
  height: 220px;
  max-width: 320px;
  margin: 6px auto 8px;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-center .dc-amount {
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.donut-center .dc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.donut-legend { margin-top: 4px; }
.legend-pct { margin-left: 4px; min-width: 42px; justify-content: center; }

/* -------------------------------------------------- cashflow ------ */

.cashflow-wrap {
  position: relative;
  height: 200px;
}

/* -------------------------------------------------- income stmt --- */

.is-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.is-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.is-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.is-table .is-subtotal td {
  font-weight: 700;
  background: var(--green-softer);
}
.is-table .is-subtotal td:first-child { padding-left: 8px; border-radius: 8px 0 0 8px; }
.is-table .is-subtotal td:last-child { padding-right: 8px; border-radius: 0 8px 8px 0; }
.is-table .is-net td {
  font-weight: 800;
  font-size: 15px;
  border-bottom: none;
  border-top: 2px solid var(--ink);
}
