/* Distinct states for closed groups, open groups and the selected page. */
@media screen {
  html body.dashboard-page .app-container .sidebar .sidebar-menu {
    padding:10px 8px;
    gap:3px;
    scrollbar-gutter:stable;
    overflow-anchor:none;
    scroll-behavior:auto;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-menu>* {
    flex-shrink:0;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle) {
    height:34px;
    flex-shrink:0;
    font-size:.875rem;
    font-weight:700;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-submenu-panel {
    margin:0 0 0 8px;
    padding:0;
    overflow:hidden;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-submenu-panel[hidden] {
    display:none!important;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-submenu-list {
    display:flex;
    flex-direction:column;
    gap:3px;
    list-style:none;
    margin:0;
    padding:0;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-submenu-panel,.dashboard-submenu) .sidebar-item>a {
    font-size:.8125rem;
    font-weight:500;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-section-label {
    margin:7px 0 2px;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle),
  html body.dashboard-page .app-container .sidebar .sidebar-item>a {
    min-height:34px;
    padding:6px 9px;
    gap:8px;
    border-radius:6px;
    line-height:1.35;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>span {
    line-height:1.35;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>svg:last-child {
    transition:transform .5s cubic-bezier(.4,1,.2,1);
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item {
    margin-block:0;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item>a svg,
  html body.dashboard-page .app-container .sidebar .dashboard-menu-toggle>svg {
    width:16px;
    height:16px;
  }
  html body.dashboard-page .app-container .sidebar .dashboard-submenu {
    padding:4px 0 0px 8px;
    margin:3px 0 0 7px;
    gap:2px;
  }
  html body.dashboard-page .app-container .sidebar .reports-submenu {
    gap:2px;
  }
  html body.dashboard-page .app-container .sidebar .reports-submenu .sidebar-subitem>a {
    padding:6px 9px 6px 16px!important;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-menu>.sidebar-group-child {
    margin-left:8px;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-child,.sidebar-subitem):not(.active)>a:not([aria-current="page"]) {
    background:#d5e6ed;
    border-color:#b7d3df;
    color:#163b49;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-child,.sidebar-subitem):not(.active)>a:not([aria-current="page"]) svg {
    color:#286279;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-child,.sidebar-subitem):not(.active)>a:not([aria-current="page"]):hover {
    background:#edf7fb;
    border-color:#d0f0fa;
    color:#083a43;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)[aria-expanded="true"] {
    background:#176478;
    border-color:#499aab;
    color:#fff;
    box-shadow:inset 3px 0 #79e8d8;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item>a:hover {
    background:#1a5264;
    border-color:#4b8190;
    color:#fff;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item.active>a,
  html body.dashboard-page .app-container .sidebar .sidebar-item>a[aria-current="page"] {
    background:#a8efdf;
    border-color:#c5fff2;
    color:#083a43;
    font-weight:700;
    box-shadow:inset 4px 0 #17a48c,0 3px 10px #001a2926;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item.active>a svg,
  html body.dashboard-page .app-container .sidebar .sidebar-item>a[aria-current="page"] svg {
    color:#083a43;
  }
  html body.dashboard-page .app-container .sidebar .sidebar-item>a:focus-visible,
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle):focus-visible {
    outline:2px solid #9df2e3;
    outline-offset:2px;
  }
}
@media screen and (prefers-reduced-motion:reduce) {
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>svg:last-child {
    transition:none;
  }
}
@media screen and (pointer:coarse) {
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle) {
    height:40px;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle),
  html body.dashboard-page .app-container .sidebar .sidebar-item>a {
    min-height:40px;
  }
}

/* Desktop icons-only rail; phones retain the full labelled navigation drawer. */
@media screen {
  html body.dashboard-page .app-container .sidebar .sidebar-group-icon {
    display:inline-flex;
    width:16px;
    height:16px;
    flex-shrink:0;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>span {
    flex:1;
    min-width:0;
    text-align:left;
  }
  html body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>svg:last-child {
    margin-left:auto;
    flex-shrink:0;
  }
  html body.dashboard-page .app-container .main-header .sidebar-compact-toggle {
    display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:8px;
    border:1px solid var(--ui-line,#c6dce5);border-radius:7px;
    background:var(--ui-surface,#fff);color:var(--ui-brand,#007594);cursor:pointer;
  }
  .sidebar-compact-toggle .sidebar-expand-icon {display:none}
  html[data-sidebar-mode="icons"] .sidebar-compact-toggle .sidebar-collapse-icon {display:none}
  html[data-sidebar-mode="icons"] .sidebar-compact-toggle .sidebar-expand-icon {display:block}
}
@media screen and (min-width:901px) {
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar {width:76px}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .main-wrapper {margin-left:76px;margin-right:0}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-brand {
    min-height:78px;padding:12px 4px;gap:0;justify-content:center;
  }
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .campus-brand-wordmark {display:none}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .campus-brand-symbol {
    flex-basis:38px;width:38px;height:44px;background-size:238px 79px;background-position:-12px -17px;
  }
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-menu {padding:8px 4px;gap:3px}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-section-label {margin:7px 0 2px}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar :is(.sidebar-submenu-panel,.dashboard-submenu) {
    margin:0;padding:0;border:0;
  }
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle),
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-item>a {
    display:flex;align-items:center;justify-content:center;width:100%;height:38px;min-height:38px;
    padding:8px!important;gap:0;font-size:0;line-height:0;
  }
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>span,
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar :is(.sidebar-group-toggle,.dashboard-menu-toggle)>svg:last-child,
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-item>a>span {display:none}
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-group-toggle>.sidebar-group-icon {
    display:block;transform:none;width:19px;height:19px;flex-shrink:0;
  }
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .sidebar-item>a svg,
  html[data-sidebar-mode="icons"] body.dashboard-page .app-container .sidebar .dashboard-menu-toggle>svg:first-child {width:19px;height:19px}
}
@media screen and (max-width:900px) {
  html body.dashboard-page .app-container .main-header #sidebar-compact-toggle {display:none}
}
