/* Nexus curved navigation. Presentation only; scoped to authenticated layouts. */
html[data-theme="light"] body.nexus-template.nexus-bottom-layout { --nx-dock-height:84px; background:#f5f7fb!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .main.page-body { margin:0!important;width:100%!important;min-height:100dvh!important;padding:0!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content { padding:24px 28px calc(var(--nx-dock-height) + env(safe-area-inset-bottom) + 40px)!important;background:#f5f7fb!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .topbar.page-main-header { padding:14px 28px!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .topbar-left { min-width:0;gap:26px!important; }
.nexus-bottom-layout .nexus-header-brand { display:flex;align-items:center;gap:10px;flex-shrink:0;color:#101d32!important;text-decoration:none!important; }
.nexus-header-brand img { width:42px;height:42px;object-fit:contain; }
.nexus-header-brand>span { font-size:25px;font-weight:800;letter-spacing:.06em;line-height:1; }
.nexus-header-brand small { display:block;margin-top:5px;font-size:10px;letter-spacing:.02em;font-weight:600; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nexus-toolbar-name { border-left:1px solid #dce3ed;padding-left:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45vw; }
.nexus-bottom-layout .nexus-toast-region { bottom:calc(var(--nx-dock-height) + env(safe-area-inset-bottom) + 16px)!important; }
/* Readable, scrollable navigation remains available if JavaScript fails. */
.nexus-dock-source { position:fixed;bottom:0;left:0;right:0;z-index:60;background:#101d32;padding:14px;display:flex;gap:12px;overflow:auto;max-height:140px; }
.nexus-dock-source[hidden] { display:none!important; }
.nexus-dock-source :is(.sidebar-brand-row,.workspace-label,.nav-section,.nav-submenu-toggle,.live-badge) { display:none!important; }
.nexus-dock-source :is(nav,.nav-group,.nav-parent-row,.nav-submenu,.mi-module-nav,.sidebar-footer) { display:contents!important; }
.nexus-dock-source :is(a,.is-locked) { color:#fff!important;flex:0 0 auto;padding:8px;display:flex;align-items:center;gap:8px; }
.nexus-dock-source svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8; }
.nexus-dock-source .sidebar-user .avatar { display:none; }
/* A shallow half ellipse extends to both viewport edges. Icons remain level. */
.nx-dock { position:fixed;inset:auto 0 0;isolation:isolate;z-index:60;height:calc(var(--nx-dock-height) + env(safe-area-inset-bottom));padding:25px max(28px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));box-sizing:border-box; }
.nx-dock::before { content:"";position:absolute;inset:0;z-index:-1;border-radius:50% 50% 0 0 / 30px 30px 0 0;background:#0c1c30;border-top:2px solid #1685ff;box-shadow:0 -5px 24px #14294812;pointer-events:none; }
.nx-dock-items { display:flex;align-items:center;justify-content:space-around;height:100%;gap:10px; }
html[data-theme="light"] body.nexus-template .nx-dock-item { position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;margin:0;border:1px solid #2b5276;border-radius:50%;background:transparent;color:#e5efff;text-decoration:none;box-sizing:border-box;cursor:pointer;transition:background .16s,color .16s,border-color .16s; }
html[data-theme="light"] body.nexus-template .nx-dock-item:hover { background:#1a3553;color:white;border-color:#6baeff; }
html[data-theme="light"] body.nexus-template .nx-dock-item.active { background:#0879f9;border-color:#339bff;color:white;box-shadow:0 2px 10px #0879f933; }
.nx-dock-item:focus-visible { outline:3px solid #9bd0ff;outline-offset:4px; }
.nx-dock-item svg { display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.nx-dock-item[aria-disabled="true"] { opacity:.5;cursor:default; }
.nx-dock-badge { position:absolute;top:-5px;right:-6px;background:#e5484d;color:#fff;border:2px solid #0c1c30;border-radius:12px;min-width:19px;padding:1px 4px;font-size:10px;line-height:14px;text-align:center; }
.nx-dock-label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.nx-dock-tooltip { position:fixed;z-index:1000;background:#0c1c30;color:#fff;padding:7px 12px;border:1px solid #35516c;border-radius:6px;box-shadow:0 4px 12px #0c1c3020;pointer-events:none;font-size:13px;line-height:1.4;white-space:nowrap;max-width:calc(100vw - 16px); }
.nx-dock-tooltip[hidden],.nx-dock-more-panel[hidden] { display:none!important; }
.nx-dock-more-panel { position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--nx-dock-height) + env(safe-area-inset-bottom) + 12px);width:320px;max-width:calc(100vw - 32px);max-height: min(65dvh,520px);overflow:auto;padding:12px;background:#fff;border:1px solid #dce4ee;border-radius:14px;box-shadow:0 12px 44px #0c1c3033;color:#101d32; }
.nx-dock-more-title { display:flex;align-items:center;justify-content:space-between;padding:5px 8px 12px;font-size:16px;font-weight:700; }
.nx-dock-more-close { border:0;background:#edf2f9;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer;color:#101d32; }
html[data-theme="light"] body.nexus-template .nx-dock-more-panel .nx-dock-item { width:100%;border:0;border-radius:8px;min-height:44px;height:auto;justify-content:flex-start;gap:12px;padding:12px;background:none;color:#263951; }
html[data-theme="light"] body.nexus-template .nx-dock-more-panel .nx-dock-item:is(:hover,.active) { background:#eaf3ff;color:#1264c8;box-shadow:none; }
.nx-dock-more-panel .nx-dock-label { position:static;clip-path:none;width:auto;height:auto;white-space:normal;font-size:14px; }
.nx-dock-more-panel .nx-dock-badge { position:static;margin-left:auto; }
@media(max-width:700px) {
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout { --nx-dock-height:80px; }
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content { padding:18px 16px calc(var(--nx-dock-height) + env(safe-area-inset-bottom) + 30px)!important; }
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout .topbar.page-main-header { padding:10px 14px!important; }
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nexus-toolbar-name { display:none; }
 .nexus-header-brand img { width:32px;height:32px; }.nexus-header-brand>span { font-size:20px; }
 .nx-dock { padding:23px 12px calc(9px + env(safe-area-inset-bottom)); }.nx-dock-items{gap:4px;}
 .nx-dock::before { border-radius:50% 50% 0 0 / 20px 20px 0 0; }
}
@media(prefers-reduced-motion:reduce) { .nx-dock-item { transition:none!important; } }
@media print { .nx-dock,.nexus-dock-source,.nx-dock-tooltip { display:none!important; } html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content{padding-bottom:0!important;} }
/* v2 — compact light dock with a centred watermark and visible overflow control. */
html[data-theme="light"] body.nexus-template.nexus-bottom-layout { --nx-dock-height:116px; }
.nx-dock { padding:42px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.nx-dock::before { background:#f0f5fc;border-top:1px solid #b7cce6;border-radius:50% 50% 0 0 / 22px 22px 0 0;box-shadow:none; }
.nx-dock-watermark { position:absolute;top:17px;left:0;right:0;text-align:center;color:#6b86a8;font-size:12px;letter-spacing:.3em;font-weight:800;line-height:16px;pointer-events:none;user-select:none; }
.nx-dock-scroller { position:relative;max-width:850px;width:100%;height:52px;overflow-x:auto;overflow-y:hidden;margin:0 auto;scrollbar-width:none;overscroll-behavior-x:contain; }
.nx-dock-scroller::-webkit-scrollbar { display:none; }
.nx-dock-items { position:relative;width:max-content;min-width:0;height:50px;margin:0 auto;display:flex;justify-content:flex-start;gap:12px;padding:3px 5px;box-sizing:border-box; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nx-dock-item { flex:0 0 44px;width:44px;height:44px;min-height:44px;background:#fff;border:1px solid #c4d5e8;color:#456480;box-shadow:none; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nx-dock-item:hover { background:#e6f0ff;color:#185ab7;border-color:#81abe4; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nx-dock-item.active { background:#dbeaff;color:#145cc2;border-color:#71a4ec;box-shadow:none; }
.nx-dock-item:focus-visible { outline:2px solid #2267c8;outline-offset:1px; }
.nx-dock-badge { background:#fde8eb;color:#9b2436;border-color:#f0f5fc; }
.nx-dock-tooltip { background:#fff;color:#294d78;border:1px solid #cbd9eb;box-shadow:none; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout input.nx-dock-scroll { display:block;appearance:none;-webkit-appearance:none;height:8px;min-height:8px;width:min(100%,850px);padding:0;margin:4px auto 0;background:#d9e4f1!important;border:0!important;border-radius:8px!important;cursor:pointer;accent-color:#7298cb;box-shadow:none!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout input.nx-dock-scroll[hidden] { display:none!important; }
.nx-dock-scroll::-webkit-slider-thumb { appearance:none;-webkit-appearance:none;width:52px;height:8px;border-radius:8px;background:#7298cb;border:0; }
.nx-dock-scroll::-moz-range-thumb { width:52px;height:8px;border-radius:8px;background:#7298cb;border:0; }
.nx-dock-scroll:focus-visible { outline:2px solid #2267c8;outline-offset:3px; }
@media(max-width:700px) { html[data-theme="light"] body.nexus-template.nexus-bottom-layout { --nx-dock-height:116px; }.nx-dock{padding-top:42px}.nx-dock-items{gap:10px}.nx-dock-watermark{top:17px} }

.nexus-dock-source { background:#f0f5fc;border-top:1px solid #b7cce6; }
.nexus-dock-source :is(a,.is-locked) { color:#294d78!important; }
/* v3 — the content owns its scrollbar inside the header/dock boundaries. */
html[data-theme="light"] body.nexus-template.nexus-bottom-layout { height:100vh;height:100dvh;min-height:0!important;overflow:hidden!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout :is(.nexus-page-wrapper,.nexus-page-body-wrapper) { height:100%;min-height:0!important;overflow:hidden; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .main.page-body { display:flex!important;flex-direction:column!important;height:calc(100vh - var(--nx-dock-height) - env(safe-area-inset-bottom));height:calc(100dvh - var(--nx-dock-height) - env(safe-area-inset-bottom));min-height:0!important;max-height:none!important;overflow:hidden!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .main .topbar.page-main-header { position:relative!important;top:auto!important;flex:0 0 80px!important;height:80px!important;min-height:80px!important;background:#e5f2e8!important;border-bottom:1px solid #c5decf!important;box-shadow:none!important; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nexus-page-header { flex:0 0 auto; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content { flex:1 1 0%;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:24px 28px!important;scroll-padding:20px;scrollbar-width:thin;scrollbar-color:#91b39c #edf5ef; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content::-webkit-scrollbar { width:9px; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content::-webkit-scrollbar-track { background:#edf5ef; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content::-webkit-scrollbar-thumb { background:#91b39c;border-radius:6px;border:2px solid #edf5ef; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .nx-dock::before { background:#e5f2e8;border-top-color:#bfd8c8; }
.nx-dock-watermark { color:#6a9079; }
.nexus-dock-source { background:#e5f2e8;border-color:#bfd8c8; }
.nx-dock-badge { border-color:#e5f2e8; }
html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content :is(.sticky-action-bar,.profile-save-bar,.report-sticky-actions,.report-form-footer) { position:sticky!important;bottom:0!important;z-index:10; }
@media(max-width:1000px) { html[data-theme="light"] body.nexus-template.nexus-bottom-layout .main .topbar.page-main-header { flex-basis:64px!important;height:64px!important;min-height:64px!important; } }
@media(max-width:700px) { html[data-theme="light"] body.nexus-template.nexus-bottom-layout .content { padding:18px 16px!important; } }
@media print {
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout,
 html[data-theme="light"] body.nexus-template.nexus-bottom-layout :is(.nexus-page-wrapper,.nexus-page-body-wrapper,.main.page-body,.content) { display:block!important;height:auto!important;max-height:none!important;overflow:visible!important; }
}
