/* Scoped to the waitress installable app. Admin and PSA keep their own layout. */
.mesera-login,.mesera-pwa{--mesera-ink:#102849;--mesera-blue:#1765b4;--mesera-line:#c9dff2;-webkit-tap-highlight-color:transparent}
.mesera-login{min-height:100dvh;background:radial-gradient(circle at 13% 10%,#265fa4 0,transparent 35%),linear-gradient(135deg,#0a1832,#173c71);display:grid;place-items:center;padding:clamp(14px,3vw,32px);box-sizing:border-box}
.mesera-login-shell{width:min(920px,100%);display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);align-items:center;gap:clamp(18px,4vw,62px)}
.mesera-login-intro{color:#fff}.mesera-login-intro img{display:block;width:min(360px,90%);height:auto;object-fit:contain;margin-bottom:24px}.mesera-login-tag{display:inline-block;padding:7px 12px;border:1px solid #9ac7ef;border-radius:99px;background:#d8ebff22;color:#dceeff;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.mesera-login-intro h1{max-width:520px;color:#fff;font-size:clamp(27px,4vw,45px);line-height:1.08;margin:17px 0 12px}.mesera-login-intro p{max-width:440px;color:#d9e9ff;line-height:1.5;font-size:16px}
.mesera-login .auth-card{width:100%;max-width:none;box-sizing:border-box;border-radius:22px;padding:25px;background:#fff;box-shadow:0 24px 70px #00152c80;border:1px solid #d9e7f5}.mesera-login .system-clock-badge{position:static;width:max-content;margin:0 0 15px auto;background:#ebf5ff;color:#123e73;box-shadow:none}.mesera-login .login-copy h1{color:var(--mesera-ink);font-size:25px}.mesera-login .pin-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}.mesera-login .pin-keypad button{min-height:52px;border-radius:11px;font-size:19px;font-weight:800;background:#eef6ff;color:#123d6e;border:1px solid #c6dbf0;touch-action:manipulation}.mesera-login .pin-keypad button:active{background:#bbdefc}.mesera-login input[data-pin-input]{min-height:50px;font-size:22px;letter-spacing:.15em}.mesera-login .login-form>.btn{min-height:50px;font-size:16px;border-radius:11px}.mesera-login .auth-back{display:block;margin-top:13px;text-align:center;color:#1c5a96}
.mesera-install-button{border:1px solid #8bbdeb;background:#e7f3ff;color:#124b86;border-radius:11px;min-height:44px;padding:8px 13px;font:800 13px system-ui,sans-serif;cursor:pointer}.mesera-install-button[hidden]{display:none!important}.mesera-login-card>.mesera-install-button{width:100%;margin-top:10px}
.mesera-pwa{background:linear-gradient(160deg,#0d1d38,#172f54);min-height:100dvh;color:#eaf4ff}.mesera-pwa .touch-shell{max-width:1320px;padding:14px clamp(12px,2vw,24px) 90px}.mesera-pwa .phase2-touch-brand{background:#102449;border:1px solid #ffffff28;border-radius:16px;padding:8px 14px;margin-bottom:12px;min-height:68px}.mesera-pwa .phase2-touch-brand img{width:clamp(125px,18vw,230px);max-height:65px}.mesera-brand-actions{display:flex;align-items:center;gap:8px}.mesera-pwa .phase2-touch-brand .btn{min-height:44px;display:inline-flex;align-items:center}.mesera-pwa .touch-clock{position:static;width:max-content;margin:0 auto 10px;background:#274d8b;color:#fff}
.mesera-pwa .touch-header{padding:12px 16px;min-height:0;background:#f3f9ff;color:var(--mesera-ink);border:1px solid #bbd6f0;box-shadow:0 8px 22px #081c3440}.mesera-pwa .touch-header h1{color:var(--mesera-ink)!important;font-size:clamp(21px,2.3vw,30px)}.mesera-pwa .touch-header p{color:#335578!important}.mesera-pwa .touch-header .eyebrow{color:#246bad!important}.mesera-pwa .touch-header-actions{display:flex;gap:8px;flex-wrap:wrap}.mesera-pwa .touch-header-actions .btn{min-height:44px}
.mesera-pwa .touch-table-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.mesera-pwa .touch-table-card{border-radius:16px;border-width:2px;min-width:0;padding:12px;gap:7px;background:#fff;box-shadow:0 10px 25px #04163148;opacity:1}.mesera-pwa .touch-table-card.available{border-color:#65c39d}.mesera-pwa .touch-table-card.occupied{border-color:#ef7171}.mesera-pwa .touch-table-card.pending_payment{border-color:#f2bf4a}.mesera-pwa .pool-card-top{min-width:0}.mesera-pwa .pool-card-top strong{font-size:15px;color:#112e57}.mesera-pwa .touch-table-img{height:100px;max-height:none;background:#f1f7fc}.mesera-pwa .touch-table-image-link{min-height:0}.mesera-pwa .touch-table-card .touch-open{min-height:46px;font-size:13px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.2}.mesera-pwa .touch-timer{font-size:clamp(20px,2.3vw,29px)}
.mesera-pwa .btn,.mesera-pwa button,.mesera-pwa input,.mesera-pwa select{touch-action:manipulation}.mesera-pwa .btn,.mesera-pwa button{min-height:44px}.mesera-pwa input:not([type=checkbox]):not([type=radio]),.mesera-pwa select,.mesera-pwa textarea{min-height:44px;font-size:16px}.mesera-pwa input[type=checkbox],.mesera-pwa input[type=radio]{min-width:20px;min-height:20px}.mesera-pwa .panel,.mesera-pwa .cart-panel{border-radius:15px}.mesera-pwa .phase2-bill-grid{gap:10px}.mesera-pwa .phase2-receipt-body{padding:12px}.mesera-pwa .phase2-receipt-line{gap:8px;min-width:0}.mesera-pwa .phase2-receipt-line>*{min-width:0}.mesera-pwa .phase2-receipt-line b{white-space:normal;text-align:right}.mesera-pwa .touch-product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.mesera-pwa .touch-product-card{padding:10px}.mesera-pwa .touch-product-card .btn{min-height:44px}
.mesera-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:70;display:flex;justify-content:center;gap:5px;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#102449ee;backdrop-filter:blur(16px);border-top:1px solid #b7d8f850}.mesera-bottom-nav a{display:grid;place-items:center;min-width:110px;min-height:45px;padding:4px 10px;border-radius:11px;color:#d9eaff;text-decoration:none;font-size:13px;font-weight:800;text-align:center}.mesera-bottom-nav a[aria-current=page]{background:#eaf5ff;color:#123d72}
@media(max-width:900px){.mesera-pwa .phase2-bill-grid{grid-template-columns:1fr}.mesera-pwa .touch-pos-layout{grid-template-columns:1fr}.mesera-pwa .touch-cart-panel{position:static}.mesera-pwa .touch-table-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.mesera-login-shell{max-width:430px;grid-template-columns:1fr;gap:9px}.mesera-login-intro{text-align:center}.mesera-login-intro img{width:min(245px,72%);margin:0 auto 6px}.mesera-login-intro h1,.mesera-login-intro p,.mesera-login-tag{display:none}.mesera-login .auth-card{padding:18px}.mesera-pwa .phase2-touch-brand{min-height:55px}.mesera-pwa .phase2-touch-brand img{width:min(155px,42vw)}.mesera-pwa .phase2-touch-brand .btn{font-size:12px}.mesera-pwa .touch-table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mesera-pwa .touch-header{align-items:stretch}.mesera-pwa .touch-header-actions .btn{flex:1}.mesera-pwa .touch-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mesera-pwa .touch-table-card{padding:9px}.mesera-pwa .touch-table-img{height:77px}.mesera-pwa .touch-table-card .touch-open{min-height:48px}.mesera-pwa .pool-card-top{flex-wrap:wrap}.mesera-pwa .pool-card-top .status-pill{font-size:10px}.mesera-pwa .phase2-receipt header{padding:10px}.mesera-pwa .phase2-receipt-body{padding:10px}}
@media(max-width:380px){.mesera-pwa .touch-table-grid{grid-template-columns:1fr}.mesera-pwa .touch-table-img{height:95px}.mesera-bottom-nav a{min-width:0;flex:1;font-size:12px}}
@media(display-mode:standalone){.mesera-login .auth-back{display:none}}
.mesera-pwa .phase2-product-card,.mesera-pwa .pos-product-card{background:#fff!important;color:#172b45!important}
.mesera-pwa .phase2-product-card strong,.mesera-pwa .pos-product-card strong{color:#132944!important;font-weight:900!important;opacity:1!important}
.mesera-pwa .phase2-product-card .product-foot b,.mesera-pwa .pos-product-card .product-foot b{color:#0b4c88!important;font-weight:900!important;opacity:1!important}
.mesera-pwa .phase2-product-card label,.mesera-pwa .pos-product-card label{color:#1b3552!important;font-weight:700!important}
.mesera-pwa .phase2-head .phase2-back-tables{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;background:#d8edff!important;color:#0d4b8b!important;border:2px solid #76baf1!important;border-radius:12px;font-weight:900;box-shadow:0 5px 13px #081d3650}
.mesera-bottom-nav a{border:2px solid transparent;color:#fff;box-shadow:0 3px 10px #06173555}.mesera-bottom-nav a:nth-child(1){background:#176fc0}.mesera-bottom-nav a:nth-child(2){background:#068467}.mesera-bottom-nav a:nth-child(3){background:#7147ad}.mesera-bottom-nav a[aria-current=page]{color:#fff;background:#176fc0;border-color:#ffde69;box-shadow:0 0 0 2px #ffde6940,0 5px 18px #0007;transform:translateY(-2px)}.mesera-bottom-nav a:nth-child(2)[aria-current=page]{background:#068467}.mesera-bottom-nav a:nth-child(3)[aria-current=page]{background:#7147ad}
.mesera-bottom-nav a:nth-child(4){background:#b45309}.mesera-bottom-nav a:nth-child(4)[aria-current=page]{background:#b45309}.mesera-bottom-nav a{min-width:0;flex:0 1 125px;white-space:nowrap}@media(max-width:520px){.mesera-bottom-nav{gap:3px;padding-left:5px;padding-right:5px}.mesera-bottom-nav a{flex:1;min-width:0;padding:4px 2px;font-size:11px}}
.mesera-history{padding:12px!important}.mesera-history-ticket{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:11px 13px;margin:0 0 8px;border:1px solid #c5ddf3;border-radius:12px;background:#f7fbff;color:#102c50;text-decoration:none}.mesera-history-ticket strong{font-size:15px;color:#0d4b8b}.mesera-history-ticket span{grid-column:1;grid-row:2;font-size:12px;color:#425e7c}.mesera-history-ticket b{grid-column:2;grid-row:1/3;font-size:15px;color:#0b6851;white-space:nowrap}.mesera-history-ticket:focus-visible,.mesera-history-ticket:hover{outline:2px solid #2187ce;background:#ecf6ff}.mesera-history-pages{display:flex;gap:8px;justify-content:center}

.mesera-bottom-nav button[data-cashcalc-open]{flex:0 1 125px;min-width:0;min-height:45px;padding:4px 9px;border:2px solid transparent;border-radius:11px;background:#0e7490;color:#fff;font:800 13px system-ui,sans-serif;box-shadow:0 3px 10px #06173555;cursor:pointer;white-space:nowrap}
.mesera-bottom-nav button[data-cashcalc-open]:focus-visible,.mesera-bottom-nav button[data-cashcalc-open]:hover{border-color:#ffde69;background:#0a6078;outline:none}
@media(max-width:520px){.mesera-bottom-nav button[data-cashcalc-open]{flex:1;padding:4px 2px;font-size:10px}}
