/* Time screens (6 Nov rebuild: docs/redesign/light/time.html and night/time.html). Every timesheets page wraps in
   <div class="body timesheets">. Linked from core/templates/core/base.html. Every rule is scoped to .timesheets (or
   .ts-homeclock, the one row this app puts on Home). Built from the shared parts in jeevz.css (cards, chips, rows, day
   pills, ring, stepper, buttons); this file only lays them out.
   The clock card is the page's one loud thing. Light: today's ring beside the time (worked of a normal day). Night: the
   time in huge Cabinet digits on a graphite card with a green edge. A difference between the looks is a screen token
   (--ts-*), set once for light and once for night; the [data-theme=dark] block and the auto-on-a-dark-phone block stay
   identical. The clock's buttons sit in the dock, in the thumb zone. Learnings: docs/design-learnings.md. */
#app .timesheets{
  --ts-ring:grid; --ts-areas:"ring state" "ring timer" "ring job"; --ts-cols:128px minmax(0,1fr);
  --ts-clock-bg:var(--jz-surface); --ts-clock-edge:var(--jz-shadow); --ts-digits:52px; --ts-secs:22px; --ts-job-t:17px}
[data-theme=dark] #app .timesheets{
  --ts-ring:none; --ts-areas:"state" "job" "timer"; --ts-cols:minmax(0,1fr);
  --ts-clock-bg:linear-gradient(180deg,#15201a,#141a20 60%); --ts-clock-edge:inset 0 0 0 1.5px #2f4a36; --ts-digits:clamp(76px,26vw,104px); --ts-secs:34px; --ts-job-t:21px}
@media (prefers-color-scheme:dark){
[data-theme=auto] #app .timesheets{
  --ts-ring:none; --ts-areas:"state" "job" "timer"; --ts-cols:minmax(0,1fr);
  --ts-clock-bg:linear-gradient(180deg,#15201a,#141a20 60%); --ts-clock-edge:inset 0 0 0 1.5px #2f4a36; --ts-digits:clamp(76px,26vw,104px); --ts-secs:34px; --ts-job-t:21px}
}

/* ---- the clock card ---- */
#app .timesheets .ts-clock{margin:0 0 var(--jz-s4)}
#app .timesheets .ts-clock.is-running,#app .timesheets .ts-clock.is-break{display:grid;grid-template-columns:var(--ts-cols);grid-template-areas:var(--ts-areas);column-gap:16px;align-items:center;padding:16px 18px 18px 14px;background:var(--ts-clock-bg);box-shadow:var(--ts-clock-edge)}
#app .timesheets .ts-ring{grid-area:ring;display:var(--ts-ring);place-items:center}
#app .timesheets .ts-ring .jz-ring-in small{margin:0;font:700 15px/1 var(--jz-sans);color:var(--jz-ink)}
#app .timesheets .ts-clock .ts-state{grid-area:state;margin:0}
#app .timesheets .ts-clock .jz-chip{min-height:32px;font-size:15px}
#app .timesheets .ts-dot{flex:none;width:10px;height:10px;border-radius:50%;background:currentColor;opacity:.55}
#app .timesheets .ts-dot.is-live{opacity:1;background:var(--jz-done);animation:ts-pulse 2s ease-out infinite}
@keyframes ts-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--jz-done) 55%,transparent)}70%{box-shadow:0 0 0 9px transparent}100%{box-shadow:0 0 0 0 transparent}}
#app .timesheets .ts-timer{grid-area:timer;display:flex;align-items:baseline;gap:0;margin:10px 0 0;font:800 var(--ts-digits)/.86 var(--jz-display);letter-spacing:var(--jz-track-num,-.03em);color:var(--jz-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .timesheets .ts-timer i{font-style:normal;margin-right:.12em}
#app .timesheets .ts-timer small{font-size:var(--ts-secs);font-weight:800;color:var(--jz-ink-2);margin-left:2px}
#app .timesheets .ts-timer.is-long{font-size:calc(var(--ts-digits) * .8)}
#app .timesheets .ts-clock.is-break .ts-timer{color:var(--jz-ink-2)}
#app .timesheets .ts-job{grid-area:job;display:flex;flex-direction:column;gap:2px;margin:10px 0 0;min-width:0}
#app .timesheets .ts-job b{font:700 var(--ts-job-t)/1.2 var(--jz-sans);color:var(--jz-ink);overflow-wrap:anywhere}
#app .timesheets .ts-job small{font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2);font-variant-numeric:tabular-nums}
#app .timesheets .ts-ask{margin:14px 0 6px;font:700 var(--jz-t-card)/1.15 var(--jz-display);letter-spacing:var(--jz-track-display,-.02em);color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .timesheets .ts-help{margin:0;font:500 var(--jz-t-body)/1.4 var(--jz-sans);color:var(--jz-ink-2);overflow-wrap:anywhere}
#app .timesheets .ts-clock.is-idle .ts-state{margin:0}
/* forgot to stop: the open day, with a 15-minute stepper set to the likely finish and Save beside it */
#app .timesheets .ts-fix{display:flex;align-items:center;gap:10px;margin:16px 0 0}
#app .timesheets .ts-fix .jz-stepper{flex:1;min-width:0}
#app .timesheets .ts-fix .ts-save{flex:none;width:104px}
#app .timesheets .ts-fix-l{display:none}
#app .timesheets .ts-fill{fill:currentColor;stroke:none}
/* the dock: Break (or Back to work) and Clock out, side by side in the thumb zone */
#app .timesheets .ts-dock-row{display:grid;grid-template-columns:124px minmax(0,1fr);gap:10px}
#app .timesheets .ts-dock-row form{margin:0;display:flex}
#app .timesheets .ts-dock-row form.ts-out{order:2}
#app .timesheets .ts-dock .jz-btn{min-height:var(--jz-btn-l)}
#app .timesheets .ts-dock .jz-btn.is-2{min-height:var(--jz-btn-l);box-shadow:inset 0 0 0 1.5px var(--jz-btn2-ring)}
#app .timesheets .ts-clock.is-break~.dock .ts-dock-row{grid-template-columns:minmax(0,1fr) 140px}

