/* Order controls deliberately remain next to the record they affect. */
.order-management-actions{max-width:310px;gap:7px;flex-wrap:wrap}
.order-management-actions .button{white-space:nowrap}
.order-view-tabs{margin-bottom:16px;gap:12px;flex-wrap:wrap}
.order-view-tabs .tabs{display:flex;gap:6px;flex-wrap:wrap}
.order-view-tabs .tab span{font-size:11px;opacity:.7;margin-left:4px}
.order-change-reason{display:block;border-top:1px solid var(--border,#dce4df);padding-top:18px}
.order-management-section{padding:18px;background:var(--surface-soft,#f5f8f6);border:1px solid var(--border,#dce4df);border-radius:10px}
.order-management-section .row-actions{gap:10px;flex-wrap:wrap;margin-top:12px}
.order-deletion-summary{margin-top:16px;margin-bottom:20px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.order-test-cleanup-check{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px;background:#fff8ef;border:1px solid #e8ca9d;padding:12px;border-radius:8px;line-height:1.6;font-weight:600}
.order-test-cleanup-check input{width:19px;min-height:19px;flex:0 0 19px;margin:3px 0 0;accent-color:#854b26}
.order-test-cleanup-check span{color:#70421f}
/* Order stages are intentionally stronger than generic account / priority / stock pills. */
.order-status--pending,.order-stage--pending{--order-state-ink:#8a4d00;--order-state-surface:#fff1d5;--order-state-border:#e5b455}
.order-status--scheduled,.order-stage--scheduled{--order-state-ink:#145dad;--order-state-surface:#eaf3ff;--order-state-border:#94bdea}
.order-status--producing,.order-stage--producing{--order-state-ink:#056080;--order-state-surface:#ddf7ff;--order-state-border:#73c9e1}
.order-status--completed,.order-stage--completed{--order-state-ink:#225834;--order-state-surface:#e6f3e9;--order-state-border:#8eb99c}
.order-status--outbound,.order-stage--outbound{--order-state-ink:#6240a4;--order-state-surface:#f0eafe;--order-state-border:#baa2e0}
.order-status--shipped,.order-stage--shipped{--order-state-ink:#07644b;--order-state-surface:#dff6eb;--order-state-border:#80c5a6}
.order-status--cancelled,.order-status--unknown{--order-state-ink:#505965;--order-state-surface:#edf0f3;--order-state-border:#b8c1cb}
.pill.order-status{gap:8px;min-height:36px;padding:7px 12px;border:1px solid var(--order-state-border);border-radius:7px;font-size:15px;font-weight:800;line-height:1.35;letter-spacing:.02em;color:var(--order-state-ink);background:var(--order-state-surface);box-shadow:0 2px 4px #24382b06;white-space:nowrap}
.order-status>.dot{width:8px;height:8px;flex:0 0 8px;box-shadow:0 0 0 3px #ffffff90}
.order-progress .order-stage{font-size:14px;font-weight:700;line-height:1.6}
.order-progress .order-stage.current{font-size:14px;font-weight:800;color:var(--order-state-ink,#1e5948)}
.order-progress .order-stage.current .stage-dot{width:25px;height:25px;margin-top:-2px;margin-bottom:5px;background:var(--order-state-ink,#1e5948);box-shadow:0 0 0 4px var(--order-state-surface,#e6f3e9);font-size:12px}
.touch-task .pill.order-status,.touch-fullscreen .pill.order-status{font-size:19px;min-height:45px;padding:9px 15px;border-width:1.5px}
.touch-task .order-status>.dot{width:10px;height:10px;flex-basis:10px}
@media(max-width:700px){.pill.order-status{font-size:14px;min-height:35px;padding:7px 10px}.touch-task .pill.order-status,.touch-fullscreen .pill.order-status{font-size:18px;min-height:44px;padding:9px 13px}.order-progress{gap:4px}.order-progress .order-stage,.order-progress .order-stage.current{font-size:14px}}
@media(max-width:700px){.order-management-actions{max-width:none}.order-management-actions .button{min-height:38px}.order-management-section{padding:14px}.order-management-section .button{flex:1 1 120px}.order-view-tabs>.muted{width:100%}}
