/* Scoped navigation styling: forms, cards, bottom navigation and print stay intact. */
#fleetPageSidebar[hidden],#fleetPageSectionsButton[hidden]{display:none!important}
#fleetPageSidebar{display:none;direction:rtl;background:#102a46;color:#fff;border:1px solid #264b70;border-radius:18px;padding:18px 12px;box-shadow:0 10px 28px #102a461c}
#fleetPageSidebar h2,#fleetPageMenu h2{font-size:19px;line-height:1.5;margin:0 0 5px}
#fleetPageSidebar>p{font-size:12px;color:#c2d4e8;margin:0 0 16px;line-height:1.6}
#fleetPageSidebar nav,#fleetPageMenu nav{display:flex;flex-direction:column;gap:7px}
#fleetPageSidebar nav button,#fleetPageMenu nav button{display:flex;align-items:center;gap:10px;text-align:right;direction:rtl;width:100%;min-height:46px;padding:11px 10px;border:1px solid transparent;border-radius:11px;line-height:1.6;white-space:normal;font-size:14px;font-weight:700;background:transparent;color:inherit;cursor:pointer}
#fleetPageSidebar nav button>span:first-child,#fleetPageMenu nav button>span:first-child{flex:0 0 22px;text-align:center;font-size:18px}
#fleetPageSidebar small,#fleetPageMenu small{display:block;font-size:11px;font-weight:400;line-height:1.6;margin-top:2px;opacity:.85}
#fleetPageSidebar nav button[aria-current],#fleetPageMenu nav button[aria-current]{background:#e6f3ff;color:#0c365d;border-color:#a8d6ff;box-shadow:inset -4px 0 #2785c5}
#fleetPageSidebar nav button:hover{background:#254a6a;color:#fff}
#fleetPageSidebar nav button:focus-visible,#fleetPageMenu button:focus-visible,#fleetPageSectionsButton:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}
#fleetPageSectionsButton{display:block;position:sticky;top:8px;z-index:8;margin:0 0 14px auto;background:#102a46;color:#fff;border:1px solid #416a8f;box-shadow:0 4px 14px #102a4626;font-size:15px;min-height:44px;cursor:pointer}
#fleetPageMenu{direction:rtl;position:fixed;inset:0 0 0 auto;margin:0;width:min(330px,90vw);max-width:90vw;height:100%;height:100dvh;max-height:100%;max-height:100dvh;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border:0;border-left:1px solid #cad8e8;border-radius:18px 0 0 18px;background:#102a46;color:#fff;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
#fleetPageMenu::backdrop{background:#07152699}
#fleetPageMenu .fleet-page-menu-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:16px;margin-bottom:10px;border-bottom:1px solid #49617c}
#fleetPageMenu .fleet-page-menu-head button{flex:none;padding:8px;min-height:44px;background:#244767;color:#fff;font-size:14px;cursor:pointer}
.fleet-page-jump-target:focus{outline:2px solid #2585c5;outline-offset:3px}
@media(min-width:1280px){
  #fleetPageSidebar:not([hidden]){display:block;position:fixed;right:16px;top:160px;bottom:112px;width:222px;overflow:auto;overscroll-behavior:contain;z-index:8;scrollbar-color:#78a8ca #102a46;scrollbar-width:thin}
  main.fleet-page-sidebar-layout{width:calc(100% - 250px);margin-right:250px;margin-left:0;min-width:0}
  #fleetPageSectionsButton{display:none}
  main.fleet-page-sidebar-layout .dashboard-status-row{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,.85fr)}
  main.fleet-page-sidebar-layout .dashboard-status-row>.card{min-width:0}
  main.fleet-page-sidebar-layout .fleet-database-health{flex-wrap:wrap;gap:10px}
  main.fleet-page-sidebar-layout .fleet-database-health-main{gap:8px}
  main.fleet-page-sidebar-layout .fleet-database-health-title{font-size:21px}
}
@media print{
  #fleetPageSidebar,#fleetPageMenu,#fleetPageSectionsButton{display:none!important}
  main.fleet-page-sidebar-layout{width:auto!important;margin-left:auto!important;margin-right:auto!important}
  .fleet-page-jump-target:focus{outline:none!important}
}