/* "Finished earlier? Say when": one quiet line under the clock, so Clock out stays the only stop control you see */
#app .timesheets details.ts-earlier{margin:-4px 0 var(--jz-s4)}
#app .timesheets details.ts-earlier>summary{display:flex;align-items:center;justify-content:center;min-height:48px;list-style:none;cursor:pointer;font:600 var(--jz-t-meta)/1.2 var(--jz-sans);color:var(--jz-forest)}
#app .timesheets details.ts-earlier>summary::-webkit-details-marker{display:none}
#app .timesheets details.ts-earlier .ts-fix{flex-direction:column;align-items:stretch;margin:0}

/* ---- this week: the day pills, with the total on the heading ---- */
#app .timesheets .ts-weekhead .ts-wtot b{font:800 22px/1 var(--jz-display);color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .timesheets .ts-weekcard .jz-days{margin-bottom:10px}
#app .timesheets .ts-weekline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px var(--jz-s2);font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-weekline a{display:inline-flex;align-items:center;gap:2px;min-height:48px;color:var(--jz-forest);font-weight:600;text-decoration:none}
#app .timesheets .ts-weekline .jz-ic{width:18px;height:18px}
#app .timesheets .ts-over{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--jz-late)}
#app .timesheets .ts-over .jz-ic{width:18px;height:18px}

/* ---- people: weeks to approve and the team ---- */
#app .timesheets .ts-people .jz-li-v{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
#app .timesheets .ts-people .jz-li-v .ts-over{font:600 13px/1.2 var(--jz-sans)}
#app .timesheets .ts-on,#app .timesheets .ts-ok{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--jz-forest)}
#app .timesheets .ts-ok .jz-ic{width:16px;height:16px}
#app .timesheets .ts-on .ts-dot{width:8px;height:8px}
#app .timesheets .ts-foot{margin:2px 6px var(--jz-s4);font:500 var(--jz-t-meta)/1.35 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets details.ts-set>summary{list-style:none;cursor:pointer}
#app .timesheets details.ts-set>summary::-webkit-details-marker{display:none}
#app .timesheets .ts-change{flex:none;font:600 var(--jz-t-meta)/1 var(--jz-sans);color:var(--jz-forest)}
#app .timesheets .ts-setform{display:flex;flex-direction:column;gap:12px;margin:0;padding:4px 18px 18px}
#app .timesheets .ts-noloc{display:flex;gap:10px;align-items:flex-start;margin:var(--jz-s6) 6px 0;font:500 var(--jz-t-meta)/1.38 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-noloc .jz-ic{flex:none;width:20px;height:20px;margin-top:1px}

