/* 佳锌 ERP · Motion Design System 2.6.4
   One visual rhythm shared by workspace, designer, all domain pages and 8766.
   This stylesheet changes presentation only, never dispatches actions. */
:root{
 --jx-motion-quick:135ms;
 --jx-motion-fast:175ms;
 --jx-motion-normal:240ms;
 --jx-motion-slow:300ms;
 --jx-motion-ease:cubic-bezier(.22,1,.36,1);
 /* R4 semantic motion tokens. Existing values stay unchanged: a menu is not
    a full-sheet transition, and the approved record editor has its own rhythm. */
 --jx-motion-duration-feedback:110ms;
 --jx-motion-duration-menu:175ms;
 --jx-motion-duration-menu-exit:100ms;
 --jx-motion-duration-panel:230ms;
 --jx-motion-duration-panel-touch:195ms;
 --jx-motion-duration-panel-exit:145ms;
 --jx-motion-duration-reveal:235ms;
 --jx-motion-duration-reveal-panel:185ms;
 --jx-motion-duration-reveal-page:240ms;
 --jx-motion-duration-reveal-touch:205ms;
 --jx-motion-duration-route:340ms;
 /* Reference only: workspace.css owns the approved 325ms editor animation. */
 --jx-motion-duration-editor-reference:325ms;
 --jx-motion-ease-exit:ease-in;
 --jx-motion-ease-route:cubic-bezier(.30,.05,.20,1);
 --jx-motion-ease-editor-reference:cubic-bezier(.16,1,.3,1);
}
/* Restore the original cross-document transition on desktop AND mobile.
   The browser snapshot owns entrance when it exists; body/content entrance
   below is only the fallback. Do not layer both animations on one navigation. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:jx-page-old 130ms ease-in both}
::view-transition-new(root){animation:jx-page-new 250ms var(--jx-motion-ease) both}
@keyframes jx-page-old{to{opacity:.65;filter:blur(2px)}}
@keyframes jx-page-new{from{opacity:.65;filter:blur(3px)}to{opacity:1;filter:blur(0)}}
@keyframes jx-page-enter{from{opacity:0;filter:blur(2px);translate:0 7px}to{opacity:1;filter:blur(0);translate:0 0}}
@keyframes jx-content-enter{from{opacity:.55;translate:0 9px}to{opacity:1;translate:0 0}}
@keyframes jx-float-in{from{opacity:0;scale:.975;filter:blur(2px)}to{opacity:1;scale:1;filter:blur(0)}}
@keyframes jx-float-out{from{opacity:1;scale:1}to{opacity:0;scale:.985}}
/* Native cross-document transitions are not supported by every Chromium/WebKit build.
   The JS navigation helper handles the exit; each new page gets an entrance. */
/* Do not persist translate:0 after entrance: even a zero CSS translate creates a
   containing block for position:fixed overlays, shifting forms below viewport. */
body:not(.jx-no-page-entrance){animation:jx-page-enter var(--jx-motion-normal) var(--jx-motion-ease) backwards}
/* The workbench reveals its requested contents after permission/tree hydration;
   avoid a second fallback entrance of the empty page shell. */
body.ws-body:not(.jx-no-page-entrance){animation:none}
/* Native cross-document snapshots (desktop and mobile) own the entrance;
   the live body and nested workspace must not replay it after the snapshot. */
