/* NAMAA small-screen layout. Desktop and print retain their existing layout. */
.namaa-mobile-backdrop{display:none}
.namaa-install{font:inherit;color:#124674;background:#edf6ff;border:1px solid #cbdff2;border-radius:9px;padding:10px 14px;cursor:pointer}
@media screen and (max-width:1100px){
 html.namaa-shell{--namaa-sidebar-width:0px;--namaa-top-height:64px}
 html.namaa-shell.namaa-sidebar-collapsed{--namaa-sidebar-width:0px}
 html.namaa-shell body{padding-top:calc(64px + env(safe-area-inset-top))!important;padding-left:0!important}
 html.namaa-shell .namaa-topbar{height:calc(64px + env(safe-area-inset-top))!important;padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;gap:8px}
 html.namaa-shell .namaa-top-date{display:none!important}
 html.namaa-shell .namaa-top-search{min-width:0;width:auto;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px;font-size:13px}
 html.namaa-shell .namaa-top-account{margin-left:auto}
 html.namaa-shell .namaa-account{gap:6px!important}
 html.namaa-shell .namaa-topbar .namaa-account-trigger{min-width:0!important;max-width:230px;height:44px}
 html.namaa-shell .namaa-account-trigger b{max-width:145px}
 html.namaa-shell :is(#uiGlobalNav,.app>.rail,.app-shell>.sidebar,.shell>.side){top:calc(64px + env(safe-area-inset-top))!important;width:min(300px,86vw)!important;height:calc(100dvh - 64px - env(safe-area-inset-top))!important;transform:translateX(-105%);visibility:hidden;pointer-events:none;z-index:1200!important;box-shadow:8px 0 25px #102f4926}
 html.namaa-mobile-nav-open :is(#uiGlobalNav,.app>.rail,.app-shell>.sidebar,.shell>.side){transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
 html.namaa-mobile-nav-open .namaa-mobile-backdrop{display:block;position:fixed;inset:calc(64px + env(safe-area-inset-top)) 0 0;background:#102d4a66;border:0;border-radius:0;z-index:1190}
 html.namaa-shell :is(.app:has(>.rail),.app-shell:has(>.sidebar),.shell:has(>.side)){padding-left:0!important;width:100%!important;height:calc(100dvh - 64px - env(safe-area-inset-top))!important}
 html.namaa-shell .namaa-topbar{z-index:1250!important}
 html.namaa-shell :is(.app>.content,.app>.main,.app-shell>.main,.shell>main){min-width:0!important;max-width:100%;padding-bottom:env(safe-area-inset-bottom)}
 body :is(.ui-table-wrap,.table-wrap,.table-responsive,[data-mobile-table]){max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 [data-mobile-table]{border-radius:10px}
 body [data-mobile-grid]{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;grid-template-areas:none!important}
 body [data-mobile-grid]> *{grid-area:auto!important;min-width:0!important}
 body :is(.modal-content,.modal-box,.mbox,.modal>.box,dialog){max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box;overflow-y:auto}
 body :is(.toolbar,.filters,.filter-row,.actions,.mhead,.page-head,.page-header){flex-wrap:wrap;gap:8px}
 body :is(.toolbar,.filters,.filter-row)> *{min-width:0;max-width:100%}
 body :is(.tabs,.profile-tabs,.care-nav,.wa-settings-tabs){max-width:100%;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}
 body :is(input,select,textarea){max-width:100%;box-sizing:border-box}
 body :is(button,.btn,summary){touch-action:manipulation}
 body .namaa-command{width:min(640px,calc(100vw - 24px))!important;max-height:80dvh!important}
 body :is(#namaa-account-panel,.care-notices,#_npanel){max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 90px)!important;overflow-y:auto!important}
 body.invoice-focus .container{grid-template-columns:minmax(0,1fr)!important}
 body.invoice-focus .container>aside{position:static!important;max-height:none!important}
 body :is(.employee-workspace,.profile-grid){min-width:0;max-width:100%}
 body :is(.layout.staff-inbox,.layout){max-width:100%}
}
@media screen and (max-width:700px){
 html.namaa-shell .namaa-topbar .namaa-account-trigger{max-width:145px;padding:4px 6px!important}
 html.namaa-shell .namaa-account-trigger b{max-width:80px;font-size:11px}
 html.namaa-shell .namaa-account-trigger small{font-size:10px}
 html.namaa-shell .namaa-top-search{font-size:0!important;flex:0 0 42px;width:42px;height:44px;padding:8px}
 html.namaa-shell .namaa-top-search::before{content:'⌕';font-size:28px;line-height:1}
 body{min-width:0!important}
 body :is(main,.wrap,.container,.workspace,.page,.page-wrap){min-width:0!important;max-width:100%;box-sizing:border-box}
 body :is(main,.wrap,.container){padding-left:12px!important;padding-right:12px!important}
 body :is(.hero,.page-hero,.profile-hero,.agent-hero){padding:18px!important;flex-wrap:wrap;gap:12px}
 body :is(h1,.hero h1){font-size:24px!important;line-height:1.25;overflow-wrap:anywhere}
 body :is(.form-grid,.profile-grid,.profile-details,.type-grid,.svc-grid,.wa-team-columns){grid-template-columns:minmax(0,1fr)!important}
 body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px}
 body :is(button,.btn,summary){min-height:42px}
 body :is(.toolbar,.filters,.filter-row){display:flex;flex-wrap:wrap}
 body :is(.toolbar,.filters,.filter-row)>input{flex:1 1 180px}
 body :is(.modal-content,.modal-box,.mbox,.modal>.box,dialog){padding:14px!important;width:calc(100vw - 20px)!important;margin-inline:auto}
 body :is(.modal,.overlay){padding:10px!important;box-sizing:border-box}
 body.ui-with-nav .employee-workspace,body.embedded-mode .employee-workspace{padding:12px!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'badges' 'counter' 'stats' 'alert' 'work'!important}
 body.ui-with-nav .employee-workspace>.card,body.embedded-mode .employee-workspace>.card{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'service' 'side' 'queue'!important;min-height:0!important;padding:12px!important}
 body .my-invoice-modal{display:block!important;overflow-y:auto!important}
 body .queue-lanes{grid-template-columns:1fr!important;max-height:none}
 body .stats{max-width:100%!important;min-width:0;gap:6px}
 body .stats>*{min-width:0;padding:10px!important}
 body .counter-row{flex-wrap:wrap;min-width:0}
 body .counter-val{min-width:0!important;max-width:100%}
 body.ui-kiosk{height:auto!important;min-height:100dvh;overflow:auto!important}
 body.ui-kiosk :is(.screen,.screen.active){height:auto!important;max-height:none!important}
 body .reception-header{height:auto!important;flex-wrap:wrap;padding:12px!important;gap:10px}
 body .reception-shortcuts{flex-wrap:wrap;gap:8px}
 body .layout,body .layout.staff-inbox{display:flex!important;flex-direction:column;height:auto!important}
 body .layout>.list{max-height:40dvh;min-height:160px;border-bottom:1px solid #dce7f1}
 body .layout>.chat{height:75dvh;min-height:400px}
 body .layout>.details{max-height:none}
 body .bubble{max-width:94%}
 body .chatHead,body #messages{padding:12px}
 body .wa-settings{padding:12px!important}
 body .namaa-command-head{gap:6px;min-width:0}
 body .namaa-command-head input{width:100%;min-width:0}
}
@media screen and (display-mode:standalone){body{padding-bottom:env(safe-area-inset-bottom)}.namaa-install{display:none!important}}
@media print{.namaa-install,.namaa-mobile-backdrop{display:none!important}}
@media screen and (max-width:1100px){
 html.namaa-shell .ui-nav-toggle,html.namaa-shell .mobile-menu{display:none!important}
 body .profile-page{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 html.namaa-shell .namaa-shell-sidebar :is(.identity div,.module div:last-child,.rail-label,.user-row div:last-child){display:block!important}
}
@media screen and (max-width:700px){
 #sc1>.card{padding:18px!important}
 #sc1>.card>div:has(>div>#clientPhone),#sc1>.card>div:has(>div>#clientEmiratesId){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body:has(#sc1) [data-brand-copyright]{position:static!important}
 body .stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body .stats>*{font-size:12px!important}
}
