:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#162b29;background:#f3f5f5;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:84px;background:white;border-bottom:1px solid #dce3e1;padding:0 max(24px,calc((100vw - 1280px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{text-decoration:none;color:#183f39;font:700 38px Georgia,serif;letter-spacing:-2px}.brand span{font:500 20px Segoe UI,sans-serif;letter-spacing:0;margin-left:12px}.pilot{font-size:14px;font-weight:600}.demo{text-align:center;background:#e7efed;color:#294d46;padding:10px 16px;font-size:14px}main{max-width:1280px;margin:auto;padding:36px 24px 160px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:42px}h1{font-size:28px;letter-spacing:-.8px;line-height:1.2;margin:10px 0 16px}h2{font-size:24px;margin:6px 0 12px}h3{font-size:19px;margin:5px 0 10px;line-height:1.4}p{line-height:1.6}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;color:#56706a}.muted,.local-note{color:#5c6f6b}.orders{display:grid;gap:12px;margin:28px 0}.order{border:1px solid #d7dfdc;background:white;color:#263e39;display:grid;text-align:left;gap:8px;padding:18px;min-height:100px}.order.active{border:2px solid #183f39;padding:17px;background:#eef4f2}.order strong{font-size:20px}.order small{font-size:14px;font-weight:400}.local-note{font-size:14px;line-height:1.6;border-top:1px solid #d7dfdc;padding-top:20px}.text-button{color:#45625b;background:transparent;text-decoration:underline;padding:12px 0;font-size:14px}.summary-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.tag{background:#e5ece9;color:#33584d;border-radius:6px;padding:7px 10px;font-size:14px;font-weight:600}.progress{height:6px;background:#dce5e1;border-radius:10px;overflow:hidden;margin:16px 0 12px}.progress>div{height:100%;background:#367c62;transition:width .2s}.stats{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#536761;margin-bottom:24px}.card{background:white;border:1px solid #dce3e0;border-radius:14px;padding:22px;margin-bottom:16px;scroll-margin-top:20px}.card.done{background:#f4f8f6;border-color:#c2d8cb}.card.short{border:2px solid #c87935;padding:21px}.product{display:grid;grid-template-columns:108px minmax(0,1fr);gap:20px}.photo{width:108px;height:112px;object-fit:contain;background:#f1f3f3;border-radius:10px}.sku{font-size:14px;color:#586b65;letter-spacing:1px}.quantity{display:inline-flex;align-items:center;gap:12px;border-radius:6px;padding:8px 12px;background:#edf1ef}.quantity.multiple{background:#ffdf69;color:#332b0d}.quantity strong{font-size:29px;line-height:1.1;font-weight:800}.quantity span{font-size:14px;font-weight:650}.action-row{border-top:1px solid #e4eae7;margin-top:20px;padding-top:16px;display:flex;align-items:end;justify-content:space-between;gap:16px}.qty-label{display:grid;gap:7px;font-size:14px}.stepper{display:flex;align-items:center;gap:0}.stepper button{width:48px;padding:8px;background:#edf2f0;color:#203e36;border-radius:6px}.stepper input{width:68px;height:48px;text-align:center;border:1px solid #c3d0ca;border-radius:6px;font-size:23px;font-weight:700;background:white;color:#213e35;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.action-row>.primary{flex:1;max-width:300px}button{font:600 16px Segoe UI,Arial,sans-serif;border:0;border-radius:8px;min-height:48px;padding:14px 20px;background:#183f39;color:#fff;cursor:pointer}button:hover{filter:brightness(.94)}button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b37812;outline-offset:3px}.secondary{background:#e8eeeb;color:#24473c}.status-line{font-size:16px;font-weight:600;color:#296044;margin:16px 0 0}.short .status-line,.shortage{color:#92451b}.shortage{margin:12px 0 0;font-weight:650}.panel{background:#fff;border:1px solid #dce3e0;border-radius:12px;padding:20px;margin-top:24px}.panel:empty{display:none}summary{cursor:pointer;font-weight:600;min-height:28px}#log{padding-left:22px;color:#476259;font-size:14px;max-height:300px;overflow:auto}#log li{padding:10px 0;border-bottom:1px solid #edf0ef;line-height:1.5}.decision{border-top:1px solid #e1e8e4;padding-top:16px;margin-top:16px}.decision label{display:grid;gap:8px;margin:12px 0}.decision select{font:inherit;min-height:48px;padding:10px;border:1px solid #becbc5;border-radius:6px;width:100%}footer{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d6e0db;box-shadow:0 -6px 24px #183f3908;padding:18px max(24px,calc((100vw - 1232px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:2}footer div{display:grid;gap:5px}footer span{font-size:14px;color:#5c6f66}footer button{min-width:240px;min-height:56px}#notice{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#203f35;color:white;padding:14px 20px;border-radius:8px;max-width:90vw;box-shadow:0 3px 15px #0002;z-index:5}#notice:empty{display:none}dialog{border:1px solid #c9d5ce;border-radius:14px;padding:28px;max-width:min(460px,90vw)}dialog::backdrop{background:#183f3970}dialog button{margin:6px 4px 0 0}
@media(max-width:800px){.card .action-row{margin-top:12px;padding-top:12px}}
.sku{display:inline-block;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:.5px;color:#123c34;background:#d5eee4;border:1px solid #8fbdaa;border-radius:6px;padding:6px 9px;margin-bottom:5px;font-variant-numeric:tabular-nums}
.add-product{margin:0 0 16px}.card>[data-edit-order]{margin-top:10px;text-align:left}#order-editor{width:460px;max-height:85vh;overflow:auto}#order-editor label{display:grid;gap:8px;margin:16px 0}#order-editor input,#order-editor select{font:inherit;min-height:48px;padding:10px;width:100%;border:1px solid #8aaba0;border-radius:6px}#order-editor input{font-size:24px;font-weight:700}.editor-actions{display:flex;flex-wrap:wrap;gap:8px}#edit-error{color:#92451b;font-weight:600}
.stock-panel{margin-top:16px;border:1px solid #c3d6cf;border-radius:8px;background:#f2f7f5}.stock-panel summary{padding:14px 12px;min-height:48px;font-size:16px}.stock-demo{display:inline-block;margin-left:6px;padding:3px 6px;border-radius:4px;background:#e3e9e6;color:#52635d;font-size:13px}.stock-body{padding:0 12px 12px}.stock-amount{display:flex;align-items:center;justify-content:space-between;gap:10px}.stock-amount strong{font-size:26px;white-space:nowrap}.stock-body p{font-size:14px;margin:8px 0 0}
@media(max-width:800px){header{height:60px;padding:0 18px}.brand{font-size:32px}.brand span{font-size:18px}.pilot{display:none}.demo{padding:7px 14px}main{display:block;padding:12px 14px 190px}aside h1,aside>.eyebrow,aside>.muted,.local-note{display:none}.eyebrow{margin:0}.orders{grid-template-columns:1fr 1fr;margin:0 0 4px;gap:8px}.order{padding:10px;min-height:64px;gap:4px}.order.active{padding:9px}.order strong{font-size:17px}.order small{font-size:14px}.order small:first-of-type{display:none}.text-button{padding:4px 0;min-height:36px}.workspace{margin-top:8px}.card{padding:16px}.card.short{padding:15px}.product{grid-template-columns:86px minmax(0,1fr);gap:14px}.photo{width:86px;height:100px}h3{font-size:17px}.quantity{gap:8px;padding:8px}.quantity strong{font-size:28px}.quantity span{font-size:13px}.summary-top{align-items:start;flex-wrap:wrap}h2{font-size:20px;margin-bottom:4px}.summary-top .tag{padding:5px 8px}.progress{margin:10px 0}.action-row{gap:10px;flex-wrap:wrap}.action-row>.primary{max-width:none;min-width:150px}.stats{flex-wrap:wrap;gap:5px;margin-bottom:14px}footer{display:grid;grid-template-columns:1fr;padding:12px 16px;gap:10px}footer button{width:100%;min-height:54px}footer strong{font-size:15px}#notice{bottom:160px}.panel{padding:16px}}

#orders [hidden]{display:none}#orders.collapsed{grid-template-columns:1fr}#toggle-orders{width:100%;margin-top:8px;margin-bottom:10px}

.order-details-link{display:block;text-align:left;background:transparent;color:#183f39;padding:0;font-size:inherit;line-height:1.4}.order-details-link span{display:block;font-size:14px;font-weight:500;text-decoration:underline;margin-top:3px}#order-details-dialog{width:480px;max-height:85vh;overflow:auto}.details-demo{font-size:14px;background:#e7efed;padding:10px;border-radius:6px}.order-fields{margin:20px 0}.order-fields>div{padding:12px 0;border-bottom:1px solid #dce3e0}.order-fields dt{font-size:14px;color:#52665e;margin-bottom:5px}.order-fields dd{font-size:18px;font-weight:600;margin:0;overflow-wrap:anywhere}#close-order-details{width:100%}

[hidden]{display:none!important}.role-bar{max-width:1232px;margin:18px auto;padding:0 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.role-bar label{font-weight:650}select,textarea{font:inherit;max-width:100%;padding:10px;border:1px solid #adc4ba;border-radius:6px;min-height:48px}#connection{font-size:14px}#summary>button{margin:8px 4px 12px 0}#summary>label{display:grid;gap:8px}.cancelled{background:#f5f5f5;border-style:dashed}.cancel-button{color:#963a22}#shared-dialog{width:480px;max-height:85vh;overflow:auto}#shared-dialog label{display:grid;gap:8px;margin:14px 0}#shared-dialog input:not([type=checkbox]),#shared-dialog textarea{width:100%;min-height:48px;font:inherit;padding:10px}#shared-dialog input[type=checkbox]{width:24px;height:24px}.role-bar select{min-width:160px}.auth-panel{max-width:560px;margin:28px auto;padding:24px;background:#fff;border:1px solid #dce3e0;border-radius:14px}.auth-panel label{display:grid;gap:8px;margin:16px 0}.auth-panel input{width:100%;font:inherit;padding:12px;min-height:48px;border:1px solid #adc4ba;border-radius:6px}.auth-panel button{width:100%}.auth-panel fieldset{border:1px solid #dce3e0;border-radius:8px;margin:16px 0}.auth-panel legend{font-weight:700}.auth-panel p{color:#536761;font-size:14px}.list-heading{font-size:18px;margin:10px 0 0;grid-column:1/-1}.stock-visible{padding:10px 12px;font-size:15px}.also-needed{font-size:13px;font-weight:400;color:#64726d;margin:8px 0 16px;line-height:1.5}.saving #connection{font-weight:700;color:#8c570d}#notice.error{background:#873b20}#notice{white-space:normal;overflow-wrap:anywhere}#orders{grid-template-columns:1fr}#shared-dialog input[type=password]{font-size:20px}@media(max-width:800px){.auth-panel{margin:16px 14px;padding:20px}.role-bar{margin:12px 0}.role-bar button{padding:10px 14px}#connection{flex-basis:100%}.stock-visible{font-size:14px}.also-needed{font-size:12px}#orders .order{min-height:80px}#orders .order small:first-of-type{display:block}}

/* Доробки №2 — погоджені кольори 05.10.2026 */
:root{--stage-pick:#134E4A;--stage-pack:#1F4FB8;--stage-ready:#15803D;--stage-problem:#C2410C;--change-bg:#EEE8FB;--change-text:#4B2A99;--reference:#64726d}
button{background:var(--stage-pick)}
.order-section{display:grid;gap:12px;margin-bottom:24px}.order-section h2{margin-bottom:0}
.ready-orders{border:2px solid var(--stage-ready);border-radius:12px;padding:14px;margin-top:20px}.ready-orders summary{font-weight:700;color:var(--stage-ready);cursor:pointer}.ready-orders .order{margin-top:12px;width:100%}
.tag.phase-pick,button.phase-pick{background:var(--stage-pick);color:#fff}.tag.phase-pack,button.phase-pack{background:var(--stage-pack);color:#fff}.tag.phase-ready,button.phase-ready,.ready-orders .tag.phase-ready{background:var(--stage-ready);color:#fff}.tag.phase-problem,button.phase-problem{background:var(--stage-problem);color:#fff}
.variant-size{font-size:25px;font-weight:800;color:var(--change-text);background:var(--change-bg);padding:8px 12px;border-radius:8px;margin:10px 0}.change-mark{background:var(--change-bg);color:var(--change-text);padding:9px;border-radius:7px;overflow-wrap:anywhere}
.stock-visible{border:0;background:transparent;padding:0;font-size:13px;color:var(--reference);line-height:1.5}.stock-visible strong{font-weight:400}.stock-demo{font-size:12px;font-weight:400;color:var(--reference);background:#e9edeb}.also-needed{font-size:13px;font-weight:400;color:var(--reference);line-height:1.5;margin:8px 0 16px}
.stock-risk{background:#fff0cf;color:var(--stage-problem);border-left:5px solid var(--stage-problem);padding:12px;font-weight:700}.card.short{border-color:var(--stage-problem)}.short .status-line,.shortage,.cancel-button{color:var(--stage-problem)}.status-line{color:var(--stage-ready)}
.pin-control{display:flex;gap:8px;align-items:center}.pin-control input{min-width:0;flex:1}.pin-toggle{flex:0 0 54px;padding:10px}.auth-panel .pin-toggle{width:54px}
#notice{position:static;transform:none;max-width:1200px;width:auto;margin:8px 20px;padding:12px 16px;box-sizing:border-box;background:var(--stage-pick)}#notice.error{background:var(--stage-problem)}#notice:empty{display:none}
.order small{overflow-wrap:anywhere}.summary-top>.tag{margin-left:auto}.product>div{min-width:0}.quantity{flex-wrap:wrap}
@media(max-width:600px){main{padding-bottom:calc(210px + env(safe-area-inset-bottom,0px))}.order-section{gap:10px}.variant-size{font-size:24px}#notice{margin:8px 12px}.role-bar{gap:10px}.role-bar button{max-width:100%}.order .tag{font-size:14px}.summary-top{flex-wrap:wrap}.stock-visible,.also-needed{font-size:13px}.action-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.action-row>[data-pick]{width:100%;min-height:56px}.stepper{width:max-content;max-width:100%}footer{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}footer button{min-width:0;min-height:56px}.editor-actions{position:sticky;bottom:-28px;background:#fff;padding-top:10px}}

/* Доробки №3 — чистий верх і перегляд вільного замовлення */
#connection{background:#B91C1C;color:#fff;padding:12px 16px;border-radius:8px;font-weight:700}.saving #connection{color:#fff}
.order-open{display:grid;gap:8px;width:100%;padding:0;min-height:0;background:transparent;color:inherit;text-align:left;border-radius:0}.order-open:hover{filter:none}.claim-order,.claim-preview{width:100%;min-height:56px}.claim-order{margin-top:6px}.claim-preview{margin:8px 0 24px}
body.free-preview main{padding-bottom:36px}

/* Окремий спрощений екран збирача */
body.worker-screen header,body.worker-screen aside h1,body.worker-screen .local-note{display:none}
body.worker-screen main{display:block;max-width:900px;padding-top:8px}
body.worker-screen #session-bar{max-width:852px;justify-content:space-between}
body.worker-screen .orders{margin:0;display:block}
.next-order{width:100%;min-height:72px;font-size:20px;margin:12px 0}
body.worker-screen footer>div{display:none}
body.worker-screen .worker-order #return-queue{margin-top:12px}
body.worker-screen .summary-top .tag{white-space:nowrap}

body.worker-screen #log-panel{margin-bottom:20px}
@media(max-width:600px){body.worker-screen main{padding-left:12px;padding-right:12px}body.worker-screen .worker-order .summary-top{display:grid;gap:12px}body.worker-screen .worker-order .tag{justify-self:start;margin:0}body.worker-screen #session-bar{margin:8px 0}.next-order{min-height:72px}body.worker-screen .worker-order{padding:16px}}

.no-photo{display:flex;align-items:center;justify-content:center;text-align:center;color:#64726d;font-size:14px;padding:8px}.reference-line{color:#64726d;font-size:13px;overflow-wrap:anywhere}.product-characteristic{font-weight:650;margin:8px 0}.order.wait-yellow{background:#fff8ce;border-left:5px solid #d4a017}.order.wait-red{background:#ffe7e5;border-left:5px solid #c2410c}.order.wait-yellow.active{background:#fff8ce}.order.wait-red.active{background:#ffe7e5}

/* Компактна картка лише для збирача. */
body.worker-screen #items .action-row{border-top:0;margin-top:12px;padding-top:0;display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:end}
body.worker-screen #items .action-row>[data-pick]{min-width:0;width:100%;min-height:56px;padding:10px;font-size:16px;white-space:normal}
body.worker-screen #items .card.done{background:#e6f4e9;border-color:#15803D}
body.worker-screen #items .card.short{background:#fff8ce;border-color:#d4a017}
body.worker-screen #items .card.short .status-line{color:#725400}
@media(max-width:600px){body.worker-screen #items .action-row{grid-template-columns:128px minmax(0,1fr);gap:8px}body.worker-screen #items .stepper button{width:40px;min-width:40px;padding:8px}body.worker-screen #items .stepper input{width:48px;min-width:0}body.worker-screen #items .action-row>[data-pick]{font-size:14px;padding:8px;line-height:1.25}}

/* Вільний вибір і повноекранні деталі. */
.free-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.free-order-actions button{min-width:0;padding:12px;overflow-wrap:anywhere}
.worker-free-list{margin-bottom:20px}.worker-free-list>summary{font-size:20px;font-weight:700;padding:12px;cursor:pointer}.worker-free-list .order{margin-top:12px}
#shared-dialog.fullscreen-details{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:24px;box-sizing:border-box;background:#f3f5f4}
.fullscreen-details>h2,.fullscreen-details form{max-width:900px;margin-left:auto;margin-right:auto}.fullscreen-details .editor-actions{position:sticky;bottom:-24px;padding:12px 0;background:#f3f5f4}.fullscreen-details #modal-close{width:100%;min-height:56px}.buyer-details{background:white;border-radius:12px;padding:18px}.fullscreen-details .order-fields>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px}.fullscreen-details .quantity strong{font-size:28px}
@media(max-width:600px){#shared-dialog.fullscreen-details{padding:16px}.fullscreen-details .editor-actions{bottom:-16px}.fullscreen-details .order-fields>div{grid-template-columns:1fr;gap:4px}.free-order-actions{gap:8px}.free-order-actions button{font-size:14px;min-height:56px}}

.fullscreen-details .buyer-details{margin-bottom:20px}

.photo-box{width:max-content;max-width:100%}.photo-box img{display:block}.photo-box [hidden]{display:none!important}
.worker-screen #log-panel,.worker-screen #productivity-panel{display:none!important}.productivity-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.productivity-controls label{display:grid;gap:6px}.productivity-controls input{font:inherit;min-height:48px;max-width:100%;border:1px solid #becbc5;border-radius:6px;padding:8px}.productivity-table-wrap{max-width:100%;overflow-x:auto}.productivity-table{border-collapse:collapse;width:100%;font-size:14px}.productivity-table th,.productivity-table td{text-align:left;padding:10px;border-bottom:1px solid #dce3e0;vertical-align:top}.productivity-table th{color:#294d46}.productivity-table td small{display:block;color:#5c6f6b}.productivity-table .text-button{font:inherit;min-width:100px;text-align:left}.worker-journal{padding-left:22px;max-height:60vh;overflow:auto}.worker-journal li{padding:10px 0;border-bottom:1px solid #edf0ef;line-height:1.5}

#shared-dialog[open].fullscreen-details{display:flex;flex-direction:column;overflow:hidden}
.fullscreen-details>h2{flex:none;width:100%}
.fullscreen-details #modal-form{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:hidden}
.fullscreen-details .details-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}
.fullscreen-details .editor-actions{position:static;flex:none;flex-wrap:nowrap;gap:12px;padding:12px 0 env(safe-area-inset-bottom,0px);border-top:1px solid #dce3e0}
.fullscreen-details .details-actions-claim #modal-close{width:auto;flex:0 0 90px}
.fullscreen-details [data-details-claim]{flex:1;min-height:64px;font-size:18px}


.parcel-editor{max-width:800px}.parcel-place{min-width:0;margin:12px 0}.parcel-fields,.box-settings-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.parcel-fields label,.box-settings-row label{min-width:0}.parcel-fields input,.box-settings-row input{width:100%;box-sizing:border-box}.parcel-add{font-size:14px;padding:8px 12px;opacity:.8}.box-settings-row{padding:12px 0;border-bottom:1px solid #ddd}.parcel-editor select{width:100%}.manager-stage-track{flex-wrap:wrap}

.packing-menu{margin:12px 0}.packing-menu summary{cursor:pointer;font-size:28px;min-height:44px}.approval-warning{background:#fff3cd;padding:12px;border-radius:8px}.shelves-confirm{display:flex;align-items:flex-start;gap:8px}.shelves-confirm input{width:22px;min-width:22px}.worker-screen [data-correct-picked]{min-height:48px;margin-top:10px}

.order-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.order-tools button{flex:1;min-width:140px;min-height:48px}.phase-paused{background:#e1e4e3;color:#53605a}@media(max-width:400px){.order-tools button{flex-basis:100%}}

#network-addresses svg{display:block;width:220px;max-width:100%;margin:14px auto}.network-url{display:block;font-size:24px;font-weight:bold;overflow-wrap:anywhere}

#workday-menu{margin-left:auto}#workday-menu summary{cursor:pointer}#shift-reminder{background:#fff3cd;padding:10px}.warehouse-form .catalog-result .photo{width:64px;height:64px}.warehouse-form .catalog-result h3{font-size:16px}.warehouse-form .stepper input{min-width:0}.warehouse-create{margin-top:16px}.pause-card .next-order{width:100%}

.phone-entry{display:flex;align-items:center;gap:8px}.phone-entry>span{font-weight:700}.phone-entry input{min-width:0;flex:1}.draft-step{font-weight:700}.warehouse-form .details-content{min-width:0}.warehouse-form .editor-actions{display:flex;gap:8px}.warehouse-form .editor-actions button{flex:1;min-width:0;padding:12px 8px}.warehouse-form .product>div{min-width:0}.warehouse-form h3{overflow-wrap:anywhere}.warehouse-create{margin-top:18px;width:100%}

.warehouse-form [data-cancel-draft]{display:block;margin:16px 0 8px}.warehouse-form small{display:block;margin-top:8px}

.payment-panel{max-width:740px;margin:auto}.payment-total{font-size:26px;font-weight:800}.payment-options{display:grid;grid-template-columns:1fr;gap:12px;margin:20px 0}.payment-options button{min-height:58px;white-space:normal}.payment-panel button{max-width:100%}#payment-copy-text{width:100%;min-height:240px;overflow-wrap:anywhere}.payment-overdue{background:#fee2e2;color:#991b1b}.payment-panel small{display:block}

.payment-proposed{outline:3px solid #d6c5f5;outline-offset:2px}

.phase-payment{background:#475569;color:white}

/* Компактний фізичний збір: спільний для працівника та менеджера. */
.compact-collection header,.compact-collection main>aside,.compact-collection #manager-mobile-header,.compact-collection #workday-menu{display:none!important}
.compact-collection main{display:block;max-width:1050px;padding:0 12px 85px}
.compact-collection #session-bar{padding:4px 12px;margin:0;min-height:44px}
.compact-collection #summary{position:sticky;top:0;z-index:3;background:#f3f5f5;padding:6px 0;border-bottom:1px solid #dce3e0;margin-bottom:6px}
.compact-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.compact-heading .order-details-link{font-size:20px;min-height:36px;padding:0}
.compact-heading strong{font-size:15px;white-space:nowrap}
.compact-tools{display:flex;gap:4px}
.compact-tools button{flex:1;min-width:0;min-height:44px;font-size:12px;padding:5px;line-height:1.15}
.compact-collection #items .compact-item{display:grid;grid-template-columns:48px minmax(0,1fr) 102px;align-items:center;gap:7px;padding:8px;margin-bottom:5px;border-width:1px;border-radius:8px;min-height:112px;scroll-margin-top:110px}
.compact-item .photo{width:48px;height:60px;font-size:10px}
.compact-description{min-width:0;display:grid;gap:3px}
.compact-description h3{font-size:13px;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-description small{font-size:11px;line-height:1.2;overflow-wrap:anywhere;color:#52635d}
.compact-description .compact-result{font-weight:700;color:#22633a}
.compact-controls{display:grid;gap:3px;text-align:center}
.compact-quantity{font-size:23px;line-height:1.1;padding:2px;border-radius:4px}
.compact-quantity.multiple{background:#ffdf69;color:#332b0d}
.compact-controls button{font-size:12px;min-height:36px;padding:5px 4px}
.compact-controls .text-button{min-height:24px;padding:0}
.compact-collection #items .compact-item.done{background:#edf5ee;border-color:#c4d8c7;opacity:.65}
.compact-collection #items .compact-item.short{background:#fff8d9}
.compact-collection footer{padding:8px 12px;display:block}
.compact-collection footer>div{display:none}
.compact-collection footer button{min-height:46px;min-width:0;width:100%}
@media(min-width:800px){.compact-collection #items .compact-item{grid-template-columns:56px minmax(0,1fr) 180px;min-height:96px}.compact-item .photo{width:56px;height:64px}.compact-description h3{font-size:16px}.compact-description small{font-size:13px}.compact-controls{grid-template-columns:64px 1fr;align-items:center}.compact-controls .text-button{grid-column:2}.compact-tools button{flex:0 1 200px;font-size:14px}}

.requisites-set{min-width:0;margin:12px 0}.requisites-set [data-account-editor]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.requisites-set [data-account-editor][hidden]{display:none}#payment-copy-text{width:100%;box-sizing:border-box;min-height:220px;resize:vertical}@media(max-width:600px){.requisites-set [data-account-editor]{grid-template-columns:1fr}}

.manager-settings .requisites-set>label{display:flex;align-items:center;gap:8px;margin:8px 0}.manager-settings .requisites-set input[type=radio]{width:20px;min-height:20px;height:20px;padding:0;margin:0;flex:0 0 20px}.manager-settings .requisites-set [data-account-editor] label{margin:6px 0;min-width:0}.manager-settings .requisites-set [data-account-editor] input{box-sizing:border-box;min-width:0}.requisites-set>.text-button{margin:6px 16px 6px 0}.requisites-set [data-iban-hint]{font-size:12px;line-height:1.3}.requisites-set legend{overflow-wrap:anywhere}
#bank-account-choice{width:100%;min-width:0;max-width:100%}#modal-form:has(#bank-account-choice) label{min-width:0}

.waiting-payment{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #dce3df;overflow-wrap:anywhere}.waiting-payment small{color:#66756e}.waiting-payment .advance-summary{margin:4px 0;font-size:14px}.payment-queue-tools{margin:8px 0 16px}.payment-release{margin-bottom:12px}.payment-release>button{width:100%;min-height:56px}.waiting-payment-list{max-height:65dvh;overflow:auto}.payment-overdue{background:#fff0d6;border-left:4px solid #c2410c;padding:12px}.payment-panel .payment-choices{margin-bottom:16px}

/* Employee selection: dimensions from docs/Макет-компактний-екран.html, screen 1. */
body.compact-selection #session-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:0;margin:0;padding:8px 12px;min-height:0;height:44px;box-sizing:border-box;background:#fff;border-bottom:1px solid #e3e7e4;font-size:11px;white-space:nowrap;max-width:none}
body.compact-selection #signed-user{font-size:11px;flex:none}
body.compact-selection #worker-shift-start{font-size:10px;flex:1;min-width:0;margin-right:4px}
body.compact-selection #session-bar button{font-size:10px;font-weight:400;padding:4px 6px;min-height:26px;height:26px;border:1px solid #c9d0cc;border-radius:6px;line-height:16px;margin:0 0 0 4px;white-space:nowrap}
body.compact-selection #connection:not([hidden]){position:absolute;top:44px;left:0;right:0;z-index:5;background:#ffe7e5;color:#a5281a;font-size:12px;white-space:normal}
body.compact-selection main{display:block;max-width:852px;margin:0 auto;padding:0 0 20px;gap:0}
body.compact-selection aside{padding:0;margin:0}
body.compact-selection .workspace{display:none}
body.compact-selection #orders{display:block;margin:0;padding:0}
body.compact-selection .warehouse-create{display:block;box-sizing:border-box;width:calc(100% - 24px);min-height:36px;height:36px;margin:8px 12px;font-size:13px;font-weight:400;padding:8px;border-radius:8px;line-height:18px}
body.compact-selection .payment-queue-tools{margin:0;padding:5px 12px 0;display:block}
body.compact-selection .payment-queue-tools button{min-height:24px;padding:3px 8px;font-size:11px;line-height:16px;background:#fbf3d0;color:#5e4a07;border:1px solid #ecd98a;border-radius:6px}
body.compact-selection #orders .order-section{display:flex;flex-direction:column;gap:6px;margin:0;padding:0 10px 8px}
body.compact-selection #orders .list-heading{font-size:13px;line-height:18px;font-weight:600;margin:0;padding:8px 2px 2px}
body.compact-selection #orders .order{display:flex;align-items:center;gap:8px;padding:7px 10px;min-height:0;margin:0;border-radius:6px;border-width:0 0 0 4px;box-shadow:none;box-sizing:border-box}
body.compact-selection #orders .order:not(.wait-red):not(.wait-yellow){background:#fff;border-left-color:transparent}
body.compact-selection #orders .selection-order-info{flex:1;min-width:0}
body.compact-selection #orders .selection-order-info strong{display:block;font-size:14px;line-height:18px;margin:0;font-weight:700}
body.compact-selection #orders .selection-order-info small{display:block;font-size:11px;line-height:15px;font-weight:400;margin:0;color:#667573}
body.compact-selection #orders .free-order-actions{display:flex;flex:none;gap:4px;margin:0;padding:0}
body.compact-selection #orders .free-order-actions button{min-height:29px;height:29px;font-size:11px;line-height:15px;padding:7px 8px;border-radius:6px;margin:0;white-space:nowrap}
body.compact-selection #orders .free-order-actions .secondary{font-weight:400}

#worker-day-fop{max-width:900px;margin:0 auto;padding:0 10px;font-size:11px;color:#667573}.day-fop-identity{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:3px 0;font-size:10px}.day-fop-identity button{font-size:10px;min-height:22px;padding:2px 6px;margin-left:auto}#manager-day-fop{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;font-size:12px}#manager-day-fop button{font-size:11px;min-height:28px;padding:4px 8px}
.fiscal-compact{background:#fbf3d0;color:#5e4a07;border:1px solid #ecd98a;border-radius:5px;font-weight:400;padding:3px 6px;margin:3px 0;font-size:12px}.worker-fiscal{box-sizing:border-box;max-height:36px;line-height:14px}.worker-fiscal span,.worker-fiscal small{display:block;font-weight:400}.worker-fiscal small{font-size:10px;line-height:12px}.manager-fiscal{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;line-height:15px}.manager-fiscal button{font-size:10px;min-height:28px;padding:3px 6px}.fiscal-overdue{border-color:#c58e20}.fiscal-overdue:after{content:'понад 15 хв';font-size:10px}.fiscal-success{padding:6px 8px;background:#e2f2e5;color:#276b37;border:1px solid #bfdcc6;border-radius:6px;font-size:12px;font-weight:400}.fiscal-success button{font-size:11px;min-height:26px;padding:3px 8px;margin-left:6px}.ready-print-list article{padding:10px 0;border-bottom:1px solid #dbe3df}.ready-print-list .fiscal-print-actions{gap:6px}.ready-print-list .print-action{font-size:13px;min-height:40px;padding:8px}

.review-order{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #ddd}.review-order small{display:block;font-size:12px}.review-order>div:first-of-type{flex:1;min-width:0}.review-actions{display:flex;gap:6px;flex-wrap:wrap}.review-actions button{font-size:13px;min-height:36px;padding:7px 10px}.review-list h2{font-size:19px}.quantity-dialog-head{display:flex;gap:10px;align-items:center}.quantity-dialog-head img,.quantity-dialog-head .no-photo{width:55px;height:65px;object-fit:contain}.quantity-dialog-head small{display:block}.quantity-dialog-head strong{font-size:15px}#change-quantity{font-size:28px;text-align:center;width:90px}.shortage-preview{display:block;width:min(100%,300px);height:auto;margin:auto}.shortage-reminder{background:#fff4dd}.review-queues{margin-bottom:16px}@media(max-width:700px){.review-order{flex-wrap:wrap}.review-actions{width:100%}.review-order>div{min-width:0}.review-queues textarea,dialog textarea{max-width:100%;box-sizing:border-box}}

.quantity-dialog-head .photo-box{width:55px;height:65px;flex:0 0 55px}.quantity-dialog-head strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Compact buyer, parcel and payment screens; physical action guards stay on server. */
.customer-card-line{display:flex;align-items:center;gap:4px;min-width:0;font-size:10px;line-height:17px;white-space:nowrap}.customer-name{overflow:hidden;text-overflow:ellipsis;min-width:28px;flex:1}.customer-badge{display:inline-block;padding:0 4px;border-radius:4px;background:#ecefed;color:#47534d;font-size:9px;flex:none}.customer-new{background:#e0f1e5;color:#216a3a}.customer-cancelled{background:#fff0df;color:#a4471b}.customer-card-line time{font-size:9px;flex:none}.compact-selection .selection-order-info{display:contents}.compact-selection .order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 6px}.compact-selection .order .selection-order-info>strong{grid-column:1;grid-row:1}.compact-selection .customer-card-line{grid-column:1/-1;grid-row:2}.compact-selection .order .waiting-time{grid-row:3;grid-column:1/-1}.compact-selection .free-order-actions{grid-column:2;grid-row:1;align-self:start}.compact-text-actions{display:flex;gap:16px;align-items:center}.compact-collection .compact-text-actions button{font-size:11px;line-height:18px;min-height:22px;padding:0!important;color:#6b7470;background:transparent;border:0;text-decoration:underline}.compact-confirmed{color:#15803d}.parcel-screen main{padding-bottom:90px!important}.parcel-screen footer{min-height:68px;padding:10px 12px!important;box-sizing:border-box;z-index:30}.parcel-screen footer>div,.parcel-screen #footer-status,.parcel-screen #footer-detail{display:none!important}.parcel-screen footer #finish{display:block;width:100%;min-height:44px}.parcel-screen #manager-mobile-header{position:sticky;top:0;z-index:40;min-height:38px;padding:3px 8px}.parcel-screen #manager-mobile-header button{font-size:11px;padding:4px;min-height:30px}.parcel-screen .workspace,.parcel-screen #summary,.parcel-screen .worker-order{margin:0;padding:8px}.parcel-screen #summary h2{font-size:16px;margin:0}.parcel-screen #summary p,.parcel-screen #summary .stats{margin:3px 0;font-size:11px}.parcel-screen .order-tools{margin:6px 0;gap:5px}.parcel-screen .order-tools button{font-size:11px;min-height:32px;padding:4px 6px}.parcel-editor{padding:0 8px;max-width:600px}.parcel-editor h3{font-size:13px;margin:12px 0 7px}.box-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.box-tiles button{padding:8px 2px;min-height:55px;font-size:12px;border:1px solid #d4ddd7}.box-tiles small{display:block;font-size:9px;line-height:16px}.box-tiles .selected{background:#134E4A;color:white;border-color:#134E4A}.parcel-dimensions{display:flex;gap:7px;align-items:center;font-size:12px;margin:10px 0}.parcel-dimensions label{display:flex;align-items:center;gap:4px;margin:0;font-size:11px}.parcel-dimensions input{width:55px;min-height:34px;padding:4px;font-size:15px}.parcel-dimensions .text-button{padding:0;font-size:11px;min-height:30px}.parcel-editor .parcel-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.parcel-fields label{font-size:10px;margin:0}.parcel-fields input{width:100%;min-width:0;padding:5px;font-size:15px;min-height:34px;box-sizing:border-box}.parcel-place-row{display:flex;align-items:center;gap:4px;border-bottom:1px solid #dde3df}.parcel-place-row.selected{background:#edf4ef}.parcel-place-row button{font-size:11px;padding:7px 3px;min-height:34px}.parcel-place-row button:first-child{flex:1;text-align:left;min-width:0;white-space:normal}.parcel-add{font-size:12px;padding:8px 0;min-height:30px}#parcel-save-state{font-size:10px;color:#6c766e;margin:3px 0}.payment-panel{padding:12px!important;margin:0!important}.payment-panel .payment-heading{font-size:15px;line-height:22px;margin:0 0 8px;white-space:nowrap}.payment-panel p{margin:6px 0;font-size:12px}.payment-panel .payment-options{display:flex;flex-direction:column;gap:7px;margin:12px 0}.payment-panel .payment-options button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;height:42px;max-height:44px;font-size:14px;padding:6px 10px}.payment-panel .payment-options small{font-size:10px;font-weight:normal}.payment-panel .payment-buyer-choice{background:#134E4A;color:#fff;border-color:#134E4A}.payment-panel .secondary{background:#edf0ed;color:#52625b}.payment-panel .payment-options button:disabled{opacity:.4}.payment-panel>button{font-size:13px;min-height:38px;padding:6px 9px}.parcel-screen .summary-top{align-items:center}.parcel-screen #session-bar{margin:0;padding:4px 8px;min-height:36px}.parcel-screen .order-tools button{max-width:100%}

body.compact-selection #orders .order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;padding:5px 8px}body.compact-selection #orders .selection-order-info{display:contents}body.compact-selection #orders .selection-order-info>strong{grid-column:1;grid-row:1}body.compact-selection #orders .selection-order-info>.reference-line{grid-column:1/-1;grid-row:3;margin:0;font-size:10px;line-height:14px}body.compact-selection #orders .free-order-actions{grid-column:2;grid-row:1}body.compact-selection #orders .customer-card-line{grid-column:1/-1;grid-row:2}.parcel-screen main>aside,.parcel-screen .local-note{display:none!important}.parcel-screen main{display:block;max-width:700px;padding:8px 8px 90px!important}.parcel-screen .worker-order{border:0;background:transparent}.parcel-screen #summary .order-details-link{font-size:16px;min-height:26px}.parcel-screen #summary .order-tools{display:flex;flex-wrap:wrap}.parcel-screen .parcel-editor{padding:0}.parcel-screen #manager{margin:6px 0;padding:8px}.parcel-screen #manager-mobile-header{display:flex!important;flex-wrap:nowrap;gap:4px;justify-content:space-between}.parcel-screen #manager-mobile-header[hidden]{display:none!important}.parcel-screen.manager-collect #session-bar{display:none!important}.payment-panel .payment-options .payment-buyer-choice{font-weight:700}.payment-panel .payment-options .payment-buyer-choice small{background:#ffffff24;padding:2px 5px;border-radius:4px}

body.parcel-screen.worker-screen #summary .worker-order,body.parcel-screen #summary .worker-order{padding:0!important;margin:0 0 5px!important}body.parcel-screen #summary .summary-top{display:flex!important;flex-direction:row!important;align-items:center;gap:5px;margin:0!important}body.parcel-screen #summary .summary-top h2{flex:1;min-width:0;margin:0;font-size:15px}body.parcel-screen #summary .summary-top button{padding:0;min-height:26px}body.parcel-screen #summary .tag{font-size:11px;padding:3px 5px}body.parcel-screen #summary .order-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:5px;margin:5px 0!important}body.parcel-screen #summary .order-tools button{width:auto!important;flex:1;min-height:30px;font-size:10px;line-height:13px;padding:4px!important;margin:0!important}body.parcel-screen #summary>small{font-size:10px}body.parcel-screen #summary>button{font-size:11px;padding:2px;min-height:24px}body.parcel-screen #summary{padding:0!important;margin:0 0 5px!important}body.parcel-screen #summary .stats{margin:3px 0!important}body.parcel-screen #summary>.summary-top>h2 button{font-size:15px}body.parcel-screen .workspace{padding:0!important}.manager-order-table .customer-card-line{white-space:normal;flex-wrap:wrap}.manager-order-table .customer-name{flex-basis:100%}

body.parcel-screen #summary .order-tools button{min-width:0!important;flex:1 1 0!important;white-space:normal;overflow-wrap:anywhere}body.parcel-screen #summary .worker-order{min-height:0!important}body.parcel-screen footer #finish{min-width:0!important}body.parcel-screen .workspace{min-width:0}body.parcel-screen .parcel-dimensions{flex-wrap:wrap}

body.parcel-screen.manager-screen #session-bar{display:none!important}.manager-orders-table .customer-card-line{white-space:normal;flex-wrap:wrap}.manager-orders-table .customer-name{flex-basis:100%;max-width:100%}

/* 21.10: larger product photos and a viewer independent of editing forms. */
.photo-trigger{display:block;flex:none;min-height:0;min-width:0;margin:0;padding:0;border:0;background:#f1f3f3;overflow:hidden;cursor:zoom-in}.photo-trigger:hover{filter:none}.photo-trigger .photo{display:block}.photo-trigger:disabled{opacity:1;cursor:default}.compact-collection .compact-item{grid-template-columns:110px minmax(0,1fr);gap:6px 9px;align-items:start}.compact-collection .compact-item>.photo-box,.compact-collection .compact-item>.no-photo{grid-column:1;grid-row:1/span 2;width:110px;height:110px;margin:0;align-self:start}.compact-collection .compact-item .photo{width:110px;height:110px;object-fit:contain}.compact-collection .compact-description{grid-column:2;grid-row:1;min-width:0}.compact-collection .compact-controls{grid-column:2;grid-row:2;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px;min-width:0;width:auto}.compact-collection .compact-controls .compact-quantity{font-size:21px;white-space:nowrap;padding:5px;flex:none}.compact-collection .compact-controls button{font-size:12px;min-height:36px;min-width:0;padding:6px;flex:1;max-width:160px}.compact-collection .compact-description h3{font-size:13px;line-height:17px}.compact-collection .compact-description small{font-size:10px;line-height:14px;overflow-wrap:anywhere}.compact-collection .compact-text-actions{gap:16px}.compact-collection .compact-text-actions button{white-space:nowrap}.product{grid-template-columns:110px minmax(0,1fr);gap:12px}.product .photo-box,.product>.photo,.product .photo-box .photo{width:110px;height:110px;min-height:0;margin:0;object-fit:contain}.quantity-dialog-head .photo-box,.quantity-dialog-head .photo,.quantity-dialog-head .no-photo{width:110px;height:110px;flex:0 0 110px}.quantity-dialog-head{align-items:start}.quantity-dialog-head>div{min-width:0}.order-editor{width:min(650px,96vw);max-width:96vw;padding:15px}.order-editor h2{font-size:18px}.order-editor-items{display:grid;gap:8px}.order-editor-item{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px;padding:8px 0;border-bottom:1px solid #e0e6e2}.order-editor-item .photo-box,.order-editor-item .photo{width:110px;height:110px}.order-editor-item strong{display:block;font-size:13px;line-height:17px}.order-editor-item small{display:block;font-size:11px;margin:6px 0}.editor-item-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.editor-item-actions button{font-size:12px;min-height:32px;padding:5px 7px}.order-editor .editor-actions{position:sticky;bottom:0;background:white;padding-top:8px}.order-editor>form>p{font-size:12px}
#photo-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100vw;height:100dvh;max-width:none;max-height:none;background:#111;color:white;overflow:hidden;overscroll-behavior:contain;z-index:1000}#photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}#photo-dialog::backdrop{background:#111}.photo-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px max(12px,env(safe-area-inset-right)) 10px}.photo-viewer-head strong{font-size:15px;line-height:20px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.photo-viewer-head small{display:block;margin-top:5px;color:#ccd1ce;font-size:12px}.photo-viewer-head button{background:transparent;color:white;font-size:25px;width:44px;min-height:44px;margin:0;padding:3px;flex:none}.photo-viewer-stage{display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;min-height:0;background:#111}.photo-viewer-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;user-select:none;pointer-events:none;will-change:transform}.photo-viewer-controls{display:flex;align-items:center;justify-content:center;gap:15px;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#191919}.photo-viewer-controls span{font-size:12px;color:#ddd}.photo-viewer-controls button{font-size:25px;min-height:44px;width:44px;padding:0;margin:0;background:#333;color:white}

.compact-collection #items .compact-item{grid-template-columns:110px minmax(0,1fr);gap:6px 9px;align-items:start}.compact-collection #items .compact-item>.photo-box{width:110px;max-width:none}.compact-collection #items .compact-item .compact-controls{width:auto;min-width:0}.order-editor-item .photo-trigger{margin:0;padding:0}

.order-financial{margin:12px 0;padding:12px;border:1px solid #d7dfdc;border-radius:10px}.order-financial h3{font-size:15px;margin:0 0 8px}.financial-line{padding:8px 0;border-bottom:1px solid #e3e8e5}.financial-line>strong,.financial-line>small{display:block}.financial-line>strong{font-size:13px}.financial-line>small{font-size:11px;color:#65716c}.financial-line dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0}.financial-line dt{font-size:11px;color:#65716c}.financial-line dd{margin:0;font-size:12px;overflow-wrap:anywhere}.financial-totals{font-size:13px;margin:8px 0}.financial-totals>div{display:flex;justify-content:space-between;gap:8px}.financial-totals dd{margin:0;text-align:right}

.review-shell{margin-bottom:18px;align-items:start;gap:14px}.review-shell .quick-list{padding:12px;border:1px solid #dce3e0;border-radius:14px;background:#fff;margin-bottom:12px}.quick-list>h2{font-size:17px;margin:0 0 8px}.quick-bulk{padding:7px 10px;min-height:32px;font-size:12px;margin-bottom:8px}.review-order.quick-card{display:flex;gap:7px;align-items:start;padding:10px;border:1px solid #dce3e0;border-radius:11px;margin:0 0 7px;cursor:pointer;background:white}.quick-card.is-selected{outline:2px solid #9db3ef;outline-offset:-1px}.quick-card-body{flex:1;min-width:0}.quick-card-top{display:flex;align-items:start;justify-content:space-between;gap:7px}.quick-card-top>.quick-title{font-size:14px;text-align:left;min-width:0;white-space:normal;line-height:1.3;padding:0;min-height:0}.quick-card-top>strong{font-size:13px;white-space:nowrap}.quick-thumbs{display:flex;gap:4px;margin:7px 0}.quick-thumb{width:var(--thumb);height:var(--thumb);flex:0 0 var(--thumb);display:inline-flex;align-items:center;justify-content:center;background:#f3f5f3;border-radius:6px;overflow:hidden;color:#8b9690}.quick-thumb img{width:100%;height:100%;object-fit:contain}.quick-more-count{font-size:12px;display:flex;align-items:center;padding:0 4px}.quick-badges{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0}.quick-badges>span{font-size:11px;border-radius:5px;padding:3px 6px}.quick-recommend,.quick-reason{background:#f4e1aa;color:#72521b}.quick-new{background:#d9ecd1;color:#3b682c}.quick-repeat{background:#edf0ee;color:#68726d}.quick-cancelled{background:#f4d9d6;color:#9a3e34}.quick-card-body>small{font-size:11px;color:#68726d}.review-side{position:sticky;top:12px;padding:15px;border:1px solid #dce3e0;border-radius:14px;background:#fff;min-width:0}.review-side h2,.review-bottom-sheet h2{font-size:16px;margin:0 0 5px}.review-side header p,.review-bottom-sheet header p{font-size:12px;color:#65716a;margin:3px 0}.quick-reason{padding:10px;border-radius:10px;font-size:12px;margin:12px 0}.quick-reason ul{padding-left:17px;margin:5px 0 0}.quick-products>article{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e5e9e6;padding:9px 0}.quick-products>article>div{flex:1;min-width:0}.quick-products strong{font-size:12px;display:block}.quick-products small{font-size:11px;color:#68736d;display:block}.quick-products>article>span:last-child{font-size:12px;white-space:nowrap}.quick-total{font-size:13px;margin:10px 0}.quick-actions{display:flex;gap:6px;flex-wrap:wrap}.quick-actions button{font-size:12px;padding:8px 10px;min-height:34px}.review-bottom-sheet{position:fixed;inset:auto 0 0;margin:0;max-width:100%;width:100%;max-height:88dvh;box-sizing:border-box;border:0;border-radius:18px 18px 0 0;padding:15px 14px 22px;overflow:auto}.review-bottom-sheet::backdrop{background:#0006}.quick-sheet-close{display:block;margin:0 0 10px auto;padding:5px 9px;min-height:30px;font-size:12px}#settings-pane-advance{padding:16px}#advance-rules-form{max-width:650px}#advance-rules-form>input{width:180px;margin-bottom:12px}#advance-rules-form input[type=checkbox]{width:auto}#advance-rules-form label{margin-top:10px}@media(min-width:900px){.review-shell{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,1.12fr)}}@media(max-width:899px){.review-side{display:none}.quick-card-top>.quick-title{font-size:13px}.quick-actions button{flex:1 1 42%}.review-shell{display:block}}

.review-side>header,.review-bottom-sheet>header{display:block;height:auto;min-height:0;padding:0 0 8px;border:0;background:transparent}.review-side>header h2,.review-bottom-sheet>header h2{line-height:1.4}

.customer-message-tools{margin:12px 0;padding:10px 0;border-top:1px solid #e0e5e2}.customer-message-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}.customer-message-buttons button{min-width:0;min-height:40px;padding:8px;font-size:13px}.customer-message-tools small{display:block;color:#68736d;font-size:11px;line-height:1.45}.customer-message-receipt{font-size:12px;line-height:1.5;color:#134e4a;overflow-wrap:anywhere}

/* Workflow inset is measured from the actual fixed footer, never a guessed 210px. */
body.workflow-screen main,body.workflow-screen.parcel-screen main,body.workflow-screen.compact-collection main{padding-bottom:calc(var(--workflow-footer-height,0px) + 10px)!important;min-height:0}
body.workflow-screen footer{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box}
body.workflow-screen .workspace{min-width:0;margin-bottom:0}body.workflow-screen #items>.card:last-child{margin-bottom:0}
.compact-heading{min-width:0;flex-wrap:nowrap}.compact-heading>.order-details-link{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px}.compact-heading>strong{flex:0 0 auto;white-space:nowrap;font-size:13px}
.summary-top h2{min-width:0;overflow-wrap:anywhere}.payment-panel .payment-heading{white-space:normal;overflow-wrap:anywhere}
#workflow-warnings:empty{display:none}.workflow-warning{display:flex;gap:6px;align-items:start;background:#fff3cd;border:1px solid #efdb99;border-radius:6px;padding:5px 7px;margin:5px 0;color:#664f17;font-size:12px;line-height:17px}.workflow-warning>:first-child{flex:1;min-width:0;margin:0!important;padding:0!important;background:transparent!important;max-width:none!important;position:static!important;box-shadow:none!important;color:inherit!important}.workflow-warning .warning-close{flex:none;font-size:18px;min-height:24px;min-width:24px;padding:0;background:transparent;color:#664f17}.workflow-warning button:not(.warning-close){font-size:11px;min-height:26px;padding:3px 6px}

body.workflow-screen>#notice.error,body.workflow-screen>#shift-reminder{display:none!important}

.compact-heading>.compact-order-number{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.compact-heading>strong:last-child{flex:0 0 auto;white-space:nowrap}

.worker-article{display:inline-block!important;font:700 17px/1.3 ui-monospace,Consolas,monospace!important;color:#123d36!important;background:#e4eee7;border-radius:4px;padding:3px 5px;width:max-content;max-width:100%;overflow-wrap:anywhere}.worker-article b{font-weight:800}.worker-cell{display:inline-block;font-size:11px!important;color:#52615a;margin-left:5px}.shelf-return-screen main>aside{display:none!important}.shelf-return-screen main{display:block;padding-top:8px}.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.shelf-heading h2{font-size:19px;margin:0}.shelf-heading>strong{white-space:nowrap}.shelf-context{font-size:12px;margin:6px 0;overflow-wrap:anywhere}.shelf-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:8px;border:1px solid #dce3df;border-radius:8px;padding:9px;margin:7px 0;background:#fff}.shelf-row.done{background:#e9f5e9;border-color:#86ba92}.shelf-row .photo-box,.shelf-row .photo,.shelf-row .no-photo{width:56px;height:56px;min-height:0}.shelf-row h3{font-size:13px;line-height:17px;margin:0 0 5px}.shelf-row>div{min-width:0}.shelf-quantity{display:block;font-size:23px;line-height:28px;margin-top:5px}.shelf-row button:not(.photo-trigger){font-size:12px;min-height:38px;padding:7px;align-self:center}.shelf-return-screen footer{display:flex;flex-direction:column-reverse;gap:3px;padding:8px 12px}.shelf-return-screen footer>div{display:block!important}.shelf-return-screen #footer-status{display:none}.shelf-return-screen #footer-detail{font-size:11px}.shelf-return-screen footer #finish{min-width:0;width:100%;min-height:44px}

.worker-identity{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;min-width:0}.worker-identity .worker-cell{margin-left:0}

.compact-stock{font-size:11px;line-height:1.35}.boxes-count{font-size:11px;color:#63706d;font-weight:400;display:inline-block;margin-left:6px}
