/* TaTasque — PLANFRAMES (shared/plan-frame.js). Namespace .thpf-. Copyright Rapid Surveys Pty Ltd. */
.thpf-lab { background: none; border: 0; pointer-events: none; }
.thpf-lab .thpf-name { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-sizing: border-box; padding: 3px 5px 0 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 11px/1.2 Roboto, system-ui, sans-serif; color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000, 0 1px 1px #000; pointer-events: none; }
.thpf-lab .thpf-name.thpf-sel { color: #fff; background: var(--accent, #9E8C5B); text-shadow: none; padding-bottom: 1px; border-radius: 0 0 4px 0; }
.thpf-eyew { background: none; border: 0; }
.thpf-eyew .thpf-eye { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--accent, #9E8C5B); background: #1b1e22; color: var(--accent, #9E8C5B); cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.thpf-eyew .thpf-eye[aria-pressed="true"] { background: var(--accent, #9E8C5B); color: #1b1e22; }
.thpf-eyew .thpf-eye svg { width: 22px; height: 22px; fill: currentColor; }
.thpf-eyew .thpf-eye:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
path.thpf-hit { cursor: pointer; }
path.thpf-line { pointer-events: none; }
body.tho-tool-open path.thpf-hit { pointer-events: none !important; }   /* a plan tool (line up, move, snap) is open: a tap goes to the tool, never to a frame */

/* PLANFRAMES3: the "Which page?" chooser where several frames lie under a tap */
.thpf-pick { position: absolute; z-index: 1200; width: 230px; box-sizing: border-box; padding: 6px; border-radius: 8px; background: #1b1e22; color: #fff; border: 1px solid var(--accent, #9E8C5B); box-shadow: 0 2px 10px rgba(0,0,0,.55); font: 13px/1.3 Roboto, system-ui, sans-serif; }
.thpf-pick .thpf-pick-h { margin: 2px 4px 6px; font-weight: 600; color: var(--accent, #9E8C5B); }
.thpf-pick .thpf-pick-more { margin: 4px; font-size: 11px; opacity: .8; }
.thpf-pick button { display: block; width: 100%; min-height: 44px; margin: 0 0 4px; padding: 6px 10px; text-align: left; border-radius: 6px; border: 1px solid #3a3f46; background: #262a30; color: #fff; font: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thpf-pick button:hover, .thpf-pick button:focus-visible { border-color: var(--accent, #9E8C5B); outline: 2px solid #fff; outline-offset: 1px; }

/* PLANVIEW: the 3-way Plan view control (.thpf-ctl, one button; its menu .thpf-menu lists Plans / Plans + map / Map). The map container carries .thpf-vw-plans or .thpf-vw-map. */
.thpf-ctl .thpf-tog { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: #fff; color: #333; cursor: pointer; }
.thpf-ctl .thpf-tog svg { width: 20px; height: 20px; }
.thpf-ctl .thpf-tog.thpf-alt { background: var(--accent, #2563eb); color: #fff; }
.thpf-ctl .thpf-tog:focus-visible { outline: 3px solid var(--accent, #2563eb); outline-offset: 1px; }
.thpf-ctl[hidden] { display: none; }
.thpf-menu { position: absolute; z-index: 1200; box-sizing: border-box; min-width: 150px; padding: 4px; border-radius: 8px; background: #1b1e22; color: #fff; border: 1px solid var(--accent, #9E8C5B); box-shadow: 0 2px 10px rgba(0,0,0,.55); font: 14px/1.3 Roboto, system-ui, sans-serif; }
.thpf-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 6px 10px; text-align: left; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #fff; font: inherit; cursor: pointer; white-space: nowrap; }
.thpf-menu button svg { width: 20px; height: 20px; flex: none; }
.thpf-menu button[aria-checked="true"] { background: var(--accent, #9E8C5B); color: #1b1e22; font-weight: 600; }
.thpf-menu button:hover, .thpf-menu button:focus-visible { border-color: var(--accent, #9E8C5B); outline: 2px solid #fff; outline-offset: -2px; }
/* Plans: the base map is hidden on a plain light background (the same as past the tiles' last zoom); Map: no plan pictures, no plan notes (the frames come off in plan-frame.js) */
.leaflet-container.thpf-vw-plans { background: #f4f4f1 !important; }   /* !important: the app's own map backgrounds are id-specific */
.thpf-vw-plans .leaflet-tile-pane { visibility: hidden; }
.thpf-vw-map .leaflet-thoPlans-pane, .thpf-vw-map .leaflet-thPlans-pane, .thpf-vw-map .leaflet-thoSketch-pane, .thpf-vw-map .leaflet-thPlanFrames-pane { display: none; }
.thpf-seg { display: flex; gap: 4px; margin: 6px 0 8px; }
.thpf-seg button { flex: 1 1 0; min-height: 44px; padding: 4px 6px; border-radius: 6px; border: 1px solid #3a3f46; background: #262a30; color: #fff; font: 600 13px/1.2 Roboto, system-ui, sans-serif; cursor: pointer; }
.thpf-seg button[aria-checked="true"] { background: var(--accent, #9E8C5B); border-color: var(--accent, #9E8C5B); color: #1b1e22; }
.thpf-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* PLANBORDER: Sheet borders off — outlines, names and the eye come off; plan pictures and the base map stay */
.thpf-bd-off .leaflet-thPlanFrames-pane, .thpf-bd-off .thpf-eyew { display: none; }
.thpf-vb .thpf-seg { margin-bottom: 4px; }
.thpf-bsw { display: block; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 4px 10px; border-radius: 6px; border: 1px solid #3a3f46; background: #262a30; color: #fff; font: 600 13px/1.2 Roboto, system-ui, sans-serif; cursor: pointer; text-align: left; }
.thpf-bsw[aria-checked="false"] { background: var(--accent, #9E8C5B); border-color: var(--accent, #9E8C5B); color: #1b1e22; }
.thpf-bsw:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
