*{box-sizing:border-box}body{margin:0;color:#192435;background:#f7f8fa;font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:16px;min-height:100vh}button,input{font:inherit}button{cursor:pointer;background:white;border:1px solid #dce2e8;border-radius:7px;padding:10px 16px;color:inherit}button:focus-visible,input:focus-visible{outline:3px solid #ed8b42;outline-offset:2px}button:hover{background:#f1f3f6}aside{position:fixed;inset:0 auto 0 0;width:235px;background:#101d2c;color:white;display:flex;flex-direction:column;padding:25px 12px}.brand{text-align:left;background:none;border:0;color:white;padding:8px 12px 30px;border-bottom:1px solid #344354;border-radius:0}.brand strong{font-size:23px;letter-spacing:1px}.brand span{display:block;color:#f58a35;letter-spacing:4px;font-size:13px}nav{padding-top:20px}nav button{display:block;width:100%;text-align:left;border:0;color:#e1e8ef;background:none;border-radius:7px;margin:5px 0;padding:13px 15px}nav button:hover,nav button.active{background:#2b3b4d;color:white}nav button.active{box-shadow:inset 4px 0 #f47621}nav .sub{padding-left:35px;font-size:15px}nav .caret{float:right}nav .group{font-weight:600}.sidebottom{margin-top:auto;padding:14px;color:#acb8c4;font-size:13px}#workspace{margin-left:235px;min-height:100vh}header{display:flex;align-items:center;gap:20px;min-height:79px;padding:16px 30px;background:white;border-bottom:1px solid #e0e5ea;flex-wrap:wrap}#heading{font-size:23px;font-weight:720}#clock{margin-left:auto;color:#5b687b;font-size:15px;white-space:nowrap}.modes{display:flex;gap:5px}.modes button{font-size:14px;padding:8px 10px}.modes .active{background:#e8edf1;font-weight:650}#menu{display:none}main{padding:26px 30px;min-height:calc(100vh - 79px)}h1,h2,p{margin-top:0}h1{font-size:26px}.bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.bar h1{margin:0}.primary{background:#ed6d19;color:white;border-color:#ed6d19;font-weight:650}.primary:hover{background:#db6010}.card{background:white;border:1px solid #dce2e8;border-radius:10px;padding:20px}.muted{color:#667587;font-size:14px;line-height:1.55}.empty{padding:44px 12px;text-align:center;color:#697688}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:17px;align-items:center}.filters input{max-width:100%;min-width:140px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{text-align:left;padding:15px 12px;border-bottom:1px solid #e6ebef}th{background:#f0f3f6;font-size:14px}td{font-size:15px}.badge{border-radius:20px;background:#e3f5e7;color:#16753d;padding:4px 10px}input{display:block;padding:12px 13px;border:1px solid #cbd5e1;border-radius:7px;width:100%;background:white;color:#182536}dialog{width:min(570px,94vw);border:0;border-radius:14px;padding:24px;color:inherit;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#0006}.dialogHead,.buttons{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialogHead h2{font-size:20px;margin:0}.close{font-size:24px;padding:2px 12px;border:0}label{display:block;margin:15px 0;line-height:1.8}fieldset{border:1px solid #dce2e8;border-radius:8px;margin:15px 0;padding:10px}#permissions{display:grid;grid-template-columns:1fr 1fr;gap:5px}#permissions label{display:flex;align-items:center;gap:7px;margin:4px 0}#permissions input{width:18px;height:18px}.buttons{justify-content:flex-end}#formError{color:#b91c1c;font-size:14px}.notice{border-left:3px solid #ed6d19;padding:12px;background:#fff7ed;margin-bottom:20px;color:#7c4a19}@media(max-width:760px){aside{transform:translateX(-100%);z-index:5;transition:transform .2s}aside.open{transform:none}#workspace{margin:0}#menu{display:block;padding:6px 9px}header{padding:12px 15px;gap:10px}#clock{width:100%;order:3;margin:0;font-size:14px}.modes{margin-left:auto}main{padding:18px 15px}#heading{font-size:20px}.card{padding:15px}.filters{gap:8px}.bar{flex-wrap:wrap}.bar h1{font-size:22px}}
#accountStatus{font-size:14px;align-self:center;color:#526179}#statusField select{margin-left:12px;padding:8px;border:1px solid #cbd5e1;border-radius:5px;font:inherit}#loginError{color:#b91c1c;font-size:14px}[hidden]{display:none!important}
/* V3: date stays next to the section title; account actions are grouped. */
#clock{font-size:20px;margin-left:22px;white-space:nowrap;color:#526179;font-weight:500}
.user-area{position:relative;margin-left:auto}
#avatarMenu{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:7px 5px;font-weight:650}
#avatarMenu:hover{background:#f2f5f8}
.avatar{width:36px;height:36px;border-radius:50%;background:#172a3e;color:white;display:grid;place-items:center;font-size:17px}
#accountStatus{font-size:15px;color:#22354a}
.chevron{font-size:18px;color:#667587}
#accountMenu{position:absolute;right:0;top:calc(100% + 8px);width:184px;background:white;border:1px solid #dce2e8;border-radius:9px;padding:6px;box-shadow:0 8px 28px #14253e20;z-index:10}
#accountMenu button{display:block;width:100%;text-align:left;border:0;background:white;padding:12px;font-size:15px}
#accountMenu button:hover{background:#edf1f5}
#signOutOwner{color:#b42318}
@media(max-width:760px){#clock{font-size:20px;width:100%;order:3;margin:0;white-space:normal}#accountStatus{font-size:14px}.user-area{margin-left:auto}.avatar{width:34px;height:34px}}
.preview-note{margin-bottom:18px;color:#617182;font-size:14px;padding:10px 14px;border:1px solid #dce2e8;background:#f0f4f8;border-radius:7px}
.order-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat{text-align:left;padding:17px 20px;background:#fff;display:flex;align-items:center;justify-content:space-between;min-height:76px}.stat strong{font-size:28px}.stat.pending{border-left:4px solid #e6a13f}.stat.confirmed{border-left:4px solid #30a66c}.stat.rejected{border-left:4px solid #d25555}.stat.selected{background:#e8edf2}.orderFilters{align-items:end}.orderFilters input[type=search]{max-width:600px;min-width:min(210px,100%);width:min(600px,100%);flex:1 1 300px}.orderFilters label{margin:0;font-size:13px;color:#536579}.orderFilters select,.order-grid textarea,#orderForm textarea{display:block;width:100%;font:inherit;padding:11px 13px;border:1px solid #cbd5e1;border-radius:7px;background:white}.orderFilters select{min-height:45px}.orderFilters button{white-space:nowrap}.compact{padding:7px 11px;font-size:14px;margin-right:5px}.status-pending,.status-confirmed,.status-rejected{display:inline-block;padding:5px 10px;border-radius:6px;font-size:14px;font-weight:650;white-space:nowrap}.status-pending{background:#fff3d8;color:#8b5800}.status-confirmed{background:#e2f5e8;color:#14763a}.status-rejected{background:#fee7e7;color:#b42318}.order-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto}.wo-heading{display:flex;justify-content:space-between;align-items:center;background:#eef2f6;margin:18px 0;padding:13px 16px;border-radius:7px}.wo-heading strong{font-size:23px}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.order-grid label{margin:8px 0}.order-grid input[readonly],.order-grid textarea[readonly]{background:#f7f9fb}.required,#orderError{color:#b42318}.reject{border-color:#e5b0b0;color:#b42318}.calendar-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;margin:12px 0}.calendar-card>div{background:#f4f7f9;border:1px solid #dce2e8;padding:12px;border-radius:7px}.calendar-card ul{padding-left:16px;font-size:14px}@media(max-width:760px){.order-stats{gap:8px}.stat{padding:12px 8px;flex-direction:column;align-items:flex-start}.stat strong{font-size:23px}.order-grid{grid-template-columns:1fr}.orderFilters input[type=search]{max-width:100%;width:100%}.orderFilters label{flex:1}.order-dialog{padding:16px}}

/* V5: common order filter control height, aligned to appointment date field. */
.orderFilters{--order-control-height:52px;align-items:flex-end}
.orderFilters input,.orderFilters select,.orderFilters button{height:var(--order-control-height);min-height:var(--order-control-height);box-sizing:border-box;line-height:normal;font-size:16px;padding:0 13px;border-radius:7px}
.orderFilters input[type=date]{min-width:142px}
.orderFilters select{min-width:88px}
.order-dialog{width:min(1200px,96vw);max-height:94vh}
.customer-order-fields{margin-top:18px}.order-row{display:grid;gap:12px;align-items:end}.order-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.order-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-order-fields label{font-size:15px;font-weight:650;margin:8px 0;line-height:1.6}.customer-order-fields input{font-size:16px;font-weight:400;height:52px;min-width:0}.customer-order-fields textarea{display:block;width:100%;font:inherit;font-weight:400;border:1px solid #cbd5e1;border-radius:7px;padding:12px;resize:vertical}.field-label{font-size:15px;font-weight:650;display:block;margin-top:8px}.date-time-pair,.pickup-time{display:flex;gap:8px}.date-time-pair label,.pickup-time label{flex:1;min-width:0;font-size:0}.smart-fill{padding:14px;background:#f5f7fa;border:1px solid #dce2e8;border-radius:8px}.smart-fill .dialogHead{margin-bottom:12px}.upload-zone{min-height:125px;border:1px dashed #9eb5c8;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:15px;color:#43556a;background:white}.upload-zone img{max-width:100%;max-height:220px;object-fit:contain}.upload-zone small{display:block;color:#64748b}.smart-fill p{margin:8px 0 0}.pod-zone{background:#f5f7fa;cursor:pointer;min-height:100px}#imageFile[hidden],#podFile[hidden]{display:none}
@media(max-width:760px){.order-row.three,.order-row.two{grid-template-columns:1fr;gap:0}.date-time-pair,.pickup-time{flex-wrap:wrap}.date-time-pair label,.pickup-time label{min-width:120px}.order-dialog{width:96vw}}
.order-dialog #orderForm>.dialogHead{margin-bottom:20px}.wo-inline{display:inline-block;font-size:15px;font-weight:600;color:#667587;margin-left:14px;white-space:nowrap}.order-title-actions{display:flex;align-items:center;gap:12px}.order-dialog #orderForm>.dialogHead h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.customer-order-table{min-width:1450px;white-space:normal}.customer-order-table th,.customer-order-table td{border-right:1px solid #e5e9ed;padding:12px 10px;font-size:16px;vertical-align:middle}.customer-order-table th{white-space:nowrap}.customer-order-table .date-group th{background:#f4f6f8;font-weight:800;font-size:20px;text-align:left;padding:10px 12px}.customer-order-table td:nth-child(8){min-width:220px}.customer-order-table td:nth-child(10),.customer-order-table td:nth-child(11){min-width:180px;overflow-wrap:anywhere}.wo-link,.copy-isa{border:0;color:#2665a0;background:transparent;padding:3px 5px;white-space:nowrap}.wo-link{text-decoration:underline}
.ocr-result-card{display:grid;grid-template-columns:minmax(120px,210px) 1fr;gap:20px;align-items:center;padding:10px 0}.ocr-thumb{max-width:100%;max-height:170px;object-fit:contain;border:1px solid #d1dae3;border-radius:5px}.ocr-results-list label{display:flex;align-items:center;gap:7px;margin:5px 0;font-size:15px;line-height:1.5}.ocr-results-list input{width:18px;height:18px;margin:0}.ocr-results-list button{margin-top:8px}#ocrResults[hidden]{display:none}@media(max-width:760px){.ocr-result-card{grid-template-columns:1fr}.ocr-thumb{max-height:110px}}
.ocr-thumb-toggle{background:transparent;border:0;padding:0;display:block;text-align:left;cursor:zoom-in;max-width:100%}.ocr-thumb-toggle:hover{background:transparent}.ocr-thumb-toggle .ocr-thumb{display:block;width:100%;height:auto}.ocr-result-card.image-expanded{grid-template-columns:1fr}.image-expanded .ocr-thumb-toggle{cursor:zoom-out;width:100%}.image-expanded .ocr-thumb{width:100%;max-width:100%;max-height:none;object-fit:contain}
.appointment-picker{position:relative;margin:8px 0}.appointment-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;gap:10px;text-align:left;border:1px solid #cbd5e1;font-size:16px;padding:0 13px}.appointment-trigger #appointmentDisplay{color:#64748b}.appointment-trigger #appointmentDisplay.has-value{color:#182536}.appointment-popover{position:absolute;z-index:15;top:100%;left:0;min-width:min(375px,84vw);background:#fff;border:1px solid #dce2e8;border-radius:8px;padding:14px;box-shadow:0 12px 30px #0002}.appointment-popover[hidden]{display:none}.appointment-picker-grid{display:grid;grid-template-columns:minmax(130px,2fr) 1fr 1fr;gap:8px}.appointment-picker-grid label{margin:0}.appointment-picker-grid select,.pickup-slot select{height:52px;min-width:0;width:100%;font:inherit;font-weight:400;border:1px solid #cbd5e1;border-radius:7px;padding:0 9px;background:#fff;color:#192435}.appointment-popover .primary{width:100%;margin-top:10px}.picker-error{font-size:13px;margin:0;color:#b42318}.picker-error:empty,#imageNote:empty{display:none}.pickup-to{align-self:center;font-size:14px}.pickup-time .pickup-slot{font-size:16px}.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.pickup-time{align-items:center}.pickup-time label:first-child{flex:1.3}
@media(max-width:760px){.appointment-popover{min-width:0;width:100%}.pickup-time .pickup-slot{min-width:100px}}
.ocr-result-card{grid-template-columns:minmax(200px,340px) minmax(0,1fr);gap:30px}.ocr-thumb-frame{position:relative;min-width:0}.ocr-thumb-toggle .ocr-thumb{max-height:250px}.ocr-remove{position:absolute;top:5px;right:5px;width:23px;height:23px;min-width:23px;min-height:23px;padding:0;line-height:20px;border:1px solid #dce2e8;border-radius:5px;background:#fff;color:#4b5563;font-size:16px}.ocr-original-barcode{display:block;max-width:200px;max-height:64px;object-fit:contain;margin-left:15px;flex-shrink:0}.ocr-results-list label{flex-wrap:wrap}.image-expanded .ocr-thumb-toggle .ocr-thumb{max-height:none}.original-barcode img{display:block;max-width:100%;max-height:80px;object-fit:contain}.original-barcode img[hidden]{display:none}.appointment-barcode-row{align-items:start}
@media(max-width:760px){.ocr-result-card{grid-template-columns:1fr;gap:12px}.ocr-original-barcode{margin-left:0}}
.ocr-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.ocr-result-card{position:relative}.ocr-result-card>.ocr-actions{position:absolute;right:0;top:0;z-index:1}.ocr-result-card:not(.image-expanded) .ocr-results-list label:nth-child(-n+2){padding-right:210px}.ocr-result-card.image-expanded>.ocr-actions{position:static;grid-row:1;justify-self:end}.ocr-result-card.image-expanded .ocr-thumb-frame{grid-row:2}
@media(max-width:900px){.ocr-result-card>.ocr-actions{position:static;grid-row:1;grid-column:1/-1;justify-self:end}.ocr-result-card:not(.image-expanded) .ocr-results-list label:nth-child(-n+2){padding-right:0}}
#ocrActionsHome:not(:empty){margin-top:10px}
#imageDrop[hidden]{display:none}
.smart-fill[hidden],.reset-appointment[hidden]{display:none}.key-fields.has-reset{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.reset-appointment{height:52px;margin:8px 0;white-space:nowrap;padding:0 16px}
@media(max-width:760px){.key-fields.has-reset{grid-template-columns:1fr}.reset-appointment{justify-self:end;height:44px;margin-top:0}}
.warehouse-dialog{width:min(640px,94vw)}.warehouse-dialog select,.warehouse-dialog textarea{display:block;width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:12px;background:white;color:#192435}.warehouse-dialog #warehouseFeedback{color:#b42318;font-size:14px}
.warehouse-address-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(80px,1fr) minmax(110px,1fr);gap:12px}.warehouse-address-row label{margin-top:0}.warehouse-address-row select{height:52px}
@media(max-width:520px){.warehouse-address-row{grid-template-columns:1fr 1fr}.warehouse-address-row label:first-child{grid-column:1/-1}}
.warehouse-list-dialog{width:min(1200px,95vw);max-height:90vh;overflow:auto}.warehouse-list-actions{display:flex;align-items:center;gap:12px}.warehouse-list-dialog table{min-width:850px;white-space:normal}.warehouse-list-dialog td{overflow-wrap:anywhere}.warehouse-list-dialog th{white-space:nowrap}.warehouse-disabled{background:#e8ebef;color:#64748b}.warehouse-list-dialog .dialogHead{margin-bottom:12px}

.customer-dialog{width:min(980px,96vw);max-height:92vh;overflow:auto}.customer-section{border:1px solid #dfe4e9;border-radius:10px;padding:18px;margin:14px 0;background:#fff}.customer-section h3,.customer-section h4{margin:0 0 12px}.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-address{display:grid;grid-template-columns:2fr 1fr 80px 130px;gap:12px}.customer-warehouse{padding:14px;border:1px solid #e3e7eb;border-radius:8px;margin-top:12px}.customer-same{display:flex!important;align-items:center;gap:8px;margin:8px 0 14px}.customer-same input{width:auto!important;min-height:0!important;height:auto!important}.customer-detail{border-top:1px solid #ddd;padding:8px 0;line-height:1.5} .customer-dialog input,.customer-dialog select,.customer-dialog textarea{width:100%;box-sizing:border-box}.customer-dialog label{margin-bottom:10px;display:block}.customer-dialog .customer-same input{width:auto}.customer-dialog h4{font-size:14px}.customer-dialog .dialogHead{margin-bottom:8px}@media(max-width:650px){.customer-grid,.customer-address{grid-template-columns:1fr 1fr}.customer-dialog{max-width:96vw}.customer-section{padding:12px}}@media(max-width:400px){.customer-grid,.customer-address{grid-template-columns:1fr}}

/* Customer editor: consistent controls and compact card rhythm. */
.customer-dialog{width:min(1080px,95vw);max-height:90vh;padding:0;background:#f4f6f9;scrollbar-color:#b9c3ce transparent;scrollbar-width:thin}
#customerForm{padding:0 22px;margin:0}
#customerForm>.dialogHead{position:sticky;top:0;z-index:2;background:#fff;margin:0 -22px 16px;padding:18px 24px;border-bottom:1px solid #e1e6ec}
#customerForm>.dialogHead h2{font-size:22px;font-weight:740}
.customer-section{padding:18px 20px;margin:0 0 14px;border:1px solid #e0e5eb;border-radius:12px;box-shadow:0 2px 8px #15283d06}
.customer-section>h3,.customer-section>.dialogHead>h3{font-size:19px;line-height:24px;font-weight:740;margin:0 0 12px;display:flex;align-items:center;gap:9px}
.customer-section>h3:before,.customer-section>.dialogHead>h3:before{content:"";width:4px;height:20px;border-radius:4px;background:#ed6d19}
.customer-section>.dialogHead>h3{margin:0}
.customer-section h4{font-size:14px;font-weight:650;color:#536479;margin:8px 0}
.customer-grid,.customer-address{gap:12px;align-items:start}
.customer-address{grid-template-columns:minmax(0,2.2fr) minmax(0,1.1fr) minmax(88px,.5fr) minmax(108px,.65fr)}
.customer-dialog label{font-size:14px;font-weight:600;color:#36465a;line-height:1.5;margin:0 0 10px}
.customer-dialog input:not([type=checkbox]),.customer-dialog select,.customer-dialog textarea{display:block;width:100%;font:inherit;font-size:16px;font-weight:400;color:#192435;padding:11px 12px;margin-top:5px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;min-width:0}
.customer-dialog input:not([type=checkbox]),.customer-dialog select{height:52px;min-height:52px}
.customer-dialog textarea{min-height:76px;resize:vertical;line-height:1.5}
.customer-dialog input:disabled,.customer-dialog select:disabled{background:#edf1f5;color:#546579;opacity:1}
.customer-dialog input:focus,.customer-dialog select:focus,.customer-dialog textarea:focus{outline:2px solid #ed8b42;outline-offset:1px}
.customer-warehouse{border:1px solid #dee5ec;background:#fafbfd;padding:14px 16px;margin-top:12px;border-radius:9px}
.customer-warehouse>.dialogHead{margin-bottom:9px}
.customer-warehouse>.dialogHead h4{margin:0;font-size:16px;color:#22354a}
.customer-warehouse>.dialogHead button{font-size:14px;padding:7px 12px;color:#a33b31;background:white}
.customer-dialog .customer-same{display:flex!important;gap:9px;align-items:center;font-weight:500;background:#edf3f8;border-radius:6px;padding:9px 10px;margin:0 0 12px}
.customer-dialog .customer-same input{appearance:auto;width:18px!important;height:18px!important;margin:0;accent-color:#ed6d19;flex-shrink:0}
#addCustomerWarehouse{font-size:14px;font-weight:650;color:#ba5716;border-color:#efc9ad;background:#fff8f2}
#customerError{color:#b42318;margin:0;font-size:14px}
#customerError:not(:empty){padding:9px 0}
#customerForm>.buttons{position:sticky;bottom:0;background:#fff;margin:0 -22px;padding:14px 22px;border-top:1px solid #e1e6ec;z-index:2}
#customerForm>.buttons button{min-width:110px;min-height:44px}
@media(max-width:650px){#customerForm{padding:0 12px}#customerForm>.dialogHead,#customerForm>.buttons{margin-left:-12px;margin-right:-12px;padding:12px 14px}.customer-section{padding:12px}.customer-warehouse{padding:12px}.customer-address,.customer-grid{grid-template-columns:1fr 1fr}.customer-address label:first-child{grid-column:1/-1}}
@media(max-width:400px){.customer-address,.customer-grid{grid-template-columns:1fr}.customer-address label:first-child{grid-column:auto}}

.address-lookup{position:relative}
.address-suggestions{position:absolute;top:100%;left:0;right:0;min-width:260px;max-width:90vw;z-index:8;background:white;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 6px 24px #14253e26;overflow:hidden}
.address-choice{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #edf1f5;border-radius:0;padding:10px 12px;font-size:14px;font-weight:500;white-space:normal;line-height:1.4}
.address-choice:hover,.address-choice.active{background:#fff4e9;color:#9b4715}
.address-hint{padding:10px 12px;color:#667587;font-size:13px;font-weight:400}.address-attribution{padding:6px 12px;text-align:right;font-size:12px;color:#606368;font-weight:500}

.customer-warehouse-head{justify-content:flex-start;gap:14px;flex-wrap:wrap}
.customer-dialog .customer-warehouse-head .customer-same{margin:0;background:transparent;padding:0;white-space:nowrap}
.customer-warehouse-head .remove-cw{margin-left:auto}
@media(max-width:400px){.customer-warehouse-head{gap:8px}.customer-dialog .customer-warehouse-head .customer-same{font-size:12px;white-space:normal}}

.customer-schedule{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:4px 0 14px}.customer-schedule b{font-size:14px;color:#36465a}.weekday-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:5px;min-height:52px;align-items:center}.customer-dialog .weekday-options label{display:flex;gap:5px;align-items:center;margin:0;border:1px solid #d8e0e8;background:white;border-radius:7px;padding:9px 11px}.customer-dialog .weekday-options input{width:17px;height:17px;margin:0;accent-color:#ed6d19}.customer-time-range{display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:center}.customer-time-range span{color:#536479}.customer-time-range select{min-width:90px}
@media(max-width:760px){.customer-schedule{grid-template-columns:1fr;gap:10px}.customer-dialog .weekday-options label{padding:8px}}

.customer-dialog .weekday-options input{width:20px;height:25px;margin:0;accent-color:#ed6d19}
.customer-dialog .weekday-options label{border-radius:10px;padding:15px 15px}
@media(min-width:1000px){.customer-schedule{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.weekday-options{gap:5px;flex-wrap:nowrap}}
@media(max-width:760px){.customer-dialog .weekday-options label{padding:10px}}

.customer-title-group{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.customer-number{font-size:15px;color:#9b4715;background:#fff0e2;border:1px solid #f2d2b9;padding:6px 10px;border-radius:6px;font-weight:650;white-space:nowrap}.customer-created{color:#16753d;font-size:14px;font-weight:650;margin:0 0 12px}

.customer-dialog #addCustomerWarehouse:disabled{opacity:.45;cursor:not-allowed;background:#eef1f4;border-color:#dce2e8;color:#6b7787}
.customer-warehouse-head .cw-edit{margin-left:auto;color:#1b526e!important}
.customer-warehouse-head .cw-edit:not([hidden])+.remove-cw{margin-left:0}
.cw-summary{width:100%;text-align:left;background:#fff;border-color:#e2e8ef;padding:12px 14px;color:#36465a;line-height:1.55;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.cw-summary:hover{background:#f1f5f9}

.customer-dialog .customer-warehouse-head .customer-same[hidden]{display:none!important}

.cw-save-row{display:flex;justify-content:flex-end;margin:8px 0 2px}.cw-save-row .cw-save{min-width:124px;min-height:44px}.customer-dialog .cw-save:disabled,.customer-dialog #customerForm>.buttons button:disabled{background:#e6e9ed;border-color:#d9dfe6;color:#7b8794;cursor:not-allowed;opacity:.75}

.customer-warehouse-head .cw-edit:not([hidden])~.remove-cw{margin-left:0}

.cw-save-row{gap:10px}.cw-save-row .cw-cancel{min-width:100px;min-height:44px}

.customer-order-table .copy-isa{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:28px;min-height:28px;padding:4px;color:#2665a0}.customer-order-table .copy-isa:hover{background:#e9f1f8}

.original-barcode .field-label{display:flex;align-items:center;gap:10px}.pod-create{padding:6px 11px;color:#b65212;border-color:#f1c5a1;background:#fff6ee;font-size:14px;font-weight:650}
.pod-dialog{width:min(1100px,96vw);max-height:92vh;overflow:auto;padding:22px;background:#f5f7fa}.pod-dialog>.dialogHead{margin-bottom:16px}.pod-sheet{background:#fff;border:1px solid #dce2e8;border-radius:8px;padding:16px}.pod-sheet>h2{text-align:center;font-size:24px;margin:0 0 10px}.pod-basics{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.pod-basics label{font-size:14px;font-weight:650;margin:0}.pod-basics input{font-size:15px;margin:4px 0 7px}.pod-table-heading{text-align:center;margin:12px 0 0;background:#eef2f6;border:1px solid #dce2e8;padding:8px;font-weight:700}
.pod-table{table-layout:fixed;min-width:900px;white-space:normal}.pod-table th,.pod-table td{border:1px solid #dce2e8;padding:5px;text-align:center;font-size:13px}.pod-table th:last-child{width:38px}.pod-table input{font-size:13px;padding:7px 4px;border:1px solid #dce2e8;min-width:0;text-align:center}.pod-row-remove{padding:4px 8px;font-size:17px;color:#b42318}.pod-add{margin-top:10px;color:#b65212}.pod-appointment{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid #dce2e8;margin-top:16px;text-align:center}.pod-appointment>div{padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-right:1px solid #dce2e8}.pod-appointment img{max-width:100%;max-height:90px;object-fit:contain}.pod-signatures{display:grid;grid-template-columns:1fr 1fr;margin-top:8px;gap:8px}.pod-signatures div{border:1px solid #dce2e8;min-height:74px;padding:8px;font-size:13px}.pod-error{color:#b42318;font-size:14px;margin:12px 0}.pod-dialog .buttons{position:sticky;bottom:0;background:#f5f7fa;padding:12px 0;z-index:1}
@media(max-width:600px){.pod-basics,.pod-signatures{grid-template-columns:1fr}.pod-appointment{grid-template-columns:1fr}.pod-dialog{padding:12px}}

#clockTime{margin-left:auto;color:#526179;font-size:20px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
header>.user-area:not([hidden])+#clockTime{margin-left:8px}
@media(max-width:760px){#clock{width:auto;order:3;flex:1;min-width:0;font-size:17px}#clockTime{order:4;margin-left:auto;font-size:18px}header>.user-area:not([hidden])+#clockTime{margin-left:auto}}

.barcode-actions{display:flex;align-items:center;gap:14px;min-height:52px;flex-wrap:wrap}.barcode-actions img{max-width:min(70%,300px)}.barcode-actions .pod-create{flex-shrink:0}

.pod-dialog{width:min(1500px,94vw);max-width:94vw;max-height:92vh;padding:0 24px 0;background:#f5f7fa;overflow:auto}
.pod-dialog>.dialogHead{position:sticky;top:0;z-index:3;margin:0 -24px 14px;padding:18px 24px;background:#f5f7fa;border-bottom:1px solid #dce2e8}
.pod-dialog>.buttons{position:sticky;bottom:0;margin:0 -24px;padding:14px 24px;background:#f5f7fa;border-top:1px solid #dce2e8;z-index:3}
.pod-sheet{padding:20px}.pod-table{min-width:1050px}.pod-table th,.pod-table td{font-size:14px}.pod-table input{font-size:15px;padding:9px 6px;min-height:40px}
@media(max-width:760px){.pod-dialog{max-width:96vw;width:96vw;padding:0 12px}.pod-dialog>.dialogHead,.pod-dialog>.buttons{margin-left:-12px;margin-right:-12px;padding:12px}.pod-sheet{padding:12px}}
.pod-fixed-grid{display:grid;grid-template-columns:22% 45% 10% 23%;grid-template-rows:80px 44px 44px;border-top:1px solid #bfc9d4;border-left:1px solid #bfc9d4}
.pod-fixed-grid>div{display:flex;align-items:center;justify-content:center;border-right:1px solid #bfc9d4;border-bottom:1px solid #bfc9d4;padding:8px;text-align:center}
.pod-fixed-label{font-weight:650;font-size:18px}.pickup-label{grid-column:1;grid-row:1}.pod-fixed-pickup{grid-column:2/5;grid-row:1;flex-direction:column;gap:5px;font-size:19px}
.destination-label{grid-column:1;grid-row:2/4}.pod-fixed-destination{grid-column:2;grid-row:2/4;flex-direction:column;gap:6px}.trucker-label{grid-column:3;grid-row:2}.pod-fixed-trucker{grid-column:4;grid-row:2}.bol-label{grid-column:3;grid-row:3}.pod-fixed-bol{grid-column:4;grid-row:3}.pod-fixed-bol input{height:34px;padding:5px 10px}
.pod-context{display:grid;grid-template-columns:1.2fr 1fr 1.5fr;gap:12px;background:#fff7ed;border:1px solid #e9cbb3;padding:12px;border-radius:8px;margin-bottom:15px}.pod-context label{font-size:14px;margin:0}.pod-context select,.pod-context input{height:44px;display:block;width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;background:white}
.pod-table th.pod-row-number{width:60px}.pod-table .pod-row-number label{display:flex;align-items:center;justify-content:center;gap:4px;margin:0;color:#536479}.pod-table .pod-row-number input{width:15px;height:15px;min-height:0;padding:0;margin:0;accent-color:#ed6d19}
.pod-table .pod-merged{background:#fff3e8;border:2px solid #ed8b42;vertical-align:middle}.pod-table .pod-merged input{font-weight:700;text-align:center}.pod-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:10px}.pod-actions .pod-add{margin:0}.pod-actions button:disabled{opacity:.42;cursor:not-allowed}.pod-actions .pod-merge{color:#bc571a}
.pod-appointment-original{grid-template-columns:12% 20% 10% 30% 28%;margin-top:16px}.pod-appointment-original>div{min-height:88px;border-bottom:1px solid #bfc9d4;border-right:1px solid #bfc9d4}
.pod-signatures-original{display:grid;grid-template-columns:18% 62% 20%;grid-template-rows:minmax(58px,auto) minmax(58px,auto);border-left:1px solid #bfc9d4}
.pod-signatures-original>div{border-bottom:1px solid #bfc9d4;border-right:1px solid #bfc9d4;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px}.signature-label{font-size:14px;font-weight:700}.signature-terms{font-size:11px;line-height:1.35}.signature-blank{grid-column:3;grid-row:1/3}
@media(max-width:760px){.pod-context{grid-template-columns:1fr}.pod-fixed-grid{grid-template-columns:20% 44% 14% 22%}.pod-fixed-label{font-size:12px}.pod-fixed-pickup,.pod-fixed-destination{font-size:13px}.pod-fixed-grid>div{padding:4px}.pod-appointment-original{grid-template-columns:12% 20% 12% 30% 26%;font-size:12px}.pod-signatures-original{grid-template-columns:22% 58% 20%}.signature-label{font-size:11px}.signature-terms{font-size:9px}}

.pod-fill-cell{position:relative}.pod-fill-handle{position:absolute;right:3px;bottom:3px;width:12px;height:12px;min-width:0;min-height:0;padding:0;border:2px solid white;border-radius:1px;background:#ed6d19;cursor:crosshair;opacity:0;pointer-events:none;touch-action:none;z-index:2}.pod-fill-cell:focus-within .pod-fill-handle,.pod-fill-cell:hover .pod-fill-handle,.pod-fill-handle:focus{opacity:1;pointer-events:auto}.pod-fill-preview{background:#fff0df!important;outline:2px solid #ed6d19;outline-offset:-2px}

.password-box{display:flex;align-items:center;gap:8px}.password-box input{flex:1;min-width:0}.password-toggle{white-space:nowrap}
.customer-login-page{max-width:480px;width:calc(100% - 32px);margin:8vh auto;padding:0}.customer-login-page>.card{padding:28px}.customer-login-page h1{font-size:22px}

.badge.customer-inactive{background:#e9edf1;color:#596575}

.customer-business-switch{margin:0 22px 0 auto;display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:15px;font-weight:650;cursor:pointer;position:relative}.customer-business-switch[hidden]{display:none}.customer-business-switch input{position:absolute;opacity:0;width:48px;height:28px;margin:0;right:36px;cursor:pointer}.customer-switch-track{width:48px;height:28px;border-radius:20px;background:#a6b0bc;display:inline-block;position:relative;pointer-events:none}.customer-switch-track:after{content:'';position:absolute;width:22px;height:22px;border-radius:50%;background:white;left:3px;top:3px;transition:transform .15s}.customer-business-switch input:checked+.customer-switch-track{background:#26a269}.customer-business-switch input:checked+.customer-switch-track:after{transform:translateX(20px)}.customer-business-switch input:focus-visible+.customer-switch-track{outline:2px solid #ed6d19;outline-offset:3px}.customer-switch-label{min-width:32px}@media(max-width:600px){.customer-business-switch{margin-right:4px;font-size:12px;gap:5px}.customer-switch-track{width:42px}.customer-business-switch input:checked+.customer-switch-track:after{transform:translateX(14px)}}

/* Aligned customer heading controls. */
.customer-dialog .dialogHead>.customer-business-switch{display:flex;align-items:center;align-self:center;justify-content:center;flex:0 0 auto;gap:12px;line-height:1;margin:0 24px 0 auto;height:32px;font-size:15px;font-weight:600;padding:0;color:#26354a}.customer-dialog .dialogHead>.customer-business-switch[hidden]{display:none}.customer-business-switch .customer-switch-track{display:block;flex:0 0 44px;width:44px;height:24px;border-radius:15px;align-self:center;background:#b4bec9}.customer-business-switch .customer-switch-track:after{width:18px;height:18px;top:3px;left:3px;box-shadow:0 1px 2px #0002}.customer-business-switch input:checked+.customer-switch-track:after{transform:translateX(20px)}.customer-business-switch .customer-switch-label{align-self:center;line-height:24px;color:#737f8e;font-weight:650}.customer-business-switch input:checked~.customer-switch-label{color:#20945e}.customer-dialog .dialogHead>.close{align-self:center}.customer-business-switch input{inset:auto 36px auto auto;width:44px;height:24px;margin:0;padding:0;min-height:0}.customer-dialog .dialogHead{align-items:center}@media(max-width:600px){.customer-dialog .dialogHead>.customer-business-switch{margin-right:4px;gap:6px;font-size:12px}}

.customer-login-dialog{width:min(680px,94vw)}.customer-login-dialog .dialogHead{align-items:center}.customer-login-dialog .dialogHead>.customer-business-switch{display:flex;align-items:center;align-self:center;justify-content:center;flex:0 0 auto;gap:12px;line-height:1;margin:0 16px 0 auto;height:32px;font-size:15px;font-weight:600;padding:0;color:#26354a}.customer-login-dialog .dialogHead>.close{align-self:center}.customer-login-dialog .dialogHead h2{margin:0}.customer-login-dialog .customer-business-switch .customer-switch-label{min-width:32px}@media(max-width:600px){.customer-login-dialog .dialogHead>.customer-business-switch{font-size:12px;gap:5px;margin-right:4px}.customer-login-dialog .dialogHead h2{font-size:16px}}

.current-password-display{display:flex;align-items:center;justify-content:space-between;background:#f0f2f5;border:1px solid #cbd5e1;border-radius:7px;padding:12px 14px;min-height:52px;margin-top:5px;color:#334155}.current-password-display>span:first-child{letter-spacing:2px}.current-password-display .badge{background:#e0e4e9;color:#667085}

header>#clockTime{margin-left:auto}header>#clockTime+.user-area{margin-left:8px}header>#clockTime+.user-area[hidden]{display:none}@media(max-width:760px){header>#clockTime{order:1;margin-left:auto}header>#clockTime+.user-area{order:2;margin-left:0}header>#clock{order:3;width:100%;flex-basis:100%}}

.pod-signatures-original{margin-top:20px;border-top:1px solid #bfc9d4}.warehouse-code-hint{display:block;color:#b42318;font-size:13px;line-height:1.4;margin-top:4px}.warehouse-code-hint[hidden]{display:none}

.pickup-info-trigger{background:transparent;border:0;padding:0;text-align:left;font-size:inherit;color:inherit;white-space:nowrap;cursor:pointer}.pickup-info-trigger:hover{text-decoration:underline;background:transparent}.pickup-info-card{position:fixed;z-index:50;width:min(490px,calc(100vw - 16px));background:white;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 28px #15263a29;padding:12px 14px;font-size:14px;color:#27374b;white-space:normal}.pickup-info-card[hidden]{display:none}.pickup-info-fields{display:grid;gap:6px;margin-top:10px}.pickup-info-row{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:8px;align-items:center}.pickup-info-row>span:first-child{color:#63758e}.pickup-info-row>span:nth-child(2){overflow-wrap:anywhere}.pickup-info-card button{color:#245eb5;padding:3px 7px;font-size:13px;border-radius:4px}.pickup-info-footer{margin-top:10px;padding-top:8px;border-top:1px solid #dce2e8}
.field-edit-dialog{width:min(640px,94vw);padding:24px;border:1px solid #dbe2ed;border-radius:14px;background:#fff;color:#172136;max-height:90vh;overflow:auto}.field-edit-dialog::backdrop{background:#17213666}.pod-update-dialog{width:min(800px,94vw)}.field-edit-info{display:grid;grid-template-columns:1.2fr .65fr 1.3fr;gap:12px;padding:14px;background:#f4f7fb;border:1px solid #dce4ef;border-radius:8px;margin:12px 0 20px}.field-edit-info>div{font-size:13px;min-width:0}.field-edit-info b{display:block;font-size:17px;overflow-wrap:anywhere;margin-top:5px}.field-pdf-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #dce4ef;background:#f8faff;border-radius:8px;padding:12px}.pdf-type{color:#fff;background:#b91c1c;border-radius:4px;padding:8px 5px;font-size:12px}.field-pdf-name{flex:1;min-width:0;overflow-wrap:anywhere;cursor:pointer}.field-system-edit,.field-own-upload{color:#1857c6;border:1px solid #b8cff4;background:white}.field-preview{display:flex;gap:16px;align-items:center;margin:14px 0}.field-preview-toggle{background:white;border:1px solid #dbe2ed;box-shadow:0 2px 5px #192b451a;padding:5px;width:150px;min-height:190px;overflow:hidden}.field-preview-toggle canvas{width:100%;height:auto;display:block}.field-preview-toggle canvas[hidden]{display:none}.field-preview-toggle.expanded{width:min(100%,610px)}.field-pdf-mini{width:138px;height:186px;pointer-events:none;border:0}.field-pdf-frame{width:100%;height:min(68vh,650px);border:1px solid #dce4ef}.field-upload-row{display:flex;justify-content:flex-end;margin:12px 0}.field-error{color:#b91c1c;font-size:14px}.field-drop{width:100%;height:220px;display:block;border:2px dashed #9fb8e5;border-radius:10px;background:#f7faff;color:#1d3b73;font-size:16px}.field-edit-dialog .buttons{border-top:1px solid #e5eaf2;padding-top:12px}.field-edit-dialog button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:600px){.field-edit-dialog{padding:16px}.field-edit-info{grid-template-columns:1fr}.field-preview{flex-wrap:wrap}}
.field-pod-footer .field-print{margin-right:100px;min-width:90px}.pod-image-only{padding:0;border:0;border-radius:4px;background:white;width:max-content;max-width:95vw;max-height:96vh;overflow:auto;cursor:zoom-out}.pod-image-only::backdrop{background:#10182899}.pod-image-only canvas{display:block;width:auto;height:auto;max-width:92vw;max-height:93vh;object-fit:contain;cursor:zoom-out}.pod-print-host{display:none}@media(max-width:600px){.field-pod-footer .field-print{margin-right:clamp(12px,10vw,100px);min-width:0}}@media print{body.pod-printing>*:not(.pod-print-host){display:none!important}body.pod-printing .pod-print-host{display:block!important;position:static!important;background:white!important}body.pod-printing .pod-print-host img{display:block;width:100%;height:auto;max-height:10.5in;object-fit:contain;break-after:page;break-inside:avoid}body.pod-printing .pod-print-host img:last-child{break-after:auto}@page{size:auto;margin:0.25in}}
.notes-edit-dialog .notes-input-label{display:flex;flex-direction:column;align-items:stretch;gap:9px;font-size:14px;font-weight:600;color:#25324a;margin:0 0 16px}.notes-edit-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:145px;padding:13px 14px;border:1px solid #cbd6e4;border-radius:9px;resize:vertical;font:inherit;font-weight:400;line-height:1.6;color:#172136;background:#fff;outline:none}.notes-edit-dialog textarea:focus{border-color:#7599c9;box-shadow:0 0 0 3px #1769b215}.notes-edit-dialog textarea::placeholder{color:#94a3b8}.notes-edit-dialog .buttons{margin-top:14px;padding-top:14px}
.pod-file-link{border:0;background:none;color:#1857c6;padding:0;cursor:pointer;text-align:left;font:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.pod-file-link:hover{color:#0d3992}.pod-image-hint{position:sticky;top:0;z-index:1;text-align:center;background:#fff2c5;color:#8b4308;font-size:16px;font-weight:700;padding:9px 20px;border-bottom:1px solid #efd28b;cursor:zoom-out}.pod-image-only canvas{max-height:calc(92vh - 42px)}
.customer-order-table .copy-isa svg{width:20px;height:20px;flex:none}.customer-order-table .pod-edit-actions{display:inline-flex;align-items:center;gap:3px;margin-left:8px;white-space:nowrap;vertical-align:middle}.customer-order-table .copy-isa{font-size:20px}
.customer-order-table .pod-edit-actions{gap:13px}
.order-detail-dialog{width:min(960px,94vw)}.detail-wo{font-size:18px;color:#2863ad;margin-left:10px}.detail-summary{grid-template-columns:1.2fr .75fr 1.4fr .75fr}.detail-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-card{border:1px solid #dce4ef;border-radius:8px;overflow:hidden;margin-bottom:12px;background:#fff}.detail-card h3{margin:0;padding:9px 13px;background:#f1f5fa;font-size:15px;display:flex;align-items:center;justify-content:space-between}.detail-row{display:grid;grid-template-columns:minmax(100px,32%) 1fr;gap:10px;padding:9px 13px;align-items:start;border-bottom:1px solid #edf0f3;font-size:14px}.detail-row:last-child{border:0}.detail-row>div{overflow-wrap:anywhere}.detail-row .copy-isa{min-width:26px}.detail-row .copy-isa svg,.detail-card h3 .copy-isa svg{width:20px;height:20px}.detail-note{padding:13px;white-space:pre-wrap;overflow-wrap:anywhere}.detail-footer{display:flex;align-items:center;gap:10px;border-top:1px solid #e2e8f0;padding-top:12px}.detail-close{margin-left:auto}.danger-outline{border:1px solid #c93b34!important;background:white!important;color:#be2a26!important}.reactivate-outline{border:1px solid #2460b7!important;color:#2460b7!important}.danger-confirm{background:#c93b34!important;color:white!important;border-color:#c93b34!important}.lifecycle-warning{padding:14px;background:#edf5fd;border:1px solid #dbe7f4;border-radius:8px;line-height:1.6}.lifecycle-warning.danger{background:#fff1f0;color:#a52924;border-color:#f1cecc}.status-cancelled,.status-cancel_requested{display:inline-block;padding:4px 10px;border-radius:12px;background:#f1e8e7;color:#a8322a}.stat.cancelled,.stat.cancel_requested{border-color:#eecac4}.order-stats{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.notes-edit-dialog .order-row input{width:100%}@media(max-width:700px){.detail-cards{grid-template-columns:1fr}.detail-summary{grid-template-columns:1fr 1fr}.detail-row{grid-template-columns:100px 1fr}}

.order-status-detail{border:0;cursor:pointer;font:inherit;font-size:14px;font-weight:650;line-height:normal;min-width:0;box-shadow:none}.order-status-detail:hover{filter:brightness(.97)}.order-status-detail:focus-visible{outline:2px solid #2466ae;outline-offset:2px}
