/* SchoolLAI | Secondary1 | Living Sidebar V22
   Semantic, accessible, scoped to the actual authenticated school shell.
   Never styles body content or other schools. */
html body main.nd-panel-shell aside.nd-sidebar-layout.nd-v5-sidebar {
  --live-ink:#203650;
  --live-muted:#667d97;
  --nd-text:#203650;
  --nd-muted:#667d97;
  --nd-border:#d8e5ef;
  --nd-surface-soft:#f1f7fc;
  --nd-accent:#1673c7;
  color:var(--live-ink)!important;
  border:1px solid #d2e5f0!important;
  background:
    radial-gradient(ellipse at 95% 0%,rgba(120,228,214,.21),transparent 30%),
    radial-gradient(ellipse at 3% 80%,rgba(140,166,248,.13),transparent 26%),
    linear-gradient(158deg,#fcffff 0%,#f4f9ff 52%,#f7f9ff 100%)!important;
  box-shadow:0 18px 48px rgba(29,70,111,.12),inset 0 1px rgba(255,255,255,.9)!important;
  backdrop-filter:blur(16px)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout.nd-v5-sidebar::before{
  background:linear-gradient(180deg,#12b8a0 0%,#4c86ed 40%,#ad71f1 75%,transparent)!important;
  width:3px!important;opacity:.85!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout .nd-v5-brandmark{
  background:linear-gradient(135deg,#128bdb,#6554d9)!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(35,111,202,.22)!important;
  border:1px solid rgba(255,255,255,.55)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout .nd-school-name{
  color:#19345a!important;
  font-size:15px!important;
  font-weight:900!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout .nd-v5-brand-sub{
  color:#607c9e!important;font-size:10px!important;line-height:1.75!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu{
  scrollbar-width:thin;scrollbar-color:#b8d3e4 transparent;
  scroll-padding-block:16px;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group {
  --v22-tone:#2e85cd;--v22-soft:#eaf5ff;--v22-border:#cfe5f8;
  --v22-head:#eff7ff;--v22-surface:#f9fcff;
  border:1px solid var(--v22-border)!important;
  border-radius:16px!important;
  background:linear-gradient(120deg,var(--v22-surface),#fff)!important;
  box-shadow:0 3px 9px rgba(33,80,117,.035),inset 0 1px rgba(255,255,255,.8)!important;
  padding:7px!important;margin-block:2px!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="مدرسه"],
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="مدرسه و دانش‌آموزان"]{
  --v22-tone:#079c88;--v22-soft:#dff9f0;--v22-border:#c8ede1;
  --v22-head:#e9fbf5;--v22-surface:#f7fffc;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="مدیریتی"]{
  --v22-tone:#2c78d9;--v22-soft:#e6efff;--v22-border:#d1e2fa;
  --v22-head:#edf5ff;--v22-surface:#f8fbff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="آموزشی"]{
  --v22-tone:#7851dc;--v22-soft:#eee7ff;--v22-border:#e2d5fa;
  --v22-head:#f4eeff;--v22-surface:#fcf9ff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="مالی"]{
  --v22-tone:#ba791a;--v22-soft:#fff2d6;--v22-border:#f3e1bd;
  --v22-head:#fff7e8;--v22-surface:#fffdf8;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="ارتباطات"]{
  --v22-tone:#df617b;--v22-soft:#ffe6ed;--v22-border:#f8d3de;
  --v22-head:#fff1f5;--v22-surface:#fff9fb;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="مدیریت فنی"]{
  --v22-tone:#3177ca;--v22-soft:#e3edff;--v22-border:#ccdef7;
  --v22-head:#eff5ff;--v22-surface:#f8fbff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-group="تنظیمات"]{
  --v22-tone:#68798a;--v22-soft:#e9eef5;--v22-border:#d7e0eb;
  --v22-head:#f1f5fa;--v22-surface:#fafcff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-compact="1"][data-open="1"]{
  border-color:var(--v22-border)!important;
  background:linear-gradient(120deg,var(--v22-surface),#fff)!important;
  box-shadow:0 5px 17px rgba(37,95,135,.07)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>.nd-group-title {
  color:var(--v22-tone)!important;
  background:linear-gradient(110deg,var(--v22-head),rgba(255,255,255,.88))!important;
  border:1px solid var(--v22-border)!important;
  border-inline-start:3px solid var(--v22-tone)!important;
  border-radius:12px!important;
  padding:10px 11px!important;
  font-size:12px!important;font-weight:850!important;
  min-height:43px!important;
  line-height:1.6!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>.nd-group-title::before{
  color:var(--v22-tone)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>.nd-group-title::after{
  color:#7189a4!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item{
  --item-tint:var(--v22-tone);--item-soft:var(--v22-soft);--item-shadow:rgba(27,104,173,.11);
  min-height:47px!important;
  padding:8px 10px!important;
  margin:4px 0!important;
  border:1px solid #e5eef6!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.85)!important;
  color:#283d5a!important;
  box-shadow:0 2px 8px rgba(21,64,105,.035)!important;
  text-decoration:none!important;
  outline-offset:2px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item .nd-v70-menu-label{
  color:#253b59!important;font-size:12px!important;line-height:1.75!important;
  font-weight:740!important;letter-spacing:-.1px!important;
  overflow-wrap:anywhere;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item .nd-v70-menu-icon{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  border:1px solid color-mix(in srgb,var(--item-tint) 24%,transparent)!important;
  border-radius:12px!important;
  color:var(--item-tint)!important;
  background:linear-gradient(146deg,var(--item-soft),#fff)!important;
  box-shadow:0 4px 12px color-mix(in srgb,var(--item-tint) 13%,transparent),inset 0 1px 0 #fff!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item .nd-v70-menu-icon svg{
  width:20px!important;height:20px!important;stroke-width:2.35px!important;
  color:var(--item-tint)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item:hover{
  background:color-mix(in srgb,var(--item-soft) 34%,white)!important;
  border-color:color-mix(in srgb,var(--item-tint) 32%,white)!important;
  box-shadow:0 6px 16px var(--item-shadow)!important;
  transform:translateX(-2px);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item:hover .nd-v70-menu-icon{
  transform:translateY(-2px) scale(1.045);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item.active,
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[aria-current="page"]{
  background:linear-gradient(112deg,var(--item-soft),#fff)!important;
  border-color:color-mix(in srgb,var(--item-tint) 34%,white)!important;
  box-shadow:inset -3px 0 0 var(--item-tint),0 8px 20px var(--item-shadow)!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item.active .nd-v70-menu-label,
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[aria-current="page"] .nd-v70-menu-label{
  color:#1c3150!important;font-weight:900!important;
}
/* SEMANTIC route palette: the same destination retains the same identity. */
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/student-management"]{
  --item-tint:#008e78;--item-soft:#dafaf0;--item-shadow:rgba(0,145,118,.14);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/school/platform"]{
  --item-tint:#7853d6;--item-soft:#ede4ff;--item-shadow:rgba(119,82,217,.14);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/school/services"]{
  --item-tint:#e67b30;--item-soft:#fff0dc;--item-shadow:rgba(227,124,45,.15);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/student-registry"]{
  --item-tint:#2479d9;--item-soft:#e2f1ff;--item-shadow:rgba(33,113,215,.14);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/teachers"]{
  --item-tint:#9454c6;--item-soft:#f3e7ff;--item-shadow:rgba(143,80,197,.12);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/school/education"]{
  --item-tint:#2366cf;--item-soft:#e7efff;--item-shadow:rgba(35,102,207,.13);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/school/admissions"]{
  --item-tint:#0aa4a4;--item-soft:#e0fafa;--item-shadow:rgba(3,158,164,.11);
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/school-store"]{
  --item-tint:#d38616;--item-soft:#fff3d9;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/sms-gateway"]{
  --item-tint:#0b8ebf;--item-soft:#dcf5ff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/app-builder"]{
  --item-tint:#5668cf;--item-soft:#e8eaff;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[href^="/settings"]{
  --item-tint:#596c83;--item-soft:#e9edf4;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu a.nd-shell-menu-item:focus-visible,
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>.nd-group-title:focus-visible{
  outline:3px solid #3a91de!important;outline-offset:2px!important;
}
/* Compact-menu plugin creates its own extra nodes; still preserve colors. */
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-compact="1"]{
  padding:7px!important;gap:5px!important;
}
/* Financial special links retain their actions while adopting semantic colors. */
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-school-finance-split="1"]>a.nd-shell-menu-item{
  --item-tint:#b57c20;--item-soft:#fff2d5;
}
/* Mobile drawer and collapsed desktop preserve target sizes. */
@media (max-width:1023px){
  html body main.nd-panel-shell aside.nd-sidebar-layout.nd-mobile-drawer{
    max-height:calc(100dvh - 24px)!important;
    width:min(91vw,360px)!important;
    overscroll-behavior:contain;
  }
  html body main.nd-panel-shell aside.nd-sidebar-layout .nd-sidebar-menu{
    touch-action:pan-y;
  }
  html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item{
    min-height:49px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item,
  html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu .nd-v70-menu-icon{transition:none!important;transform:none!important;}
}


/* SchoolLAI V24: deterministic VISUAL order while older builds transition to unified core.
   Never reorder React DOM nodes or mutate permissions/links. */
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu {
  display:grid!important;align-content:start!important;
}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group{order:79!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مدیریتی"],
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مدیریت"]{order:2!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مدرسه"],
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مدرسه و دانش‌آموزان"]{order:10!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مالی"]{order:20!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="آموزشی"]{order:30!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="ارتباطات"]{order:40!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="فرمان مدیریتی"]{order:43!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="خدمات مدرسه"]{order:50!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="مدیریت فنی"]{order:60!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="هوش مصنوعی"]{order:66!important}
html body main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu > .nd-menu-group[data-group="تنظیمات"]{order:99!important}
/* Settings remains available inside its accordion; remove the duplicate pinned shortcut. */
html body main.nd-panel-shell aside.nd-sidebar-layout > a.schoollai-fixed-settings-v1,
html body main.nd-panel-shell aside.nd-sidebar-layout > a.schoollai-rezvan-settings-dock-v1{
  display:none!important;
}
