/* CaféYar Waiter — mobile app design layer, 2026.10.31
   Kept separate from core CSS so legacy POS and admin styling is unaffected. */
:root{--wa-page:#f4f7f4;--wa-ink:#17372c;--wa-muted:#75877d;--wa-accent:#175944;--wa-line:#e6ede7;--wa-white:#fff}
body{background:var(--wa-page);color:var(--wa-ink);overscroll-behavior-y:contain}
.wa-ui{max-width:1140px;margin:0 auto;padding:18px 22px 112px;min-height:100dvh}
.wa-ui .i,.wa-login .i{width:22px;height:22px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.wa-ui .wa-top{background:var(--wa-white);color:var(--wa-ink);border:1px solid var(--wa-line);border-radius:23px;display:flex;align-items:center;gap:12px;padding:11px 15px;box-shadow:0 8px 30px #173b2c08}
.wa-logo{flex:none;width:46px;height:46px;border-radius:15px;background:#e4f2e8;color:#195640;display:grid;place-items:center}
.wa-logo .i{width:27px;height:27px;stroke-width:1.9}
.wa-brandcopy{flex:1;min-width:0}
.wa-ui .wa-brand{font-size:19px;font-weight:900;letter-spacing:-.5px;line-height:1.5}
.wa-ui .wa-sub{font-size:11px;color:#829389;line-height:1.7}
.wa-ui .wa-utilities{display:flex;align-items:center;gap:5px}
.wa-ui .wa-utilities button{display:grid;place-items:center;width:39px;height:39px;padding:0;border:1px solid #e8eee9;background:#f7f9f7;border-radius:12px;color:#305c47;transition:background .15s}
.wa-ui .wa-utilities button:hover{background:#e9f2ea}
.wa-ui .wa-utilities .i{width:19px;height:19px}
.wa-ui .wa-greeting{padding:24px 2px 17px;align-items:flex-end}
.wa-ui .wa-greeting h1{font-size:26px;letter-spacing:-.6px;font-weight:900;margin:3px 0}
.wa-ui .wa-greeting h1 span{font-size:24px}
.wa-ui .wa-greeting p{font-size:12px;color:var(--wa-muted);line-height:1.6;margin:2px 0}
.wa-eyebrow{font-size:12px;color:#648573;font-weight:700}
.wa-ui .wa-status{display:flex;align-items:center;gap:7px;padding:8px 11px;background:#e4f4e8;color:#286d45;border-radius:35px;font-size:11px;font-weight:800;margin-bottom:5px}
.wa-ui .wa-status.off{background:#fff0ec;color:#9b4d3b}
.wa-online-dot{width:7px;height:7px;border-radius:50%;background:#41a16b;box-shadow:0 0 0 3px #41a16b25}
.wa-status.off .wa-online-dot{background:#c16750;box-shadow:none}
.wa-urgent{background:#ebf5ef;color:#205a42;border:1px solid #cfe3d6;border-radius:17px;padding:12px 14px;width:100%;display:flex;align-items:center;gap:12px;text-align:right;margin-bottom:13px}
.wa-urgent-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:#d8ebdf;color:#1c6448;flex:none}
.wa-urgent-icon .i{width:22px;height:22px}
.wa-urgent span:nth-child(2){display:flex;flex:1;flex-direction:column;line-height:1.6}
.wa-urgent strong{font-weight:850;font-size:13px}
.wa-urgent small{font-size:11px;color:#598570}
.wa-urgent-chevron{margin-right:auto}
.wa-urgent-chevron .i{width:18px;height:18px}
.wa-ui .wa-demo-note{background:#fff7e8;border:1px solid #eed6a8;color:#896422;border-radius:13px;margin:12px 0;padding:11px 13px;display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.7}
.wa-demo-note .i{width:18px;height:18px}
.wa-ui .wa-tabs{display:none}
.wa-ui .wa-card{border:1px solid #e3ebe4;box-shadow:0 7px 28px #173c2510;border-radius:23px;padding:21px}
.wa-ui .wa-section-head{margin-bottom:15px;align-items:center}
.wa-ui .wa-section-head h2{font-size:21px;font-weight:900;letter-spacing:-.4px;margin:3px 0 0}
.wa-ui .wa-section-head p{font-size:12px;margin-top:4px}
.wa-overline{font-size:10px;letter-spacing:.25px;color:#7d9585;font-weight:800}
.wa-refresh-soft{width:40px;height:40px;border-radius:12px;border:1px solid #dbe9dd;background:#f6faf6;color:#357252;display:grid;place-items:center}
.wa-refresh-soft .i{width:19px;height:19px}
.wa-ui .wa-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:2px 0 16px}
.wa-ui .wa-stat{display:flex;align-items:center;gap:10px;min-width:0;background:#fff;border:1px solid #e4eae4;border-radius:19px;padding:14px 15px;color:#1b513b;box-shadow:0 4px 13px #123c2406}
.wa-stat-symbol{flex:none;display:grid;place-items:center;width:42px;height:42px;background:#eef6ef;border-radius:13px;color:#316849}
.wa-stat-symbol .i{width:21px;height:21px}
.wa-stat>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.wa-stat strong{font-weight:950;font-size:25px;line-height:1.3;letter-spacing:-.5px}
.wa-stat small{font-size:11px;color:#748c7c;white-space:nowrap}
.wa-table-filters{display:flex;gap:7px;margin:0 0 15px}
.wa-table-filters button{border:1px solid #e5ede6;background:#f6f8f6;color:#638071;padding:7px 14px;border-radius:26px;font-weight:750;font-size:12px;display:inline-flex;align-items:center;gap:7px}
.wa-table-filters button span{font-size:10px;opacity:.85}
.wa-table-filters button.active{background:#235e48;border-color:#235e48;color:#fff}
.wa-ui .wa-table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.wa-ui .wa-table-container{position:relative;display:block;min-width:0;min-height:169px}
.wa-ui .wa-table-container>.wa-table{height:100%;min-height:169px;width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;text-align:right;padding:14px 14px 12px;border-radius:18px;border:2px solid transparent;transition:transform .13s,box-shadow .13s;overflow:hidden}
.wa-ui .wa-table-container>.wa-table.wa-table--free{background:var(--wa-free-bg,#eef7f1);border-color:#d2e2d5;color:var(--wa-free-fg,#173b2f);box-shadow:none}
.wa-ui .wa-table-container>.wa-table.wa-table--occupied{background:var(--wa-busy-bg,#1b6655);border-color:var(--wa-busy-bg,#1b6655);color:var(--wa-busy-fg,#fff);box-shadow:0 7px 18px #1b66551e}
.wa-ui .wa-table-container>.wa-table:hover{transform:translateY(-2px);filter:none}
.wa-table-top{display:flex;align-items:center;gap:6px;height:21px}
.wa-table-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.65}
.wa-table-state{font-size:10px;opacity:.85;font-weight:750}
.wa-table-name{font-size:24px;font-weight:950;line-height:1.5;letter-spacing:-.5px;margin-top:1px}
.wa-ui .wa-table-area{font-size:10.5px;opacity:.8;font-weight:500;color:inherit;line-height:1.4}
.wa-table-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:5px;padding-top:7px;flex-wrap:wrap}
.wa-table-status{font-size:10.5px;font-weight:750;line-height:1.5;padding:4px 8px;border-radius:7px;background:#ffffff80;color:inherit;white-space:normal}
.wa-table--occupied .wa-table-status{background:#ffffff25}
.wa-table-orders{font-size:10px;opacity:.75}
.wa-table-alerts{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;min-height:22px}
.wa-table-alerticon{display:inline-flex;align-items:center;gap:3px;border:1px solid #ffffff5c;background:#ffffffdf;color:#285a43;border-radius:8px;padding:3px 5px;line-height:1}
.wa-table-alerticon .i{width:15px;height:15px}
.wa-table-alerticon small{font-size:10px;color:inherit!important}
.wa-ui .wa-table-container>.wa-release-table-btn{position:absolute;z-index:5;top:7px;left:7px;width:39px;height:39px;min-width:39px;min-height:39px;padding:7px;display:grid;place-items:center;border:0;border-radius:13px;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;opacity:1}
.wa-ui .wa-table-container>.wa-release-table-btn>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;font:750 18px/1 system-ui,sans-serif;background:#ffffffeb;color:#2c6249;border:1px solid #c7dacf;box-shadow:0 2px 9px #13241e22}
.wa-ui .wa-table-container>.wa-release-table-btn:hover{background:transparent;filter:none}
.wa-ui .wa-table-container>.wa-release-table-btn:hover>span{border-color:#ad4250;color:#a82b3b}
.wa-ui .wa-table-container>.wa-release-table-btn:focus-visible{outline:3px solid #d2b071;outline-offset:0}
.wa-ui .wa-table-container>.wa-table--attention{outline:2px solid #80bd9a;outline-offset:1px}
.wa-ui .wa-table-container>.wa-table--attention:not(:focus-visible){animation:wa-mobile-shake .6s ease-in-out 2}
.wa-no-anim .wa-table--attention{animation:none!important}
@keyframes wa-mobile-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}50%{transform:translateX(3px)}75%{transform:translateX(-2px)}}
.wa-table-help{display:flex;align-items:flex-start;gap:7px;margin:15px 0 0;color:#819186;font-size:11px}
.wa-table-help .i{width:15px;height:15px;margin-top:3px}
.wa-ui .wa-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;position:fixed;z-index:35;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:700px;background:#ffffffed;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:10px 11px calc(10px + env(safe-area-inset-bottom));border:1px solid #e6ede7;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px #0e3c2815}
.wa-ui .wa-bottom button{border:0;background:transparent;color:#819184;border-radius:13px;min-height:56px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;font-weight:700;font-size:11px;padding:5px 2px;line-height:1.3;position:relative}
.wa-ui .wa-bottom button.active{background:#e9f4eb;color:#215c43;font-weight:900}
.wa-nav-icon{display:inline-grid;place-items:center;position:relative}
.wa-nav-icon .i{width:22px;height:22px;stroke-width:1.8}
.wa-nav-count{position:absolute;top:-6px;right:-13px;min-width:16px;height:16px;border-radius:10px;background:#24694c;color:#fff;display:grid;place-items:center;font-size:10px;padding:0 3px;line-height:1}
.wa-ui .wa-bottom button.active .wa-nav-count{background:#1d6146}
.wa-ui .wa-main{animation:wa-main-enter .2s ease both}
@keyframes wa-main-enter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.wa-ui .wa-order-card,.wa-ui .wa-alert-card{align-items:center;gap:12px}
.wa-ui .wa-order-card h3{font-size:14px}
.wa-ui .wa-order-details span{font-size:12px}
.wa-ui .wa-alert-icon{background:#e8f3e9;color:#2a684d;border-radius:13px}
.wa-ui .wa-btn{background:#1d664e;color:white;border-radius:13px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px}
.wa-ui .wa-btn.sec{background:#e9f3eb;color:#215c45}
.wa-ui .wa-btn.outline{background:#fff;color:#2e5b44;border:1px solid #d6e5da}
.wa-product-picture{width:56px;height:56px;display:grid;place-items:center;background:#f0f5ee;border-radius:12px;flex:none;overflow:hidden}
.wa-product-picture img{width:100%;height:100%;object-fit:cover}
.wa-product-copy{flex:1;min-width:0;text-align:right}
.wa-ui .wa-product{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;border-radius:15px;min-height:80px;text-align:right}
.wa-ui .wa-product .wa-add{flex:none;border-radius:11px}
.wa-ui .wa-chips button.active{background:#1c624b}
.wa-ui .wa-login-card{border-radius:24px}
.wa-install-card{display:flex;align-items:flex-start;gap:14px;margin:24px 0 8px;background:#e9f4ec;border:1px solid #d1e7d7;border-radius:17px;padding:16px}
.wa-install-icon{width:48px;height:48px;border-radius:14px;background:#d2ebdc;color:#22684d;flex:none;display:grid;place-items:center}
.wa-install-icon .i{width:25px;height:25px}
.wa-install-card strong{font-size:15px}
.wa-install-card p{font-size:12px;color:#65816f;margin:2px 0 12px}
.wa-install-card .wa-btn{min-height:39px}
.wa-ui .wa-settings{max-width:670px}
.wa-ui .wa-option{font-size:13px}
.wa-confirm-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;background:#142a2387;backdrop-filter:blur(3px);padding:0}
.wa-confirm-overlay .wa-release-dialog{width:min(100%,470px);max-height:92dvh;overflow-y:auto;background:#fff;border-radius:25px 25px 0 0;padding:26px 24px calc(28px + env(safe-area-inset-bottom));box-shadow:0 -22px 50px #0c2b1a27;text-align:right;animation:wa-sheet-up .23s ease both}
@keyframes wa-sheet-up{from{transform:translateY(50px);opacity:.5}to{transform:translateY(0);opacity:1}}
.wa-release-dialog-icon{height:56px;width:56px;display:grid;place-items:center;border-radius:18px;background:#e8f3ea;color:#246447;margin-bottom:14px}
.wa-release-dialog-icon .i{width:30px;height:30px}
.wa-release-dialog h2{margin:4px 0 12px;font-size:21px;font-weight:900}
.wa-release-subtitle{margin:4px 0 16px;color:#586f61;font-size:13px;line-height:1.9}
.wa-release-detail,.wa-demo-inline{background:#f2f7f2;border-radius:12px;padding:12px;font-size:12px;color:#597362}
.wa-demo-inline{background:#fff8e7;color:#997335}
.wa-release-warning{display:flex;gap:9px;align-items:center;color:#a05c26;background:#fff3e8;border:1px solid #f0d8bb;border-radius:12px;padding:12px;margin:12px 0}
.wa-release-warning .i{width:21px;height:21px}
.wa-release-dialog .wa-dialog-actions{display:flex;gap:9px;margin-top:20px}
.wa-release-dialog .wa-dialog-actions .wa-btn{flex:1;min-height:49px}
.wa-release-dialog .wa-dialog-actions .wa-btn:disabled{opacity:.48}
.wa-ui .wa-update-notice{background:#e9f4e9;border:1px solid #c9e4cc;border-radius:13px;color:#2d6445}
@media(min-width:930px){.wa-ui{padding-bottom:120px}.wa-ui .wa-top{padding:14px 18px}.wa-ui .wa-bottom{max-width:520px}.wa-confirm-overlay{align-items:center}.wa-confirm-overlay .wa-release-dialog{border-radius:22px;padding:26px}}
@media(max-width:850px){.wa-ui{padding:12px 14px 111px}.wa-ui .wa-table-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wa-ui .wa-stats{gap:9px}.wa-ui .wa-stat{padding:12px}.wa-ui .wa-card{padding:17px}.wa-ui .wa-order-layout{grid-template-columns:1fr}.wa-ui .wa-cart{position:static}}
@media(max-width:560px){.wa-ui{padding:11px 12px calc(103px + env(safe-area-inset-bottom))}.wa-ui .wa-top{padding:9px 10px;border-radius:17px;gap:9px}.wa-logo{width:42px;height:42px;border-radius:13px}.wa-logo .i{width:24px;height:24px}.wa-ui .wa-brand{font-size:18px}.wa-ui .wa-sub{font-size:10px}.wa-ui .wa-utilities{gap:3px}.wa-ui .wa-utilities button{width:35px;height:35px;border-radius:11px}.wa-ui .wa-utilities .i{width:18px;height:18px}.wa-ui .wa-greeting{padding:18px 2px 14px}.wa-ui .wa-greeting h1{font-size:22px}.wa-eyebrow{font-size:11px}.wa-ui .wa-greeting p{font-size:11px}.wa-ui .wa-status{padding:6px 9px;font-size:10px}.wa-ui .wa-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:13px}.wa-ui .wa-stat{padding:10px 7px;gap:6px;border-radius:14px}.wa-stat-symbol{width:29px;height:29px;border-radius:10px}.wa-stat-symbol .i{width:17px;height:17px}.wa-stat strong{font-size:18px}.wa-stat small{font-size:9px;white-space:normal}.wa-ui .wa-card{padding:14px 12px;border-radius:18px}.wa-ui .wa-section-head h2{font-size:18px}.wa-ui .wa-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wa-ui .wa-table-container{min-height:159px}.wa-ui .wa-table-container>.wa-table{min-height:159px;padding:12px 10px 10px;border-radius:15px}.wa-table-name{font-size:21px}.wa-table-state,.wa-table-area{font-size:10px}.wa-table-foot{gap:3px}.wa-table-status{font-size:10px;padding:3px 5px}.wa-ui .wa-table-container>.wa-release-table-btn{top:5px;left:5px;width:36px;height:36px;padding:6px}.wa-ui .wa-table-container>.wa-release-table-btn>span{width:24px;height:24px;font-size:18px}.wa-ui .wa-bottom{border-radius:19px 19px 0 0}.wa-ui .wa-product-grid{grid-template-columns:1fr}.wa-ui .wa-order-card,.wa-ui .wa-alert-card{gap:8px}.wa-ui .wa-actions{min-width:85px}}
@media(max-width:365px){.wa-ui .wa-utilities button{width:31px;height:32px}.wa-logo{width:36px;height:36px}.wa-ui .wa-brand{font-size:16px}.wa-stat-symbol{display:none}.wa-ui .wa-stat{justify-content:center}.wa-ui .wa-table-status{font-size:9px}}
@media(prefers-reduced-motion:reduce){.wa-ui .wa-main,.wa-confirm-overlay .wa-release-dialog,.wa-ui .wa-table--attention{animation:none!important}}

/* QA refinements: inherited RTL right:0 clipped half of the bottom navigation. */
.wa-ui .wa-bottom{right:auto;left:50%;transform:translateX(-50%);box-sizing:border-box}
.wa-confirm-overlay .i{width:22px;height:22px;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.wa-confirm-overlay .wa-release-dialog-icon .i{width:30px;height:30px}

/* 2026-10-31 - unified Cafeeyar waiter palette: cream, deep café green and coffee brown; no purple. */
:root{--wa-page:#f6f4ef;--wa-ink:#203d32;--wa-muted:#728176;--wa-accent:#175944;--wa-line:#e7e4dd;--wa-coffee:#8b5e3c}
body{background:var(--wa-page)}
.wa-ui .wa-top{background:#fffefa;border-color:#e7e4dd;box-shadow:0 7px 23px #2e392312}
.wa-ui .wa-card{border-color:#e9e6df;background:#fffefa;box-shadow:0 6px 25px #343b2510}
.wa-ui .wa-brand{color:#244936}.wa-ui .wa-sub{color:#8a897f}
.wa-ui .wa-logo{background:#e9f0e5;color:#285c43}
.wa-ui .wa-utilities button{background:#f8f7f2;border-color:#e5e6dc;color:#38634c}
.wa-ui .wa-greeting h1,.wa-ui .wa-section-head h2{color:#244634}
.wa-ui .wa-eyebrow{color:#847866}
.wa-ui .wa-urgent{background:#eff6eb;border-color:#d7e6d5;color:#235e43}
.wa-ui .wa-urgent-icon,.wa-ui .wa-stat-symbol{background:#e7f2e8;color:#27634b}
.wa-ui .wa-table-filters button{background:#f9f8f3;border-color:#e4e7df;color:#486857}
.wa-ui .wa-table-filters button.active,.wa-ui .wa-btn,.wa-ui .wa-chips button.active{background:#175944;border-color:#175944;color:#fff}
.wa-ui .wa-btn.sec{background:#e9f3ea;color:#215e47}
.wa-ui .wa-btn.outline{background:#fffefa;color:#265943;border-color:#cfddd1}
.wa-ui .wa-table-container>.wa-table.wa-table--free{background:var(--wa-free-bg,#eef7f1);border-color:#d6e1d5;color:var(--wa-free-fg,#254536)}
.wa-ui .wa-table-container>.wa-table.wa-table--occupied{background:var(--wa-busy-bg,#1b6655);border-color:var(--wa-busy-bg,#1b6655);color:var(--wa-busy-fg,#fff)}
.wa-ui .wa-bottom{background:#fffefaee;border-color:#e8e6de;box-shadow:0 -8px 32px #3c302011}
.wa-ui .wa-bottom button.active{background:#e8f2e9;color:#175944}
.wa-ui .wa-update-notice{background:#e7f3e9;border:1px solid #c5e0cc;color:#1c5a3e}
.wa-support-card{margin:12px 0 0;border:1px solid #e4e7dc;background:#fafaf5;border-radius:17px;padding:15px}
.wa-support-card strong{display:block;font-size:14px;color:#244a38}
.wa-support-card p{font-size:12px;color:#6b7769;line-height:1.8;margin:7px 0 11px}
.wa-support-card .wa-btn{min-height:39px;text-decoration:none;font-size:12px}
@media(prefers-reduced-motion:reduce){.wa-ui .wa-main{animation:none}}
