/* On-site on the board: the header button, the "on site today" tag on project rows, and the On-site window. */
.onsite-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 0;
  background: color-mix(in srgb, var(--status-on_track) 14%, transparent); color: var(--status-on_track);
  font: 500 11px/18px var(--font-body); cursor: pointer; vertical-align: middle; white-space: nowrap;
}
.onsite-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.onsite-chip.stopped::before { display: none; }
.onsite-chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.onsite-wx { display: inline-flex; gap: 2px; margin-left: 2px; opacity: 0.85; }
.onsite-wx svg { width: 13px; height: 13px; }
.onsite-chip.stopped { background: color-mix(in srgb, var(--status-waiting) 16%, transparent); color: var(--status-waiting); }
.onsite-chip.idle { background: color-mix(in srgb, var(--text-faint) 14%, transparent); color: var(--text-faint); }
.onsite-chip.wait { background: color-mix(in srgb, var(--status-waiting) 16%, transparent); color: var(--status-waiting); }
.onsite-section + .onsite-section { margin-top: 22px; }
.onsite-section h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.onsite-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface); }
.onsite-card + .onsite-card { margin-top: 10px; }
.onsite-approve { border-color: color-mix(in srgb, var(--status-waiting) 45%, var(--border)); background: color-mix(in srgb, var(--status-waiting) 6%, var(--surface)); }
.onsite-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.onsite-grow { flex: 1; min-width: 200px; }
.onsite-title { font-weight: 600; }
.onsite-dim { color: var(--text-dim); font-size: 13px; }
.onsite-effect { margin-top: 4px; font-size: 13px; color: var(--accent-strong); font-weight: 600; }
.onsite-actions { display: flex; gap: 8px; }
.onsite-actions button { font: 600 13px var(--font-body); padding: 8px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.onsite-actions button.go { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.onsite-actions button:disabled { opacity: 0.5; cursor: default; }
.onsite-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.onsite-kpi { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; }
.onsite-kpi b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.onsite-kpi span { font-size: 12px; color: var(--text-dim); }
.onsite-kpi.warn b { color: var(--status-waiting); }
.onsite-kpi.bad b { color: var(--status-blocked); }
.onsite-checks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.onsite-check { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-dim); }
.onsite-check.done { background: color-mix(in srgb, var(--status-on_track) 16%, transparent); color: var(--status-on_track); }
.onsite-feed { list-style: none; margin: 0; padding: 0; }
.onsite-feed li { display: flex; gap: 12px; padding: 5px 0; font-size: 14px; }
.onsite-feed time { color: var(--text-faint); width: 44px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.onsite-empty { color: var(--text-dim); font-style: italic; }
.onsite-link { font-weight: 600; color: var(--accent-strong); }
@media (max-width: 640px) { .onsite-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* On the row along the bottom of the job's cell, level with the "N wks to go" words. */
.cell-foot .onsite-chip { margin: 0; flex: none; } /* margin-left is set in onsite.js, to centre it under the claim ring */

.onsite-chip .ss-hand { width: 1.35em; height: 1.35em; }

/* A stopped job: a little raised hand beside the pencil and flag. */
.project-icon-btn.project-stopped-btn { color: var(--status-waiting); border-color: color-mix(in srgb, var(--status-waiting) 55%, transparent); background: color-mix(in srgb, var(--status-waiting) 16%, transparent); }
.project-icon-btn.project-stopped-btn svg { width: 14px; height: 14px; }
