/* Task Helper — the project navigator (job-intake.md §29 N1–N3; BRIEF-935). Copyright Rapid Surveys Pty Ltd. App tokens only.
   The same KIND of panel as the task panel (its header + button styles: .panel-head / .panel-x), on the LEFT. */
.nv-panel { position: fixed; z-index: 44;   /* under the top bar (45): its menus drop over the navigator */
   display: flex; flex-direction: column; background: var(--card); color: var(--ink); }
.nv-panel[hidden], .nv-strip[hidden] { display: none !important; }
.nv-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 8px 16px; }
@media (min-width: 768px) {
  .nv-panel { top: calc(56px + env(safe-area-inset-top)); left: 0; bottom: 0; width: 300px; border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(20,28,40,.08); }
  body.nv-open { padding-left: 300px; }
  body.nv-open #overviewSheet.mapview { left: 300px; }
  body.nv-folded { padding-left: 48px; }
  body.nv-folded #overviewSheet.mapview { left: 48px; }
}
/* phone: a full page above everything but the top safe area */
.nv-panel.nv-page { inset: 0; z-index: 60; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); width: auto; border: 0; box-shadow: none; }
/* folded: a thin strip on the left with one button to bring it back */
.nv-strip { position: fixed; z-index: 44; top: calc(56px + env(safe-area-inset-top)); left: 0; bottom: 0; width: 48px; background: var(--card); border-right: 1px solid var(--line); }
.nv-unfold { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 48px; min-height: 96px; margin: 0; padding: 12px 0; background: none; border: 0; border-radius: 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.nv-unfold span { writing-mode: vertical-rl; transform: rotate(180deg); }
.nv-unfold:hover { background: var(--hover); }
/* the tree */
.nv-tree { list-style: none; margin: 0; padding: 0; }
.nv-row { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 2px; padding: 0 8px 0 calc(4px + var(--lv, 0) * 16px); border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 14px; }
.nv-row:hover { background: var(--hover); }
.nv-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nv-row.nv-sel { background: #e8eefc; font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }   /* chosen: a bar + bold, not colour alone */
.nv-row svg { flex: none; color: var(--muted); }
.nv-tog { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; color: var(--muted); }
.nv-tog.nv-leaf { visibility: hidden; }
.nv-chev { transition: transform .15s ease; }
.nv-row[aria-expanded="true"] .nv-chev { transform: rotate(90deg); }
.nv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 4px 0; }
.nv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--muted); }
.nv-sub.nv-on { color: #1d6b33; }
.nv-sub.nv-chip { color: var(--accent); }   /* BRIEF-1269 R4: "Client · Ajax Engineering" */
.nv-sub.nv-chip.nv-chip-ret { color: var(--muted); font-style: italic; }   /* Q6: a retired row */
.nv-sub.nv-wf { color: var(--ink); }   /* BRIEF-1268 W3: "Workflow · Site set" */
.nv-sub.nv-wf.nv-wf-inh { color: var(--muted); font-style: italic; }   /* inherited: "Site set · from FIELD" */
.nv-row.nv-quiet .nv-name { color: var(--accent); font-weight: 600; }   /* BRIEF-1269 R6: "N quiet lists — show" */
.nv-n { flex: none; min-width: 24px; padding: 1px 7px; border-radius: 10px; background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.nv-none { margin: 8px; }
/* the phone page: projects on top */
.nv-h { margin: 12px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nv-projlist { list-style: none; margin: 0; padding: 0; }
.nv-proj, .nv-newproj { display: block; width: 100%; min-height: 44px; margin: 0 0 2px; padding: 0 12px; text-align: left; background: none; border: 0; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 400; }
.nv-proj[aria-current="true"] { font-weight: 700; background: #e8eefc; box-shadow: inset 3px 0 0 var(--accent); }
.nv-newproj { color: var(--accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .nv-chev { transition: none; } }
/* managing the tree (§30 T-2) */
.nv-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 4px 8px; }
.nv-tools[hidden] { display: none; }
.nv-addjob { display: inline-flex; align-items: center; gap: 4px; width: auto; }
.nv-ret { margin: 0; font-size: 13px; color: var(--muted); }
.nv-msg { margin: 0 8px 8px; }
.nv-more { flex: none; width: 36px; height: 36px; margin: 0 -4px 0 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--muted); }
.nv-more:hover { background: rgba(20,28,40,.06); color: var(--ink); }
.nv-row .nv-more { opacity: .55; } .nv-row:hover .nv-more, .nv-row:focus-within .nv-more, .nv-row:focus .nv-more { opacity: 1; }
.nv-retired .nv-name { color: var(--muted); text-decoration: line-through; }
.nv-sel .nv-sub { font-weight: 400; }
.nv-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nv-edit { cursor: default; gap: 6px; padding-right: 4px; }
.nv-edit input { flex: 1; min-width: 0; margin: 0; padding: 6px 8px; font-size: 14px; }
.nv-edit button { flex: none; width: auto; min-height: 36px; padding: 0 10px; font-size: 13px; }
.nv-drop { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--hover); }
.nv-menu { position: fixed; z-index: 62; min-width: 200px; }
.nv-menu[hidden] { display: none; }
.nv-movelist { list-style: none; margin: 8px 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.nv-moveto { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0 0 2px; padding: 0 12px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; }
.nv-moveto:hover { background: var(--hover); }
@media (pointer: coarse) { .nv-more { width: 44px; height: 44px; } .nv-edit button { min-height: 44px; } .nv-addjob { min-height: 44px; } }
/* connections to the link (§30 T-3) */
.nv-copy { width: auto; }
.nv-moveto:disabled { color: var(--muted); background: var(--bg); }
.nv-replist { list-style: none; margin: 8px 0; padding: 0; }
.nv-replist li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.nv-replist li:first-child { border-top: 0; }
@media (pointer: coarse) { .nv-copy { min-height: 44px; } }
/* the heading row (BRIEF-950 P2): Jobs · [+] · [•••] · [‹] / [✕] — fits 360 */
.nv-head { gap: 2px; }
.nv-hbtn[hidden] { display: none; }
.nv-f { display: block; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
#navJobName { width: 100%; margin: 0; }
.nv-tick[aria-checked="true"]::after { content: ''; display: inline-block; width: 6px; height: 11px; margin-left: auto; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nv-tick { display: flex; align-items: center; gap: 8px; }
.sc-proj { font-weight: 600; }
.sc-crumbs li .sc-proj { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
/* the navigator's own sheet (New job · Move to… · Connect… · Bring in) sits ABOVE its phone page (60) */
#navMove { z-index: 63; }
/* New job · Start from (BRIEF-949) */
.nv-from { margin-top: 12px; }
#navJobFrom { width: 100%; margin: 0; }
.nv-fromhint { margin: 6px 0 0; }
@media (pointer: coarse) { #navJobFrom, #navJobName { min-height: 44px; } }
/* §35 part-shared: the path to what's shared with you — greyed, not a choice */
.nv-row.nv-path { color: var(--muted); cursor: default; }
.nv-row.nv-path:hover { background: none; }
.nv-row.nv-path .nv-name { font-weight: 500; }
