.inventory-camera-view{position:relative;max-width:600px;margin:auto}.inventory-camera-view video{display:block;width:100%;max-height:360px;object-fit:contain;background:#14261d;border-radius:12px}.inventory-camera-guide{position:absolute;left:8%;right:8%;top:18%;bottom:18%;border:2px solid #ffffffc9;border-radius:8px;box-shadow:0 0 0 100vmax #00000012;clip-path:inset(-8px)}.inventory-camera-status{font-size:13px;line-height:1.45}.inventory-camera-quantity{padding:20px;border:1px solid #d9e5dc;border-radius:18px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;background:#f7faf8;color:#183c29;box-shadow:0 18px 64px #102d2540}.inventory-camera-quantity::backdrop{background:#0c271db3}.inventory-camera-quantity header{display:flex;align-items:center;justify-content:space-between;gap:10px}.inventory-camera-quantity h2{font-size:22px;line-height:1.2;margin:0}.inventory-camera-quantity header .btn{flex:none;white-space:nowrap}.inventory-camera-product{font-size:13px;line-height:1.4;overflow-wrap:anywhere;margin:14px 0}.inventory-camera-quantity label{display:grid;gap:5px;font-size:13px;margin:10px 0}.inventory-camera-quantity input{min-width:0;width:100%;box-sizing:border-box;font-size:16px}.inventory-camera-quantity-label input{font-size:32px;font-weight:700;line-height:1.1;text-align:center;min-height:58px;caret-color:transparent}.inventory-number-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.inventory-number-pad button{height:49px;min-width:0;touch-action:manipulation;border:1px solid #d6e3d9;border-radius:10px;background:#fff;color:#163e29;font:600 23px/1 system-ui;cursor:pointer}.inventory-number-pad .inventory-count-ok{background:#226e50;border-color:#226e50;color:#fff;font-size:18px}.inventory-number-pad button:active{transform:translateY(1px);background:#e1eee6}.inventory-number-pad button:disabled{opacity:.6}.inventory-camera-count-status{font-size:13px;color:#9b352f;line-height:1.4;margin:12px 0 0}.inventory-camera-count-status:empty{display:none}.inventory-camera-review{font-size:12px;color:#936433;margin:5px 0}.inventory-camera-quantity [name=code],.inventory-camera-quantity [name=label_price]{min-height:42px}
@media(max-width:360px){.inventory-camera-quantity{padding:15px}.inventory-camera-quantity h2{font-size:20px}.inventory-number-pad{gap:6px}.inventory-number-pad button{height:44px}}
@media print{.inventory-camera-quantity,.inventory-camera-view,.inventory-camera-status{display:none!important}}

.inventory-scan-help{font-size:13px;line-height:1.45;color:#526359;margin:9px 0 13px}.inventory-scan-presets{margin:10px 0 14px}.inventory-scan-presets summary{font-size:13px}.inventory-scan-presets .workflow-scan-qty{display:inline-grid;vertical-align:top;margin:10px 12px 0 0;width:min(100%,240px)}

.inventory-scan-entry .scan-entry-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.inventory-scan-entry .scan-entry-code{min-width:0}.inventory-scan-entry .scan-entry-code input{width:100%;min-width:0;box-sizing:border-box}.inventory-scan-entry .scan-entry-add{min-width:0;white-space:nowrap}

/* Match the OCR source rectangle to the visible compact camera on portrait and landscape phones. */
.inventory-camera-view{position:relative;width:100%;max-width:420px;height:175px;margin:8px auto;overflow:hidden;border-radius:10px;background:#14261d}
.inventory-camera-view video.camera-video{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:175px!important;min-height:0!important;max-height:none!important;object-fit:cover!important;margin:0!important;border-radius:0!important}
.inventory-camera-guide{left:6%;right:6%;top:12%;bottom:12%;border-radius:6px;box-shadow:0 0 0 100vmax #00000040;clip-path:inset(-100vmax)}
.inventory-camera-status{font-size:12px;line-height:1.4;min-height:2.8em;margin:6px 0!important;padding:7px 9px!important}
.inventory-camera-view+.inventory-camera-status+.btn-row{margin:5px 0 10px;gap:7px}
.inventory-camera-view+.inventory-camera-status+.btn-row .btn{font-size:12px;padding:8px 10px;min-height:36px}
.inventory-scan-entry{padding:12px!important}.inventory-scan-entry .workflow-scan-buttons{margin:0 0 8px!important;gap:8px}.inventory-scan-entry .workflow-scan-buttons .btn{flex:1;min-width:0}
.inventory-scan-entry .scan-entry-form{margin-top:10px}.inventory-scan-presets{margin:9px 0 0}.inventory-scan-presets summary{font-size:12px}
.inventory-working-panel>.panel-head{gap:8px;flex-wrap:wrap}.inventory-working-panel>.panel-head h2{font-size:17px}.inventory-working-panel>.panel-head>.btn-row{margin:0}
.inventory-last-scan{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:76px;box-sizing:border-box;padding:12px 14px;margin:12px 0;background:#eaf4ee;border:1px solid #cce0d3;border-radius:10px;overflow-wrap:anywhere}
.inventory-last-scan>div{min-width:0}.inventory-last-scan small{display:block;font-size:11px;color:#526a59;margin-bottom:4px}.inventory-last-scan strong{display:block;font-size:14px;line-height:1.4}.inventory-last-scan strong span{white-space:nowrap}.inventory-last-scan p{font-size:12px;line-height:1.5;margin:5px 0 0}.inventory-last-check{font-size:22px;color:#216440;flex:none}.inventory-last-empty{color:#62766a;font-size:12px!important}
.inventory-other-lists{margin:15px 0}.inventory-other-lists>summary{font-size:13px;padding:10px 0;cursor:pointer}.inventory-other-lists>.panel{margin-top:12px}
.inventory-price-check{font-size:12px;line-height:1.4;margin:6px 0;color:#28613f}.inventory-price-check.warn{padding:9px 10px;background:#fff0df;border:1px solid #e9c89e;border-radius:8px;color:#8e4c18}
.inventory-camera-quantity label.inventory-price-confirm{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.4;padding:9px;background:#fff8eb;border-radius:8px}.inventory-price-confirm input{flex:none;width:19px;height:19px;min-height:19px;margin:0}.inventory-camera-quantity .inventory-price-confirm[hidden]{display:none!important}
.inventory-camera-reading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:12px;background:#eaf3ed;border-radius:10px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.inventory-camera-reading>strong{font-size:20px;min-width:0}.inventory-camera-reading span strong{font-size:20px}.inventory-camera-details{margin:10px 0 4px}.inventory-camera-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;color:#27664b}.inventory-camera-details>summary::after{content:'⌄';font-size:20px}.inventory-camera-details[open]>summary::after{content:'⌃'}.inventory-camera-details[open]>summary{margin-bottom:6px}.inventory-camera-quantity .inventory-price-check[hidden]{display:none!important}
@media(max-width:700px){.inventory-working-panel>.panel-body{padding:12px!important}.inventory-working-panel>.panel-head{padding:12px!important}.inventory-working-panel .inventory-scan-entry .scan-entry-form{grid-template-columns:minmax(0,1fr) auto!important}.inventory-working-panel .inventory-scan-entry .scan-entry-add{width:auto!important;padding:11px 12px!important;min-height:44px}.inventory-working-panel .inventory-scan-entry .scan-entry-code{grid-column:auto!important}.inventory-working-panel .inventory-scan-entry .scan-entry-code input{min-height:44px}.inventory-working-panel .inventory-scan-entry .scan-entry-code{font-size:12px}}

.inventory-scan-entry.inventory-camera-active .scan-entry-form,.inventory-scan-entry.inventory-camera-active .inventory-scan-presets{display:none!important}.inventory-camera-mode>.page-head,.inventory-camera-mode .inventory-working-panel>.panel-head>.btn-row{display:none!important}.inventory-camera-mode .inventory-working-panel{margin-top:0!important}

/* Product identity, counted pieces and corrections stay together on narrow screens. */
.inventory-count-list{overflow:visible}.inventory-count-table{min-width:0!important;table-layout:fixed}.inventory-count-table th,.inventory-count-table td{padding:13px 12px;vertical-align:top}.inventory-count-table th:first-child{width:42%}.inventory-count-table th:nth-child(2){width:15%}.inventory-count-table th:nth-child(3){width:23%}.inventory-count-table th:last-child{width:20%}.inventory-count-name{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.inventory-count-code{display:block;font-size:12px;color:#5b7064;margin-top:5px;line-height:1.5}.inventory-count-code b{font-size:14px;color:#183c29}.inventory-count-price{font-weight:650;white-space:nowrap}.inventory-count-quantity summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:36px;line-height:1.4}.inventory-count-quantity summary::-webkit-details-marker,.inventory-count-more summary::-webkit-details-marker{display:none}.inventory-count-quantity summary span{font-size:12px;color:#236b4f;text-decoration:underline;text-underline-offset:3px}.inventory-count-quantity form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:10px 0 0;max-width:220px}.inventory-count-quantity form label{display:grid;gap:5px;font-size:12px;color:#50665a;min-width:0}.inventory-count-quantity input{min-width:0;width:100%;box-sizing:border-box;font-size:16px;min-height:42px}.inventory-count-quantity form button{width:100%}.inventory-count-total{line-height:36px}.inventory-count-actions>.btn{margin-bottom:6px;white-space:nowrap}.inventory-count-more summary{list-style:none;cursor:pointer;color:#5b7064;font-size:12px;line-height:1.4;padding:7px 0;min-height:30px}.inventory-count-more>.btn{margin-top:5px;white-space:normal}.inventory-count-table-depot th:first-child{width:48%}.inventory-count-table-depot th:nth-child(2){width:25%}.inventory-count-table-depot th:last-child{width:27%}
@media(max-width:700px){
 .inventory-count-table,.inventory-count-table tbody{display:block;width:100%;min-width:0!important}.inventory-count-table thead{display:none}.inventory-count-table tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px 12px;border:1px solid #d9e5dc;background:#fff;border-radius:10px;padding:13px;margin:10px 0;width:100%;box-sizing:border-box}.inventory-count-table tbody>tr>td{display:block;min-width:0;width:auto!important;padding:0;border:0;font-size:14px;overflow-wrap:anywhere}.inventory-count-table .inventory-count-product{grid-column:1/-1}.inventory-count-table .inventory-count-name{font-size:15px;line-height:1.4}.inventory-count-table .inventory-count-code{font-size:12px;margin-top:5px}.inventory-count-table .inventory-count-code b{font-size:15px}.inventory-count-table td[data-label]::before{content:attr(data-label);display:block;color:#65786c;font-size:11px;line-height:1.4;margin-bottom:3px;font-weight:400}.inventory-count-table .inventory-count-price{white-space:normal;line-height:36px}.inventory-count-table .inventory-count-actions{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:flex-end;gap:14px;border-top:1px solid #edf1ed;padding-top:10px}.inventory-count-actions>.btn{margin:0;min-height:40px;white-space:nowrap;font-size:13px;padding:8px 14px}.inventory-count-more{margin-left:auto;order:-1;min-width:0}.inventory-count-more summary{font-size:12px;min-height:40px;padding:10px 0}.inventory-count-more>.btn{font-size:12px;min-height:38px}.inventory-count-quantity summary{min-height:36px;gap:4px 7px}.inventory-count-quantity summary strong{font-size:15px}.inventory-count-quantity summary span{font-size:12px}.inventory-count-quantity form{max-width:none}.inventory-count-quantity form button{min-height:40px;padding:8px 10px}.inventory-count-table-depot .inventory-count-expected{line-height:36px}.inventory-count-table .inventory-count-total{font-size:15px}.inventory-count-list{width:100%;max-width:100%;overflow:visible!important}
}
@media(max-width:700px){.inventory-count-actions>.btn{font-size:14px;min-height:44px}.inventory-count-quantity summary{min-height:44px}.inventory-count-more summary{min-height:44px}.inventory-count-table tbody>tr{row-gap:8px;padding:12px}.inventory-count-table .inventory-count-actions{padding-top:8px}}
/* Leave the last inventory controls reachable above both fixed mobile bars. */
#inventory-manual-entry [hidden]{display:none!important}
.inventory-camera-mode-choice{display:flex;gap:7px;margin:0 0 6px}.inventory-camera-mode-choice>button{flex:1;min-width:0;min-height:42px;padding:6px 8px;border:1px solid #cddcd2;background:#fff;color:#275c45;border-radius:8px;font-size:13px;line-height:1.2}.inventory-camera-mode-choice>button[aria-pressed=true]{background:#e2f0e8;border-color:#3f8768;box-shadow:inset 0 0 0 1px #3f8768}.inventory-camera-mode-choice small{display:block;font-size:10px;margin-top:2px}.inventory-camera-price-origin{flex-basis:100%;font-size:11px;line-height:1.3;color:#536b5b}
@media(max-width:700px){.content:has(.inventory-working-panel){padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}.has-simple-main .content:has(.inventory-working-panel){padding-bottom:calc(190px + env(safe-area-inset-bottom))!important}.inventory-other-lists>summary{scroll-margin-bottom:calc(190px + env(safe-area-inset-bottom))}}
.inventory-count-table td{font-size:14px}.inventory-count-actions>.btn{font-size:14px;min-height:44px}
@media(max-width:700px){.inventory-count-table tbody>tr{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}}
@media(max-width:700px){.inventory-count-table .inventory-count-actions:empty{display:none!important}}

@media(min-width:701px){.inventory-count-table-depot:has(th:nth-child(4)) th:first-child{width:40%}.inventory-count-table-depot:has(th:nth-child(4)) th:nth-child(2){width:20%}.inventory-count-table-depot:has(th:nth-child(4)) th:nth-child(3){width:22%}.inventory-count-table-depot:has(th:nth-child(4)) th:last-child{width:18%}}
.inventory-scan-entry>.workflow-scan-buttons{gap:8px;margin-bottom:10px}.inventory-scan-entry>.workflow-scan-buttons>.btn{min-height:44px}
.inventory-review-badge{display:inline-flex;align-items:center;max-width:100%;margin-top:6px;padding:3px 7px;border-radius:6px;background:#fff0d6;color:#875015;font-size:12px;font-weight:600;line-height:1.3}
.inventory-review-summary,.inventory-review-editor{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:12px 0;padding:10px 12px;background:#fff7e8;border:1px solid #ecd5af;border-radius:10px;color:#79501e}
.inventory-review-summary>span,.inventory-review-editor>span{display:grid;gap:3px;flex:1 1 180px;min-width:0}.inventory-review-summary strong,.inventory-review-editor strong{font-size:14px}.inventory-review-summary small,.inventory-review-editor small{font-size:12px;line-height:1.4}.inventory-review-summary .btn,.inventory-review-editor .btn{min-height:44px;white-space:normal}
.inventory-review-approval{font-size:12px;line-height:1.4;color:#875015}

.inventory-admin-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:14px 0}.inventory-admin-totals>span{padding:12px;background:#edf5ef;border-radius:10px;min-width:0}.inventory-admin-totals small{display:block;color:#536e60}.inventory-admin-totals strong{display:block;font-size:20px;overflow-wrap:anywhere}.inventory-review-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.inventory-review-toolbar small{flex:1 1 100%;color:#526b5d}.inventory-review-select{display:flex!important;align-items:center;gap:7px;min-height:44px;font-size:13px!important}.inventory-review-select input{width:20px!important;height:20px!important;flex:none}.inventory-count-actions .btn{margin:3px;white-space:normal}

.inventory-product-search{display:grid;gap:6px;max-width:460px;margin:14px 0}
.inventory-product-search label{font-weight:650}
.inventory-product-search input{width:100%;min-width:0;min-height:44px;box-sizing:border-box;font-size:16px}
.inventory-product-search small{color:#50665a}
.inventory-product-search small:empty,.inventory-count-table tbody>tr[hidden]{display:none!important}
.depot-count-filters{margin:12px 0;flex-wrap:wrap}
.depot-count-filters .btn{min-height:44px}
.depot-count-result{display:block;margin-top:5px;overflow-wrap:anywhere}
.inventory-manual-pad .depot-count-step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.inventory-manual-pad .depot-count-step button{min-width:0;padding-inline:0;min-height:44px}
