/* Budget Calculator — page-specific styling on top of shared components. */

.category-row {
  display: grid;
  grid-template-columns: 1fr 130px 32px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.category-row:last-child { border-bottom: none; }
.category-row .cat-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-row .cat-name .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.category-row .cat-name input {
  border: none; background: none; font: inherit; color: inherit; padding: 0; width: 100%;
}
.category-row .cat-name input:focus { outline: none; }
.category-row .calc-input-group { grid-column: 2; }
.category-row .cat-remove {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--color-border); color: var(--color-text-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.category-row .cat-remove:hover { border-color: var(--color-error); color: var(--color-error); }
.category-row .cat-remove svg { width: 11px; height: 11px; }

.cat-new-row { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.cat-new-row select { flex-shrink: 0; width: auto; }

.category-section { margin-bottom: var(--space-5); }
.category-section:last-child { margin-bottom: 0; }
.category-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.category-section-head h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
}
.category-section-total { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.category-section-empty { font-size: var(--text-sm); color: var(--color-text-subtle); padding: var(--space-2) 0; }
.cat-add-btn {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
}
.cat-add-btn:hover { color: var(--color-accent); text-decoration: underline; }

#donutLegend .legend-row { display: flex; align-items: center; gap: 6px; }
