/* Mobile UX layer; no role display overrides or data modifications. */
.ux-inactive{display:none!important}.ux-mobile-dock{display:none}.ux-team-more summary{cursor:pointer;padding:8px}.ui-list-pager,.ui-list-toolbar{gap:8px}.card,.modal-card{min-width:0}button,input,select,textarea{touch-action:manipulation}label{line-height:1.45}.audit-item,.record,.admin-row,.case-row{overflow-wrap:anywhere}
@media(max-width:1050px){
body{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}.ux-mobile-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:1100;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#f8fcff;border-top:1px solid #b9cedb;box-shadow:0 -2px 8px #0001}.ux-mobile-dock button{flex:1;min-height:44px!important;color:#103453;background:#e5f3fb;border:1px solid #a6c5d7;border-radius:10px;font-size:14px!important}.auth-locked .ux-mobile-dock{display:none}.ux-section-sheet{position:fixed;inset:auto 8px 78px;max-height:75dvh;box-sizing:border-box;width:calc(100% - 16px);overflow:auto;background:#0e2534;color:#fff;border:1px solid #668397;border-radius:18px;padding:16px}.ux-section-sheet::backdrop{background:#0007}.ux-section-sheet>.side-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important;gap:8px!important}.ux-section-sheet .side-nav button{width:100%!important;flex-direction:row!important;justify-content:flex-start!important;font-size:14px!important;min-width:0!important}.ux-section-sheet .side-nav button span{display:block!important;white-space:normal!important;font-size:14px!important;line-height:1.4!important}.app-sidebar:has(.side-nav:empty){display:none}.app-sidebar:not(:has(.side-nav)){display:none!important}.wrap,[dir=rtl] .wrap{margin:0!important;padding:12px!important}.mobile-nav{display:none!important}
#welfareSidebar{top:auto!important;bottom:78px!important;max-height:75dvh!important;height:auto!important;border-radius:16px 16px 0 0;overflow:auto!important}#welfareSidebar .ws-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#welfareSidebar .ws-nav button{min-height:44px!important;font-size:13px!important;white-space:normal!important;padding:8px!important}
.act-table,.insp-table,.ca-table,.cb-analytics-table-scroll table,.reference-risk-table table{width:100%!important;min-width:0!important}.act-table thead,.insp-table thead,.ca-table thead,.cb-analytics-table-scroll thead,.reference-risk-table thead{display:none!important}.act-table tbody,.insp-table tbody,.ca-table tbody,.cb-analytics-table-scroll tbody,.reference-risk-table tbody{display:grid!important;gap:10px}.act-table tbody tr,.insp-table tbody tr,.ca-table tbody tr,.cb-analytics-table-scroll tbody tr,.reference-risk-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px!important;border:1px solid #aac1cf;border-radius:10px}.act-table td,.insp-table td,.ca-table td,.cb-analytics-table-scroll td,.reference-risk-table td{display:block!important;min-width:0!important;border:none!important;padding:3px!important;overflow-wrap:anywhere;white-space:normal!important;font-size:13px!important}.act-table td::before,.insp-table td::before,.ca-table td::before,.cb-analytics-table-scroll td::before,.reference-risk-table td::before{content:attr(data-label);display:block;font-weight:700;font-size:12px;color:inherit;opacity:.9;margin-bottom:4px}.act-table td:last-child,.insp-table td:last-child,.ca-table td:last-child{grid-column:1/-1}.ui-list-toolbar{display:grid!important;grid-template-columns:1fr 1fr}.ui-list-search{grid-column:1/-1}.ui-list-pager{flex-wrap:wrap}.ui-list-pager button{flex:1}.ui-list-pager span{font-size:13px!important}.card .sync,.card .progress-note,.audit-meta,.case-meta,.report-meta,.record-meta{font-size:13px!important;line-height:1.5!important}.card h2,.card h3{line-height:1.3}.card{padding:14px!important}.reference-kpi,.cb-command-kpi{padding:10px!important;min-height:0!important}.reference-kpi small,.cb-command-kpi small{font-size:12px!important}.reference-kpi strong,.cb-command-kpi strong{font-size:28px!important}
}
@media(max-width:600px){.reference-topbar{position:relative!important;padding:12px!important;gap:10px!important}.reference-brand b{font-size:30px!important}.reference-brand small{font-size:14px!important;line-height:1.4!important;max-width:250px!important}.reference-brand-mark{width:44px!important;height:44px!important}.reference-module-search{min-width:0!important;width:100%!important}.reference-actions{flex-wrap:wrap}.reference-kpis,#cbCommandKpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cb-reference-hero{min-height:180px!important;padding:16px!important}.cb-reference-hero h1{font-size:26px!important;line-height:1.2!important}.cb-analytics-top{grid-template-columns:1fr!important}.modal-card{padding:14px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}.modal-actions{flex-wrap:wrap}.modal-actions button{flex:1 1 130px}.panel-title{flex-wrap:wrap;gap:8px}.form-grid,.entry-grid{grid-template-columns:1fr!important}}

@media(max-width:1050px){html body label:has(>input[type=checkbox]),html body label:has(>input[type=radio]){display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px}html body .act-table td,html body .insp-table td,html body .ca-table td{font-size:13px!important}html body .wf-table{min-width:0!important}html body .wf-table thead{display:none!important}html body .wf-table tbody{display:grid;gap:8px}html body .wf-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid #a9c1d0;border-radius:10px}html body .wf-table td{display:block;white-space:normal!important;overflow-wrap:anywhere;font-size:13px!important}html body .wf-table td:before{content:attr(data-label);display:block;font-weight:700;font-size:12px}}
@media(max-width:600px){html body.reference-layout-ready #referenceTopbar .reference-brand small{font-size:14px!important;line-height:1.4!important;max-width:250px!important}html body.reference-layout-ready #referenceTopbar .reference-module-search{display:flex!important}html body.reference-layout-ready #referenceTopbar{position:relative!important}html body .reference-brand-mark{width:44px!important;height:44px!important}}
html body #dashboardAnchor .ux-inactive{display:none!important}
@media(max-width:1050px){html body #appSidebar:not(:has(.side-nav)){display:none!important}}

.ux-section-sheet>input{display:block;width:100%;box-sizing:border-box;margin:12px 0;color:#0d2a3b;background:#fff;font-size:16px!important}.ux-section-sheet .side-nav button[hidden],.side-nav button[style*="display:none"],.side-nav button[style*="display: none"]{display:none!important}

/* Registration camp choices retain a usable effective target on desktop too. */
#registrationCard .camp-checklist label{min-height:44px!important;box-sizing:border-box}
