/* TB 2026-11-10: живий пошук «вариант A» — широка панель (ПК), повноекранний лист (телефон). Розмітку будує tb_live_search.js */
body.tbls-on #ds_livesearch { display: none !important; }
.tbls-ov { position: fixed; inset: 0; background: rgba(17, 19, 20, .32); z-index: 12001; display: none; }
.tbls-ov.on { display: block; }
.tbls { position: fixed; z-index: 12400; display: none; flex-direction: column; background: #fff; border: 1px solid var(--ds-border-color, #e3e8ee);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(15, 23, 42, .18); overflow: hidden; color: var(--ds-dark-text-color, #00171f); font-size: 14px; line-height: 1.4; }
.tbls.on { display: flex; }
.tbls.busy::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--ds-primary-color, #00a8e8); animation: tbls-bar 1s linear infinite; }
@keyframes tbls-bar { from { left: -40%; } to { left: 100%; } }
.tbls mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.tbls button { font: inherit; }
.tbls-empty { padding: 26px 20px; color: #6b7785; text-align: center; }
.tbls-hd { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 52px 12px 16px; border-bottom: 1px solid var(--ds-border-color, #e3e8ee); position: relative; flex: 0 0 auto; }
.tbls-tt { font-size: 15px; }
.tbls-tt b { font-size: 16px; }
.tbls-ch { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tbls-chip { border: 1px solid #cfd8e2; background: #fff; border-radius: 16px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; white-space: nowrap; color: #334155; line-height: 1.4; }
.tbls-chip span { opacity: .55; margin-left: 4px; }
.tbls-chip.on { background: #e3f4fc; border-color: var(--ds-primary-color, #00a8e8); color: #075a85; font-weight: 600; }
.tbls-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f1f4f7; color: #475569; cursor: pointer; font-size: 15px; line-height: 32px; padding: 0; }
.tbls-x:hover { background: #e5eaef; }
.tbls-bd { display: flex; min-height: 0; flex: 1 1 auto; }
.tbls-sd { width: 236px; flex: 0 0 236px; border-right: 1px solid var(--ds-border-color, #e3e8ee); padding: 12px 10px 12px 14px; overflow-y: auto; background: #fafbfc; }
.tbls-sd h4 { margin: 4px 0 6px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6b7785; font-weight: 600; }
.tbls-sg { margin-bottom: 14px; }
.tbls-sf { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 5px 8px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 13px; color: #334155; line-height: 1.3; }
.tbls-sf:hover { background: #eef3f7; }
.tbls-sf.on { background: #e3f4fc; color: #075a85; font-weight: 600; }
.tbls-sf span { opacity: .6; flex: 0 0 auto; }
.tbls-ls { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px; min-width: 0; }
.tbls-sub { padding: 12px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6b7785; }
.tbls-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) 140px 116px 124px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
.tbls-r:hover, .tbls-r.act { background: #f2f9fd; border-color: #d3ecf8; }
.tbls-im img { display: block; width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #eef1f4; border-radius: 8px; }
.tbls-nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.3; color: inherit; text-decoration: none; }
.tbls-nm:hover { color: var(--ds-links-color, #00a8e8); }
.tbls-mt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: #6b7785; }
.tbls-art { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #334155; background: #f1f4f7; border-radius: 5px; padding: 1px 6px; }
.tbls-tg { border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 600; }
.tbls-tg.t-a { background: #e8f1fb; color: #1d5e9c; }
.tbls-tg.t-o { background: #e6f6ec; color: #17733f; }
.tbls-tg.t-u { background: #f1efe8; color: #6b6250; }
.tbls-md { background: #f4f1fb; color: #5a4a8a; border-radius: 5px; padding: 1px 6px; font-size: 11px; }
.tbls-ex { background: #e6f6ec; color: #17733f; border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.tbls-cr { background: #fff4e0; color: #8a5a00; border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.tbls-av { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tbls-av.ok { color: var(--ds-green-color, #2e9e44); }
.tbls-av.no { color: var(--ds-red-color, #d5383d); }
.tbls-av.rm { color: #a86a00; }
.tbls-pr { display: block; text-align: right; white-space: nowrap; font-weight: 800; font-size: 15px; }
.tbls-pr s { display: block; font-weight: 400; font-size: 12px; color: #98a2b0; }
.tbls-pr small { display: block; font-weight: 500; font-size: 12px; color: #6b7785; }
.tbls-pa { display: none; }
.tbls-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ds-primary-color, #00a8e8); color: #fff; border: 1px solid var(--ds-primary-color, #00a8e8);
  border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.tbls-btn:hover { filter: brightness(.95); }
.tbls-btn.sec { background: #fff; color: #0f7ec2; border-color: #9cc9ea; }
.tbls-btn svg { display: none; }
.tbls-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--ds-border-color, #e3e8ee); background: #fafbfc; font-size: 12.5px; color: #6b7785; flex: 0 0 auto; }
.tbls-all { color: var(--ds-links-color, #0f7ec2); font-weight: 700; font-size: 13.5px; margin-left: auto; text-decoration: none; }
.tbls-all:hover { text-decoration: underline; }

/* планшет: без бічної колонки (тип — чіпами вгорі) */
@media (max-width: 991.98px) {
  .tbls-r { grid-template-columns: 56px minmax(0, 1fr) 120px 104px 112px; gap: 10px; }
  .tbls-im img { width: 56px; height: 56px; }
}
/* телефон: лист на весь екран під полем пошуку */
@media (max-width: 767.98px) {
  .tbls { bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--ds-border-color, #e3e8ee); box-shadow: none; }
  .tbls-hd { padding: 10px 50px 8px 12px; }
  .tbls-tt { font-size: 13.5px; color: #475569; }
  .tbls-tt b { font-size: 14px; }
  .tbls-ch { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .tbls-chip { flex: 0 0 auto; }
  .tbls-x { top: 8px; }
  .tbls-ls { padding: 4px 6px; }
  .tbls-r { grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 10px; padding: 8px 6px; }
  .tbls-im img { width: 56px; height: 56px; }
  .tbls-c-av, .tbls-c-pr { display: none; }
  .tbls-pa { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 5px; }
  .tbls-pr { font-size: 14.5px; }
  .tbls-btn { width: 40px; height: 40px; padding: 0; }
  .tbls-btn .tbls-bt { display: none; }
  .tbls-btn svg { display: block; }
  .tbls-ft { justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  /* <16px — iOS Safari збільшує сторінку при фокусі й обрізає шапку; fsz-12 теми має !important */
  #searchInput { font-size: 16px !important; }
}
