#box-shelf-nav{margin:0 0 16px;padding:6px;border:1px solid var(--line,#d6e1ec);border-radius:12px;background:var(--paper,#fff);min-width:0}
#box-shelf-nav [role=tablist]{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px}
#box-shelf-nav [role=tab]{flex:0 0 auto;border:0;border-radius:8px;background:transparent;color:var(--ink,#173555);font-size:14px;font-weight:750;padding:12px 16px;cursor:pointer}
#box-shelf-nav [role=tab][aria-selected=true]{background:#1766df;color:#fff}
#box-shelf-nav [role=tab]:focus-visible,.box-shelf-scroll:focus-visible{outline:3px solid #83b9ff;outline-offset:2px}
#inventory-section-boxes [hidden]{display:none!important}
#inventory-section-boxes .box-shelf-scroll{max-height:clamp(260px,62vh,760px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;padding:0 8px 8px 0;min-width:0}
#box-stock .box-shelf-pane>label{display:block;max-width:680px;margin:12px 0 16px}
#box-stock .box-shelf-pane>label input{width:100%;max-width:100%}
#box-stock>.panel-head{align-items:flex-start;gap:14px;margin-bottom:16px}
#box-stock .toolbar-actions button,#storage-locations .toolbar-actions button{font-size:13px;line-height:1.3;padding:9px 12px;white-space:normal}
#box-stock .box-stock-card{margin:0 0 14px;padding:16px}
#box-stock .box-stock-card>.panel-head{position:sticky;top:0;z-index:1;background:var(--paper,#fff);padding:8px 0 12px;margin:0;align-items:flex-start;box-shadow:0 1px 0 var(--line,#d6e1ec)}
#box-stock .box-stock-card h4{font-size:20px}
#box-stock .box-stock-card .panel-head p{font-size:13px;margin:6px 0 0}
#box-stock .box-stock-card table{min-width:680px;font-size:13px}
#box-stock .box-stock-card th:first-child{width:36%}
#box-stock .box-stock-card td:last-child{width:42%}
#box-stock .box-stock-card td .toolbar-actions{display:flex;gap:6px;justify-content:flex-start}
#box-stock .box-stock-card td button{font-size:12px;padding:8px 10px}
#box-stock .box-shelf-pane>details{margin:0;border:0}
#box-stock .box-shelf-pane>details>summary{font-size:17px;pointer-events:none;list-style:none;margin:0 0 14px}
#box-stock .box-shelf-pane>details>summary::-webkit-details-marker{display:none}
#box-stock-unboxed>p,#box-stock-events>p{border-bottom:1px solid var(--line,#d6e1ec);padding:12px 4px;margin:0;line-height:1.6;overflow-wrap:anywhere}
#storage-results{margin:14px 0}
@media(max-width:650px){#box-shelf-nav [role=tab]{font-size:13px;padding:11px 12px}#inventory-section-boxes .box-shelf-scroll{max-height:58vh}#box-stock .box-stock-card{padding:10px}#box-stock .box-stock-card>.panel-head{position:static}#box-stock>.panel-head>.toolbar-actions{display:flex;width:100%}#box-stock>.panel-head>.toolbar-actions button{flex:1 1 135px}#storage-locations .toolbar-actions button{font-size:12px}}
@media print{#box-shelf-nav{display:none}#inventory-section-boxes .box-shelf-scroll{max-height:none;overflow:visible}#box-stock .box-stock-card>.panel-head{position:static}}
