/* Short transitions preserve layout and never delay actions. */
:root{--erp-motion-fast:130ms;--erp-motion-enter:190ms;--erp-motion-ease:cubic-bezier(.2,.65,.3,1)}
button,.primary,.secondary,#nav a,.k-task-folder,.e-person-card{transition:background-color var(--erp-motion-fast) ease,border-color var(--erp-motion-fast) ease,box-shadow var(--erp-motion-fast) ease,opacity var(--erp-motion-fast) ease,transform var(--erp-motion-fast) var(--erp-motion-ease)}
button:active:not(:disabled),a.primary:active,a.secondary:active{transform:scale(.98)}
input,select,textarea{transition:border-color var(--erp-motion-fast) ease,box-shadow var(--erp-motion-fast) ease}
html[data-erp-motion=on] :is(body,header,#sidebar,main,dialog,section,article,.panel,.metric,td,th,.c-box){transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease}
#main>*{animation:erp-content-in var(--erp-motion-enter) var(--erp-motion-ease) both}
dialog[open]{animation:erp-dialog-in var(--erp-motion-enter) var(--erp-motion-ease) both}
dialog[open]::backdrop{animation:erp-backdrop-in 160ms ease both}
details[open]>:not(summary){animation:erp-content-in 160ms var(--erp-motion-ease) both}
.toast:not(.hidden){animation:erp-toast-in var(--erp-motion-enter) var(--erp-motion-ease) both}
.k-file,.e-person-card,.c-notices,.wf-notice{animation:erp-content-in 160ms var(--erp-motion-ease) both}
@keyframes erp-content-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes erp-dialog-in{from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:none}}
@keyframes erp-backdrop-in{from{background-color:transparent}}
@keyframes erp-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
html[data-erp-motion=off] *,html[data-erp-motion=off] *::before,html[data-erp-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
