COMPLETE BRANCH NUMBERING AND CONTEXT PATCH

Extract this ZIP into the directory containing the cms folder.

Files updated:
cms/includes/auth.php
cms/includes/sidebar.php
cms/includes/topbar.php
cms/dashboard/admin.php
cms/modules/branches/form.php

Also import:
normalize_branch_numbers.sql

Important:
- branches.id remains the global database primary key.
- users.branch_id continues to store branches.id.
- branches.branch_id becomes the local number inside each school:
  main branch 0, next branch 1, next branch 2, and so on.
- Header, sidebar and admin dashboard show school name, branch name,
  branch code and local branch number.

Back up files and database before applying.
Log out and log in again after applying.