/* ---- one person's week ---- */
#app .timesheets .ts-step{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 var(--jz-s4)}
#app .timesheets .ts-step b{font:700 var(--jz-t-body)/1.2 var(--jz-sans);color:var(--jz-ink);font-variant-numeric:tabular-nums;text-align:center}
#app .timesheets .ts-step .jz-round{background:var(--jz-surface);box-shadow:var(--jz-shadow)}
#app .timesheets .ts-stepgap{flex:none;width:var(--jz-btn);height:var(--jz-btn)}
#app .timesheets .ts-who{margin-bottom:var(--jz-s3)}
#app .timesheets .ts-who .jz-autogo{margin:0 var(--jz-s4) var(--jz-s3)}
#app .timesheets .ts-total{padding:20px 20px 16px}
#app .timesheets .ts-tline{margin:0 0 4px}
#app .timesheets .ts-tbig{display:block;margin:10px 0 4px;font:800 var(--jz-t-hero)/.95 var(--jz-display);letter-spacing:var(--jz-track-num,-.03em);color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .timesheets .ts-tbig small{margin-left:2px;font-size:.42em;font-weight:700;color:var(--jz-ink-2)}
#app .timesheets .ts-tsub{margin:0 0 16px;font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2);overflow-wrap:anywhere}
#app .timesheets .ts-total .jz-days{margin:0}
#app .timesheets .ts-total .jz-day{background:var(--jz-surface-2);box-shadow:none;min-height:124px}
#app .timesheets .ts-total .jz-day.is-now{background:var(--jz-now-bg)}
#app .timesheets .ts-stuck .ts-help{margin-top:10px}
#app .timesheets .ts-stuck .ts-fix{flex-wrap:wrap}
#app .timesheets .ts-stuck .ts-fix .jz-btn{flex:1 1 100%}
/* the days and jobs: one card of rows */
#app .timesheets .ts-days{margin:0 0 14px;padding:0;background:var(--jz-surface);border-radius:var(--jz-r-card);box-shadow:var(--jz-shadow);overflow:hidden}
#app .timesheets .ts-days .ts-entry+.ts-entry{box-shadow:inset 0 1px 0 var(--jz-hair)}
#app .timesheets .ts-days .ts-entry::before{display:none}
#app .timesheets .ts-billgroup{margin-top:var(--jz-s6)}
#app .timesheets .ts-quiet .jz-btn{width:auto;margin:0 auto;padding:0 24px}
/* the days: one list. A day with one job is one row; a day with two has a day row and indented job rows */
#app .timesheets .ts-entry.ts-sub{min-height:56px;padding-left:calc(var(--jz-s4) + 16px)}
#app .timesheets .ts-entry.ts-sub+.ts-entry.ts-sub::before{left:calc(var(--jz-s4) + 16px)}
#app .timesheets .ts-entry.ts-sub .ts-et b{font-weight:500}
#app .timesheets .ts-entry.ts-sub .ts-ev{font-weight:500;color:var(--jz-muted)}
#app .timesheets .ts-entry.is-live .ts-ev{color:var(--jz-forest)}
#app .timesheets .ts-et small .jz-st{display:inline-flex;margin-right:2px}
/* someone else's clock, still running: the owner can stop it for them */
#app .timesheets .ts-billgroup{margin-top:var(--jz-s6)}
/* a button that waits until its form is filled in: dim, still tappable so the phone says what's missing */
#app .timesheets form:has(:invalid) .ts-needfill{opacity:.42;box-shadow:none}
/* Add time: the Day and time rows show words ("Today", "08:30", "Pick a time") over the native picker */
#app .timesheets .ts-pickrow{position:relative}
#app .timesheets .ts-pickrow input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
#app .timesheets .ts-pickrow input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;opacity:0;cursor:pointer}
#app .timesheets .ts-pv-show{margin-left:auto;font:400 17px/22px var(--jz-sans);color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .timesheets .ts-pv-show.is-none{color:var(--jz-faint)}
#app .timesheets .ts-pv-show::after{content:"";display:inline-block;width:7px;height:7px;margin:0 6px 2px 14px;border:solid var(--jz-chev);border-width:0 2px 2px 0;transform:rotate(45deg)}
#app .timesheets .ts-pickrow:focus-within{background:var(--jz-field)}
#app .timesheets ol.ts-entries{list-style:none;padding:0}
#app .timesheets .ts-entry{position:relative;display:flex;align-items:center;gap:var(--jz-s3);min-height:64px;padding:10px var(--jz-s4);box-sizing:border-box;color:var(--jz-ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
#app .timesheets a.ts-entry:active{background:var(--jz-field)}
#app .timesheets .ts-et{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#app .timesheets .ts-et b{font:600 17px/22px var(--jz-sans);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#app .timesheets .ts-et small{font:400 15px/20px var(--jz-sans);color:var(--jz-muted);font-variant-numeric:tabular-nums;text-wrap:pretty}
#app .timesheets .ts-ev{flex:none;font:600 17px/22px var(--jz-sans);color:var(--jz-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .timesheets .ts-swrow{min-height:72px;padding-top:10px;padding-bottom:10px}
#app .timesheets .ts-swrow>.k{display:flex;flex-direction:column;gap:2px;max-width:75%}
#app .timesheets .ts-swrow>.k small{font:400 15px/20px var(--jz-sans);color:var(--jz-muted);overflow-wrap:anywhere}
#app .timesheets .ts-quiet{margin:var(--jz-s6) 0 0;text-align:center}
#app .timesheets .ts-quiet .linkbtn{min-height:44px;font:600 15px/20px var(--jz-sans);color:var(--jz-forest)}
#app .timesheets .ts-runnote{margin-top:0}

