/* No desktop overrides. Existing field types, colors and permissions are retained. */
.mw-title,.mw-menu,.mw-account,.mw-filter-toggle{display:none}
@media screen and (max-width:800px){
 body.fms-workspace>header,html.list-viewport body.fms-workspace>header{display:grid!important;grid-template-columns:36px auto minmax(0,1fr) 36px!important;align-items:center!important;gap:6px!important;height:52px!important;min-height:52px!important;padding:4px 8px!important;flex-wrap:nowrap!important}
 body.fms-workspace>header>nav,body.fms-workspace>header>.account{display:none!important}
 body.fms-workspace>header>.brand{grid-column:2;grid-row:1;width:auto!important;min-width:0!important;max-width:110px!important;gap:3px!important;align-items:center!important;padding:0!important;font-size:19px!important;flex-wrap:nowrap!important}
 body.fms-workspace>header>.brand .ls-symbol{width:37px!important;height:auto!important;max-height:28px!important;object-fit:contain}
 body.fms-workspace>header>.brand .brand-name{font-size:19px!important;line-height:1!important}
 body.fms-workspace>header>.brand .brand-version{font-size:9px!important;margin:0!important}
 body.fms-workspace>header>.mw-title{display:block;grid-column:3;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.3;color:#173654;text-align:center}
 body.fms-workspace>header>.mw-menu,body.fms-workspace>header>.mw-account{display:flex;justify-content:center;align-items:center;grid-row:1;width:36px;height:40px;padding:0!important;border:0;border-radius:10px;background:#edf5ff;color:#195eaa;font-size:24px}
 .mw-menu{grid-column:1}.mw-account{grid-column:4}
 body.fms-workspace>.mobile-menu-toggle,body.fms-workspace>.workspace-tabs,body.fms-workspace>.workspace-menu-restore,body.fms-workspace>.workspace-sidebar{display:none!important}
 body.fms-workspace>main,html.list-viewport body.fms-workspace>main{margin:0!important;padding:8px!important;width:100%!important;min-width:0!important;box-sizing:border-box}
 body.fms-workspace>footer{flex:none!important;padding:3px 8px!important;min-height:18px!important;font-size:9px!important}
 body.fms-workspace>footer .ind-official{max-height:13px!important;width:auto!important}
 .mw-drawer{box-sizing:border-box;margin:0 0 0 auto;padding:0;border:1px solid #d8e5f2;border-radius:14px 0 0 14px;width:min(340px,90vw);height:100dvh;max-height:100dvh;max-width:90vw;background:#fff;color:#173654}
 .mw-drawer::backdrop{background:#13283b55}.mw-drawer-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #dce6f0;position:sticky;top:0;background:white;z-index:1}
 .mw-drawer-bar button{background:#edf4fb;color:#173654;font-size:25px!important;padding:0!important;width:36px;height:36px}
 .mw-drawer-content{padding:12px}.mw-top-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.mw-top-links a{padding:10px;background:#f0f6fd;border:1px solid #dce8f5;border-radius:9px;text-decoration:none;color:#244d77;font-size:14px}.mw-top-links a[aria-current]{background:#ddecff;font-weight:700}
 .mw-drawer .workspace-tree{overflow:visible}.mw-drawer summary{padding:10px;font-size:15px;font-weight:700}.mw-drawer .workspace-tree a{display:block;padding:10px 14px;margin:3px 0;background:#f7f9fc;border-radius:7px;color:#234d75;font-size:14px}.mw-drawer .workspace-tree a[aria-current]{background:#e2efff;font-weight:700}.mw-drawer-content>form{margin-top:12px}.mw-drawer-content>form button{background:#fff0f0;color:#a83333}
 .mw-filter-toggle{display:block;width:100%;text-align:left;background:#edf5fc;color:#254c73;border:1px solid #dce8f4;border-radius:8px;margin:0 0 8px;padding:9px 12px!important;font-size:14px!important;font-weight:700}
 body.fms-workspace main form.mw-filter:not(.mw-filter-open){display:none!important}
 body.fms-workspace main form.mw-filter.mw-filter-open{display:flex!important;flex-wrap:wrap!important;width:auto!important;gap:8px!important}
 body.fms-workspace main form.mw-filter>*{max-width:100%;min-width:0}
 body.fms-workspace main form.mw-filter label{flex:1 1 140px}
 body.fms-workspace main .heading{flex-wrap:wrap;gap:8px;margin-bottom:8px}
 body.fms-workspace main .heading h1{font-size:17px}
 body.fms-workspace main section:not(.fms-grid-scroll){padding:10px}
 body.fms-workspace main input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.fms-workspace main select,body.fms-workspace main textarea,dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]),dialog select,dialog textarea{font-size:16px;max-width:100%;box-sizing:border-box}
 body.fms-workspace main button,body.fms-workspace main a.button{min-height:32px}
 .mw-table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 dialog:not(.mw-drawer){max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;box-sizing:border-box}
 .fms-popup[open],.meter-modal[open],.fms-work-dialog[open],[data-entry-dialog][open],.spt-patrol-dialog[open]{width:calc(100vw - 8px)!important;height:calc(100dvh - 8px)!important;padding:0!important;margin:auto!important}
}
/* Mobile header shortcuts; desktop header is unchanged. */
.mw-camera,.mw-home{display:none}
@media screen and (max-width:800px){
 body.fms-workspace>header,html.list-viewport body.fms-workspace>header{grid-template-columns:36px 36px minmax(0,1fr) 36px 36px!important}
 body.fms-workspace>header>.brand{display:none!important}
 body.fms-workspace>header>.mw-camera,body.fms-workspace>header>.mw-home{display:flex;justify-content:center;align-items:center;grid-row:1;width:36px;height:40px;border:0;border-radius:10px;background:#edf5ff;color:#195eaa;text-decoration:none;padding:0!important}
 body.fms-workspace>header>.mw-camera{grid-column:2}
 body.fms-workspace>header>.mw-home{grid-column:4}
 body.fms-workspace>header>.mw-account{grid-column:5}
}