html.jx-nav-native body:not(.jx-no-page-entrance),
html.jx-nav-native .ws-content.jx-content-enter{animation:none!important}
html.jx-nav-exit body{animation:none!important;opacity:.86!important;filter:none!important;translate:0 -3px;transition:opacity 120ms ease-out,translate 120ms ease-out}
html.jx-nav-exit.jx-nav-back body{translate:0 -5px}
.ws-content.jx-content-enter{animation:jx-content-enter 225ms var(--jx-motion-ease) both}
/* A visible, measurable animation for every actionable button, not just Import/Export. */
:where(button,[role="button"],a.btn,a.ws-bottom-link,a.ws-folder-card,a.mg-anchor,summary):not(:disabled){
 transition-property:background-color,border-color,color,box-shadow,opacity,filter,transform!important;
 transition-duration:var(--jx-motion-fast)!important;
 transition-timing-function:var(--jx-motion-ease)!important;
 -webkit-tap-highlight-color:transparent;
}
@media(hover:hover) and (pointer:fine){
 :where(button,[role="button"],a.btn,a.ws-bottom-link,a.ws-folder-card,a.mg-anchor):not(:disabled):not(.jx-resize-grip):hover{filter:brightness(1.045);box-shadow:0 6px 17px rgba(36,91,160,.13)}
 :where(.ws-primary,.ws-secondary,.ws-quiet,.btn,.mg-primary,.mg-ghost,.ws-form-small,.form-submit,.ws-icon-btn,.jx-config-button):not(:disabled):hover{transform:translateY(-1px)}
}
:where(button,[role="button"],a.btn,a.ws-bottom-link):not(:disabled):active{filter:brightness(.955);transform:translateY(1px) scale(.985)}
:where(.ws-primary,.ws-secondary,.btn,.mg-primary,.mg-ghost,.form-submit):focus-visible{outline:2px solid var(--jx-ui-accent,#347af0);outline-offset:3px}
/* Floating panels: never change transform: draggable/resizable coordinates must remain accurate. */
:where(.ws-modal-layer.open .ws-modal,.ws-form-overlay .ws-form-sheet,.ws-floating-settings,
       .modal-backdrop.show .modal,.modal-backdrop.open .modal,.modal-backdrop.is-open .modal,
       .jx-dialog-backdrop.is-open .jx-dialog,.modal-backdrop[style*="flex"] .modal){
 animation:jx-float-in var(--jx-motion-duration-panel) var(--jx-motion-ease) both;
}
.ws-floating-settings.jx-closing{animation:jx-float-out 125ms var(--jx-motion-ease-exit) both;pointer-events:none}
/* Smooth details expand/collapse, excluding data grids and continuously updating records. */
:where(details,.ws-search-chooser) > summary{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
:where(.jx-collapse-panel,.ws-search-chooser-content){animation:jx-float-in 190ms var(--jx-motion-ease) both}
@media(prefers-reduced-motion:reduce){
 @view-transition{navigation:none}
 ::view-transition-old(root),::view-transition-new(root){animation:none!important}
 body,html.jx-nav-exit body,.ws-content.jx-content-enter,.ws-floating-settings,.ws-floating-settings.jx-closing,
 :where(.ws-modal-layer.open .ws-modal,.ws-form-overlay .ws-form-sheet,.modal,.jx-dialog,.jx-collapse-panel,.ws-search-chooser-content){animation:none!important;filter:none!important;translate:none!important;scale:none!important;transition:none!important}
 :where(button,[role="button"],a.btn,a.ws-bottom-link,a.ws-folder-card,a.mg-anchor,summary):not(:disabled){transition:none!important;transform:none!important;filter:none!important}
}

/* 2.7 Motion unity: apply the designer's calm visual rhythm to deliberate UI surfaces.
   Full list/grid rows do not animate, so large ERP tables remain responsive. */
@keyframes jx-motion-reveal-keyframes{from{opacity:.62;translate:0 8px}to{opacity:1;translate:0 0}}
.jx-motion-reveal{animation:jx-motion-reveal-keyframes var(--jx-motion-duration-reveal) var(--jx-motion-ease) backwards}
/* Small menus gain presence, not the heavy motion of a full-page transition. */
:where(.ws-action-dropdown[open] .ws-action-dropdown-menu,
 .ws-action-dropdown-menu:not([hidden]),
 .diag-menu:not([hidden]),
 .ws-search-chooser-content:not([hidden]),
 .jx-search-picker-menu:not([hidden]),
 [role="listbox"].diag-menu:not([hidden])){animation:jx-motion-menu-in var(--jx-motion-duration-menu) var(--jx-motion-ease) backwards}
@keyframes jx-motion-menu-in{from{opacity:.62;translate:0 -4px}to{opacity:1;translate:0 0}}
/* Native dialogs and existing overlay implementations share the same easing. */
:where(dialog[open],.hr-modal:not([hidden]),.bp-dialog:not([hidden]),
 .ws-image-lightbox,.mobile-image-lightbox,.ws-submit-alert){
 animation:jx-float-in 225ms var(--jx-motion-ease) backwards;
}
@media(prefers-reduced-motion:reduce){
 .jx-motion-reveal,:where(dialog[open],.hr-modal:not([hidden]),.bp-dialog:not([hidden]),
 .ws-image-lightbox,.mobile-image-lightbox,.ws-submit-alert,.diag-menu:not([hidden]),
 .ws-action-dropdown-menu,.jx-search-picker-menu){animation:none!important;transition:none!important}
}

/* Return-trip hydration: preserve the shell, but don't animate an obsolete
   default homepage while /admin?form=... is awaiting its directory and table. */
html.jx-motion-await-ready body{animation:none!important}
html.jx-motion-await-ready .ws-content > *{visibility:hidden!important}
html.jx-motion-await-ready .ws-content::before{
 content:'正在准备当前表单…';display:block;color:var(--jx-ui-muted,#8a9bb1);
 font-size:14px;line-height:24px;padding:28px 4px;
}
@media(prefers-reduced-motion:reduce){html.jx-motion-await-ready .ws-content > *{visibility:visible!important}html.jx-motion-await-ready .ws-content::before{display:none}}

/* V2.8.10 · mobile navigation: two coordinated stages, not a hard jump.
   The full-page blur was the expensive part on iOS; opacity is composited.
   Keep entrances on all full pages, with a short mobile exit. */
@media (max-width:800px), (pointer:coarse){
 /* Where supported, native cross-document transitions keep the old page visible
    until the new page has painted. iOS/older WebKit falls back to lightweight CSS. */
 @view-transition{navigation:auto}
 @keyframes jx-mobile-arrive{from{opacity:.72}to{opacity:1}}
 /* The mobile route's native snapshots use the same calm, blur-free motion. */
 @keyframes jx-mobile-native-old{to{opacity:.92}}
 @keyframes jx-mobile-native-new{from{opacity:.76;transform:translate3d(0,7px,0)}to{opacity:1;transform:none}}
 ::view-transition-old(root){animation:jx-mobile-native-old 140ms ease-out both}
 ::view-transition-new(root){animation:jx-mobile-native-new 230ms var(--jx-motion-ease) both}
 /* An employee's in-place browse/form/record change only animates the
    active section; it must not capture fixed assistant buttons or the toolbar. */
 /* Capture only the changing employee section, not the entire page. */
 html[data-jx-mobile-transition=stage],html[data-jx-workspace-transition=stage]{view-transition-name:none}
 html[data-jx-workspace-transition=stage] .ws-content{view-transition-name:jx-workspace-stage}
 html[data-jx-workspace-transition=stage] .ws-content.jx-content-enter{animation:none}
 ::view-transition-old(jx-workspace-stage){animation:jx-workspace-out 180ms ease-out both}
 ::view-transition-new(jx-workspace-stage){animation:jx-workspace-in 260ms cubic-bezier(.22,1,.36,1) both}
 @keyframes jx-workspace-out{to{opacity:.68;transform:translate3d(-6px,0,0)}}
 @keyframes jx-workspace-in{from{opacity:.72;transform:translate3d(9px,0,0)}to{opacity:1;transform:none}}
 ::view-transition{pointer-events:none}
 html[data-jx-mobile-transition=stage] .jx-mobile-body .mobile-page-section:not([hidden]){view-transition-name:jx-mobile-stage}
 ::view-transition-old(jx-mobile-stage){animation:jx-mobile-stage-old 105ms ease-in both}
 ::view-transition-new(jx-mobile-stage){animation:jx-mobile-stage-new 220ms var(--jx-motion-ease) both}
 @keyframes jx-mobile-stage-old{to{opacity:.48;transform:translate3d(0,-4px,0)}}
 @keyframes jx-mobile-stage-new{from{opacity:.56;transform:translate3d(0,8px,0)}to{opacity:1;transform:none}}
 html[data-jx-mobile-back="true"] ::view-transition-old(jx-mobile-stage){animation-name:jx-mobile-stage-back-old}
 html[data-jx-mobile-back="true"] ::view-transition-new(jx-mobile-stage){animation-name:jx-mobile-stage-back-new}
 @keyframes jx-mobile-stage-back-old{to{opacity:.48;transform:translate3d(0,4px,0)}}
 @keyframes jx-mobile-stage-back-new{from{opacity:.56;transform:translate3d(0,-8px,0)}to{opacity:1;transform:none}}

 @keyframes jx-mobile-content-arrive{
  from{opacity:.78;transform:translate3d(0,7px,0)}
  to{opacity:1;transform:none}
 }
 body:not(.jx-no-page-entrance):not(.ws-body){
  animation:jx-mobile-arrive 215ms cubic-bezier(.22,1,.36,1) backwards;
 }
 html.jx-nav-exit body{
  animation:none!important;
  filter:none!important;translate:none!important;
  opacity:.85!important;transition:opacity 110ms ease-in!important;
 }
 .ws-content.jx-content-enter{
  animation:jx-mobile-content-arrive 205ms cubic-bezier(.22,1,.36,1) backwards;
 }
 :where(.ws-modal-layer.open .ws-modal,.ws-form-overlay .ws-form-sheet,
  .modal-backdrop.show .modal,.jx-dialog-backdrop.is-open .jx-dialog){
  animation-duration:190ms;filter:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body:not(.jx-no-page-entrance),.ws-content.jx-content-enter{animation:none!important}
 html.jx-nav-exit body{opacity:1!important;transition:none!important}
}

@media(prefers-reduced-motion:reduce){.jx-mobile-body .mobile-page-section{view-transition-name:none!important}::view-transition-old(jx-mobile-stage),::view-transition-new(jx-mobile-stage){animation:none!important}}

@media(prefers-reduced-motion:reduce){html[data-jx-workspace-transition=stage] .ws-content{view-transition-name:none!important}::view-transition-old(jx-workspace-stage),::view-transition-new(jx-workspace-stage){animation:none!important}}


/* Shared floating motion owns only opacity and small compositor transforms.
   Explicit state prevents old per-page entrance keyframes from playing twice. */
[data-jx-motion-surface]{animation:none!important}
[data-jx-motion-closing],[data-jx-motion-closing] *{pointer-events:none!important}
@media (max-width:800px), (pointer:coarse){
 [data-jx-motion-surface]{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(prefers-reduced-motion:no-preference){
 @supports (interpolate-size:allow-keywords) and (transition-behavior:allow-discrete){
  :is(.jx-mobile-body,.jx-schema-dialog) details:not(.mobile-record-date-group,.mobile-field-search-settings)::details-content{
   interpolate-size:allow-keywords;
   block-size:0;
   overflow:clip;
   opacity:0;
   transition:block-size var(--jx-motion-fast) var(--jx-motion-ease),
    opacity var(--jx-motion-quick) ease,content-visibility var(--jx-motion-fast) allow-discrete;
  }
  :is(.jx-mobile-body,.jx-schema-dialog) details[open]:not(.mobile-record-date-group,.mobile-field-search-settings)::details-content{block-size:auto;opacity:1}
 }
}

@media(prefers-reduced-motion:no-preference){
 .jx-mobile-body .mobile-field-search-settings[open] > .mobile-field-picker{
  animation:jx-mobile-content-arrive 205ms var(--jx-motion-ease) backwards
 }
}

/* Phone route motion animates the destination content independent of native snapshots. */
@media(max-width:800px){@view-transition{navigation:none}}

/* Spring Flagship R4: material feedback, not movable hit targets. Reuse the
   common timing contract; do not animate grid cells or draggable surfaces. */
@media(prefers-reduced-motion:no-preference){
html[data-theme="spring"]:not([data-jx-spring-interaction="off"]) :is(.ws-primary,.ws-secondary,.ws-quiet,.btn,.form-submit,.jx-header-save,.jx-header-back,.jx-config-button,.ws-icon-btn,.jx-dialog-confirm,.jx-time-confirm,.mg-primary,.hr-primary,.bp-primary,.bp-button,.ws-form-small,.ws-module-card,.ws-folder-card):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]){
 transition-property:background-color,border-color,color,box-shadow,opacity!important;
 transition-duration:var(--jx-motion-fast)!important;
 transition-timing-function:var(--jx-motion-ease)!important;
}
}
html[data-theme="spring"] :is(.ws-module-card,.ws-folder-card):not([aria-disabled="true"]):hover{
 transform:none!important;translate:none!important;scale:none!important;
}
@media(hover:hover) and (pointer:fine){
 html[data-theme="spring"] :is(.ws-module-card,.ws-folder-card):not([aria-disabled="true"]):hover{
  transform:none!important;translate:none!important;scale:none!important;
  box-shadow:var(--jx-spring-hover-shadow)!important;
 }
}
/* Only neutral/primary action controls get the spring press; destructive
   controls retain their existing red material. No movement even on touch. */
html[data-theme="spring"] :is(.ws-primary,.ws-secondary,.ws-quiet,.btn,.form-submit,.jx-header-save,.jx-header-back,.jx-config-button,.ws-icon-btn,.jx-dialog-confirm,.jx-time-confirm,.mg-primary,.hr-primary,.bp-primary,.bp-button,.ws-form-small,.ws-module-card,.ws-folder-card):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active{
 transform:none!important;translate:none!important;scale:none!important;

}
@media(prefers-reduced-motion:no-preference){
html[data-theme="spring"]:not([data-jx-spring-interaction="off"]) :is(.ws-primary,.ws-secondary,.ws-quiet,.btn,.form-submit,.jx-header-save,.jx-header-back,.jx-config-button,.ws-icon-btn,.jx-dialog-confirm,.jx-time-confirm,.mg-primary,.hr-primary,.bp-primary,.bp-button,.ws-form-small,.ws-module-card,.ws-folder-card):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active{transition-duration:var(--jx-motion-duration-feedback)!important;}
}
html[data-theme="spring"] :is(.ws-primary,.ws-secondary,.ws-quiet,.btn,.form-submit,.jx-header-save,.jx-header-back,.jx-config-button,.ws-icon-btn,.jx-dialog-confirm,.jx-time-confirm,.mg-primary,.hr-primary,.bp-primary,.bp-button,.ws-form-small):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.danger,.jx-danger,.ws-danger-btn,.ws-danger-outline,.ws-trash-clear,.ws-trash-day-remove,.jx-delete-button,[data-danger="true"],.jx-dialog-danger *):active{
 box-shadow:var(--jx-spring-touch-shadow)!important;filter:none!important;
}
/* Only real form controls and search wrappers, never Excel/table cells or
   invalid controls. Native outline remains, including keyboard navigation. */
@media(prefers-reduced-motion:no-preference){
html[data-theme="spring"]:not([data-jx-spring-interaction="off"]) :is(.ws-tree-search,.ws-search,.ws-field input,.ws-field select,.ws-field textarea,.ws-form-sheet-body input,.ws-form-sheet-body textarea,.ws-form-preview-content input,.ws-form-preview-content textarea,.form-paper input,.form-paper textarea):not(:is(#record-grid *,table *,[role="grid"] *,.sheet-grid *)):not(:is([type="checkbox"],[type="radio"],[type="file"],[type="range"],[type="color"],[type="hidden"],[readonly],[disabled],[aria-invalid="true"],.invalid,.is-invalid)){
 transition:border-color var(--jx-motion-fast) var(--jx-motion-ease),box-shadow var(--jx-motion-fast) var(--jx-motion-ease)!important;
}
}
html[data-theme="spring"] :is(.ws-field input,.ws-field select,.ws-field textarea,.ws-form-sheet-body input,.ws-form-sheet-body textarea,.ws-form-preview-content input,.ws-form-preview-content textarea,.form-paper input,.form-paper textarea):not(:is(#record-grid *,table *,[role="grid"] *,.sheet-grid *)):not(:is([type="checkbox"],[type="radio"],[type="file"],[type="range"],[type="color"],[type="hidden"],[readonly],[disabled],[aria-invalid="true"],.invalid,.is-invalid)):focus-visible,
html[data-theme="spring"] :is(.ws-tree-search,.ws-search):focus-within{
 border-color:var(--jx-spring-focus)!important;box-shadow:0 0 0 3px var(--jx-spring-focus-halo)!important;
}
/* Native checkboxes/radios remain native, including indeterminate and keyboard
   behavior. Give only keyboard focus a fine spring-colored outline. */
html[data-theme="spring"] input:is([type="checkbox"],[type="radio"]):not(:disabled):focus-visible{
 outline:2px solid var(--jx-spring-focus);outline-offset:3px;
}
@media(prefers-reduced-motion:reduce),print{
 html[data-theme="spring"] :is(.ws-primary,.ws-secondary,.ws-quiet,.btn,.form-submit,.jx-header-save,.jx-header-back,.jx-config-button,.ws-icon-btn,.jx-dialog-confirm,.jx-time-confirm,.mg-primary,.hr-primary,.bp-primary,.bp-button,.ws-form-small,.ws-module-card,.ws-folder-card,.ws-tree-search,.ws-search,.ws-field input,.ws-field select,.ws-field textarea,.ws-form-sheet-body input,.ws-form-sheet-body textarea,.ws-form-preview-content input,.ws-form-preview-content textarea,.form-paper input,.form-paper textarea){transition:none!important;}
}
