/* Responsive-only styling; all existing Back buttons and navigation unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body,main,.main-content,.container,.container-fluid,.row,[class*='col-'],.card,.card-body{min-width:0}
img,video,svg,canvas,iframe{max-width:100%;height:auto}
.form-control,.form-select,input,select,textarea{max-width:100%}
.table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.card{overflow-wrap:break-word}
@media(min-width:851px) and (max-width:1199px){body.ems-app-layout .main-content{margin-left:220px;width:calc(100% - 220px)}#emsPermanentSidebar{width:220px}.ems-modern #statsCards .row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:850px){body.ems-app-layout .main-content{margin-left:0!important;width:100%!important;max-width:100vw}body.ems-app-layout .main-content>.container{max-width:100%!important;padding:62px 12px 16px!important}#emsPermanentSidebar{width:min(290px,86vw);max-width:86vw}.ems-modern #statsCards .row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ems-modern .ems-controlbar,.ems-modern .ems-toolbar{flex-wrap:wrap;gap:10px}.ems-modern .row.mt-5.g-4>.col-md-6{width:100%!important;flex:0 0 100%!important}.btn{white-space:normal;overflow-wrap:anywhere}.modal-dialog{max-width:calc(100vw - 20px);margin-inline:auto}}
@media(max-width:575px){html{font-size:15px}body.ems-app-layout .main-content>.container{padding:58px 9px 12px!important}.ems-modern{padding-inline:0!important}.ems-modern #statsCards .row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.ems-modern #statsCards .card{min-height:105px!important}.ems-modern #statsCards .card-body{padding:10px!important}.ems-modern #statsCards h3{font-size:clamp(19px,5vw,26px)!important}.ems-modern #statsCards p{font-size:12px!important}.ems-modern .card-body{padding:12px!important}.ems-modern .d-flex.flex-wrap.gap-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ems-modern .row.mt-4.g-4>.col-md-6.col-lg-3{width:100%!important;flex:0 0 100%!important}.ems-modern .card-body>.row.g-3>.col-md-3{width:50%!important;flex:0 0 50%!important}.form-control,.form-select,input,select,textarea{font-size:16px}.table{font-size:13px}.table th,.table td{padding:7px 9px}.btn{font-size:13px;min-height:36px}}
@media(max-width:359px){.ems-modern #statsCards .row{grid-template-columns:1fr!important}.ems-modern .card-body>.row.g-3>.col-md-3{width:100%!important;flex:0 0 100%!important}}
