/* Short color feedback and opacity-only entrances avoid layout/zoom animation. */
@layer erpColorMode.overrides {
 html body.erp-system-ui {--ui-motion:.1s!important;--erp-motion-feedback:100ms;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog,aside.side)
 :is(button,.erp-btn,.btn,.sku-history-trigger,.erp-select-button,.erp-choice-trigger) {transition-property:background-color,border-color,color!important;transition-duration:var(--erp-motion-feedback)!important;transition-timing-function:ease-out!important;transition-delay:0s!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog,.erp-choice-menu,.pc-calendar,.erp-tools-popover,.erp-mobile-backdrop) {animation:none!important;transition:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask>.modal,dialog) {animation:none!important;transition:none!important;will-change:auto!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog::backdrop {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;transition:none!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.legacy-order-table,.wh-table,.pm-table,.finance-table,.ca-ref-table) :is(tr,td,th,img) {transition:none!important;}
 html body.erp-system-ui :is(.erp-auth-feedback,#toast,#copyToast,.lc-toast,#pm-toast,.oef-toast),
 html body.erp-system-ui :is(.erp-auth-feedback.is-visible,#toast.is-visible,#copyToast.show) {transform:translateX(-50%)!important;transition:opacity 100ms ease-out!important;}
 html body.erp-system-ui #imageMask :is(.image-preview-shell,.image-preview-img) {animation:none!important;transition:none!important;transform:none!important;will-change:auto!important;}
 html body.erp-system-ui #skuHistoryMask .sku-history-modal {box-sizing:border-box!important;height:min(660px,calc(100vh - 80px))!important;height:min(660px,calc(100dvh - 80px))!important;min-height:0!important;max-height:calc(100dvh - 80px)!important;}
 html body.erp-system-ui #skuHistoryMask .sku-history-body {min-height:0!important;flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain;}
 html body.erp-system-ui #skuHistoryMask :is(.sku-history-loading,.sku-history-error) {box-sizing:border-box;display:grid;place-items:center;min-height:240px;height:100%;padding:20px;}
 @media(max-width:900px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.side {transition:transform 140ms ease-out,visibility 0s!important;}
 }
 @media(max-width:760px){
  html body.erp-system-ui #skuHistoryMask .sku-history-modal {height:min(660px,calc(100vh - 36px))!important;height:min(660px,calc(100svh - 36px))!important;max-height:calc(100svh - 36px)!important;}
 }
 @media(pointer:coarse){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog,aside.side)
  :is(button,.erp-btn,.btn,.sku-history-trigger,.erp-select-button,.erp-choice-trigger) {transition:none!important;}
 }
 @media(prefers-reduced-motion:reduce){
  html body.erp-system-ui {--ui-motion:0s!important;--erp-motion-feedback:0ms;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog,aside.side)
  :is(button,.erp-btn,.btn,.sku-history-trigger,.erp-select-button,.erp-choice-trigger),
  html body.erp-system-ui :is(.erp-auth-feedback,#toast,#copyToast,.lc-toast,#pm-toast,.oef-toast),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.side {transition:none!important;}
 }
}

@media print {
 @layer erpColorMode.overrides {
  html body.erp-system-ui :is(.modal-mask>.modal,dialog,.erp-choice-menu,.pc-calendar,.erp-tools-popover) {opacity:1!important;animation:none!important;transition:none!important;}
 }
}