/* ---- pick the job ---- */
#app .timesheets .ts-picks>form{position:relative;margin:0}
#app .timesheets .ts-pick{display:flex;align-items:center;gap:var(--jz-s3);width:100%;min-height:76px;margin:0;padding:10px var(--jz-s4);border:0;border-radius:0;background:none;box-shadow:none;color:var(--jz-ink);text-align:left;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#app .timesheets .ts-pick:active{background:var(--jz-field)}
#app .timesheets .ts-pick-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:var(--jz-r-icon);background:var(--jz-soft);color:var(--jz-forest-ink);font:700 14px/1 var(--jz-sans);font-variant-numeric:tabular-nums}
#app .timesheets .ts-pick-ic svg{width:24px;height:24px;fill:none;stroke:var(--jz-forest);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#app .timesheets .ts-pick-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#app .timesheets .ts-pick-t b{font:600 17px/22px var(--jz-sans);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#app .timesheets .ts-pick-t small{font:400 15px/20px var(--jz-sans);color:var(--jz-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .timesheets .ts-go{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--jz-forest)}
#app .timesheets .ts-go svg{width:20px;height:20px;margin-left:2px;fill:#fff}
#app .timesheets details.ts-fold>summary{display:flex;align-items:center;gap:6px;min-height:44px;list-style:none;cursor:pointer}
#app .timesheets details.ts-fold>summary::-webkit-details-marker{display:none}
#app .timesheets details.ts-fold>summary::after{content:"";width:7px;height:7px;margin:0 0 4px 4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
#app .timesheets details.ts-fold[open]>summary::after{transform:rotate(225deg);margin-bottom:-4px}

/* ---- Home: "Clocked in" at the very top while a clock runs (core/templates/core/today.html) ---- */
#app .ts-homeclock{position:relative;display:flex;align-items:center;gap:var(--jz-s3);min-height:64px;margin:0 0 var(--jz-s4);padding:10px var(--jz-s4);border-radius:var(--jz-r);background:var(--jz-night);color:var(--jz-on-night);text-decoration:none;box-shadow:var(--jz-shadow)}
#app .ts-homeclock .ts-hc-dot{flex:none;width:10px;height:10px;margin:0 4px;border-radius:50%;background:var(--jz-hero-num);animation:ts-pulse-dot 2s ease-in-out infinite}
#app .ts-homeclock.is-due .ts-hc-dot{background:#ffd27a;animation:none}
#app .ts-homeclock .ts-hc-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
#app .ts-homeclock .ts-hc-t b{font:600 17px/22px var(--jz-sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .ts-homeclock .ts-hc-t small{font:400 15px/20px var(--jz-sans);color:var(--jz-night-muted);overflow-wrap:anywhere}
#app .ts-homeclock .ts-nw{white-space:nowrap}
#app .ts-homeclock .ts-hc-v{flex:none;font:800 22px/1 var(--jz-sans);letter-spacing:-.02em;color:var(--jz-hero-num);font-variant-numeric:tabular-nums}
#app .ts-homeclock svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--jz-night-muted);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){#app .ts-homeclock .ts-hc-dot{animation:none}}

/* ======== 7 Nov Time upgrade: chips, still-on, arrivals, send, time off, pay sheet, rates, reports, settings,
   kiosk. Built from the shared parts; only layout here. Both looks use the role tokens, so one rule serves both. */

/* finish-time chips: big tappable times, the diary's one marked */
#app .ts-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;margin:14px 0 0}
#app .ts-chips form{margin:0;display:flex}
#app .ts-chip{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;padding:6px 4px;border:0;border-radius:var(--jz-r-inner);background:var(--jz-surface-2);box-shadow:inset 0 0 0 1.5px var(--jz-edge);color:var(--jz-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--jz-dur-press) var(--jz-ease-out)}
#app .ts-chip:active{transform:scale(.97)}
#app .ts-chip b{font:800 21px/1 var(--jz-display);font-variant-numeric:tabular-nums}
#app .ts-chip small{font:600 12px/1.15 var(--jz-sans);color:var(--jz-ink-2)}
#app .ts-chip.is-diary{background:var(--jz-wash);box-shadow:inset 0 0 0 2px var(--jz-forest)}
#app .ts-chip.is-diary small{color:var(--jz-forest)}
#app .timesheets .ts-or{margin:14px 0 -6px;font:600 var(--jz-t-label)/1.2 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-late{margin:0 0 var(--jz-s4)}
/* Home: "Still on at ...?" */
#app .ts-homelate{margin:0 0 var(--jz-s4)}
#app .ts-homelate .ts-hl-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
#app .ts-homelate .ts-hl-open{display:inline-flex;align-items:center;min-height:48px;font:600 var(--jz-t-meta)/1 var(--jz-sans);color:var(--jz-forest);text-decoration:none}
#app .ts-homelate .ts-hl-ask{margin:10px 0 4px;font:700 var(--jz-t-card)/1.15 var(--jz-display);color:var(--jz-ink)}
#app .ts-homelate .ts-hl-help{margin:0;font:500 var(--jz-t-meta)/1.35 var(--jz-sans);color:var(--jz-ink-2)}

