.warehouse-bottom{display:none}.warehouse-welcome h1{margin:8px 0}.receive-hero{display:grid;grid-template-columns:48px 1fr;gap:4px 18px;text-align:left;background:#164b40;color:white;padding:26px;border:0;border-radius:22px;width:100%;margin:22px 0}.receive-hero svg{width:42px;grid-row:span 2}.receive-hero strong{font-size:24px}.receive-hero span{color:#c9e5db}.warehouse-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.warehouse-shortcuts button{display:grid;text-align:left;padding:20px;border-radius:18px;background:white;gap:6px}.warehouse-shortcuts svg{width:24px}.warehouse-shortcuts strong{font-size:30px}.warehouse-shortcuts span{font-size:13px;color:#526760}.shipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}.shipment-card{padding:22px;margin:12px 0;border:1px solid #dce7e1;background:white;border-radius:18px}.shipment-card-top,.vehicle-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.vehicle-line{padding:14px 0}.vehicle-line svg{width:24px}.shipment-card h3{margin:16px 0 6px}.shipment-card p{color:#60716c}.shipment-card>button{width:100%}.app-setup{background:#e6eee9;border-radius:16px;padding:22px;margin:22px 0}.app-setup button{margin:6px 8px 6px 0}.notification-list{display:grid;gap:10px}.notification{text-align:left;display:block;background:white;border:1px solid #e2e8e4;border-radius:16px;padding:20px;width:100%}.notification.unread{border-left:5px solid #238468}.notification span{font-weight:700}.notification p{margin:6px 0}.loading-line{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #e1e9e5}.loading-line small{display:block;margin-top:8px;color:#65796d}.loading-line label{width:105px;flex-shrink:0}.loading-line input{font-size:22px}.load-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.load-photos figure{margin:0;min-width:0}.load-photos img{width:100%;height:135px;object-fit:cover;border-radius:12px}.capture-actions{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.camera-button,.gallery-button{position:relative;display:flex;gap:8px;align-items:center;padding:15px 18px;border-radius:14px;background:#1c6653;color:white;font-weight:600;cursor:pointer;overflow:hidden}.gallery-button{background:#edf2ee;color:#204e40}.camera-button input,.gallery-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.camera-button svg{width:22px}.mobile-section{margin-top:24px}.wizard-step[hidden]{display:none!important}.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:24px}.wizard-progress button{font-size:12px;border:0;border-radius:0;padding:12px 4px;border-bottom:3px solid #dbe5df;color:#647970;background:none}.wizard-progress button.active{border-color:#20765d;color:#174a3b;font-weight:700}.wizard-summary{padding:18px;background:#173f35;color:white;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.wizard-summary strong{font-size:25px}.wizard-summary small{display:block;color:#cee0d8}.wizard-nav{display:flex;gap:10px;margin-top:16px}.wizard-nav button{flex:1;min-height:48px}.photo-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.photo-slot{min-width:0;background:#eef4ef;border:1px dashed #b8cbbf;border-radius:16px;padding:10px;text-align:center}.photo-slot img{width:100%;height:145px;object-fit:cover;border-radius:10px}.photo-slot .camera-button{justify-content:center;padding:15px 8px;font-size:12px}.photo-slot .camera-button svg{width:18px}.photo-slot small{display:block;margin:8px 0}.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.type-tile{padding:16px 8px;background:#f3f6f3;border:1px solid #d9e3db;border-radius:14px;font-weight:650;font-size:13px}.type-tile.active{border:2px solid #267359;background:#e7f3eb;color:#1f5c44}.grade-row{display:flex;gap:6px;flex-wrap:wrap}.grade-row button{flex:1;padding:12px 5px;background:#f1f3f0;border:1px solid #dde5df}.grade-row button.active{background:#1c5f4d;color:white}.quantity-control{display:flex;align-items:center;gap:12px;margin:18px 0}.quantity-control input{font-size:32px;font-weight:700;text-align:center;min-width:0}.quantity-control button{min-width:52px;height:54px;font-size:24px}.quick-quantities{display:flex;gap:7px}.quick-quantities button{flex:1}.calc-line{padding:16px;background:#f3f6f3;border-radius:14px;margin:10px 0}.calc-line .actions{justify-content:space-between}.calc-line p{margin:8px 0;color:#526c5e}.calc-totals{display:grid;gap:8px;margin-top:18px}.calc-totals div{display:flex;justify-content:space-between;gap:10px}.calc-totals .grand{padding-top:12px;border-top:1px solid #dce6df;font-size:21px;font-weight:700}.wizard-warning{font-size:13px;color:#896200}.intake-wizard .intake-line{display:none}.intake-wizard .modal-foot{position:sticky;bottom:0}.review-client{padding:18px;border:1px solid #dce5df;border-radius:14px;margin:16px 0}.review-client p{margin:8px 0}.wizard-step h3{font-size:21px}.warehouse-connection{position:fixed;left:0;right:0;top:0;padding:10px;background:#89501f;color:white;z-index:2000;text-align:center}
@media(max-width:720px){.warehouse-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe6de;z-index:40;box-shadow:0 -3px 18px #163e3010}.warehouse-bottom button{display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;border:0;background:none;font-size:11px;color:#66796e;padding:7px 2px;border-radius:12px}.warehouse-bottom button.active{background:#e9f3ec;color:#176043;font-weight:700}.warehouse-bottom svg{width:22px;height:22px}.shell:has(.warehouse-bottom) .content{padding-bottom:105px}.content{padding:20px 16px}.warehouse-welcome h1{font-size:30px}.topbar .breadcrumb{display:none}.user-block{max-width:100%;gap:8px}.user-block .avatar{display:none}.user-block>div{font-size:13px}.user-block small{font-size:11px}.user-block button{font-size:11px;padding:9px 7px}.topbar{padding:12px;gap:8px}.shipment-card{padding:18px}.wizard-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto}.wizard-dialog .modal-head{padding:15px}.wizard-dialog .modal-body{padding:16px}.wizard-dialog .modal-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:white;border-top:1px solid #dce5df}.wizard-dialog .modal-head h2{font-size:18px}.photo-slot img{height:105px}.photo-slot{padding:7px}.photo-slot .camera-button{padding:14px 4px}.photo-slot .camera-button svg{display:none}.type-grid{grid-template-columns:repeat(2,1fr)}.wizard-progress{margin-bottom:16px}.wizard-summary{padding:15px}.app-setup{padding:18px}.load-photos img{height:95px}.loading-line{gap:10px}.loading-line strong{font-size:14px}.intake-wizard .modal-foot button{min-height:48px}.wizard-dialog input,.wizard-dialog select{font-size:16px}.wizard-dialog .quantity-control input{font-size:32px}}

.wizard-dialog[open]{display:flex;flex-direction:column;height:min(920px,94dvh);max-height:94dvh}.wizard-dialog .modal-head{flex-shrink:0}.wizard-dialog #modal-form{display:flex;flex-direction:column;flex:1;min-height:0}.wizard-dialog .modal-body{overflow:auto;flex:1;min-height:0}.wizard-dialog .modal-foot{display:block;flex-shrink:0;position:relative;background:white}.wizard-dialog .wizard-summary{margin:0;padding:0;background:none;color:#174b3b;border-radius:0}.wizard-dialog .wizard-summary small{color:#64756c}.wizard-dialog .wizard-summary strong{font-size:24px}.wizard-dialog .wizard-nav{margin-top:12px}.wizard-dialog .modal-foot .error:empty{display:none}.wizard-dialog .modal-foot .error{margin-top:8px;max-height:65px;overflow:auto}
@media(max-width:720px){.wizard-dialog[open]{height:100dvh;max-height:100dvh}.wizard-dialog .modal-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.wizard-dialog .modal-head{position:relative}}

/* Source-message intake workspace */
.receipt-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;background:white;padding:16px;border-radius:16px;margin-bottom:18px}
.receipt-cards,.draft-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px}
.receipt-card,.draft-card{min-width:0;background:#fff;border:1px solid #dce5df;border-radius:16px;padding:16px}
.receipt-card header,.draft-card header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.receipt-snippet{white-space:pre-wrap;overflow-wrap:anywhere;max-height:7em;overflow:auto}
.source-thumbnails{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.source-thumbnails button,.photo-slot>button{padding:0;border:0;background:transparent;overflow:hidden;border-radius:8px}
.source-thumbnails img{width:88px;height:94px;object-fit:cover;display:block}
.source-thumbnails.large img{width:130px;height:160px}.draft-thumbnail{width:90px;height:90px;object-fit:cover}
.source-evidence{margin:8px 0 18px;padding:12px;background:#f1f6f3;border-radius:12px}
.source-evidence summary{font-weight:650;cursor:pointer}.source-message{white-space:pre-wrap;overflow-wrap:anywhere}
.source-neighbor{display:flex;gap:10px;padding:10px 0;align-items:flex-start}
.photo-viewer{width:95vw;max-width:1200px;height:94dvh;max-height:94dvh;padding:0;background:#14241e;color:white;border:0;border-radius:14px;overflow:hidden}
.photo-viewer::backdrop{background:#000c}.viewer-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#20392e;position:relative;z-index:2}
.viewer-toolbar button{min-height:42px;padding:8px 12px;color:white;background:#345343;border:1px solid #7b9685}
.viewer-canvas{height:calc(100% - 110px);overflow:auto;display:grid;place-items:center;padding:18px;touch-action:pan-x pan-y}
.viewer-canvas img{max-width:95%;max-height:90%;object-fit:contain;transform-origin:center;transition:transform .15s}
.intake-wizard .calc-line strong{display:block;white-space:normal;overflow-wrap:anywhere}
.photo-slot>button img{width:100%;height:130px;object-fit:cover}.upload-states{padding:10px;background:#f1f6f3;border-radius:10px}
.upload-states li{overflow-wrap:anywhere;margin:6px 0}
@media(max-width:600px){.receipt-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.receipt-filters .actions,.receipt-filters .form-field:has([name=source_query]){grid-column:1/-1}.line-labels{display:none}.line-editor{display:grid;grid-template-columns:1fr 1fr 44px;gap:8px}.line-editor select[name=product_id]{grid-column:1/-1;width:100%;white-space:normal}.line-editor input{min-width:0}.source-thumbnails.large img{width:110px;height:140px}.viewer-toolbar button{font-size:13px;padding:7px}.draft-cards{padding:10px}.receipt-card,.draft-card{padding:12px}}

.receipt-filters .form-field{min-width:0}.receipt-filters input,.receipt-filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.photo-slot small{overflow-wrap:anywhere;font-size:11px}

/* Receiver workspace: a page, independent of shared modal lifecycles. */
.receiving-app[hidden]{display:none!important}body.receiving-open{overflow:hidden}
.receiving-app{position:fixed;inset:0;z-index:100;background:#f3f6f4;display:flex;flex-direction:column;height:100vh;height:100dvh;color:#163c32;isolation:isolate}
.receiving-header{display:flex;align-items:center;gap:14px;padding:14px max(16px,env(safe-area-inset-left));padding-top:max(14px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #e0e8e2;flex-shrink:0}
.receiving-header>div{display:grid;gap:4px;flex:1}.receiving-header small{font-size:10px;letter-spacing:1.4px;color:#789086}.receiving-header strong{font-size:21px}.receiving-back{width:46px;height:46px;border-radius:15px;background:#f0f5f1;font-size:25px;padding:0}.receiving-version{font-size:11px;color:#789086}
.receiving-app form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.receiving-app .modal-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px max(16px,env(safe-area-inset-left));scroll-padding-bottom:18px}
.receiving-app .modal-body>.intake-wizard{max-width:700px;margin:auto}
.receiving-app .modal-foot{position:relative;flex-shrink:0;display:block;background:#fff;padding:12px max(16px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-bottom));box-shadow:0 -5px 24px #163c3209;border-top:1px solid #dce7df}
.receiving-app .modal-foot>*{max-width:700px;margin-left:auto;margin-right:auto}
.receiving-app .wizard-progress{margin:0 0 22px;gap:4px}.receiving-app .wizard-progress button{min-height:44px;border:0;border-bottom:3px solid #d8e4dc;background:transparent;padding:8px 2px;font-size:12px}.receiving-app .wizard-progress .active{border-bottom-color:#1c755b;color:#15553f}
.receiving-app button,.receiving-app input,.receiving-app select{touch-action:manipulation}
.receiving-app button{min-height:48px;border-radius:12px;font-size:15px}.receiving-app button.small{min-height:40px;font-size:13px}
.receiving-app input,.receiving-app select{font-size:16px;min-height:50px;border-radius:12px;max-width:100%;min-width:0}
.receiving-app input[type=checkbox]{min-height:24px;width:24px;flex-shrink:0}
.step-heading span{font-size:10px;letter-spacing:1.5px;color:#769087;font-weight:700}.step-heading h1{font-size:28px;line-height:1.12;margin:8px 0 12px}.step-heading p{font-size:15px;line-height:1.45;color:#63796d;margin:0 0 22px}
.photo-capture{display:grid;gap:12px;margin:20px 0}
.receiving-app .camera-button,.receiving-app .gallery-button{display:flex;justify-content:center;align-items:center;width:100%;min-height:64px;font-size:17px;border-radius:18px;position:relative;text-align:center;padding:18px;background:#155f49;color:white;gap:12px}
.receiving-app .camera-button{min-height:96px}.receiving-app .camera-button svg{display:block;width:32px;height:32px}
.receiving-app .gallery-button{background:#fff;color:#23513f;border:1px solid #d9e4dc}
.receiving-app .camera-button input,.receiving-app .gallery-button input{position:absolute;inset:0;height:100%;width:100%;max-width:none;opacity:0;padding:0;margin:0;border:0;font-size:16px;cursor:pointer}
.receiving-app .camera-button:focus-within,.receiving-app .gallery-button:focus-within{outline:3px solid #8bbca6;outline-offset:3px}
.receiving-app .photo-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.receiving-app .photo-slot{border:1px solid #d9e5db;background:#fff;border-radius:15px;padding:6px;display:flex;flex-direction:column;gap:5px}
.receiving-app .photo-slot>button:first-child{padding:0;min-height:0;width:100%;border-radius:10px;line-height:0}.receiving-app .photo-slot img{height:112px;display:block}
.photo-saved{font-size:10px;color:#267759}.photo-count{font-size:13px;color:#617b6d}.capture-tip{font-size:13px;line-height:1.5;color:#74867c;padding:12px 4px}
.receiving-app .wizard-summary{background:none;color:#163c32;margin:0;padding:0;border-radius:0;align-items:flex-end}.receiving-app .wizard-summary small{color:#738578;font-size:12px}.receiving-app .wizard-summary strong{font-size:28px;line-height:1.2}
.receiving-app .wizard-nav{margin:12px auto 0;gap:10px}.receiving-app .wizard-nav button{min-height:54px;font-size:16px;font-weight:650}.receiving-app .wizard-nav button.primary{flex:2}
.receiving-app #receive-error:not([hidden]){margin-top:10px;background:#fff0eb;color:#873924;border:1px solid #f1cbbb;padding:10px 12px;font-size:14px;line-height:1.35;border-radius:12px;max-height:110px;overflow:auto}
.receiving-app #receive-save{font-size:12px;line-height:1.4;color:#688271;margin:14px 0 2px}
.receiving-app .type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.receiving-app .type-tile{min-height:62px;font-size:14px;line-height:1.25;background:white;border-radius:14px}.receiving-app .type-tile.active{border-color:#1b7659;background:#e6f2eb}
.receiving-app .grade-row{gap:7px}.receiving-app .grade-row button{min-width:58px;min-height:47px;font-size:13px}
.receiving-app .quantity-control{margin:20px 0 12px}.receiving-app .quantity-control button{height:60px;width:60px;font-size:29px}.receiving-app .quantity-control input{height:68px;font-size:36px;background:#fff}
.receiving-app .quick-quantities{gap:6px}.receiving-app .quick-quantities button{min-height:45px;font-size:14px}
.receiving-app [data-action=recv-add]{width:100%;min-height:56px;font-size:16px;margin:16px 0 6px}
.receiving-app details{background:#fff;border:1px solid #dde7df;border-radius:14px;padding:14px;margin:14px 0}.receiving-app summary{font-size:14px;font-weight:600;cursor:pointer;min-height:24px}
.receiving-app details[open] summary{margin-bottom:16px}.receiving-app .form-field{margin-bottom:15px}.receiving-app .form-field label{font-size:13px;margin-bottom:7px}
.receiving-app .calc-line{background:white;border:1px solid #dfe8e1;border-radius:15px}.receiving-app .calc-line strong{font-size:16px}.receiving-app .calc-line p{font-size:14px;line-height:1.5}
.receiving-app .review-client{background:white;margin:16px 0;border-radius:16px}.receiving-app .review-client small{overflow-wrap:anywhere}
.receiving-app .upload-states{padding:0;background:transparent;margin:12px 0}.upload-item{padding:13px 15px;background:white;border:1px solid #dce7df;border-radius:14px;display:grid;gap:7px;margin:10px 0}.upload-item strong{font-size:12px;overflow-wrap:anywhere}.upload-item span{font-size:13px;line-height:1.4}.upload-item.error{border-color:#eabda8;background:#fff6f1;color:#8d402b}.upload-item.done{color:#286f50}.upload-item progress{width:100%;height:7px;accent-color:#24694e}.upload-item .actions{gap:7px;display:flex;flex-wrap:wrap}
.receiving-app .intake-confirm{display:flex;gap:12px;align-items:center;font-size:15px;line-height:1.4}
.receiving-app .load-photos{gap:10px}.receiving-app .load-photos img{border-radius:12px}
.warehouse-choices{display:grid;gap:12px}.warehouse-choice{min-height:76px;font-size:20px;text-align:left;padding:20px;border-radius:15px;background:#eef5ef;border:1px solid #cbded1}
.resume-intake{background:#fff;border:1px solid #d8e5da;padding:17px;border-radius:17px;margin:16px 0;display:grid;gap:7px}.resume-intake strong{font-size:17px}.resume-intake p{margin:0;color:#6b8172;font-size:13px}.resume-intake button{min-height:46px}
@media(min-width:800px){.receiving-app .modal-body{padding:28px}.receiving-header{padding-left:calc((100% - 700px)/2);padding-right:calc((100% - 700px)/2)}.receiving-app .photo-slot img{height:180px}}

.receiving-app [hidden]{display:none!important}#receive-transfer{font-size:13px;color:#2a7356;padding:6px 0}body.receiving-open #toast{z-index:110}

.receiving-app button,.receiving-app label{-webkit-tap-highlight-color:transparent}.receiving-app .add-more-pallets{width:100%;min-height:58px;border:1px dashed #92b7a2;background:#eaf3ed;color:#245c43;font-size:16px;margin:12px 0}.receiving-app button:active{filter:brightness(.94)}

/* Direct camera capture is independent of the Android file chooser. */
.receiver-camera{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:#10291f;color:#fff;overflow:hidden}
.receiver-camera[open]{display:flex;flex-direction:column}.receiver-camera::backdrop{background:#10291f}
.receiver-camera [hidden]{display:none!important}.receiver-camera header{display:flex;justify-content:space-between;align-items:center;padding:max(12px,env(safe-area-inset-top)) 16px 12px;flex-shrink:0}
.receiver-camera header strong{font-size:18px}.receiver-camera button{min-height:50px;font-size:16px;border-radius:12px;touch-action:manipulation}
.receiver-camera .camera-close{color:white;background:#28473a;border:1px solid #5b7769}
.camera-stage{flex:1;min-height:100px;background:#07150e;display:flex;align-items:center;justify-content:center;overflow:hidden}
.camera-stage video,.camera-stage img{display:block;width:100%;height:100%;object-fit:contain}
.camera-controls{flex-shrink:0;padding:14px 16px max(18px,env(safe-area-inset-bottom));background:#fff;color:#163c32;max-height:58dvh;overflow:auto}
.camera-status{font-size:14px;line-height:1.4;margin:0 0 12px}.camera-problem{background:#fff0e9;color:#88391e;padding:12px;border-radius:10px}
.camera-live-actions button{width:100%;min-height:62px}.camera-review-actions{display:flex;gap:10px}.camera-review-actions button{flex:1}
.camera-fallback details{margin-top:16px;border-top:1px solid #d6e3db;padding-top:12px}.camera-fallback summary{min-height:36px;font-weight:600}
.camera-fallback label{display:block;position:relative;border:1px solid #bfd3c6;padding:14px;border-radius:12px;margin:10px 0;text-align:center;background:#f0f6f2}
.camera-fallback input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px}.camera-fallback p,.camera-fallback small{font-size:13px;line-height:1.45}
.camera-fallback a{color:#146645;text-decoration:underline}.native-camera-choice{font-size:14px;color:#416653;margin:8px 0 0}

.receiver-camera.camera-unavailable .camera-stage{display:none}.receiver-camera.camera-unavailable .camera-controls{flex:1;max-height:none}

/* Stable inline counters: input elements stay mounted while typing and saving. */
#live-calculator .counter-list{display:grid;gap:14px}
.counter-row{background:#fff;border:1px solid #d7e5dc;border-radius:20px;padding:16px;box-shadow:0 3px 10px #163c3205}
.counter-row-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.counter-row-head>div{display:grid;gap:5px;min-width:0}.counter-row-head strong{font-size:25px;letter-spacing:-.4px}.counter-row-head span{font-size:12px;line-height:1.4;color:#6a8074}.receiving-app .counter-remove{min-height:40px;width:40px;padding:0;background:#f5f7f5;color:#6a8074;font-size:22px}
.counter-price{font-size:15px;color:#33795d;margin:10px 0 13px}
.counter-input{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px}.counter-input label{position:relative;display:block}.counter-input label>span{position:absolute;top:8px;left:12px;font-size:10px;color:#698272;pointer-events:none}
.receiving-app .counter-input input{width:100%;height:78px;padding:24px 10px 7px;border:2px solid #adcbb8;border-radius:15px;text-align:center;font-size:30px;font-weight:700;background:#f7fbf8;line-height:1.2}
.receiving-app .counter-input input:focus{outline:3px solid #cbe8d8;border-color:#217956}
.receiving-app .counter-input button{height:58px;font-size:27px;background:#edf5ef;border-color:#d7e7dc}
.counter-line-total{font-size:16px;font-weight:650;color:#1d5940;margin:14px 0 3px}.counter-error{font-size:12px;color:#a5472c;margin:5px 0}
.receiving-app .counter-row details{border:0;border-top:1px solid #e4ece6;background:none;border-radius:0;margin:12px 0 0;padding:12px 0 0}
.calc-field{display:grid;gap:7px;margin:12px 0;font-size:13px}.calc-field input,.calc-field select{width:100%}.calc-checkbox{display:flex;align-items:center;gap:8px;font-size:13px}
.receiving-app #pallet-picker{border:1px dashed #82ad94;background:#eaf5ed;padding:16px;border-radius:18px}.receiving-app #pallet-picker>summary{font-size:16px;min-height:28px;color:#205f42}
.sku-groups>section{margin:18px 0}.sku-groups h3{font-size:14px;margin:0 0 10px}.sku-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.receiving-app .sku-options button{background:white;font-size:12px;text-align:left;line-height:1.3;padding:12px;min-height:58px}
.native-photo-input{background:white;border:1px solid #d1e1d5;border-radius:16px;padding:15px}.native-photo-input label{display:grid;gap:13px;font-size:15px;font-weight:600}.receiving-app .native-photo-input input,.receiving-app .native-camera-option input{display:block;position:static;opacity:1;width:100%;font-size:12px;min-height:54px;padding:0;border:0;background:transparent}
input[type=file]::file-selector-button{min-height:52px;border-radius:12px;border:1px solid #9dbfaa;background:#e7f3eb;color:#195f40;padding:12px;font-size:14px;font-weight:600;margin-right:7px;cursor:pointer}
.receiving-app .native-camera-option{margin:0;background:white}.capture-help{margin:18px 0;padding:15px;background:#f3f6f4;border:1px solid #d4dfd7;border-radius:15px;color:#28513b;font-size:13px;line-height:1.45}
.capture-help.is-mi{background:#fff8e9;border-color:#e8d7ae}.capture-help p{margin:8px 0 12px}.capture-help strong{font-size:15px}
.capture-help .chrome-open{display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:12px;color:white;background:#1e6a4b;text-decoration:none;margin:10px 0;font-size:15px;font-weight:600}
.capture-help button{width:100%;background:white}.capture-help-status{font-size:12px;overflow-wrap:anywhere}
.receiver-camera .camera-fallback input{position:static;opacity:1;width:100%;height:auto;min-height:54px;padding:0;margin-top:10px}

/* Language preference is device-local; controls remain reachable at narrow phone widths. */
.language-control{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font-size:12px;color:#526661}
.language-control select{min-height:44px;max-width:155px;padding:8px 28px 8px 10px;border:1px solid #cadbd5;border-radius:12px;background:#fff;color:#153f38;font:inherit;font-size:14px}
.login-form-wrap{position:relative}.login-form-wrap>.language-control{position:absolute;top:max(18px,env(safe-area-inset-top));right:20px}
.personal-password>.language-control{float:right;margin-bottom:14px}
.receiving-header>.language-control{margin-left:auto}.receiving-header .receiving-version{display:none}
@media(max-width:720px){.topbar{flex-wrap:wrap;gap:10px}.topbar>.language-control{margin-left:auto}.topbar>.user-block{width:100%;justify-content:flex-end}.language-control>span{display:none}.receiving-header{gap:10px}.receiving-header>div{min-width:0}.receiving-header strong{font-size:20px}.receiving-header .language-control select{max-width:128px;font-size:13px}.login-form-wrap{padding-top:84px}}

.mobile-brand,.login-mobile-brand{display:none}
@media(max-width:720px){.mobile-brand{display:block;font-size:15px;font-weight:750;color:#153f38}.login-mobile-brand{display:block;font-size:22px;font-weight:750;color:#153f38;margin-bottom:24px}}

/* Receiver workspace: only the assigned warehouse, with thumb-sized actions. */
.receiver-shell{max-width:780px;margin:auto;min-height:100dvh;background:#f3f6f4;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.receiver-top{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#fff;border-bottom:1px solid #dbe6e1}
.receiver-top>div:first-child{display:grid;gap:2px}.receiver-top small{font-size:12px;color:#5c746a}.receiver-top strong{font-size:22px}
.receiver-top-actions{display:flex;align-items:center;gap:8px}.receiver-top-actions button,.receiver-top-actions summary{min-width:48px;min-height:48px;display:flex;align-items:center;justify-content:center}
.receiver-top-actions details{position:relative}.receiver-top-actions summary{list-style:none;cursor:pointer}.receiver-top-actions summary::-webkit-details-marker{display:none}
.receiver-settings{position:absolute;right:0;top:52px;width:min(290px,85vw);background:#fff;padding:18px;border:1px solid #d5e3dc;border-radius:16px;box-shadow:0 12px 32px #173b2826;display:grid;gap:12px;z-index:30}
.receiver-content{padding:20px}.receiver-content h1{font-size:27px;line-height:1.2}.receiver-content h2{font-size:21px;margin:24px 0 14px}.receiver-title p{margin:0;color:#53695e}
.receiver-content .wide{width:100%;min-height:52px}.receiver-content .page-head{align-items:center}.receiver-content .receive-hero{margin-top:20px;border-radius:22px;padding:24px;min-height:144px}
.receiver-metrics{display:grid;grid-template-columns:1fr auto;align-items:center;margin-top:20px;border:1px solid #dbe6df;border-radius:18px;background:#fff;overflow:hidden}
.receiver-metrics button{background:transparent;text-align:left;border:0;padding:20px;font-size:16px;border-radius:0}.receiver-metrics strong{padding:16px;font-size:22px}
.arrival-card{background:#fff;border:1px solid #dbe6df;border-radius:18px;padding:16px;margin-bottom:12px}.arrival-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.arrival-top>img,.arrival-empty{width:72px;height:88px;object-fit:cover;border-radius:10px;flex-shrink:0}.arrival-empty{display:grid;place-items:center;background:#edf3ee}
.arrival-top>div{min-width:0}.arrival-card h3{font-size:18px;margin:5px 0;overflow-wrap:anywhere}.arrival-card small{display:block;color:#64786d;margin:5px 0}.arrival-stage{font-size:12px;color:#8a5c05;background:#fff2d0;border-radius:7px;padding:4px 8px}
.arrival-card>.primary{width:100%;min-height:50px}.receiver-history{margin-top:24px}.receiver-history>summary{font-size:18px;padding:16px 0}
.receiver-content .search{width:100%;min-height:52px;margin-bottom:16px;font-size:16px}.stock-overview{display:grid;margin:12px 0 24px}.stock-overview>strong{font-size:46px;letter-spacing:-1px}
.stock-mobile-row{background:white;border:1px solid #dde7e0;border-radius:14px;padding:16px;display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:10px}
.stock-mobile-row>strong{font-size:26px}.stock-mobile-row small{display:block;color:#5c7165}.stock-mobile-row>small{grid-column:1/-1}
.receiver-shell .warehouse-bottom{display:flex;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:780px;z-index:16;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #dbe6df}
.receiver-shell .warehouse-bottom button{flex:1;min-height:72px;padding:10px 4px}.receiver-shell .warehouse-bottom span{font-size:12px}
.receiver-shell .shipment-grid{display:block}.receiver-shell .shipment-card{margin-bottom:12px}.receiver-shell .shipment-card .primary{width:100%;min-height:52px}
.receiver-shell .page-head .actions{flex-wrap:wrap}.receiver-shell .page-head{flex-wrap:wrap}.receiver-shell .app-setup{margin-bottom:20px}
.park-arrival{grid-column:1/-1;width:100%;min-height:52px;border:2px solid #1c6a50;background:#e6f1eb;color:#164c39;font-weight:700}
.receiving-app .wizard-nav:has(.park-arrival){flex-wrap:wrap}.receiving-app .wizard-nav .park-arrival{flex:1 0 100%}
.receiving-app .intake-client-option{width:100%;min-height:64px;text-align:left;white-space:normal;margin:8px 0}
.calc-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.calc-type-options button{min-height:48px;padding:10px 5px}
.calc-type-options .active{background:#155b43;color:white;border-color:#155b43}.calc-grade-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.calc-grade-options button{min-height:58px;font-size:16px}
.receiver-content [hidden]{display:none!important}
@media(max-width:380px){.receiver-content{padding:14px}.receiver-top{padding:10px 14px}.receiver-top strong{font-size:20px}.receiver-top-actions{gap:2px}.receiving-header .receiving-version{display:none}}

.receiver-top-actions svg{width:24px;height:24px}

.receiving-app.thumb-mode .receiving-header{padding:7px 14px;min-height:62px}.receiving-app.thumb-mode .receiving-header strong{font-size:20px}.receiving-app.thumb-mode .receiving-version,.receiving-app.thumb-mode .wizard-progress{display:none}
.receiving-app.thumb-mode .modal-body{padding:10px 14px}.receiving-app.thumb-mode .intake-wizard,.receiving-app.thumb-mode .wizard-step{min-height:100%;display:flex;flex-direction:column}.receiving-app.thumb-mode #receive-save{font-size:10px;margin:4px 0}
.thumb-calculator{display:flex;flex-direction:column;flex:1;gap:8px;min-width:0}.thumb-batch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:start}
.receiving-app .thumb-batch details{margin:0;padding:8px 10px;min-width:0;border-radius:12px}.receiving-app .thumb-batch summary{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.receiving-app .thumb-batch details[open]{grid-column:1/-1}.receiving-app .thumb-batch details[open]>summary{margin-bottom:8px}
.thumb-batch #thumb-undo,.thumb-batch #thumb-status{grid-column:1/-1;margin:0;font-size:12px;line-height:1.3;color:#265d43}.thumb-batch #thumb-status:empty,.thumb-batch #thumb-undo:empty{display:none}
.batch-row{display:grid;grid-template-columns:1fr 44px;gap:6px;margin:6px 0}.receiving-app .batch-row button{min-height:44px;font-size:15px}.batch-edit{text-align:left}.batch-remove{font-size:22px!important}
.thumb-undo{display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:#fff0cc;border-radius:10px;gap:6px}.thumb-undo button{min-height:44px}
#thumb-composer{margin-top:auto;min-width:0;background:white;border:1px solid #d9e5dd;border-radius:18px;padding:10px;display:grid;gap:6px}
.thumb-types{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:6px;max-width:100%}.receiving-app .thumb-types button{white-space:nowrap;min-width:48px;min-height:44px;padding:8px 12px;font-weight:700;font-size:15px;flex:0 0 auto}.thumb-types .active{background:#164d3c;color:white;border-color:#164d3c}
.type-swipe{touch-action:pan-y pinch-zoom;user-select:none}.type-caption{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;text-align:center;font-size:11px;color:#526b5d}.receiving-app .type-arrow{min-height:44px;padding:0;font-size:25px;background:transparent;border-color:transparent}
.thumb-grades{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.receiving-app .thumb-grades button{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 2px;gap:3px;background:#f3f7f4;border:1px solid #dce7df}.thumb-grades strong{font-size:18px}.thumb-grades small{font-size:10px;line-height:1.1}.thumb-grades .active{background:#dcf2e5!important;border:2px solid #276e50!important;color:#194d37}
.thumb-entry{display:grid;gap:6px}.thumb-entry-title{display:flex;justify-content:space-between;align-items:center;min-height:28px;font-size:12px}.receiving-app .entry-cancel{width:44px;min-height:44px;padding:0;font-size:22px;border:0;background:transparent}
.thumb-quantity{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #adcbbb;border-radius:12px;padding:4px 12px;background:#f7faf8}.thumb-quantity>span{font-size:12px;color:#506b5b}.receiving-app .thumb-quantity input{width:140px;min-height:48px;height:48px;text-align:right;font-size:32px;font-weight:700;border:0;padding:2px;background:transparent}.receiving-app .thumb-quantity input:focus{outline:2px solid #448264;outline-offset:0}
#thumb-preview{min-height:28px;font-size:11px;color:#406752;line-height:1.25;margin:0;display:flex;align-items:center}
.thumb-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.receiving-app .thumb-keypad button{min-height:44px;height:44px;border:1px solid #dce6df;border-radius:10px;background:#f4f7f5;font-size:23px;font-weight:600;touch-action:manipulation;padding:4px}.receiving-app .thumb-keypad button:active{background:#d7eadd;transform:scale(.97)}.receiving-app .thumb-add{width:100%;min-height:50px;font-size:15px;font-weight:700}
.receiving-app.thumb-mode .modal-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,1.2fr);align-items:center;gap:8px;padding:8px 14px max(8px,env(safe-area-inset-bottom))}.receiving-app.thumb-mode .wizard-summary{display:block;min-width:0}.receiving-app.thumb-mode .wizard-summary strong{font-size:21px;white-space:nowrap;display:block}.receiving-app.thumb-mode .wizard-summary small,.receiving-app.thumb-mode #receive-count{font-size:10px}.receiving-app.thumb-mode .wizard-nav{margin:0;gap:5px;width:100%}.receiving-app.thumb-mode .wizard-nav button{min-height:48px;font-size:13px;padding:8px}.receiving-app.thumb-mode #receive-error,.receiving-app.thumb-mode #receive-transfer{grid-column:1/-1;margin:0}
@media(min-height:850px){.receiving-app .thumb-keypad button{height:52px;min-height:52px}.receiving-app .thumb-add{min-height:54px}}
@media(prefers-reduced-motion:reduce){.thumb-types{scroll-behavior:auto}.receiving-app .thumb-keypad button:active{transform:none}}

.receiving-app .thumb-quantity input{width:92px;flex:1;min-width:60px}.thumb-quantity>label{display:grid;gap:3px;font-size:12px;max-width:110px}.thumb-quantity>label small{font-size:10px;font-weight:400}.thumb-quantity .entry-cancel{flex:0 0 44px}.thumb-batch summary strong{white-space:nowrap}.receiving-app.thumb-mode #receive-save{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.receiving-app.thumb-mode .modal-body>.intake-wizard{height:100%;min-height:0}.receiving-app.thumb-mode .wizard-step{flex:1;min-height:min-content}.receiving-app.thumb-mode .thumb-calculator{min-height:min-content}

.thumb-batch summary{-webkit-user-select:none;user-select:none;touch-action:manipulation}

/* Camera: full sensor preview, portrait/landscape layout and a familiar shutter. */
.receiver-camera{background:#0e1315;color:#f6f8f7}
.receiver-camera[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}
.receiver-camera::backdrop{background:#0e1315}
.receiver-camera header{gap:12px;padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));min-height:60px}
.camera-title{display:grid;gap:2px;min-width:0}.camera-title small{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#a4bab1}.receiver-camera header strong{font-size:16px}
.camera-format{margin-left:auto;max-width:130px;font-size:10px;line-height:1.4;color:#c1d0c9;text-align:right;font-variant-numeric:tabular-nums}
.receiver-camera .camera-close{background:#ffffff12;border:1px solid #ffffff20;width:44px;min-height:44px;height:44px;flex:0 0 44px;font-size:28px;border-radius:50%;padding:0;color:white}
.receiver-camera .camera-stage{min-height:0;background:#050808;position:relative}
.receiver-camera .camera-stage video,.receiver-camera .camera-stage img{object-fit:contain;min-height:0}
.receiver-camera .camera-controls{background:#111a17;color:#eff8f3;max-height:48dvh;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto}
.camera-live-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
.receiver-camera .camera-shutter{display:grid;place-items:center;flex:0 0 80px;width:80px;height:80px;min-height:80px;padding:5px;border:3px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 4px #ffffff14;transition:transform .12s,opacity .12s}
.camera-shutter span{width:100%;height:100%;border-radius:50%;background:#fff;display:block}
.receiver-camera .camera-shutter:active{transform:scale(.92)}.receiver-camera .camera-shutter:disabled{opacity:.35}
.camera-shutter-label{font-size:11px;color:#cfddd5}.receiver-camera .camera-status{font-size:12px;line-height:1.4;margin:10px 0 0;color:#c9dad1;text-align:center}
.receiver-camera .camera-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.receiver-camera .camera-review-actions button{min-height:48px;background:#263b31;color:#f4fff7;border:1px solid #486555;font-size:14px}
.receiver-camera .camera-review-actions [data-action=camera-use]{grid-column:1/-1;background:#c7f59d;border-color:#c7f59d;color:#17331c;font-weight:700}
.receiver-camera .camera-fallback details{border-color:#ffffff20;margin-top:8px;padding-top:4px}.receiver-camera .camera-fallback summary{font-size:12px;min-height:36px;color:#d6e3dc}
.receiver-camera .camera-fallback label{background:#21382b;color:#f3fff6;border-color:#496250}.receiver-camera .camera-fallback input{color:#f3fff6}
.receiver-camera .camera-fallback a{color:#c7f59d}.receiver-camera .camera-fallback p,.receiver-camera .camera-fallback small{color:#c4d5cb}
.receiver-camera .camera-fallback .capture-help{background:#1d3127;border-color:#40584a;color:#e7f5ec}
.receiver-camera .camera-problem{background:#4b2e20;color:#fff2dc;text-align:left}
.receiver-camera.camera-unavailable[open]{grid-template-rows:auto minmax(0,1fr)}.receiver-camera.camera-unavailable .camera-controls{max-height:none}
@media(orientation:landscape) and (min-width:560px){
 .receiver-camera[open]{grid-template-columns:minmax(0,1fr) 212px;grid-template-rows:auto minmax(0,1fr)}
 .receiver-camera header{grid-column:1/-1;min-height:52px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
 .receiver-camera .camera-stage{grid-column:1;grid-row:2}
 .receiver-camera .camera-controls{grid-column:2;grid-row:2;max-height:none;padding:10px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) 12px;border-left:1px solid #ffffff15}
 .receiver-camera .camera-status{font-size:11px}.receiver-camera .camera-shutter{margin-top:4px}
 .receiver-camera .camera-review-actions{grid-template-columns:1fr}.receiver-camera .camera-review-actions button{font-size:12px}
 .receiver-camera.camera-unavailable .camera-controls{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){.receiver-camera .camera-shutter{transition:none}}

/* Always-visible receipt table: accepted rows, totals and surcharge explanation. */
.batch-heading{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 3px;color:#173e30}.batch-heading>strong{font-size:15px}.batch-heading>span{font-size:11px;color:#61796c}
#batch-rows{grid-column:1/-1;min-width:0;border:1px solid #d7e4db;border-radius:13px;background:#fff;overflow:hidden}
.batch-scroll{overflow:auto;max-height:220px;overscroll-behavior:contain;scrollbar-width:thin}
.batch-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:14px;margin:0}
.batch-table thead{position:sticky;top:0;z-index:1;background:#edf4ef}
.batch-table th,.batch-table td{padding:0 6px;border:0;border-bottom:1px solid #e7eee9;vertical-align:middle;white-space:normal}
.batch-table thead th{height:26px;font-size:10px;font-weight:500;text-align:left;color:#526c5d}
.batch-table th:first-child{width:28%}.batch-table th:nth-child(2){width:17%;text-align:right}.batch-table th:nth-child(3){text-align:right}.batch-table th:last-child{width:44px;padding:0}
.batch-table .batch-row{display:table-row;margin:0}.batch-table .batch-row:last-child>*{border-bottom:0}
.receiving-app .batch-table .batch-edit{border:0;background:transparent;padding:6px 0;min-height:44px;width:100%;display:grid;align-content:center;text-align:left;gap:2px;color:#214b38;border-radius:0}
.batch-edit strong{font-size:15px}.batch-edit small{font-size:9px;overflow-wrap:anywhere;font-weight:400}
.batch-table .batch-qty,.batch-table .batch-money{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.batch-table .batch-money{font-weight:650}
.batch-table .batch-action{padding:0}.receiving-app .batch-table .batch-remove{width:44px;height:44px;padding:0;min-height:44px;background:transparent;border:0;color:#7b8c82}
.batch-table .batch-empty{padding:12px 8px;font-size:11px;color:#6b8074;text-align:center}
.batch-total{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:9px 10px;background:#e6f1e9;color:#184532;font-size:13px;font-variant-numeric:tabular-nums}.batch-total>span{font-size:11px}.batch-total>strong:last-child{text-align:right;overflow-wrap:anywhere}
.batch-note{margin:0;padding:5px 10px;background:#f4f8f5;font-size:10px;line-height:1.3;color:#577060}.batch-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.receiving-app .thumb-entry.waiting-entry{display:none}.receiving-app .thumb-batch #calc-tools{padding:4px 8px}.receiving-app .thumb-batch #calc-tools summary{min-height:40px}
.has-pending-entry .batch-scroll{max-height:102px}.has-pending-entry .type-caption{display:none}
.has-pending-entry #thumb-composer{gap:4px;padding:8px}.has-pending-entry .thumb-entry{gap:4px}
.receiving-app .has-pending-entry .thumb-grades button{min-height:48px}.has-pending-entry #thumb-preview{min-height:24px}
.receiving-app .has-pending-entry .thumb-add{min-height:48px}
@media(max-height:780px){.has-pending-entry .batch-scroll{max-height:70px}.has-pending-entry .batch-total{padding:6px 8px}.has-pending-entry .batch-note{padding:3px 8px}.receiving-app.thumb-mode .modal-body{padding:6px 12px}.thumb-calculator{gap:5px}}
@media(orientation:landscape) and (min-width:700px){.thumb-calculator{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,1fr);align-items:start;gap:14px}.thumb-batch{align-content:start}.has-pending-entry .batch-scroll{max-height:200px}#thumb-composer{margin-top:0}.receiving-app.thumb-mode .receiving-header{min-height:48px}}

/* Contextual reminders use their own dialog and never replace the underlying form. */
.reminder-trigger{width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px;border:1px solid #cfddd5;border-radius:13px;background:#edf5ef;color:#205340;flex:0 0 auto}
.reminder-trigger svg,.reminder-list-button svg{width:23px;height:23px;flex:0 0 23px}.reminder-trigger:has(span){width:auto}
.modal-head h2{min-width:0;flex:1}.modal-head>.reminder-trigger{margin-left:auto}
.reminder-list-button{display:inline-flex;align-items:center;gap:8px;min-height:48px;margin:6px 0 12px}
.reminder-sheet{width:min(620px,100vw);max-width:100vw;max-height:94dvh;padding:0;border:1px solid #d5e2d9;border-radius:22px;background:#f5f8f5;color:#173e31;box-shadow:0 24px 80px #082b3930}
.reminder-sheet::backdrop{background:#102c235c;backdrop-filter:blur(3px)}
.reminder-sheet[open]{display:flex;flex-direction:column}.reminder-sheet[open]>form{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.reminder-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:white;border-bottom:1px solid #dde7e0;flex:0 0 auto}
.reminder-head small{color:#698473;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.reminder-head h2{font-size:23px;margin:3px 0 0}
.reminder-head>button{width:44px;height:44px;min-height:44px;font-size:26px;padding:0;border-radius:50%;background:#edf3ee;border:1px solid #d5e1d8}
.reminder-body{padding:18px 20px;overflow:auto;min-height:0}.reminder-body label{display:grid;gap:6px;margin:12px 0;font-size:13px;color:#476454}
.reminder-body input,.reminder-body select,.reminder-body textarea{font:inherit;font-size:16px;min-height:48px;border:1px solid #c8dacd;border-radius:12px;background:white;padding:12px;width:100%;min-width:0;color:#153d2e}
.reminder-body textarea{resize:vertical;min-height:76px}.reminder-context{display:grid;gap:4px;padding:12px 14px;background:#e8f2eb;border-radius:14px;overflow-wrap:anywhere}.reminder-context>small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#627e6b}
.reminder-context>strong{font-size:15px}.reminder-source{display:block;color:#22704d;font-size:12px;margin-top:5px;line-height:1.4;text-decoration:underline;min-height:24px}
.reminder-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.reminder-quick button{min-height:44px;padding:8px 12px;font-size:12px;background:#e8f1ea;border:1px solid #d0dfd4;border-radius:12px;flex:1;white-space:nowrap}
.reminder-person{font-size:13px;color:#496853}.reminder-help{font-size:12px;color:#66816e;line-height:1.5}
.reminder-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:white;border-top:1px solid #dae6dc;flex:0 0 auto}
.reminder-foot button{min-height:50px;padding:12px 16px;border-radius:13px;font-size:14px}.reminder-foot .primary{flex:1;background:#1c644b;color:white}
.reminder-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reminder-filters label{margin:0 0 12px}.reminder-filters label:last-child:nth-child(3){grid-column:1/-1}
.reminder-cards{display:grid;gap:12px}.reminder-card{padding:14px;border:1px solid #d8e4db;border-radius:16px;background:white;overflow-wrap:anywhere}
.reminder-card-top{display:flex;gap:10px;justify-content:space-between;color:#647f6d;font-size:11px}.reminder-card-top>span{color:#a5522d}.reminder-card.is-overdue{border-left:4px solid #c17644}
.reminder-card .reminder-title{display:block;text-align:left;padding:6px 0;min-height:44px;border:0;background:none;font-size:17px;font-weight:700;color:#1c4b36}
.reminder-card p{margin:3px 0;font-size:12px;color:#617b68}.reminder-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.reminder-card-actions button{min-height:44px;font-size:12px;padding:7px 10px}
.reminder-paging{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:12px}.reminder-paging button{min-width:44px;min-height:44px}.reminder-empty{padding:30px 10px;text-align:center;color:#728675}
@media(max-width:620px){.reminder-sheet{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.reminder-body{flex:1;padding:14px 16px}.reminder-sheet[open]>form{flex:1}.reminder-head{padding:max(12px,env(safe-area-inset-top)) 16px 12px}.reminder-head h2{font-size:21px}.reminder-foot{padding-left:16px;padding-right:16px}
 .topbar .reminder-trigger span{display:none}.receiving-header{gap:6px!important}.receiving-header .language-control select{max-width:89px!important;padding:8px 4px;font-size:11px!important}.receiving-header>div{flex:1;min-width:0}.receiving-header>div>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.receiving-header strong{font-size:18px!important}.receiving-header .receiving-version{display:none}.receiving-header .receiving-back{width:40px;min-width:40px;flex:0 0 40px}.receiver-top-actions{gap:3px}}

/* Nonstandard dimensions use the same thumb-friendly quantity composer. */
.ns-picker{display:grid;gap:8px;text-align:left;user-select:auto}.ns-search,.ns-size-form label{display:grid;gap:5px;font-size:12px;color:#536b5c}
.receiving-app .ns-search input,.receiving-app .ns-size-form input{width:100%;min-width:0;min-height:46px;font-size:18px;border:1px solid #c9dbce;border-radius:11px;padding:9px 12px;background:white}
.ns-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:172px;overflow-y:auto;overscroll-behavior:contain}
.receiving-app .ns-sizes button{min-height:48px;font-size:16px;padding:10px 6px;background:#edf6ef;color:#24523b;border:1px solid #cbded0;border-radius:12px}.ns-sizes button[hidden]{display:none}
.receiving-app .ns-new-size{min-height:46px;color:#176044;border:1px dashed #96baa3;background:white;font-weight:700}
.ns-price{font-size:11px;line-height:1.5;color:#687d6e;margin:1px 0}.ns-size-form{display:grid;gap:8px}.ns-size-form>p{font-size:12px;color:#6b8171;margin:0}.ns-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ns-form-actions{display:flex;gap:8px}.receiving-app .ns-form-actions button{flex:1;min-height:48px;font-size:13px;padding:8px}
.thumb-quantity label strong{overflow-wrap:anywhere}.batch-edit strong{overflow-wrap:anywhere}

.batch-edit .batch-dimensions{font-size:11px;font-weight:600;color:#496a53;line-height:1.3}

/* Suggestions stay a small optional row; the main controls never reorder. */
.frequent-grades{display:flex;align-items:center;gap:6px;margin:0 0 6px;min-width:0}
.frequent-grades small{font-size:11px;color:#5e716b;flex:none}
.frequent-grades .frequent-grade{min-width:0;min-height:44px;padding:8px 10px;border-radius:12px;font-size:14px;background:#e8f1ed;color:#245448;border:1px solid #cbded5;flex:1}
.frequent-clients{margin:12px 0}
.frequent-clients[hidden]{display:none}
.frequent-clients>small{display:block;color:#5e716b;margin-bottom:6px}
.frequent-clients>div{display:grid;gap:6px}
.frequent-clients button{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;min-height:48px;width:100%;border-radius:12px;background:#edf4f0;border:1px solid #d6e4dd}
.frequent-clients strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frequent-clients span{font-size:12px;white-space:nowrap;color:#5e716b}

/* BK painted belongs between grade 3 and repair, within the same thumb row. */
.thumb-grades.bk-grades{grid-template-columns:repeat(5,minmax(0,1fr))}
.bk-grades [data-id="euro_painted:not_applicable"] strong{font-size:14px;line-height:1.1}

/* Warehouse operators: readable numbers and high-contrast labels, without shortcuts. */
.receiver-shell,.receiving-app{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:18px;color:#141b17;line-height:1.45}
.receiver-shell button,.receiver-shell input,.receiver-shell select{font:inherit}
.receiver-shell button,.receiver-shell input,.receiver-shell select{min-height:54px}
.receiver-content h1{font-size:30px}.receiver-content h2{font-size:24px}
.receiver-title p,.receiver-top small,.arrival-card small,.stock-mobile-row small,.receiver-shell .subtitle,.receiver-shell .shipment-card p{color:#303b35;font-size:15px}
.receiver-metrics button{font-size:18px}.receiver-metrics strong{font-size:28px;color:#141b17}
.receiver-shell .receive-hero strong{font-size:28px}.receiver-shell .receive-hero span{font-size:17px}
.receiver-shell .arrival-card h3{font-size:21px;color:#141b17}.receiver-shell .arrival-stage{font-size:14px}
.receiver-shell .stock-mobile-row>strong{font-size:30px;color:#141b17}.receiver-shell .stock-mobile-row>div>strong{font-size:19px}
.receiver-shell .search{font-size:18px;min-height:56px}
.receiver-shell .warehouse-bottom span{font-size:clamp(13px,3.5vw,15px);font-weight:650;overflow-wrap:anywhere;line-height:1.25}
.receiver-shell .warehouse-bottom button{color:#202a24;min-height:76px}.receiver-shell .warehouse-bottom svg{width:26px;height:26px}
.receiver-shell .receiver-settings .language-control{display:flex;align-items:stretch;flex-direction:column;color:#141b17;font-size:16px}
.receiver-shell .receiver-settings .language-control>span{display:block}.receiver-settings .language-control select{max-width:none;width:100%;font-size:18px}
.receiving-app .receiving-header strong{font-size:24px!important;color:#141b17}
.receiving-app .receiving-header small{font-size:12px;color:#303b35;letter-spacing:.05em}
.receiving-app button{font-size:17px;font-weight:650}.receiving-app button.small{font-size:15px;min-height:48px}
.receiving-app input,.receiving-app select,.receiving-app textarea{font-size:18px;color:#141b17}
.receiving-app .form-field label,.receiving-app .calc-field,.receiving-app .calc-checkbox,.receiving-app .ns-search,.receiving-app .ns-size-form label{font-size:16px;color:#202a24}
.receiving-app .step-heading p,.receiving-app .capture-tip{font-size:17px;color:#303b35}
.receiving-app .step-heading h1{font-size:32px;color:#141b17}
.receiving-app .wizard-progress button{font-size:14px;color:#202a24;min-height:48px}
.receiving-app .camera-button,.receiving-app .gallery-button{font-size:20px}
.receiving-app .photo-saved,.receiving-app .photo-count,.receiving-app .ns-price,.receiving-app .ns-size-form>p{font-size:14px;color:#303b35}
.receiving-app #receive-save{font-size:13px;color:#303b35}
.receiving-app .thumb-batch summary{font-size:14px;color:#202a24;min-height:44px}
.receiving-app .batch-heading>strong{font-size:18px;color:#141b17}.receiving-app .batch-heading>span{font-size:14px;color:#303b35}
.receiving-app .batch-table{font-size:18px;color:#141b17}
.receiving-app .batch-table thead th{font-size:12px;font-weight:650;color:#303b35;height:32px}
.receiving-app .batch-edit strong{font-size:18px;color:#141b17}.receiving-app .batch-edit small{font-size:13px;color:#303b35}
.receiving-app .batch-table .batch-qty,.receiving-app .batch-table .batch-money{font-size:19px;font-weight:700;color:#141b17}
.receiving-app .batch-table .batch-edit,.receiving-app .batch-table .batch-remove{min-height:50px}
.receiving-app .batch-table .batch-remove{color:#303b35}
.receiving-app .batch-empty,.receiving-app .batch-note{font-size:13px;color:#303b35}
.receiving-app .batch-total{font-size:17px;color:#141b17}.receiving-app .batch-total>span{font-size:15px}
.receiving-app .thumb-types button{font-size:18px;min-height:50px;min-width:50px;color:#141b17}
.receiving-app .thumb-types button.active{color:white}
.receiving-app .type-caption{font-size:14px;color:#303b35}
.receiving-app .thumb-grades button{min-height:62px;color:#141b17}.receiving-app .has-pending-entry .thumb-grades button{min-height:56px}
.receiving-app .thumb-grades strong{font-size:21px}.receiving-app .thumb-grades small{font-size:12px}
.receiving-app .bk-grades [data-id="euro_painted:not_applicable"] strong{font-size:16px}
.receiving-app .bk-grades [data-id="euro_painted:not_applicable"] small{font-size:10px}
.receiving-app .thumb-quantity input{font-size:36px;min-height:52px;height:52px;color:#141b17}
.receiving-app .thumb-quantity label{font-size:16px;color:#141b17}.receiving-app .thumb-quantity label small{font-size:12px;color:#303b35}
.receiving-app #thumb-preview{font-size:14px;min-height:26px;color:#202a24}
.receiving-app .thumb-keypad button{font-size:28px;font-weight:700;min-height:48px;height:48px;color:#141b17}
.receiving-app .thumb-add,.receiving-app .has-pending-entry .thumb-add{font-size:17px;min-height:52px}
.receiving-app .ns-sizes button{font-size:19px;min-height:54px;color:#141b17}
.receiving-app .ns-new-size,.receiving-app .ns-form-actions button{font-size:17px;min-height:52px}
.receiving-app.thumb-mode .wizard-summary strong{font-size:clamp(21px,6vw,26px);color:#141b17}
.receiving-app.thumb-mode .wizard-summary small,.receiving-app.thumb-mode #receive-count{font-size:13px;color:#303b35}
.receiving-app.thumb-mode .wizard-nav button{font-size:15px;min-height:52px}
.receiving-app.thumb-mode .modal-foot{grid-template-columns:minmax(0,1fr) minmax(160px,1.2fr)}
@media(min-height:850px){.receiving-app .thumb-keypad button{height:54px;min-height:54px}}
@media(max-width:350px){.receiving-app .batch-table .batch-qty,.receiving-app .batch-table .batch-money{font-size:17px}.receiving-app .thumb-grades strong{font-size:19px}.receiving-app .bk-grades [data-id="euro_painted:not_applicable"] strong{font-size:15px}}


/* During quantity entry focus on the selected pallet and large keypad.
   Type choices return immediately after Add or Cancel. */
.receiving-app .has-pending-entry .thumb-types{display:none}
.receiving-app .has-pending-entry .thumb-quantity>label small{display:none}
.has-pending-entry .batch-scroll:has(.batch-empty){display:none}
@media(max-height:820px){
 .receiving-app.thumb-mode .receiving-header{min-height:54px;padding:4px 12px}
 .has-pending-entry .batch-table thead{display:none}
 .receiving-app .has-pending-entry .thumb-batch summary{min-height:40px}
}

.repair-form {display:grid;gap:1rem;color:#13251e;font-size:1.06rem;}
.repair-form label {display:grid;gap:.35rem;font-weight:650;}
.repair-form select,.repair-form input,.repair-form textarea {width:100%;min-height:48px;font:inherit;}
.repair-form fieldset {border:1px solid #b9c9c0;border-radius:12px;padding:.7rem 1rem;min-width:0;}
.repair-form legend {font-weight:700;padding:0 .3rem;}
.repair-form .repair-qty {display:grid;grid-template-columns:1fr 6rem;align-items:center;margin:.35rem 0;}
.repair-qty input {text-align:center;font-size:1.2rem;}
.repair-form output,.repair-parts {padding:.75rem;background:#eaf4ee;border-radius:10px;font-weight:700;}
.repair-history {margin-top:1rem;}
.repair-history summary {font-weight:650;min-height:44px;cursor:pointer;}
.repair-record {padding:.7rem 0;border-bottom:1px solid #d5ddd8;}
.repair-record small {display:block;}
.repair-warehouses {display:grid;gap:.6rem;}

/* Keep the drawer above the fixed mobile navigation. */
.navigation-drawer {
 position:fixed;inset:0 auto 0 0;margin:0;box-sizing:border-box;
 width:min(84vw,21rem);max-width:100%;height:100vh;height:100dvh;max-height:none;
 padding:0;border:0;border-radius:0 16px 16px 0;background:var(--ink);color:#e9f2ed;
 overflow:hidden;overscroll-behavior:contain;
}
.navigation-drawer[open] {display:flex;flex-direction:column;}
.navigation-drawer::backdrop {background:#0c211e80;backdrop-filter:none;}
.drawer-head {display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:calc(8px + env(safe-area-inset-top)) 12px 8px max(20px,env(safe-area-inset-left));
 border-bottom:1px solid #ffffff26;flex:none;font-size:1.18rem;}
.drawer-close {display:grid;place-items:center;min-height:46px;min-width:46px;padding:8px;
 border:1px solid #ffffff4d;border-radius:12px;background:transparent;color:#fff;}
.drawer-close:focus-visible,.drawer-list button:focus-visible {outline:2px solid #f3c675;outline-offset:-2px;}
.drawer-list {padding:0 12px calc(20px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
 overflow-y:auto;min-height:0;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;}
.drawer-list .nav button {min-height:46px;font-size:1rem;color:#e0eae5;}
.drawer-list .nav-group {color:#b0c7bd;}
.drawer-list .sidebar-foot {margin-top:18px;}
html:has(.navigation-drawer[open]) {overflow:hidden;}
@media(max-width:760px){.mobile-menu,.drawer-close,.drawer-list button {touch-action:manipulation;} .mobile-menu svg,.drawer-close svg {pointer-events:none;} .mobile-menu{display:inline-grid;place-items:center;width:46px;height:46px;padding:8px;flex:none;}}
@media(prefers-reduced-motion:no-preference){
 .navigation-drawer[open] {animation:p24-menu-in .16s ease-out;}
 @keyframes p24-menu-in {from{transform:translateX(-100%)}to{transform:translateX(0)}}
}

.till-line{border:1px solid #b9c9c5;border-radius:12px;padding:14px;margin:0 0 12px;min-width:0;display:grid;gap:10px}
.till-line label{display:grid;gap:4px;font-weight:600}.till-line select,.till-line input{width:100%;min-width:0;min-height:46px;font-size:16px}
.till-price{display:grid;grid-template-columns:1fr 1fr;gap:12px}.till-line [data-remove]{justify-self:start}
.till-total,.till-record summary{display:flex;justify-content:space-between;align-items:center;gap:12px}
.till-total{font-size:1.2rem}.till-record{border-bottom:1px solid #c5d1cc;padding:8px 0}.till-record summary{min-height:44px;cursor:pointer}.till-record summary strong{white-space:nowrap}

.dispatcher-section{margin:16px 0}.dispatcher-section button{min-height:44px}.dispatcher-batch{padding:12px 0;border-top:1px solid #d4dfda}.dispatcher-batch p{white-space:pre-wrap;overflow-wrap:anywhere}.dispatcher-batch a{display:block;padding:9px 0;overflow-wrap:anywhere}.dispatcher-section textarea{width:100%;min-height:105px}
.dispatcher-batch img{display:block;max-width:min(220px,100%);max-height:150px;border-radius:8px;margin:4px 0;object-fit:contain}

.arrival-contact{border:1px solid #c7d3ce;border-radius:10px;margin:0 0 12px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.arrival-contact label{display:grid;gap:4px;min-width:0}.arrival-contact input{min-width:0;width:100%}.arrival-contact button{grid-column:1/-1;justify-self:start;min-height:44px}
@media(max-width:480px){.arrival-contact{grid-template-columns:1fr}}

.freight-field{display:grid;gap:.35rem;min-width:0;margin:.5rem 0;font-weight:600}
.freight-field input,.freight-field select{width:100%;min-width:0;min-height:44px}
.fr-grid,.fr-cargo,.fr-rule,.fr-dims{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .8rem}
.fr-stop,.fr-exchanges{margin:1rem 0;padding:.8rem;border:1px solid #becdc5;border-radius:.7rem;min-width:0}
.fr-stop legend,.fr-exchanges legend{font-weight:700;padding:0 .35rem}
.fr-cargo,.fr-rule{border-top:1px solid #d8e0da;padding:.4rem 0;align-items:end}
.fr-cargo button,.fr-rule button{justify-self:start}
.fr-dims{grid-column:1/-1}
.fr-dims[hidden],.fr-cargo button[hidden],.fr-stop button[hidden]{display:none}
.fr-exchanges label{display:inline-flex;align-items:center;gap:.35rem;margin:.25rem .8rem .25rem 0}
.fr-exchanges input{width:auto;min-height:0}
.fr-summary{margin:1rem 0 .45rem;font-weight:700}
.freight-compare{margin-top:1rem}.freight-compare summary{cursor:pointer;font-weight:650;padding:.6rem 0}
@media(max-width:520px){.fr-grid{grid-template-columns:1fr}.fr-rule{grid-template-columns:repeat(2,minmax(0,1fr))}}

.draft-discard{margin:4px 0 0 6px;min-height:44px;color:#852d2c;background:transparent;border-color:transparent}.modal-foot button.discard-confirm{background:#962e2b;color:white;border-color:#962e2b}

.receipt-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 0 14px;scrollbar-width:thin;max-width:100%}
.receipt-tabs button{flex:0 0 auto;min-height:48px;border:1px solid #c5d5cf;background:white;color:#172d26;padding:10px 13px;font-size:16px;font-weight:700;border-radius:12px}
.receipt-tabs button[aria-pressed=true]{background:#185d4a;border-color:#185d4a;color:#fff}
.receipt-tabs b{font-variant-numeric:tabular-nums;margin-left:5px}
.payment-state{font-size:14px;font-weight:700;color:#6b4e12}
.payment-state.paid{color:#165a41}.payment-state.reversed{color:#922f31}
.warehouse-day{padding:18px;background:white;border:1px solid #d9e4df;border-radius:18px;margin:16px 0}
.warehouse-day header{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between;margin-bottom:14px}
.warehouse-day h2{font-size:20px;margin:0}.warehouse-day h3{font-size:17px;margin:14px 0 8px}
.day-quantities{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.day-quantities>div{display:grid;gap:5px;background:#f0f6f3;padding:12px;border-radius:12px;color:#17392e}
.day-quantities strong{font-size:32px;font-variant-numeric:tabular-nums;line-height:1.25}.day-quantities strong small{font-size:16px}
.payment-total{display:grid;gap:6px;padding:18px;background:#e8f3ee;border-radius:16px;color:#123d2e}
.payment-total strong{font-size:32px;font-variant-numeric:tabular-nums;line-height:1.2}
.payment-card-label{display:block;font-weight:700;margin-bottom:6px}
.payment-card-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.payment-card-row input{min-width:0;width:100%;padding:10px 6px;font:700 clamp(15px,4.2vw,22px) ui-monospace,monospace;color:#142f25;letter-spacing:0}
.payment-card-row button{font-size:15px;padding:10px;min-height:48px}
.payment-card-advice{font-size:14px;color:#705715}
.payment-receipt .intake-confirm{padding:12px;background:#f6f8f7;border-radius:12px;line-height:1.4;color:#172d26}
.payment-receipt input[type=checkbox]{min-width:24px;width:24px;height:24px}
.push-status{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#fff7df;color:#664e10;padding:12px;border-radius:12px;margin:12px 0;font-size:14px}
.push-status button{min-height:44px;flex-shrink:0;font-size:14px;padding:8px}
.push-status.enabled{background:#edf5f0;color:#276049}
.event-banner{position:fixed;right:16px;top:max(16px,env(safe-area-inset-top));z-index:110;display:flex;max-width:calc(100vw - 32px);width:390px;border:1px solid #c1d7cc;box-shadow:0 8px 28px #142d2633;background:#fff;border-radius:16px;overflow:hidden}
.event-banner>button{min-height:64px;background:none;border:0;color:#193e30;box-shadow:none}
.event-banner>button:first-child{flex:1;text-align:left;display:grid;gap:5px;padding:14px}
.event-banner span{font-size:14px}.event-banner .event-dismiss{width:44px;flex:0 0 44px;font-size:26px}
@media(max-width:400px){.push-status{flex-wrap:wrap}.push-status button{width:100%}.payment-card-row{gap:5px}.payment-card-row input{font-size:16px}}

.camera-review-actions [data-action=camera-next]{grid-column:1 / -1;min-height:50px}.receipt-extras{margin:14px 0}.receipt-extras summary{font-weight:600;font-size:16px}.receipt-extras button{margin-top:10px}.receipt-extras p{font-size:14px}

/* Equal, always-visible receiving and exchange entry points for warehouse staff. */
.receiver-intake-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.receiver-intake-actions .receiver-intake-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:124px;padding:16px 10px;border:2px solid #216b57;border-radius:18px;text-align:center;line-height:1.25;touch-action:manipulation}
.receiver-intake-actions .receiver-intake-action strong{font-size:20px;font-weight:700;overflow-wrap:normal}
.receiver-intake-actions .receiver-intake-action svg{width:28px;height:28px;flex-shrink:0}
.receiver-intake-actions .receiver-intake-action.primary{background:#216b57;color:#fff}
.receiver-intake-actions .receiver-intake-action.exchange{background:#eef7f1;color:#164b40}
.receiver-intake-actions .receiver-intake-action:focus-visible{outline:3px solid #b87908;outline-offset:3px}
.receiver-intake-actions .receiver-intake-action:active{filter:brightness(.93)}

/* A continuous feed and shared receipt identity across receipt/payment views. */
.feed-day{font-size:16px;font-weight:750;color:#213c31;margin:20px 0 8px;padding:9px 0 7px;border-bottom:1px solid #ccd9d3;line-height:1.35}
.feed-receipt-number{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:3px;color:#172f25}
.feed-receipt-number b{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 5px;background:#dcebe4;border-radius:8px;font-size:19px;line-height:1;font-variant-numeric:tabular-nums}
.feed-receipt-number small{font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums;color:#42564b;overflow-wrap:anywhere}
.payout-strip>.feed-receipt-number{grid-column:1/-1}.payout-strip .strip-name{grid-column:1}.payout-strip>strong{grid-column:2}
.feed-footer{display:grid;justify-items:center;gap:8px;padding:20px 0 28px;color:#4c5c54;font-size:13px}
.feed-footer button{min-height:48px;padding:10px 22px;min-width:160px}.feed-footer .error{margin:0;max-width:100%;text-align:center}
.journal-column .feed-day{font-size:14px}.journal-strip .feed-receipt-number{width:100%;gap:7px}
.photo-open{display:block;padding:0;border:1px solid #d0dcd6;border-radius:12px;overflow:hidden;background:#e8eee9;cursor:zoom-in;max-width:100%;min-height:44px}
.photo-open img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}.photo-open:focus-visible{outline:3px solid #b38733;outline-offset:3px}
.photo-viewer{display:none;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;grid-template-rows:auto 1fr}
.photo-viewer[open]{display:grid}.viewer-toolbar{padding:calc(8px + env(safe-area-inset-top)) 10px 8px;gap:6px;flex-wrap:nowrap}
.viewer-toolbar button{min-width:42px;min-height:48px;padding:8px;color:#173e30;background:#f1f6f3;border:0;border-radius:10px;font-size:17px}
.viewer-toolbar [data-view=close]{margin-left:auto;font-size:15px}.viewer-status{position:absolute;top:90px;left:16px;right:16px;text-align:center;color:white}
.viewer-canvas{overflow:auto;position:relative;min-height:0;height:auto;touch-action:none;overscroll-behavior:contain;display:block;padding:0}
.viewer-surface{position:relative;min-width:100%;min-height:100%}.viewer-canvas .viewer-surface img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;user-select:none}
@media(max-width:360px){.journal-strip .feed-receipt-number{gap:4px}.journal-strip .feed-receipt-number small{font-size:10px}.journal-strip .feed-receipt-number b{font-size:17px;min-width:25px;height:27px}.viewer-toolbar button{min-width:38px;padding:7px}}

/* Six BK choices retain a single stable row on small phones. */
.receiving-app .thumb-grades.painted-grades{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
.receiving-app .painted-grades [data-id^="euro_painted:"] strong{font-size:14px;line-height:1.05}
@media(max-width:350px){.receiving-app .painted-grades [data-id^="euro_painted:"] strong{font-size:13px}}

.customer-arrival-card{padding:14px!important}.customer-arrival-card .actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.customer-arrival-card .actions button{min-width:0;padding:10px;font-size:14px}.warehouse-bottom span{overflow-wrap:normal;word-break:normal}

/* Warehouse retail: readable quantities and prices on a narrow phone. */
.till-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:12px 0}
.till-products button{display:flex;flex-direction:column;gap:5px;align-items:center;min-height:64px;padding:8px;white-space:normal;overflow-wrap:anywhere}
.till-sale,.till-line{min-width:0}
.till-sale [hidden]{display:none!important}
.till-line{margin:12px 0;padding:12px;border:1px solid var(--line,#ccd8d3);border-radius:14px}
.till-line legend{font-weight:700;padding:0 6px}
.till-line p{overflow-wrap:anywhere;font-size:.9rem}
.till-price{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.till-price input,.till-line select{width:100%;min-width:0}
.till-total{display:flex;justify-content:space-between;gap:12px;font-size:1.2rem}

/* Dictation stays a draft until the operator explicitly saves the reminder. */
.voice-draft{padding:14px;margin:14px 0;border:1px solid #c7dcd0;border-radius:14px;background:white;min-width:0}
.voice-controls{display:flex;flex-wrap:wrap;gap:8px}.voice-controls button{min-height:48px;display:flex;gap:8px;align-items:center;justify-content:center;padding:10px 14px;flex:1}.voice-controls button[hidden]{display:none}.voice-controls svg{width:22px;height:22px;flex:none}
.voice-draft p{font-size:13px;line-height:1.45;margin:10px 0 0;overflow-wrap:anywhere}.voice-draft [data-voice-preview]{padding:10px;background:#f0f5f1;border-radius:10px;font-size:16px}.voice-draft.is-recording{border-color:#bc5d4d}.voice-draft.is-recording [data-voice=stop]{background:#a94030;color:white;border-color:#a94030}
.reminder-attach{min-height:44px;margin-top:10px;width:100%;border-style:dashed}.reminder-context [data-link=clear]{justify-self:start;min-height:40px;font-size:13px;margin-top:6px}
.reminder-picker{padding:12px;border:1px solid #c7dcd0;border-radius:14px;margin-top:12px;min-width:0}.reminder-picker[hidden]{display:none}
.reminder-matches{display:grid;gap:8px;max-height:290px;overflow:auto}.reminder-matches button{display:grid;text-align:left;gap:6px;min-height:58px;min-width:0;padding:12px;white-space:normal;overflow-wrap:anywhere}.reminder-matches small{font-size:12px;color:#4b675a}.reminder-matches p{font-size:13px}.reminder-body .form-field{min-width:0}.reminder-body>*{max-width:100%;box-sizing:border-box}

.reminder-body .voice-language{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0}.reminder-body .voice-language select{width:auto;max-width:65%;min-height:42px;padding:8px;font-size:14px}

/* Photo actions remain reachable on narrow warehouse phones. */
.viewer-toolbar{flex-wrap:wrap}
.viewer-toolbar [data-view-download]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:48px;padding:8px;color:#173e30;background:#f1f6f3;border-radius:10px;text-decoration:none;font-weight:600}

/* Retail work on phones: compact catalogue, readable amounts and deliberate loading team. */
.retail-catalog{margin:12px 0;border:1px solid var(--line);border-radius:14px;padding:12px}
.retail-catalog>summary{font-weight:750;min-height:46px;cursor:pointer}
.retail-catalog .till-products{max-height:310px;overflow:auto}
.retail-buyer{padding:12px;border:1px solid var(--line);border-radius:14px;margin:14px 0}
.till-sale label{min-width:0}
.till-sale .retail-buyer select{width:100%;max-width:100%;text-overflow:ellipsis}
.till-sale .loading-team{margin:16px 0}
.till-sale [data-loading-preview] .callout{font-size:16px;line-height:1.5}

/* Keep the first employee login readable without a duplicate introduction. */
@media(max-width:760px){
 .login-page .login-aside{display:none}
 .login-page .login-form-wrap{min-height:100vh;min-height:100svh;padding:76px max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
 .login-page .login-form{max-width:420px}
 .login-page .login-mobile-brand{display:flex;align-items:center;gap:14px;line-height:1.2;margin-bottom:20px}
 .login-page .login-mobile-brand .login-emblem{width:56px;height:56px;flex:none;margin:0}
 .login-page .login-form .form-field label{font-size:16px;line-height:1.4}
 .login-page .login-form input{min-height:48px;font-size:16px;padding:12px 14px}
 .login-page .login-form button[type=submit]{min-height:52px;font-size:17px}
 .login-page .login-form .subtitle{font-size:14px;line-height:1.5}
}
