/* 1.1.304 owner's picture: filter button left of the search bar with Product / Excel / Trash; pull-to-refresh sign. */
.search-filter{position:relative;flex:0 0 auto;align-self:center}
.mobile-search:has(.search-filter){display:flex;align-items:center;gap:10px}
.mobile-search:has(.search-filter)>.search-pill{flex:1 1 auto;min-width:0}
/* The folder button moved into the filter list. */
.mobile-search:has(.search-filter)>.excel-folder-button{display:none!important}
/* 1.1.305: one bin only — Trash in the filter list; the bar keeps the count and ˄ ˅. */
.mobile-search:has(.search-filter) .search-tools .search-clear{display:none!important}
/* 1.1.307 owner: Trash plays the old bin animation — the bin shows in the bar only while it eats the letters. */
body.bin-eating .mobile-search:has(.search-filter) .search-tools .search-clear{display:inline-grid!important}
/* 1.1.307 owner: the search bar stays at the top while scrolling the found products. overflow-x:hidden on html and
   body made body a scroll box of its own, so the sticky bar scrolled away; clip cuts the same sideways overflow
   without that. */
@supports (overflow:clip){@media(max-width:850px){html,body{overflow-x:clip}}}
/* 1.1.307 owner: pull down to refresh replaces the Settings Refresh row. */
#app-refresh-action{display:none!important}
.search-filter-button{display:grid;place-items:center;width:52px;height:52px;padding:0;border:2px solid #1d6b2c;border-radius:16px;background:#fff;color:#14532d;box-shadow:0 2px 10px #173c2a1a;cursor:pointer}
.search-filter-button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.search-filter-button[aria-expanded="true"]{background:#eef7ea}
.search-filter-menu{position:absolute;top:calc(100% + 12px);left:0;z-index:60;display:grid;gap:8px;width:min(78vw,290px);padding:12px;border:1px solid #d9e8da;border-radius:20px;background:#fff;box-shadow:0 14px 34px #10201833}
.search-filter-menu::before{content:"";position:absolute;top:-8px;left:20px;width:14px;height:14px;background:#fff;border-left:1px solid #d9e8da;border-top:1px solid #d9e8da;transform:rotate(45deg)}
.search-filter-menu[hidden],.search-filter-menu [hidden]{display:none}
.search-filter-menu button{position:relative;display:flex;align-items:center;gap:14px;min-height:52px;padding:0 14px;border:0;border-radius:14px;background:#f3f5f3;color:#1d2a21;font:inherit;font-size:17px;font-weight:650;text-align:left;cursor:pointer}
.search-filter-menu button span{flex:1}
.search-filter-menu button>svg{flex:0 0 26px;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.search-filter-menu .search-filter-trash{stroke:#d0302a}
.search-filter-menu button i{flex:0 0 22px;width:22px;height:22px;border:2px solid #9aa59e;border-radius:50%;box-sizing:border-box}
.search-filter-menu button.on{background:#1a6b25;color:#fff}
.search-filter-menu button.on>svg:not(.search-filter-excel){stroke:#fff}
.search-filter-menu button.on i{border-color:#fff;background:radial-gradient(circle,#fff 0 4px,transparent 5px)}
/* Product: Excel rows stay hidden. Excel: only the Excel rows show while searching. */
body.searching.scope-product .excel-results{display:none!important}
body.searching.scope-excel #products{display:none!important}
#products .product.search-hit{outline:3px solid #f2c94c;outline-offset:2px;transition:outline-color .3s}
.pull-refresh{position:fixed;top:calc(env(safe-area-inset-top) + 8px);left:50%;z-index:2000;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 3px 12px #10201833;opacity:0;transform:translate(-50%,-56px);pointer-events:none}
.pull-refresh svg{width:22px;height:22px;fill:none;stroke:#9aa59e;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pull-refresh.ready svg,.pull-refresh.spinning svg{stroke:#1a7a2e}
.pull-refresh.spinning svg{animation:pull-spin .7s linear infinite}
@keyframes pull-spin{to{transform:rotate(360deg)}}
:root[data-theme="dark"] .search-filter-button,:root[data-theme="dark"] .search-filter-menu,:root[data-theme="dark"] .search-filter-menu::before{background:#182b1e;color:#e1f0de;border-color:#334b35}
:root[data-theme="dark"] .search-filter-menu button:not(.on){background:#253b28;color:#e1f0de}
/* 1.1.448 owner: one small switch for Product / Excel */
.search-filter-menu button[data-scope="toggle"]{gap:10px;padding:0 14px;justify-content:space-between}
.search-filter-menu button[data-scope="toggle"][hidden]{display:none}
.search-filter-menu .sf-side{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;opacity:.55;transition:opacity .15s}
.search-filter-menu .sf-side em{font-style:normal}
.search-filter-menu .sf-side svg{flex:0 0 24px;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.search-filter-menu .sf-product{opacity:1;color:#1a6b25}
.search-filter-menu button.on-excel .sf-product{opacity:.5;color:inherit}
.search-filter-menu button.on-excel .sf-excel{opacity:1;color:#1a6b25}
.search-filter-menu .search-switch{position:relative;flex:0 0 52px;width:52px;height:30px;border-radius:99px;background:#cdd6cf;box-shadow:inset 0 1px 3px #0000002e;transition:background .18s}
.search-filter-menu .search-switch u{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #00000040;transition:transform .18s}
.search-filter-menu button.on-excel .search-switch{background:#1a8a35}
.search-filter-menu button.on-excel .search-switch u{transform:translateX(22px)}
:root[data-theme="dark"] .search-filter-menu .sf-product,:root[data-theme="dark"] .search-filter-menu button.on-excel .sf-excel{color:#8be28d}

