/* Order and receipt workspaces: one hierarchy, compact cards, native controls. */
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace){--af-work-line:#d7e3ed;--af-work-soft:#f5f8fc;min-width:0!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace)>.page-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:58px!important;padding:0!important;margin:0 0 12px!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace)>.page-head>div:first-child{min-width:0!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace)>.page-head h2{margin:0!important;font-size:24px!important;font-weight:750!important;line-height:1.25!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace)>.page-head :is(small,.staff-page-note){display:none!important}
body.af-ux #orders.af-order-workspace :is(.order-iphone-logo-v3431,.order-iphone-bell-v3431){display:none!important}
body.af-ux #orders.af-order-workspace .order-iphone-brand-v3431{display:block!important;min-width:0!important}
body.af-ux #orders.af-order-workspace #order-command-subtitle{font-size:12px!important;line-height:1.4!important;margin:3px 0 0!important}
body.af-ux #orders.af-order-workspace .order-iphone-head-actions-v3431{display:flex!important;align-items:center!important;gap:8px!important;flex-shrink:0!important}
body.af-ux #orders.af-order-workspace .order-head-filter-v34213{width:44px!important;height:44px!important;min-width:44px!important;border:1px solid var(--af-work-line)!important;border-radius:12px!important;background:#fff!important;color:#52697c!important}
body.af-ux #deliveries.af-delivery-workspace .delivery-head-actions{display:flex!important;gap:8px!important;min-width:0!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace)>.page-head .btn{min-height:44px!important;min-width:0!important;padding:8px 12px!important;font-size:13px!important;white-space:nowrap!important}

body.af-ux #orders.af-order-workspace .order-command-panel-v3430{position:static!important;border:1px solid var(--af-work-line)!important;border-radius:16px!important;padding:10px!important;margin:0 0 12px!important;box-shadow:none!important;background:#fff!important}
body.af-ux #orders.af-order-workspace #order-filter-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important}
body.af-ux #orders.af-order-workspace #order-filter-tabs>button{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:4px!important;justify-items:center!important;min-width:0!important;width:100%!important;height:60px!important;min-height:60px!important;padding:7px 2px!important;border-radius:12px!important;letter-spacing:0!important}
body.af-ux #orders.af-order-workspace #order-filter-tabs>button>span{font-size:12px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap!important}
body.af-ux #orders.af-order-workspace #order-filter-tabs>button>b{height:22px!important;min-width:26px!important;font-size:13px!important;font-weight:750!important;line-height:1!important}
body.af-ux #orders.af-order-workspace #order-filter-tabs>button>small{display:none!important}
body.af-ux #orders.af-order-workspace :is(.order-command-filters-v3430,.order-command-extra-filters-v3431) :is(label,button){min-height:44px!important;height:auto!important;min-width:0!important;border-radius:10px!important}
body.af-ux #orders.af-order-workspace :is(.order-command-filters-v3430,.order-command-extra-filters-v3431) :is(select,input){min-height:42px!important;max-width:100%!important;font-size:16px!important}

body.af-ux #deliveries.af-delivery-workspace .qr-search-inline-v34242{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:8px!important;border-radius:14px!important;box-shadow:none!important}
body.af-ux #deliveries.af-delivery-workspace .qr-search-inline-v34242>.employee-search-panel{grid-column:1!important;grid-row:1!important;grid-template-columns:minmax(0,1fr)!important}
body.af-ux #deliveries.af-delivery-workspace .qr-search-inline-v34242>.sepay-reopen-toolbar{grid-column:2!important;grid-row:1!important}
body.af-ux #deliveries.af-delivery-workspace .employee-search-count{display:none!important}
body.af-ux #deliveries.af-delivery-workspace .employee-search-box input{font-size:16px!important;min-width:0!important;padding-inline:6px!important}
body.af-ux #deliveries.af-delivery-workspace .employee-search-box>button{width:44px!important;min-width:44px!important;height:44px!important}
body.af-ux #deliveries.af-delivery-workspace .sepay-reopen-toolbar .btn{min-width:0!important;width:auto!important;min-height:44px!important;height:44px!important;padding:0 10px!important;font-size:12px!important}
.af-workspace-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:12px;border:1px solid #d7e3ed;border-radius:14px;background:#fff;color:#16354f}
.af-workspace-summary>div{min-width:0;display:grid;gap:3px}
.af-workspace-summary dt{font-size:11px;line-height:1.4;color:#52697c}
.af-workspace-summary dd{margin:0;font-size:15px;line-height:1.4;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.af-workspace-summary>.af-workspace-volume{grid-column:1/-1;padding-top:8px;border-top:1px solid #e4ecf3}
.af-workspace-summary>.af-workspace-volume dd{font-size:12px;font-weight:600;color:#52697c}
.af-workspace-summary>.af-workspace-volume dt{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}

body.af-ux #orders.af-order-workspace #order-list,
body.af-ux #deliveries.af-delivery-workspace #delivery-list>.staff-delivery-list-compact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;min-width:0!important;align-items:start!important}
body.af-ux #orders.af-order-workspace #order-list>.order-ux-card-v34213{display:grid!important;gap:9px!important;min-width:0!important;padding:10px 12px!important;border-radius:16px!important;box-shadow:0 2px 8px #16354f05!important;background:#fff!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-v34225{min-width:0!important;border-radius:16px!important;box-shadow:0 2px 8px #16354f05!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-summary-v34225{padding:10px 12px 12px 16px!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-head-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-head-v34225{display:grid!important;grid-template-columns:28px auto minmax(0,1fr) 44px!important;gap:6px!important;align-items:center!important;min-height:44px!important;margin:0!important}
body.af-ux #orders.af-order-workspace #order-list .order-sequence-v34221,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-sequence-v34225{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;border-radius:9px!important;font-size:11px!important;font-weight:750!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-status-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-status-v34225{min-height:28px!important;padding:4px 8px!important;font-size:11px!important;font-weight:650!important;letter-spacing:0!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-number-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-order-number-v34225{font-size:11px!important;line-height:1.4!important;font-weight:650!important;letter-spacing:0!important;color:#52697c!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-menu-v34213>summary{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.af-ux #deliveries.af-delivery-workspace :is(#delivery-list,.af-workspace-pane) .af-delivery-menu-toggle{display:grid!important;place-items:center!important;box-sizing:border-box!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#52697c!important;font-size:28px!important;font-weight:650!important;line-height:1!important;cursor:pointer!important;touch-action:manipulation!important}
body.af-ux #deliveries.af-delivery-workspace :is(#delivery-list,.af-workspace-pane) .af-delivery-menu-toggle:focus-visible{outline:2px solid #0878ef!important;outline-offset:-4px!important;border-radius:8px!important}
body.af-ux #deliveries.af-delivery-workspace :is(#delivery-list,.af-workspace-pane) .af-delivery-menu-source[hidden]{display:none!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-customer-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-customer-v34225{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;min-width:0!important;margin:0 0 2px!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-avatar-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-customer-avatar-v34225{display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:12px!important;background:#eaf3ff!important;color:#1263cf!important;font-size:18px!important;font-weight:750!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.order-ux-customer-copy-v34213,.delivery-customer-copy-v34225){display:grid!important;gap:1px!important;min-width:0!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.order-command-customer-name-v3430,.delivery-customer-copy-v34225)>.customer-entity-link-v34258{min-height:44px!important;font-size:17px!important;line-height:1.3!important;font-weight:750!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) .entity-contact-v34258{margin:0!important;font-size:12px!important;line-height:1.4!important;font-weight:400!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important}
body.af-ux #orders.af-order-workspace #order-list .af-order-amount,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-money-v34225{display:grid!important;gap:3px!important;align-self:center!important;justify-items:end!important;max-width:120px!important;text-align:right!important;min-width:0!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-money-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-money-v34225>strong{font-size:17px!important;line-height:1.35!important;font-weight:750!important;white-space:normal!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums}
body.af-ux #orders.af-order-workspace #order-list .af-order-payment,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-money-v34225>small{font-size:11px!important;line-height:1.35!important;font-weight:500!important;white-space:normal!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-facts-v34213,
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-facts-v34225{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;gap:0!important;min-width:0!important;padding:0!important;border:1px solid #e1e9f1!important;border-radius:11px!important;background:#f7f9fc!important;margin-top:7px!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.order-ux-facts-v34213,.delivery-card-facts-v34225)>div{display:grid!important;align-content:start!important;gap:4px!important;min-width:0!important;padding:8px!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.order-ux-facts-v34213,.delivery-card-facts-v34225)>div+div{border-left:1px solid #e1e9f1!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.order-ux-facts-v34213,.delivery-card-facts-v34225) span{font-size:12px!important;line-height:1.45!important;font-weight:500!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-actions-v34213{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:2px 0 0!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-actions-v34213>.mini-btn{min-height:46px!important;width:100%!important;padding:8px!important;font-size:13px!important;line-height:1.3!important;font-weight:650!important;border-radius:12px!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-actions-v34213>.mini-btn:only-child{grid-column:1/-1!important}
body.af-ux #orders.af-order-workspace #order-list .af-route-actions{margin:0!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-retry-v34213{font-size:12px!important;line-height:1.4!important;min-height:34px!important}
body.af-ux #orders.af-order-workspace #order-list .order-ux-retry-v34213>span{white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux #orders.af-order-workspace #order-list .af-order-attention.danger{color:#ad283b!important;font-weight:650!important}
body.af-ux #orders.af-order-workspace #order-list .af-order-attention.warning{color:#946000!important;font-weight:650!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-expanded-v34225{padding:12px 12px 12px 16px!important;gap:10px!important;background:#fbfcfe!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .staff-delivery-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .staff-delivery-facts>span{display:grid!important;gap:4px!important;min-width:0!important;padding:9px!important;border-radius:11px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .staff-delivery-facts small{font-size:11px!important;line-height:1.4!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:#52697c!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .staff-delivery-facts b{font-size:13px!important;line-height:1.4!important;font-weight:650!important;overflow-wrap:anywhere!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-linkage-banner{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-linkage-banner>span{min-width:0!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-linkage-banner :is(small,strong){letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-linkage-banner>button{min-width:0!important;min-height:44px!important;flex-shrink:0!important;padding:7px 9px!important;font-size:12px!important;border-radius:10px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list .staff-delivery-actions{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:8px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list :is(.staff-delivery-actions button,.sepay-reopen-button){min-height:44px!important;font-size:13px!important;padding:8px!important;border-radius:12px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-list :is(.staff-delivery-note,.cancel-reason){margin:0!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere!important}

@media(min-width:1100px){
  body.af-ux #orders.af-order-workspace #order-list,
  body.af-ux #deliveries.af-delivery-workspace #delivery-list>.staff-delivery-list-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(#order-list,#delivery-list) :is(.empty,.empty-state,.af-empty-state){grid-column:1/-1!important}
}
@media(max-width:390px){
  body.af-ux #deliveries.af-delivery-workspace>.page-head{flex-wrap:wrap!important;gap:8px!important}
  body.af-ux #deliveries.af-delivery-workspace .delivery-head-actions{flex:1 1 auto!important;justify-content:flex-end!important}
  body.af-ux #orders.af-order-workspace #order-list .order-ux-customer-v34213,
  body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-customer-v34225{grid-template-columns:44px minmax(0,1fr) auto!important;gap:6px!important}
  body.af-ux #orders.af-order-workspace #order-list .order-ux-money-v34213,
  body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-money-v34225>strong{font-size:15px!important}
  body.af-ux #orders.af-order-workspace #order-list .af-order-amount,
  body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-money-v34225{max-width:100px!important}
  body.af-ux #orders.af-order-workspace #order-list .order-ux-head-v34213,
  body.af-ux #deliveries.af-delivery-workspace #delivery-list .delivery-card-head-v34225{gap:4px!important}
}

/* Native workflow dialogs: stationary head/review/actions, one scrolling body. */
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog){box-sizing:border-box!important;width:min(720px,calc(100vw - 32px))!important;max-width:720px!important;height:min(90dvh,860px)!important;max-height:90dvh!important;min-height:0!important;margin:auto!important;padding:0!important;overflow:hidden!important;border:1px solid #d7e3ed!important;border-radius:18px!important;background:#f5f8fc!important;color:#16354f!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell){box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:0!important;width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head{box-sizing:border-box!important;position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;gap:12px!important;flex:none!important;width:100%!important;min-height:0!important;margin:0!important;padding:12px 14px!important;border-bottom:1px solid #dce7ef!important;background:#fff!important;box-shadow:none!important;transform:none!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head>div{min-width:0!important;flex:1!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head small{font-size:10px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:.06em!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head h2{font-size:21px!important;line-height:1.3!important;font-weight:750!important;margin:2px 0 0!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head p{font-size:12px!important;line-height:1.45!important;font-weight:400!important;margin:4px 0 0!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head .icon-btn{box-sizing:border-box!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #d7e3ed!important;border-radius:12px!important;background:#f5f8fc!important;color:#52697c!important;font-size:24px!important;box-shadow:none!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head .icon-btn:not(:focus-visible){outline:none!important;outline-offset:0!important}
/* Content rows keep their intrinsic height when the viewport or keyboard leaves less room. */
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form-scroll,#delivery-form-scroll,#order-detail-content){box-sizing:border-box!important;position:relative!important;flex:1 1 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;align-content:start!important;gap:12px!important;width:100%!important;min-height:0!important;min-width:0!important;margin:0!important;padding:12px 14px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scroll-padding:12px;scrollbar-gutter:auto;background:#f5f8fc!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll>.two{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important;min-width:0!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form-scroll,#delivery-form-scroll) label{font-size:13px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:0!important;min-width:0!important;gap:6px!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form-scroll,#delivery-form-scroll) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="search"]):not([type="date"]):not([type="time"]),select:not(.delivery-customer-hidden),textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;margin:0!important;padding:9px 10px!important;border-radius:10px!important;font-size:16px!important;line-height:1.35!important;font-weight:500!important;letter-spacing:0!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form-scroll,#delivery-form-scroll) :is(input,textarea)[readonly]{background:#eef3f7!important;color:#52697c!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form-scroll,#delivery-form-scroll) :is(.helper-note,.field-hint){font-size:12px!important;line-height:1.45!important;font-weight:400!important;letter-spacing:0!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .aquaflow-line-items{display:grid!important;gap:8px!important;margin:0!important;padding:12px!important;border:1px solid #d7e3ed!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .section-head{margin:0!important;padding:0!important;min-height:0!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .section-head h3{font-size:16px!important;margin:2px 0 0!important;font-weight:700!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .section-head small{font-size:10px!important;letter-spacing:.06em!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .order-product-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:6px 0!important;margin:0!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .order-draft-note{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;padding:10px!important;border:1px solid #d7e3ed!important;border-radius:12px!important;background:#fff!important;margin:0!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .order-draft-note[hidden],
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .order-draft-note button[hidden]{display:none!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form-scroll .order-draft-note .btn{min-height:44px!important;font-size:12px!important;padding:8px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-step-card{padding:12px!important;border:1px solid #d7e3ed!important;border-radius:14px!important;box-shadow:none!important;background:#fff!important;gap:10px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-step-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:0!important;margin:0 0 10px!important;padding:0!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-step-head>span{width:28px!important;height:28px!important;min-width:28px!important;font-size:11px!important;border-radius:9px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-step-head strong{font-size:15px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:0!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-step-head small{display:none!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-option-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-option-chip{min-height:44px!important;margin:0!important;padding:8px 4px!important;font-size:12px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-option-panel.is-hidden{display:none!important}
/* A single text column also resets the older mobile-only icon/row placement on desktop. */
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context:not(.is-hidden){box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;align-content:start!important;align-self:start!important;gap:4px!important;min-width:0!important;height:auto!important;min-height:min-content!important;max-height:none!important;margin:0!important;padding:10px!important;border-radius:12px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context:not(.is-hidden)::before{content:none!important;display:none!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context> :is(span,strong,small){grid-column:1!important;grid-row:auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;letter-spacing:0!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context>span{font-size:10px!important;line-height:1.4!important;font-weight:700!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context>strong{font-size:14px!important;line-height:1.4!important;font-weight:650!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-order-context>small{font-size:12px!important;line-height:1.45!important;font-weight:400!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-total-card{margin:0!important;padding:12px!important;border-radius:12px!important;gap:8px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-total-card strong{font-size:22px!important;line-height:1.35!important;font-weight:750!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-breakdown{font-size:12px!important;line-height:1.5!important;font-weight:400!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-payment-shortcuts button{min-height:44px!important;padding:9px!important;font-size:13px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form-scroll .delivery-payment-shortcuts small{font-size:11px!important;font-weight:400!important}

body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>:is(.workflow-fixed-actions,.order-detail-actions){box-sizing:border-box!important;position:relative!important;inset:auto!important;flex:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-height:0!important;margin:0!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #dce7ef!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important;transform:none!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>:is(.workflow-fixed-actions,.order-detail-actions) .btn{box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:46px!important;height:auto!important;padding:9px!important;font-size:14px!important;line-height:1.3!important;font-weight:650!important;border-radius:12px!important;white-space:normal!important;box-shadow:none!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form .aquaflow-order-total{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:0 0 8px!important;min-height:0!important;border:0!important;border-bottom:1px solid #e4ecf3!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
body.af-ux #order-dialog.af-workflow-dialog #order-form .aquaflow-order-total small{font-size:10px!important;line-height:1.4!important;font-weight:500!important;letter-spacing:0!important}
body.af-ux #order-dialog.af-workflow-dialog #order-total{font-size:19px!important;line-height:1.3!important;font-weight:750!important;white-space:nowrap!important}
body.af-ux #order-dialog.af-workflow-dialog #order-product-summary{min-width:0!important;max-width:60%!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .workflow-fixed-actions>.delivery-payment-review{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-height:0!important;margin:0!important;padding:0 0 8px!important;border:0!important;border-bottom:1px solid #e4ecf3!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review>span{min-width:0!important;padding:0!important;border:0!important;background:transparent!important;display:grid!important;gap:2px!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review small{font-size:10px!important;line-height:1.4!important;font-weight:500!important;letter-spacing:0!important}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review strong{font-size:15px!important;line-height:1.3!important;font-weight:750!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums}
body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-shell>.order-detail-actions{grid-template-columns:80px minmax(0,1fr)!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-primary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;max-width:100%!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-primary>.btn:only-child{grid-column:1/-1!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;padding:12px!important;border:1px solid #d7e3ed!important;border-radius:14px!important;background:#fff!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-avatar{width:44px!important;height:44px!important;border-radius:12px!important;font-size:18px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer-copy-v3427 :is(strong,span,small){white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer-copy-v3427 strong{font-size:17px!important;font-weight:750!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer-copy-v3427 :is(span,small){font-size:12px!important;font-weight:400!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-call{min-height:44px!important;min-width:44px!important;padding:8px!important;font-size:13px!important;line-height:1.3!important;border-radius:11px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content :is(.order-detail-kpis-v3427,.order-detail-control-grid-v3427){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content :is(.order-detail-kpis-v3427,.order-detail-control-grid-v3427)>span{display:grid!important;gap:4px!important;min-width:0!important;min-height:0!important;padding:10px!important;background:#fff!important;border:1px solid #d7e3ed!important;border-radius:12px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content :is(.order-detail-kpis-v3427,.order-detail-control-grid-v3427) small{font-size:10px!important;line-height:1.4!important;font-weight:500!important;letter-spacing:0!important;color:#52697c!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content :is(.order-detail-kpis-v3427,.order-detail-control-grid-v3427) strong{font-size:14px!important;line-height:1.4!important;font-weight:650!important;white-space:normal!important;overflow-wrap:anywhere!important}
/* V34.2.171: compact summary and a footer reserved for action buttons. */
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427 strong{color:#173a58!important;font-size:14px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427>.order-detail-value strong{color:#0878ef!important;font-size:16px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-shell>.order-detail-actions{grid-auto-rows:auto!important;align-items:stretch!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-primary{grid-auto-rows:auto!important;align-items:stretch!important}
body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-actions:has(#order-detail-primary:empty){grid-template-columns:minmax(0,1fr)!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-primary:empty{display:none!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail{min-width:0;max-width:100%;border:1px solid #d7e3ed;background:#fff}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important;align-items:start!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>span>strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important;line-height:1.4!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>em{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;text-align:right}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-section{padding:12px!important;border:1px solid #d7e3ed!important;border-radius:14px!important;background:#fff!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-section-head-v3427{font-size:13px!important;line-height:1.4!important;gap:8px!important;align-items:start!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-section-head-v3427>span{font-size:12px!important;line-height:1.4!important;white-space:normal!important;text-align:right!important;font-weight:500!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;align-items:start!important;gap:10px!important;padding:10px 0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427 strong{font-size:14px!important;line-height:1.4!important;font-weight:650!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427 em{font-size:13px!important;line-height:1.5!important;font-style:normal!important;font-weight:500!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:right!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content :is(.order-detail-note,.order-reschedule-summary-v3427,.order-detail-advanced-body-v3427){font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-advanced-v3427>summary{min-height:44px!important;font-size:13px!important;padding:10px 12px!important}

@media(max-width:760px){body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog){position:fixed!important;inset:0!important;width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important}}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog)[data-workflow-fit="mobile"]{position:fixed!important;inset:var(--af-workflow-top,0px) 0 auto!important;width:100%!important;max-width:100%!important;height:var(--af-workflow-height,100dvh)!important;max-height:var(--af-workflow-height,100dvh)!important;margin:0!important;border:0!important;border-radius:0!important;transform:none!important}
body.af-ux dialog#delivery-dialog.af-workflow-dialog[data-viewport-fit="mobile"]{position:fixed!important;inset:var(--af-delivery-top,0px) 0 auto!important;width:100%!important;max-width:100%!important;height:var(--af-delivery-height,100dvh)!important;max-height:var(--af-delivery-height,100dvh)!important;margin:0!important;border:0!important;border-radius:0!important;transform:none!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog):is([data-workflow-fit="mobile"],[data-viewport-fit="mobile"]) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head{padding-top:max(12px,env(safe-area-inset-top,0px))!important;padding-left:max(14px,env(safe-area-inset-left,0px))!important;padding-right:max(14px,env(safe-area-inset-right,0px))!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog):is([data-workflow-fit="mobile"],[data-viewport-fit="mobile"]) :is(#order-form-scroll,#delivery-form-scroll,#order-detail-content,.workflow-fixed-actions,.order-detail-actions){padding-left:max(14px,env(safe-area-inset-left,0px))!important;padding-right:max(14px,env(safe-area-inset-right,0px))!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head h2{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog)[data-workflow-compact="true"] :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head :is(small,p){display:none!important}
@media(max-height:480px){body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head{padding-block:8px!important}body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#order-detail-dialog,#delivery-dialog) :is(#order-form,#delivery-form,.order-detail-shell)>.dialog-head :is(small,p){display:none!important}}

/* V34.2.105: dispatch and receipt workspaces, progressively disclosed controls. */
body.af-ux #orders.af-order-workspace :is(.order-delivery-bridge,.aquaflow-order-hero,.order-kpi-grid,.order-route-filter-v3431,#order-filter-more,#order-command-subtitle),
body.af-ux #deliveries.af-delivery-workspace>.order-delivery-bridge{display:none!important}
body.af-ux #orders.af-order-workspace #order-command-filters-v34213{display:none!important;margin-top:9px!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important}
body.af-ux #orders.af-order-workspace.order-filters-open-v34213 #order-command-filters-v34213{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.af-ux #orders.af-order-workspace #order-command-extra-filters{display:none!important}
body.af-ux #orders.af-order-workspace #order-command-filters-v34213>label{display:grid!important;gap:3px!important;align-content:start!important;padding:7px!important;height:auto!important;background:#f7f9fc!important;border:1px solid #e1e9f1!important}
body.af-ux #orders.af-order-workspace #order-command-filters-v34213>label>span{font-size:11px!important;color:#52697c!important}
body.af-ux #orders.af-order-workspace #order-command-filters-v34213 select{width:100%!important;min-width:0!important;min-height:44px!important;font-size:16px!important;padding:6px!important;background:#fff!important;white-space:normal!important}
body.af-ux #orders.af-order-workspace .af-order-search{display:flex!important;align-items:center!important;gap:4px!important;padding:0 8px!important;margin:0 0 9px!important;min-height:46px!important;border:1px solid #d7e3ed!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important}
body.af-ux #orders.af-order-workspace #order-search{flex:1!important;width:100%!important;min-width:0!important;min-height:44px!important;font-size:16px!important;font-weight:400!important;border:0!important;background:transparent!important;padding:6px!important;box-shadow:none!important}
body.af-ux #orders.af-order-workspace #order-search-clear{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:0!important;background:transparent!important;color:#52697c!important;visibility:hidden}
body.af-ux #orders.af-order-workspace #order-search-clear.is-visible{visibility:visible}
body.af-ux #orders.af-order-workspace #order-control-tower:not(.is-hidden){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 14px!important;padding:8px 11px!important;margin:0 0 9px!important;border:1px solid #e6d6a7!important;border-radius:11px!important;background:#fffaf0!important;box-shadow:none!important}
body.af-ux #orders.af-order-workspace #order-control-tower>div{display:none!important}
body.af-ux #orders.af-order-workspace #order-control-tower>span{display:flex!important;align-items:center!important;gap:4px!important;padding:0!important;border:0!important;background:transparent!important}
body.af-ux #orders.af-order-workspace #order-control-tower :is(b,small){font-size:12px!important;line-height:1.4!important}
body.af-ux #orders.af-order-workspace #order-control-tower>.retry{display:none!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-filter-reset{min-height:44px!important;padding:7px 12px!important;border:1px solid #d7e3ed!important;border-radius:10px!important;background:#fff!important;color:#215879!important;font-size:13px!important;font-weight:650!important;justify-self:start!important}
body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) :is(.has-filter,.af-filter-reset):focus-visible{outline:2px solid #0878ef!important;outline-offset:2px!important}
body.af-ux :is(#order-head-filter-v34213,#delivery-filter-toggle).has-filter{background:#eaf3ff!important;border-color:#77b5ff!important;color:#0878ef!important}
body.af-ux #deliveries.af-delivery-workspace .qr-search-inline-v34242{grid-template-columns:minmax(0,1fr) auto!important;margin-bottom:8px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-filter-toggle{grid-column:3!important;grid-row:1!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;border:1px solid #d7e3ed!important;border-radius:10px!important;background:#fff!important;color:#52697c!important;padding:0!important;font-size:21px!important}
body.af-ux #deliveries.af-delivery-workspace .af-delivery-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;margin:0 0 8px!important;border:1px solid #d7e3ed!important;border-radius:12px!important;background:#fff!important}
body.af-ux #deliveries.af-delivery-workspace .af-delivery-filters label{display:grid!important;gap:4px!important;margin:0!important;font-size:12px!important;font-weight:600!important;color:#52697c!important;min-width:0!important}
body.af-ux #deliveries.af-delivery-workspace .af-delivery-filters :is(select,input[type=date]){width:100%!important;min-width:0!important;min-height:44px!important;padding:7px!important;font-size:16px!important;border:1px solid #d7e3ed!important;border-radius:9px!important;background:#fff!important;color:#16354f!important}
body.af-ux #deliveries.af-delivery-workspace .af-delivery-filters>.af-range-toggle{display:flex!important;align-items:center!important;gap:7px!important;min-height:44px!important;cursor:pointer!important}
body.af-ux #deliveries.af-delivery-workspace .af-range-toggle input{width:20px!important;height:20px!important;margin:0!important;accent-color:#0878ef}
body.af-ux #deliveries.af-delivery-workspace .af-delivery-range{display:grid!important;grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.af-ux #deliveries.af-delivery-workspace #delivery-filter-error{grid-column:1/-1!important;font-size:12px!important;color:#b12c41!important;margin:0!important}
body.af-ux #deliveries.af-delivery-workspace :is(.af-delivery-filters,.af-delivery-range,#delivery-employee-filter-wrap,#delivery-filter-error)[hidden]{display:none!important}
body.af-ux #deliveries.af-delivery-workspace .af-payment-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
body.af-ux #deliveries.af-delivery-workspace .af-payment-tabs>button{display:grid!important;justify-items:center!important;align-content:center!important;gap:4px!important;width:100%!important;min-width:0!important;min-height:56px!important;padding:6px 2px!important;border:1px solid #d7e3ed!important;border-radius:11px!important;background:#fff!important;color:#52697c!important;font-size:12px!important;line-height:1.3!important;font-weight:650!important;white-space:normal!important}
body.af-ux #deliveries.af-delivery-workspace .af-payment-tabs>button>b{font-size:13px!important;font-weight:750!important;line-height:1.2!important}
body.af-ux #deliveries.af-delivery-workspace .af-payment-tabs>button[aria-selected=true]{background:#eaf3ff!important;border-color:#77b5ff!important;color:#0878ef!important}
body.af-ux #deliveries.af-delivery-workspace .af-workspace-period{font-size:12px!important;line-height:1.4!important;color:#52697c!important;margin:8px 2px!important}
body.af-ux #deliveries.af-delivery-workspace .delivery-money-v34225>strong{display:none!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-money{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:9px 0 0!important;padding:8px 0 0!important;border-top:1px solid #e1e9f1!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-money>div{min-width:0!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-money dt{font-size:10px!important;line-height:1.4!important;color:#52697c!important;font-weight:400!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-money dd{margin:3px 0 0!important;font-size:13px!important;line-height:1.4!important;font-weight:700!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-menu{justify-self:end!important;width:auto!important;position:relative!important;border:0!important;background:transparent!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-menu>summary{display:grid!important;place-items:center!important;list-style:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;color:#52697c!important;font-size:20px!important;cursor:pointer!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-menu>summary::-webkit-details-marker{display:none}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-menu>.staff-delivery-actions{position:absolute!important;right:0!important;bottom:46px!important;display:grid!important;grid-auto-flow:row!important;min-width:160px!important;padding:7px!important;background:#fff!important;border:1px solid #d7e3ed!important;border-radius:12px!important;box-shadow:0 6px 24px #16354f20!important;z-index:8!important}
body.af-ux #deliveries.af-delivery-workspace .af-receipt-menu:not([open])>.staff-delivery-actions{display:none!important}
.af-workspace-layout{min-width:0}.af-workspace-table,.af-workspace-pane{display:none}
@media(min-width:1100px){
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(290px,340px)!important;gap:14px!important;align-items:start!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-layout>:is(#order-list,#delivery-list){display:none!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-table{display:block!important;overflow:auto!important;min-width:0!important;border:1px solid #d7e3ed!important;border-radius:13px!important;background:#fff!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane{display:block!important;position:sticky!important;top:16px!important;max-height:calc(100dvh - 130px)!important;overflow:auto!important;min-width:0!important;border:1px solid #d7e3ed!important;border-radius:13px!important;background:#fff!important;overscroll-behavior:contain}
  .af-workspace-table table{width:100%;min-width:720px;border-collapse:collapse;text-align:left;font-size:12px;color:#16354f}
  .af-workspace-table caption{padding:11px 12px;text-align:left;font-size:13px;font-weight:650;background:#f7f9fc}
  .af-workspace-table :is(th,td){padding:8px 9px;vertical-align:middle;border-top:1px solid #e1e9f1;line-height:1.5;overflow-wrap:anywhere;max-width:190px}
  .af-workspace-table thead th{background:#f7f9fc;color:#52697c;font-size:11px;font-weight:650;white-space:nowrap}
  .af-workspace-table tbody tr:hover{background:#f5f9fe}.af-workspace-table tbody tr.is-selected{background:#eaf3ff}
  .af-workspace-table button{min-height:44px;min-width:44px;padding:4px 0;border:0;border-radius:5px;background:transparent;font-size:12px;line-height:1.4;font-weight:650;color:#1263cf;text-align:left;white-space:normal;overflow-wrap:anywhere}
  .af-workspace-table button:focus-visible{outline:2px solid #0878ef;outline-offset:2px}.af-table-money{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
  .af-pane-empty{margin:0;padding:16px;color:#52697c;font-size:13px;line-height:1.5}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-card-v34213,.delivery-card-v34225){margin:0!important;padding:11px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;min-width:0!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-head-v34213,.delivery-card-head-v34225){display:grid!important;grid-template-columns:26px auto minmax(0,1fr) 44px!important;align-items:center!important;gap:5px!important;margin:0 0 8px!important;min-height:44px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-sequence-v34221,.delivery-sequence-v34225){display:grid!important;place-items:center!important;width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;border-radius:7px!important;font-size:10px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-status-v34213,.delivery-status-v34225){font-size:10px!important;padding:5px!important;white-space:normal!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-number-v34213,.delivery-order-number-v34225){min-width:0!important;font-size:10px!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-customer-v34213,.delivery-card-customer-v34225){display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;margin:0 0 8px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-avatar-v34213,.delivery-customer-avatar-v34225){width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border-radius:10px!important;background:#eaf3ff!important;color:#1263cf!important;font-size:17px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-customer-copy-v34213,.delivery-customer-copy-v34225){min-width:0!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane .customer-entity-link-v34258{min-height:44px!important;font-size:16px!important;line-height:1.35!important;font-weight:700!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane .entity-contact-v34258{font-size:12px!important;line-height:1.5!important;font-weight:400!important;letter-spacing:0!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.af-order-amount,.delivery-money-v34225){grid-column:2!important;justify-self:start!important;display:grid!important;gap:3px!important;margin:0!important;text-align:left!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-money-v34213,.delivery-money-v34225 strong){font-size:17px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.af-order-payment,.delivery-money-v34225 small){font-size:11px!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-facts-v34213,.delivery-card-facts-v34225){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;border:1px solid #e1e9f1!important;border-radius:10px!important;background:#f7f9fc!important;padding:8px!important;margin:8px 0!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-facts-v34213,.delivery-card-facts-v34225)>div{display:grid!important;gap:3px!important;min-width:0!important;padding:0!important;border:0!important}
  body.af-ux :is(#orders.af-order-workspace,#deliveries.af-delivery-workspace) .af-workspace-pane :is(.order-ux-facts-v34213,.delivery-card-facts-v34225) span{font-size:12px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.af-ux #orders.af-order-workspace .af-workspace-pane .order-ux-actions-v34213{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:10px!important}
  body.af-ux #orders.af-order-workspace .af-workspace-pane .order-ux-actions-v34213>button{width:100%!important;min-height:44px!important;padding:7px!important;font-size:12px!important;border-radius:10px!important}
  body.af-ux #orders.af-order-workspace .af-workspace-pane .order-ux-actions-v34213>button:only-child{grid-column:1/-1!important}
  body.af-ux #orders.af-order-workspace .af-workspace-pane .af-route-actions{margin:6px 0!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane :is(.delivery-card-summary-v34225,.delivery-card-expanded-v34225){padding:0!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .delivery-card-expanded-v34225{display:grid!important;gap:10px!important;margin-top:12px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .staff-delivery-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .staff-delivery-facts>span{display:grid!important;gap:4px!important;min-width:0!important;padding:8px!important;background:#f7f9fc!important;border-radius:10px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .staff-delivery-facts small{font-size:11px!important;letter-spacing:0!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .staff-delivery-facts b{font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .delivery-linkage-banner{display:grid!important;gap:7px!important;padding:8px!important;border-radius:10px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .delivery-linkage-banner :is(small,strong){font-size:12px!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .delivery-linkage-banner button{min-height:44px!important;font-size:12px!important;white-space:normal!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane .sepay-reopen-button{min-height:44px!important;font-size:13px!important;padding:8px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-workspace-pane :is(.staff-delivery-note,.cancel-reason){font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
}
@media(max-width:390px){
  body.af-ux #deliveries.af-delivery-workspace .qr-search-inline-v34242{gap:5px!important;padding:6px!important}
  body.af-ux #deliveries.af-delivery-workspace .sepay-reopen-toolbar .btn{font-size:11px!important;padding:0 6px!important}
  body.af-ux #deliveries.af-delivery-workspace .af-payment-tabs>button{font-size:11px!important}
}

/* V34.2.107: remove advanced-filter launchers and their reserved space. */
body.af-ux #orders.af-order-workspace #order-command-filters-v34213,body.af-ux #deliveries.af-delivery-workspace #delivery-workspace-filters{display:none!important}

/* V34.2.108: compact totals and actions, with a single bottom safe-area inset. */
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form,#delivery-form)>.workflow-fixed-actions{
  grid-template-columns:88px minmax(0,1fr)!important;
  grid-template-rows:none!important;
  grid-auto-rows:max-content!important;
  align-items:center!important;
  gap:6px 8px!important;
  min-height:0!important;
  padding:6px max(14px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px))!important;
}
body.af-ux dialog.af-workflow-dialog:is(#order-dialog,#delivery-dialog) :is(#order-form,#delivery-form)>.workflow-fixed-actions>.btn{
  min-height:44px!important;
  height:auto!important;
  margin:0!important;
  padding:6px 10px!important;
  font-size:14px!important;
  line-height:1.3!important;
  border-radius:10px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.af-ux #order-dialog.af-workflow-dialog #order-form .aquaflow-order-total{
  flex-wrap:wrap!important;
  gap:2px 10px!important;
  padding:0!important;
  border-bottom:0!important;
}
body.af-ux #order-dialog.af-workflow-dialog #order-form .aquaflow-order-total>div:first-child{
  display:flex!important;
  align-items:baseline!important;
  flex:0 1 auto!important;
  flex-wrap:wrap!important;
  gap:2px 7px!important;
  min-width:0!important;
}
body.af-ux #order-dialog.af-workflow-dialog #order-total{
  margin:0!important;
  font-size:17px!important;
  line-height:1.3!important;
}
body.af-ux #order-dialog.af-workflow-dialog #order-product-summary{
  flex:1 1 auto!important;
  max-width:100%!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .workflow-fixed-actions>.delivery-payment-review{
  align-items:start!important;
  gap:4px 8px!important;
  padding:0!important;
  border-bottom:0!important;
}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review>span{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  gap:2px 4px!important;
  min-height:0!important;
}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review :is(small,strong){
  margin:0!important;
  max-width:100%!important;
}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .delivery-payment-review strong{
  font-size:14px!important;
  line-height:1.35!important;
  white-space:normal!important;
}
body.af-ux #delivery-dialog.af-workflow-dialog #delivery-form .workflow-fixed-actions>#delivery-save-status{
  grid-column:1/-1!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
/* V34.2.110: draft notice above two actions that always share one row. */
body.af-ux.af-enterprise.unified-shell #order-dialog.af-workflow-dialog #order-form-scroll #order-draft,
body.af-ux.af-enterprise.unified-shell #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-draft{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;align-items:stretch!important;gap:8px!important;min-width:0!important;margin:0!important;padding:10px!important;border:1px solid #d7e3ed!important;border-radius:12px!important;background:#fff!important}
body.af-ux.af-enterprise.unified-shell #order-dialog.af-workflow-dialog #order-form-scroll #order-draft>span,
body.af-ux.af-enterprise.unified-shell #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-draft>span{grid-column:1/-1!important;min-width:0!important;font-size:12px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.af-ux.af-enterprise.unified-shell #order-dialog.af-workflow-dialog #order-form-scroll #order-draft>.btn,
body.af-ux.af-enterprise.unified-shell #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-draft>.btn{grid-column:auto!important;grid-row:auto!important;position:static!important;min-width:0!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:8px!important;border-radius:10px!important;font-size:13px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;box-shadow:none!important}
body.af-ux.af-enterprise.unified-shell #order-dialog.af-workflow-dialog #order-form-scroll #order-draft[hidden],
body.af-ux.af-enterprise.unified-shell #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-draft[hidden],
body.af-ux.af-enterprise.unified-shell #order-dialog.af-workflow-dialog #order-form-scroll #order-draft>.btn[hidden],
body.af-ux.af-enterprise.unified-shell #delivery-dialog.af-workflow-dialog #delivery-form-scroll #delivery-draft>.btn[hidden]{display:none!important}
