# subscribers_history.php style rebuild audit

## Page
`admin/subscribers_history.php`

## Scope
Subscriber sub-page opened from the subscribers area. This pass intentionally touches only the history page and its adapter.

## Root cause found
The old page was still using the shared subscriber-child route:

- `ua-subscriber-child-page`
- `ua-sub-child-history`
- `ua-page-v2`
- `ua-panel-v2`
- `ua-child-metric`
- `history-grid`
- Bootstrap-style action classes

Those names are targeted by multiple legacy extracted CSS blocks, so visual changes from the new contract were being partially overridden.

## Fix strategy
- Remove the old subscriber-child class route from this page.
- Move the page to an isolated root: `ua-history-contract-page`.
- Put visual rules in the central system only: `ua_program_unified.css`.
- Put layout-only rules in: `ua_subscribers_history_adapter.css`.
- Do not change SQL queries, logging, invoices, consumption logic, or MikroTik behavior.

## Files changed
- `subscribers_history.php`
- `assets/css/ua_program_unified.css`
- `assets/css/ua_subscribers_history_adapter.css`
- `docs/ua_subscribers_history_audit.md`

## Contract
- Cards have outer frames only.
- Values inside cards do not get their own frames.
- Tables use the central history table contract.
- Buttons do not use Bootstrap `.btn` classes inside this page.
