/* ==========================================================================
   CATBYTE QR Order — interactive demo
   Staff views use the CATBYTE dark theme; the customer phone uses a warm
   restaurant look so the two sides are easy to tell apart.
   ========================================================================== */
:root{
  --qo-bg:#020617; --qo-panel:#0b1224; --qo-card:#111a2e; --qo-card-2:#1b2740; --qo-line:rgba(148,163,184,.16);
  --qo-text:#e2e8f0; --qo-muted:#94a3b8; --qo-primary:#2563eb; --qo-accent:#06b6d4;
  --qo-green:#22c55e; --qo-amber:#f59e0b; --qo-red:#ef4444;
  --ph-bg:#fffaf4; --ph-ink:#2b211b; --ph-muted:#8a7565; --ph-line:#f0e4d6; --ph-brand:#c2410c;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; min-height:100vh; color:var(--qo-text); font:400 15px/1.6 'Prompt', system-ui, sans-serif;
  background:var(--qo-bg);
  background-image:radial-gradient(900px 480px at 88% -10%, rgba(37,99,235,.18), transparent 60%), radial-gradient(700px 420px at -10% 0%, rgba(6,182,212,.10), transparent 60%);
  background-attachment:fixed;
}
button, input, select, textarea{ font:inherit; color:inherit; }
a{ color:var(--qo-accent); }
[hidden]{ display:none !important; }
svg{ display:block; }

