body.admin-page .admin-nav{display:none!important}body.admin-page #sandboxBack{display:block;border:1px solid #cdd9eb;background:#fff;color:#2557a4;padding:10px 15px;min-height:42px;border-radius:12px;margin:10px 0;font-weight:700}body.admin-page #sandboxHome{display:none}body.admin-page.sandbox-home #sandboxHome{display:block!important}body.admin-page.sandbox-home #panel>section,body.admin-page.sandbox-home #panel>.admin-local-header,body.admin-page.sandbox-home #panel>#orderAiAssistant,body.admin-page.sandbox-home #panel>#orderLiveAlert{display:none!important}body.admin-page.sandbox-home>.shell>header{display:none!important}body.admin-page.sandbox-home>.shell{width:100%!important;max-width:900px!important;margin:0 auto!important;min-height:0!important}body.admin-page.sandbox-home>.shell>main{padding:0!important;margin:0!important;max-width:none!important}#sandboxMenuFrame{border:0;width:100%;height:calc(100dvh - 30px);min-height:575px;display:block;background:#edf2fa}body.admin-page>.shell>main{margin-left:0!important;padding:12px!important}body.admin-page>.shell>header{background:linear-gradient(110deg,#175bc3,#0a378d)!important;color:white!important;min-height:75px!important;padding:14px!important}body.admin-page>.shell>header .brand b{font-size:20px!important;color:white!important}body.admin-page>.shell>header .brand small{color:#d5e4fc!important}body.admin-page>.shell>header .header-actions{display:flex!important;gap:7px!important}body.admin-page>.shell>header .header-actions .btn{font-size:12px!important;color:white!important;border:1px solid #ffffff66!important;background:#ffffff15!important;min-width:0!important;padding:9px!important}body.admin-page>.shell>header .header-actions .btn:after{content:none!important}.sandbox-tools-dialog{width:calc(100% - 24px);max-width:580px;max-height:85dvh;border:0;border-radius:18px;padding:18px;color:#233b54}.sandbox-tools-dialog::backdrop{background:#132c4b66}.sandbox-tools-dialog .admin-nav-tools{display:block!important;background:white!important;position:static!important;width:auto!important;border:0!important;padding:0!important}.sandbox-tools-dialog .admin-nav-tools>summary{display:none}.sandbox-tools-dialog .admin-nav-secondary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.sandbox-tools-dialog .btn{min-height:44px!important}.sandbox-tools-dialog h2{margin:0;font-size:21px}.sandbox-tools-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sandbox-tools-dialog .dialog-heading button{background:#eff3f9;border:0;border-radius:8px;padding:8px 13px}.sandbox-mode #adminSetupWarning{display:none!important}@media(max-width:600px){body.admin-page>.shell>header{flex-wrap:wrap!important}.sandbox-tools-dialog .admin-nav-secondary{grid-template-columns:1fr!important}#sandboxMenuFrame{min-height:575px}}

body.admin-page.sandbox-home>.shell{padding:0!important}

/* Keep the mobile title and action labels from competing for one row. */
@media(max-width:600px){
 body.admin-page>.shell>header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 body.admin-page>.shell>header .brand{width:100%!important;min-width:0!important}
 body.admin-page>.shell>header .header-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;margin:0!important}
 body.admin-page>.shell>header .header-actions .btn{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:auto!important;min-height:44px!important;box-sizing:border-box;white-space:normal!important;line-height:1.35;text-align:center}
}

/* The menu replaces the legacy desktop sidebar in every admin view. */
body.admin-page #panel:not(.hide){display:block!important;width:100%;min-width:0}
/* Override the legacy generic admin header, which made white modal text invisible. */
html body.admin-page .sandbox-screen>.sandbox-screen-head{position:relative!important;top:auto!important;background:linear-gradient(110deg,#175bc3,#0a378d)!important;color:#fff!important;display:flex!important;min-height:52px!important;padding:8px 16px!important;border:0!important}
html body.admin-page .sandbox-screen>.sandbox-screen-head h2{color:#fff!important}
html body.admin-page .sandbox-screen>.sandbox-screen-head button{color:#fff!important;border:1px solid #ffffff77!important}
html body.admin-page .sandbox-screen:is(.sandbox-inner-modal,.sandbox-map-fullscreen,.sandbox-driver-home)>.sandbox-screen-head{display:none!important}
/* Legacy modal ID selectors otherwise constrain full-screen editor sheets to 900px. */
html body.admin-page .modal:not(#detailModal)>.sheet,html body.admin-page #detailModal>.sheet{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;border-radius:0!important}

.sandbox-screen iframe[hidden]{display:none!important}
.sandbox-screen .screen-placeholder{padding:24px;color:#52675d}

/* Existing sections occupy the viewport; editor overlays remain in the same document. */
body.admin-local-screen>.shell{max-width:none!important;width:100%!important;padding:0!important}
body.admin-local-screen>.shell>header{display:none!important}
body.admin-local-screen>.shell>main{padding:0 12px 20px!important}
body.admin-local-screen #sandboxHome{display:none!important}
.admin-local-header{display:contents}
#sandboxLocalTitle{display:none}
body.admin-local-screen .admin-local-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin:0 -12px 12px;padding:6px 18px;background:linear-gradient(110deg,#175bc3,#0a378d);color:white}
body.admin-local-screen #sandboxLocalTitle{display:block;min-width:0;margin:0;font-size:18px;overflow-wrap:anywhere}
body.admin-page.admin-local-screen #sandboxBack{flex:none;margin:0;border:1px solid #ffffff80;background:#ffffff20;color:white;padding:8px 14px;font-size:15px}
body.admin-page.admin-local-screen #sandboxBack:focus-visible{outline:2px solid white;outline-offset:2px}

body.admin-local-screen #ordersTab > .section-title{display:none}

/* Align all tools, including dynamically inserted settings. */
.sandbox-tools-dialog .admin-nav-tools>summary{display:none!important}
.sandbox-tools-dialog .admin-nav-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.sandbox-tools-dialog .admin-nav-secondary>.btn{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;margin:0!important;text-align:center;white-space:normal}
.sandbox-tools-dialog .admin-nav-tools>.order-sound-panel{margin:0 0 16px}
@media(max-width:600px){.sandbox-tools-dialog .admin-nav-secondary{grid-template-columns:1fr!important}}

@media (min-width: 720px) {
 body.admin-page.sandbox-home > .shell { max-width: 1232px !important; }
 #sandboxMenuFrame { height: 100dvh; min-height: 0; }
}
