/* Retractable navigation; clinical content stays mounted when toggled. */
body{--sidebar-width:216px}
.sidebar-toggle{display:none}
@media(min-width:761px){
  .sidebar{width:var(--sidebar-width);transition:width .18s ease,padding .18s ease}
  .shell{margin-left:var(--sidebar-width);transition:margin-left .18s ease}
  .sidebar-header{display:flex;align-items:center;gap:8px;height:44px;flex-shrink:0;margin-bottom:39px}
  .sidebar .sidebar-header .brand{display:flex;align-items:center;flex:1;min-width:0;height:37px;margin:0;padding:0}
  .sidebar-header .brand img{width:120px;max-width:100%;height:auto;max-height:32px}
  [data-theme=dark] .sidebar .sidebar-header .brand{padding:5px}
  .sidebar .nav-item{white-space:nowrap}
  .sidebar-toggle{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;background:transparent;color:var(--muted);border:0;border-radius:7px;box-shadow:none;transition:background .15s ease,color .15s ease}
  .sidebar-toggle:hover{background:var(--bg);color:var(--ink)}
  .sidebar-toggle .ico{width:24px;height:24px;stroke-width:1.65}
  body[data-sidebar=collapsed]{--sidebar-width:72px}
  body[data-sidebar=collapsed] .sidebar{padding-left:12px;padding-right:12px}
  body[data-sidebar=collapsed] .sidebar-header{justify-content:center}
  body[data-sidebar=collapsed] .sidebar .brand{display:none}
  body[data-sidebar=collapsed] .sidebar .nav-label,
  body[data-sidebar=collapsed] .sidebar .vendor{display:none}
  body[data-sidebar=collapsed] .sidebar .nav-item{justify-content:center;gap:0;padding:12px 0;min-height:44px;width:100%}
  body[data-sidebar=collapsed] #toast{left:calc(50% + 36px)}
}
@media(min-width:761px) and (max-width:1200px){body:not([data-sidebar=collapsed]){--sidebar-width:190px}}
@media(prefers-reduced-motion:reduce){.sidebar,.shell,.sidebar-toggle,.sidebar-toggle .ico{transition:none}}
