/* NDL app shell: dark ink sidebar on every Nexus page, phone bottom bar and module sheet.
   Module page content is not restyled; each module's own menu is moved under its sidebar item. */
#ndl-side{position:fixed;left:0;top:0;bottom:0;z-index:40;width:var(--ndl-side-w);box-sizing:border-box;display:flex;flex-direction:column;gap:2px;
  padding:18px 12px 14px;padding-top:calc(18px + env(safe-area-inset-top,0px));background:var(--ndl-side);border-right:1px solid var(--ndl-side-line);
  color:var(--ndl-side-text);font:500 14px/1.3 var(--ndl-font-text);-webkit-font-smoothing:antialiased;overflow-y:auto;overflow-x:hidden;
  transition:width var(--ndl-side-dur) var(--ndl-ease),transform var(--ndl-side-dur) var(--ndl-ease);scrollbar-width:thin;scrollbar-color:#24323A transparent}
#ndl-side *{box-sizing:border-box}
#ndl-side a{text-decoration:none}
#ndl-side :focus-visible{outline:2px solid #5BC0EE;outline-offset:2px;border-radius:10px}
body.ndl-on{padding-left:var(--ndl-side-w)!important;transition:padding-left var(--ndl-side-dur) var(--ndl-ease)}
body.ndl-on.ndl-rail{padding-left:var(--ndl-rail-w)!important}
body.ndl-rail #ndl-side{width:var(--ndl-rail-w)}