/* arrival suggestion and the arrival box */
#app .timesheets .ts-arrival{margin:0 0 var(--jz-s4)}
#app .timesheets .ts-arr-btns{display:grid;gap:8px;margin:16px 0 0}
#app .timesheets .ts-arr-btns form{margin:0}
#app .timesheets .ts-arrive{margin:var(--jz-s6) 0 0;padding:18px 18px 16px}
#app .timesheets .ts-arr-h{display:flex;flex-direction:column;gap:2px;margin:0 0 12px}
#app .timesheets .ts-arr-h b{font:700 var(--jz-t-body)/1.25 var(--jz-sans);color:var(--jz-ink)}
#app .timesheets .ts-arr-h small,#app .timesheets .ts-arr-what{font:500 var(--jz-t-meta)/1.4 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-arr-what{margin:12px 0 0}
#app .timesheets .ts-arr-what a,#app .timesheets .ts-pr-links a,#app .timesheets .ts-tsub a{color:var(--jz-forest);font-weight:600}

/* week: where an entry came from, time off, daily overtime, sent, holiday */
#app .timesheets .ts-src{display:block;font:600 13px/1.2 var(--jz-sans);color:var(--jz-forest)}
#app .timesheets .ts-offrow .jz-chip{min-height:30px;font-size:14px}
#app .timesheets .ts-offx{margin:0}
#app .timesheets .ts-offbtn{width:48px;height:48px;background:var(--jz-surface-2)}
#app .timesheets .ts-dayover{margin:0;padding:0 var(--jz-s4) 10px;font:500 14px/1.2 var(--jz-sans)}
#app .timesheets .ts-sent{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:var(--jz-s4) 4px}
#app .timesheets .ts-sent small{font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-late)}
#app .timesheets .ts-hol{padding:18px 20px}
#app .timesheets .ts-hol-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
#app .timesheets .ts-hol-row span,#app .timesheets .ts-repfigs span{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--jz-r-inner);background:var(--jz-surface-2)}
#app .timesheets .ts-hol-row b,#app .timesheets .ts-repfigs b{font:800 26px/1 var(--jz-display);color:var(--jz-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .timesheets .ts-hol-row small,#app .timesheets .ts-repfigs small{font:600 13px/1.2 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets details.ts-offadd{margin:var(--jz-s6) 0 0;padding:0}
#app .timesheets details.ts-offadd>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:0 20px;list-style:none;cursor:pointer}
#app .timesheets details.ts-offadd>summary::-webkit-details-marker{display:none}
#app .timesheets details.ts-offadd>summary span{display:inline-flex;align-items:center;gap:8px;font:600 var(--jz-t-body)/1 var(--jz-sans);color:var(--jz-forest)}
#app .timesheets details.ts-offadd>summary small{font:500 var(--jz-t-meta)/1 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets details.ts-offadd .jz-ic{width:20px;height:20px}
#app .timesheets .ts-offform{display:flex;flex-direction:column;gap:14px;padding:4px 20px 20px}
#app .timesheets .ts-seg label{min-height:56px;font-size:15px}
#app .timesheets .ts-seg label:has(input:checked)::after{top:4px;right:4px;width:18px;height:18px;font-size:11px}
#app .timesheets .ts-seg label:has(input:checked){padding-right:18px}
#app .timesheets .ts-halfrow{display:flex;align-items:center;gap:12px;min-height:56px;font:600 var(--jz-t-body)/1.25 var(--jz-sans);color:var(--jz-ink);cursor:pointer}
#app .timesheets .ts-halfrow input{flex:none;width:26px;height:26px;margin:0;accent-color:var(--jz-forest)}
#app .timesheets .ts-halfrow>span{display:flex;flex-direction:column;gap:2px}
#app .timesheets .ts-halfrow small{font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#app .timesheets .ts-photo{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--jz-ink-2);font:500 12px/1.2 var(--jz-sans)}
#app .timesheets .ts-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--jz-r-inner);background:var(--jz-surface-2)}
#app .timesheets .ts-log .ts-et small{white-space:normal}
#app .timesheets .ts-log .ts-logwho{font-size:13px}
#app .timesheets .ts-lockchip{display:inline-flex;min-height:24px;padding:2px 8px;margin-left:4px;font-size:12px;vertical-align:middle}
#app .timesheets .ts-srcline{margin-top:-10px}

