{# At a loss — Phase 2 dedicated table (§3.3 of UI/UX redesign spec). Reads `rows` (list of HarvestOpportunity), `only_harvestable` (bool), and `budget` from context — passed by `routes/positions.py` when `selected_view == 'at-loss'`. The harvestable-only checkbox uses `harvest_form_action` and `harvest_form_target` from context (Phase 1 review-fix Critical #1) so HTMX targets work on the new home. Phase 3 polishes: stacked mini-bar in the summary strip (T5-style), inline sim preview on hover, replacement detail (gain/loss for substitute), and density-aware row height. #}
Loading harvest plan…