:root{--bg:#f8f4ed;--card:#fff;--ink:#2e302d;--muted:#7c817e;--line:#eee6da;--orange:#ec713b;--orangedark:#cf5323;--peach:#fff0e6;--green:#2d8a6c;--shadow:0 4px 16px rgba(76,48,29,.045);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;overscroll-behavior-y:none}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #ebb383;outline-offset:2px}button:disabled{opacity:.5;cursor:default}.shell{min-height:100dvh;display:grid;grid-template-columns:90px minmax(0,1fr)}.sidebar{position:sticky;top:0;align-self:start;height:100dvh;background:#fff;border-right:1px solid var(--line);padding:26px 11px;display:flex;flex-direction:column;gap:12px;z-index:5}.brand{width:58px;height:58px;margin:0 auto 17px;background:var(--orange);color:white;border-radius:18px;display:grid;place-items:center;font-size:31px;box-shadow:0 7px 18px #ec713b45}.navbtn{border:0;background:transparent;min-height:70px;border-radius:15px;color:#8b8c88;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:700}.navbtn span{font-size:23px}.navbtn.active{background:var(--peach);color:var(--orangedark)}.sidebottom{margin-top:auto;text-align:center;font-size:11px;line-height:1.5;color:var(--muted)}.content{min-width:0;padding:28px 30px 36px;max-width:1900px;width:100%;margin:auto}.head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.head h1{font-size:27px;margin:0 0 4px;font-weight:900;letter-spacing:-.7px}.head p{margin:0;color:var(--muted);font-size:13px}.righthead{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;flex-wrap:wrap}.pill{display:inline-flex;gap:5px;align-items:center;background:#e8f6ed;color:var(--green);border-radius:20px;padding:7px 11px;font-size:12px;font-weight:800}.btn{background:#fff;border:1px solid var(--line);color:var(--ink);padding:11px 16px;border-radius:13px;font-weight:800;min-height:44px}.btn.primary{background:var(--orange);border-color:var(--orange);color:#fff}.btn.primary:hover{background:var(--orangedark)}.btn.dark{background:#333e38;border-color:#333e38;color:white}.btn.green{background:#e5f5eb;color:var(--green);border-color:#dbefdf}.btn.danger{background:#fff1ef;color:#b84f42;border-color:#f9dcdb}.btn.slim{padding:7px 10px;min-height:37px;font-size:12px}.btn.wide{width:100%}.btn.tiny{min-height:34px;padding:6px 10px;font-size:12px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.table-strip{padding:16px;margin-bottom:18px}.sectionbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 13px}.sectionbar h2{font-size:16px;margin:0;font-weight:900}.secondary{font-size:12px;color:var(--muted)}.table-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.tablebtn{background:#fffbf6;border:1px solid #eee3d5;min-height:68px;border-radius:13px;font-weight:800;font-size:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.tablebtn small{color:var(--muted);font-size:10px;font-weight:500}.tablebtn.active{background:var(--orange);border-color:var(--orange);color:white}.tablebtn.active small{color:#ffddcc}.tablebtn.occupied:not(.active){border-color:#f7c5a3;background:#fff2e8}.poslayout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:18px;align-items:start}.menupanel{padding:19px;min-width:0}.categorybar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 16px}.category{padding:10px 18px;background:#f6f4ef;border:1px solid transparent;border-radius:20px;font-weight:800;font-size:14px;white-space:nowrap;min-height:42px}.category.active{background:#333e38;color:#fff}.search{padding:10px 13px;border:1px solid var(--line);border-radius:11px;background:#fafaf7;min-width:0;width:min(240px,100%)}.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.foodbtn{text-align:left;background:#fff;border:1px solid #f0e9df;border-radius:15px;min-height:168px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;position:relative}.foodbtn:active{transform:scale(.98)}.foodemoji{font-size:39px;line-height:1.2}.foodtitle{margin-top:14px;font-weight:900;font-size:15px;line-height:1.4}.fooddetail{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.foodprice{color:var(--orange);font-weight:900;font-size:18px;margin-top:auto;padding-top:8px}.plus{position:absolute;right:12px;bottom:14px;color:var(--orange);background:var(--peach);width:29px;height:29px;border-radius:10px;display:grid;place-items:center;font-size:20px}.cart{position:sticky;top:22px;padding:20px;min-width:0}.cartheader{display:flex;justify-content:space-between;align-items:center;gap:8px}.cartheader h2{font-size:18px;margin:0}.cartlist{min-height:180px;max-height:min(47vh,470px);overflow-y:auto;margin:14px 0;border-top:1px dashed var(--line)}.cartempty{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:13px}.cartempty span{font-size:40px}.cartline{padding:13px 0;border-bottom:1px dashed var(--line)}.cartlinehead{display:flex;gap:8px;justify-content:space-between}.cartline strong{font-size:14px}.cartline .sub{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0 8px}.stepper{display:flex;gap:8px;align-items:center}.stepper button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#f9f7f1;font-size:19px}.stepper strong{min-width:18px;text-align:center}.delete{border:0;background:transparent;color:#b85444;margin-left:auto;font-size:12px}.totals{padding-top:14px;border-top:1px solid var(--line)}.totalrow{display:flex;align-items:center;justify-content:space-between}.totalrow b{font-size:29px;color:var(--orange)}.payhint{font-size:12px;color:var(--muted);margin:9px 0 14px;line-height:1.5}.layout-head{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{border:1px solid var(--line);border-radius:12px;background:#fff;min-height:44px;padding:10px 15px;font-weight:800}.tab.active{background:#333e38;color:#fff;border-color:#333e38}.ordergrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ordercard{padding:18px;min-width:0}.orderhead{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.ordernum{font-size:19px;font-weight:900}.order-meta{font-size:12px;color:var(--muted);line-height:1.8;margin-top:7px}.tag{padding:6px 10px;border-radius:10px;background:#fff0e6;color:#c36a36;font-size:12px;font-weight:900;white-space:nowrap}.tag.preparing{background:#ecf3ff;color:#3377b4}.tag.ready{background:#e7f6ed;color:#358765}.tag.done{background:#f0f0ee;color:#777}.tag.cancelled{background:#ffefef;color:#b94f4e}.orderitems{margin:14px 0;padding:13px 0;border-block:1px dashed var(--line);font-size:13px;line-height:1.65}.orderitem{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.orderitemsmall{display:block;color:var(--muted);font-size:11px;margin-top:1px}.orderfoot{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}.actiongroup{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px}.stat{padding:18px}.stat label{display:block;color:var(--muted);font-size:13px}.stat strong{font-size:30px;display:block;margin-top:9px;color:#3c413e}.stat small{color:var(--muted);font-size:11px}.notice{background:#fff6e9;border:1px solid #ffe4cb;border-radius:13px;padding:13px 16px;color:#895b3e;font-size:13px;line-height:1.7}.menutable{width:100%;border-collapse:collapse}.menutable th,.menutable td{border-bottom:1px solid var(--line);padding:14px 10px;text-align:left;font-size:14px}.menutable th{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.statusdot{height:8px;width:8px;display:inline-block;border-radius:10px;background:#62b985;margin-right:6px}.statusdot.off{background:#c9c9c9}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty .emoji{font-size:49px}.empty b{display:block;margin:12px 0;font-size:18px;color:var(--ink)}#overlay{position:fixed;z-index:30;inset:0;pointer-events:none}#overlay.active{pointer-events:auto;background:rgba(22,34,29,.45);display:flex;justify-content:center;align-items:center;padding:16px}.modal{max-width:550px;max-height:min(90dvh,800px);overflow-y:auto;background:white;width:100%;padding:23px;border-radius:21px;box-shadow:0 15px 55px #0002}.modal h2{font-size:21px;margin:0}.modalheader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.xbtn{height:36px;width:36px;border-radius:10px;border:0;background:#f7f6f3;font-size:21px}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field label{font-size:13px;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid #ddd9d3;border-radius:12px;background:white;color:var(--ink);padding:13px;font-size:16px;min-height:45px}.field textarea{min-height:74px;resize:vertical}.fieldrow{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choicebox{border-top:1px solid var(--line);padding:15px 0}.choicebox h3{font-size:14px;margin:0 0 10px}.choicelist{display:flex;gap:7px;flex-wrap:wrap}.choice{border:1px solid #e6e2db;border-radius:11px;padding:10px 13px;font-size:13px;display:flex;align-items:center;gap:7px}.choice:has(input:checked){border-color:var(--orange);background:var(--peach)}.choice input{accent-color:var(--orange)}.modalfooter{display:flex;gap:8px;justify-content:flex-end;margin-top:22px}.formerror{color:#b44848;font-size:12px}.backupactions{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.loginpage{min-height:100dvh;display:grid;place-items:center;padding:20px}.logincard{padding:34px;width:min(430px,100%);text-align:center}.loginmark{width:75px;height:75px;margin:auto;background:var(--orange);border-radius:22px;color:white;font-size:39px;display:grid;place-items:center}.logincard h1{font-size:24px}.logincard p{font-size:13px;line-height:1.7;color:var(--muted)}.logincard .field{text-align:left}.carttoggle{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border-radius:12px;background:#293c31;color:#fff;padding:13px 18px;font-size:13px;opacity:0;transition:.2s;pointer-events:none;z-index:60;box-shadow:0 10px 32px #0002}#toast.show{opacity:1}#receipt{display:none}
@media(max-width:1300px){.poslayout{grid-template-columns:minmax(0,1fr) 320px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ordergrid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:23px 20px}.foodbtn{min-height:154px}}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:9px 14px;display:flex;flex-direction:row;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0;width:46px;height:46px;font-size:25px;border-radius:13px}.navbtn{min-height:48px;min-width:60px;padding:3px 6px}.navbtn span{font-size:20px}.sidebottom{display:none}.content{padding:22px 16px}.poslayout{grid-template-columns:minmax(0,1fr) 300px;gap:12px}.table-row{grid-template-columns:repeat(4,minmax(0,1fr))}.tablebtn{min-height:60px}.menupanel,.cart{padding:14px}.ordergrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:670px){.head h1{font-size:23px}.head p{font-size:12px}.righthead{display:none}.sidebar{padding:7px 8px}.brand{width:37px;height:41px;font-size:21px}.navbtn{font-size:10px;min-width:51px}.navbtn span{font-size:18px}.poslayout{grid-template-columns:minmax(0,1fr)}.cart{position:static;margin-bottom:25px}.cart.collapsed{display:none}.carttoggle{display:flex;position:sticky;bottom:0;width:100%;padding:12px;background:white;border-top:1px solid var(--line);box-shadow:0 -5px 17px #0001;z-index:10;justify-content:space-between;align-items:center;gap:10px}.content{padding-bottom:88px}.table-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.tablebtn{min-height:57px;font-size:12px}.menupanel{padding:12px}.menu-grid{gap:9px}.foodbtn{min-height:155px;padding:13px}.foodtitle{font-size:13px}.foodemoji{font-size:34px}.fooddetail{font-size:10px}.ordergrid,.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:13px}.stat strong{font-size:24px}.menutable{min-width:570px}.scrolltable{overflow-x:auto}.righthead{display:none}.fieldrow{grid-template-columns:1fr}.sectionbar{flex-wrap:wrap}}@media(max-width:430px){.ordergrid{grid-template-columns:1fr}.sidebar .navbtn{min-width:46px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body{background:white}#app,#overlay,#toast{display:none!important}#receipt{display:block!important;font-family:monospace;width:70mm;margin:0 auto;font-size:12px}.receiptname{text-align:center;font-size:20px}.receiptline{display:flex;justify-content:space-between}.receiptdivider{border-bottom:1px dashed;margin:10px 0}}
