/* Task Helper — THE BARS STAY (BRIEF-1307). Copyright Rapid Surveys Pty Ltd. Namespace th-.
 * A full-page screen opts in with ONE class on its root; it then sits between the app's top bar and the phone's view bar
 * (--th-top / --th-bottom, measured by bars.js). No bar on the page → 0 → full screen exactly as before. */
.th-sheet { top: var(--th-top, 0px) !important; bottom: var(--th-bottom, 0px) !important; inset-block-start: var(--th-top, 0px) !important; inset-block-end: var(--th-bottom, 0px) !important; height: auto !important; max-height: none !important; }
.overlay.th-sheet > .modalcard { max-height: calc(100% - 32px); overflow-y: auto; }   /* BRIEF-1307 (real-data pass): a centred card fits between the bars */
@media (max-width: 767px) {
  .th-sheet-phone { top: var(--th-top, 0px) !important; bottom: var(--th-bottom, 0px) !important; inset-block-start: var(--th-top, 0px) !important; inset-block-end: var(--th-bottom, 0px) !important; height: auto !important; max-height: none !important; }
}