.ndl-brand{display:flex;align-items:center;gap:12px;padding:2px 6px 22px;min-height:36px;color:#fff}
.ndl-mark{width:36px;height:36px;flex:none;background:transparent;display:flex;align-items:center;justify-content:center}
.ndl-mark img{width:36px;height:auto;display:block}
.ndl-wm{display:flex;flex-direction:column;min-width:0}
.ndl-wm b{font:700 17px/1.05 var(--ndl-font-display);letter-spacing:-.02em;color:#fff;white-space:nowrap}
.ndl-wm b span{color:#5BC0EE}
.ndl-wm small{font-size:11.5px;color:var(--ndl-side-label);margin-top:4px;white-space:nowrap;letter-spacing:.01em}

.ndl-nav{position:relative;display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;border-radius:10px;color:var(--ndl-side-text)!important;
  font:500 14px/1.2 var(--ndl-font-text);letter-spacing:-.005em;white-space:nowrap;overflow:hidden;border:0;background:transparent;width:100%;text-align:left;cursor:pointer;
  transition:background-color var(--ndl-hover) ease,color var(--ndl-hover) ease}
.ndl-nav svg{flex:none;width:20px;height:20px;color:var(--ndl-side-icon);transition:color var(--ndl-hover) ease}
.ndl-nav:hover{background:var(--ndl-side-hover);color:#fff!important}
.ndl-nav:hover svg{color:#C7D2D6}
.ndl-nav.on{background:var(--ndl-side-on);color:#fff!important;font-weight:600}
.ndl-nav.on svg{color:var(--ndl-side-icon-on)}
.ndl-nav .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* module pages have their own .lbl, .cnt and .chev styles; keep the sidebar identical to Home */
#ndl-side .ndl-nav .lbl{font:inherit!important;color:inherit!important;text-transform:none!important;letter-spacing:inherit!important;margin:0!important;padding:0!important;background:none!important;display:block}
#ndl-side .ndl-nav .cnt{margin:0!important;text-transform:none!important;letter-spacing:0!important}
.ndl-nav .cnt{min-width:22px;height:20px;padding:0 7px;border-radius:10px;background:#0178B4;color:#fff;font:600 12px/20px var(--ndl-font-text);text-align:center;font-variant-numeric:tabular-nums}
.ndl-nav .chev{width:14px;height:14px;color:#7F9097;transition:transform var(--ndl-hover) ease}
.ndl-nav[aria-expanded="false"] .chev{transform:rotate(-90deg)}
.ndl-label{font:600 11.5px/1 var(--ndl-font-text);color:var(--ndl-side-label);padding:22px 12px 8px;letter-spacing:.02em}
.ndl-sep{display:none;height:1px;background:var(--ndl-side-line);margin:14px 10px}
.ndl-grow{flex:1;min-height:24px}

/* nested module menu (the module's own nav element, moved here) */
#ndl-sub{margin:2px 0 6px;min-width:0}
#ndl-sub[hidden]{display:none}
.ndl-sub-empty{padding:6px 12px 6px 44px;color:var(--ndl-side-label);font-size:12.5px}

/* Time & Billing native menu (nav.js .knav) */
#ndl-side .knav{position:static!important;display:none;width:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;
  top:auto!important;bottom:auto!important;left:auto!important;overflow:visible!important;z-index:auto!important;box-shadow:none!important}
body.authed #ndl-side .knav{display:block!important}
#ndl-side .knav .knav-brand,#ndl-side .knav .knav-foot{display:none!important}
#ndl-side .knav .knav-items{padding:0!important;display:flex;flex-direction:column;gap:1px}
#ndl-side .knav h4{margin:10px 0 4px 44px!important;font:600 11px/16px var(--ndl-font-text)!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#6F838B!important}
#ndl-side .knav h4:first-child{margin-top:4px!important}
#ndl-side .knav .nav-i{min-height:32px;margin:0!important;padding:6px 10px 6px 44px!important;border-radius:8px!important;gap:8px!important;
  font:500 13.5px/1.3 var(--ndl-font-text)!important;color:#AEBCC2!important;background:transparent!important;width:100%}
#ndl-side .knav .nav-i svg{display:none!important}
#ndl-side .knav .nav-i::before{display:none!important}
#ndl-side .knav .nav-i:hover{background:var(--ndl-side-hover)!important;color:#fff!important}
#ndl-side .knav .nav-i[aria-current="page"]{background:rgba(1,139,206,.14)!important;color:#fff!important;font-weight:600!important;box-shadow:inset 2px 0 0 #5BC0EE!important}
#ndl-side .knav .nav-i .count{margin-left:auto!important;background:rgba(91,192,238,.18)!important;color:#A8DDF5!important;font:600 11px/18px var(--ndl-font-text)!important;border-radius:9px!important;padding:0 7px!important}

/* BD, Recruit, Contracts, Onboarding native menu (#side) */
#ndl-side #side{position:static!important;display:block!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;overflow:visible!important;top:auto!important;left:auto!important;z-index:auto!important}
#ndl-side #side .brand,#ndl-side #side .user,#ndl-side #side .kx-home{display:none!important}
#ndl-side #side .nav{padding:0!important;display:flex!important;flex-direction:column;gap:1px;margin:0!important;background:transparent!important}
#ndl-side #side .nav a{display:flex!important;align-items:center;gap:8px;min-height:32px;margin:0!important;padding:6px 10px 6px 44px!important;border-radius:8px!important;
  font:500 13.5px/1.3 var(--ndl-font-text)!important;color:#AEBCC2!important;background:transparent!important;box-shadow:none!important;position:relative}
#ndl-side #side .nav a svg{display:none!important}
#ndl-side #side .nav a::before{display:none!important}
#ndl-side #side .nav a:hover{background:var(--ndl-side-hover)!important;color:#fff!important}
#ndl-side #side .nav a.on{background:rgba(1,139,206,.14)!important;color:#fff!important;font-weight:600!important;box-shadow:inset 2px 0 0 #5BC0EE!important}
#ndl-side #side .nav .ct{margin-left:auto!important;background:rgba(91,192,238,.18)!important;color:#A8DDF5!important;font:600 11px/18px var(--ndl-font-text)!important;border-radius:9px!important;padding:0 7px!important}
#ndl-side #side .nav .sep{height:1px!important;background:var(--ndl-side-line)!important;margin:8px 10px 8px 44px!important}
#ndl-side #side .nav .nxacc-h,#ndl-side #side .nav h4,#ndl-side #side .nav .lbl{margin:10px 0 4px 44px!important;font:600 11px/16px var(--ndl-font-text)!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#6F838B!important}

/* module page layout when the shell is on */
body.ndl-on.nx-bd .app,body.ndl-on .app{grid-template-columns:minmax(0,1fr)!important}
body.ndl-on.authed main#app{margin-left:0!important}
body.ndl-on.authed .sample,body.ndl-on.authed #polBanner{margin-left:0!important}
body.ndl-on .top .kx-brand,body.ndl-on .top .kx-home{display:none!important}
/* module top bars: no left gap from the old module sidebar, and no name or Sign out there (both are in the sidebar footer) */
body.ndl-on.authed #top,body.ndl-on.authed .main > header.top{margin-left:0!important}
body.ndl-on #top .who,body.ndl-on .top .nx-who,body.ndl-on .top .nx-out{display:none!important}
/* the module title bar is removed: the sidebar shows the module and the person, and the page tabs sit at the top */
body.ndl-on.authed #top,body.ndl-on .main > header.top{display:none!important}
body.ndl-on #ndl-tabs{top:0!important}
/* Time & Billing dark mode: Time sets its colors on body, so the dark values go on body too */
html[data-ndl-theme="dark"] body.nx-time.nx-time{--blue:#2EA3DD;--blue-ink:#52B8E8;--blue-wash:#0C2836;--ink:#E3EBEE;--ink-2:#A9B7BD;--ink-3:#7D8D93;--paper:#091013;--card:#10181C;--line:#22313A;--line-2:#1A262C;--row:#131D22;
  --ok:#4CC38A;--ok-wash:#10291E;--warn:#F2B451;--warn-wash:#2B2110;--bad:#F08377;--bad-wash:#2E1513;background:var(--paper)}
html[data-ndl-theme="dark"] body.ndl-on #top{background:var(--card)!important;border-bottom-color:var(--line)!important}
html[data-ndl-theme="dark"] body.ndl-on #top .crumb b{color:var(--ink)!important}

/* footer */
.ndl-foot{display:flex;align-items:center;gap:10px;padding:14px 6px 2px;border-top:1px solid var(--ndl-side-line);position:relative}
.ndl-av{width:32px;height:32px;flex:none;border-radius:50%;background:#0B2A3A center/cover no-repeat;color:#fff;display:flex;align-items:center;justify-content:center;
  font:600 12px var(--ndl-font-text);box-shadow:inset 0 0 0 1px rgba(91,192,238,.35);overflow:hidden}
.ndl-av img{width:100%;height:100%;object-fit:cover;display:block}
.ndl-who{display:flex;flex-direction:column;min-width:0;flex:1}
.ndl-who b{font:600 14px/1.25 var(--ndl-font-text);color:var(--ndl-name);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ndl-who small{font-size:12px;color:var(--ndl-side-label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.ndl-ib{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:8px;border:0;background:transparent;color:var(--ndl-side-label);cursor:pointer;
  transition:background-color var(--ndl-hover) ease,color var(--ndl-hover) ease}
.ndl-ib:hover{background:var(--ndl-side-hover);color:#fff}
.ndl-ib svg{width:16px;height:16px}
.ndl-menu{position:absolute;left:6px;right:6px;bottom:52px;background:#0F1F27;border:1px solid #22343D;border-radius:12px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:2}
.ndl-menu[hidden]{display:none}
.ndl-menu button,.ndl-menu a{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#DCE6EA;font:500 13.5px var(--ndl-font-text);cursor:pointer;text-align:left}
.ndl-menu button:hover,.ndl-menu a:hover{background:rgba(255,255,255,.07);color:#fff}
.ndl-menu svg{width:16px;height:16px;color:#8DA1A9}
.ndl-menu hr{border:0;border-top:1px solid #22343D;margin:4px 2px}

/* rail (collapsed) */
body.ndl-rail #ndl-side .ndl-wm,body.ndl-rail #ndl-side .lbl,body.ndl-rail #ndl-side .cnt,body.ndl-rail #ndl-side .chev,
body.ndl-rail #ndl-side .ndl-label,body.ndl-rail #ndl-side #ndl-sub,body.ndl-rail #ndl-side .ndl-who{display:none!important}
body.ndl-rail #ndl-side .ndl-sep{display:block}
body.ndl-rail #ndl-side .ndl-nav{justify-content:center;padding:0}
body.ndl-rail #ndl-side .ndl-brand{justify-content:center;padding:2px 0 22px}
body.ndl-rail #ndl-side .ndl-foot{flex-direction:column;padding:12px 0 2px}
body.ndl-rail .ndl-nav.att-dot::after{content:"";position:absolute;top:9px;right:16px;width:7px;height:7px;border-radius:50%;background:#5BC0EE}

/* phone: bottom bar + module sheet; the sidebar becomes a drawer */
#ndl-bar,#ndl-sheet,#ndl-scrim{display:none}
@media (max-width:960px){
  body.ndl-on,body.ndl-on.ndl-rail{padding-left:0!important;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}
  #ndl-side,body.ndl-rail #ndl-side{width:min(86vw,320px);transform:translateX(-102%);z-index:70;box-shadow:none}
  body.ndl-drawer #ndl-side,body.nav-open #ndl-side{transform:none;box-shadow:0 0 40px rgba(0,0,0,.4)}
  body.ndl-rail #ndl-side .ndl-wm,body.ndl-rail #ndl-side .lbl,body.ndl-rail #ndl-side .cnt,body.ndl-rail #ndl-side .chev,body.ndl-rail #ndl-side .ndl-label,body.ndl-rail #ndl-side #ndl-sub,body.ndl-rail #ndl-side .ndl-who{display:revert!important}
  body.ndl-rail #ndl-side .ndl-sep{display:none}
  body.ndl-rail #ndl-side .ndl-nav{justify-content:flex-start;padding:0 12px}
  .ndl-rail-btn{display:none!important}
  #ndl-scrim{display:block;position:fixed;inset:0;z-index:69;background:rgba(1,18,8,.42);opacity:0;pointer-events:none;transition:opacity var(--ndl-side-dur) ease}
  body.ndl-drawer #ndl-scrim,body.nav-open #ndl-scrim{opacity:1;pointer-events:auto}
  body.ndl-on .navscrim{display:none!important}
  #ndl-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);
    border-top:1px solid #E4E7EC;padding:4px 8px calc(6px + env(safe-area-inset-bottom,0px))}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-bar{background:rgba(20,26,30,.94);border-top-color:#283038}
  #ndl-bar a,#ndl-bar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border:0;background:transparent;
    font:500 11px var(--ndl-font-text);color:#5B6474;cursor:pointer;position:relative;text-decoration:none}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-bar a,html[data-ndl-theme="dark"] body.ndl-home #ndl-bar button{color:#A6B0BB}
  #ndl-bar .on{color:#0178B4;font-weight:600}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-bar .on{color:#6CC4EE}
  #ndl-bar svg{width:22px;height:22px}
  #ndl-bar .bdg{position:absolute;top:4px;left:54%;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#0178B4;color:#fff;font:700 10px/16px var(--ndl-font-text);text-align:center}
  body.ndl-on.authed .bbar,body.ndl-on.authed .sheet.open{display:none!important}
  body.ndl-on.authed main#app{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  #ndl-sheet{display:block;position:fixed;inset:0;z-index:80;background:rgba(1,18,8,.42);opacity:0;pointer-events:none;transition:opacity var(--ndl-modal-dur) ease}
  #ndl-sheet.open{opacity:1;pointer-events:auto}
  #ndl-sheet .pane{position:absolute;left:0;right:0;bottom:0;background:#fff;color:#14171A;border-radius:24px 24px 0 0;padding:8px 12px calc(24px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -12px 40px rgba(0,0,0,.18);transform:translateY(16px);transition:transform var(--ndl-modal-dur) var(--ndl-ease);font-family:var(--ndl-font-text);max-height:86vh;overflow:auto}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-sheet .pane{background:#171C20;color:#ECEFF2}
  #ndl-sheet.open .pane{transform:none}
  #ndl-sheet .grip{width:36px;height:5px;border-radius:3px;background:#E4E7EC;margin:4px auto 10px}
  #ndl-sheet .hd{display:flex;align-items:center;justify-content:space-between;padding:0 2px 6px 14px}
  #ndl-sheet h2{margin:0;font:600 18px var(--ndl-font-display);letter-spacing:-.015em}
  #ndl-sheet .note{font-size:12.5px;color:#5B6474;margin-top:2px}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-sheet .note{color:#A6B0BB}
  #ndl-sheet .done{min-height:44px;padding:0 12px;border:0;background:transparent;color:#00699C;font:600 15px var(--ndl-font-text);cursor:pointer}
  #ndl-sheet .row{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 14px;border-radius:14px;color:inherit;font-size:16px;font-weight:500;text-decoration:none;border:0;background:transparent;width:100%;text-align:left;cursor:pointer}
  #ndl-sheet .row:active{background:rgba(127,127,127,.12)}
  #ndl-sheet .row .ic{width:34px;height:34px;flex:none;border-radius:10px;background:#F2F4F7;color:#5B6474;display:flex;align-items:center;justify-content:center}
  html[data-ndl-theme="dark"] body.ndl-home #ndl-sheet .row .ic{background:#1E2429;color:#A6B0BB}
  #ndl-sheet .row.on{font-weight:600}
  #ndl-sheet .row.on .ic{background:#E8F4FB;color:#0178B4}
  #ndl-sheet .row svg{width:20px;height:20px}
}
@media print{#ndl-side,#ndl-bar,#ndl-sheet,#ndl-scrim{display:none!important}body.ndl-on{padding-left:0!important}}
@media (prefers-reduced-motion:reduce){#ndl-side,body.ndl-on,#ndl-sheet,#ndl-sheet .pane,#ndl-scrim{transition:none!important}}

/* ---- Speed layer (Oct 2026): skeleton loading screen, page transitions ---- */
/* Loading screen: a quiet outline of the page (sidebar, header, cards) instead of the globe; it fades into the real page. */
html body #boot,html body #boot.nx-boot{position:fixed!important;inset:0!important;z-index:2147483000!important;display:block!important;margin:0!important;padding:0!important;
  background:var(--ndl-bg,#F6F7F9)!important;min-height:0!important;animation:none!important}
html body #loading{position:fixed;inset:0;z-index:2147483000;display:block;margin:0;padding:0;min-height:0;background:var(--ndl-bg,#F6F7F9)}
html body #loading.hidden{display:none!important}
#boot canvas,#boot .nx-boot-sph,#loading canvas,#loading .ld-t{display:none!important}
#boot .bootcard{position:absolute!important;left:50%;top:50%;transform:translate(-50%,-50%);margin:0!important;opacity:0;pointer-events:none;transition:opacity .2s ease;
  max-width:min(460px,calc(100vw - 32px));background:var(--ndl-surface,#fff)!important;color:var(--ndl-text,#14171A)!important;border:1px solid var(--ndl-border,#E4E7EC)!important;
  border-radius:16px!important;box-shadow:0 2px 6px rgba(16,24,40,.05),0 12px 28px rgba(16,24,40,.08)!important;padding:24px 28px!important;z-index:2}
#boot.nx-msg .bootcard{opacity:1;pointer-events:auto}
@media (min-width:961px){#boot .bootcard{left:calc(50% + var(--ndl-side-w,264px)/2);min-width:340px}}
.nx-sk{position:absolute;inset:0;display:flex;overflow:hidden;transition:opacity .2s ease}
html:not(.nx-authed) #loading .nx-sk{display:none}
.nx-sk i{display:block}
.nx-sk-side{flex:none;width:var(--ndl-side-w,264px);background:var(--ndl-side,#011208);padding:22px 16px;display:flex;flex-direction:column;gap:16px}
.nx-sk-side i{height:12px;width:64%;border-radius:6px;background:rgba(255,255,255,.07)}
.nx-sk-side i:nth-child(3n){width:52%}
.nx-sk-side i.b{height:36px;width:78%;border-radius:10px;margin:0 0 18px;background:rgba(255,255,255,.10)}
.nx-sk-main{flex:1;min-width:0;display:flex;flex-direction:column}
.nx-sk-top{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--ndl-border,#E4E7EC);background:var(--ndl-surface,#fff)}
.nx-sk-body{padding:32px;display:flex;flex-direction:column;gap:14px;width:100%;max-width:1280px;box-sizing:border-box}
.nx-sk-main i{border-radius:8px;background:linear-gradient(90deg,var(--ndl-surface-3,#EBEEF2) 0%,var(--ndl-surface-2,#F2F4F7) 45%,var(--ndl-surface-3,#EBEEF2) 90%);
  background-size:300% 100%;animation:nxSk 1.5s ease-in-out infinite}
.nx-sk-top i{width:200px;height:14px}.nx-sk-top i.r{width:132px;height:32px;border-radius:16px}
.nx-sk-body i.t{width:300px;max-width:70%;height:28px}.nx-sk-body i.s{width:440px;max-width:85%;height:14px;margin-bottom:12px}
.nx-sk-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nx-sk-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:2px}
.nx-sk-row i,.nx-sk-grid i{border-radius:16px;background:var(--ndl-surface,#fff);border:1px solid var(--ndl-border,#E4E7EC);animation:none}
.nx-sk-row i{height:104px}.nx-sk-grid i{height:340px}
@keyframes nxSk{0%{background-position:100% 0}100%{background-position:0 0}}
@media (max-width:960px){.nx-sk-side{display:none}.nx-sk-top,.nx-sk-body{padding-left:16px;padding-right:16px}.nx-sk-row{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-sk-grid{grid-template-columns:1fr}}
body.ndl-rail .nx-sk-side,html.nx-rail .nx-sk-side{width:var(--ndl-rail-w,76px)}

/* Page transitions: pages cross-fade with a slight rise; the sidebar stays put (Chrome, Edge, Safari 18.2+). */
@view-transition{navigation:auto}
#ndl-side{view-transition-name:ndl-side}
::view-transition-group(ndl-side){animation:none}
::view-transition-old(root){animation:nxOut .14s ease-out both}
::view-transition-new(root){animation:nxIn .26s cubic-bezier(.2,.8,.2,1) both}
@keyframes nxOut{to{opacity:0}}
@keyframes nxIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#hubView:not(.hidden),#signinView:not(.hidden){animation:nxIn .26s cubic-bezier(.2,.8,.2,1) backwards}
@media (prefers-reduced-motion:reduce){.nx-sk-main i{animation:none}::view-transition-old(root),::view-transition-new(root){animation:none}#hubView:not(.hidden),#signinView:not(.hidden){animation:none}}
