/* Daily orders and price list (issue 6): lists that wrap, so a 360px phone needs no side scroll. */
.rp-filter { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-md); }
.rp-filter label { display: grid; gap: 2px; font-size: var(--text-sm); color: var(--ink-2); }
.rp-filter input { min-height: 44px; }
.rp-filter .btn { min-height: 44px; }
.rp-filter .grow { flex: 1 1 14rem; }
.rp-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; border-top: 1px solid var(--rule); }
.rp-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--rule); }
.rp-main { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rp-num { font-variant-numeric: tabular-nums; text-align: right; }
.rp-val { font-weight: 700; min-width: 7ch; }
.rp-sub { flex: 1 1 100%; color: var(--ink-2); font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.rp-total { font-weight: 700; border-top: 2px solid var(--rule); }
.rp-code { flex: 0 0 7ch; }
.rp-rates { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-sm); }

/* Tally morning run and verification (#178). Red marks a mismatch; a done step shows a tick. */
.tv-run { margin: 0 0 var(--space-md); padding: var(--space-sm); border: 1px solid var(--rule); border-radius: var(--radius); }
.tv-steps { margin: 0 0 var(--space-sm); padding-left: 1.4em; }
.tv-steps li { padding: 2px 0; }
.tv-steps li.done { color: var(--ink-2); }
.tv-steps li.done::marker { content: "✓ "; }
.tv-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tv-actions .btn { min-height: 44px; }
.tv-row.tv-bad { background: var(--bad-tint); color: var(--bad); }
.tv-row.tv-bad .rp-main { font-weight: 800; }
/* Health thresholds (#174 WP15): the level shows as text and colour; no threshold, no colour. */
.badge.hlth-ok { background: var(--ok-tint); color: var(--ok); }
.badge.hlth-warn { background: var(--warn-tint); color: var(--warn); }
.badge.hlth-alert { background: var(--bad-tint); color: var(--bad); }
.rp-val.hlth-warn { color: var(--warn); }
.rp-val.hlth-alert { color: var(--bad); }
/* Lab-report band under a health figure: the normal range on the left, the mark on the right. Wraps at 360px. */
.hlth-band { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px var(--space-sm); font-size: var(--text-sm); color: var(--ink-2); }
.hlth-band .badge { font-size: var(--text-sm); }
/* Six-month trend under a health figure (#653): bars in the ink colour, the selected month stronger, an empty month a dashed mark. */
.hlth-trend { flex: 1 0 100%; display: flex; justify-content: flex-end; color: var(--ink-2); }
.hlth-trend svg { display: block; }
.hlth-trend .hlth-bar { fill: currentColor; opacity: .55; }
.hlth-trend .hlth-cur { opacity: 1; }
.hlth-trend .hlth-gap { stroke: currentColor; stroke-width: 1; stroke-dasharray: 1 1; opacity: .6; }
.hlth-trend-head { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-sm); }
.hlth-trend-head .muted { flex: 1 1 14rem; margin: 0; }
