/* TaTasque — GRID VIEW (job-intake.md "GRID VIEW", G-1). Copyright Rapid Surveys Pty Ltd. App tokens only (--card --line --accent --muted --ink --hover --bg); namespace gv-.
 * Our own look: hairline rules, the app's status pill + avatar chips. Sticky header, sticky tick / ⋯ / # / first columns, sticky totals row, all inside ONE scroll box, so the page never scrolls sideways. */
.gv-root { --gv-numw: 48px; --gv-selw: 80px; --gv-rowh: 36px; --gv-cw: 0px; position: relative; min-width: 0; }
@media (max-width: 1099px) { .gv-root { --gv-numw: 0px; } .gv-cnum { display: none !important; } }   /* tablet: no row numbers (Title stays frozen) */
.gv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; position: relative; }
.gv-bar .btn { min-height: 44px; }
.gv-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.gv-bar .gv-viewbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border-color: transparent; color: var(--muted); font-weight: 500; font-size: 14px; padding: 0 10px; }   /* quiet: no fill, no rule, 44 px hit area */
.gv-bar .gv-viewbtn:hover, .gv-bar .gv-viewbtn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.gv-vi { flex: none; }
.gv-pn { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.gv-msg { margin: 0 0 8px; }
.gv-box { position: relative; overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gv-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gv-box[hidden] { display: none; }
.gv-in { position: relative; width: calc(var(--gv-selw) + var(--gv-numw) + var(--gv-cw)); min-width: 100%; }
.gv-hrow, .gv-row, .gv-frow { display: flex; width: calc(var(--gv-selw) + var(--gv-numw) + var(--gv-cw)); min-width: 100%; }
.gv-hrow { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); height: 40px; }
.gv-frow { position: sticky; bottom: 0; z-index: 4; background: var(--bg); border-top: 1px solid var(--line); height: var(--gv-rowh); }
.gv-frow[hidden] { display: none; }
.gv-rows { position: relative; }
.gv-win { position: absolute; left: 0; right: 0; }
.gv-row { height: var(--gv-rowh); background: var(--card); border-bottom: 1px solid var(--line); }
.gv-row.gv-alt, .gv-row.gv-alt .gv-fz { background: color-mix(in srgb, var(--hover) 55%, var(--card)); }
.gv-row:hover, .gv-row:hover .gv-fz { background: var(--hover); }
.gv-row.gv-on, .gv-row.gv-on .gv-fz { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.gv-c { flex: none; box-sizing: border-box; display: flex; align-items: center; min-width: 0; padding: 0 10px; font-size: 14px; color: var(--ink); border-right: 1px solid var(--line); }
.gv-fz { position: sticky; z-index: 2; background: var(--card); }
.gv-hrow .gv-fz, .gv-frow .gv-fz { background: var(--bg); z-index: 5; }
.gv-fzl { box-shadow: 2px 0 0 rgba(20, 28, 40, .09); }
.gv-csel { width: var(--gv-selw); padding: 0 4px; gap: 2px; justify-content: flex-start; }
.gv-cnum { width: var(--gv-numw); justify-content: flex-end; color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }   /* the same colour + weight as the column titles */
.gv-h { position: relative; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; padding-right: 14px; }
.gv-h:not(.gv-fz) { z-index: 1; }   /* a scrolling header (and its resize handle, z 6 inside it) stays UNDER the frozen cells (z 2 / 5): its handle used to paint a blue line over the frozen edge */
.gv-h.gv-fz { position: sticky; }   /* (.gv-h is positioned for the resize handle; a frozen header cell must stay sticky) */
.gv-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-r { justify-content: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.gv-r .gv-hl { text-align: right; }
.gv-v { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-v a.th-url { overflow-wrap: normal; }   /* GRIDURL: a link in a cell truncates with the cell's ellipsis; the rest of the cell still edits */
.gv-v .avs { margin-left: 0; vertical-align: middle; }
.gv-t-client .gv-v * { margin: 0 !important; font-size: inherit !important; }
.gv-v .av { font-size: 11px; }
.gv-na { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 55%, transparent) 6px 7px); }
.gv-nav { color: var(--muted); }
.gv-open { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; min-height: 0; height: 100%; }
.gv-open:hover { color: var(--accent); text-decoration: underline; }
.gv-open:focus-visible, .gv-more:focus-visible, .gv-rz:focus-visible, .gv-tick:focus-visible, .gv-tickall:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gv-tickw { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 100%; min-height: 36px; margin: 0; cursor: pointer; }
.gv-tickw input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.gv-more { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.gv-more:hover, .gv-more[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.gv-rz { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
.gv-rz::after { content: ''; position: absolute; left: 4px; top: 25%; bottom: 25%; width: 2px; border-radius: 1px; background: transparent; }
.gv-h:hover .gv-rz::after, .gv-rz:focus-visible::after, .gv-resizing .gv-rz::after { background: var(--accent); }
.gv-resizing { cursor: col-resize; user-select: none; }
.gv-empty { margin: 12px 0; }
/* the Columns box */
.gv-pop { position: fixed; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: 560px; overflow-y: auto;   /* top / left / max-height set from the button's place (always inside the window) */
  display: flex; flex-direction: column; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 28, 40, .18); }
.gv-ph { margin: 0 0 8px; font-size: 15px; }
.gv-pl { list-style: none; margin: 0 0 10px; padding: 0; overflow-y: auto; flex: 0 1 auto; min-height: 96px; max-height: 150px; border-top: 1px solid var(--line); }
.gv-pi { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.gv-pc { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 14px; cursor: pointer; }
.gv-pc input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.gv-pm { width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 12px; cursor: pointer; }
.gv-pm:disabled { opacity: .35; cursor: default; }
.gv-pf { display: block; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.gv-pf select { display: block; width: 100%; margin-top: 4px; min-height: 40px; }
.gv-pop > * { flex: none; }
.gv-pop > .gv-pl { flex: 1 1 auto; }
.gv-pop > .gv-reset { align-self: flex-start; margin-bottom: 4px; }
.gv-pop .btn { min-height: 44px; }
.gv-ps { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gv-ps[hidden] { display: none; }
.gv-ps .gv-ph { margin-bottom: 6px; }
.gv-seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gv-sg { flex: 1; min-height: 44px; margin: 0; padding: 0 10px; border: 0; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.gv-sg + .gv-sg { border-left: 1px solid var(--line); }
.gv-sg[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 700; }
.gv-sg:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.gv-pb { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }
.gv-pb .btn { min-height: 44px; }
.gv-pop button:focus-visible, .gv-pop .gv-sel:focus-visible, .gv-pop input:focus-visible, .gv-pop select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the Select switch */
.gv-sel { display: flex; width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; height: auto; white-space: normal; justify-content: space-between; align-items: center; gap: 8px; text-align: left; }
.gv-sell { flex: 1; min-width: 0; }
.gv-sw { flex: none; position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--line); transition: background .15s; }
.gv-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(20, 28, 40, .3); transition: left .15s; }
.gv-sel[aria-checked="true"] .gv-sw { background: var(--accent); }
.gv-sel[aria-checked="true"] .gv-sw::after { left: 16px; }
.gv-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gv-sw, .gv-sw::after { transition: none; } }
/* G-2: header sort + column menu */
.gv-hrow { height: 45px; }   /* a header is a 44 px target (+ its 1 px rule) on every screen */
.gv-h { padding-right: 4px; }
.gv-hb { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gv-r .gv-hb { justify-content: flex-end; }
.gv-hb:hover .gv-hl { color: var(--ink); }
.gv-hb:focus-visible, .gv-hm:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gv-si { flex: none; display: inline-flex; align-items: center; gap: 1px; color: var(--accent); }
.gv-sn { font-size: 10px; font-weight: 700; line-height: 1; min-width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--accent); color: #fff; }
.gv-lt { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; }
.gv-h:hover .gv-lt, .gv-lt:focus-visible, .gv-lt[aria-pressed="true"] { opacity: 1; }
.gv-lt[aria-pressed="true"] { color: var(--accent); }
.gv-lt:hover { background: var(--hover); color: var(--ink); }
.gv-lt:focus-visible, .gv-ln:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gv-ln { flex: none; width: 36px; height: 26px; min-height: 0; margin: 0 2px 0 0; padding: 0 2px; border: 1px solid var(--accent); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: center; }
@media (hover: none), (max-width: 1099px) { .gv-lt { opacity: 1; width: 32px; } }
.gv-hm { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 100%; min-height: 0; margin: 0 4px 0 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; }
.gv-h:hover .gv-hm, .gv-hm:focus-visible, .gv-hm[aria-expanded="true"] { opacity: 1; }
.gv-hm:hover { background: var(--hover); color: var(--ink); }
@media (hover: none), (max-width: 1099px) { .gv-hm { opacity: 1; width: 36px; } }
.gv-rz { right: -5px; }
.gv-menu { position: fixed; z-index: 61; min-width: 200px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 28, 40, .18); display: flex; flex-direction: column; }
.gv-mi { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gv-mi:disabled { opacity: .4; cursor: default; }
.gv-mi:disabled:hover { background: transparent; }
.gv-mi:hover, .gv-mi:focus-visible { background: var(--hover); outline: none; }
.gv-mi:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.gv-mk { color: var(--accent); font-weight: 700; }
/* G-3: editing in place */
.gv-c[data-col] { cursor: default; }
.gv-c[data-col]:not(.gv-fz) { position: relative; }   /* (a frozen cell stays sticky) */
.gv-c.gv-can:not(.gv-fz):hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line)); cursor: text; }
.gv-c.gv-act { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 3; }
.gv-box:not(:focus-within) .gv-c.gv-act { outline-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.gv-c.gv-fail { outline: 2px solid var(--err, #b3261e); outline-offset: -2px; background: color-mix(in srgb, var(--err, #b3261e) 8%, var(--card)); }
.gv-c[aria-busy="true"] { opacity: .65; }
.gv-c.gv-editing { padding: 0; background: var(--card); outline: 2px solid var(--accent); outline-offset: -2px; z-index: 3; overflow: visible; }
.gv-ed { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 0; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.gv-ed-r { text-align: right; font-variant-numeric: tabular-nums; }
.gv-ed-sel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gv-c.gv-editing .sp-btn { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: var(--card); justify-content: space-between; padding: 0 10px; }
.gv-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gv-edpop { position: fixed; z-index: 62; display: flex; flex-direction: column; gap: 8px; padding: 12px; max-height: calc(100vh - 16px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 28, 40, .18); }
.gv-edh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.gv-edk { font-size: 12px; color: var(--muted); }
.gv-edta { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; resize: vertical; min-height: 120px; }
.gv-edf { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.gv-edhint { margin-right: auto; font-size: 12px; color: var(--muted); }
.gv-edf .btn { min-height: 44px; }
.gv-edpop .asg-pop { position: static; }
@media (prefers-reduced-motion: reduce) { .gv-c, .gv-ed { transition: none; } }

/* VIS-S1: a calculated, read-only column (Easting / Northing, Chainage / Offset): italic grey, numbers right-aligned (.gv-r) */
.gv-ro .gv-v { font-style: italic; color: var(--muted); font-variant-numeric: tabular-nums; }
.gv-tool { margin-top: 6px; }
/* S2 (VISITORS): the + column button at the end of the header, as in the picture (blue, after the last column) */
.gv-addc { width: 130px; padding: 0 8px; justify-content: flex-start; border-right: 0; }
.gv-addcol { height: 32px; margin: 0; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.gv-addcol:hover, .gv-addcol[aria-expanded="true"] { filter: brightness(1.08); }
.gv-addcol:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* a column's own setup button (⚙): always visible so it is findable; narrow so the label keeps its room */
.gv-hs { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.gv-hs:hover { background: var(--hover); color: var(--ink); }
.gv-hs:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: none), (max-width: 1099px) { .gv-hs { width: 32px; } }
.gv-c.gv-made { background: color-mix(in srgb, var(--bg, #f4f5f7) 70%, var(--card, #fff)); color: var(--muted, #5b6675); cursor: default; }   /* MADE FROM: the task works this field out itself (read-only) */
