// Production UI: Sector Toolbar and Executive Summaries import { SECTORS } from '../../data/products.js'; import { fmtNum } from '../../core/formatters.js'; export function renderSectorBarHtml(selectedSector, engine) { const currentSectorObj = SECTORS.find(s => s.id === selectedSector); let html = `
`; // 1. Single Sector Executive Summary Banner if (selectedSector !== 'all' && currentSectorObj) { const stats = engine?.sectorStats?.[selectedSector] || { revenueRate: 0, unitsRate: 0, activeLines: 0, totalProduced: 0 }; html += ` `; } // 2. All Sectors Mini Summary Grid if (selectedSector === 'all') { html += `