.budget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.5rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;

  &:hover {
    background: var(--color-bg-muted);
    .budget-actions {
      display: flex;
    }

    .budget-total {
      display: none;
    }
  }
}

.budget-over {
  background: var(--color-error);
}

.budget-warn {
  background: var(--color-warning);
}

.budget-ok {
  background: var(--color-success);
}

.budget-actions {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

.budget-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;

  & svg {
    stroke: currentColor;
  }

  &:hover {
    background: var(--color-bg-muted);
    color: var(--color-text);
  }
}

.budget-total {
  display: block;
}

.hide {
  display: none !important;
}

.show {
  display: block;
}

.bento-budget-form {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-muted);
  border-radius: 0.5rem;
}
