
/* V17.20: mobile-only dashboard and navigation; desktop unchanged */
@media(max-width:780px){
  body:has(#app:not([hidden])) .app-layout>.sidebar{
    display:none!important;position:fixed!important;top:auto!important;
    left:10px!important;right:10px!important;
    bottom:calc(75px + env(safe-area-inset-bottom))!important;
    max-height:min(65dvh,580px)!important;overflow-y:auto!important;
    border:1px solid #cad8ef!important;border-radius:20px!important;
    background:#142449!important;box-shadow:0 12px 42px #06163870!important;
    z-index:95!important;padding:14px!important
  }
  body.sf-mobile-menu-open:has(#app:not([hidden])) .app-layout>.sidebar{display:block!important}
  body.sf-mobile-menu-open .app-layout>.sidebar #nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;gap:7px!important}
  body.sf-mobile-menu-open .app-layout>.sidebar #nav button{font-size:12px!important;white-space:normal!important;min-width:0!important;min-height:48px!important}
  body:has(#app:not([hidden])) #sf-mobile-bottom-nav{
    position:fixed!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:stretch!important;bottom:0!important;left:0!important;right:0!important;
    height:calc(68px + env(safe-area-inset-bottom))!important;
    padding:6px 5px calc(6px + env(safe-area-inset-bottom))!important;
    background:#fff!important;border-top:1px solid #d6e2f2!important;
    box-shadow:0 -6px 24px #14244a13!important;z-index:90!important
  }
  #sf-mobile-bottom-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#506483!important;font:700 10px/1.1 system-ui,sans-serif!important;padding:3px 1px!important;cursor:pointer}
  #sf-mobile-bottom-nav button.active{color:#2368be!important;background:#edf2ff!important}
  #sf-mobile-bottom-nav .sf-tab-icon{font-size:21px!important;line-height:1.15!important}
  body:has(#app:not([hidden])) .workspace{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
  .nextgen-dashboard .kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .nextgen-dashboard .kpis .kpi{min-width:0!important;min-height:116px!important;padding:13px 11px!important}
  .nextgen-dashboard .kpi small{font-size:11px!important;line-height:1.25!important;max-width:calc(100% - 32px)!important}
  .nextgen-dashboard .kpi strong{font-size:clamp(19px,5vw,26px)!important}
  .nextgen-dashboard .kpi .kpi-foot{font-size:10px!important;line-height:1.35!important}
  .nextgen-dashboard .ng-kpi-icon{width:28px!important;height:28px!important;font-size:17px!important}
  .nextgen-dashboard .ng-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .nextgen-dashboard .ng-action{min-width:0!important;min-height:100px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;text-align:center!important;gap:8px!important;white-space:normal!important}
  .nextgen-dashboard .nextgen-hero{padding:19px!important}
}
@media(max-width:380px){
 .nextgen-dashboard .kpis{gap:8px!important}
 .nextgen-dashboard .kpis .kpi{padding:11px 9px!important}
 #sf-mobile-bottom-nav button{font-size:9px!important}
}
@media(min-width:781px){#sf-mobile-bottom-nav{display:none!important}}
