/* Grouped admin menu (lib/nav.php): collapsible groups in the sidebar, Menu sheet on phones. */
.sidebar nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;margin-right:-6px;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:6px}
.nav-group{display:grid;gap:3px}
.nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;margin:10px 0 2px;padding:7px 12px;border:0;border-radius:8px;background:none;color:#7891b0;font-family:inherit;font-size:10px;font-weight:800;line-height:1;letter-spacing:.13em;text-transform:uppercase;cursor:pointer}
.nav-group-toggle:hover{color:#dce8f7;background:rgba(255,255,255,.04)}
.nav-group-toggle:focus-visible{outline:2px solid rgba(56,182,240,.6);outline-offset:1px}
.nav-group-toggle i{width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.nav-group.is-collapsed .nav-group-toggle i{transform:rotate(-45deg)}
.nav-group-items{display:grid;gap:3px}
.nav-group.is-collapsed .nav-group-items{display:none}
.nav-group.is-collapsed.has-active .nav-group-toggle{color:#bfe6fb}
.sidebar-bottom{display:grid;gap:3px}
@media(max-width:900px){
  .nav-group-toggle{pointer-events:none;height:0;padding:0;margin:8px 10px 6px;border-top:1px solid rgba(255,255,255,.1);border-radius:0}
  .nav-group-toggle span,.nav-group-toggle i{display:none}
  .nav-group.is-collapsed .nav-group-items{display:grid}
}
/* Phones: Menu button + the current group's pages; the sheet lists every group. */
.mobile-nav-scroll .mobile-nav-menu{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 12px;border:0;border-radius:9px;background:#0b2348;color:#fff;font-family:inherit;font-size:11px;font-weight:750;line-height:1;cursor:pointer}
.mobile-nav-menu::before{content:"";width:13px;height:2px;background:currentColor;border-radius:2px;box-shadow:0 -4px 0 currentColor,0 4px 0 currentColor}
.mobile-menu-sheet{position:fixed;inset:0;z-index:13000}
.mobile-menu-sheet[hidden]{display:none}
.mm-backdrop{position:absolute;inset:0;background:rgba(4,18,36,.55);backdrop-filter:blur(3px)}
.mm-panel{position:absolute;left:0;right:0;bottom:0;max-height:86vh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:6px 16px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -18px 50px rgba(5,29,55,.25)}
.mm-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 0 8px;background:#fff;z-index:1}
.mm-head b{font-size:16px}
.mm-head button{width:34px;height:34px;border:0;border-radius:10px;background:#eef4f9;color:#214260;font-size:20px;cursor:pointer}
.mm-group{padding:10px 0;border-top:1px solid #eef2f6}
.mm-group:first-of-type{border-top:0}
.mm-group>b{display:block;margin:0 0 8px;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#7b8da3}
.mm-group>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mm-group a{display:flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #dce7f0;border-radius:10px;background:#fff;color:#2a4560;font-size:13px;font-weight:700}
.mm-group a.active{background:#087fca;border-color:#087fca;color:#fff}
.mm-group a.mobile-nav-signout{color:#b53242;border-color:#ffd5da;background:#fff6f7}
.mm-group .nav-badge{margin-left:auto}
