/* Task Helper — the Plans control + list drawn by shared/form-plans.js (the form's own map AND the app's Map while it picks a spot for a form). Copyright Rapid Surveys Pty Ltd.
 * Moved out of forms/request.css (FORMPICKPLANS): the --thf-* colours come from the form page when it has them, else the fallbacks below (light; dark under the app's dark theme). */
:root[data-theme="dark"] .thf-lyr { --thf-card: #1f242b; --thf-ink: #e8ecf1; --thf-box: #252b33; --thf-accent: #5b8cff; --thf-line: #38404a; --thf-muted: #a3adba; }
.thf-lyr { position: relative; }
.thf-lyr-btn { position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: inherit; background: var(--thf-card, #fff); color: var(--thf-ink, #1c2430); cursor: pointer; }   /* the app's tool square, 44 px on a phone */
.thf-lyr-btn svg { width: 20px; height: 20px; flex: none; }
.thf-lyr-btn:hover, .thf-lyr-open .thf-lyr-btn { background: var(--thf-box, #f7f9fc); }
.thf-lyr-open .thf-lyr-btn { box-shadow: inset 3px 0 0 var(--thf-accent, #2f6df6); }
.thf-lyr-btn:focus-visible { outline: 2px solid var(--thf-accent, #2f6df6); outline-offset: 2px; }
.thf-lyr-badge { position: absolute; top: -5px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px; font: 700 10px/15px system-ui, sans-serif; text-align: center; background: var(--thf-accent, #2f6df6); color: var(--thf-accent-ink, #fff); pointer-events: none; }
.thf-lyr-badge:empty { display: none; }
.thf-lyr-panel { position: absolute; left: 52px; top: 0; width: min(300px, calc(100vw - 100px)); max-height: 55vh; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--thf-line, #d6dbe2); border-radius: 10px; background: var(--thf-card, #fff); color: var(--thf-ink, #1c2430); box-shadow: 0 1px 4px rgba(20,28,40,.25); cursor: auto; }
.thf-lyr-open { z-index: 1000; }
.thf-plans-h { margin: 2px 0 4px; font-weight: 600; font-size: 14px; }
/* PLNCLIP: the slider row's padding-left sat outside its 100% flex-basis, so the row ran 5-7 px wider than the panel and the panel's overflow-x clipped the "%" — count the padding inside the row */
.thf-lyr-panel .plt-list .plt-opw { box-sizing: border-box; min-width: 0; max-width: 100%; }
.thf-lyr-panel .plt-list .plt-opw input.plt-op { min-width: 0; }   /* the slider gives way (was min 60 px) so the row fits a 258 px phone panel */
