/* Smart Nutrition 8.79.4 — Admin full-width workspace
   Layout-only hotfix. No functional selectors or JS hooks are changed. */

/* Desktop / laptop: use all available workspace to the right of the fixed sidebar. */
@media (min-width:821px){
  body.sn-app-open.sn18-admin-mode .shell{width:100%!important;max-width:none!important}
  body.sn-app-open.sn18-admin-mode .shell>main{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding-left:24px!important;
    padding-right:24px!important;
    box-sizing:border-box!important;
  }
  body.sn-app-open.sn18-admin-mode .topbar{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.sn-app-open.sn18-admin-mode #view{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.sn-app-open.sn18-admin-mode #view>.card,
  body.sn-app-open.sn18-admin-mode #view>section,
  body.sn-app-open.sn18-admin-mode #view>article,
  body.sn-app-open.sn18-admin-mode #view>div{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  /* Known professional workspaces that previously retained legacy centered caps. */
  body.sn-app-open.sn18-admin-mode #view .sn810-report,
  body.sn-app-open.sn18-admin-mode #view .sn213-client-diary,
  body.sn-app-open.sn18-admin-mode #view .sn877-patient-main,
  body.sn-app-open.sn18-admin-mode #view .sn878-agenda-shell,
  body.sn-app-open.sn18-admin-mode #view .sn878-agenda-body{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Large screens: keep a comfortable edge gutter, never a centered narrow column. */
  @media (min-width:1600px){
    body.sn-app-open.sn18-admin-mode .shell>main{
      padding-left:30px!important;
      padding-right:30px!important;
    }
  }
}

/* Tablet/mobile keep the existing responsive layout, only prevent accidental horizontal caps. */
@media (max-width:820px){
  body.sn-app-open.sn18-admin-mode #view{width:100%!important;max-width:none!important}
}
