## MODIFIED Requirements ### Requirement: Sidebar Sections The sidebar SHALL show Dashboard first, then the labelled sections Events, Leads, Access and System, each with a fixed set and order of pages. A page not in any section SHALL appear in a final section without a label. A section SHALL be marked by a divider and a small muted label, with only the divider in the collapsed rail, and SHALL NOT show when it has no page the user may open. Every page SHALL have a distinct icon. #### Scenario: WhatsApp inbox in the Leads section - **WHEN** a user with `BO_WHATSAPP` and two unread conversations opens the portal - **THEN** the Leads section lists Leads, WhatsApp and Interests, with a badge showing 2 #### Scenario: Super admin sidebar - **WHEN** a super admin opens the portal - **THEN** the sidebar shows Dashboard, then "Events" with Events, Event leads and Pages, "Leads" with Leads, WhatsApp and Interests, "Access" with Users, Roles and Login security, and "System" with Companies, Emails, Audit log, Translations and Languages #### Scenario: Staff without admin pages - **WHEN** a staff user who can open only Events and Event leads opens the portal - **THEN** the sidebar shows only the "Events" section - **AND** no "Leads", "Access" or "System" label #### Scenario: Unknown page - **WHEN** the server menu has a page that is not in the category map - **THEN** it is listed after the System section, without a label #### Scenario: Collapsed rail - **WHEN** an admin collapses the sidebar to the icon rail - **THEN** the sections are separated by dividers and no section label shows