/* An inset, quiet navigation surface shared by CRM and administration. */
@media (min-width: 1024px) {
  .schoolbook-sidebar {
    --sidebar-menu-background: #fff;
    inset: 10px auto 10px 10px;
    width: 262px;
    padding: 22px 12px 16px;
    border: 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: none;
  }
  .schoolbook-sidebar:has(.admin-style-menu) { --sidebar-menu-background: #fff; }
  .schoolbook-sidebar > div:first-of-type { padding: 0 10px 8px; gap: 10px; }
  .schoolbook-sidebar > div:first-of-type > div:first-child { width: 158px; height: 42px; }
  .schoolbook-sidebar > nav { margin-top: 26px; padding-right: 0; scrollbar-width: none; }
  .schoolbook-sidebar nav > div > a,
  .schoolbook-sidebar .admin-style-menu nav a {
    min-height: 42px;
    height: 42px;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 12px;
    border-radius: 22px;
    color: #353535;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
    transition: background-color 150ms ease, color 150ms ease;
  }
  .schoolbook-sidebar nav svg { color: #353535; width: 17px; height: 17px; }
  .schoolbook-sidebar nav a:hover { background: #f6f6f6; }
  .schoolbook-sidebar nav a[aria-current="page"] {
    color: #202020;
    background: #f1f1f1;
    font-weight: 500;
    box-shadow: none;
  }
  .schoolbook-sidebar nav a[aria-current="page"] svg { color: #202020; }
  .schoolbook-sidebar > div:last-child { border-top: 0; padding-top: 14px; }
  .schoolbook-sidebar > div:last-child > button { box-shadow: none; border-radius: 20px; }
  .schoolbook-sidebar > div:last-child > button:hover { background: #f5f5f5; }
  .schoolbook-sidebar > div:last-child > button > span:first-child { border-radius: 50%; }
  .schoolbook-sidebar > div:last-child > div:last-child button { color: #787878; border-radius: 20px; }
  .schoolbook-sidebar > div:last-child > div:last-child button:hover { background: #f5f5f5; color: #242424; }
  .schoolbook-sidebar .sidebar-collapse-toggle {
    top: 51%; right: -12px; width: 24px; height: 52px;
    border: 0; border-radius: 0 18px 18px 0;
    background: #fff; color: #929292; box-shadow: none;
  }
  .schoolbook-sidebar .sidebar-collapse-toggle:hover { color: #353535; background: #f5f5f5; }
  .schoolbook-sidebar .admin-style-menu > div { border-radius: 18px; background: #f6f6f6; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
  .schoolbook-sidebar .admin-style-menu > button { color: #626262; font-weight: 400; border-radius: 22px; }
  .schoolbook-sidebar .admin-style-menu input { border: 0; border-radius: 22px; background: #f3f3f3; }
  .schoolbook-sidebar .sidebar-admin-group > button { color: #777; }
  .schoolbook-sidebar a:focus-visible,
  .schoolbook-sidebar button:focus-visible { outline: 2px solid #487fff; outline-offset: 2px; }
  html[data-sidebar-collapsed="true"] .schoolbook-sidebar { width: 66px !important; padding-top: 22px; border-radius: 26px; }
  html[data-sidebar-collapsed="true"] .schoolbook-sidebar nav > div > a { border-radius: 50%; }
  html[data-sidebar-collapsed="true"] .schoolbook-sidebar .sidebar-admin-group > div { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .schoolbook-sidebar nav a { transition: none; }
}
