Computing the hours of N days ran one search on the analytic lines per
day. The days computed together now share a single search, whose lines
are grouped back by employee and day.
Each day keeps its lines in the search order (``date desc, id desc``),
the order the per-day search returned them in, so the sums are the same
to the last digit.
``get_total_hours_domain`` now returns the domain of all the days of the
recordset, and ``_get_total_hours`` reads its value from the shared
search.
Assisted-by: Claude:claude-opus-5-5
Assisted-by: GPT:gpt-6.1-sol
Assisted-by: GPT:gpt-6.2-astra-ultrafast