:root{--antey-ux-nav-height:68px;--antey-ux-safe:env(safe-area-inset-bottom,0px)}
html{scroll-padding-bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 24px)}
body{overscroll-behavior-y:contain}
button,a,input[type=submit],select{touch-action:manipulation}
button:active:not(:disabled),a[role=button]:active,.antey-ux-bottom a:active{transform:scale(.96)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #55ddff;outline-offset:3px}
.antey-ux-bottom,.antey-ux-drawer,.antey-ux-backdrop{display:none}
.antey-ux-toast{position:fixed;z-index:1080;bottom:calc(18px + var(--antey-ux-safe));left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:12px 18px;background:#082b3c;color:#edf9ff;border:1px solid #3cddff;border-radius:12px;box-shadow:0 0 18px #00aee933;overflow-wrap:anywhere}
.antey-ux-toast.is-error{border-color:#ff625f}
[hidden]{display:none!important}
.antey-ux-loading{pointer-events:none;opacity:.6}
.antey-ux-loading:after{content:"";display:inline-block;vertical-align:middle;width:14px;height:14px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:antey-ux-spin .7s linear infinite}
@keyframes antey-ux-spin{to{transform:rotate(360deg)}}
.antey-ux-skeleton{display:grid;gap:12px;margin:12px 0}
.antey-ux-skeleton i{display:block;height:58px;border-radius:8px;background:linear-gradient(90deg,#102c3d,#1c4357,#102c3d);background-size:200% 100%;animation:antey-ux-shimmer 1.5s linear infinite}
@keyframes antey-ux-shimmer{to{background-position:-200% 0}}
.antey-ux-field-error{display:block;color:#ff9d98;font-size:14px;margin:4px 0;overflow-wrap:anywhere}
.antey-ux-empty{border:1px dashed #0879aa;border-radius:12px;padding:16px;margin:12px 0;background:#071f30;color:#edf9ff}
.antey-ux-empty button{min-height:44px!important}
@media(max-width:767px), (max-width:1024px) and (max-height:500px){
body.antey-ux-shell{padding-bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 12px)!important;min-height:100vh;min-height:100dvh}
.antey-ux-shell input,.antey-ux-shell select,.antey-ux-shell textarea{font-size:16px!important;scroll-margin-block:80px;max-width:100%}
.antey-ux-shell button,.antey-ux-shell [role=button]{min-height:44px!important}
.antey-ux-shell .antey-quick-menu{display:none!important}
.antey-ux-shell .antey-theme-switch{bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 12px)!important}
.antey-ux-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:1040;bottom:0;left:0;right:0;min-height:var(--antey-ux-nav-height);padding:6px max(10px,env(safe-area-inset-right)) calc(6px + var(--antey-ux-safe)) max(10px,env(safe-area-inset-left));background:#041824f5;border-top:1px solid #17b6e6;box-shadow:0 -4px 20px #00aee925;backdrop-filter:blur(12px)}
.antey-ux-bottom a,.antey-ux-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:4px 0;margin:0;border:0;background:transparent;color:#a2bacb;text-decoration:none;font:12px/1.2 Arial,sans-serif;transition:transform .12s ease,color .12s ease;border-radius:8px}
.antey-ux-bottom svg{width:23px;height:23px}
.antey-ux-bottom [aria-current=page],.antey-ux-bottom button[aria-expanded=true]{color:#3cddff;background:#0b486355}
.antey-ux-backdrop{display:block;position:fixed;z-index:1050;inset:0;background:#0009;border:0;cursor:pointer}
.antey-ux-drawer{display:flex;flex-direction:column;position:fixed;z-index:1060;top:0;right:0;width:min(88vw,360px);height:100vh;height:100dvh;padding:calc(12px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) calc(24px + var(--antey-ux-safe));background:#041824;border-left:1px solid #3cddff;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;transform:translateX(105%);transition:transform .22s ease;visibility:hidden}
.antey-ux-drawer.is-open{transform:translateX(0);visibility:visible}
.antey-ux-drawer header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.antey-ux-drawer h2{font-size:20px;color:#3cddff}
.antey-ux-drawer header button{width:44px;height:44px;background:#06243a;color:#edf9ff;border:1px solid #0879aa;border-radius:8px;font-size:28px}
.antey-ux-drawer>a{display:block;flex-shrink:0;padding:12px;min-height:48px;color:#edf9ff;border-bottom:1px solid #0879aa55;text-decoration:none}
.antey-ux-drawer>a[aria-current=page]{background:#0b4863;color:#3cddff}
.antey-ux-toast{bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 12px);font-size:14px}
.antey-ux-keyboard .antey-ux-bottom,.antey-ux-keyboard .antey-theme-switch{display:none!important}
.antey-ux-keyboard .antey-ux-toast{bottom:12px}
.antey-ux-shell .table-responsive,.antey-ux-shell .frappe-list,.antey-ux-shell .layout-main-section,.antey-ux-shell .modal-body{ -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
html[data-antey-theme=standard] .antey-ux-bottom,html[data-antey-theme=standard] .antey-ux-drawer{background:#f8fafb;color:#152b38}
html[data-antey-theme=standard] .antey-ux-bottom a,html[data-antey-theme=standard] .antey-ux-bottom button,html[data-antey-theme=standard] .antey-ux-drawer>a{color:#123548}
}
@media(prefers-reduced-motion:reduce){.antey-ux-loading:after,.antey-ux-skeleton i{animation:none}.antey-ux-drawer,.antey-ux-bottom a,.antey-ux-bottom button{transition:none}button:active,a[role=button]:active{transform:none}}

.antey-ux-drawer{touch-action:pan-y}

#alert-container{position:fixed!important;top:auto!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;z-index:1080;max-width:min(90vw,600px)}
@media(max-width:767px), (max-width:1024px) and (max-height:500px){#alert-container{bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 12px)!important}.antey-ux-keyboard #alert-container{bottom:12px!important}}

@media(max-width:767px), (max-width:1024px) and (max-height:500px){.antey-director-surface .app,.antey-director-surface .layout{grid-template-columns:minmax(0,1fr)!important}.antey-director-surface main,.antey-director-surface .layout>div,.antey-director-surface .panel,.antey-director-surface .kpi{min-width:0;max-width:100%}.antey-director-surface .kpis,.antey-director-surface .process{grid-template-columns:repeat(2,minmax(0,1fr))!important}.antey-director-surface .panel-title,.antey-director-surface .statline,.antey-director-surface .donut-wrap{flex-wrap:wrap}.antey-director-surface .panel-title>*{min-width:0;max-width:100%;white-space:normal}.antey-director-surface .small-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.antey-director-surface .label,.antey-director-surface .empty{overflow-wrap:anywhere}.antey-director-surface .top{min-width:0}.antey-director-surface .top h1{overflow-wrap:anywhere}}
@media(max-width:380px){.antey-director-surface .kpis{grid-template-columns:minmax(0,1fr)!important}.antey-director-surface .kpi>div{min-width:0}}

@media(max-width:767px), (max-width:1024px) and (max-height:500px){.antey-ux-shell .modal-content{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.antey-ux-shell .modal-body{overflow-y:auto}}

@media(max-width:767px), (max-width:1024px) and (max-height:500px){.antey-director-surface #director-menu-open{display:none!important}.antey-ux-drawer header{position:sticky;top:0;z-index:1;background:#041824;flex-shrink:0}html[data-antey-theme=standard] .antey-ux-drawer header{background:#f8fafb}}

.antey-install-menu{display:block;width:100%;min-height:44px!important;padding:12px;color:#3cddff;background:#06243a;border:1px solid #0879aa;border-radius:8px;text-align:left}
.antey-install-dialog{box-sizing:border-box;width:min(92vw,520px);max-height:calc(100dvh - 32px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#041824;color:#edf9ff;border:1px solid #3cddff;border-radius:16px;padding:22px;box-shadow:0 0 28px #00aee944;font:16px/1.5 Arial,sans-serif}.antey-install-dialog::backdrop{background:#000b}.antey-install-dialog h2,.antey-install-dialog h3{color:#3cddff}.antey-install-dialog button{min-height:44px;padding:10px 18px;margin:6px 6px 0 0;color:#edf9ff;background:#06243a;border:1px solid #0879aa;border-radius:8px}.antey-install-dialog [hidden]{display:none!important}@media(max-width:767px), (max-width:1024px) and (max-height:500px){.for-login input,.for-signup input,.for-forgot input{font-size:16px!important}.for-login button,.for-signup button,.for-forgot button{min-height:44px!important}}

.antey-ux-drawer .antey-theme-switch,.antey-quick-links .antey-theme-switch{position:static!important;inset:auto!important;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:18px 0 0;padding:14px 0;border:0;border-top:1px solid #0879aa55;border-radius:0;box-shadow:none;background:transparent;flex-shrink:0}.antey-ux-drawer .antey-theme-switch select,.antey-quick-links .antey-theme-switch select{min-height:44px!important;max-width:75%;font-size:16px!important}.antey-ux-drawer .antey-theme-switch{margin-top:auto;padding-top:18px}

@media(max-width:767px), (max-width:1024px) and (max-height:500px){body.antey-ux-shell main>nav a,body.antey-ux-shell .side .nav a{min-height:44px!important;display:inline-flex;align-items:center}body.antey-director-surface.antey-ux-shell a,body.antey-director-surface.antey-ux-shell button{min-height:44px!important}body.antey-ux-shell #antey-ux-nav>a,body.antey-ux-shell #antey-ux-nav>button{min-height:52px!important}}
/* DEMO mobile geometry refresh — preserves established theme tokens. */
:root{--antey-ux-nav-height:72px}
@media(max-width:767px),(max-width:1024px) and (max-height:500px){
body.antey-ux-shell{padding-bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 16px)!important}
#antey-ux-nav{box-sizing:border-box!important;height:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe))!important;min-height:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe))!important;padding:4px max(8px,env(safe-area-inset-right)) calc(4px + var(--antey-ux-safe)) max(8px,env(safe-area-inset-left))!important}
#antey-ux-nav>a,#antey-ux-nav>button{box-sizing:border-box!important;min-height:52px!important;height:100%!important;padding:4px 2px!important;justify-content:center!important}
#antey-ux-nav span{font-size:12px!important;line-height:1.15!important;white-space:nowrap}#antey-ux-nav svg{width:22px!important;height:22px!important}
.ds-search{position:sticky!important;top:calc(env(safe-area-inset-top,0px) + 2px)!important;z-index:1020!important;gap:8px!important;margin:0 0 12px!important;padding:6px!important;background:inherit}
.ds-search input{min-width:0!important;min-height:44px!important;padding:8px 12px!important}.ds-search button{min-height:44px!important;padding:8px 12px!important}
.antey-ux-drawer{box-sizing:border-box!important;display:flex!important;top:auto!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;max-width:none!important;height:auto!important;max-height:min(82dvh,720px)!important;padding:8px max(16px,env(safe-area-inset-right)) calc(18px + var(--antey-ux-safe)) max(16px,env(safe-area-inset-left))!important;border:1px solid var(--ds-border,#0879aa)!important;border-bottom:0!important;border-radius:20px 20px 0 0!important;transform:translateY(105%)!important;visibility:hidden!important;transition:transform .22s ease,visibility .22s ease!important}
.antey-ux-drawer.is-open{display:flex!important;transform:translateY(0)!important;visibility:visible!important}
.antey-ux-sheet-grip{display:block!important;width:44px!important;height:5px!important;min-height:5px!important;flex:0 0 5px!important;margin:4px auto 12px!important;padding:0!important;border:0!important;border-radius:999px!important;background:currentColor!important;opacity:.42!important;touch-action:none!important;cursor:grab}
.antey-ux-sheet-header{position:sticky!important;top:0!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0 0 10px!important;background:inherit}
.antey-ux-drawer .antey-ux-sheet-header h2{margin:0!important}.antey-ux-drawer-profile{display:flex!important;align-items:center!important;min-height:48px!important;flex:0 0 auto!important;padding:8px 12px!important;border-bottom:1px solid color-mix(in srgb,currentColor 20%,transparent)!important;color:inherit!important}
.antey-ux-backdrop{z-index:1050!important}
.modal.show{display:flex!important;align-items:flex-end!important;justify-content:center!important;padding:0!important}
.modal-dialog,.modal-dialog-centered{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;align-self:flex-end!important;transform:translateY(0)!important}
.modal-content{max-height:calc(84dvh - env(safe-area-inset-top,0px))!important;overflow:hidden!important;border-radius:20px 20px 0 0!important;padding-bottom:var(--antey-ux-safe)!important}
.modal-header{display:block!important;position:sticky!important;top:0!important;z-index:2!important;padding-top:4px!important}
.modal-body{max-height:calc(84dvh - 112px - env(safe-area-inset-top,0px))!important;overflow-y:auto!important;overscroll-behavior:contain!important}
.dropdown-menu.show{box-sizing:border-box!important;position:fixed!important;inset:auto 8px calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 4px)!important;width:auto!important;min-width:0!important;max-height:min(62dvh,560px)!important;overflow:auto!important;overscroll-behavior:contain!important;z-index:1060!important;border-radius:18px 18px 0 0!important}
.dropdown-menu.show .antey-ux-sheet-grip{position:sticky!important;top:0!important;margin-top:0!important;background:currentColor!important}
.tabs,.filters,[role=tablist]{display:flex!important;flex-wrap:nowrap!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;padding-bottom:4px!important}
.tabs>*,.filters>*,[role=tablist]>*{flex:0 0 auto!important;scroll-snap-align:start}
.form-footer{position:sticky!important;bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe))!important;z-index:1030!important;display:flex!important;gap:8px!important;align-items:center!important;padding:8px max(12px,env(safe-area-inset-right))!important;background:var(--ds-surface,#071f30)!important}.antey-ux-sticky-cta{position:sticky!important;bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 8px)!important;z-index:1030!important;align-self:stretch!important;width:100%!important}.form-footer .btn-primary,.antey-ux-sticky-cta{min-height:48px!important}
.form-footer .btn-primary,.antey-ux-sticky-cta .btn-primary{min-height:48px!important}
#antey-ux-toast{bottom:calc(var(--antey-ux-nav-height) + var(--antey-ux-safe) + 14px)!important}
}
@media(prefers-reduced-motion:reduce){.antey-ux-drawer{transition:none!important}}
@media(max-width:767px),(max-width:1024px) and (max-height:500px){
#antey-demo-banner{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;box-sizing:border-box!important;height:56px!important;min-height:56px!important;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))!important}
#antey-demo-toggle,#antey-demo-desk{display:none!important}
#antey-demo-banner .ds-profile{display:inline-flex!important;position:static!important;visibility:visible!important;min-height:48px!important;width:auto!important;align-items:center!important;justify-content:center!important;margin:0!important}
}

@media(max-width:767px),(max-width:1024px) and (max-height:500px){
html.antey-design-v2 #antey-demo-banner #antey-demo-toggle,html.antey-design-v2 #antey-demo-banner #antey-demo-desk{display:none!important}
html.antey-design-v2 #antey-demo-banner .ds-profile{display:inline-flex!important;position:static!important;visibility:visible!important;min-height:48px!important;width:auto!important;align-items:center!important;justify-content:center!important;margin:0!important}
}

@media(max-width:767px),(max-width:1024px) and (max-height:500px){html.antey-design-v2 #antey-demo-banner .ds-profile{width:max-content!important;max-width:none!important;flex:0 0 auto!important;white-space:nowrap!important}html.antey-design-v2 #antey-demo-banner .ds-profile span{white-space:nowrap!important}}

@media(max-width:767px),(max-width:1024px) and (max-height:500px){html.antey-design-v2 #antey-demo-banner .ds-profile,html.antey-design-v2 #antey-ux-nav .ds-profile{display:inline-flex!important;position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 4px)!important;right:max(12px,env(safe-area-inset-right))!important;z-index:1035!important;width:max-content!important;max-width:none!important;min-height:48px!important;align-items:center!important;justify-content:center!important;margin:0!important;white-space:nowrap!important;flex:0 0 auto!important}}

@media(max-width:767px),(max-width:1024px) and (max-height:500px){html.antey-design-v2 #antey-ux-nav .ds-profile[href]{display:inline-flex!important;position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 4px)!important;right:max(12px,env(safe-area-inset-right))!important;z-index:1035!important;width:max-content!important;max-width:none!important;min-height:48px!important;align-items:center!important;justify-content:center!important;margin:0!important;white-space:nowrap!important;flex:0 0 auto!important}}

@media(max-width:767px),(max-width:1024px) and (max-height:500px){html.antey-design-v2 #antey-ux-nav .ds-profile.antey-ux-profile-native-header{display:none!important;position:static!important}}
