/* ---------------------------------------------------------------------------
 *  Quick filter popover - reference CRM style (calls, meetings, tasks)
 *  list-page.js hsChip(): operator dropdown, select + search list, date
 *  presets with hints, True / False toggle, number + unit.
 * ------------------------------------------------------------------------- */
.lp-pop--hsq { border-radius: 16px; }
.lp-pop--hsq .lp-pop__body { width: 340px; padding: 22px 24px 24px; overflow: visible; }
.lp-pop.is-narrow.lp-pop--hsq .lp-pop__body { width: 100%; }
.lp-hsq { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-hsq__tri { width: 9px; height: 6px; flex: none; }
.lp-hsq__op { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; margin-left: -4px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.lp-hsq__op:hover { color: var(--brand); }
.lp-hsq__select { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 8px 14px; border: 1px solid var(--text); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.lp-hsq__select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-hsq__select.is-ph span { color: var(--text); }
.lp-hsq__select.is-open, .lp-hsq__unit.is-open { border-color: var(--brand); box-shadow: var(--focus-ring); }
.lp-hsq__seg { display: inline-flex; border: 1px solid var(--text-muted); border-radius: 999px; overflow: hidden; }
.lp-hsq__seg button { min-width: 84px; height: 40px; padding: 0 18px; border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.lp-hsq__seg button + button { border-left: 1px solid var(--text-muted); }
.lp-hsq__seg button:hover { background: var(--surface-hover); }
.lp-hsq__seg button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.lp-hsq__row, .lp-hsq__num { display: flex; align-items: center; gap: 8px; width: 100%; }
.lp-hsq__num.has-unit { gap: 0; border: 1px solid var(--text); border-radius: 8px; overflow: hidden; }
.lp-hsq__num.has-unit .lp-hsq__in { border: 0; border-radius: 0; }
.lp-hsq__num.has-unit .lp-hsq__and { padding: 0 6px; }
.lp-hsq__in { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--text); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.lp-hsq__in--full { width: 100%; flex: none; }
.lp-hsq__in:focus { outline: 0; box-shadow: var(--focus-ring); }
.lp-hsq__and { color: var(--text-muted); font-size: 14px; }
.lp-hsq__unit { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; min-width: 112px; height: 42px; padding: 0 14px; border: 0; border-left: 1px solid var(--text); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
/* dropdown under a control */
.lp-hsq__sub { position: absolute; z-index: 3; display: flex; flex-direction: column; max-width: calc(100vw - 32px); border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 36px rgba(16, 24, 40, .18); overflow: hidden; }
.lp-hsq__sub.is-list { width: 340px; }
.lp-hsq__sub.is-menu { min-width: 200px; }
.lp-hsq__search { position: relative; display: block; padding: 14px 14px 8px; background: var(--surface); }
.lp-hsq__search input { width: 100%; height: 40px; padding: 0 40px 0 16px; border: 2px solid var(--brand); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.lp-hsq__search input:focus { outline: 0; }
.lp-hsq__search .lp-i { position: absolute; top: 25px; right: 28px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.lp-hsq__list { display: flex; flex-direction: column; max-height: 300px; padding: 4px 0; overflow-y: auto; }
.lp-hsq__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 18px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.lp-hsq__opt[hidden] { display: none; }
.lp-hsq__opt:hover, .lp-hsq__opt:focus-visible { outline: 0; background: var(--surface-hover); }
.lp-hsq__sub.is-menu .lp-hsq__opt[aria-selected="true"] { background: var(--surface-2); }
.lp-hsq__opt--2 { flex-direction: column; align-items: flex-start; gap: 2px; }
.lp-hsq__opt--2 small { color: var(--text-muted); font-size: 13px; }
.lp-hsq__opt--2[aria-selected="true"] { background: var(--brand-soft); }
.lp-hsq__cb { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--text); border-radius: 5px; background: var(--surface); }
.lp-hsq__cb .lp-i { width: 14px; height: 14px; opacity: 0; color: #fff; }
.lp-hsq__cb.is-on { border-color: var(--brand); background: var(--brand); }
.lp-hsq__cb.is-on .lp-i { opacity: 1; }
.lp-hsq__none { margin: 0; padding: 14px 18px; color: var(--text-muted); font-size: 14px; }
.lp-hsq__none[hidden] { display: none; }
