.inventory-lookup{display:grid;grid-template-columns:minmax(240px,28%) minmax(0,1fr);gap:22px;align-items:start}.inventory-lookup>*{min-width:0}.lookup-tree{padding:14px;position:sticky;top:20px}.lookup-tree .inv-search{display:flex;gap:6px}.lookup-tree input{min-width:0;width:100%}.lookup-tree-scroll{max-height:65dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:12px}.lookup-tree [role=treeitem]{min-height:44px;width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:0;border-radius:6px;padding:10px;background:transparent;overflow-wrap:anywhere}.lookup-tree [role=group]{padding-left:18px}.lookup-tree [role=group][hidden]{display:none}.lookup-tree [aria-selected=true]{color:#174b3c;background:#e2eee5;font-weight:700}.lookup-tree [role=treeitem]>span:first-child{flex:1}.lookup-type{font-weight:700}.lookup-results>header h2{margin:8px 0;overflow-wrap:anywhere}.lookup-results>header p{color:#607466}.lookup-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lookup-summary>div{padding:14px;background:white;border:1px solid #dde6dc;border-radius:10px}.lookup-summary strong{display:block;font-size:22px;margin-top:8px}.lookup-summary strong small{font-size:12px}.lookup-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.lookup-filters label{margin:0}.lookup-filters details{position:relative}.lookup-filters summary,.lookup-export-mobile summary{min-height:44px;padding:12px;cursor:pointer;background:white;border:1px solid #dce4d9;border-radius:8px}.lookup-filters details[open]{padding:12px;background:white;border:1px solid #dce4d9;border-radius:8px}.lookup-pages{display:flex;justify-content:center;align-items:center;gap:20px;margin:20px 0}.lookup-back,.lookup-export-mobile{display:none}.lookup-results .inv-stock-table{margin:0}.lookup-results .inv-count-guide{margin:12px 0}
@media(max-width:900px){.lookup-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-lookup{grid-template-columns:minmax(220px,35%) minmax(0,1fr)}}
@media(max-width:650px){.inventory-lookup{display:block}.lookup-tree{position:static}.lookup-tree-scroll{max-height:calc(100dvh - 290px);min-height:200px}.inventory-lookup:not(.lookup-detail)>.lookup-results,.inventory-lookup.lookup-detail>.lookup-tree{display:none}.lookup-back{display:inline-block;margin-bottom:12px}.lookup-export-pc{display:none}.lookup-export-mobile{display:block;position:relative}.lookup-export-mobile[open]>.btn{position:absolute;right:0;top:100%;min-width:150px;background:white;z-index:5}.lookup-filters{align-items:center}.lookup-filters details[open]{position:fixed;bottom:0;left:0;right:0;max-height:75dvh;overflow:auto;z-index:30;padding:20px 20px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px #0004}.lookup-results .inv-stock-table tr:not(.inv-status-heading){display:grid;grid-template-columns:1fr;gap:8px}.lookup-results .inv-stock-table td{width:auto}.lookup-results .inv-stock-table td:first-child{grid-column:auto}.lookup-results .inv-stock-table td:last-child{text-align:right}.lookup-summary>div{padding:12px}}

.lookup-tree .lookup-type>span:first-child{flex:0 0 auto}.lookup-tree .lookup-type>span:last-child{flex:1}

.lookup-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:20px;gap:14px;align-items:end}.lookup-filters label{min-width:0}.lookup-filters input,.lookup-filters select{width:100%;min-width:0;min-height:44px}.lookup-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.lookup-filter-actions .btn{min-height:44px}
@media(max-width:650px){.lookup-filters{grid-template-columns:minmax(0,1fr);padding:16px}.lookup-filter-actions{flex-wrap:wrap}.lookup-filter-actions .btn{flex:1}}
