/* Compact, accessible receipt and order panels. Scoped to these two dialogs. */
body.af-ux #customer-empty-dialog[open] {
  --af-panel-border:#dce6ee;
  --af-panel-muted:#5c748a;
}
body.af-ux #customer-empty-dialog[data-customer-selected="true"] .customer-empty-search-wrap {display:none!important}
body.af-ux #customer-empty-dialog .customer-empty-selected {
  grid-template-columns:36px minmax(0,1fr) 44px!important;
  padding:9px 10px!important;gap:9px!important;
}
body.af-ux #customer-empty-dialog #customer-empty-clear {
  width:44px!important;height:44px!important;min-height:44px!important;
  border-radius:10px!important;font-size:13px!important;font-weight:750!important;color:#1366b0!important;
}
body.af-ux #customer-empty-dialog .customer-empty-selected-copy strong {font-size:15px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
body.af-ux #customer-empty-dialog .customer-empty-selected-copy small {font-size:12px!important;color:#526f88!important}
body.af-ux #customer-empty-dialog .customer-empty-result {min-height:48px!important}
body.af-ux #customer-empty-dialog .customer-empty-result[aria-selected="true"] {background:#e8f3ff!important;outline:2px solid #1783e8;outline-offset:-2px}
body.af-ux #customer-empty-dialog .customer-empty-result strong {font-size:14px!important}
body.af-ux #customer-empty-dialog .customer-empty-result small,
body.af-ux #customer-empty-dialog .customer-empty-result>b {font-size:12px!important}
body.af-ux #customer-empty-dialog .customer-empty-metric {padding:9px 10px!important;gap:3px!important;border-radius:12px!important}
body.af-ux #customer-empty-dialog .customer-empty-metric strong {font-size:21px!important;margin-top:2px!important}
body.af-ux #customer-empty-dialog .customer-empty-metric span {font-size:12px!important}
body.af-ux #customer-empty-dialog .customer-empty-metric small {font-size:11px!important;color:#61788c!important}
body.af-ux #customer-empty-dialog .customer-empty-field>label {font-size:14px!important;line-height:1.3!important}
body.af-ux #customer-empty-dialog .customer-empty-field>label small {font-size:12px!important;color:#63798b!important}
body.af-ux #customer-empty-dialog .customer-empty-impact {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  padding:9px 10px;border:1px solid #c9e3d9;border-radius:10px;background:#f2fbf7;
}
body.af-ux #customer-empty-dialog .customer-empty-impact[hidden] {display:none!important}
body.af-ux #customer-empty-dialog .customer-empty-impact>span {display:grid;gap:3px;min-width:0}
body.af-ux #customer-empty-dialog .customer-empty-impact small {font-size:11px;line-height:1.35;color:#486d5e}
body.af-ux #customer-empty-dialog .customer-empty-impact strong {font-size:17px;line-height:1.2;color:#1d7152;font-variant-numeric:tabular-nums}
body.af-ux #customer-empty-dialog .customer-empty-after-preview {font-size:12px!important;line-height:1.4!important;color:#496c5c!important}
body.af-ux #customer-empty-dialog .customer-empty-after-preview.is-error {color:#ab3030!important}
body.af-ux #customer-empty-dialog .customer-empty-after-preview.is-warning {padding:7px 9px!important;background:#fff6e8!important;border-radius:8px!important;color:#925c09!important}
body.af-ux #customer-empty-dialog .customer-empty-quantity-wrap:has([aria-invalid="true"]) {border-color:#cb4949!important}
body.af-ux #customer-empty-dialog #customer-empty-note {min-height:52px!important;height:52px!important;padding:7px 11px!important;line-height:1.35!important}
body.af-ux #customer-empty-dialog #customer-empty-note:focus {height:72px!important}
body.af-ux #customer-empty-dialog .customer-empty-note-count {font-size:11px!important;color:#63788b!important}
body.af-ux #customer-empty-dialog .customer-empty-policy {font-size:11px!important;line-height:1.4!important;padding:8px 10px!important;background:#f4f7fb!important;color:#61758a!important}
body.af-ux #customer-empty-dialog .customer-empty-history>summary {min-height:44px!important;font-size:13px!important;padding:8px 10px!important}
body.af-ux #customer-empty-dialog .customer-empty-actions button {min-height:48px!important;font-size:14px!important}
body.af-ux #customer-empty-dialog #customer-empty-form>.customer-empty-actions button {height:auto!important;min-height:48px!important}
body.af-ux #customer-empty-dialog #customer-empty-form>.customer-empty-body {gap:10px!important}
body.af-ux #customer-empty-dialog #customer-empty-form>.customer-empty-actions {grid-template-columns:88px minmax(0,1fr)!important}
body.af-ux #customer-empty-dialog :is(#customer-empty-close,#customer-empty-clear):not(:focus-visible) {outline:none!important;box-shadow:none!important}
body.af-ux #customer-empty-dialog :is(#customer-empty-close,#customer-empty-clear):focus-visible {outline:2px solid #1683ee!important;outline-offset:2px!important}
body.af-ux #customer-empty-dialog .customer-empty-head #customer-empty-close {width:44px!important;height:44px!important;min-height:44px!important}
body.af-ux dialog#customer-empty-dialog.af-customer-empty-dialog[open][data-workflow-fit="mobile"] {
  inset:var(--af-workflow-top,0px) 0 auto!important;margin:0!important;
  width:100%!important;max-width:100%!important;height:var(--af-workflow-height,100dvh)!important;
  max-height:var(--af-workflow-height,100dvh)!important;border:0!important;border-radius:0!important;transform:none!important;
}
body.af-ux #customer-empty-dialog[data-workflow-fit="mobile"] #customer-empty-form>.customer-empty-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 #customer-empty-dialog[data-workflow-fit="mobile"] #customer-empty-form>:is(.customer-empty-body,.customer-empty-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 #customer-empty-dialog[data-workflow-compact="true"] .customer-empty-head p {display:none!important}
body.af-ux #customer-empty-dialog[data-workflow-compact="true"] #customer-empty-form>.customer-empty-head {padding-block:8px!important}