/* the pay sheet */
#app .timesheets .ts-payhero,#app .timesheets .ts-rephero{padding:20px 20px 18px}
#app .timesheets .ts-paylabel{margin:6px 0 0;font:600 var(--jz-t-label)/1.2 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-paylist{display:flex;flex-direction:column;gap:14px}
#app .timesheets .ts-payrow{padding:18px 18px 14px}
#app .timesheets .ts-payrow.jz-latecard{padding-left:calc(18px + var(--jz-late-bar) - 2px);padding-top:calc(18px + var(--jz-band))}
#app .timesheets .ts-pr-top{display:flex;align-items:center;gap:12px}
#app .timesheets .ts-pr-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#app .timesheets .ts-pr-t b{font:700 19px/1.2 var(--jz-sans);color:var(--jz-ink);overflow-wrap:anywhere}
#app .timesheets .ts-pr-t small{font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-pr-v{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
#app .timesheets .ts-pr-v b{font:800 28px/1 var(--jz-display);color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .timesheets .ts-pr-v b.is-none{color:var(--jz-ink-2)}
#app .timesheets .ts-pr-v small{font:500 13px/1.2 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-pr-line{margin:12px 0 0;font:500 var(--jz-t-meta)/1.4 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-pr-line .jz-ic{width:15px;height:15px}
#app .timesheets .ts-probs{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
#app .timesheets .ts-probs li{display:flex;align-items:flex-start;gap:8px;font:600 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-late)}
#app .timesheets .ts-probs .jz-ic{flex:none;width:18px;height:18px;margin-top:1px}
#app .timesheets .ts-copytext{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#app .timesheets .ts-pr-btns{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:8px;margin:14px 0 0}
#app .timesheets .ts-pr-btns .jz-btn{padding:0 12px;min-width:0}
#app .timesheets .ts-pr-btns .jz-btn{min-height:52px;font-size:16px}
#app .timesheets .ts-pr-btns .jz-btn .jz-ic{width:18px;height:18px}
#app .timesheets .ts-pr-links{display:flex;gap:18px;margin:6px 2px 0}
#app .timesheets .ts-pr-links a{display:inline-flex;align-items:center;min-height:44px;font:600 var(--jz-t-meta)/1 var(--jz-sans);text-decoration:none}
#app .timesheets .ts-paynote{margin:var(--jz-s6) 6px 0;font:500 14px/1.45 var(--jz-sans);color:var(--jz-ink-2)}

/* pay rules and settings */
#app .timesheets .ts-err{margin:0 0 var(--jz-s4);padding:12px 16px;border-radius:var(--jz-r-inner);background:var(--jz-chip-danger);color:var(--jz-on-chip-danger);font:600 var(--jz-t-meta)/1.35 var(--jz-sans)}
#app .timesheets .ts-rulecard,#app .timesheets .ts-setcard{display:flex;flex-direction:column;gap:16px;padding:20px}
#app .timesheets .ts-rulecard .jz-field,#app .timesheets .ts-setcard .jz-field{margin:0}
#app .timesheets .ts-rulegrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
#app .timesheets .ts-nmwline{margin-top:-8px}
#app .timesheets .ts-inline{display:grid;grid-template-columns:1fr 104px;gap:10px;align-items:end;margin:0}
#app .timesheets .ts-inline .jz-btn{min-height:var(--jz-btn)}
#app .timesheets .ts-btnrow{display:flex;flex-wrap:wrap;gap:8px}
#app .timesheets .ts-btnrow form{margin:0;flex:1}
#app .timesheets .ts-btnrow .jz-btn{min-width:140px}
#app .timesheets .ts-meta{margin:0;font:500 var(--jz-t-meta)/1.4 var(--jz-sans);color:var(--jz-ink-2)}
#app .timesheets .ts-pad0{padding:0}
#app .timesheets .ts-setcard form{margin:0}
#app .timesheets .ts-kioskurl{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:var(--jz-r-inner);background:var(--jz-wash)}
#app .timesheets .ts-kioskurl p{margin:0;font:500 var(--jz-t-meta)/1.35 var(--jz-sans);color:var(--jz-ink)}
#app .timesheets .ts-kioskurl textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:0;border-radius:var(--jz-r-s);background:var(--jz-surface);color:var(--jz-ink);font:500 14px/1.35 var(--jz-sans);resize:none;overflow-wrap:anywhere}
#app .timesheets details.ts-pinrow>summary{list-style:none;cursor:pointer}
#app .timesheets details.ts-pinrow>summary::-webkit-details-marker{display:none}
#app .timesheets details.ts-pinrow+details.ts-pinrow{box-shadow:inset 0 1px 0 var(--jz-hair)}

