@media screen{
 html[data-app-scale]{zoom:var(--app-effective-scale,.9);--app-viewport-height:calc(100dvh / var(--app-effective-scale,.9))}
 html[data-app-scale] body{min-height:var(--app-viewport-height)}
 html[data-app-scale] body:is(.preorder-page,.picking-page,.scan-page,.procurement-report-page,.materials-database-page,.packing-page,.shipping-page,.sorting-project-page){height:var(--app-viewport-height)!important;min-height:0}
 html[data-app-scale] body:is(.preorder-page,.procurement-report-page):not(.preorder-fullscreen):has(#preorder-assemblies:not([hidden]),#assembly-procurement:not([hidden])),html[data-app-scale] body.assembly-summary-page{height:auto!important;min-height:var(--app-viewport-height)}
 html[data-app-scale] body.preorder-fullscreen{height:var(--app-viewport-height)!important;min-height:0!important}
 html[data-app-scale] .materials-focus .preorder-wrap,html[data-app-scale] .materials-focus .request-table{height:var(--app-viewport-height)}
 html[data-app-scale] .portal-reference-dock{height:var(--app-viewport-height)}
 html[data-app-scale] dialog[data-original-scan]{height:calc(var(--app-viewport-height) - 24px)!important}
 html[data-app-scale] .assembly-page .table-scroll{max-height:calc(var(--app-viewport-height) - 285px)}
}
.app-scale-control{display:inline-flex;align-items:center;gap:5px;margin:0;font:600 12px/1.3 system-ui;color:#43515d;white-space:nowrap;flex:none}
.app-scale-control select{width:auto!important;min-width:64px!important;min-height:30px!important;padding:4px 6px!important;margin:0!important;font:inherit!important;border:1px solid #cbd3da;border-radius:5px;background:#fff;color:#263440}
.app-scale-control.app-scale-floating{position:fixed;right:12px;top:8px;z-index:1000;padding:5px 7px;background:#f1f4f6;border-radius:6px}
.scan-phone-head .app-scale-control,.ship-dialog-heading .app-scale-control{color:#fff}
body.preorder-fullscreen>.account-bar{display:flex!important;padding:2px 8px!important;min-height:0!important;justify-content:flex-end}
body.preorder-fullscreen>.account-bar>:not(.app-scale-control){display:none!important}
@media print{html[data-app-scale]{zoom:1;--app-effective-scale:1}.app-scale-control{display:none!important}}

.mobile-idle-lock{box-sizing:border-box;position:fixed;inset:0;margin:0!important;width:calc(100vw / var(--app-effective-scale,1))!important;height:var(--app-viewport-height,100dvh)!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;padding:24px!important;background:#edf1f4!important;color:#263440!important;overflow:hidden!important;touch-action:none}
.mobile-idle-lock[open]{display:grid!important;place-items:center}
.mobile-idle-lock::backdrop{background:#edf1f4!important}
.mobile-lock-card{width:min(420px,100%);text-align:center;font-family:system-ui}
.mobile-lock-card>img{width:150px;height:auto;margin-bottom:30px}.mobile-lock-card h2{font-size:28px;margin:0 0 12px}.mobile-lock-card p{font-size:15px;margin:0 0 30px}.mobile-lock-card small{display:block;margin-top:22px;font-size:12px;color:#667582}
.mobile-unlock-track{position:relative;display:flex;align-items:center;justify-content:center;min-height:82px;padding:16px 22px;border:2px solid #d69936;border-radius:16px;background:#fff4df;touch-action:none;user-select:none;overflow:hidden;cursor:grab}
.mobile-unlock-track strong{font-size:17px;pointer-events:none}.mobile-unlock-arrow{position:absolute;right:16px;font-size:29px;color:#86520b;transform:translateX(var(--swipe-left,0px));pointer-events:none}.mobile-unlock-track:focus-visible{outline:3px solid #966015;outline-offset:5px}
@media print{.mobile-idle-lock{display:none!important}}

html[data-scan-display="true"] .app-scale-control{display:none!important}

/* Quantity emphasis is shared by desktop forms, embedded scans and QR scans. */
@media screen{
 .quantity-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:14px 0 22px;color:#292b2e;overflow-wrap:anywhere}
 .quantity-metric{min-width:0;padding:12px 10px;border:1px solid #c3b69e;border-top:4px solid #bd7814;border-radius:9px;background:#fff8e9}
 .quantity-metric>span{display:block;font-size:14px;font-weight:750;line-height:1.35;color:#4c3c24}
 .quantity-metric>strong{display:block;margin-top:6px;font-size:30px;font-weight:850;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .quantity-metric:last-child{background:#ffefc5;border-color:#b77a1f}
 body input:is([inputmode="decimal"],[id*="qty"],[id*="quantity"],[name*="quantity"]):not([type="checkbox"]):not([type="radio"]),body form input[type="number"],body .kit-scan-label input[inputmode="numeric"],body .finished-skid-quantity-row input,body .inbound-skid-form input{box-sizing:border-box;max-width:100%;min-width:0;min-height:56px;padding:12px!important;border:2px solid #9b6a22!important;border-radius:8px;background:#fff8e9!important;color:#232a30!important;font-size:26px!important;font-weight:800!important;line-height:1.2!important;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px #f5e5c9}
 body input:is([inputmode="decimal"],[id*="qty"],[id*="quantity"],[name*="quantity"]):focus-visible{outline:3px solid #b36c07;outline-offset:3px}
 body label:has(>input[inputmode="decimal"]),body label[for*="qty"],body label[for*="quantity"]{font-size:17px!important;font-weight:800!important;color:#302b22}
 .quantity-readout,.receive-summary,.inventory-check-total,.kit-fixed-quantity,.packing-group-review-total{padding:12px 14px!important;border:1px solid #b28a4c;border-left:5px solid #b97515;border-radius:8px;background:#fff4da!important;color:#302b22!important;font-size:20px!important;line-height:1.5!important;font-weight:800!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 body .scan-remaining,body .receiving-part-card .scan-remaining{display:block;width:fit-content;max-width:100%;box-sizing:border-box;margin-top:9px;padding:8px 12px;border:1px solid #ad7c2c;border-radius:7px;background:#fff0c9;color:#503407;font-size:23px;font-weight:850;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 body .scan-complete{opacity:1}
 body .scan-complete .scan-remaining{background:#e0f2e5;border-color:#538562;color:#174b29}
 body .scan-over .scan-remaining{background:#e4eef8;border-color:#6289aa;color:#173f61}
 body .scan-location>b,body #session-form .scan-location>b{font-size:19px;color:#302b22;font-weight:800;line-height:1.4}
 body .pick-totals strong{font-size:30px;color:#262c31}body .pick-totals span{font-size:15px;font-weight:750;color:#43505a}
 body .kit-scan-summary{padding-right:14px}
 body .kit-scan-remaining{position:static;max-width:none;text-align:left;margin-top:12px;padding:12px;border:1px solid #b28a4c;border-radius:8px;background:#fff1ce;color:#302b22}
 body .kit-scan-remaining strong{font-size:32px}body .kit-scan-remaining span{font-size:16px;font-weight:750;color:#4c3c24}
 body .kit-scan-summary>div:not(.kit-scan-remaining){font-size:18px;font-weight:750;color:#273640;line-height:1.5}
 body .kit-child-quantity,body .kit-task-qty,body .kit-on-skid-quantity,body .sorting-picked-quantity{font-size:21px!important;font-weight:800!important;color:#29333b;font-variant-numeric:tabular-nums}
 body .ship-item-qty,body .ship-skid-content>b,body .finished-skid-ready-count{font-size:23px!important;font-weight:850!important;line-height:1.4;color:#302b22;background:#fff1ce;padding:8px 12px;border:1px solid #b28a4c;border-radius:7px;overflow-wrap:anywhere;white-space:normal}
 body .ship-item-heading{flex-wrap:wrap}
 body .inventory-check-card table td:not(:first-child){font-size:19px;font-weight:750;font-variant-numeric:tabular-nums}
 body .on-order-quantity,body .inventory-quantity-value,body .project-request-value,body .projected-quantity{font-size:18px!important;font-weight:800!important;font-variant-numeric:tabular-nums}
}

@media screen{
 body .scan-summary,body .packing-group-summary{font-size:17px;font-weight:750;line-height:1.5;color:#34414b;overflow-wrap:anywhere}
 body .ship-item-location small,body .sorting-cart-dialog dl dd:last-of-type{font-size:19px;font-weight:800;color:#302b22;line-height:1.5}
}

@media screen{body .scan-recorded-quantity{font-size:23px;font-weight:850;color:#302b22;line-height:1.4}}