body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-shell>.dialog-head {padding:12px 14px!important;gap:10px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-head h2 {font-size:22px!important;line-height:1.25!important}
body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-head p {margin-top:3px!important}
body.af-ux :is(#order-detail-title,#customer-empty-title):focus {outline:none!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content {gap:9px!important;padding:10px 14px 14px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer {padding:9px 10px!important;align-items:center!important;border-radius:12px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-avatar {width:38px!important;height:38px!important;font-size:17px!important;border-radius:10px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer-copy-v3427 {display:grid!important;gap:3px!important;min-width:0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-contact {display:flex!important;align-items:center!important;gap:6px!important;color:#335570!important;font-size:13px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-contact svg {flex:none}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-customer-copy-v3427 small {color:#5c748a!important;font-size:12px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-call {display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427 {gap:0!important;border:1px solid #d7e3ed!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427>span {border:0!important;border-radius:0!important;padding:8px 10px!important;gap:2px!important;align-content:start!important;background:transparent!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427>span:nth-child(odd) {border-right:1px solid #e3ebf2!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427>span:nth-child(n+3) {border-top:1px solid #e3ebf2!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427 small {font-size:10px!important;line-height:1.3!important;color:#5c7287!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427 strong {font-size:14px!important;line-height:1.35!important;font-weight:750!important;font-variant-numeric:tabular-nums!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427 em {font-size:12px!important;line-height:1.35!important;font-style:normal!important;color:#5c748a!important;overflow-wrap:anywhere!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-kpis-v3427>.order-detail-value strong {font-size:17px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content [data-schedule-state="overdue"] strong {color:#b23737!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content [data-schedule-state="due"] strong {color:#97640e!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-lifecycle-v3427 {padding:7px 10px!important;border:0!important;border-radius:10px!important;background:#eef4fa!important;margin:0!important;gap:5px!important;min-height:0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-lifecycle-v3427 span {gap:3px!important;min-width:0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-lifecycle-v3427 b {width:22px!important;height:22px!important;font-size:12px!important;line-height:1!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-lifecycle-v3427 small {font-size:10px!important;line-height:1.2!important;letter-spacing:0!important;white-space:nowrap!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-chip-row-v3427 {margin:0!important;gap:6px!important;display:flex!important;flex-wrap:wrap!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-chip-row-v3427>:is(span,button) {padding:4px 8px!important;font-size:11px!important;line-height:1.4!important;border-radius:7px!important;font-weight:650!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-chip-row-v3427>button {min-height:44px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-priority[data-priority="urgent"] {background:#fff0f0!important;color:#b33434!important;border-color:#efcdcd!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-priority[data-priority="high"] {background:#fff5e6!important;color:#925c09!important;border-color:#f1d9b3!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-section {padding:10px!important;border-radius:12px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-section-head-v3427 {font-size:11px!important;letter-spacing:.04em!important;align-items:center!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div {padding:8px 0!important;gap:8px!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div:last-child {padding-bottom:0!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>span {gap:7px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>span>b {width:28px!important;height:28px!important;min-width:28px!important;border-radius:8px!important;font-size:13px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>span>strong {font-size:13px!important;line-height:1.4!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .order-detail-products-v3427>div>em {font-size:12px!important;line-height:1.5!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail {padding:9px 10px!important;border-radius:12px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail>small {font-size:11px!important;color:#5c748a!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail>p {margin:4px 0 6px!important;font-size:12px!important;line-height:1.4!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail .af-customer-location-actions {gap:7px!important;margin-top:6px!important}
body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-content .af-order-point-detail :is(button,a) {min-height:44px!important;padding:7px 10px!important;font-size:13px!important;border-radius:9px!important}
body.af-ux dialog#order-detail-dialog.af-workflow-dialog #order-detail-shell>.order-detail-actions {grid-template-columns:76px minmax(0,1fr)!important;padding-block:9px calc(9px + env(safe-area-inset-bottom,0px))!important}
body.af-ux dialog#order-detail-dialog.af-workflow-dialog #order-detail-shell>.order-detail-actions .btn {min-height:48px!important;font-size:14px!important}
body.af-ux dialog#order-detail-dialog.af-workflow-dialog #order-detail-shell>.order-detail-actions:has(#order-detail-primary:empty) {grid-template-columns:minmax(0,1fr)!important}
body.af-ux dialog#order-detail-dialog.af-workflow-dialog[open][data-workflow-fit="mobile"] {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 #customer-empty-dialog .af-form-feedback[data-state="dirty"] {display:none!important}
@media(max-width:360px) {
  body.af-ux dialog#order-detail-dialog.af-workflow-dialog #order-detail-shell>.order-detail-actions {grid-template-columns:62px minmax(0,1fr)!important;gap:6px!important}
  body.af-ux #order-detail-dialog.af-workflow-dialog #order-detail-primary {gap:6px!important}
  body.af-ux #order-detail-dialog.af-workflow-dialog .order-detail-actions .btn {padding:8px 5px!important;font-size:13px!important}
}
