:root{--green: #00753a;--green-dark: #005c2e;--yellow: #fedd00;--cream: #faf6ef;--ink: #1e2a23;--muted: #6b7a71;--radius: 14px}*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--cream);color:var(--ink);overscroll-behavior:none}button{font:inherit;border:none;cursor:pointer;background:none;color:inherit}.app{min-height:100dvh;display:flex;flex-direction:column}header{background:var(--green);color:#fff;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;z-index:10}header h1{font-size:19px;letter-spacing:.3px}header .day{font-size:12px;opacity:.85}header .bt{background:#ffffff26;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;white-space:nowrap}header .bt.on{background:var(--yellow);color:var(--ink)}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 16px;position:sticky;top:58px;background:var(--cream);z-index:9}.tabs button{padding:12px 6px;border-radius:999px;background:#fff;font-size:14.5px;font-weight:600;white-space:nowrap;border:2px solid transparent;box-shadow:0 1px 3px #00000012}.tabs button.active{background:var(--green);color:#fff}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:4px 16px 110px}.card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 6px #00000014;text-align:left;display:flex;flex-direction:column;transition:transform .08s}.card:active{transform:scale(.96)}.card img{width:100%;aspect-ratio:4/3;object-fit:cover}.card .noimg{width:100%;aspect-ratio:4/3;display:grid;place-items:center;font-size:44px;background:#f0ece3}.card-body{padding:10px 12px;display:flex;flex-direction:column;gap:2px}.card .name{font-weight:700;font-size:14.5px;line-height:1.25}.card .price{color:var(--green);font-weight:800;font-size:15px}.cartbar{position:fixed;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 16px);background:var(--green);color:#fff;border-radius:var(--radius);padding:16px 18px;display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;box-shadow:0 6px 20px #005c2e66}.cartbar strong{margin-left:auto;font-size:18px}.cartbar .badge{background:var(--yellow);color:var(--ink);border-radius:999px;min-width:28px;height:28px;display:grid;place-items:center;font-size:15px}.cart{padding:16px 16px 40px;display:flex;flex-direction:column;gap:12px}.back{align-self:flex-start;color:var(--green);font-weight:700;font-size:16px;padding:6px 0}.customer{width:100%;padding:15px 16px;border-radius:var(--radius);border:2px solid transparent;background:#fff;font:inherit;font-size:16px;font-weight:600;box-shadow:0 1px 3px #0000000f}.customer:focus{outline:none;border-color:var(--green)}.customer::placeholder{color:#9aa8a0;font-weight:500}.service{display:flex;gap:10px}.service button{flex:1;padding:14px;border-radius:var(--radius);background:#fff;font-weight:700;font-size:15px;border:2px solid transparent}.service button.active{border-color:var(--green);background:#e8f5ee}.cartline{background:#fff;border-radius:var(--radius);padding:12px 14px;display:flex;align-items:center;gap:10px;box-shadow:0 1px 3px #0000000f}.cartline .info{flex:1;display:flex;flex-direction:column;gap:2px}.cartline .name{font-weight:700;font-size:15.5px}.cartline .detail{font-size:13px;color:var(--muted)}.cartline .lineprice{font-weight:700;color:var(--green);font-size:14.5px}.qty{display:flex;align-items:center;gap:4px}.qty button{width:42px;height:42px;border-radius:12px;background:#eef2ee;font-size:24px;font-weight:700;color:var(--green-dark)}.qty span{min-width:30px;text-align:center;font-weight:800;font-size:17px}.total-row{display:flex;justify-content:space-between;padding:8px 4px;font-size:20px;font-weight:800}.validate{background:var(--green);color:#fff;border-radius:var(--radius);padding:18px;font-size:17px;font-weight:800;width:100%}.validate:disabled{opacity:.4}.validate.ghost{background:transparent;color:var(--green);border:2px solid var(--green);padding:15px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:flex-end;z-index:20}.sheet{background:var(--cream);width:100%;border-radius:20px 20px 0 0;padding:22px 18px calc(env(safe-area-inset-bottom) + 20px);display:flex;flex-direction:column;gap:14px;max-height:85dvh;overflow-y:auto}.sheet h2{font-size:20px}.optlabel{font-weight:700;font-size:14px;color:var(--muted)}.optgroup{display:flex;gap:8px}.optgroup.wrap{flex-wrap:wrap}.optgroup button{flex:1 0 auto;padding:12px 14px;border-radius:12px;background:#fff;border:2px solid transparent;font-size:14.5px;font-weight:600;box-shadow:0 1px 3px #0000000f}.optgroup button.active{border-color:var(--green);background:#e8f5ee}.ticketscreen{padding:20px 16px 40px;display:flex;flex-direction:column;gap:14px;align-items:center}.ordernum{font-size:22px;font-weight:800;color:var(--green-dark)}.orderdate{font-size:14px;font-weight:600;color:var(--muted);margin-top:-8px}.ticket{background:#fff;border-radius:8px;padding:18px 14px;font-family:SF Mono,ui-monospace,Menlo,monospace;font-size:11.5px;line-height:1.5;white-space:pre;overflow-x:auto;max-width:100%;box-shadow:0 2px 10px #0000001a;border-top:6px dashed #ddd;border-bottom:6px dashed #ddd}.sumup-banner{margin:10px 16px 0;padding:13px 16px;border-radius:var(--radius);font-weight:700;text-align:center;cursor:pointer}.sumup-banner.success{background:#d9f2e3;color:var(--green-dark)}.sumup-banner.failed{background:#fde3e3;color:#a33}.sumup-btn{background:#0070ba;color:#fff;border-radius:var(--radius);padding:18px;font-size:17px;font-weight:800;width:100%}header .compta-btn{background:#ffffff26;border-radius:999px;width:40px;height:40px;font-size:18px;margin-left:auto;flex-shrink:0}.compta{padding:16px 16px 40px;display:flex;flex-direction:column;gap:12px}.compta h2{font-size:19px;color:var(--green-dark)}.compta h3{font-size:15px;color:var(--muted);margin-top:8px}.caisse{background:var(--green);color:#fff;border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:14px}.caisse-total{display:flex;justify-content:space-between;align-items:center}.caisse-total strong{font-size:26px}.caisse-split{display:flex;gap:8px}.caisse-split>button{flex:1;background:#ffffff1f;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:2px;color:#fff;text-align:left;border:2px solid transparent}.caisse-split>button.sel{border-color:var(--yellow);background:#ffffff38}.caisse-split span{font-size:12px;opacity:.85}.caisse-split strong{font-size:16px}.compta-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.compta-head select{font:inherit;font-size:14px;font-weight:700;color:var(--green-dark);background:#fff;border:none;border-radius:10px;padding:10px 12px;box-shadow:0 1px 3px #00000014;max-width:55%}.orderline{background:#fff;border-radius:10px;padding:11px 14px;display:flex;flex-direction:column;gap:4px;box-shadow:0 1px 3px #0000000d}.orderline-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.orderline-head .time{color:var(--muted);font-size:13px}.orderline-head .who{font-weight:600;font-size:13px}.orderline-head .pay{font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px}.orderline-head .pay.especes{background:#fff3c4}.orderline-head .pay.carte{background:#dcebff}.orderline-head .amount{margin-left:auto;color:var(--green-dark)}.orderline-items{font-size:12.5px;color:var(--muted)}.orderline.cancelled{opacity:.55}.orderline.cancelled .orderline-items,.orderline.cancelled .amount{text-decoration:line-through}.orderline-head .pay.sumup-ok{background:#d9f2e3;color:var(--green-dark)}.orderline-head .pay.test{background:#f3f3f3;color:#a33}.cancel-line{align-self:flex-start;font-size:12px;font-weight:700;color:#a33;padding:4px 0}.statlist{display:flex;flex-direction:column;gap:6px}.statline{background:#fff;border-radius:10px;padding:11px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;box-shadow:0 1px 3px #0000000d}.statline.cat{background:#e8f5ee;font-weight:700}.statline span{display:flex;flex-direction:column}.statline em{font-style:normal;font-size:12px;color:var(--muted)}.statline strong{font-size:17px;color:var(--green-dark)}.pinscreen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--green);color:#fff;padding:20px}.pinscreen h1{font-size:24px}.pinscreen p{opacity:.8;font-weight:600}.pindots{display:flex;gap:16px}.pindots span{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.7)}.pindots span.full{background:var(--yellow);border-color:var(--yellow)}.pindots.shake{animation:shake .35s}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.pinpad{display:grid;grid-template-columns:repeat(3,76px);gap:14px;margin-top:10px}.pinpad button{height:76px;border-radius:50%;background:#ffffff1f;color:#fff;font-size:28px;font-weight:700}.pinpad button:active{background:#ffffff4d}.pstate{font-weight:600;color:var(--muted);text-align:center}.pstate.ok{color:var(--green)}.syncstate{font-size:13px;font-weight:600;color:var(--muted);text-align:center}.syncstate.ok{color:var(--green)}.reprint{background:var(--yellow);border-radius:var(--radius);padding:14px 20px;font-weight:800;font-size:16px}header .online-btn{position:relative;margin-right:6px}header .online-btn.alert{background:var(--yellow);color:var(--ink);animation:pulse 1.2s infinite}header .online-btn .badge{position:absolute;top:-6px;right:-6px;background:#d62828;color:#fff;border-radius:999px;font-size:11px;font-weight:700;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.08)}}.online{padding:12px;display:flex;flex-direction:column;gap:12px}.online-head{display:flex;align-items:center;gap:10px}.online-head h2{flex:1;margin:0;font-size:18px}.online-help{font-size:14px;opacity:.8;margin:0}.online-help.small{font-size:12px;text-align:center;opacity:.6}.online-key{width:100%;padding:12px;border:1px solid #ccc;border-radius:10px;font-size:16px}.online-card{background:#fff;border-radius:14px;padding:12px;box-shadow:0 2px 8px #00000014;border:2px solid transparent}.online-card.new{border-color:var(--yellow)}.online-card.accepted{border-color:#1f5e3b33}.online-entete .ordernum{font-size:22px;font-weight:800;display:flex;justify-content:space-between}.online-total{font-size:18px}.online-meta{font-size:13px;opacity:.85;margin-top:2px}.online-meta a{color:inherit}.online-note{font-size:13px;font-style:italic;margin-top:4px}.online-eta{font-weight:700;color:#1f5e3b;margin:6px 0 0}.online-articles{list-style:none;padding:0;margin:10px 0;border-top:1px dashed #ddd;border-bottom:1px dashed #ddd}.online-articles li{display:flex;justify-content:space-between;padding:6px 0;font-size:15px}.online-actions{display:flex;flex-direction:column;gap:8px}.online-actions .validate{width:100%}.online-row{display:flex;gap:8px}.online-row input,.online-row select{flex:1;min-width:0;padding:10px;border:1px solid #ccc;border-radius:10px;font-size:15px}.online-row button{padding:10px 14px;border-radius:10px;border:1px solid #1f5e3b;background:#fff;color:#1f5e3b;font-weight:700}.linkbtn{background:none;border:none;text-decoration:underline;color:inherit;padding:0;font-size:inherit}.pstate.err{color:#b3261e}