/* ---------- top bar ---------- */
.qo-top{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; gap:14px; padding:10px 20px;
  background:rgba(2,6,23,.86); backdrop-filter:blur(12px); border-bottom:1px solid var(--qo-line);
}
.qo-brand{ display:flex; align-items:center; gap:10px; margin:0; font:700 1rem 'Inter','Prompt', sans-serif; color:#fff; white-space:nowrap; }
.qo-brand img{ width:30px; height:30px; }
.qo-brand b{ color:var(--qo-accent); }
.qo-badge{ padding:2px 8px; border-radius:999px; border:1px solid rgba(245,158,11,.45); background:rgba(245,158,11,.12); color:#fbbf24; font:600 .75rem 'Inter', sans-serif; letter-spacing:.08em; }
.qo-tabs{ display:flex; gap:4px; margin:0 auto; padding:4px; border-radius:14px; background:rgba(15,23,42,.85); border:1px solid var(--qo-line); }
.qo-tabs a{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 14px; border-radius:10px;
  color:var(--qo-muted); text-decoration:none; font-weight:500; font-size:.9rem; white-space:nowrap;
}
.qo-tabs a:hover{ color:#fff; }
.qo-tabs a[aria-current="page"]{ background:var(--qo-primary); color:#fff; }
.qo-tabs em{ min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--qo-red); color:#fff; font:600 .7rem/18px 'Inter', sans-serif; font-style:normal; text-align:center; }
.qo-tabs em:empty{ display:none; }
.qo-top__actions{ display:flex; gap:6px; }
.qo-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:40px; min-height:40px; padding:0 12px; border-radius:10px;
  border:1px solid var(--qo-line); background:transparent; color:var(--qo-muted); font-size:.85rem; text-decoration:none; cursor:pointer;
}
.qo-ghost:hover{ color:#fff; border-color:rgba(148,163,184,.45); }
.qo-ghost.is-warn{ color:#fbbf24; border-color:rgba(245,158,11,.6); }
@media (max-width:900px){
  .qo-top{ flex-wrap:wrap; gap:8px; padding:8px 12px; }
  .qo-tabs{ order:3; width:100%; display:grid; grid-template-columns:repeat(4, 1fr); }
  .qo-tabs a{ gap:6px; padding:0 4px; font-size:.82rem; }
  .qo-top__actions{ margin-left:auto; }
}
@media (max-width:520px){ .qo-tabs a i, .qo-ghost:not(.is-warn) span{ display:none; } }

/* ---------- layout + shared ---------- */
main{ max-width:1280px; margin:0 auto; padding:28px 20px 64px; }
@media (max-width:600px){ main{ padding:14px 12px 40px; } }
.qo-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:20px; }
.qo-kicker{ margin:0 0 .4rem; font:600 .72rem 'Inter', sans-serif; letter-spacing:.16em; text-transform:uppercase; color:var(--qo-accent); }
.qo-h2{ margin:0; font-size:clamp(1.45rem, 3vw, 2rem); font-weight:700; line-height:1.25; color:#fff; }
.qo-sub{ margin:.35rem 0 0; color:var(--qo-muted); }
.qo-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 16px;
  border:0; border-radius:10px; background:var(--qo-card-2); color:#fff; font-weight:600; font-size:.9rem; cursor:pointer;
}
.qo-btn:hover{ filter:brightness(1.08); }
.qo-btn--primary{ background:linear-gradient(135deg, var(--qo-primary), #0891b2); }
.qo-btn--amber{ background:var(--qo-amber); color:#1f1300; }
.qo-btn--green{ background:var(--qo-green); color:#03220f; }
.qo-btn--light{ background:#e2e8f0; color:#0f172a; }
.qo-btn--block{ width:100%; }

/* ---------- customer ---------- */
.qo-cust{ display:grid; gap:28px; align-items:start; }
@media (min-width:980px){ .qo-cust{ grid-template-columns:minmax(0,1fr) 400px; gap:56px; } .qo-intro{ padding-top:24px; } }
.qo-intro{ max-width:560px; }
.qo-intro > p{ color:var(--qo-muted); }
.qo-try{ display:grid; gap:10px; margin:22px 0; padding:0; list-style:none; counter-reset:step; }
.qo-try li{ counter-increment:step; position:relative; padding:12px 14px 12px 52px; border-radius:14px; background:var(--qo-card); border:1px solid var(--qo-line); font-size:.92rem; }
.qo-try li::before{ content:counter(step); position:absolute; left:14px; top:12px; width:26px; height:26px; border-radius:50%; background:rgba(37,99,235,.22); color:#93c5fd; font:600 .8rem/26px 'Inter', sans-serif; text-align:center; }
.qo-field{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.qo-field label{ color:var(--qo-muted); font-size:.9rem; }
.qo-field select{ min-height:42px; padding:0 12px; border-radius:10px; border:1px solid var(--qo-line); background:var(--qo-card); color:#fff; }
.qo-tip{ display:flex; gap:8px; margin:18px 0 0; padding:12px 14px; border-radius:12px; background:rgba(6,182,212,.08); border:1px solid rgba(6,182,212,.25); color:#a5f3fc !important; font-size:.88rem; }
.qo-tip i{ margin-top:4px; }
.qo-small{ margin:12px 0 0; font-size:.8rem; }
.qo-scan-note{ display:none; }
.qo-scanned .qo-scan-note{ display:block; padding:10px 14px; border-radius:12px; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); color:#fde68a !important; font-size:.88rem; }
.qo-scanned .qo-try, .qo-scanned .qo-field, .qo-scanned .qo-tip{ display:none; }
@media (max-width:979px){ .qo-scanned .qo-intro > p:not(.qo-scan-note){ display:none; } }

/* phone frame */
.qo-phone{
  position:relative; width:100%; max-width:400px; margin:0 auto;
  height:min(800px, calc(100vh - 120px)); min-height:620px; padding:12px; border-radius:46px;
  background:#0a0f1c; border:1px solid rgba(148,163,184,.25);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.85), inset 0 0 0 2px #1e293b;
}
.qo-phone::before{ content:""; position:absolute; top:22px; left:50%; z-index:20; width:92px; height:24px; margin-left:-46px; border-radius:999px; background:#000; }
.qo-phone__screen{ position:relative; display:flex; flex-direction:column; height:100%; overflow:hidden; border-radius:36px; background:var(--ph-bg); color:var(--ph-ink); }
/* On a real phone the page itself is the customer screen: no frame, no nested scrolling */
@media (max-width:600px){
  .qo-phone{ max-width:none; height:auto; min-height:0; padding:0; border:0; border-radius:20px; background:none; box-shadow:none; }
  .qo-phone::before{ display:none; }
  .qo-phone__screen{ height:auto; min-height:70vh; overflow:visible; border-radius:20px; }
  .qo-phone__screen > .ph-head{ border-radius:20px 20px 0 0; }
}

/* phone UI */
.ph-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:52px 18px 12px; background:#fff; }
@media (max-width:600px){ .ph-head{ padding-top:14px; } }
.ph-head small{ display:block; font-size:.72rem; color:var(--ph-muted); }
.ph-head strong{ font-size:1.05rem; }
.ph-table{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:var(--ph-brand); color:#fff; font-weight:600; font-size:.85rem; white-space:nowrap; }
.ph-tabs{ display:grid; grid-template-columns:1fr 1fr; background:#fff; border-bottom:1px solid var(--ph-line); }
.ph-tabs button{ min-height:44px; border:0; border-bottom:2px solid transparent; background:none; color:var(--ph-muted); font-weight:500; font-size:.9rem; cursor:pointer; }
.ph-tabs button.is-on{ color:var(--ph-brand); border-bottom-color:var(--ph-brand); }
.ph-tabs b{ display:inline-block; min-width:18px; height:18px; margin-left:6px; padding:0 5px; border-radius:999px; background:var(--ph-brand); color:#fff; font-size:.7rem; line-height:18px; }
.ph-body{ flex:1; overflow-y:auto; padding:14px 14px 92px; overscroll-behavior:contain; }
.ph-chips{ display:flex; gap:6px; margin:0 -14px 12px; padding:0 14px 2px; overflow-x:auto; scrollbar-width:none; }
.ph-chips::-webkit-scrollbar{ display:none; }
.ph-chips button{ flex:none; min-height:38px; padding:0 14px; border-radius:999px; border:1px solid #eadccc; background:#fff; color:#6f5d50; font-size:.85rem; cursor:pointer; }
.ph-chips button.is-on{ background:var(--ph-ink); border-color:var(--ph-ink); color:#fff; }
.ph-menu{ display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.ph-menu li{ display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:12px; align-items:center; padding:8px 10px 8px 8px; border-radius:16px; background:#fff; border:1px solid var(--ph-line); }
.ph-art{ width:72px; height:72px; border-radius:12px; overflow:hidden; }
.ph-art svg{ width:100%; height:100%; }
.ph-item strong{ display:block; font-weight:500; font-size:.92rem; line-height:1.35; }
.ph-item small{ display:block; font-size:.75rem; color:var(--ph-muted); }
.ph-price{ display:block; margin-top:2px; font-weight:600; color:var(--ph-brand); }
.ph-add{ width:42px; height:42px; border:0; border-radius:12px; background:var(--ph-brand); color:#fff; cursor:pointer; }
.ph-qty{ display:inline-flex; align-items:center; gap:4px; }
.ph-qty button{ width:36px; height:36px; border-radius:10px; border:1px solid #eadccc; background:#fff; color:var(--ph-ink); font-size:1.05rem; cursor:pointer; }
.ph-qty span{ min-width:18px; text-align:center; font-weight:600; }
.ph-cartbar{
  position:absolute; left:12px; right:12px; bottom:12px; z-index:5;
  display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:0 18px;
  border:0; border-radius:16px; background:var(--ph-ink); color:#fff; font-weight:500; cursor:pointer;
  box-shadow:0 14px 30px -12px rgba(0,0,0,.55);
}
.ph-cartbar b{ color:#fdba74; font-size:1.05rem; }
.ph-sheet-bg{ position:absolute; inset:0; z-index:9; background:rgba(30,16,6,.45); }
.ph-sheet{ position:absolute; left:0; right:0; bottom:0; z-index:10; max-height:86%; overflow-y:auto; padding:16px 16px 18px; border-radius:22px 22px 0 0; background:#fff; animation:phUp .25s ease; }
@keyframes phUp{ from{ transform:translateY(30px); opacity:0; } }
@media (max-width:600px){
  .ph-body{ overflow:visible; padding-bottom:96px; }
  .ph-cartbar{ position:fixed; z-index:150; }
  .ph-sheet-bg{ position:fixed; z-index:160; }
  .ph-sheet{ position:fixed; z-index:170; max-height:86vh; }
}
.ph-sheet__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.ph-sheet__head button{ width:40px; height:40px; border-radius:10px; border:1px solid #eadccc; background:#fff; cursor:pointer; }
.ph-cart{ margin:0 0 12px; padding:0; list-style:none; }
.ph-cart li{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid #f3ebe0; font-size:.9rem; }
.ph-cart b{ min-width:54px; text-align:right; }
.ph-label{ display:block; margin-bottom:4px; font-size:.82rem; color:var(--ph-muted); }
.ph-sheet textarea{ width:100%; padding:10px 12px; border-radius:12px; border:1px solid #eadccc; background:var(--ph-bg); color:var(--ph-ink); font-size:.88rem; resize:none; }
.ph-total{ display:flex; justify-content:space-between; align-items:center; margin:12px 0; }
.ph-total strong{ font-size:1.2rem; color:var(--ph-brand); }
.ph-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 16px; border:0; border-radius:14px; background:var(--ph-brand); color:#fff; font-weight:600; font-size:.9rem; cursor:pointer; }
.ph-btn--block{ width:100%; }
.ph-btn--soft{ background:#fff; color:var(--ph-ink); border:1px solid #eadccc; }
.ph-btn:disabled{ opacity:.55; cursor:default; }
.ph-empty{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:56px 10px; text-align:center; color:var(--ph-muted); }
.ph-empty > i{ font-size:2.2rem; opacity:.45; }
.ph-empty p{ margin:0 0 8px; }
.ph-empty--ok > i{ color:#16a34a; opacity:1; }
.ph-empty--ok strong{ color:var(--ph-ink); }
.ph-order{ margin-bottom:12px; padding:14px; border-radius:16px; background:#fff; border:1px solid var(--ph-line); }
.ph-order header{ display:flex; justify-content:space-between; font-size:.9rem; }
.ph-order header span{ color:var(--ph-muted); }
.ph-steps{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; margin:10px 0; padding:0; list-style:none; }
.ph-steps li{ padding-top:7px; border-top:4px solid var(--ph-line); color:#a8968a; font-size:.74rem; text-align:center; }
.ph-steps li.is-done{ border-top-color:#16a34a; color:#166534; font-weight:500; }
.ph-order ul{ margin:0; padding:0; list-style:none; font-size:.86rem; }
.ph-order ul li{ display:flex; justify-content:space-between; gap:8px; padding:2px 0; }
.ph-note{ margin:6px 0 0; font-size:.78rem; color:var(--ph-muted); }
.ph-actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* ---------- kitchen ---------- */
.qk-board{ display:grid; gap:16px; align-items:start; }
@media (min-width:900px){ .qk-board{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.qk-col{ min-height:220px; padding:14px; border-radius:18px; background:var(--qo-panel); border:1px solid var(--qo-line); }
.qk-col h3{ display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:.98rem; color:#fff; }
.qk-col h3 span{ min-width:28px; height:26px; margin-left:auto; padding:0 8px; border-radius:999px; background:var(--qo-card-2); font:600 .8rem/26px 'Inter', sans-serif; text-align:center; }
.qk-col--new h3 i{ color:#f87171; } .qk-col--cooking h3 i{ color:var(--qo-amber); } .qk-col--served h3 i{ color:var(--qo-green); }
.qk-card{ margin-bottom:10px; padding:12px 14px; border-radius:14px; background:var(--qo-card); border:1px solid var(--qo-line); border-left:4px solid #f87171; }
.qk-col--cooking .qk-card{ border-left-color:var(--qo-amber); }
.qk-col--served .qk-card{ border-left-color:var(--qo-green); }
.qk-card header{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
.qk-card header strong{ font-size:1.08rem; color:#fff; }
.qk-card header span{ font-size:.8rem; color:var(--qo-muted); }
.qk-card time{ margin-left:auto; padding:1px 8px; border-radius:6px; background:rgba(148,163,184,.12); font:600 .82rem 'Inter', sans-serif; font-variant-numeric:tabular-nums; color:#cbd5e1; }
.qk-card time.is-late{ background:rgba(239,68,68,.15); color:#fca5a5; }
.qk-card ul{ margin:8px 0 10px; padding:0; list-style:none; font-size:.94rem; }
.qk-card li b{ display:inline-block; min-width:28px; color:var(--qo-accent); }
.qk-note{ margin:0 0 10px; padding:6px 10px; border-radius:8px; background:rgba(245,158,11,.1); color:#fcd34d; font-size:.84rem; }
.qk-served{ margin:0; font-size:.8rem; color:var(--qo-muted); }
.qk-empty{ margin:0; padding:28px 0; text-align:center; color:var(--qo-muted); font-size:.88rem; }

/* ---------- cashier ---------- */
.qc-stats{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-bottom:18px; }
@media (min-width:900px){ .qc-stats{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.qc-stat{ padding:14px 16px; border-radius:16px; background:var(--qo-panel); border:1px solid var(--qo-line); }
.qc-stat span{ display:block; font-size:.8rem; color:var(--qo-muted); }
.qc-stat strong{ font:700 1.4rem 'Inter', sans-serif; color:#fff; }
.qc-layout{ display:grid; gap:18px; align-items:start; }
@media (min-width:980px){ .qc-layout{ grid-template-columns:minmax(0,1fr) 400px; } }
.qc-tables{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
@media (min-width:600px){ .qc-tables{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.qc-table{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:104px; padding:14px;
  border-radius:16px; border:1px solid var(--qo-line); background:var(--qo-panel); text-align:left; cursor:pointer;
}
.qc-table strong{ font-size:1rem; color:#fff; }
.qc-table span{ font-size:.8rem; color:var(--qo-muted); }
.qc-table b{ margin-top:auto; font:700 1.05rem 'Inter', sans-serif; }
.qc-table.is-busy{ border-color:rgba(59,130,246,.45); background:rgba(37,99,235,.08); } .qc-table.is-busy span{ color:#93c5fd; }
.qc-table.is-bill{ border-color:rgba(245,158,11,.6); background:rgba(245,158,11,.08); } .qc-table.is-bill span{ color:#fbbf24; }
.qc-table.is-call{ border-color:rgba(6,182,212,.6); background:rgba(6,182,212,.08); } .qc-table.is-call span{ color:#67e8f9; }
.qc-table.is-sel{ outline:2px solid #fff; outline-offset:2px; }
.qc-bill{ position:sticky; top:80px; padding:18px; border-radius:18px; background:var(--qo-panel); border:1px solid var(--qo-line); }
@media (max-width:979px){ .qc-bill{ position:static; } }
.qc-bill header{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.qc-bill h3{ margin:0; font-size:1.15rem; color:#fff; }
.qc-bill header span{ font-size:.8rem; color:var(--qo-muted); }
.qc-alert, .qc-warn{ display:flex; align-items:center; gap:8px; margin-bottom:8px; padding:8px 12px; border-radius:10px; font-size:.86rem; }
.qc-alert{ background:rgba(6,182,212,.1); color:#67e8f9; }
.qc-alert--bill{ background:rgba(245,158,11,.1); color:#fbbf24; }
.qc-alert button{ min-height:36px; margin-left:auto; padding:0 12px; border-radius:8px; border:1px solid rgba(6,182,212,.5); background:transparent; color:#67e8f9; cursor:pointer; }
.qc-warn{ background:rgba(239,68,68,.1); color:#fca5a5; }
.qc-lines{ width:100%; margin-top:4px; border-collapse:collapse; font-size:.9rem; }
.qc-lines td{ padding:7px 0; border-bottom:1px dashed var(--qo-line); }
.qc-lines td:nth-child(2){ width:48px; text-align:center; color:var(--qo-muted); }
.qc-lines td:last-child{ width:84px; text-align:right; }
.qc-total{ display:flex; justify-content:space-between; align-items:center; margin:12px 0 14px; }
.qc-total strong{ font:700 1.7rem 'Inter', sans-serif; color:#fff; }
.qc-label{ margin:0 0 6px; font-size:.8rem; color:var(--qo-muted); }
.qc-pay{ display:flex; gap:8px; margin-bottom:12px; }
.qc-pay label{ flex:1; display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border-radius:10px; border:1px solid var(--qo-line); font-size:.9rem; cursor:pointer; }
.qc-pay label:has(input:checked){ border-color:var(--qo-primary); background:rgba(37,99,235,.14); }
.qc-pay input{ accent-color:var(--qo-primary); }
.qc-cash label{ display:block; margin-bottom:4px; font-size:.8rem; color:var(--qo-muted); }
.qc-cash input{ width:100%; min-height:46px; padding:0 12px; border-radius:10px; border:1px solid var(--qo-line); background:#020617; color:#fff; font:600 1.1rem 'Inter', sans-serif; }
.qc-quick{ display:flex; gap:6px; margin-top:8px; }
.qc-quick button{ flex:1; min-height:40px; border-radius:9px; border:1px solid var(--qo-line); background:var(--qo-card); font-size:.85rem; cursor:pointer; }
.qc-change{ margin:10px 0 14px; color:var(--qo-muted); font-size:.92rem; }
.qc-change b{ margin-left:6px; color:var(--qo-green); font-size:1.1rem; }
.qc-qr{ display:flex; align-items:center; gap:14px; margin-bottom:14px; padding:14px; border-radius:12px; background:#fff; color:#0f172a; font-size:.9rem; }
.qc-qr i{ font-size:3.2rem; }
.qc-qr small{ color:#475569; }
.qc-empty{ margin:0; padding:20px 0; color:var(--qo-muted); font-size:.9rem; }

/* ---------- receipt ---------- */
.qo-receipt{ width:min(360px, calc(100vw - 24px)); padding:0; border:0; border-radius:16px; background:#fff; color:#0f172a; }
.qo-receipt::backdrop{ background:rgba(2,6,23,.72); }
.qo-receipt__paper{ padding:22px 20px 6px; font-size:.88rem; }
.qo-receipt h2{ margin:0; text-align:center; font-size:1.1rem; }
.qo-receipt .meta{ margin:.2rem 0 1rem; text-align:center; font-size:.78rem; color:#475569; }
.qo-receipt table{ width:100%; border-collapse:collapse; }
.qo-receipt td{ padding:4px 0; }
.qo-receipt td:last-child{ text-align:right; }
.qo-receipt .sep{ margin:10px 0; border-top:1px dashed #94a3b8; }
.qo-receipt .tot{ display:flex; justify-content:space-between; font-weight:700; font-size:1.05rem; }
.qo-receipt .pm{ margin:.4rem 0 0; font-size:.82rem; color:#475569; }
.qo-receipt .thanks{ margin:14px 0 0; text-align:center; font-size:.8rem; color:#475569; }
.qo-receipt__actions{ display:flex; gap:8px; padding:14px 20px 18px; }
.qo-receipt__actions .qo-btn{ flex:1; }

/* ---------- table QR ---------- */
.qt-note{ display:flex; gap:8px; margin:0 0 18px; padding:12px 14px; border-radius:12px; background:var(--qo-panel); border:1px solid var(--qo-line); color:var(--qo-muted); font-size:.86rem; }
.qt-note i{ margin-top:4px; color:var(--qo-accent); }
.qt-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
@media (min-width:760px){ .qt-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.qt-card{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:18px 12px 12px; border-radius:18px; background:#fff; color:#0f172a; text-align:center; }
.qt-card strong{ font-size:1.2rem; line-height:1.2; }
.qt-card small{ font-size:.76rem; color:#475569; }
.qt-code{ width:132px; max-width:100%; aspect-ratio:1; margin:4px 0; }
.qt-code img, .qt-code canvas{ display:block; width:100% !important; height:auto !important; }
.qt-fallback{ font-size:6rem; }
.qt-card a{ display:inline-flex; align-items:center; gap:6px; min-height:40px; color:#1d4ed8; font-size:.8rem; text-decoration:none; }

/* ---------- toast ---------- */
.qo-toast{
  position:fixed; left:50%; bottom:24px; z-index:300; max-width:min(92vw, 460px); padding:12px 18px; border-radius:12px;
  background:rgba(15,23,42,.97); border:1px solid rgba(148,163,184,.25); color:#fff; font-size:.9rem; text-align:center;
  box-shadow:0 20px 40px -20px #000; opacity:0; pointer-events:none; transform:translate(-50%, 16px); transition:opacity .3s ease, transform .3s ease;
}
.qo-toast.show{ opacity:1; transform:translate(-50%, 0); }

@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } .ph-sheet{ animation:none; } .qo-toast{ transition:none; } }

/* ---------- print: table QR cards only ---------- */
@media print{
  body{ background:#fff; }
  .qo-top, .qo-head, .qt-note, .qt-card a, .qo-toast, [data-panel]:not([data-panel="tables"]){ display:none !important; }
  [data-panel="tables"]{ display:block !important; }
  main{ padding:0; }
  .qt-grid{ grid-template-columns:repeat(2, 1fr); gap:12mm; }
  .qt-card{ border:1px solid #cbd5e1; break-inside:avoid; }
  .qt-code{ width:50mm; }
}
