*{box-sizing:border-box;margin:0;padding:0}
:root{--b:#2563EB;--g:#16a34a;--r:#dc2626;--o:#f59e0b;--g1:#f9fafb;--g2:#f3f4f6;--g3:#e5e7eb;--g4:#9ca3af;--g6:#4b5563;--g8:#1f2937;--w:#fff;--sh:0 2px 12px rgba(0,0,0,.08);--shl:0 8px 32px rgba(0,0,0,.12)}
html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--g1);color:var(--g8);-webkit-font-smoothing:antialiased;overflow:hidden}
#app{height:100vh;display:flex;flex-direction:column}
.sc{height:100vh;display:flex;flex-direction:column;overflow:hidden}
.tb{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--w);border-bottom:1px solid var(--g3);min-height:52px;flex-shrink:0}
.tbt{font-weight:700;font-size:17px}
.wb{font-size:14px;font-weight:600;color:var(--b);background:#eff6ff;padding:6px 12px;border-radius:20px}
.btn{display:flex;align-items:center;justify-content:center;padding:14px;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;width:100%;font-family:inherit}
.btn:active{opacity:.85}
.btn:disabled{opacity:.4}
.bb{background:var(--b);color:#fff}
.bo{background:#fff;color:var(--b);border:2px solid var(--b)}
.bg{background:var(--g);color:#fff}
.bam{background:#fffbeb;color:var(--o);border:2px solid var(--o)}
.blg{padding:18px;font-size:18px;border-radius:16px}
.bic{background:none;border:none;color:var(--b);font-size:14px;font-weight:600;cursor:pointer;padding:4px 8px;font-family:inherit}
.card{background:#fff;border-radius:20px;padding:24px;box-shadow:var(--sh)}
/* LOGIN */
.lsc{justify-content:center;align-items:center;padding:20px;gap:18px;background:linear-gradient(160deg,#eff6ff,#fff);overflow-y:auto}
.logo{font-size:58px;text-align:center}
.at{font-size:32px;font-weight:800;color:var(--b);text-align:center;letter-spacing:-1px}
.as{color:var(--g4);font-size:13px;text-align:center;margin-top:2px}
.lc{width:100%;max-width:360px;display:flex;flex-direction:column;gap:13px}
.lc h2{font-size:19px;font-weight:700}
.ht{font-size:13px;color:var(--g4)}
.sp{display:flex;align-items:center;gap:10px;color:var(--g4);font-size:13px}
.sp::before,.sp::after{content:'';flex:1;height:1px;background:var(--g3)}
.fg{display:flex;flex-direction:column;gap:5px}
.fg label{font-size:13px;font-weight:600;color:var(--g6)}
input{width:100%;padding:13px 15px;border:2px solid var(--g3);border-radius:12px;font-size:16px;font-family:inherit;color:var(--g8);background:#fff;outline:none;-moz-appearance:textfield}
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}
input:focus{border-color:var(--b)}
.er{color:var(--r);font-size:14px;padding:8px;background:#fef2f2;border-radius:8px;text-align:center}
.dbg{background:#1e293b;color:#94a3b8;font-size:11px;padding:10px;border-radius:8px;font-family:monospace;word-break:break-all;max-height:100px;overflow-y:auto;margin-top:4px}
/* TABLE */
.tsc{background:#fff}
.cct{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:32px}
.cct h2{font-size:26px;font-weight:700}
.tbig{font-size:64px!important;font-weight:800!important;text-align:center;width:160px;padding:18px!important;border-radius:20px!important;border:3px solid var(--g3)!important;color:var(--b)!important}
.tbig:focus{border-color:var(--b)!important}
.bnt{max-width:250px}
/* ORDER */
.osc{background:var(--g1)}
.oc{flex:1;overflow-y:auto;padding:10px 14px 80px}
.ch{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--g4);padding:8px 2px}
.mi{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:13px 14px;border-radius:12px;margin-bottom:5px;box-shadow:var(--sh)}
.mii{display:flex;flex-direction:column;gap:2px}
.mn{font-weight:600;font-size:15px}
.mp{font-size:12px;color:var(--g4)}
.qc{display:flex;align-items:center;gap:10px}
.qb{width:34px;height:34px;border-radius:50%;border:none;font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit}
.qb:disabled{opacity:.3}
.qbp{background:var(--b);color:#fff}
.qbm{background:var(--g2);color:var(--g8)}
.qn{font-size:17px;font-weight:700;min-width:22px;text-align:center}
.ct{background:#fff;border-radius:16px;padding:14px;margin-top:8px;box-shadow:var(--shl);border:2px solid #eff6ff}
.cth{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--g3)}
.ctt{color:var(--b);font-size:17px}
.cr{display:flex;justify-content:space-between;font-size:13px;padding:3px 0;color:var(--g6)}
/* CASH */
.casc{background:var(--g1)}
.cac{flex:1;overflow-y:auto;padding:18px 14px 40px;display:flex;flex-direction:column;gap:14px}
.cc{background:#fff;border-radius:20px;padding:18px 22px;box-shadow:var(--sh)}
.tc{background:var(--b)}
.tc .cl{color:rgba(255,255,255,.8)}
.tc .ca{color:#fff}
.cl{font-size:13px;font-weight:600;color:var(--g4);margin-bottom:4px}
.ca{font-size:48px;font-weight:800;letter-spacing:-2px}
.gi{font-size:44px!important;font-weight:800!important;text-align:center;border:none!important;padding:0!important;width:100%;color:var(--g8)!important;letter-spacing:-2px}
.qr{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.cac>*{flex-shrink:0}
.qkb{flex-shrink:0;padding:11px 15px;border-radius:12px;border:2px solid var(--b);background:#fff;color:var(--b);font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.qkbp{background:var(--b);color:#fff}
.chgc{border:2px solid #dcfce7}
.cgg{color:var(--g)!important}
/* UTILS */
#lov{position:fixed;inset:0;background:rgba(255,255,255,.88);display:flex;align-items:center;justify-content:center;z-index:200}
.spin{width:44px;height:44px;border:4px solid var(--g3);border-top-color:var(--b);border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.hidden{display:none!important}
#qrv{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:100;background:#000}
#qrcb{position:fixed;top:20px;right:20px;z-index:101;background:rgba(0,0,0,.65);color:#fff;border:none;border-radius:50%;width:48px;height:48px;font-size:22px;cursor:pointer;font-family:inherit}
#qrcanv{display:none}
.note-badge{font-size:11px;color:#ea580c;margin-top:2px}
.sb-toggle{display:flex;align-items:center;gap:6px;font-size:13px;color:#7c3aed;margin-top:10px;user-select:none}
.sb-toggle input{width:16px;height:16px}
.cr-sb{display:flex;align-items:center;gap:6px;font-size:12px;color:#7c3aed;padding:2px 0 6px;margin-top:-2px}
.sbqb{width:22px;height:22px;border-radius:50%;border:none;background:#f3e8ff;color:#7c3aed;font-size:13px;font-weight:700;line-height:1}
.sbqb:disabled{opacity:0.35}
.sbqn{min-width:34px;text-align:center;font-weight:600}
.sbqamt{margin-left:auto;color:#7c3aed}
.note-sheet{position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:150;display:flex;align-items:flex-end}
.note-inner{background:#fff;width:100%;border-radius:20px 20px 0 0;padding:24px;display:flex;flex-direction:column;gap:14px;max-height:85vh;overflow-y:auto}
.note-title{font-size:18px;font-weight:700}
.note-subtitle{font-size:13px;color:#9ca3af}
.note-textarea{width:100%;padding:14px;border:2px solid #e5e7eb;border-radius:12px;font-size:16px;font-family:inherit;resize:none;outline:none;min-height:90px}
.note-textarea:focus{border-color:#2563EB}
.note-chips{display:flex;flex-wrap:wrap;gap:8px}
.note-chip{padding:8px 14px;border-radius:20px;border:2px solid #2563EB;background:#fff;color:#2563EB;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.note-actions{display:flex;gap:10px}
/* KITCHEN DISPLAY – reine Anzeige, kein Login, nichts anklickbar */
.ksc{background:#111827;color:#fff}
.ktb{padding:18px 20px;text-align:center;border-bottom:1px solid #374151;flex-shrink:0}
.ktbt{font-size:21px;font-weight:800}
.kts{font-size:12px;color:#9ca3af;margin-top:3px}
.kc{flex:1;overflow-y:auto;padding:14px 18px 30px}
.kch{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:#9ca3af;padding:14px 4px 8px}
.krow{display:flex;align-items:center;gap:16px;background:#1f2937;padding:16px 18px;border-radius:14px;margin-bottom:8px}
.kqty{font-size:26px;font-weight:800;color:#fff;background:#2563EB;border-radius:12px;min-width:58px;text-align:center;padding:8px 10px;flex-shrink:0}
.kname{font-size:20px;font-weight:700;flex:1;line-height:1.25}
.kempty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#6b7280}
.kwarn{background:#7f1d1d}
.kage{font-size:12px;font-weight:800;color:#fecaca;background:#991b1b;padding:5px 10px;border-radius:8px;flex-shrink:0}
.pending-banner{background:#fef3c7;color:#92400e;font-size:12px;font-weight:700;text-align:center;padding:8px 12px;border-radius:10px;margin-bottom:10px}
.note-actions .btn{flex:1}
.wlist{display:flex;flex-direction:column;gap:8px}
.wbtn{display:flex;align-items:center;padding:14px 16px;background:#eff6ff;border:2px solid #bfdbfe;border-radius:12px;font-size:16px;font-weight:600;color:#1d4ed8;cursor:pointer;font-family:inherit;text-align:left;transition:all 0.15s}
.wbtn:active{background:#dbeafe;transform:scale(0.98)}
.wbtn::before{content:'👤';margin-right:10px;font-size:18px}
/* DEMO-MODUS: schmale Leiste oben (nicht unten, damit sie nie einen Button verdeckt) */
#demobar{display:none}
body.demo #demobar{display:flex;position:fixed;top:0;left:0;right:0;height:30px;z-index:200;background:#f59e0b;color:#1f2937;font-size:12px;font-weight:700;align-items:center;justify-content:center;gap:10px;padding:0 10px}
body.demo #demobar button{background:#1f2937;color:#fff;border:none;border-radius:12px;font-size:11px;font-weight:700;padding:3px 10px;font-family:inherit;cursor:pointer}
body.demo #app{margin-top:30px;height:calc(100vh - 30px)}
body.demo .sc{height:calc(100vh - 30px)}
.demohint{font-size:12px;color:var(--g4);text-align:center;margin-top:6px}
.mbtn{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border:2px solid var(--g3);border-radius:14px;background:#fff;cursor:pointer;font-family:inherit;text-align:left;color:var(--g8)}
.mbtn:active{background:var(--g2)}
.mic{font-size:30px;flex-shrink:0}
.mtx{display:flex;flex-direction:column;gap:2px}
.mtx b{font-size:17px}
.mtx small{font-size:13px;color:var(--g6)}
