{# CELL BAR (#227) — a figure drawn as a bar under it, filling `cell.bar` percent of the cell. Both cells carry a width, or auto layout shares the row out; a zero bar emits only the remainder. A nested presentation table because the Word engine honours a td's `width` attribute and nothing else; the print engine reads only the CSS twin, and without it every bar on a sheet printed at one length (#320); `padding: 0 !important` inline beats the mobile rule that pads every `.data-table td`. A BarList (#320) names the fill's colour in `cell.bar_color`, and its left half sets `cell.reverse` to fill from the right. #} {% set fill = cell.bar_color or theme.palette.accent %} {% if cell.reverse and cell.bar < 100 %}{% endif %}{% if cell.bar > 0 %}{% endif %}{% if not cell.reverse and cell.bar < 100 %}{% endif %}