# Shared table presentation

All HTML tables using Bootstrap's `.table` class share the glass surface in
`application/Resources/css/_bootswatch.scss`. The surface uses the existing
glass mixin, including blur, a translucent gradient and shadows. Bootstrap
striping, hover and contextual cell colors remain available. This includes
RollPoints administration and account tables.

Wrap a table in the standard `.table-responsive` container to enable horizontal
scrolling. The global `table-scroll.js` script, loaded by the shared footer,
automatically adds a presentation wrapper. No per-view initialization, custom
attributes or indicator markup are required. The wrapper's CSS displays a
gradient on the left and/or right only while content is hidden on that side.
Indicators do not intercept clicks or dragging. Without JavaScript, the table
retains its native horizontal scrolling and glass surface.

Scroll, window resize and ResizeObserver events refresh the indicators. Both
the table and its scrolling viewport are observed, including when an initially
hidden tab or modal is shown. Tables are discovered on DOMContentLoaded; new
tables inserted after that event are not initialized by this script.

The section payments report uses these shared indicators and keeps its own
width toggle, mouse dragging, scrollbar styling and pinned participant column.
No data, configuration, migration or public FAQ changes are required. SCSS must
be included in the standard generated CSS through the existing Sass workflow.

## Verification

With generated CSS up to date, check a RollPoints admin table, an account table
and the section payments report at narrow and wide viewport widths. A table
that fits has no indicators. An overflowing table shows only the right gradient
at the start, both gradients in the middle and only the left gradient at the
end. Widening the viewport until the table fits removes both. Check a table
inside an initially hidden tab/modal, and check links, forms, native scrolling,
report dragging and the report's pinned participant column. Check the glass
surface and readable striped/hovered rows in both light and dark themes.
