/* Portal 1.4.2: touch navigation and readable cards, with desktop tables retained. */
.mobile-menu-button,.mobile-menu-close,.mobile-menu-backdrop{display:none}
.monitoring-only .sidebar .nav-item:not([data-page=monitoring]),.monitoring-only .devices-nav-row,.monitoring-only .customer-tree,.monitoring-only .nav-label{display:none!important}
.monitor-devices{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.monitor-device{padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}
.monitor-device-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.monitor-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#ecf8f6;color:#139c93}.monitor-device h3{font-size:20px;overflow-wrap:anywhere}.monitor-device p{margin:8px 0;color:#7a8392}.monitor-device small{display:block;color:#8991a0}.monitor-device-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.monitor-device-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex:1}.monitor-device-actions svg{width:19px;height:19px}.monitor-device-actions p{font-size:12px}
#monitorGalleryDialog{width:min(1100px,95vw);padding:24px}#monitorGalleryBody{padding-top:20px}.monitoring-only #monitorDevices:empty{min-height:160px}
@media(max-width:760px){
 body{font-size:14px}button,.quiet,.link{font-size:14px}input,select,textarea{font-size:16px!important;min-height:44px}button{min-height:44px}input[type=checkbox]{min-height:20px;width:20px;height:20px}
 .app-shell{display:block}#appView main{padding:0 14px 24px;min-width:0}
 .mobile-menu-button{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;padding:0;font-size:23px!important}.mobile-menu-close{display:block;position:absolute;top:15px;right:12px;padding:8px 10px;font-size:13px}
 #portalSidebar{position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh;max-height:100dvh;overflow:auto;background:#fff;z-index:61;transform:translateX(-101%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:16px 0 50px #1824331a;border:0;display:flex;flex-direction:column}
 .mobile-menu-open{overflow:hidden}.mobile-menu-open #portalSidebar{visibility:visible;transform:translateX(0)}
 .mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:60;background:#16243773;border-radius:0;backdrop-filter:blur(2px)}
 #portalSidebar .brand-row{padding:20px 12px;min-height:84px;padding-right:95px;gap:7px}#portalSidebar .endpoint-brand-icon{width:28px;height:28px}#portalSidebar .company-brand-logo{width:91px;height:24px}#portalSidebar .brand-row>div>span{font-size:8px;white-space:nowrap}
 #portalSidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;padding:12px;gap:6px;flex:1 0 auto}#portalSidebar .nav-item{width:100%;min-height:48px;font-size:15px;padding:12px;gap:12px;flex:0 0 auto;white-space:nowrap}#portalSidebar .devices-nav-row .nav-item{flex:1}#portalSidebar .nav-item .ui-icon{width:21px;height:21px;flex-basis:21px}#portalSidebar .nav-label{display:block;margin:12px 12px 4px;font-size:10px}#portalSidebar .nav-divider{padding-top:14px}#portalSidebar .tree-expand{width:44px;height:44px;min-height:44px}#portalSidebar .customer-tree{order:initial;flex:none;max-height:none;overflow:visible;padding:0 8px 8px 20px}#portalSidebar .tree-device,#portalSidebar .customer-folder{font-size:14px;min-height:44px}#portalSidebar .tree-toggle,#portalSidebar .tree-pager button{min-width:44px;min-height:44px}#portalSidebar .sidebar-footer{display:block;padding:18px 24px}#portalSidebar .sidebar-footer a,#portalSidebar .sidebar-footer small{font-size:12px}
 .workspace-header{position:sticky;top:0;z-index:20;min-height:72px;margin:0 -14px 22px;padding:12px 14px;gap:10px;flex-wrap:nowrap;box-shadow:0 3px 12px #17223b05}.workspace-header>div:first-of-type{flex:1;min-width:0}.workspace-header h2{font-size:18px;overflow-wrap:anywhere}.workspace-header .header-actions{gap:6px;flex-wrap:nowrap}.header-actions .user{display:none}.header-actions button{width:44px;height:44px;min-height:44px;padding:0;font-size:0!important;display:grid;place-items:center}.header-actions button .ui-icon{width:21px;height:21px;margin:0}
 .section-heading,.overview-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.overview-heading h3{font-size:24px}.overview-heading p,.section-heading p{font-size:14px}.toolbar{gap:10px}.toolbar input{min-width:0}.toolbar button{padding:10px 16px}.toolbar select{width:100%;min-width:0}.stats{gap:10px}.stat{padding:16px 12px;min-width:0}.stat span{white-space:normal}.stat-label{font-size:12px!important}.stat strong{font-size:30px}.stat-caption{font-size:11px!important;line-height:1.5}.insights-grid{gap:16px}.grid-two{grid-template-columns:minmax(0,1fr)}.panel-head{gap:12px;flex-wrap:wrap}.panel-head h3{font-size:17px}.mini-row,.alert-row{font-size:14px;flex-wrap:wrap}.mini-row>span:nth-child(2){flex:1;min-width:0}.mini-row>span:nth-child(2)>span,.alert-row p{font-size:12px}.mini-row strong,.alert-row strong{font-size:14px;overflow-wrap:anywhere}.mini-row small,.alert-row>small{display:block;width:100%;font-size:11px}.alert-row>button{margin-left:auto}.form-panel{padding:20px}.pager{justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}.pager button{padding:10px 12px}.company-profile{padding:18px}.company-profile-head strong{font-size:16px}.company-contact{font-size:13px}.company-contact span{min-width:0}.company-profile .link{margin-top:10px}
 /* Generated cell labels preserve each column's meaning in a two-column phone card. */
 .table-panel:has(.phone-table){border:0;background:transparent;overflow:visible}.phone-table,.phone-table tbody{display:block;width:100%}.phone-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.phone-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:18px;margin:0 0 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.phone-table tbody td,.phone-table #usersTable td{display:block;min-width:0!important;max-width:none!important;padding:0!important;border:0;white-space:normal;overflow-wrap:anywhere;font-size:13px}.phone-table td:first-child,.phone-table td:last-child,.phone-table td[colspan]{grid-column:1/-1}.phone-table td:before{content:attr(data-label);display:block;font-size:10px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#8c94a4;margin-bottom:7px}.phone-table td[data-label='']:before{display:none}.phone-table td strong,.phone-table .device-link{font-size:15px}.phone-table td small{font-size:12px!important}.phone-table .device-link{min-height:32px;text-align:left}.phone-table .power-buttons{justify-content:flex-start}.phone-table .power-circle{width:46px;height:46px;min-height:46px;min-width:46px}.phone-table .screen-permissions{gap:14px}.phone-table .permission-toggle{font-size:12px;min-height:32px}.phone-table #usersTable .table-actions{display:flex;flex-wrap:wrap}.phone-table #usersTable .quiet{min-height:44px;font-size:13px}.phone-table #usersTable td:nth-child(3){grid-column:1/-1}
 dialog,#deviceDialog,#monitorGalleryDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}#deviceDialog{padding:0 0 24px}#deviceDialog .dialog-close{position:sticky;top:10px;right:12px;float:right;margin:10px 12px -54px 0;width:44px;height:44px;min-height:44px;z-index:5}.device-detail-header{padding-top:26px}.device-title-row{padding-right:44px}.device-tabs{position:sticky;top:0;z-index:3;background:#fff;overflow:auto;gap:0;margin-top:0;padding:0 12px;scrollbar-width:thin}.device-tabs button{flex:0 0 auto;padding:16px 13px;font-size:13px;white-space:nowrap}.device-vitals{grid-template-columns:1fr;gap:10px}.vital-card{padding:16px}.vital-card strong{font-size:27px}.vital-caption,.vital-card small{font-size:12px}.detail-card span{font-size:11px}.detail-card strong{font-size:14px}.employee-grid{grid-template-columns:1fr}.device-support-bar{gap:12px}.device-support-bar button{min-height:44px}.device-tab{padding:20px 14px}.identity-chip{font-size:11px}.capture-browser{grid-template-columns:minmax(0,1fr)}.capture-list{max-height:220px}.capture-entry{min-height:60px;font-size:14px}.capture-preview{min-width:0}.capture-preview img{max-width:100%;height:auto}.capture-inputs{flex-wrap:wrap}.capture-inputs>*{width:100%}.capture-folder{overflow-wrap:anywhere}.live-view-head{position:sticky;top:-20px;z-index:4;background:#fff;padding:10px 0;gap:10px;align-items:center}.live-view-head h2{font-size:18px;min-width:0;overflow-wrap:anywhere}.live-view-head button{min-width:80px;flex-shrink:0}.live-view-dialog .live-view-canvas{min-height:230px}.live-view-canvas img{max-width:100%;max-height:65dvh;object-fit:contain}.live-view-foot{display:block}.live-view-actions{margin-top:14px}.live-view-actions button{width:100%}.monitor-devices{grid-template-columns:minmax(0,1fr);gap:14px}.monitor-device{padding:20px}.monitor-device-actions button{min-height:48px}
 .confirm-action{width:calc(100vw - 28px);height:auto;max-height:85dvh;inset:0;margin:auto;border-radius:14px;padding:24px}.dialog-actions{position:sticky;bottom:-24px;background:#fff;padding:14px 0;z-index:2;gap:10px}.dialog-actions button{flex:1}.scope-rule-builder{display:grid;grid-template-columns:1fr}.user-dialog input,.user-dialog select{max-width:100%}footer{font-size:11px;line-height:1.6}
}
@media(max-width:360px){.workspace-header{gap:6px}.workspace-header h2{font-size:16px}.header-actions{gap:4px!important}.phone-table tbody tr{grid-template-columns:minmax(0,1fr)}.phone-table td{grid-column:1/-1}.insights-grid .panel-head{padding:18px}.chart-key{gap:12px}.stat-label{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){#portalSidebar{transition:none}}
