/* Hotel System mobile app layer: theme-aware controls, touch sizing and safe-area handling. */
#mobile-dock,#mobile-network-warning,.mobile-install-help,.mobile-auth-install{display:none}
[data-install-help]:not([hidden]){display:block}
.mobile-auth-install:not([hidden]){display:block;margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.mobile-auth-install button{width:100%;min-height:46px}
.mobile-auth-install small,.mobile-install-help{font-size:12px;color:var(--muted);line-height:1.5}
#mobile-network-warning:not([hidden]){display:block;background:var(--notice-bg);color:var(--notice-text);border:1px solid var(--line);padding:10px 14px;font-weight:650;font-size:12px;border-radius:8px;margin:12px}
@media screen and (max-width:740px){
 body.app-shell{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 body.app-shell main{min-width:0}
 body.app-shell .topbar{top:0;min-height:57px;gap:7px}
 body.app-shell #content{padding-bottom:24px}
 body.app-shell #toast{bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:60}
 #mobile-dock{position:fixed;z-index:31;inset:auto 0 0;display:flex;align-items:stretch;gap:2px;padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));background:var(--white);color:var(--ink);border-top:1px solid var(--line);box-shadow:0 -5px 22px #00000016}
 #mobile-dock button,#mobile-dock a{flex:1;min-width:0;min-height:56px;border:0;border-radius:10px;padding:5px 2px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;background:transparent;color:var(--teal);font-size:11px;font-weight:700;text-decoration:none;line-height:1.2}
 #mobile-dock button:active,#mobile-dock a:active{background:var(--soft)}
 #mobile-dock svg{height:21px;width:21px;flex-shrink:0}
 #mobile-dock button[hidden]{display:none!important}
 body.app-shell .shell.open #prism-nav-backdrop{display:block;position:fixed;inset:0;background:#091b2999;border:0;border-radius:0;z-index:40;width:100%;height:100%}
 body.app-shell .shell>aside{z-index:50;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
 body.app-shell .shell.open~#mobile-dock{display:none}
 body.app-shell .heading .actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 body.app-shell .heading .actions .btn{min-height:43px}
 body.app-shell .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
 body.app-shell .table-wrap table{min-width:560px}
 body.app-shell .calendar-table table{min-width:920px}
 body.app-shell .grid4,.room-grid,.menu-grid{min-width:0}
 body.app-shell .panel,.app-shell .metric,.app-shell .room,.app-shell .menu-card{min-width:0;overflow-wrap:anywhere}
 body.app-shell .form-control,body.app-shell .form-select,body.auth-shell input,body.auth-shell select{font-size:16px;min-height:45px}
 body.app-shell .qty button,body.app-shell .cart .btn,body.app-shell .modal-footer button,body.auth-shell button{min-height:44px}
 body.app-shell .modal-body{padding:15px}
 body.app-shell .modal-footer{position:sticky;bottom:0;z-index:1;flex-wrap:wrap;padding:12px 14px;background:var(--surface-alt)}
 body.app-shell .modal-footer button{flex:1}
 body.app-shell #modal,body.app-shell #modal:has(.role-editor),#theme-dialog{max-height:88vh;max-height:88dvh;width:96vw;max-width:96vw}
 body.auth-shell .auth input{font-size:16px;min-height:46px}
 body.auth-shell>.footer,body.auth-shell>main{padding-bottom:env(safe-area-inset-bottom,0px)}
 body.app-shell .mobile-install-help:not([hidden]){position:fixed;left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:32;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:14px;box-shadow:var(--shadow)}
 .role-editor input[type=checkbox]{width:22px;height:22px;flex-basis:22px;min-height:22px}
 .role-action,.role-module-title,.role-category-check{padding-top:5px;padding-bottom:5px}
}
@media screen and (max-width:360px){
 body.app-shell .grid4{grid-template-columns:1fr}
 body.app-shell .room-grid,.app-shell .menu-grid{grid-template-columns:1fr}
 body.app-shell .theme-trigger .theme-trigger-label{display:none}
}
@media print{#mobile-dock,#mobile-network-warning,.mobile-install-help,.mobile-auth-install{display:none!important}}
.mobile-auth-install:not(:has(button:not([hidden]))):not(:has([data-install-help]:not([hidden]))){display:none}
@media screen and (max-width:740px){body.app-shell #mobile-network-warning:not([hidden]){position:fixed;left:0;right:0;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:33;margin:8px}}
