.delivery-tabs,.delivery-toolbar,.delivery-detail-actions,.delivery-related,.delivery-summary{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.delivery-tabs{margin-bottom:12px}.delivery-tabs button{min-height:44px;padding:10px 18px;border:1px solid #c8d8f0;border-radius:12px;background:#fff;color:#254568;font-size:16px;font-weight:700}.delivery-tabs button.active{background:#1160d9;color:#fff;border-color:#1160d9}
.delivery-toolbar{margin-bottom:10px}.delivery-toolbar input{flex:2;min-width:180px}.delivery-toolbar select{flex:1;min-width:125px}.delivery-toolbar button{flex:none}
.delivery-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.delivery-card{display:flex;flex-direction:column;gap:9px;text-align:left;min-width:0;width:100%;padding:16px;border:1px solid #cfdef1;border-radius:16px;background:#fff;color:#1d3553;font-size:16px;box-shadow:0 3px 10px #13345a08;cursor:pointer}.delivery-card:hover{border-color:#347ddd}.delivery-card-head,.delivery-detail-top,.delivery-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.delivery-card-head strong{font-size:19px;overflow-wrap:anywhere}.delivery-card-meta{display:flex;gap:12px}.delivery-card small{font-size:14px;color:#657b99}.delivery-handler{background:#f1f6fe;border-radius:9px;padding:8px 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.delivery-handler strong{color:#134b8b}.delivery-handler small{font-size:13px;color:#627996}
.delivery-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px 0}.delivery-summary{margin:12px 0}.delivery-summary>span{background:#eaf2ff;border-radius:10px;padding:10px}.delivery-money{color:#125aca;font-size:24px}
.delivery-form,.delivery-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.delivery-form>label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:15px;color:#3f5c7b}.delivery-form input:not([type=checkbox]),.delivery-form select,.delivery-item-row input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px;border:1px solid #cad8ec;border-radius:10px;padding:10px;background:#fff;color:#1c304b}.delivery-modal .full{grid-column:1/-1}.delivery-modal{overflow-wrap:anywhere}.delivery-modal h4{margin:16px 0 8px}.delivery-modal p{margin:8px 0}.delivery-facts>div{min-width:0;padding:6px 0;font-size:15px}.delivery-form .delivery-check,.delivery-item-row .delivery-check{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:44px}.delivery-check input[type=checkbox]{appearance:auto!important;position:static!important;flex:0 0 22px;width:22px!important;height:22px!important;margin:0;padding:0;min-height:0!important}
.delivery-item-row{display:grid;grid-template-columns:2fr 1.5fr .8fr .8fr auto auto;align-items:end;gap:8px;padding:12px 0;border-bottom:1px solid #dbe5f3}.delivery-item-row label{font-size:14px;min-width:0}.delivery-item-row button{min-height:44px}.delivery-item-row input{margin-top:5px}.delivery-check-item{border:1px solid #d7e3f4;border-radius:12px;padding:12px}.delivery-table-wrap{overflow:auto;max-width:100%}.delivery-table-wrap table{width:100%;font-size:15px;border-collapse:collapse}.delivery-table-wrap td,.delivery-table-wrap th{padding:10px 8px;text-align:left;border-bottom:1px solid #e0e8f4}.delivery-table-wrap small{display:block}.delivery-followups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.delivery-followups>div{border:1px solid #d8e3f4;border-radius:12px;padding:12px}.delivery-followups>div>div:first-child{display:flex;justify-content:space-between;gap:10px}.delivery-followups .delivery-handler{margin-top:8px}.delivery-detail-actions{margin:14px 0}.delivery-detail-actions button{min-height:44px}.delivery-ai{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.delivery-ai pre{white-space:pre-wrap;max-height:250px;overflow:auto;font-size:13px}.delivery-ai details{width:100%}.delivery-ai span{font-size:14px}.delivery-evidence{margin:12px 0}.delivery-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.delivery-photo{height:74px;width:74px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid #cbd9ee;border-radius:10px;overflow:hidden;background:#f3f7fc;color:#32577f}.delivery-photo img{display:block;width:100%;height:100%;object-fit:cover}.delivery-notice{background:#eef5ff;padding:10px 12px;border-radius:10px;color:#245588;font-size:15px}.delivery-modal details{margin:14px 0}.delivery-modal details small{display:block;color:#697f9b}.delivery-modal .modal-actions{position:static;flex-wrap:wrap}.delivery-modal [hidden],#page-delivery [hidden],#deliverySettings [hidden]{display:none!important}
@media(max-width:760px){.delivery-list{grid-template-columns:minmax(0,1fr)}.delivery-card{padding:12px}.delivery-tabs{gap:6px}.delivery-tabs button{padding:9px 12px;flex:1 0 auto;font-size:15px}.delivery-toolbar input{flex-basis:100%}.delivery-toolbar select{flex:1 1 38%;width:auto}.delivery-form,.delivery-facts{gap:10px}.delivery-item-row{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-item-row .delivery-check{grid-column:1}.delivery-followups{grid-template-columns:minmax(0,1fr)}.delivery-facts .full{overflow-wrap:anywhere}.delivery-detail-actions button{flex:1 1 auto}.delivery-section-heading h4{font-size:17px}.delivery-modal{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.delivery-form input[type=datetime-local]{width:100%;-webkit-appearance:none}.delivery-form label.full{width:auto}.delivery-summary>span{font-size:14px}.delivery-modal .desktop-only{display:none!important}}
@media(max-width:380px){.delivery-form,.delivery-facts{grid-template-columns:minmax(0,1fr)}}
.delivery-form>.full{grid-column:1/-1}.delivery-recognition{width:100%;max-height:280px;overflow:auto}.delivery-recognition small{display:block;color:#61738a}.delivery-recognition p{font-size:14px}
@media(max-width:760px){.delivery-form{grid-template-columns:minmax(0,1fr)}.delivery-modal .modal-actions .btn{flex:1;min-height:46px}.delivery-form input[type=file]{padding:8px;font-size:16px}}

.delivery-form textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;border:1px solid #cad8ec;border-radius:10px;padding:10px;font:inherit;font-size:16px}

/* V16.5: compact intake and bounded room matching, scoped to delivery. */
[data-header-actions="delivery"] [hidden]{display:none!important}
#page-delivery .panel{padding:18px 20px}
#page-delivery .delivery-tabs{gap:4px;padding:5px;background:#eaf1fa;border:1px solid #d5e1f0;border-radius:14px;width:fit-content;max-width:100%;box-sizing:border-box}
#page-delivery .delivery-tabs button{background:transparent;border-color:transparent;border-radius:10px;padding:10px 18px}
#page-delivery .delivery-tabs button.active{background:#fff;border-color:#cbdcf4;color:#1255bc;box-shadow:0 2px 8px #194a8812}
#deliveryFilters{gap:10px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid #e4ebf5}
#deliveryFilters input{flex:3 1 300px;margin:0}
#deliveryFilters select{flex:1 1 140px;max-width:240px;margin:0}
#deliveryFilters .btn{min-height:44px}
#deliveryCount{color:#647995;font-size:15px}
.delivery-list>.empty-state{grid-column:1/-1;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed #d6e1f1;background:#f9fbfe;border-radius:12px;font-size:16px}
.delivery-summary:empty{display:none}
.modal.modal-delivery{display:flex;flex-direction:column;width:min(900px,calc(100vw - 32px));max-height:92vh;max-height:92dvh;overflow:hidden}
.modal-delivery .modal-head{flex:0 0 auto;padding:14px 20px;border-bottom:1px solid #e1e8f2}
.modal-delivery .modal-head h3{font-size:20px}
.modal-head-actions{display:flex;align-items:center;gap:8px}.modal-head-actions [hidden]{display:none!important}
.modal-delivery .modal-header-back{min-height:40px;padding:7px 11px}
.modal-header-back{display:none}
@media(max-width:700px){.modal-has-back .modal-header-back:not([hidden]){display:inline-flex;align-items:center}.modal-delivery.modal-has-back #dyBack,.modal-delivery.modal-has-back #dyBackToParcel,.modal-delivery.modal-has-back #rcUnregisteredBack,.modal-delivery.modal-has-back #rcResolveBack{display:none}}
.receipt-camera .rc-input-hint{margin:6px 0 10px;color:#60748b;font-size:12px;line-height:1.5}
.modal-delivery #modalClose{width:44px;min-width:44px;height:44px;border-radius:10px;background:#f2f6fb;font-size:26px}
.modal-delivery #modalBody{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.modal-delivery .delivery-modal{padding:18px 20px;box-sizing:border-box}
.delivery-modal label,#deliverySettings label{margin:0}
.delivery-modal .delivery-form,.delivery-modal .delivery-facts{gap:12px 16px;margin:12px 0}
.delivery-form-section{margin-top:18px;padding-top:14px;border-top:1px solid #e2eaf5}
.delivery-modal .delivery-form-section h4,.delivery-intake h4{margin:0;font-size:17px;color:#244c78}
.delivery-step-note,.delivery-settings-help{color:#647d99;font-size:14px;line-height:1.5}
.delivery-intake{padding:14px 16px;background:#f3f8ff;border:1px solid #d7e5f8;border-radius:12px}
.delivery-intake .delivery-form{margin-bottom:0}
.delivery-intake .delivery-photos:empty{display:none}
.delivery-modal input[type=file]::file-selector-button{min-height:32px;border:0;border-radius:7px;background:#eaf1fd;color:#1558b7;padding:5px 10px;font:inherit;margin-right:10px;cursor:pointer}
.delivery-modal .delivery-ai{gap:8px 12px}
.delivery-modal .delivery-ai>span{flex:1 1 220px;color:#546c8c;line-height:1.5}
.delivery-modal .delivery-text-intake{width:100%;margin:0;padding-top:4px}
.delivery-text-intake summary,.delivery-optional summary{cursor:pointer;color:#245d9f;font-weight:600;font-size:15px;min-height:36px;line-height:36px}
.delivery-text-intake label{margin:8px 0 5px;display:block;font-size:14px}
.delivery-text-intake textarea{width:100%;box-sizing:border-box;margin:0 0 8px;min-height:100px;font:inherit}
.delivery-capture-file{color:#637996;font-size:13px}
.delivery-capture-file input{display:block;margin-top:5px}
.delivery-optional{background:#f8fafd;border-radius:10px;padding:6px 12px}
.delivery-modal .delivery-item-row{grid-template-columns:minmax(135px,1.6fr) minmax(110px,1.2fr) 75px 90px auto auto;align-items:end;gap:10px;padding:12px 0}
.delivery-item-row label{line-height:1.5;font-size:14px}
.delivery-modal .delivery-item-row .delivery-check{font-size:14px}
.delivery-modal .delivery-item-row input{margin:4px 0 0}
.delivery-room-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.delivery-room-field>label{color:#3f5c7b;font-size:15px;line-height:1.5}
#dyOrderForm .delivery-room-field,#dyProfileForm .delivery-room-field{grid-column:auto}
.delivery-room-picker{min-width:0;position:relative}
.delivery-room-options{position:relative;max-height:240px;overflow-y:auto;overscroll-behavior:contain;margin-top:5px;padding:4px;border:1px solid #c6d8ee;background:#fff;border-radius:10px;box-shadow:0 4px 12px #15365e0c}
.delivery-room-options>button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;width:100%;padding:9px 12px;text-align:left;background:#fff;border:0;border-radius:7px;color:#254f7b;cursor:pointer;font-size:16px}
.delivery-room-options>button small{color:#687e97;font-size:13px}
.delivery-room-options>button:hover,.delivery-room-options>button[aria-selected="true"]{background:#edf4ff}
.delivery-room-help{padding:8px 10px;color:#687e97;font-size:13px}
.modal-delivery .delivery-modal .modal-actions{position:sticky;bottom:-18px;z-index:6;flex-wrap:wrap;margin:18px -20px -18px!important;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px))!important;background:#fff;border-top:1px solid #dce6f3;box-shadow:0 -5px 16px #163a6410}
.modal-delivery .delivery-modal .modal-actions .btn{min-height:46px;min-width:100px}
.delivery-profile-settings{padding-bottom:22px;margin-bottom:20px;border-bottom:1px solid #dce6f3}
#deliverySettings h3{margin:0;font-size:19px;color:#244c78}
.delivery-profile-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.delivery-profile-card{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #d6e2f2;border-radius:12px;background:#fafdff;min-width:0;overflow-wrap:anywhere}
.delivery-profile-card>.btn{align-self:flex-end}
.delivery-profile-card .delivery-card-meta{font-size:14px;flex-wrap:wrap;color:#617896}
.delivery-profile-empty{grid-column:1/-1;background:#f5f8fd;color:#627c97;border-radius:10px;padding:18px;font-size:15px}
.delivery-reward-settings{max-width:1000px}
@media(max-width:760px){
  [data-header-actions="delivery"]{margin-left:auto;justify-content:flex-end;flex-wrap:wrap}
  [data-header-actions="delivery"] .btn{min-height:44px;font-size:15px}
  #page-delivery .panel{padding:12px}
  #page-delivery .delivery-tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-delivery .delivery-tabs button{min-width:0;padding:9px 8px}
  #deliveryFilters input{flex-basis:100%;min-width:0;width:100%}
  #deliveryFilters select{flex:1 1 40%;max-width:none;min-width:0}
  #deliveryFilters .btn{flex:1}
  .modal-delivery .modal-head{padding:10px 14px}
  .modal-delivery .delivery-modal{padding:14px!important}
  .delivery-intake{padding:12px}
  .delivery-intake>.delivery-section-heading{align-items:flex-start;flex-wrap:wrap;gap:4px}
  .delivery-modal .delivery-form{grid-template-columns:minmax(0,1fr);gap:12px}
  .delivery-modal .delivery-item-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 0}
  .delivery-modal .delivery-item-row .delivery-check{grid-column:auto}
  .delivery-modal .delivery-form input,.delivery-modal .delivery-form select,.delivery-modal .delivery-item-row input{font-size:16px;min-height:44px}
  .modal-delivery .delivery-modal .modal-actions{bottom:-14px;margin:14px -14px -14px!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important}
  .modal-delivery .delivery-modal .modal-actions .btn{flex:1;min-width:0}
  .delivery-profile-list{grid-template-columns:minmax(0,1fr)}
  .delivery-profile-settings .delivery-section-heading{flex-wrap:wrap}
}

/* V16.6: user-initiated screenshot paste and removable draft evidence. */
.delivery-file-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.delivery-file-field>label{font-size:15px;color:#3f5c7b;margin:0}
.delivery-paste-zone{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:76px;box-sizing:border-box;padding:12px 16px;border:1.5px dashed #8bb2e9;border-radius:11px;background:#fff;color:#215991;cursor:text}
.delivery-paste-zone strong{font-size:18px;font-weight:700}
.delivery-paste-zone span{font-size:14px;color:#617e9d;line-height:1.5}
.delivery-paste-zone:focus-visible{outline:3px solid #acd0ff;outline-offset:2px;border-color:#2475d4;background:#fafdff}
.delivery-photo-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;min-width:0}
.delivery-photo-tools>span{font-size:14px;color:#617996;line-height:1.5}
.delivery-photo-tools>.btn{min-height:40px;font-size:14px;flex:none}
.delivery-photo-draft{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:88px}
.delivery-photo-draft .delivery-photo{width:88px;height:76px;box-sizing:border-box}
.delivery-photo-remove{min-height:36px;width:100%;padding:5px 9px;border:1px solid #d0ddef;border-radius:8px;color:#486782;background:#fff;font-size:14px;cursor:pointer}
.delivery-photo-remove:hover{border-color:#d7a2a2;background:#fff8f7;color:#993c35}
@media(max-width:760px){.delivery-photo-remove,.delivery-photo-tools>.btn{min-height:44px}.delivery-paste-zone{min-height:80px;padding:12px}.delivery-paste-zone strong{font-size:17px}}
/* V16.7: compact order tabs and camera intake share the existing visual system. */
.purchase-workspace{font-size:16px;color:#173d65}.purchase-upload{background:#f3f8ff;border:1px solid #cfdef2;border-radius:14px;padding:16px;margin-bottom:16px}.purchase-upload>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.purchase-upload strong{font-size:19px}.purchase-upload span{color:#637d9c}.purchase-upload-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.purchase-upload .delivery-paste-zone{padding:14px;font-size:16px}.purchase-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px}.purchase-tabs .btn{flex:0 0 auto;text-align:left;max-width:280px;white-space:normal;overflow-wrap:anywhere}.purchase-tabs small{display:block;font-size:13px;font-weight:400;opacity:.85;margin-top:5px}.purchase-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.purchase-form-grid .full{grid-column:1/-1}.purchase-form-grid label,.purchase-item>label{display:flex;flex-direction:column;gap:7px;min-width:0}.purchase-workspace input:not([type=checkbox]),.purchase-workspace select,.purchase-workspace textarea{font-size:17px;min-height:46px;width:100%;max-width:100%}.purchase-required input,.purchase-required select{border:1.5px solid #e04a50!important}.purchase-workspace em{font-size:13px;font-style:normal;font-weight:600;color:#bd2730}.purchase-item{display:grid;grid-template-columns:minmax(160px,2fr) minmax(120px,1.4fr) 100px auto auto;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid #deE7f2}.purchase-item .delivery-check{flex-direction:row;align-items:center;min-height:46px}.purchase-evidence{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.purchase-footer{position:sticky;bottom:-20px;background:#fff;z-index:4;padding:14px 0 0;display:flex;gap:10px;align-items:center;border-top:1px solid #dbe5f2;margin-top:18px}.purchase-footer>span{margin-right:auto;color:#6b8097}.purchase-error{color:#b42318}.purchase-saving #poEditor,.purchase-saving .purchase-upload,.purchase-saving #poTabs{pointer-events:none;opacity:.7}.purchase-upload #poQr:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:14px}.purchase-upload #poQr img{width:170px;height:170px;background:white}.receipt-steps{display:flex;gap:12px;flex-wrap:wrap;font-size:15px;padding-bottom:15px;color:#687f98}.receipt-steps b{color:#075acd}.camera-stage{background:#12243b;border-radius:14px;overflow:hidden;display:flex;justify-content:center}.camera-stage video,.camera-stage img{width:100%;max-height:48vh;object-fit:contain}.camera-stage [hidden]{display:none!important}.camera-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.receipt-match{display:flex!important;flex-direction:column;align-items:start!important;text-align:left!important;width:100%;gap:8px;margin-bottom:10px;white-space:normal!important;padding:16px!important;background:#edf6ff!important}.receipt-camera #rcForm{font-size:17px}.receipt-camera #rcForm>label{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.receipt-camera input,.receipt-camera select{font-size:17px;min-height:46px}.receipt-camera input[type=checkbox]{min-height:20px}.delivery-modal [hidden]{display:none!important}
@media(max-width:760px){.purchase-form-grid{grid-template-columns:1fr}.purchase-item{grid-template-columns:minmax(0,1fr) 88px}.purchase-item>label:first-child,.purchase-item>label:nth-child(2){grid-column:1/-1}.purchase-footer{flex-wrap:wrap;bottom:-14px}.purchase-footer>span{width:100%}.purchase-footer .btn{flex:1;padding:12px 8px}.purchase-upload{padding:12px}.receipt-camera{padding-bottom:10px}.camera-stage video,.camera-stage img{max-height:40vh}}

/* V16.8: one editing surface, a compact upload bar and an always visible footer. */
.modal.modal-purchase{width:min(1240px,calc(100vw - 28px));height:min(840px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}
.modal-purchase #modalBody{display:flex;overflow:hidden}
.modal-purchase #modalBody>.delivery-modal{display:flex;flex:1;min-width:0;min-height:0;padding:12px 18px!important;overflow:hidden}
.purchase-workspace{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0}
.purchase-upload{flex:none;padding:10px 12px;margin-bottom:8px;border-radius:10px}
.purchase-upload strong{font-size:17px}.purchase-upload #poPaste{font-size:14px;outline-offset:3px}
.purchase-upload-actions{margin:0 0 0 auto;gap:8px}.purchase-upload-actions .btn{min-height:40px;padding:7px 12px;font-size:15px}
.purchase-upload #poProgress:empty{display:none}.purchase-upload #poProgress{font-size:14px;margin-top:6px}
.purchase-upload #poQr{max-height:210px;overflow:auto;padding-top:8px}.purchase-upload #poQr img{width:140px;height:140px}
.purchase-tabs{flex:none;padding:0 0 8px;gap:6px}.purchase-tabs .btn{display:flex;align-items:center;gap:8px;padding:7px 10px;max-width:330px;min-height:38px;font-size:15px}
.purchase-tabs small{display:inline;margin:0;white-space:nowrap}
#poEditor{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 4px 8px 0}
.purchase-form-grid{gap:10px 12px;margin:0 0 10px}.purchase-core-grid{grid-template-columns:1fr 1.4fr 1.25fr 1fr}
.purchase-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.purchase-extra-grid>.full{grid-column:auto}
.purchase-form-grid label,.purchase-item>label{gap:4px;margin:0;font-size:15px}
.purchase-workspace input:not([type=checkbox]),.purchase-workspace select,.purchase-workspace textarea{box-sizing:border-box;min-height:42px;margin:0;padding:8px 10px;font-size:16px;line-height:1.35}
.purchase-workspace textarea{resize:vertical}.purchase-workspace .delivery-room-field label{font-size:15px;margin-bottom:4px}
.purchase-workspace .delivery-section-heading{margin:10px 0 0}.purchase-workspace .delivery-section-heading h4{margin:0;font-size:17px}
.purchase-workspace .delivery-section-heading .btn{min-height:36px;font-size:15px;padding:6px 12px}
.purchase-item{grid-template-columns:minmax(160px,2fr) minmax(120px,1.4fr) 90px auto auto;padding:8px 0;gap:10px}
.purchase-item .delivery-check{min-height:42px;font-size:15px}.purchase-item button{min-height:42px;padding:7px 12px}
.purchase-evidence{margin:8px 0;gap:6px}.purchase-evidence .btn{min-height:36px;padding:6px 10px;font-size:14px}
.purchase-photo-entry{display:inline-flex;gap:2px}.purchase-history-note{font-size:14px;color:#657b94}
.purchase-error:empty{display:none}.purchase-error{font-size:15px;margin:8px 0 0}
.purchase-footer{position:static;flex:none;gap:8px;margin:0;padding:10px 0 0;background:#fff}
.purchase-footer .btn{min-height:44px;padding:9px 14px;font-size:16px}.purchase-footer>span{font-size:14px}
@media(max-width:1050px){.purchase-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-upload-actions{margin-left:0}}
@media(max-width:760px){
  .modal-purchase #modalBody>.delivery-modal{padding:10px 12px calc(8px + env(safe-area-inset-bottom,0px))!important}
  .purchase-upload>div:first-child{gap:6px}.purchase-upload-actions{gap:6px;width:100%}.purchase-upload-actions .btn{flex:1;min-height:44px;padding:7px;font-size:14px}
  .purchase-upload{padding:8px}.purchase-core-grid,.purchase-extra-grid{grid-template-columns:minmax(0,1fr)}
  .purchase-item{grid-template-columns:minmax(0,1fr) 88px}.purchase-item>label:first-child,.purchase-item>label:nth-child(2){grid-column:1/-1}
  .purchase-footer{flex-wrap:wrap;padding-top:8px}.purchase-footer>span{width:100%;flex-basis:100%}
  .purchase-footer .btn{flex:1;min-width:0;padding:9px 6px;font-size:15px}.purchase-footer #poClose{flex:0 0 64px}
  .purchase-tabs .btn{min-height:44px;max-width:260px}.purchase-evidence .btn{min-height:44px}
}

/* V16.9: integer quantities, short unit selector and visible rule periods. */
@media(min-width:761px){.purchase-item{grid-template-columns:minmax(150px,2fr) minmax(110px,1.2fr) 76px 86px auto auto}}
.delivery-rule-history{margin:16px 0 24px}.delivery-rule-history table{min-width:790px;width:100%;font-size:16px}.delivery-rule-history th,.delivery-rule-history td{padding:12px 10px;white-space:nowrap}.delivery-rule-history .rule-current{background:#eef8f1}.delivery-rule-history .rule-scheduled{background:#f2f6ff}.delivery-paste-zone.drag-active{border-color:#145ed8;background:#e9f2ff}.delivery-legacy{margin:12px 0;color:#637489}

/* V17.1.1: tracking-first shipment cards and detail hierarchy. */
#deliveryList{gap:12px;align-items:stretch}
.dy-shipment{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dce5f1;border-radius:16px;box-shadow:0 3px 12px #173a6810;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.dy-shipment:hover{border-color:#91b7ef;box-shadow:0 5px 16px #245da71a}
.dy-shipment-main{display:block;width:100%;min-width:0;padding:16px 18px 8px;text-align:left;border:0;border-radius:0;background:transparent;color:#183456;cursor:pointer;font:inherit}
.dy-identity{display:flex;align-items:flex-start;gap:10px;min-width:0}
.dy-type{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;font-size:16px;font-weight:750;background:#eaf1fc;color:#245ebd}
.dy-type-guest{background:#e7f6f1;color:#16725b}.dy-type-takeaway{background:#fff1df;color:#a7660c}.dy-type-company{background:#eaf0ff;color:#335dcc}
.dy-tracking{flex:1;min-width:0;overflow-wrap:anywhere;font-size:20px;line-height:1.35;font-weight:750;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.dy-stage{flex:0 0 auto;max-width:112px;white-space:normal;font-size:13px;font-weight:650;line-height:1.35;padding:5px 9px;border-radius:7px;background:#edf2f8;color:#526780}
.dy-stage-expected{background:#fff3d9;color:#965f00}.dy-stage-received,.dy-stage-delivering{background:#eaf1ff;color:#205dc0}.dy-stage-handoff{background:#f0eaff;color:#7046ae}.dy-stage-completed{background:#e8f6ef;color:#20724c}.dy-stage-exception{background:#ffeded;color:#bb3636}.dy-stage-cancelled{background:#f1f3f6;color:#77808f}
.dy-destination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:14px;color:#60748e}.dy-destination b{font-size:17px;color:#284f79}.dy-item-title{margin:7px 0 0;font-size:14px;line-height:1.5;color:#56708f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dy-arrival{font-size:12px;color:#7a8ba0;margin-top:7px;min-height:0}.dy-arrival:empty{display:none}
.dy-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:auto;padding:9px 18px 12px}.dy-card-actions .btn{font-size:14px;min-height:36px;padding:7px 12px;white-space:normal}.dy-detail-link{margin-right:auto;border:0;background:transparent;color:#577391;font-size:13px;padding:8px 0;cursor:pointer}
.dy-shipment button:focus-visible{outline:3px solid #70a6f6;outline-offset:-3px}
.dy-detail-hero{padding:16px;background:linear-gradient(120deg,#f0f6ff,#f8fbff);border:1px solid #dce8fa;border-radius:14px;margin-bottom:16px}.dy-detail-hero .dy-identity>div{flex:1;min-width:0}.dy-detail-hero small{display:block;color:#6e829b;font-size:12px;margin-bottom:3px}.dy-detail-hero strong{display:block;font-size:24px;line-height:1.35;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dy-detail-hero p{margin:12px 0 0;color:#5e738c;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.delivery-modal .delivery-facts{padding:14px;background:#fafcff;border:1px solid #e4ecf5;border-radius:12px;font-size:14px}.delivery-modal .delivery-facts b{color:#284969}.dy-targets{display:grid;gap:10px}.dy-targets button{display:flex;justify-content:space-between;gap:12px;white-space:normal}.dy-targets strong{overflow-wrap:anywhere}.dy-targets span{flex-shrink:0;color:#647b97}.dy-action-heading strong,.dy-action-heading span{display:block;overflow-wrap:anywhere}.dy-action-heading strong{font-size:20px;color:#1d426f}.dy-action-heading span{font-size:14px;color:#657d98;margin-top:5px}
@media(max-width:760px){#page-delivery .panel{padding:12px}#deliveryFilters{display:grid;grid-template-columns:1fr 1fr;gap:8px}#deliveryFilters input{grid-column:1/-1;width:100%;box-sizing:border-box}#deliveryFilters select{width:100%;max-width:none;min-width:0}#deliveryFilters .btn{width:100%;min-width:0;min-height:40px}.dy-shipment-main{padding:13px 12px 5px}.dy-identity{gap:8px}.dy-tracking{font-size:18px}.dy-type{flex-basis:26px;width:26px;height:26px;border-radius:7px;font-size:14px}.dy-stage{font-size:12px;padding:4px 6px;max-width:88px}.dy-destination{margin-top:8px;gap:8px;font-size:13px}.dy-destination b{font-size:15px}.dy-item-title{font-size:13px;margin-top:5px;-webkit-line-clamp:1}.dy-arrival{font-size:12px}.dy-card-actions{padding:6px 12px 10px;gap:7px;flex-wrap:wrap}.dy-card-actions .btn{min-height:38px;font-size:13px;padding:7px 10px}.dy-detail-hero{padding:12px}.dy-detail-hero strong{font-size:20px}.dy-detail-hero p{font-size:14px}.dy-detail-link{font-size:12px}}

.dy-tracking{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* V17.1.1: compact receipt controls; one native scroll owner. */
.rc-capture-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.rc-capture-bar span{font-size:13px;color:#657d98}
.receipt-camera #rcPhoto{display:block;width:100%;height:200px;object-fit:contain;background:#f3f6fa;border:1px solid #dce5ef;border-radius:12px;margin:0 0 12px}.receipt-camera #rcStatus{font-size:14px;line-height:1.5}
.receipt-camera form label{display:flex;flex-direction:column!important;align-items:stretch!important;gap:6px;margin:12px 0}.receipt-camera form input,.receipt-camera form select{width:100%;box-sizing:border-box}
.rc-force{padding:14px;background:#fff7f3;border:1px solid #e9b7a5;border-radius:12px}.rc-force p{font-size:14px;line-height:1.6}.rc-force button{white-space:normal;line-height:1.5}
.dy-card-reward{display:flex;align-items:center;gap:6px;margin:0 16px 8px;color:#916128;font-size:13px}.dy-card-reward small{color:#789; margin-left:auto}.delivery-summary{display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 0;font-size:13px}.delivery-summary b{color:#1a60ac}
@media(max-width:920px), (max-width:1100px) and (hover:none) and (pointer:coarse){
 html.has-modal,html.has-modal body{overflow:hidden!important;overscroll-behavior:none}
 #modal.modal-delivery:not(.modal-purchase){transform:none!important;overflow:hidden!important;display:flex;flex-direction:column}
 #modal.modal-delivery:not(.modal-purchase)>#modalBody{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain;overflow-anchor:none}
 #modal.modal-delivery:not(.modal-purchase)>#modalBody>.delivery-modal{height:auto!important;max-height:none!important;min-height:0;flex:none!important;overflow:visible!important}
 #modal.modal-delivery:not(.modal-purchase) .modal-actions{position:static!important;margin:12px 0 0!important;padding:12px 0 max(12px,env(safe-area-inset-bottom))!important}
 .rc-capture-bar .btn{width:100%}.rc-capture-bar span{display:none}.receipt-camera #rcPhoto{height:168px}
}

/* V17.1.1 personal reward ledger and three-point receipt inspection. */
.delivery-list.dy-rewards-list{display:flex;flex-direction:column;gap:0}
.dy-reward-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;color:var(--text,#23466b)}
.dy-reward-table caption{text-align:left;font-size:13px;padding:4px 0 14px;color:var(--muted,#58708a)}
.dy-reward-table th,.dy-reward-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line,#dce6f2);overflow-wrap:anywhere;vertical-align:middle;font-size:14px}
.dy-reward-table th{background:var(--surface-soft,#edf4fa);font-weight:700;white-space:nowrap}
.dy-reward-table th:last-child{width:19%}.dy-reward-table tbody tr:hover{background:var(--surface-soft,#edf4fa)}
.dy-reward-link{border:0;background:transparent;color:var(--primary,#356495);font:inherit;font-weight:600;min-height:44px;padding:4px 0;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}
.dy-reward-link:focus-visible{outline:3px solid var(--primary,#356495);outline-offset:3px;border-radius:4px}.dy-reward-link:active{opacity:.7}
.dy-reward-table .dy-reward-money{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--primary,#356495)}
@media(max-width:900px){
 .dy-reward-table,.dy-reward-table tbody{display:block;width:100%;min-width:0}.dy-reward-table caption{display:block}
 .dy-reward-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .dy-reward-table tr{display:block;border:1px solid var(--line,#dce6f2);border-radius:12px;padding:8px 12px;margin-bottom:12px;background:var(--surface,#fff)}
 .dy-reward-table td{display:grid;grid-template-columns:6em minmax(0,1fr);gap:12px;padding:7px 0;border:0;align-items:center;min-height:30px;white-space:normal;min-width:0}
 .dy-reward-table td::before{content:attr(data-label);font-size:13px;font-weight:400;color:var(--muted,#58708a)}
}
.dy-reward-row{display:flex;align-items:center;gap:16px;width:100%;text-align:left;border:0;border-bottom:1px solid #dce6f2;background:white;padding:13px 8px;color:#23466b;font:inherit;cursor:pointer}
.dy-reward-row strong{flex:0 1 260px;overflow-wrap:anywhere}.dy-reward-row time{font-size:13px;white-space:nowrap}.dy-reward-row b{color:#1c63ba;white-space:nowrap}.dy-reward-row small{color:#8b653b;flex:1}
.dy-tracking-todo{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px;background:#fff6df;border-radius:10px;margin:12px 0}
.dy-inspection-row{display:flex;align-items:center;gap:24px;border:1px solid #dce6f2;border-radius:10px;padding:12px 16px;margin:12px 0}.dy-inspection-row legend{font-weight:600;padding:0 5px}.dy-inspection-row label{display:flex;align-items:center;gap:8px;min-height:36px}.dy-inspection-row input{width:20px;height:20px}.dy-inspection-items{background:#f3f7fc;padding:8px 14px;border-radius:10px}.dy-inspection-items p{margin:6px 0}.dy-inspection-done{padding:26px 10px;text-align:center}.dy-inspection-done strong{font-size:22px;color:#257858}
@media(max-width:650px){.dy-reward-row{gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;font-size:13px}.dy-reward-row strong{font-size:13px}.dy-reward-row time{font-size:11px;white-space:normal;max-width:86px}.dy-reward-row small{grid-column:1/-1;font-size:12px}.dy-inspection-row{margin:10px 0;padding:8px 12px}.dy-inspection-row legend{font-size:15px}}
.delivery-detail-actions .btn,.delivery-modal .modal-actions .btn{white-space:normal;overflow-wrap:anywhere;line-height:1.35;min-height:44px}
.delivery-modal .delivery-detail-actions{padding:10px 0;gap:10px}.delivery-detail-actions .primary{box-shadow:0 3px 10px #165dcc24}
.delivery-detail-actions [data-parcel-action="deliver"]::before{content:'✓ ';font-weight:900}
.dy-resolution-options{display:grid;gap:10px;margin:12px 0}.dy-resolution-options>label{display:flex;gap:10px;align-items:center;padding:14px;background:#f4f8ff;border:1px solid #cbdcf3;border-radius:12px}.dy-resolution-options strong,.dy-resolution-options small{display:block}.dy-resolution-options small{color:#607796;font-size:12px;margin-top:5px}.dy-resolution-options input{width:20px;height:20px;flex-shrink:0}
.delivery-summary .dy-reward-total{color:#1358c3;background:#edf4ff;border-radius:7px;padding:6px 10px}
@media(max-width:760px){#page-delivery .delivery-tabs{display:grid!important;grid-template-columns:1.2fr 1fr .75fr!important;width:100%;gap:3px}#page-delivery .delivery-tabs button{font-size:15px;padding:10px 4px;white-space:nowrap;min-width:0}.delivery-modal .modal-actions .btn{flex:1 1 0;min-width:0;font-size:15px}.delivery-summary{gap:6px 12px}.delivery-summary>span{white-space:nowrap}}
.rc-match{display:flex;flex-direction:column;gap:5px;padding:12px;background:#edf5ff;border:1px solid #cddff6;border-radius:10px;font-size:14px}.rc-match span{color:#587395}.rc-receive-actions{display:flex;gap:10px;flex-wrap:wrap}.rc-receive-actions .btn{flex:1 1 120px;white-space:normal;line-height:1.35}.receipt-camera #rcPhoto{cursor:zoom-in}

/* Unified parcel detail: one selected parcel, one set of permitted actions. */
.dy-parcel-switch{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.dy-parcel-switch .btn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.dy-parcel-switch small{font-weight:400}.dy-current-step{border:1px solid #cbdcfa;border-radius:12px;background:#f3f7ff;padding:14px;margin:12px 0}.dy-current-step>.delivery-detail-actions{margin:10px 0 0}.dy-current-step>.delivery-detail-actions:empty{display:none}.dy-order-context{border:1px solid #dae4f2;border-radius:12px;margin:14px 0;padding:12px}.dy-order-context>summary{cursor:pointer;font-weight:600;color:#264c80;overflow-wrap:anywhere}.dy-order-context>.delivery-facts{margin-top:12px}
@media(max-width:760px){.dy-current-step{padding:12px}.dy-current-step .btn{min-height:44px;white-space:normal;flex:1}.dy-parcel-switch .btn{flex:1 1 130px}.dy-order-context{padding:10px}}

/* V17.1.25: a single evidence surface and distinct order sections. */
.dy-order-context{padding:0;overflow:hidden;background:#fff;box-shadow:0 3px 12px #20466f0b}
.dy-order-context.dy-order-link-only{padding:10px 14px}
.rc-match-empty{margin:10px 0;padding:10px 12px;border:1px solid #bcd5ed;border-radius:10px;background:#eef6ff;color:#234f79;line-height:1.5}
.dy-order-context>summary{padding:14px 16px;background:#f1f6fc;border-bottom:1px solid #dae4f2;font-size:17px}
.dy-order-context>.delivery-facts,.dy-order-context>.delivery-table-wrap,.dy-order-context>.delivery-followups,.dy-order-context>.delivery-photos,.dy-order-context>p{margin:12px 16px}
.dy-order-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #dce6f1;background:#f9fbfe}
.dy-order-actions .btn{min-height:42px;padding:8px 15px;font-size:15px;white-space:normal}
.dy-order-actions span{color:#657d98;font-size:13px}
.purchase-upload-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.purchase-upload-head>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.purchase-upload-head small{color:#5e7897;font-size:13px}
.purchase-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
#poPaste{display:inline-flex;align-items:center;min-height:40px;padding:0 10px;border:1px dashed #9eb8da;border-radius:8px;background:#fff;color:#3d608a;cursor:default}
#poEvidence:empty{display:none}.purchase-evidence{display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px;margin:10px 0 2px}
.purchase-photo-entry{position:relative;display:flex;flex-direction:column;align-items:center;width:82px;margin:0;padding:4px;background:#fff;border:1px solid #cfdced;border-radius:9px;box-shadow:0 2px 5px #173a6810}
.purchase-photo-thumb{display:flex;align-items:center;justify-content:center;width:74px;height:68px;padding:0;border:0;background:#edf3f9;border-radius:6px;overflow:hidden;cursor:zoom-in;color:#365c87}
.purchase-photo-thumb img{width:100%;height:100%;object-fit:cover}.purchase-photo-entry figcaption{width:100%;padding:3px 0 0;text-align:center;font-size:12px;color:#5b7491;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.purchase-photo-remove{position:absolute;top:-8px;right:-8px;display:grid;place-items:center;width:24px;height:24px;border:1px solid #e0b3b3;border-radius:50%;background:#fff;color:#9c3e3e;font-size:18px;cursor:pointer}
.purchase-panel{margin:2px 0 14px;padding:15px 16px;background:#fff;border:1px solid #d6e3f1;border-radius:12px;box-shadow:0 3px 10px #173a6808}
.purchase-items-panel{background:#fbfdff}.purchase-panel-head{display:flex;align-items:center;gap:10px;margin:0 0 13px}
.purchase-panel-head>div{min-width:0;flex:1}.purchase-panel-head h4{margin:0;font-size:17px;color:#1d416c}.purchase-panel-head small{display:block;margin-top:2px;color:#6b7f95;font-size:12px}
.purchase-panel-number{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#dceaff;color:#255b9c;font-size:14px;font-weight:800}
.purchase-panel-head .btn{min-height:38px;white-space:nowrap}.purchase-panel .purchase-form-grid:last-child{margin-bottom:0}
.dy-guest-evidence{margin:10px 0 15px;padding:13px;background:#f2f7fd;border:1px solid #cedff1;border-radius:11px}
.dy-guest-evidence-head,.dy-guest-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.dy-guest-evidence-head{margin-bottom:10px}.dy-guest-evidence-head strong{color:#234d78}.dy-guest-evidence-head span{font-size:13px;color:#647f9e}
.dy-guest-upload-actions{margin-bottom:10px}.dy-guest-upload-actions .btn{min-height:40px}.dy-guest-evidence .delivery-photo-draft{margin:8px 0}
.dy-guest-qr:not([hidden]){display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;padding:10px;border:1px solid #d5e3f0;background:#fff;border-radius:9px}.dy-guest-qr>img{width:126px;height:126px;object-fit:contain}
.dy-guest-qr-photos{display:flex;gap:9px;flex-wrap:wrap}.dy-guest-qr-photo{display:flex;flex-direction:column;gap:4px;width:78px;margin:0}.dy-guest-qr-photo button:first-child{width:78px;height:70px;border:1px solid #c9d9e9;border-radius:7px;background:#f1f5fa;padding:0;overflow:hidden;cursor:zoom-in}.dy-guest-qr-photo img{width:100%;height:100%;object-fit:cover}
@media(max-width:760px){.dy-order-context{padding:0}.dy-order-context>summary{padding:12px;font-size:16px}.dy-order-context>.delivery-facts,.dy-order-context>.delivery-table-wrap,.dy-order-context>.delivery-followups,.dy-order-context>.delivery-photos,.dy-order-context>p{margin:10px 12px}.dy-order-actions{padding:10px 12px}.dy-order-actions .btn{flex:1 1 125px}.purchase-upload-head,.purchase-upload-head>div:first-child{align-items:flex-start}.purchase-upload-actions{width:100%}.purchase-upload-actions .btn{flex:1 1 120px}.purchase-panel{padding:12px}.purchase-panel-head{flex-wrap:wrap}.purchase-panel-head .btn{margin-left:37px}.dy-guest-qr>img{width:104px;height:104px}}

/* V17.1.25: desktop lookup notice, bottom total, field-device work counts. */
.delivery-desktop-note{margin:4px 0 14px;padding:10px 13px;border-left:3px solid #4c80ba;border-radius:8px;background:#eef5fc;color:#345a7d;font-size:14px;line-height:1.5}
.delivery-footer-count{display:flex;justify-content:flex-end;margin:14px 1px 0;color:#637b97;font-size:14px}
.delivery-field-view.delivery-parcel-view .delivery-footer-count{display:none}
.delivery-stage-counts{display:flex;gap:9px;flex-wrap:wrap;margin:5px 0 12px}
.delivery-stage-counts span{display:inline-flex;align-items:center;gap:4px;padding:7px 11px;border-radius:9px;background:#eaf2fd;color:#315b8b;font-size:14px}
.delivery-stage-counts b{font-size:16px;font-variant-numeric:tabular-nums;color:#1956a4}
@media(max-width:760px){.delivery-parcel-view .delivery-footer-count{display:none}.delivery-stage-counts{gap:7px}.delivery-stage-counts span{flex:1;justify-content:center;white-space:nowrap;padding:8px 7px}}

/* Photo routing separates uncertain company matches from guest intake. */
.receipt-camera .rc-category{display:grid;gap:8px;margin:14px 0;padding:12px;border:1px solid #cbdcf3;border-radius:12px;background:#f7faff;min-width:0}
.receipt-camera .rc-category legend{padding:0 5px;color:#234d78;font-weight:700}
.receipt-camera .rc-category label,.receipt-camera .rc-manual-confirm{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px;margin:0;padding:10px 12px;min-height:44px;border:1px solid #d4e2f1;border-radius:9px;background:#fff;line-height:1.45}
.receipt-camera .rc-category input[type=radio],.receipt-camera .rc-manual-confirm input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none;margin:0;accent-color:#476fa3}
.receipt-camera .rc-category label:has(input:checked){border-color:#527db2;background:#eaf3ff}
.rc-candidates{display:grid;gap:10px;margin:12px 0}.rc-candidates>strong{color:#244b78}
.rc-candidate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #cfdef0;border-radius:11px;background:#f5f9fe}
.rc-candidate>div{display:grid;gap:7px;min-width:0;line-height:1.4}.rc-candidate span{color:#587395;font-size:14px;overflow-wrap:anywhere}
.rc-candidate .btn,.rc-candidates>.btn,.rc-receive-actions .btn{min-height:44px}
.rc-candidates .receipt-match{display:grid;justify-items:start;gap:5px;text-align:left;min-height:54px}
@media(max-width:540px){.rc-candidate{align-items:stretch;flex-direction:column}.rc-candidate .btn{width:100%}}

/* Keep the phone-upload code in the evidence toolbar, leaving the order editor visible. */
.purchase-upload-head{min-height:44px}
.purchase-upload-head #poQr:not([hidden]){display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto;gap:9px;max-height:none;overflow:visible;padding:0;margin:0 4px;border:0}
.purchase-upload-head #poQr img{display:block;width:88px;height:88px;flex:none;object-fit:contain;padding:3px;border:1px solid #d6e2ef;border-radius:7px;background:#fff}
.purchase-qr-caption{width:94px;min-width:0;line-height:1.3}
.purchase-qr-caption strong{display:block;font-size:13px;color:#285480}
.purchase-qr-caption p{margin:4px 0 0;font-size:12px;color:#637d9c;overflow-wrap:anywhere}
@media(max-width:900px){.purchase-upload-head #poQr:not([hidden]){order:3}.purchase-upload-head .purchase-upload-actions{order:2}}

/* Receive and delivery are separate steps; destination and recipient share prominence. */
.dy-destination{align-items:baseline;gap:6px 18px}
.dy-destination b,.dy-destination span{color:#284f79;font-size:17px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.dy-card-actions .dy-action-deliver,.delivery-modal .dy-action-deliver{border-color:#1d704a;background:#1d704a;color:#fff;box-shadow:0 3px 10px #135a3826}
.dy-card-actions .dy-action-deliver:hover,.delivery-modal .dy-action-deliver:hover{border-color:#155b3b;background:#155b3b;color:#fff}
.dy-detail-hero .dy-hero-route{display:flex;align-items:end;gap:14px 22px;flex-wrap:wrap;margin-top:16px;padding-top:13px;border-top:1px solid #d7e4f2}
.dy-hero-route>div{flex:1 1 180px;min-width:0}
.dy-hero-route small{margin-bottom:4px!important;font-size:13px!important}
.dy-detail-hero .dy-hero-route strong{font-size:18px;line-height:1.4;color:#244f77}
.dy-hero-tracking{flex:0 0 auto;min-height:42px;white-space:normal}
@media(max-width:760px){.dy-destination b,.dy-destination span{font-size:16px}.dy-hero-route>div{flex-basis:120px}.dy-detail-hero .dy-hero-route strong{font-size:16px}.dy-hero-tracking{width:100%;min-height:44px}}
.dy-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:17px 0 0;padding:0;list-style:none;counter-reset:none}
.dy-progress-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.dy-progress li{position:relative;display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;text-align:center;font-size:12px;line-height:1.3;color:#8293a6}
.dy-progress li+li:before{content:"";position:absolute;right:calc(50% + 17px);top:13px;width:calc(100% - 30px);height:2px;background:#d8e0ea}
.dy-progress li.is-done,.dy-progress li.is-current{color:#2b5e91;font-weight:700}
.dy-progress li.is-reached:before{background:#5587b8}
.dy-progress-dot{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8edf3;color:#76869a;font-size:13px;font-weight:700}
.dy-progress .is-done .dy-progress-dot{background:#3e73a8;color:#fff;box-shadow:0 0 0 3px #dbeafa}
.dy-progress .is-current .dy-progress-dot{background:#3e73a8;color:#fff;box-shadow:0 0 0 3px #dbeafa}
.dy-progress li{min-height:86px}
.dy-progress-label{margin-top:21px}
.dy-progress-handler{display:block;max-width:100%;color:#4e6884;font-size:11px;font-weight:500;overflow-wrap:anywhere}
.dy-progress-time{position:absolute;top:31px;left:-50%;width:100%;min-width:0;white-space:nowrap;color:#405977;font-size:11px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.delivery-form>.modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;width:auto;min-width:0}
.purchase-tab-count{color:#b42318;font-weight:800}
.purchase-tabs .btn.primary .purchase-tab-count{display:inline-block;padding:1px 5px;border-radius:5px;background:#fff;color:#a91c23;line-height:1.2}
.dy-followup-list{grid-template-columns:minmax(0,1fr)!important;gap:0!important;border:1px solid #dce5f1;border-radius:14px;overflow:hidden;background:#fff}
.dy-followup-row+.dy-followup-row{border-top:1px solid #e3ebf4}
.dy-followup-row>button{display:flex;align-items:center;gap:16px;width:100%;min-height:72px;padding:12px 16px;border:0;background:#fff;text-align:left;color:#254568;font:inherit;cursor:pointer}
.dy-followup-row>button:hover,.dy-followup-row>button:focus-visible{background:#f0f6fd;outline:none}
.dy-followup-main{flex:2;min-width:0}.dy-followup-place{flex:1;min-width:0}.dy-followup-row small{display:block;color:#667f99;font-size:13px;margin-top:3px}.dy-followup-row strong{overflow-wrap:anywhere}.dy-followup-open{font-size:13px;color:#3269a7;white-space:nowrap}
@media(max-width:760px){.dy-progress li{min-height:86px}.dy-progress-time{font-size:10px}.dy-progress-time-prefix{display:none}.dy-followup-row>button{flex-wrap:wrap;gap:8px 12px;min-height:80px;padding:12px}.dy-followup-main{flex:1 1 calc(100% - 62px)}.dy-followup-place{flex:1 1 55%}.dy-followup-open{margin-left:auto}}
.dy-hero-tools{display:flex;flex:0 1 auto!important;gap:8px;align-items:center;flex-wrap:wrap}
.dy-hero-tools:empty{display:none}
.dy-hero-tools .btn{min-height:42px;white-space:nowrap}
.dy-order-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#f1f6fc;border-bottom:1px solid #dae4f2}
.dy-order-heading h4{margin:0;color:#264c80;font-size:17px;line-height:1.4}
.dy-order-heading .btn{flex:none;min-height:40px}
.dy-order-context .dy-order-facts,.dy-order-context>.delivery-table-wrap,.dy-order-context>.delivery-evidence,.dy-order-context>.delivery-followups,.dy-order-context>p{margin:12px 16px}
.dy-order-facts{gap:5px 16px}
.dy-order-facts>div{padding:4px 0;color:#526b85}
.dy-order-facts b{color:#274b72;overflow-wrap:anywhere}
.dy-order-context .delivery-table-wrap th{background:#eaf3fa;color:#2c4e6f}
.dy-order-context .delivery-table-wrap td{vertical-align:top}
.dy-order-context .delivery-table-wrap table{min-width:0!important;table-layout:fixed}
.dy-order-context .delivery-table-wrap th,.dy-order-context .delivery-table-wrap td{white-space:normal;overflow-wrap:anywhere}
.dy-order-context .delivery-table-wrap th:first-child{width:62%}
.dy-parcel-facts{padding:10px 12px;background:#f7fafd;border:1px solid #e0e8f1;border-radius:10px}
.dy-parcel-facts>div{padding:2px 0}
.dy-parcel-items{margin:12px 0}
.dy-parcel-items h4{font-size:16px;color:#264c80}
.delivery-required{font-size:13px;font-style:normal;color:#bc2f38;font-weight:700}
@media(max-width:760px){.dy-progress{margin-top:14px}.dy-progress li{font-size:11px}.dy-hero-tools{flex-basis:100%!important}.dy-hero-tools .btn{flex:1 1 135px;min-height:44px}.dy-order-heading{padding:11px 12px;align-items:flex-start}.dy-order-heading h4{font-size:16px}.dy-order-heading .btn{font-size:13px;padding:7px 9px;min-height:38px}.dy-order-context .dy-order-facts,.dy-order-context>.delivery-table-wrap,.dy-order-context>.delivery-evidence,.dy-order-context>.delivery-followups,.dy-order-context>p{margin:10px 12px}.delivery-modal .dy-parcel-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}}
.dy-matching-settings{margin-bottom:22px;padding:16px;border:1px solid #ccdfef;border-radius:12px;background:#f5f9fd}
.dy-matching-settings h3{margin:0 0 5px}
.dy-matching-settings form{display:grid;gap:7px;max-width:500px;margin-top:12px}
.dy-matching-settings label{color:#305779;font-size:15px;font-weight:700}
.dy-matching-controls{display:flex;gap:9px;align-items:center}
.dy-matching-controls input{width:120px;min-height:44px;margin:0;font-size:16px}
.dy-matching-controls .btn{min-height:44px}
.dy-matching-settings small{color:#5d7690;font-size:13px;line-height:1.5}
/* Detail follows the physical handoff: shipment, evidence, quantities, purchase source. */
.dy-detail-journey,.dy-parcel-items{margin:18px 0}
.dy-detail-journey>h4,.dy-parcel-items>h4{margin:0 0 9px;color:#244868;font-size:17px;line-height:1.4}
.dy-journey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.dy-journey-stage{padding:13px 14px;border:1px solid #d7e4ee;border-left:4px solid #5984a8;border-radius:10px;background:#fff;min-width:0}
.dy-journey-heading{display:flex;align-items:baseline;justify-content:space-between;gap:9px;border-bottom:1px solid #e6edf3;padding-bottom:8px}
.dy-journey-heading h5{margin:0;color:#244868;font-size:15px}.dy-journey-heading span{color:#5e7890;font-size:12px;white-space:nowrap}
.dy-journey-stage dl{display:grid;gap:6px;margin:9px 0 0}.dy-journey-stage dl:empty{display:none}
.dy-journey-stage dl>div{display:flex;justify-content:space-between;gap:9px;line-height:1.45}.dy-journey-stage dt{color:#688098;flex:none}.dy-journey-stage dd{margin:0;color:#2a4f75;font-weight:650;text-align:right;overflow-wrap:anywhere}
.dy-journey-stage .delivery-evidence{margin:10px 0 0;padding-top:9px;border-top:1px dashed #d9e5ee}
.dy-journey-stage .delivery-evidence strong{display:block;margin-bottom:6px;font-size:13px;color:#4e6e8b}
.dy-parcel-items>.delivery-table-wrap{border:1px solid #d6e3ed;border-radius:10px;overflow:hidden;background:#fff}
.dy-parcel-items table{width:100%;table-layout:fixed}.dy-parcel-items th:first-child{width:36%}.dy-parcel-items th,.dy-parcel-items td{padding:10px 12px}
.dy-detail-history{margin:16px 0;padding:12px 14px;border:1px solid #dce7ef;border-radius:10px;background:#fbfdff}.dy-detail-history>summary{cursor:pointer;color:#315d83;font-weight:650}
.dy-detail-note{margin:9px 0;color:#4f6b83;line-height:1.5}
@media(max-width:620px){.dy-journey-grid{grid-template-columns:1fr}.dy-journey-stage{padding:11px 12px}.dy-parcel-items thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.dy-parcel-items table,.dy-parcel-items tbody,.dy-parcel-items tr,.dy-parcel-items td{display:block;width:100%;box-sizing:border-box}.dy-parcel-items tr{padding:8px 12px;border-bottom:1px solid #dce6ee}.dy-parcel-items tr:last-child{border-bottom:0}.dy-parcel-items td{display:grid;grid-template-columns:6em minmax(0,1fr);gap:8px;padding:5px 0;border:0}.dy-parcel-items td:before{content:attr(data-label);font-size:12px;color:#688098}.dy-parcel-items td strong{font-size:14px}}
@media(max-width:760px){.purchase-tabs .btn{display:block;max-width:min(100%,350px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-tabs .btn small{display:block;margin-top:3px;white-space:nowrap}}

/* V17.5.1: separate identifiers, field labels, values and stage actions. */
#page-delivery{--dy-label:#52677e;--dy-value:#1b2733;--dy-arrival:#965f00;--dy-dispatch:#205dc0}
.dy-shipment-main{padding-bottom:11px}
.dy-shipment-main .dy-tracking{display:block;color:var(--dy-value);font-size:19px;font-weight:400;line-height:1.38;overflow-wrap:anywhere;-webkit-line-clamp:unset}
.dy-shipment-main .dy-tracking strong{font-size:20px;font-weight:750;color:var(--dy-value)}
.dy-shipment-main .dy-card-label{font-weight:500;color:var(--dy-label)}
.dy-shipment-main .dy-destination{margin-top:14px;gap:4px 18px}
.dy-shipment-main .dy-destination span{font-size:15px;line-height:1.5;font-weight:400;color:var(--dy-label)}
.dy-shipment-main .dy-destination b{font-size:16px;color:var(--dy-value);font-weight:700}
.dy-shipment-main .dy-item-title{margin:9px 0 0;color:var(--dy-label);font-size:14px;line-height:1.55}
.dy-shipment-main .dy-card-item-value{color:var(--dy-value);font-weight:550}
.dy-shipment-main .dy-arrival{margin-top:7px;color:var(--dy-label);font-size:13px;line-height:1.45;font-variant-numeric:tabular-nums}
.dy-shipment-main .dy-arrival strong{color:#365472;font-weight:650}
.dy-card-actions{border-top:1px solid #edf2f7;padding-top:10px}
.dy-detail-link{min-height:44px;padding:8px 2px;color:#315f93;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.dy-detail-hero small,.dy-hero-route small{color:#596e84!important}
.dy-detail-hero .dy-identity strong,.dy-detail-hero .dy-hero-route strong,.dy-order-facts b,.delivery-modal .delivery-facts b,.dy-journey-stage dd,.dy-parcel-items td,.dy-order-context td{color:var(--dy-value,#1b2733)}
.dy-order-facts>div,.dy-journey-stage dt{color:var(--dy-label,#52677e)}
.dy-card-actions .dy-action-receive,.delivery-modal .dy-action-receive{background:#fff3d9;border-color:#e7d09c;color:#965f00;box-shadow:none}
.dy-card-actions .dy-action-receive:hover,.delivery-modal .dy-action-receive:hover{background:#ffe9bb;border-color:#d7b973;color:#805000}
.dy-card-actions .dy-action-deliver,.delivery-modal .dy-action-deliver,.dy-card-actions .dy-action-pickup,.delivery-modal .dy-action-pickup{background:#eaf1ff;border-color:#bfd2f3;color:#205dc0;box-shadow:none}
.dy-card-actions .dy-action-deliver:hover,.delivery-modal .dy-action-deliver:hover,.dy-card-actions .dy-action-pickup:hover,.delivery-modal .dy-action-pickup:hover{background:#dbe8ff;border-color:#9bb9ed;color:#174b9d}
.dy-card-actions .dy-action-receive,.dy-card-actions .dy-action-deliver,.dy-card-actions .dy-action-pickup{box-sizing:border-box;min-height:44px;min-width:64px;padding:8px 12px;line-height:1.4;font-weight:700}
.dy-stage-exception_completed{background:#e8f6ef;color:#20724c}
.dy-stage small,.dy-detail-hero .dy-stage small{display:block!important;margin:2px 0 0;color:inherit!important;font-size:11px;font-weight:500;line-height:1.3}
.rc-type-picker{display:grid;gap:10px;padding:4px 0 12px}
.rc-type-picker p{margin:0 0 4px;color:#52677e;line-height:1.5}
.rc-type-picker button{min-height:64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:10px 16px;text-align:left;border-color:#c6d8ea;background:#f8fbff;color:#1b2733}
.rc-type-picker button:hover,.rc-type-picker button:focus-visible{border-color:#205dc0;background:#eaf2ff;outline:2px solid #205dc0;outline-offset:2px}
.rc-type-picker button span{font-size:13px;color:#52677e}
.rc-selected-type{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-weight:650;color:#1b2733}
.rc-selected-type button{min-height:44px}
.rc-company-warning{padding:10px 12px;border-left:3px solid #bb3636;border-radius:6px;background:#fff0f0;color:#7f2222;line-height:1.5}
.dy-pc-delivery-hint{margin:8px 0 0;color:#355c86;font-size:14px}
.dy-inspection-warning{margin:14px 0 8px;padding:10px 12px;border-left:3px solid #c9821d;border-radius:5px;background:#fff6e8;color:#734912;line-height:1.5}
.dy-photo-error:not(:empty){color:#ad2734;font-weight:600;margin:8px 0}
.rc-expected-summary{gap:7px;background:#f3f7fc}
.rc-expected-summary p{margin:0;line-height:1.5;overflow-wrap:anywhere;color:#52677e}
.rc-expected-summary strong{color:#1b2733;font-weight:700}
.rc-recognized{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin:8px 0 12px;padding:10px 12px;border:1px solid #c6d7ec;border-radius:10px;background:#fff;color:#52677e;font-size:14px}
.rc-recognized strong{color:#1b2733;font-size:15px;overflow-wrap:anywhere}
@media(max-width:760px){.dy-shipment-main .dy-tracking strong{font-size:18px}.dy-shipment-main .dy-destination{margin-top:10px;gap:3px 12px}.dy-shipment-main .dy-destination span{font-size:14px}.dy-shipment-main .dy-destination b{font-size:15px}.dy-shipment-main .dy-item-title{font-size:13px}.dy-card-actions{padding-top:7px}}

/* V17.5.1: signing is a per-item inline inspection, distinct from arrival receipt. */
#page-delivery,.delivery-modal{--dy-inspection:#7046ae}
.dy-card-actions .dy-action-accept,.delivery-modal .dy-action-accept{min-height:44px;border-color:var(--dy-inspection);background:var(--dy-inspection);color:#fff;box-shadow:0 3px 10px #7046ae29}
.dy-card-actions .dy-action-accept:hover,.delivery-modal .dy-action-accept:hover{border-color:#583590;background:#583590;color:#fff}
.dy-card-actions .dy-action-accept:focus-visible,.delivery-modal .dy-action-accept:focus-visible{outline:3px solid #ae90df;outline-offset:2px}
.dy-inline-inspection{scroll-margin-top:80px}
.dy-inline-inspection form{padding:14px;border:1px solid #d8c8f1;border-radius:12px;background:#fbf9ff}
.dy-inline-inspection .dy-inspection-warning{margin:0 0 14px}
.dy-inspect-list{display:grid;gap:12px}
.dy-inspect-item{padding:14px;border:1px solid #e0d6ed;border-radius:10px;background:#fff}
.dy-inspect-item-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px 18px;flex-wrap:wrap;padding-bottom:9px;border-bottom:1px solid #eee8f5;color:#1b2733}
.dy-inspect-item-head strong{font-size:16px;overflow-wrap:anywhere}
.dy-inspect-item-head small{display:block;color:#647486;font-size:13px;font-weight:400}
.dy-inspect-item-head>span{color:#52677e;font-size:13px;white-space:nowrap}
.dy-inspect-question{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 56px 56px;align-items:center;gap:8px;margin-top:8px;padding:4px 5px 4px 10px;border:1px solid #e7e0ef;border-radius:9px;background:#fcfbfe}
.dy-inspect-label{min-width:0;color:#253849;font-size:14px;font-weight:650;line-height:1.35}
.dy-inspect-question label{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:5px;min-width:56px;min-height:44px;padding:5px;border:1px solid transparent;border-radius:7px;color:#425775;font-size:14px;cursor:pointer;touch-action:manipulation;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.dy-inspect-question label:active{transform:scale(.97)}
.dy-inspect-question label:focus-within{outline:2px solid #a687db;outline-offset:1px}
.dy-inspect-question label[data-choice="yes"].is-selected{background:#ece5fa;border-color:#b99add;color:#58348c;box-shadow:inset 0 0 0 1px #b99add}
.dy-inspect-question label[data-choice="no"].is-selected{background:#fff0f1;border-color:#e9aab2;color:#a92f41;box-shadow:inset 0 0 0 1px #e9aab2}
.dy-inspect-question input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--dy-inspection)}
.dy-inspection-actions{display:flex;justify-content:flex-end;margin-top:14px}
.dy-inspection-actions .btn{min-width:120px}
.delivery-modal .dy-inspection-actions .dy-action-accept:disabled{opacity:1;background:#dfe4eb;border-color:#dfe4eb;color:#637084;box-shadow:none;cursor:not-allowed}
.dy-inline-inspection #dyInspectionEvidence{margin-top:12px;padding:12px;border:1px dashed #bf9bdc;border-radius:8px;background:#fff}
@media(max-width:620px){.dy-inline-inspection form{padding:10px}.dy-inspect-item{padding:11px}.dy-inspection-actions .btn{width:100%}}
@media(max-width:360px){.dy-inspect-question{grid-template-columns:minmax(0,1fr) 52px 52px;gap:4px}.dy-inspect-question label{min-width:52px}}
@media(prefers-reduced-motion:reduce){.dy-inspect-question label{transition:none}.dy-inspect-question label:active{transform:none}}

/* Three receipt categories stay distinguishable in color and in text. */
.rc-type-picker button[data-rc-type]{border-left-width:5px}
.rc-type-picker button[data-rc-type="company"]{border-color:#b8c9eb;border-left-color:#315aa0;background:#eef4ff}
.rc-type-picker button[data-rc-type="company"] strong{color:#244c91}
.rc-type-picker button[data-rc-type="guest"]{border-color:#b5ded0;border-left-color:#177a5c;background:#edf9f4}
.rc-type-picker button[data-rc-type="guest"] strong{color:#11664d}
.rc-type-picker button[data-rc-type="takeaway"]{border-color:#e8d3aa;border-left-color:#ad6800;background:#fff7e8}
.rc-type-picker button[data-rc-type="takeaway"] strong{color:#8c5200}
.rc-type-picker button[data-rc-type]:hover,.rc-type-picker button[data-rc-type]:focus-visible{filter:brightness(.965);outline:2px solid currentColor;outline-offset:2px}
.rc-type-picker button[data-rc-type="company"]:focus-visible{color:#244c91}
.rc-type-picker button[data-rc-type="guest"]:focus-visible{color:#11664d}
.rc-type-picker button[data-rc-type="takeaway"]:focus-visible{color:#8c5200}
.rc-recognition-line,.rc-number-review{padding:12px;border:1px solid #cbdcf0;border-radius:10px;background:#f4f8fe;color:#52677e;line-height:1.5}
.rc-recognition-line strong{color:#1b2733;overflow-wrap:anywhere}
.rc-number-review{margin:12px 0}
.rc-number-review>label{display:block;margin-bottom:7px;color:#253849;font-weight:650}
.rc-number-review>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rc-number-review input{flex:1 1 160px;min-width:0;min-height:44px;font-size:16px}
.rc-number-review .btn{min-height:44px}
.rc-number-review small{display:block;margin-top:7px;color:#52677e}
.rc-number-review [role="alert"]:not(:empty){color:#a8242b}
.rc-exact{border-color:#b8c9eb;background:#f4f8ff}
@media(max-width:540px){.rc-number-review .btn{width:100%}}

/* V17.5.4: photo-less list confirmation and explicit delivery completion. */
.dy-direct-receive>p:first-child{margin:0 0 12px;color:#425775;line-height:1.5}
.dy-direct-receive>label{display:block;margin:14px 0 6px;color:#253849;font-weight:650}
.dy-direct-receive>select{width:100%;min-height:44px;font-size:16px}
.dy-direct-number{margin:14px 0;color:#52677e;overflow-wrap:anywhere}
.dy-direct-number strong{color:#1b2733}
#dyDirectReceiveError:not(:empty){color:#ad2734;margin:10px 0}
.dy-delivery-done{padding:18px;border:1px solid #c5dece;border-radius:12px;background:#f2faf4;color:#214c35}
.dy-delivery-done strong{display:block;font-size:18px}
.dy-delivery-done p{margin:8px 0 0;line-height:1.5;overflow-wrap:anywhere}
.dy-delivery-done-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.dy-delivery-done-actions .btn{min-height:44px}

/* V17.5.7: multi-tracking receipt and compact parcel detail. */
.dy-stage-partial_expected{background:#fff3d9;color:#965f00}
.dy-detail-hero .dy-hero-route{align-items:start}
.dy-hero-route>.dy-hero-step{flex:1 1 180px;min-width:0}
.dy-hero-step strong{overflow-wrap:anywhere}
.dy-partial-note{margin:12px 0;padding:11px 13px;border-left:3px solid #d19020;border-radius:8px;background:#fff8e9;color:#684713;line-height:1.5;overflow-wrap:anywhere}
.dy-journey-stage .dy-receipt-more{margin:10px 0 0;border-top:1px dashed #d9e5ee;padding-top:4px}
.dy-receipt-more summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#315f8c;font-weight:650}
.dy-receipt-more>div{padding:9px 11px;background:#f5f8fc;border-radius:8px;color:#344f69;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.dy-receipt-more p{margin:6px 0}
.dy-receive-choices{display:grid;gap:8px;border:0;padding:0;margin:14px 0;min-width:0}
.dy-receive-choices legend{font-weight:650;color:#253849;margin-bottom:7px}
.dy-receive-choices label{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 12px;border:1px solid #cfdbeb;border-radius:9px;background:#fff;cursor:pointer;overflow-wrap:anywhere}
.dy-receive-choices label:has(input:checked){border-color:#6e97c3;background:#edf5ff}
.dy-receive-choices input{width:20px;height:20px;flex:none;accent-color:#366b9d}
.dy-receive-choices span{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.dy-delivery-done-actions{display:grid;grid-template-columns:1fr 1fr}.dy-delivery-done-actions .btn{min-width:0;white-space:normal}}

/* V17.5.7: order-level tracking visibility and clear terminal actions. */
.dy-tracking-progress{margin:12px 0 2px;padding:10px 12px;border:1px solid #dce6f1;border-radius:10px;background:#f8fbff}
.dy-tracking-progress-head{display:flex;justify-content:space-between;gap:8px;color:#52677e;font-size:12px}
.dy-tracking-progress-head strong{color:#365472;font-size:12px;font-weight:700;white-space:nowrap}
.dy-tracking-progress ul{list-style:none;margin:7px 0 0;padding:0;display:grid;gap:5px}
.dy-tracking-progress li{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.dy-tracking-number{min-width:0;color:#1b324d;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dy-tracking-status{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;min-width:64px;padding:3px 6px;border-radius:6px;font-size:11px;font-weight:700;white-space:nowrap}
.dy-tracking-status.is-received{background:#e8f6ef;color:#20724c}
.dy-tracking-status.is-pending{background:#fff3d9;color:#865700}
.dy-tracking-status svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.dy-receipt-done-actions{display:flex;justify-content:flex-end;gap:9px;margin:16px 0 0}
.dy-receipt-done-actions .btn{min-height:44px;white-space:normal}
.dy-parallel-note{margin:10px 0;padding:9px 12px;border-left:3px solid #b87623;border-radius:4px;background:#fff7e9;color:#654b2f;font-size:13px;line-height:1.5}
.dy-receipt-focus{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;margin:10px 0;padding:10px 12px;border:1px solid #a5d7ba;border-radius:9px;background:#edf8f1;color:#1e6044;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.dy-receipt-focus span{color:#516a7d;font-size:12px}
.dy-followup-header,.dy-followup-row>button{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.05fr) minmax(0,1.5fr) 6.8em 7.5em 5em;align-items:center;gap:16px;text-align:left;font-size:14px}
.dy-followup-header{padding:12px 16px;background:#eaf2fa;border-bottom:1px solid #cfdfef;color:#365472;font-size:14px;font-weight:700}
.dy-followup-row>button{min-height:84px;padding:14px 16px;line-height:1.5}
.dy-followup-main{display:flex;align-items:center;gap:10px}
.dy-followup-main>span:last-child{min-width:0}
.dy-followup-reason{font-size:14px;line-height:1.55;color:#435e79;overflow-wrap:anywhere}
.dy-followup-header>span:nth-child(n+4),.dy-followup-row>button>.dy-stage,.dy-followup-age,.dy-followup-open{text-align:center;justify-self:center}
.dy-followup-header>span,.dy-followup-row>button>span{min-width:0}
.dy-followup-row>button:focus-visible{outline:3px solid var(--primary,#426b96);outline-offset:-3px}
@media(max-width:760px){.dy-followup-header{display:none}.dy-followup-row>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.dy-followup-main{grid-column:1/-1}.dy-followup-place,.dy-followup-reason{grid-column:1/-1;font-size:13px}.dy-followup-reason::before{content:'跟进原因：';font-weight:700}.dy-followup-row .dy-stage{grid-column:1}.dy-followup-open{grid-column:2;grid-row:4}.dy-receipt-done-actions .btn{min-width:0}}
.dy-order-disclosure{border-color:#cadcf0}
.dy-order-disclosure>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:48px;cursor:pointer}
.dy-order-disclosure>summary::-webkit-details-marker{display:none}
.dy-order-disclosure>summary:focus-visible{outline:3px solid #4d87be;outline-offset:-3px}
.dy-order-chevron{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #416f9e;transition:transform .18s ease}
.dy-order-disclosure[open] .dy-order-chevron{transform:rotate(90deg)}
.dy-order-disclosure>.dy-order-context{border:0;border-radius:0;box-shadow:none;margin:0}
.dy-purchase-followup-title{margin:18px 16px 7px;color:#264c80}
.dy-followup-dialog{width:min(520px,calc(100vw - 28px));max-height:min(86vh,760px);padding:0;border:1px solid #c7d9ea;border-radius:16px;background:#fff;box-shadow:0 25px 75px #14263d50;color:#213b57;overflow:hidden}
.dy-followup-dialog::backdrop{background:#142b4680;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.dy-followup-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#eff5fb;border-bottom:1px solid #d6e4f1;cursor:move;touch-action:none;user-select:none}
.dy-followup-dialog-head h3{margin:0;font-size:19px}.dy-followup-close{min-width:42px;min-height:42px;font-size:24px;cursor:pointer}
.dy-followup-dialog-body{display:grid;gap:15px;max-height:calc(86vh - 74px);padding:18px;overflow:auto}
.dy-followup-dialog-body>label:not(.dy-followup-complete){display:grid;gap:6px;font-weight:600}
.dy-followup-dialog-body input:not([type=radio]),.dy-followup-dialog-body select{width:100%;min-width:0;min-height:44px;font:inherit}
.dy-followup-help{margin:0;color:#58718a;line-height:1.55}.dy-followup-complete{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;border:1px solid #bfd4e8;border-radius:10px;font-weight:700;cursor:pointer}
.dy-followup-complete input{width:20px;height:20px;accent-color:#416f9e}.dy-followup-error{margin:0;color:#a92e36}
.dy-followup-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px;border-top:1px solid #e0e9f2}.dy-followup-dialog-actions .btn{min-height:44px}
@media(max-width:700px){.dy-followup-dialog{width:calc(100vw - 20px);max-height:90dvh}.dy-followup-dialog-head{cursor:default;touch-action:auto}.dy-followup-dialog-body{max-height:calc(90dvh - 74px)}.dy-followup-dialog-actions .btn{flex:1}}
@media(prefers-reduced-motion:reduce){.dy-order-chevron{transition:none}}

/* Compact purchase follow-up: one decision in-card and one-screen invoice entry. */
.dy-followup-inline-choice{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin-top:8px;padding:6px 12px;border:1px solid #bfd4e8;border-radius:9px;color:#264c80;font-weight:700;cursor:pointer}
.dy-followup-inline-choice:has(input:checked){background:#e7f3ee;border-color:#91bba6;color:#24694a}
.dy-followup-inline-choice:has(input:disabled:not(:checked)){opacity:.58;cursor:not-allowed}
.dy-followup-inline-choice input{appearance:none;width:20px;height:20px;flex:none;margin:0;border:2px solid #8299ab;border-radius:50%;background:#fff;cursor:inherit}
.dy-followup-inline-choice input:checked{border-color:#317859;background:radial-gradient(circle,#317859 0 5px,#fff 5.5px)}
.dy-followup-inline-choice input:focus-visible{outline:3px solid #426b96;outline-offset:3px}
.delivery-modal .dy-followup-inline-choice input[type=checkbox]{width:20px;height:20px;min-height:20px;max-height:20px;padding:0;border-radius:50%;box-sizing:border-box}
.delivery-modal .dy-followup-inline-choice input[type=checkbox]:checked{background:radial-gradient(circle,#317859 0 5px,#fff 5.5px)}
.dy-followup-dialog{width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:visible}
.dy-followup-dialog-body{gap:10px;max-height:none;padding:14px 18px 16px;overflow:visible}
.dy-followup-dialog-body .dy-followup-help{font-size:13px;line-height:1.4}
.dy-followup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.dy-followup-fields>label{display:grid;gap:4px;min-width:0;font-size:13px;font-weight:650}
.dy-followup-fields input,.dy-followup-fields select{min-height:40px!important;padding:7px 10px}
.dy-invoice-attachments{display:grid;gap:7px;padding:10px 12px;border:1px solid #d4e3ec;border-radius:10px;background:#f7fbfd}
.dy-invoice-attachment-head,.dy-invoice-attachment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.dy-invoice-attachment-head strong{font-size:14px}.dy-invoice-attachment-head small,.dy-invoice-paste-hint,.dy-invoice-file-list small{font-size:12px;color:#58718a}
.dy-invoice-attachment-actions .btn{min-height:38px;padding:7px 12px;cursor:pointer}
.dy-invoice-file-button{display:inline-flex;align-items:center;position:relative;overflow:hidden}
.dy-invoice-file-button input[type=file]{position:absolute;width:1px!important;min-width:0!important;height:1px;min-height:0!important;opacity:0;pointer-events:none}
.dy-invoice-file-button:focus-within{outline:3px solid #4d87be;outline-offset:2px}
.dy-invoice-file-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:22px}
.dy-invoice-file-empty{font-size:12px;color:#60788c}
.dy-invoice-file-chip{display:inline-flex;align-items:center;max-width:210px;min-height:34px;gap:5px;padding:3px 4px 3px 7px;border:1px solid #c5d9e8;border-radius:8px;background:#fff;font-size:12px}
.dy-invoice-file-chip img{width:28px;height:28px;object-fit:cover;border-radius:4px}
.dy-invoice-file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dy-invoice-file-chip button{min-width:28px;min-height:28px;border:0;border-radius:5px;background:#eef4fa;color:#264c80;font-size:18px;cursor:pointer}
.dy-invoice-qr:not([hidden]){display:flex;align-items:center;gap:10px;padding-top:4px;border-top:1px solid #d4e3ec;font-size:12px}
.dy-invoice-qr img{width:96px;height:96px;background:white}
.dy-followup-error:empty{display:none}
@media(max-width:700px){.dy-followup-dialog{max-height:calc(100dvh - 16px);overflow:auto}.dy-followup-dialog-body{max-height:none;padding:12px 14px 14px}.dy-followup-fields{gap:8px}.dy-followup-dialog-head{padding:9px 14px}.dy-invoice-qr img{width:76px;height:76px}}
@media(max-width:410px){.dy-followup-fields{grid-template-columns:1fr}.dy-invoice-attachment-head{align-items:flex-start;flex-direction:column;gap:2px}}
@media(max-height:560px){.dy-followup-dialog{overflow:auto}.dy-followup-dialog-body{max-height:none}}

/* Parcel quantities never share text space with a long item name. */
.delivery-modal .dy-parcel-lines{table-layout:fixed;width:100%;min-width:0}
.delivery-modal .dy-parcel-lines col{width:17%}
.delivery-modal .dy-parcel-lines .dy-item-column{width:49%}
.delivery-modal .dy-parcel-lines th:first-child{width:49%}
.delivery-modal .dy-parcel-lines th,.delivery-modal .dy-parcel-lines td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.5}
.delivery-modal .dy-parcel-lines td:first-child strong,.delivery-modal .dy-parcel-lines td:first-child small{display:block;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.delivery-modal .dy-parcel-lines td:not(:first-child){font-variant-numeric:tabular-nums}
.dy-purchase-followups{margin:16px;min-width:0}
.dy-purchase-followups h4{margin:0 0 8px;font-size:15px;color:#263b50}
.dy-followup-entries{border:1px solid #d3e3ed;border-radius:10px;background:#fff;overflow:hidden}
.dy-followup-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:10px 12px}
.dy-followup-entry+.dy-followup-entry{border-top:1px solid #e0e9f1}
.dy-followup-entry-main{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;min-width:0;font-size:14px}
.dy-followup-state{font-size:13px;color:#516a81}
.dy-followup-entry-main small{font-size:12px;color:#60768a}
.dy-followup-entry-action{display:flex;align-items:center;gap:8px}
.dy-followup-entry-action .btn,.dy-followup-entry-action .dy-followup-inline-choice{min-height:44px;margin:0;font-size:14px}
.dy-followup-entry>.dy-followup-note,.dy-followup-entry>.dy-followup-lock,.dy-followup-entry>.delivery-evidence{grid-column:1/-1;margin:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.dy-followup-lock{color:#805712}
.dy-followup-save{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:12px}
.dy-followup-save>span{font-size:13px;color:#60768a;min-width:0;overflow-wrap:anywhere}
.dy-followup-save .btn{min-height:44px;flex:none}
@media(max-width:760px){.dy-purchase-followups{margin:12px}.dy-followup-entry-main{display:grid;gap:4px}.dy-followup-entry-main strong{font-size:16px}.dy-followup-save{align-items:flex-start}.dy-parcel-lines thead{display:none}.delivery-modal .dy-parcel-lines,.delivery-modal .dy-parcel-lines tbody{display:block}.delivery-modal .dy-parcel-lines tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #d3e3ed}.delivery-modal .dy-parcel-lines tr:last-child{border-bottom:0}.delivery-modal .dy-parcel-lines td{display:block;padding:8px;border:0;font-size:15px;min-width:0}.delivery-modal .dy-parcel-lines td:first-child{grid-column:1/-1;border-bottom:1px solid #e0e9f1}.dy-parcel-lines td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:4px;color:#60768a;font-size:12px;font-weight:600}}

/* V17.6.2 · parcel detail: one restrained type and spacing scale. */
.dy-parcel-detail{--dy-ink:#263b50;--dy-muted:#60788c;--dy-line:#d4e3ec;--dy-soft:#f6fafc;display:grid;gap:16px;color:var(--dy-ink);font-size:14px;line-height:1.55}
.dy-parcel-detail>p,.dy-parcel-detail>section,.dy-parcel-detail>details,.dy-parcel-detail>.delivery-detail-actions{margin:0}
.dy-parcel-detail .dy-detail-hero{margin:0;padding:20px 22px;border:1px solid var(--dy-line);border-radius:14px;background:linear-gradient(135deg,#edf5fa,#f8fbfd);box-shadow:none}
.dy-parcel-detail .dy-detail-hero .dy-identity{align-items:center;gap:12px}
.dy-parcel-detail .dy-detail-hero .dy-identity strong{font-size:22px;line-height:1.3;font-weight:700;letter-spacing:.01em;color:var(--dy-ink)}
.dy-parcel-detail .dy-detail-hero small,.dy-parcel-detail .dy-hero-route small{font-size:12px!important;font-weight:550;line-height:1.35;color:var(--dy-muted)!important}
.dy-parcel-detail .dy-detail-hero .dy-hero-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px 18px;margin-top:16px;padding-top:15px;border-color:var(--dy-line)}
.dy-parcel-detail .dy-detail-hero .dy-hero-route>div{min-width:0;flex:none}
.dy-parcel-detail .dy-detail-hero .dy-hero-route strong{font-size:15px;line-height:1.45;font-weight:700;color:var(--dy-ink)}
.dy-parcel-detail .dy-hero-tools{grid-column:1/-1;justify-content:flex-start;gap:8px}
.dy-parcel-detail .dy-hero-tools .btn{min-height:38px;font-size:13px}
.dy-parcel-detail .dy-progress{margin-top:20px}
.dy-parcel-detail .dy-progress-label{font-size:12px}
.dy-parcel-detail .dy-detail-actions,.dy-parcel-detail .delivery-detail-actions{gap:8px;margin:0}
.dy-parcel-detail .delivery-detail-actions .btn{min-height:42px;font-size:14px}
.dy-parcel-detail .dy-detail-journey>h4,.dy-parcel-detail .dy-parcel-items>h4,.dy-parcel-detail>h4{margin:0 0 10px;font-size:16px;font-weight:700;line-height:1.4;color:var(--dy-ink)}
.dy-parcel-detail .dy-detail-journey,.dy-parcel-detail .dy-parcel-items{margin:0}
.dy-parcel-detail .dy-journey-grid{gap:10px}
.dy-parcel-detail .dy-journey-stage,.dy-parcel-detail .dy-group-journey-item{padding:14px;border:1px solid var(--dy-line);border-left:3px solid #6391b2;border-radius:10px;background:#fff;box-shadow:none}
.dy-parcel-detail .dy-journey-stage h5,.dy-parcel-detail .dy-group-journey-head strong{font-size:14px;color:var(--dy-ink)}
.dy-parcel-detail .dy-journey-stage dt,.dy-parcel-detail .dy-journey-stage dd{font-size:13px;line-height:1.45}
.dy-parcel-detail .dy-parcel-items>.delivery-table-wrap{border-color:var(--dy-line)}
.dy-parcel-detail .dy-parcel-items th{background:#eaf3f8;color:var(--dy-ink);font-size:13px}
.dy-parcel-detail .dy-parcel-items td{font-size:14px}
.dy-parcel-detail .dy-detail-note{margin:0;padding:10px 12px;border:1px solid var(--dy-line);border-radius:8px;background:var(--dy-soft);color:#4c6478;font-size:13px}
.dy-parcel-detail .dy-order-disclosure{margin:0;border:1px solid var(--dy-line);border-radius:10px;background:#fff;box-shadow:none}
.dy-parcel-detail .dy-order-disclosure>summary{min-height:48px;padding:11px 14px;border-bottom:0;background:#f1f7fb;color:#2d587b;font-size:14px;font-weight:700;line-height:1.4}
.dy-parcel-detail .dy-order-disclosure[open]>summary{border-bottom:1px solid var(--dy-line)}
.dy-parcel-detail .dy-order-disclosure>summary:hover{background:#e7f1f8}
.dy-parcel-detail .dy-order-disclosure>summary:focus-visible{outline:3px solid #4b75a2;outline-offset:-3px}
.dy-parcel-detail .dy-order-chevron{border-top-width:5px;border-bottom-width:5px;border-left-width:7px}
.dy-parcel-detail .dy-order-disclosure>.dy-order-context{margin:0}
.dy-parcel-detail .dy-order-heading h4{font-size:15px}
.dy-parcel-detail .dy-detail-history{margin:0;background:#fff;border-color:var(--dy-line);font-size:13px}
.dy-parcel-detail .dy-detail-history>summary{min-height:40px;display:flex;align-items:center;font-size:14px}
@media(max-width:700px){
  .dy-parcel-detail{gap:13px;font-size:14px}
  .dy-parcel-detail .dy-detail-hero{padding:15px}
  .dy-parcel-detail .dy-detail-hero .dy-identity strong{font-size:19px}
  .dy-parcel-detail .dy-detail-hero .dy-hero-route{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dy-parcel-detail .dy-hero-step{grid-column:1/-1;padding-top:9px;border-top:1px solid var(--dy-line)}
  .dy-parcel-detail .dy-hero-tools{grid-column:1/-1}
  .dy-parcel-detail .dy-journey-stage{padding:12px}
  .dy-parcel-detail .dy-order-disclosure>summary{min-height:48px;padding:12px}
}
@media(max-width:760px){.delivery-modal .dy-parcel-lines td:first-child::before{display:none}.delivery-modal .dy-parcel-lines tr{padding:0}.dy-parcel-detail .dy-parcel-lines td{font-size:15px}}

/* V17.6.8: completed dots, next-stage lines, and explicit pending labels. */
.dy-progress-status{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:#60788c}
.dy-progress li.is-done .dy-progress-status{color:#2d587b}
.dy-flow-exception{margin:12px 0 0;padding:10px 12px;border:1px solid #efd1a7;border-radius:9px;background:#fff5e8;color:#805712;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.dy-stage-supplement{background:#fff1d9;color:#875a16}
.dy-followup-age{font-size:13px;color:#435e79;font-variant-numeric:tabular-nums;white-space:nowrap}
.dy-records-note{margin:0 0 16px;padding:10px 14px;border-left:3px solid var(--primary,#426b96);background:var(--surface-soft,#eaf3f8);color:var(--text,#263b50);font-size:14px;line-height:1.6}
.delivery-records-view .delivery-toolbar input[type=month]{min-width:0}
.delivery-records-view .delivery-toolbar #deliveryParticipation{flex:0 1 170px}
.delivery-records-view .delivery-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 210px 170px auto auto;grid-template-areas:'search month stage query refresh';gap:10px}
.delivery-records-view .delivery-toolbar>*{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.delivery-records-view .delivery-toolbar #deliveryQ{grid-area:search!important}
.delivery-records-view .delivery-toolbar #deliveryMonth{grid-area:month!important}
.delivery-records-view .delivery-toolbar #deliveryParticipation{grid-area:stage!important;max-width:100%;width:100%}
.delivery-records-view .delivery-toolbar button[type=submit]{grid-area:query!important}
.delivery-records-view .delivery-toolbar #deliveryRefresh{grid-area:refresh!important}
.delivery-records-view .delivery-toolbar>[hidden]{display:none!important}
.dy-records-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;color:var(--text,#263b50)}
.dy-records-table col:nth-child(1){width:22%}.dy-records-table col:nth-child(2){width:13%}.dy-records-table col:nth-child(3){width:15%}.dy-records-table col:nth-child(4){width:15%}.dy-records-table col:nth-child(5){width:16%}.dy-records-table col:nth-child(6){width:19%}
.dy-records-table caption{text-align:left;color:var(--muted,#60768a);font-size:13px;padding:6px 0 12px}
.dy-records-table th,.dy-records-table td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line,#d3e5f0);font-size:14px;line-height:1.5;vertical-align:middle;overflow-wrap:anywhere}
.dy-records-table th{background:var(--surface-soft,#eaf3f8);font-weight:700}
.dy-records-table td small{display:block;color:var(--muted,#60768a);font-size:12px;line-height:1.6;margin-top:3px}
.dy-records-table tbody tr:hover{background:var(--surface-soft,#eaf3f8)}
.dy-record-link{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;width:100%;min-width:0;max-width:100%;min-height:44px;padding:4px 0;border:0;background:transparent;text-align:left;color:var(--primary,#426b96);font:inherit;cursor:pointer;overflow-wrap:anywhere;white-space:normal}
.dy-record-link>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.dy-record-link span{text-decoration:underline;text-underline-offset:3px;font-size:13px}
.dy-record-link:focus-visible{outline:3px solid var(--primary,#426b96);outline-offset:3px;border-radius:4px}
.dy-record-link:active{background:var(--surface-soft,#eaf3f8)}
.dy-participation-tags{display:flex;flex-wrap:wrap;gap:6px}
.dy-participation-tag{display:inline-block;padding:3px 8px;border:1px solid #e6bcc3;border-radius:5px;background:#fff1f3;color:#9c283a;font-size:13px;font-weight:650;white-space:normal}
.dy-record-money{color:var(--primary,#426b96);font-variant-numeric:tabular-nums;white-space:nowrap}
.dy-record-reward{min-width:0;max-width:100%;overflow-wrap:anywhere}.dy-record-reward>small{line-height:1.45}.dy-record-review{display:grid;justify-items:start;gap:3px;margin-top:7px}.dy-record-review .dy-review-status{max-width:100%;white-space:normal}.dy-record-review small{margin:0!important}
.dy-records-table time{font-variant-numeric:tabular-nums}
@media(max-width:1000px){
 .delivery-records-view .delivery-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'search search' 'month stage' 'query refresh'}
 .dy-followup-header{display:none}.dy-followup-row>button{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
 .dy-followup-main,.dy-followup-place,.dy-followup-reason{grid-column:1/-1}
 .dy-followup-row>button>.dy-stage{grid-column:1;grid-row:4;justify-self:start;text-align:left}
 .dy-followup-age{grid-column:1;grid-row:5;justify-self:start;text-align:left}.dy-followup-age::before{content:'状态耗时：'}
 .dy-followup-open{grid-column:2;grid-row:5;justify-self:end}
 .dy-followup-reason::before{content:'跟进原因：';font-weight:650}
 .dy-records-table,.dy-records-table tbody{display:block;width:100%;min-width:0}.dy-records-table colgroup{display:none}
 .dy-records-table caption{display:block}.dy-records-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .dy-records-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line,#d3e5f0);border-radius:12px;padding:12px;margin-bottom:12px;background:var(--surface,#f8fbfd);gap:8px 16px}
 .dy-records-table td{display:block;border:0;padding:0;min-width:0}.dy-records-table td:first-child{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid var(--line,#d3e5f0)}
 .dy-records-table td::before{content:attr(data-label);display:block;color:var(--muted,#60768a);font-size:12px;font-weight:650;margin-bottom:5px}
}
@media(max-width:480px){
 .dy-records-table tr{grid-template-columns:minmax(0,1fr)}.dy-records-table td{display:grid;grid-template-columns:6.5em minmax(0,1fr);gap:8px;font-size:16px}
 .dy-records-table td:first-child{display:block}.dy-records-table td::before{font-size:13px}
 .delivery-records-view .delivery-toolbar input[type=month],.delivery-records-view .delivery-toolbar #deliveryParticipation{flex:1 1 calc(50% - 8px);min-width:0}
 .dy-records-note{font-size:14px}.dy-followup-row>button{font-size:16px}
}
.dy-progress li{min-height:106px}
.dy-progress-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:540px;margin-inline:auto}
.dy-progress-two li{min-height:105px}
.dy-progress-two .dy-progress-label{font-size:14px}
.dy-progress-two .dy-progress-time{top:30px;font-size:12px}
.dy-progress-two .dy-progress-handler{max-width:95%;font-size:12px}
.dy-view-switch{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;margin:0 0 12px auto;padding:3px;border:1px solid #d3e0ef;border-radius:10px;background:#f1f6fc;color:#4d6682}
.dy-view-switch[hidden]{display:none}
.dy-view-switch>span{padding:0 8px;font-size:13px;font-weight:650}
.dy-view-switch button{min-width:68px;min-height:38px;padding:7px 13px;border:0;border-radius:7px;background:transparent;color:#315777;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.dy-view-switch button[aria-pressed="true"]{background:#4874a3;color:#fff;box-shadow:0 2px 8px #284e7929}
.dy-view-switch button:focus-visible{outline:3px solid #315d95;outline-offset:2px}
.delivery-list .dy-parcel-cards,.delivery-list .dy-parcel-table-wrap{grid-column:1/-1;min-width:0}
.dy-parcel-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.delivery-layout-list .dy-parcel-cards,.delivery-layout-cards .dy-parcel-table-wrap{display:none}
.dy-parcel-table-wrap{overflow-x:auto;border:1px solid #d5e3f0;border-radius:13px;background:#fff}
.dy-parcel-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#203a56;font-size:14px}
.dy-parcel-table th{padding:13px 14px;background:#eaf2f9;color:#355777;text-align:left;font-size:13px;font-weight:750;white-space:nowrap}
.dy-parcel-table th:nth-child(1){width:23%}.dy-parcel-table th:nth-child(2){width:15%}.dy-parcel-table th:nth-child(3){width:27%}.dy-parcel-table th:nth-child(4){width:14%}.dy-parcel-table th:nth-child(5){width:21%}
.dy-parcel-table td{padding:13px 14px;border-top:1px solid #e2eaf2;vertical-align:middle;overflow-wrap:anywhere}
.dy-parcel-table tbody tr:hover{background:#f6faff}
.dy-parcel-table td strong{display:block;font-weight:700}.dy-parcel-table td small{display:block;margin-top:4px;color:#607990;font-size:12px;line-height:1.45}
.dy-list-kind{display:flex;align-items:center;gap:10px;min-width:0}.dy-list-kind>div{min-width:0}.dy-list-kind small{overflow-wrap:anywhere}
.dy-list-item{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5}
.dy-list-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.dy-list-actions .btn{min-height:36px;padding:6px 9px;font-size:12px;white-space:nowrap}
@media(max-width:1050px) and (min-width:761px){.dy-parcel-table{min-width:860px}.dy-parcel-table-wrap{max-width:100%}}
@media(max-width:760px){.dy-view-switch,.dy-parcel-table-wrap{display:none!important}.dy-parcel-cards{display:grid!important;grid-template-columns:minmax(0,1fr)}.dy-progress-two{gap:8px}}
/* Receipt observations and signing notes: readable without relying on color alone. */
.dy-receipt-condition{min-width:0;margin:14px 0;padding:10px 12px;border:1px solid #c9dce9;border-radius:10px;background:#f6fafc}
.dy-receipt-condition legend{padding:0 5px;color:#263b50;font-size:14px;font-weight:700}
.dy-receipt-condition>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dy-receipt-condition label{display:flex!important;align-items:center;gap:9px;min-height:44px;margin:0!important;padding:4px 8px;background:#fff;border:1px solid #dce7ef;border-radius:8px;cursor:pointer;line-height:1.5}
.dy-receipt-condition input[type=checkbox]{flex:none;width:20px!important;height:20px!important;min-height:0;margin:0;accent-color:#426b96}
.dy-receipt-condition small{display:block;margin-top:7px;font-size:13px;color:#52677e;line-height:1.5}
.dy-receipt-photo-note{padding:10px 12px;border-left:3px solid #426b96;background:#eaf3f8;color:#263b50;line-height:1.6;font-size:14px}
.dy-receipt-confirm{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #c7d9ea;border-radius:14px;background:#f6fafc;color:#263b50;box-shadow:0 20px 60px #14263d50}
.dy-receipt-confirm::backdrop{background:#142b4680}
.dy-receipt-confirm h3{margin:0 0 10px;font-size:20px}.dy-receipt-confirm p{margin:0 0 18px;line-height:1.6}.dy-receipt-confirm .btn{min-height:44px}
.dy-receipt-confirm button:focus-visible,.dy-receipt-condition input:focus-visible{outline:3px solid #426b96;outline-offset:3px}
.dy-receipt-warning{display:grid;gap:5px;padding:11px 13px;border:1px solid #efc4c9;border-left:3px solid #b52d3c;border-radius:8px;background:#fff3f4;color:#a32636;line-height:1.6;overflow-wrap:anywhere}
.dy-receipt-warning strong{font-size:14px}.dy-receipt-warning span{font-size:13px}
.dy-receipt-record{margin:10px 0 0;font-size:13px;color:#52677e;line-height:1.6;overflow-wrap:anywhere}
.dy-verification-note{display:grid;gap:6px;margin-top:10px;line-height:1.6;text-align:left;overflow-wrap:anywhere;word-break:normal}
.dy-verification-note>span{font-size:13px;font-weight:700}.dy-verification-note ul{margin:0;padding-left:1.3em;font-size:14px}.dy-verification-note li+li{margin-top:5px}
.dy-anomaly-text,.dy-anomaly-text li,.dy-anomaly-text>span{color:#b3293b}
.dy-inline-inspection .dy-receipt-warning{margin-bottom:12px}
@media(max-width:480px){.dy-receipt-condition>div{grid-template-columns:1fr}.dy-receipt-condition label{font-size:16px}.dy-receipt-confirm{padding:16px}.dy-verification-note ul{font-size:15px}}
@media(max-width:760px){.dy-followup-row .dy-stage{grid-column:1;grid-row:4}.dy-followup-age{grid-column:1;grid-row:5}.dy-followup-age::before{content:'状态耗时：'}.dy-followup-open{grid-column:2;grid-row:5}.dy-progress-handler{overflow-wrap:anywhere}.dy-progress-label{white-space:normal}}
/* Procurement is a draft until the single terminal confirmation. */
.dy-followup-segment{margin:0;padding:0;border:0;display:flex;gap:6px;min-width:0}
.dy-followup-segment label{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #738aa0;border-radius:8px;cursor:pointer;background:#f6fafc;color:#263b50;white-space:normal}
.dy-followup-segment label:has(:checked){background:#e5f3ed;border-color:#559a9a;color:#18594a}
.dy-followup-segment label:has(:disabled){cursor:default;opacity:.65}
.dy-followup-segment label:focus-within{outline:2px solid #426b96;outline-offset:2px}
.dy-followup-segment input{margin:0;width:18px;height:18px;accent-color:#247569}
.dy-followup-segment legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dy-followup-final{color:#18594a;font-weight:700}
.dy-followup-header,.dy-followup-row>button{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(5em,.65fr) minmax(0,1.35fr) 5em 6.5em 5em;gap:14px}.dy-followup-header>span:nth-child(4){text-align:left;justify-self:start}.dy-followup-person{overflow-wrap:anywhere;text-align:left;justify-self:start}
@media(max-width:1000px){.dy-followup-row>button{grid-template-columns:minmax(0,1fr) auto}.dy-followup-person{grid-column:1/-1;grid-row:3}.dy-followup-person::before{content:'采购跟进人：';color:#60768a}.dy-followup-reason{grid-row:4}.dy-followup-row>button>.dy-stage{grid-row:5}.dy-followup-age{grid-row:6}.dy-followup-open{grid-row:6}}
.dy-followup-entry-action{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dy-followup-entry-action [hidden]{display:none!important}
@media(max-width:700px){.dy-followup-entry{display:block}.dy-followup-entry-main{width:100%;min-width:0}.dy-followup-entry-action{width:100%;margin-top:10px}.dy-followup-segment{width:100%;flex-wrap:nowrap}.dy-followup-segment label{flex:1;min-width:0;justify-content:center;white-space:nowrap}}
