/* TaTasque — TASK POINTS PLAN (public/task-points-plan/): the Task points box inside the print bar. Namespace tpp-. Copyright Rapid Surveys Pty Ltd. */
.tpp-box { margin: 6px 0 0; padding: 6px 10px 8px; border: 1px solid var(--line, #d5dae1); border-radius: 8px; min-width: 0; }
.tpp-box legend { padding: 0 4px; font-weight: 600; font-size: 13px; }
.tpp-master { display: flex; gap: 8px; align-items: center; min-height: 32px; font-size: 14px; }
.tpp-lab { margin: 4px 0 0; font-size: 13px; } .tpp-lab[hidden], .tpp-hint[hidden] { display: none; }
.tpp-hint { margin: 2px 0 0; font-size: 12px; color: var(--muted, #5b6676); }
.tpp-master input { width: 18px; height: 18px; }

/* S4: the extra label line box (the automations line box's own "{" suggest list + error) */
.tpp-line { margin: 6px 0 0; } .tpp-line[hidden] { display: none; }
.tpp-lh { display: block; font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.tpp-line .au-lw > input { width: 100%; box-sizing: border-box; min-height: 40px; font-size: 15px; padding: 0 8px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; }
.tpp-line .tpp-hint, .tpp-line .au-lerr { display: block; }

/* LABELTICKS: the extra label line as a tick-list (Gary 24 Nov); "Custom line" + Edit when the line has words / pieces / formulas */
.tpp-line .tpp-lh { display: block; }
.tpp-ticks { list-style: none; margin: 4px 0 4px; padding: 4px 6px; max-height: 190px; overflow-y: auto; border: 1px solid var(--line, #d5dae1); border-radius: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; }
.tpp-ticks li[hidden] { display: none; }
.tpp-ticks label { display: flex; gap: 8px; align-items: center; min-height: 36px; font-size: 14px; cursor: pointer; }
.tpp-ticks input { width: 18px; height: 18px; flex: none; }
.tpp-q { width: 100%; box-sizing: border-box; min-height: 36px; font-size: 14px; padding: 0 8px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; margin: 2px 0; }
.tpp-lnk { display: inline-block; font-size: 13px; padding: 6px 0; color: var(--accent, #1d4ed8); }
.tpp-custom { margin: 2px 0; font-size: 14px; } .tpp-cv { color: var(--muted, #5b6676); }
@media (max-width: 480px) { .tpp-ticks { grid-template-columns: 1fr; } }

/* PRINTGRID: "Print the list on the plan" + the collapsible Columns picker (closed by default; Gary 24 Nov "this must be a dropdown so we can hide it") */
.tpp-sched { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--line, #d5dae1); } .tpp-sched[hidden] { display: none; }
.tpp-cols { margin: 4px 0 0; }
.tpp-colsbtn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; text-align: left; font-size: 14px; font-weight: 600; border: 1px solid var(--line, #d1d5db); border-radius: 8px; background: var(--bg, #f6f7f9); color: var(--ink, #111); cursor: pointer; }
.tpp-colsbtn:focus-visible { outline: 2px solid var(--accent, #1d4ed8); outline-offset: 1px; }
.tpp-car { width: 14px; text-align: center; color: var(--muted, #5b6676); }
.tpp-colsbody { margin: 4px 0 0; } .tpp-colsbody[hidden] { display: none; }
.tpp-collist { list-style: none; margin: 4px 0; padding: 2px 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line, #d5dae1); border-radius: 6px; }
.tpp-col { display: flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 1px solid var(--line, #eceff3); } .tpp-col:last-child { border-bottom: 0; }
.tpp-col label { display: flex; flex: 1; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; min-width: 0; }
.tpp-col input { width: 18px; height: 18px; flex: none; }
.tpp-mv { display: flex; gap: 4px; flex: none; }
.tpp-mv button { width: 44px; height: 44px; font-size: 14px; border: 1px solid var(--line, #d1d5db); border-radius: 8px; background: var(--bg, #f6f7f9); color: var(--ink, #111); cursor: pointer; }
.tpp-mv button[disabled] { opacity: .35; cursor: default; }
.tpp-same { min-height: 44px; padding: 0 14px; font-size: 14px; border: 1px solid var(--line, #d1d5db); border-radius: 8px; background: var(--bg, #f6f7f9); color: var(--ink, #111); cursor: pointer; } .tpp-same[disabled] { opacity: .45; cursor: default; }

/* GRIDSHEET: the list sheet's own way round + text size, and its preview */
.tpp-sheetopts { margin-top: 8px; }   /* the grid + labels are the shared .thss- look (plan-print.css) */
.tpp-prev { margin-top: 8px; text-align: center; }
.tpp-prevsvg { display: block; margin: 0 auto; border: 1px solid var(--line, #d1d5db); background: #fff; width: 100%; height: auto; max-height: 260px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tpp-prevsvg.tpp-prev-portrait { width: auto; max-width: 62%; max-height: 300px; }
.tpp-prevcap { text-align: center; margin: 4px 0 0; }

/* COLSTICK2: nothing under the finger may re-anchor the scroll while a tick changes the rows */
.tpp-collist, .thpp-pbody, .tpp-colsbody { overflow-anchor: none; }
.tpp-sheetcol { display:flex; align-items:flex-start; gap:8px; margin:8px 0; font-size:13px; min-height:36px; }