/* reports */
#app .timesheets .ts-pills{display:flex;gap:8px;overflow-x:auto;margin:0 calc(-1 * var(--jz-gutter)) 10px;padding:2px var(--jz-gutter) 6px;scrollbar-width:none}
#app .timesheets .ts-pills::-webkit-scrollbar{display:none}
#app .timesheets .ts-pill{flex:none;display:inline-flex;align-items:center;min-height:48px;padding:0 18px;border-radius:var(--jz-r-full);background:var(--jz-surface);box-shadow:inset 0 0 0 1.5px var(--jz-edge);color:var(--jz-ink);font:600 15px/1 var(--jz-sans);text-decoration:none;white-space:nowrap}
#app .timesheets .ts-pill.is-on{background:var(--jz-ink);color:var(--jz-page);box-shadow:none}
#app .timesheets details.ts-dates{margin:0 0 12px}
#app .timesheets details.ts-dates>summary{display:inline-flex;align-items:center;min-height:44px;list-style:none;cursor:pointer;font:600 var(--jz-t-meta)/1 var(--jz-sans);color:var(--jz-forest)}
#app .timesheets details.ts-dates>summary::-webkit-details-marker{display:none}
#app .timesheets .ts-dateform{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#app .timesheets .ts-dateform .jz-field{margin:0}
#app .timesheets .ts-dateform .jz-btn{grid-column:1/-1}
#app .timesheets .ts-seglinks{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:0 0 10px;padding:4px;border-radius:var(--jz-r-inner);background:var(--jz-surface-2)}
#app .timesheets .ts-seglinks.is-small{grid-template-columns:repeat(3,1fr);margin-bottom:var(--jz-s4)}
#app .timesheets .ts-seglinks a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:calc(var(--jz-r-inner) - 4px);color:var(--jz-ink-2);font:600 15px/1 var(--jz-sans);text-decoration:none}
#app .timesheets .ts-seglinks a.is-on{background:var(--jz-surface);color:var(--jz-ink);box-shadow:var(--jz-shadow)}
#app .timesheets .ts-repfigs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 12px}
#app .timesheets .ts-repfigs b{font-size:22px}
#app .timesheets .ts-rephero .ts-tsub{margin:0}
#app .timesheets .ts-reprow{align-items:flex-start;padding-top:14px;padding-bottom:14px}
#app .timesheets .ts-reprow .jz-li-t small{white-space:normal}
#app .timesheets .ts-bar{display:block;height:8px;margin:8px 0 0;border-radius:var(--jz-r-full);background:var(--jz-surface-2);overflow:hidden}
#app .timesheets .ts-bar i{display:block;height:100%;border-radius:inherit;background:color-mix(in srgb,var(--jz-forest) 35%,var(--jz-surface-2))}
#app .timesheets .ts-bar em{display:block;height:100%;border-radius:inherit;background:var(--jz-forest)}
#app .timesheets .ts-barkey{display:flex;align-items:center;gap:6px}
#app .timesheets .ts-key{display:inline-block;width:14px;height:8px;margin-left:8px;border-radius:var(--jz-r-s);background:color-mix(in srgb,var(--jz-forest) 35%,var(--jz-surface-2))}
#app .timesheets .ts-key.is-bill{margin-left:0;background:var(--jz-forest)}

/* the job card's labour line (jobs/templates/jobs/card.html, owner only) */
#app .ts-joblab{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:12px 0}
#app .ts-joblab span{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--jz-r-inner);background:var(--jz-surface-2)}
#app .ts-joblab b{font:800 22px/1 var(--jz-display);color:var(--jz-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .ts-joblab small{font:600 13px/1.2 var(--jz-sans);color:var(--jz-ink-2)}

