/* Native dialogs remain untouched. Older WebKit receives a modal fallback. */
dialog:not([open]){display:none}
.ipad-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.6)}
dialog.ipad-dialog[open]{display:block;position:fixed;left:50%;top:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%);width:calc(100vw - 40px);max-width:620px;max-height:85vh;overflow:auto;-webkit-overflow-scrolling:touch}
@supports not (width:min(1px,2px)){
 .wrap{width:calc(100% - 40px);max-width:1220px}
 .hs-app,.hs-modal,.note-modal,.offer-modal{top:0;right:0;bottom:0;left:0}
 .hs-dialog{width:100%;max-width:560px}
 .note-dialog{width:100%;max-width:500px}
 .offer-dialog{width:100%;max-width:880px;max-height:85vh}
 .topbar{padding-left:24px;padding-right:24px}
 .top{padding:16px 24px}
 h1{font-size:58px}h2{font-size:40px}
 .hs-top>*+*,.top nav>*+*,.dialog-actions>*+*,.presets>*+*{margin-left:8px}
 .hs-top .hs-logo{margin-left:0}
 .hs-app{height:100%;bottom:0!important}
 .hs-menu-pane,.hs-order{ -webkit-overflow-scrolling:touch}
 .hs-dialog,.hs-printer-dialog{font-size:16px}
 .hs-dialog input,.hs-dialog select,.hs-printer-dialog select{font-size:16px}
 .hs-printer-dialog{max-width:520px}
 .menu-tabs>.tab+.tab,.tabs>.tab+.tab{margin-left:6px}
 .order-card,.item-copy,.customer-name,.details dd{word-wrap:break-word}
 @media(max-width:640px){h1{font-size:44px}h2{font-size:34px}.wrap{width:calc(100% - 32px)}}
}
