/* Compact layouts shared by the staff and guest pages. Keep controls reachable. */
.main-content{padding:14px 18px;max-width:1600px}
.page-heading{gap:10px;margin-bottom:12px;align-items:center}
.page-heading h1{font-size:clamp(23px,2vw,30px);line-height:1.45}
.page-heading p{font-size:13px;line-height:1.7}
.page-heading .eyebrow{font-size:11px}
.page-heading .btn.big{font-size:14px;padding:9px 15px;min-height:44px}
.panel{padding:18px;border-radius:17px}
.metric-grid{gap:12px;margin-bottom:14px}
.metric-card{padding:13px 15px;min-height:102px;gap:2px}
.metric-card strong{font-size:clamp(20px,2vw,26px);line-height:1.4}
.metric-card>span:first-child{font-size:12px}
.metric-emoji{top:13px;left:13px;font-size:25px}
.two-panels{gap:14px}
.section-top{margin-bottom:12px}
.section-top h2{font-size:18px}
.section-top p{font-size:12px}
.quick-grid{gap:10px}
.quick-item{padding:12px;gap:3px}
.quick-item b{font-size:14px}
.quick-item small{font-size:11px}
.dashboard-summary{margin-top:14px}
.topbar{min-height:64px;padding:8px 18px;gap:10px}
.top-actions{gap:8px;min-width:0;flex-wrap:wrap}
.today-pill{font-size:12px}
.top-navigation{flex-shrink:0}
.footer{padding:10px;font-size:11px}
.receipt-return-links{display:flex;flex-wrap:wrap;gap:7px}
.customer-contact-button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;width:100%;padding:8px 10px;border:1px solid #e5ddea;border-radius:11px;background:#faf7fc;color:#51455d;font-size:11px;text-align:right}
.contact-preview{color:#8e7b95;font-size:10px;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.margo-dialog.customer-dialog{padding:0;width:min(420px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:20px;overflow:hidden;text-align:right;color:#30334b;background:#fffdf8}
.customer-dialog[open]{display:flex;flex-direction:column}
.customer-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px 10px;flex:0 0 auto;border-bottom:1px solid #e9e1ee}
.customer-dialog-header h2{font-size:18px;margin:0}
.contact-close{width:40px;min-height:40px;display:grid;place-items:center;font-size:25px;border:1px solid #e9e1ee;background:#faf7fc;color:#51455d;border-radius:12px;padding:0}
.customer-dialog-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:12px 18px 16px;scrollbar-width:thin}
.customer-dialog-body>.hint{margin:0 0 14px;font-size:11px;line-height:1.8}
.customer-dialog .customer-details{position:static;min-height:0;max-height:none!important;overflow:visible;flex:none;border:0;padding:0;margin:0;background:transparent}
.customer-dialog .customer-details summary{display:none}
.customer-dialog .customer-details .cart-details{margin:0;gap:14px;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
.customer-dialog .cart-details label{display:grid;gap:6px;position:static;font-size:12px;line-height:1.8}
.customer-dialog .cart-details input{width:100%;min-width:0;min-height:44px;padding:10px 12px;font-size:13px;color:#30334b;background:#fff}
.customer-dialog .hint{color:#7d6c83}
.customer-dialog .phone-input{min-width:0;display:flex;align-items:stretch}
.customer-dialog .phone-input input{min-width:0;flex:1 1 0;width:0}
.customer-dialog .phone-prefix{flex:0 0 auto;display:flex;align-items:center}
.customer-dialog .customer-details>.hint{margin:12px 0 0!important;line-height:1.7;font-size:11px}
.customer-dialog-footer{padding:12px 18px;border-top:1px solid #e9e1ee;flex:0 0 auto;background:#fff}
.customer-dialog-footer .btn{min-height:44px;font-size:13px}
.cart-reset{border:0;background:none;color:#796780;font-size:11px;min-height:34px;padding:4px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.split-workspace .cart-panel>.section-top{gap:6px}
.nav-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quick-item>.quick-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eee6ff;color:#68518e;margin-bottom:3px}
.quick-item:nth-child(2)>.quick-icon{background:#ffe2d7;color:#a64740}
.quick-item:nth-child(3)>.quick-icon{background:#fff0ba;color:#876124}
.quick-item:nth-child(4)>.quick-icon{background:#deecff;color:#3d6092}
.quick-icon .nav-icon{width:23px;height:23px}
.side-shortcuts .nav-icon{width:19px;height:19px}
.logout-button .nav-icon{width:17px;height:17px}
.back-link .nav-icon{width:15px;height:15px}
.quick-item,.product-tile,.workspace-tabs button,.side-links a{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.quick-item:hover{transform:translateY(-2px);box-shadow:0 5px 14px #36314d0d}
.quick-item:hover .nav-icon{transform:translateY(-1px)}
.margo-dialog[open]{animation:dialog-arrive .18s ease-out}
.product-tile.is-selected{box-shadow:0 0 0 2px #ad403d35}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(7px) scale(.98)}to{opacity:1;transform:none}}

/* The list scrolls; totals and the submit button never share its scrollbar. */
.split-workspace{min-height:360px;gap:12px!important}
.split-workspace .pos-products{padding:14px}
.split-workspace .toolbar{margin-bottom:10px;gap:8px}
.split-workspace .cart-panel{padding:14px;border-radius:18px;background:var(--white,#fff);box-shadow:0 6px 22px #46374a08}
.split-workspace .cart-panel>.section-top{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:6px}
.split-workspace .cart-panel h2{display:flex;align-items:center;gap:7px;font-size:16px}
.split-workspace .cart-panel h2 .nav-icon{color:#ad403d}
.split-workspace .cart-list{flex:1 1 0;min-height:64px;padding:3px 4px 8px;scrollbar-gutter:stable}
.split-workspace .cart-item{padding:10px 0;gap:7px;margin:0!important}
.cart-item-name b{overflow-wrap:anywhere;line-height:1.65}
.qty-controls{gap:5px;flex:0 0 auto}
.qty-controls button{display:grid;place-items:center;min-width:36px;width:36px;min-height:40px;height:40px;background:#f4eff9;border-color:#e2d8e9;font-size:18px;border-radius:11px}
.qty-controls>span{min-width:18px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.split-workspace .cart-form{display:flex;flex-direction:column;flex:0 0 auto;max-height:none;overflow:visible;min-height:0;padding-top:10px}
.split-workspace .cart-form>.total-line,.split-workspace .cart-form>button,.split-workspace .cart-form>.hint{flex:0 0 auto}
.split-workspace .cart-form>.hint{font-size:10px;line-height:1.7;margin:7px 0 0}
.split-workspace .total-line{border-top:0;padding:9px 0 11px;gap:8px}
.split-workspace .total-line strong{font-size:19px;white-space:nowrap}
.split-workspace .cart-form .btn.big{min-height:46px;border-radius:12px;font-size:14px;box-shadow:0 4px 12px #ad403d16}
.customer-details{flex:0 0 auto;min-height:40px;max-height:clamp(60px,calc(var(--workspace-height,650px) - 300px),235px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bcadc8 transparent;background:#faf7fc;border:1px solid #e9e1ee;padding:0 10px;margin:0 0 3px;border-radius:12px}
.customer-details summary{display:list-item;position:sticky;top:0;z-index:1;background:inherit;padding:8px 0;line-height:1.65;min-height:38px;font-size:11px}
.customer-details[open] summary{border-bottom:1px solid #e9e1ee;margin-bottom:10px}
.customer-details .cart-details{margin:0 0 10px;gap:8px}
.customer-details .cart-details label{font-size:11px}
.customer-details .hint{margin:0 0 10px!important}
.split-workspace .cart-list .empty{padding:17px 10px;font-size:12px;background:#fbf8fc}
.split-workspace .cart-feedback{padding:7px 10px;font-size:11px;line-height:1.6;margin-bottom:9px}
.split-workspace .product-grid{gap:10px}
.product-card .food-photo{height:96px}
.product-card .product-info{padding:8px 10px;gap:4px}
.product-card .product-info b{font-size:13px}
.product-card .product-info span{font-size:12px}

/* A welcoming banner without pushing the menu below the laptop viewport. */
.guest-menu .public-header{padding:12px 20px}
.menu-welcome{min-height:0;padding:16px 24px;margin-bottom:14px;gap:16px}
.menu-welcome h2{font-size:27px;margin:3px 0}
.menu-welcome p{font-size:13px}
.welcome-pills{margin-top:9px}
.welcome-food img{width:118px;height:106px}
.welcome-food img+img{width:92px;height:85px}
.guest-menu .public-layout{gap:12px}
.guest-menu .public-layout.split-workspace{padding-bottom:0}
.guest-menu .split-workspace .product-card .product-tile{height:130px;grid-template-columns:100px minmax(0,1fr)}
.guest-menu .product-card .food-photo{height:130px;width:100px}
.guest-menu .product-card .product-info{padding:10px 11px;gap:4px}
.guest-menu .product-card .product-info b{font-size:14px}
.guest-menu .product-card .plus-chip{right:111px;bottom:9px;min-height:36px}
.guest-menu .tile-quantity{right:109px;bottom:49px}
.food-rating{height:36px}
.food-rating .rating-open{min-height:34px}
.public-footer{font-size:10px;padding:10px}
.mobile-cart-jump[hidden]{display:none!important}

/* Login: intrinsic height, bounded width, and a short-screen presentation. */
.login-shell{max-width:1160px;padding:18px 24px 10px}
.login-header{margin-bottom:18px;gap:14px}
.login-wordmark{font-size:28px}
.login-layout{grid-template-columns:minmax(310px,.88fr) minmax(0,1.12fr);min-height:0;border-radius:24px}
.login-panel{padding:24px 30px 0}
.login-kicker{font-size:11px}
.login-symbol{font-size:23px;line-height:1.4;margin:8px 0 3px}
.login-panel h1{font-size:26px;margin-bottom:6px;overflow-wrap:anywhere}
.login-intro{font-size:12px;line-height:1.8;margin-bottom:16px}
.login-form>label{font-size:12px;margin:10px 0 5px}
.login-input{min-height:44px;gap:8px}
.login-input input{padding:9px 0;font-size:14px}
.login-input>span{display:flex;align-items:center;color:#84849c}
.password-eye{font-size:11px;min-height:42px}
.login-options{margin:12px 0;gap:6px}
.login-submit{min-height:46px;padding:10px 15px;font-size:14px}
.login-note{font-size:9px;margin:7px 0 9px}
.login-menu-link{padding:8px;font-size:11px;min-height:34px}
.login-panel-foot{margin-top:12px;padding:11px 0;font-size:9px}
.login-story{padding:28px 32px 20px;display:flex;flex-direction:column;justify-content:center}
.login-story h2{font-size:34px;line-height:1.65;margin:12px 0 6px}
.login-story>p{font-size:12px;line-height:1.8;margin-bottom:7px}
.login-food{height:224px;flex:0 0 auto;margin:18px 16px 0;max-width:430px}
.hero-food{height:204px}
.small-food{width:90px;height:82px;left:-16px}
.food-seal{width:65px;height:65px;font-size:10px;right:-15px;top:-12px}
.food-caption{bottom:28px;right:12px;padding:8px 12px}
.food-caption b{font-size:12px}
.login-features{font-size:10px;margin-top:12px;padding-top:12px}
.login-footer{padding:12px 3px;font-size:9px}
.login-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 100px #fff inset;-webkit-text-fill-color:#20223c}
@media(min-width:761px) and (max-height:800px){
 .login-shell{padding-top:12px;max-width:1080px}
 .login-header{margin-bottom:12px}
 .login-wordmark{font-size:25px}.login-wordmark span{font-size:8px;line-height:2}
 .login-panel{padding:20px 28px 12px}
 .login-kicker,.login-symbol,.login-panel-foot{display:none}
 .login-panel h1{font-size:24px;margin-bottom:5px}
 .login-intro{margin-bottom:12px;font-size:11px}
 .login-options{margin:10px 0}
 .login-story{padding:22px 28px 18px}
 .login-story h2{font-size:30px;margin:8px 0 4px}
 .login-story>p{font-size:11px}
 .login-food{height:178px;margin-top:16px}.hero-food{height:160px}
 .small-food{width:78px;height:70px}.food-caption{bottom:23px;padding:7px 10px}
 .login-features{margin-top:9px;padding-top:9px}
 .login-footer{padding:9px 3px}
}
@media(min-width:700px) and (max-width:1150px){
 .guest-menu .split-workspace .product-card .product-tile{grid-template-columns:90px minmax(0,1fr)}
 .guest-menu .product-card .food-photo{width:90px}
 .guest-menu .product-card .plus-chip{right:100px}
 .guest-menu .tile-quantity{right:99px}
}
@media(max-width:960px){.topbar{padding:8px 12px;gap:8px}.main-content{padding:12px}.two-panels{gap:12px}}
@media(max-width:760px){
 .login-shell{padding:12px}
 .login-header{margin-bottom:12px;align-items:center}
 .login-layout{display:flex;flex-direction:column;max-width:480px;border-radius:20px}
 .login-panel{padding:20px 22px 12px}
 .login-kicker,.login-symbol,.login-panel-foot{display:none}
 .login-panel h1{font-size:24px}
 .login-intro{font-size:11px;margin-bottom:12px}
 .login-live{max-width:53%;gap:3px;align-items:flex-start}
 .login-live [data-live-date]{font-size:10px;white-space:normal}
 .login-live [data-live-clock]{font-size:12px;padding:3px 7px}
 .login-live [data-live-clock] span{font-size:9px}
 .login-wordmark{font-size:23px}.login-wordmark span{font-size:7px;letter-spacing:1.6px}
 .login-story{padding:14px 20px;min-height:100px;display:grid;grid-template-columns:1fr 95px;gap:9px;align-items:center}
 .story-eyebrow,.login-story>p,.login-features{display:none}
 .login-story h2{font-size:20px;margin:0;line-height:1.7}
 .login-food{height:80px;margin:0;width:90px;grid-column:2;grid-row:1}
 .hero-food{height:80px;border-radius:15px}.small-food,.food-seal,.food-caption{display:none}
 .login-footer{max-width:480px;font-size:8px;padding:10px 3px}
 .menu-welcome{margin:0 12px 12px;padding:13px 16px;border-radius:18px;gap:8px}
 .menu-welcome h2{font-size:22px}.menu-welcome p{font-size:11px}
 .welcome-food img{width:84px;height:88px}.welcome-pills{margin-top:6px}.welcome-pills span{font-size:9px}
}
@media(max-width:699px){
 .split-workspace,.guest-menu .split-workspace{min-height:430px;gap:9px!important}
 .split-workspace .cart-panel{padding:13px}
 .split-workspace .cart-panel>.section-top{margin-bottom:5px}
 .split-workspace .cart-form{max-height:none}
 .split-workspace .customer-details{max-height:clamp(60px,calc(var(--workspace-height,650px) - 360px),235px)}
 .split-workspace .cart-list{min-height:64px}
 .split-workspace .cart-feedback{font-size:10px;padding:6px 8px}
 .split-workspace .pos-products{padding:10px}
 .guest-menu .public-header{padding:11px 12px}
 .guest-menu .public-brand h1{font-size:18px}
 .guest-menu .split-workspace .product-card .product-tile{height:126px}
 .guest-menu .product-card .food-photo{height:126px}
 .mobile-cart-jump{min-height:44px;padding:8px 13px;font-size:13px}
 .main-content:has([data-pos-root]){padding-bottom:65px}
 .page-heading h1{font-size:23px}
 .page-heading p{font-size:11px}
 .topbar{align-items:center}
 .today-pill{font-size:10px;max-width:100%;white-space:normal}
 .panel{padding:14px}
 .metric-card{min-height:96px;padding:12px}
 .metric-card>span:first-child{font-size:11px}
 .metric-card small{font-size:10px}
 .quick-item{padding:10px}.quick-grid{gap:8px}
}
@media(max-width:380px){.top-actions{gap:5px}.pill-link{font-size:11px;padding:5px 8px}.top-actions .btn{padding:6px 10px}.welcome-pills{display:none}.menu-welcome h2{font-size:19px}.welcome-food img{width:65px;height:72px}.login-panel{padding:18px}.login-live{max-width:51%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
@media print{.main-content{padding:0!important}.nav-icon{box-shadow:none}}