/* the kiosk: a shared tablet, light only. Big names, a phone-style PIN pad, one action. */
#app .ts-kiosk{max-width:720px;margin:0 auto}
#app .ts-kiosk .ts-k-head{position:relative;margin:8px 0 var(--jz-s5);text-align:center}
#app .ts-kiosk .ts-k-head h1{margin:0;font:800 var(--jz-t-display)/1.05 var(--jz-display);color:var(--jz-ink)}
#app .ts-kiosk .ts-k-head .jz-sub b{color:var(--jz-ink);font-variant-numeric:tabular-nums}
#app .ts-kiosk .ts-k-back{position:absolute;left:0;top:0;background:var(--jz-surface);box-shadow:var(--jz-shadow)}
#app .ts-kiosk .ts-k-names{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#app .ts-kiosk .ts-k-name{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:150px;padding:16px 10px;border-radius:var(--jz-r-card);background:var(--jz-surface);box-shadow:var(--jz-shadow);color:var(--jz-ink);text-decoration:none;text-align:center;transition:transform var(--jz-dur-press) var(--jz-ease-out)}
#app .ts-kiosk .ts-k-name:active{transform:scale(.97)}
#app .ts-kiosk .ts-k-av{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--jz-wash);color:var(--jz-forest);font:800 24px/1 var(--jz-display)}
#app .ts-kiosk .ts-k-name b{font:700 19px/1.2 var(--jz-sans);overflow-wrap:anywhere}
#app .ts-kiosk .ts-k-foot{margin:var(--jz-s6) 0 0;text-align:center;font:500 var(--jz-t-meta)/1.4 var(--jz-sans);color:var(--jz-ink-2)}
#app .ts-kiosk .ts-k-foot a{color:var(--jz-forest);font-weight:600}
#app .ts-kiosk .ts-k-foot a.jz-btn{color:var(--jz-ink)}
#app .ts-kiosk .ts-k-pinform{display:flex;flex-direction:column;align-items:center;gap:18px}
#app .ts-kiosk .ts-k-pin{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
html.no-js #app .ts-kiosk .ts-k-pin{position:static;opacity:1;width:200px;height:64px;font-size:28px;text-align:center}
#app .ts-kiosk .ts-k-dots{display:flex;gap:16px;margin:4px 0}
#app .ts-kiosk .ts-k-dots i{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--jz-ink-2)}
#app .ts-kiosk .ts-k-dots i.is-on{background:var(--jz-ink);box-shadow:none}
#app .ts-kiosk .ts-k-pad{display:grid;grid-template-columns:repeat(3,88px);gap:14px}
#app .ts-kiosk .ts-k-pad button{width:88px;height:88px;border:0;border-radius:50%;background:var(--jz-surface);box-shadow:var(--jz-shadow);color:var(--jz-ink);font:700 32px/1 var(--jz-display);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--jz-dur-press) var(--jz-ease-out)}
#app .ts-kiosk .ts-k-pad button:active{transform:scale(.94);background:var(--jz-surface-2)}
#app .ts-kiosk .ts-k-pad button.is-fn{font:600 15px/1 var(--jz-sans);background:transparent;box-shadow:none;color:var(--jz-ink-2)}
#app .ts-kiosk .ts-k-pad button.is-go{background:var(--jz-forest);color:var(--jz-on-forest);font:700 20px/1 var(--jz-sans)}
#app .ts-kiosk .ts-k-on{margin:0 0 var(--jz-s4);padding:20px}
#app .ts-kiosk .ts-k-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#app .ts-kiosk .ts-k-jobs{display:flex;flex-direction:column;gap:14px}
#app .ts-kiosk .ts-k-jobpick{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0}
#app .ts-kiosk .ts-k-jobpick legend{margin:0 0 8px;font:700 var(--jz-t-h2)/1.2 var(--jz-display);color:var(--jz-ink)}
#app .ts-kiosk .ts-k-job{position:relative;display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 18px;border-radius:var(--jz-r-inner);background:var(--jz-surface);box-shadow:inset 0 0 0 1.5px var(--jz-edge);cursor:pointer}
#app .ts-kiosk .ts-k-job input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--jz-forest)}
#app .ts-kiosk .ts-k-job span{display:flex;flex-direction:column;gap:2px;min-width:0}
#app .ts-kiosk .ts-k-job b{font:600 var(--jz-t-body)/1.25 var(--jz-sans);color:var(--jz-ink);overflow-wrap:anywhere}
#app .ts-kiosk .ts-k-job small{font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2)}
#app .ts-kiosk .ts-k-job:has(input:checked){box-shadow:inset 0 0 0 2.5px var(--jz-forest);background:var(--jz-wash)}
#app .ts-kiosk .ts-k-photo{position:relative;display:block;cursor:pointer}
#app .ts-kiosk .ts-k-photo input{position:absolute;inset:0;opacity:0;cursor:pointer}
#app .ts-kiosk .ts-k-photo span{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:64px;padding:12px 18px;border-radius:var(--jz-r-inner);background:var(--jz-surface-2);box-shadow:inset 0 0 0 1.5px var(--jz-edge);color:var(--jz-ink)}
#app .ts-kiosk .ts-k-photo small{flex-basis:100%;font:500 var(--jz-t-meta)/1.3 var(--jz-sans);color:var(--jz-ink-2)}
#app .ts-kiosk .ts-k-photo:has(input:valid) span{background:var(--jz-wash);box-shadow:inset 0 0 0 2px var(--jz-forest)}
#app .ts-kiosk .ts-k-done{display:flex;flex-direction:column;align-items:center;gap:10px;margin:var(--jz-s8) 0 0;text-align:center}
#app .ts-kiosk .ts-k-done h1{margin:8px 0 0;font:800 var(--jz-t-display)/1.05 var(--jz-display);color:var(--jz-ink)}
#app .ts-kiosk .ts-k-done p{margin:0;font:500 var(--jz-t-say)/1.4 var(--jz-sans);color:var(--jz-ink-2)}
#app .ts-kiosk .ts-k-tick{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:var(--jz-done);color:var(--jz-on-done);animation:ts-pop .5s var(--jz-ease-out)}
#app .ts-kiosk .ts-k-tick .jz-ic{width:56px;height:56px;stroke-width:2.5}
@keyframes ts-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){#app .ts-kiosk .ts-k-tick{animation:none}#app .ts-chip,#app .ts-kiosk .ts-k-name,#app .ts-kiosk .ts-k-pad button{transition:none}}
@media (max-width:380px){#app .ts-kiosk .ts-k-pad{grid-template-columns:repeat(3,76px)}#app .ts-kiosk .ts-k-pad button{width:76px;height:76px}}
