/* Task Helper — the task panel's shared tabs (BRIEF-932). Copyright Rapid Surveys Pty Ltd. The same look as TIME's tabs. */
.tt-tabs { display: flex; margin: -4px 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tt-tabs::-webkit-scrollbar { display: none; }
/* BRIEF-1168: tabs fill the row when they fit; when they don't, they keep their size and the row scrolls, with a fade on the side that has more */
/* QF-12 (3, Gary): the row starts at the FIRST tab; a chevron sits on the side that has more (it stays put while the row scrolls — sticky
   inside the row) over a short fade, and a tap on it scrolls that way. No chevron when every tab fits. */
.tt-tabs { position: relative; }
.tt-chev { display: none; position: sticky; z-index: 1; flex: none; width: 32px; min-height: 44px; align-items: center; color: var(--ink); cursor: pointer; }
.tt-chev-l { left: 0; margin-right: -32px; justify-content: flex-start; padding-left: 4px; background: linear-gradient(to left, transparent, var(--card) 55%); }
.tt-chev-r { right: 0; margin-left: -32px; justify-content: flex-end; padding-right: 4px; background: linear-gradient(to right, transparent, var(--card) 55%); }
.tt-tabs.tt-more-l .tt-chev-l, .tt-tabs.tt-more-r .tt-chev-r { display: flex; }
.tt-tabs button { flex: 1 0 auto; white-space: nowrap; width: auto; min-height: 44px; margin: 0; padding: 0 12px; font-size: 15px; font-weight: 600; border: 0; border-radius: 0; background: var(--card); color: var(--muted); }
.tt-tabs button + button { border-left: 1px solid var(--line); }
.tt-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tt-tabs button:focus-visible { outline: 2px solid var(--btn-focus, var(--accent)); outline-offset: -6px; }   /* BTNLOOK: a light inner ring, not a heavy frame; the row already scrolls sideways with a chevron cue (.tt-chev) */
/* Another tab shows → the Details content hides (the bar, the panes and anything marked data-tt-keep stay). */
.tt-host:not([data-tt-tab="details"]) > :not(.tt-tabs):not(.tt-pane):not([data-tt-keep]) { display: none !important; }
.tt-pane[hidden] { display: none; }
/* BRIEF-1241 / 1244 (Gary): a GROUP tab (e.g. Diary) — a LIGHT switch above its sections: small text tabs, the chosen one underlined
   (not a second button bar), tucked under the main tabs; still 44 px to tap; no switch for one section */
.tt-seg { display: flex; gap: 2px; margin: -8px 0 4px; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tt-seg::-webkit-scrollbar { display: none; }
.tt-seg[hidden] { display: none; }
.tt-seg button { flex: 0 0 auto; white-space: nowrap; width: auto; min-height: 44px; margin: 0 0 -1px; padding: 0 10px; font-size: 14px; font-weight: 600;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.tt-seg button:hover { color: var(--ink); }
.tt-seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tt-seg button:focus-visible { outline-offset: -3px; }
.tt-sec[hidden] { display: none; }
/* tasktabs (Gary tp1, 2026-11-08): the five tabs — Details · Work · Safety · Comms · Events — fit a 360 px phone without sideways scroll
   (tighter side padding and 14 px text; still 44 px tall). More tabs than that (Quality…) still scroll with the chevron cue. */
@media (max-width: 480px) { .tt-tabs button { padding: 0 6px; font-size: 14px; } }
