/* Shop POS — shared styles. These colours are only the first paint: /theme.css (Admin → Theme) replaces them. */
:root {
  --cream: #F6F4F0;
  --cream-2: #e8e6e3;
  --card: #FFFFFF;
  --line: #d8d7d4;
  --ink: #1F2328;
  --muted: #797b7c;
  --green: #1F3A4D;
  --green-2: #475d6d;
  --leaf: #F2A541;
  --leaf-soft: #f5e4cd;
  --red: #E4572E;
  --red-d: #bb4726;
  --red-soft: #f4e0d7;
  --amber: #E9A23B;
  --amber-soft: #FCEFD6;
  --blue: #3C7DBF;
  --blue-soft: #E1EDF9;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.060), 0 6px 18px rgba(31, 35, 40, 0.070);
  --shadow-lg: 0 12px 40px rgba(31, 35, 40, 0.180);
  --r: 14px;
  --r-sm: 10px;
  --display: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --body: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cream-2); color: var(--ink); transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; min-height: 44px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--red); color: var(--on-primary); box-shadow: 0 4px 14px color-mix(in srgb, var(--red) 30%, transparent); }
.btn.primary:hover { background: var(--red-d); }
.btn.green { background: var(--green); color: var(--on-secondary); }
.btn.green:hover { background: #244a2b; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--cream-2); }
.btn.danger { background: var(--red-soft); color: var(--red-d); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 22px; font-size: 1.08rem; min-height: 54px; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream-2); cursor: pointer; display: inline-grid; place-items: center; font-size: 1.1rem; flex: none; }
.icon-btn:hover { background: var(--line); }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 11px 13px; outline: none; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
textarea.input { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.switch input:checked + i { background: var(--leaf); }
.switch input:checked + i::after { inset-inline-start: 21px; }
.seg { display: inline-flex; background: var(--cream-2); padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- cards / chips ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); border-color: color-mix(in srgb, var(--line) 60%, transparent); }
.pad { padding: 18px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--cream-2); }
.chip.green { background: var(--leaf-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red-d); }
.chip.amber { background: var(--amber-soft); color: #9a5f09; }
.chip.blue { background: var(--blue-soft); color: #23578a; }

/* ---------- qty stepper ---------- */
.qty { display: inline-flex; align-items: center; background: var(--cream-2); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.15rem; font-weight: 800; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--line); }
.qty b { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- modal / sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 18, 22, .45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; backdrop-filter: blur(2px); }
.modal { background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); animation: up .22s cubic-bezier(.2, .8, .3, 1); box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
@media (min-width: 720px) { .overlay { align-items: center; } .modal { border-radius: 22px; padding-bottom: 22px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast-wrap { position: fixed; z-index: 200; bottom: calc(90px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); animation: up .2s; }
.toast.err { background: var(--red-d); }
.toast.ok { background: var(--green); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .big { font-size: 2.6rem; margin-bottom: 6px; }

/* item thumbnails */
.thumb { border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; flex: none; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .emo { font-size: 2.2rem; line-height: 1; filter: saturate(1.1); }

/* =============================================================
   CUSTOMER SITE
   ============================================================= */
.shop-top { background: var(--green); color: var(--on-secondary); padding: calc(14px + var(--safe-t)) 16px 18px; position: relative; overflow: hidden; }
.shop-top::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 35%, transparent), transparent 70%); top: -120px; inset-inline-end: -80px; }
.shop-top .inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.brand-logo { width: 62px; height: 62px; border-radius: 50%; background: var(--cream); padding: 4px; object-fit: contain; flex: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.brand h1 { font-size: 1.7rem; font-weight: 800; }
.brand p { margin: 0; opacity: .85; font-size: .92rem; font-style: italic; }
.shop-top .icon-btn { background: color-mix(in srgb, var(--on-secondary) 14%, transparent); color: var(--on-secondary); }
.shop-top .icon-btn:hover { background: rgba(255, 255, 255, .25); }
.lang-btn { font-weight: 800; font-size: .85rem; }

.closed-banner { background: var(--amber-soft); color: #7a4c06; text-align: center; padding: 10px 16px; font-weight: 700; }

.cat-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-bar .inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.cat-bar .inner::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 15px; font-weight: 800; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: all .15s; }
.cat-pill.on { background: var(--red); border-color: var(--red); color: var(--on-primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 25%, transparent); }

.shop-layout { max-width: 1180px; margin: 0 auto; padding: 8px 16px 140px; display: grid; gap: 28px; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 1fr 360px; padding-bottom: 40px; } }
.search-wrap { position: relative; margin: 10px 0 4px; }
.search-wrap .input { padding-inline-start: 42px; border-radius: 999px; background: var(--card); }
.search-wrap::before { content: '⌕'; position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-52%); font-size: 1.3rem; color: var(--muted); }

.menu-sec { padding-top: 18px; scroll-margin-top: 70px; }
.menu-sec h2 { font-size: 1.45rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.menu-sec h2 .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.items-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .items-grid { grid-template-columns: 1fr 1fr; } }
.item-card { display: flex; gap: 14px; padding: 12px; align-items: center; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.item-card .thumb { width: 88px; height: 88px; }
.item-card h3 { font-size: 1.1rem; font-weight: 700; }
.item-card .desc { font-size: .86rem; color: var(--muted); margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; color: var(--price, var(--green)); font-variant-numeric: tabular-nums; }
.add-fab { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: var(--on-primary); font-size: 1.5rem; font-weight: 700; cursor: pointer; flex: none; box-shadow: 0 3px 10px color-mix(in srgb, var(--red) 35%, transparent); display: grid; place-items: center; line-height: 1; }
.in-cart-badge { position: absolute; top: 6px; inset-inline-end: 6px; background: var(--green); color: var(--on-secondary); font-size: .75rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; }

.cart-side { display: none; }
@media (min-width: 1000px) { .cart-side { display: block; position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; } }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .name { font-weight: 700; }
.cart-line .sub { font-size: .82rem; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-row.total { font-family: var(--display); font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--line); padding-top: 10px; margin-top: 6px; }

.cart-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); background: var(--red); color: var(--on-primary); border: 0; border-radius: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 10px 30px color-mix(in srgb, var(--red) 40%, transparent); cursor: pointer; animation: up .25s; }
.cart-bar .count { background: rgba(255, 255, 255, .25); border-radius: 10px; padding: 2px 10px; }
@media (min-width: 1000px) { .cart-bar { display: none; } }

.variant-opt { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; }
.variant-opt.on { border-color: var(--red); background: var(--red-soft); }
.hero-thumb { width: 100%; height: 200px; border-radius: 18px; margin-bottom: 14px; }
.hero-thumb .emo { font-size: 5rem; }

.track { text-align: center; }
.track-steps { display: flex; justify-content: space-between; position: relative; margin: 26px 0; }
.track-steps::before { content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 4px; background: var(--line); border-radius: 4px; }
.track-step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.track-step i { width: 42px; height: 42px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-style: normal; font-size: 1.15rem; border: 3px solid var(--cream); }
.track-step.done i { background: var(--leaf); color: var(--on-accent); }
.track-step.now i { background: var(--red); color: var(--on-primary); animation: pulse 1.4s infinite; }
.track-step.done, .track-step.now { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--red) 18%, transparent); } }

.shop-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 26px 16px 120px; }
.shop-foot a { margin: 0 6px; }

/* =============================================================
   STAFF APP (POS / Tables / Online / Admin)
   ============================================================= */
.staff { display: grid; grid-template-columns: 1fr; height: 100dvh; }
@media (min-width: 900px) { .staff { grid-template-columns: 88px 1fr; } }
.rail { display: none; }
@media (min-width: 900px) {
  .rail { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--green); padding: 14px 0; }
  .rail img { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); padding: 3px; margin-bottom: 14px; }
  .rail button { width: 72px; border: 0; background: transparent; color: color-mix(in srgb, var(--on-secondary) 78%, transparent); border-radius: 16px; padding: 10px 0 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; position: relative; }
  .rail button .ic { font-size: 1.4rem; }
  .rail button:hover { background: color-mix(in srgb, var(--on-secondary) 8%, transparent); color: var(--on-secondary); }
  .rail button.on { background: var(--card); color: var(--ink); }
  .rail .spacer { flex: 1; }
}
.badge { position: absolute; top: 4px; inset-inline-end: 10px; background: var(--red); color: var(--on-primary); font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: var(--safe-b); }
.tabbar button { flex: 1; border: 0; background: transparent; padding: 8px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .7rem; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; }
.tabbar button .ic { font-size: 1.35rem; }
.tabbar button.on { color: var(--red); }
@media (min-width: 900px) { .tabbar { display: none; } }

.main { overflow: auto; min-width: 0; padding-bottom: calc(70px + var(--safe-b)); }
@media (min-width: 900px) { .main { padding-bottom: 0; } }
.topbar { display: flex; flex-direction: column; gap: 10px; padding: calc(12px + var(--safe-t)) 16px 12px; background: color-mix(in srgb, var(--cream) 96%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.topbar h2 { font-size: 1.4rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { padding: 18px; max-width: 1400px; margin: 0 auto; }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, var(--leaf-soft), transparent 50%), radial-gradient(circle at 90% 90%, var(--red-soft), transparent 50%), var(--cream); }
.login .card { width: 100%; max-width: 360px; padding: 28px 24px; text-align: center; }
.login img { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; background: var(--cream); }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 20px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.pin-dots i.on { background: var(--red); border-color: var(--red); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-pad button { height: 62px; border-radius: 18px; border: 0; background: var(--cream-2); font-size: 1.5rem; font-weight: 800; cursor: pointer; font-family: var(--display); }
.pin-pad button:active { background: var(--line); }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* tables */
.area-title { font-weight: 800; color: var(--muted); margin: 18px 0 10px; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.table-card { aspect-ratio: 1.15; border-radius: 20px; border: 2px solid var(--line); background: var(--card); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; text-align: start; transition: transform .1s, box-shadow .15s; }
.table-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.table-card .tname { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.table-card.busy { background: var(--red-soft); border-color: var(--red); }
.table-card.busy .tname { color: var(--red-d); }
.table-card .tmeta { font-size: .85rem; color: var(--muted); }
.table-card .ttotal { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.legend { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 5px; vertical-align: -1px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 700; }

/* POS */
.pos { display: grid; grid-template-columns: 1fr; height: calc(100dvh - 70px - var(--safe-b)); }
@media (min-width: 900px) { .pos { grid-template-columns: 1fr 380px; height: 100dvh; } }
.pos-menu { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.pos-head { padding: calc(10px + var(--safe-t)) 14px 10px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); background: var(--cream); flex-wrap: wrap; flex: none; }
@media (max-width: 640px) { .pos-head #posSearch { max-width: none !important; flex-basis: 100%; order: 3; } }
.pos-head h2 { font-size: 1.3rem; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; flex: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: min-content; gap: 10px; padding: 4px 14px 120px; overflow: auto; flex: 1; min-height: 0; }
@media (min-width: 900px) { .pos-grid { padding-bottom: 20px; } }
.pos-tile { border: 0; background: var(--card); border-radius: 16px; padding: 10px; cursor: pointer; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; border-top: 4px solid var(--c, var(--red)); transition: transform .08s; min-height: 132px; }
.pos-tile:active { transform: scale(.95); }
.pos-tile .thumb { width: 58px; height: 58px; }
.pos-tile .thumb .emo { font-size: 1.9rem; }
.pos-tile .n { font-weight: 800; font-size: .95rem; line-height: 1.15; }
.pos-tile .p { font-size: .85rem; color: var(--green); font-weight: 800; }
.pos-tile .q { position: absolute; top: 6px; inset-inline-end: 6px; background: var(--red); color: var(--on-primary); border-radius: 99px; font-size: .75rem; font-weight: 800; min-width: 22px; height: 22px; display: grid; place-items: center; }
.pos-tile.off { opacity: .45; }

.ticket { background: var(--card); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ticket-h { padding: calc(14px + var(--safe-t)) 16px 12px; border-bottom: 1px solid var(--line); }
.ticket-lines { flex: 1; overflow: auto; padding: 4px 16px; }
.t-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.t-line .nm { font-weight: 700; line-height: 1.2; }
.t-line .vr { font-size: .8rem; color: var(--muted); }
.t-line .nt { font-size: .8rem; color: var(--red-d); }
.t-line .amt { font-weight: 800; min-width: 62px; text-align: end; }
.ticket-f { padding: 14px 16px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--cream); }
.ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ticket-actions .wide { grid-column: span 2; }
@media (max-width: 899px) {
  .ticket { position: fixed; inset: 0; z-index: 60; transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .3, 1); }
  .ticket.open { transform: none; }
}
.ticket-bar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(76px + var(--safe-b)); background: var(--green); color: var(--on-secondary); border: 0; border-radius: 18px; padding: 13px 16px; display: flex; gap: 10px; align-items: center; font-weight: 800; box-shadow: var(--shadow-lg); cursor: pointer; }
@media (min-width: 900px) { .ticket-bar { display: none; } }

/* pay */
.pay-total { text-align: center; padding: 12px; background: var(--cream-2); border-radius: 16px; margin-bottom: 14px; }
.pay-total b { font-family: var(--display); font-size: 2.4rem; display: block; color: var(--green); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-cash button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 0; font-weight: 800; cursor: pointer; font-size: 1.05rem; }
.quick-cash button:hover { border-color: var(--leaf); }
.change-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--leaf-soft); color: var(--green); font-weight: 800; font-size: 1.2rem; }
.change-box.short { background: var(--red-soft); color: var(--red-d); }

/* online orders */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.order-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--line); }
.order-card.pending { border-top-color: var(--red); animation: glow 2s infinite; }
.order-card.accepted { border-top-color: var(--amber); }
.order-card.ready { border-top-color: var(--leaf); }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent), var(--shadow); } }
.order-card .num { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.order-card ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.order-card li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }

/* history table */
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--cream-2); }
.tbl-wrap { overflow-x: auto; }

/* admin */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 2px; scrollbar-width: none; }
.admin-tabs button { border: 0; background: transparent; padding: 10px 14px; border-radius: 12px 12px 0 0; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.admin-tabs button.on { color: var(--red); border-bottom-color: var(--red); }
.adm-cat { margin-bottom: 18px; overflow: hidden; }
.adm-cat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cream-2); flex-wrap: wrap; }
.adm-cat-h h3 { font-size: 1.2rem; flex: 1; }
.adm-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.adm-item .thumb { width: 48px; height: 48px; border-radius: 12px; }
.adm-item .thumb .emo { font-size: 1.5rem; }
.adm-item.off { opacity: .5; }
.adm-item .nm { font-weight: 700; }
.price-in { width: 92px; text-align: center; font-weight: 800; padding: 8px; min-height: 38px; }
.drag { cursor: grab; color: var(--muted); padding: 4px; user-select: none; touch-action: none; }
.var-row { display: grid; grid-template-columns: 1fr 1fr 90px 40px; gap: 8px; align-items: center; }
.img-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.img-drop .thumb { width: 80px; height: 80px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 1.3rem; cursor: pointer; }
.emoji-pick button.on { border-color: var(--red); background: var(--red-soft); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--leaf); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--green); }
.bars-x { display: flex; gap: 3px; font-size: .68rem; color: var(--muted); }
.bars-x span { flex: 1; text-align: center; }
.receipt-preview { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 12px; margin: 0 auto; overflow: hidden; }
.receipt-preview canvas { width: 100%; height: auto; display: block; }
.section-title { font-size: 1.15rem; margin: 6px 0 12px; }
.help { font-size: .86rem; color: var(--muted); background: var(--cream-2); border-radius: 12px; padding: 12px 14px; }
.help b { color: var(--ink); }
.settings-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } .var-row { grid-template-columns: 1fr 1fr 74px 36px; } }

/* print — only the receipt iframe prints, this is a safety net */
@media print { body * { visibility: hidden; } }
.main { overflow-x: hidden; }

/* ================= v2: responsive header, shifts, activity log, analytics ================= */
.tb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tb-actions > .btn { flex: 1 1 auto; }
.tb-actions .seg { flex: 1 1 auto; }
.tb-actions .seg button { flex: 1; }
@media (min-width: 900px) {
  .topbar { flex-direction: row; align-items: center; padding: 14px 20px; }
  .tb-row { flex: 1; }
  .tb-actions > .btn, .tb-actions .seg { flex: none; }
  .topbar .me-chip { display: none; }
  .topbar:has(.admin-tabs) { flex-direction: column; align-items: stretch; padding-bottom: 0; }
}
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--on-secondary); display: inline-grid; place-items: center; font-weight: 800; font-family: var(--display); flex: none; font-size: 1rem; font-style: normal; }
.avatar.lg { width: 48px; height: 48px; font-size: 1.3rem; }
.rail .avatar { background: var(--cream); color: var(--green); width: 38px; height: 38px; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font-weight: 700; flex: none; position: relative; max-width: 150px; }
.me-chip .avatar { width: 30px; height: 30px; font-size: .9rem; }
.me-chip .me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.me-chip .dot.on { background: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.date-in { width: auto; min-width: 150px; flex: 1 1 150px; max-width: 220px; }
.admin-tabs { margin: 0 -16px; padding: 0 16px; }
.tabbar button .ic { font-size: 1.3rem; }

/* lists that read well on phones (instead of wide tables) */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: start; font: inherit; color: inherit; }
.list-row:last-child { border-bottom: 0; }
.list-row.click { cursor: pointer; }
.list-row.click:hover { background: var(--cream-2); }
.list-row.tight { padding: 7px 0; }
.list-row .lr-ic { font-size: 1.2rem; width: 28px; text-align: center; flex: none; }
.list-row .lr-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sm { font-size: .84rem; }
.ord-num { font-family: var(--display); font-size: 1.15rem; min-width: 44px; }
.neg { color: var(--red-d); }

/* shift */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.kv-grid > div { background: var(--cream); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kv-grid span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.kv-grid b { font-size: 1.1rem; }
.kv-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-top: 0; }
.kv-grid .hl { background: var(--leaf-soft); }
.kv-grid .hl b { color: var(--green); font-size: 1.3rem; }
.expected { text-align: end; background: var(--leaf-soft); border-radius: 16px; padding: 10px 16px; }
.expected span { display: block; font-size: .8rem; font-weight: 700; color: var(--green); }
.expected b { font-family: var(--display); font-size: 2rem; color: var(--green); }
.start-shift { max-width: 560px; margin: 0 auto; }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cnt { display: grid; grid-template-columns: 1fr; gap: 4px; background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.cnt-d { font-weight: 800; font-family: var(--display); }
.cnt .qty { justify-content: space-between; background: var(--card); }
.cnt-in { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 800; outline: none; padding: 0; -moz-appearance: textfield; }
.cnt-sub { font-size: .8rem; color: var(--muted); min-height: 1em; text-align: end; }
.cnt-total { font-size: 1.5rem; font-weight: 800; text-align: center; }

/* activity log */
.filter-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.filter-row select { width: auto; flex: 0 1 200px; }
.chips-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 260px; min-width: 0; padding: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.cat-pill.sm { padding: 6px 12px; font-size: .88rem; }
.log-list { display: flex; flex-direction: column; }
.log-row { display: grid; grid-template-columns: 46px 26px 1fr auto; gap: 8px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.log-row:last-child { border-bottom: 0; }
.log-list.compact .log-row { padding: 7px 0; grid-template-columns: 44px 24px 1fr auto; }
.log-time { color: var(--muted); font-size: .82rem; padding-top: 2px; }
.log-ic { text-align: center; }
.log-body { line-height: 1.35; word-break: break-word; }
.log-body .chip { vertical-align: 1px; border: 0; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; }
.log-amt { white-space: nowrap; }
.log-row.k-pay { background: var(--leaf-soft); background: color-mix(in srgb, var(--leaf) 7%, transparent); }
.log-row.k-cash { background: var(--amber-soft); background: color-mix(in srgb, var(--amber) 7%, transparent); }

/* analytics */
.rep-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.custom-range { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.custom-range .field { flex: 1 1 140px; }
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpi-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.kpi b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.kpi.main { background: var(--green); color: var(--on-secondary); }
.kpi.main span { color: color-mix(in srgb, var(--on-secondary) 80%, transparent); }
.kpi.main .delta { color: var(--on-secondary); opacity: .9; }
.kpi.main .delta.down { color: var(--on-secondary); }
.delta { font-size: .8rem; font-weight: 800; color: var(--muted); }
.delta.up { color: var(--green-2); }
.delta.down { color: var(--red-d); }
.mini-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.mini-row > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; }
.mini-row span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.mini-row b { font-size: 1.1rem; }
.mini-row small { color: var(--muted); font-size: .76rem; }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.insight { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.ins-ic { font-size: 1.6rem; line-height: 1; }
.insight > div { display: flex; flex-direction: column; min-width: 0; }
.ins-h { font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.insight b { font-size: 1.02rem; overflow-wrap: anywhere; }
.insight small { color: var(--muted); }
.rep-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 1000px) { .rep-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.vchart { display: flex; flex-direction: column; gap: 6px; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: var(--h, 150px); border-bottom: 1px solid var(--line); }
.vb { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; min-width: 0; }
.vb i { display: block; width: 100%; background: var(--leaf); border-radius: 4px 4px 0 0; transition: background .1s; }
.vb:hover i, .vb.hl i { background: var(--green); }
.vlabels { display: flex; gap: 2px; }
.vlabels span { flex: 1; text-align: center; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: visible; min-width: 0; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.hb-l { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-v { color: var(--muted); white-space: nowrap; font-weight: 700; }
.hb-track { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.hb-track i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; }
.rank-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.rank { display: flex; gap: 12px; align-items: flex-start; }
.rank .row.between { flex-wrap: wrap; gap: 4px 10px; }
.rk { width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-weight: 800; flex: none; font-size: .9rem; }
.rk.top { background: var(--red); color: var(--on-primary); }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pair { background: var(--cream); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pair-names { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pair .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; flex: none; }
.pair-stats { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chart-tip { position: fixed; z-index: 300; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .82rem; font-weight: 700; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); }
.section-title { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .page { padding: 14px 12px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 1.35rem; }
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .table-card { aspect-ratio: auto; min-height: 112px; padding: 12px; }
  .table-card .tname { font-size: 1.35rem; }
  .orders-grid { grid-template-columns: 1fr; }
  .modal { padding: 16px 14px calc(16px + var(--safe-b)); }
  .kpi b { font-size: 1.35rem; }
  .log-row { grid-template-columns: 40px 22px 1fr; padding: 10px 12px; }
  .log-row .log-amt { grid-column: 3; justify-self: start; }
  .adm-cat-h { padding: 12px; }
  .adm-cat-h h3 { flex-basis: 100%; order: -1; font-size: 1.1rem; }
  .adm-item { padding: 10px 12px; gap: 8px; }
  .price-in { width: 74px; }
  .pay-total b { font-size: 2rem; }
  .quick-cash { grid-template-columns: repeat(2, 1fr); }
  .expected { text-align: start; width: 100%; }
}
/* compact cash counter + stat tiles on phones */
@media (max-width: 640px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cnt { padding: 6px 8px; gap: 2px; }
  .cnt .qty button { width: 30px; height: 30px; font-size: 1rem; }
  .cnt-in { width: 34px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 10px; }
  .stat span { font-size: .72rem; }
  .stat b { font-size: 1.1rem; }
  .start-shift { padding: 16px 12px; }
}
@media (max-width: 640px) { .kv-grid, .kv-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 8px; } .kv-grid b { font-size: 1rem; } }
.rep-bar .chips-scroll, .filter-row .chips-scroll { align-items: center; }
.rep-bar .chips-scroll { flex: none; }
.chips-scroll .cat-pill { flex: none; }
.rep-grid { align-items: start; }
.rep-grid > *, .rank > .grow, .insight, .kpi-row > * { min-width: 0; }
.rank .row.between > b { overflow-wrap: anywhere; }
.shift-hero .row > .btn { flex: 1 1 auto; }
.settings-grid > *, .settings-grid .stack > * { min-width: 0; } code { overflow-wrap: anywhere; word-break: break-all; }

/* print agents */
.seg.wrap { flex-wrap: wrap; border-radius: 16px; }
.seg.wrap button { flex: 1 1 auto; }
.ag-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; align-self: flex-start; margin-top: 6px; }
.ag-dot.on { background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.agent-row { align-items: flex-start; flex-wrap: wrap; }
.codebox { position: relative; background: #1F2328; color: #EEF1F4; border-radius: 12px; padding: 12px 12px 12px 14px; margin-top: 6px; }
.codebox pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: .8rem; line-height: 1.45; font-family: ui-monospace, Menlo, Consolas, monospace; padding-inline-end: 70px; text-align: left; }
.codebox .btn { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255,255,255,.12); color: #fff; border-color: transparent; min-height: 30px; }
.steps { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li { line-height: 1.5; }


/* ================= v5 ================= */
:root { --on-primary: #fff; --on-secondary: #fff; --on-accent: #1a1a1a; --amber: #E9A23B; }
body { background: var(--cream); }

/* buttons never spill their text: wrap inside the button instead (online orders on phones etc.) */
.btn { white-space: normal; text-align: center; line-height: 1.2; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.btn.sm { white-space: nowrap; }
.order-card .row { flex-wrap: wrap; }
.order-card .row > .btn { flex: 1 1 150px; padding-inline: 12px; }
.order-card .row > .icon-btn { flex: none; }
.order-card li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ticket-actions .btn { padding-inline: 10px; }
@media (max-width: 400px) { .ticket-actions .btn:not(.lg) { font-size: .9rem; } .order-card .row > .btn { flex-basis: 100%; } }

/* pairing / device code */
.pair-in { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .14em; text-align: center; font-weight: 800; text-transform: uppercase; }
.pair-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: .12em; background: var(--cream-2); border-radius: var(--r); padding: 14px 10px; color: var(--ink); }
.pair-url { font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.toggle-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.kchip { border: 0; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: block; text-align: center; padding: 10px 6px; border: 2px solid var(--line); border-radius: var(--r-sm); font-weight: 800; cursor: pointer; font-size: .92rem; }
.role-opt input:checked + span { border-color: var(--red); background: var(--red-soft); }
.role-opt input:focus-visible + span { outline: 2px solid var(--leaf); }

/* kitchen display */
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.kds { display: flex; flex-direction: column; border-top: 6px solid var(--leaf); overflow: hidden; transition: transform .2s, opacity .2s; }
.kds.preparing { border-top-color: var(--amber); }
.kds.warn .kds-age { background: var(--amber-soft); color: #8a5300; }
.kds.late { box-shadow: 0 0 0 3px var(--red), var(--shadow); }
.kds.late .kds-age { background: var(--red); color: var(--on-primary); animation: pulse 1.6s infinite; }
.kds.leaving { transform: scale(.95); opacity: 0; }
.kds-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 8px; }
.kds-num { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.kds-where { font-weight: 800; font-size: .95rem; margin-top: 4px; }
.kds-age { font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--cream-2); font-size: 1rem; flex: none; }
.kds-sub { padding: 0 14px 6px; color: var(--muted); font-size: .9rem; }
.kds-items { list-style: none; margin: 0; padding: 4px 8px; border-top: 1px dashed var(--line); }
.kds-items li { display: flex; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: 8px; font-size: 1.12rem; }
.kds-items li:last-child { border-bottom: 0; }
.kds-items li:hover { background: var(--cream); }
.kds-items .kq { min-width: 38px; font-size: 1.2rem; font-family: var(--display); }
.kds-items .kn { font-weight: 800; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.kds-items .kv { display: inline-block; background: var(--amber-soft); border-radius: 6px; padding: 0 6px; font-size: .9rem; margin-inline-start: 4px; }
.kds-items .kalt { font-weight: 500; font-size: .85rem; color: var(--muted); }
.kds-items .knote { color: var(--red-d); font-size: .95rem; font-weight: 800; margin-top: 2px; }
.kds-items li.struck .kn, .kds-items li.struck .kq { text-decoration: line-through; opacity: .45; }
.kds-items li.removed { background: var(--red-soft); }
.kds-items li.removed .kq, .kds-items li.removed .kn > :first-child { color: var(--red-d); text-decoration: line-through; }
.kds-items .kcancel { color: var(--red-d); font-size: .8rem; font-weight: 800; letter-spacing: .03em; }
.kds-note { margin: 6px 12px; background: var(--amber-soft); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.kds-f { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px; margin-top: auto; }
.kds-f .btn { min-height: 52px; font-size: 1.05rem; }
.kds-by { font-weight: 800; color: var(--muted); font-size: .9rem; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kitchen-empty { padding: 70px 16px; }
.kdone-items { overflow-wrap: anywhere; }
@media (max-width: 640px) { .kds-grid { grid-template-columns: 1fr; } }

/* theme editor */
.theme-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .theme-wrap { grid-template-columns: minmax(0, 1fr) 400px; } .theme-preview { position: sticky; top: 130px; align-self: start; } }
.preset-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.preset { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; font: inherit; color: var(--ink); }
.preset:hover { border-color: var(--red); }
.preset .sw { width: 100%; height: 34px; border-radius: 8px; display: flex; gap: 4px; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,.08); }
.preset .sw i { width: 16px; height: 16px; border-radius: 50%; }
.preset b { font-size: .85rem; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.color-field { display: flex; gap: 10px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }
.color-field input[type=color] { width: 46px; height: 46px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 10px; }
.color-field span { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.color-field code { color: var(--muted); font-size: .8rem; }
.slider input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.slider span { display: flex; justify-content: space-between; }
.theme-actions { flex-wrap: wrap; }
.theme-preview { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.phone-frame { width: 360px; max-width: 100%; height: 680px; border: 10px solid #1d1d1f; border-radius: 34px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.phone-frame iframe { width: 100%; height: 100%; border: 0; background: var(--cream); }
#pvUi { width: 100%; }

/* ================= customer display ================= */
.display-body { overflow: hidden; height: 100dvh; user-select: none; -webkit-user-select: none; }
.display-body.no-cursor, .display-body.no-cursor * { cursor: none !important; }
.display-body #app { height: 100dvh; }
.d-center { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; }
.d-big { font-size: 4rem; }
.d-logo { width: clamp(110px, 18vw, 200px); height: clamp(110px, 18vw, 200px); border-radius: 50%; object-fit: contain; background: var(--card); box-shadow: var(--shadow-lg); padding: 6px; }
.d-idle { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 2vh; padding: 4vh 4vw; background: radial-gradient(circle at 15% 10%, var(--leaf-soft), transparent 45%), radial-gradient(circle at 90% 85%, var(--red-soft), transparent 45%), var(--cream); }
.d-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1vh; }
.d-brand h1 { font-size: clamp(2rem, 5vw, 4rem); }
.d-brand p { margin: 0; font-size: clamp(1rem, 2vw, 1.5rem); color: var(--muted); font-style: italic; }
.d-welcome { margin-top: 1vh; background: var(--green); color: var(--on-secondary); padding: 8px 22px; border-radius: 99px; font-weight: 800; font-size: clamp(1rem, 2vw, 1.4rem); }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; transition: opacity .35s; }
.d-cards.fade { opacity: 0; }
.d-card { background: var(--card); border-radius: var(--r-lg, 22px); box-shadow: var(--shadow); padding: 2vh 1.5vw; display: flex; flex-direction: column; align-items: center; gap: 1vh; text-align: center; }
.d-thumb { width: clamp(70px, 11vw, 140px); height: clamp(70px, 11vw, 140px); border-radius: var(--r); }
.d-thumb .emo { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.d-card b { color: var(--price, var(--green)); font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.d-card-n { display: flex; flex-direction: column; }
.d-ar { font-weight: 800; font-size: 1.1em; }
.d-en { color: var(--muted); font-size: .85em; }
.d-online { text-align: center; color: var(--muted); font-size: clamp(.9rem, 1.6vw, 1.15rem); }
.d-order { height: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); grid-template-rows: auto 1fr; }
.d-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 3vw; background: var(--green); color: var(--on-secondary); }
.d-head img { width: 56px; height: 56px; border-radius: 50%; background: var(--card); padding: 3px; object-fit: contain; }
.d-head div { display: flex; flex-direction: column; }
.d-head b { font-family: var(--display); font-size: 1.5rem; }
.d-head span { opacity: .85; font-weight: 700; }
.d-lines { overflow-y: auto; padding: 2vh 3vw; scroll-behavior: smooth; }
.d-line { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 1.6vh 0; border-bottom: 1px dashed var(--line); font-size: clamp(1.1rem, 2.1vw, 1.6rem); }
.d-line.flash { animation: flash 1.2s; border-radius: 12px; }
@keyframes flash { 0% { background: var(--leaf-soft); } 100% { background: transparent; } }
.d-q { font-family: var(--display); color: var(--red); min-width: 2.4em; }
.d-n { display: flex; flex-direction: column; min-width: 0; }
.d-v { color: var(--muted); font-size: .8em; }
.d-sum { background: var(--card); border-inline-start: 1px solid var(--line); padding: 3vh 2.5vw; display: flex; flex-direction: column; gap: 1.6vh; justify-content: flex-end; }
.d-row { display: flex; justify-content: space-between; gap: 10px; font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 700; color: var(--muted); }
.d-row b { color: var(--ink); }
.d-row.good b { color: var(--green-2); }
.d-row.big { font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.d-row.change { background: var(--leaf-soft); color: var(--green); border-radius: var(--r); padding: 12px 16px; }
.d-row.change b { color: var(--green); font-size: 1.3em; }
.d-row.change.zero { background: var(--cream-2); }
.d-total { background: var(--green); color: var(--on-secondary); border-radius: var(--r-lg, 22px); padding: 2.5vh 2vw; display: flex; flex-direction: column; gap: 4px; }
.d-total span { font-weight: 800; opacity: .9; font-size: clamp(1rem, 1.8vw, 1.3rem); }
.d-total b { font-family: var(--display); font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1; }
.d-pay-hint, .d-items-count { text-align: center; color: var(--muted); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.3rem); }
.d-thanks h1 { font-size: clamp(2rem, 6vw, 4.2rem); }
.d-thanks .d-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.5rem); margin: 0; }
.d-check { width: clamp(90px, 14vw, 150px); height: clamp(90px, 14vw, 150px); border-radius: 50%; background: var(--leaf); color: var(--on-accent); display: grid; place-items: center; font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.d-change { display: flex; flex-direction: column; align-items: center; background: var(--leaf-soft); color: var(--green); border-radius: var(--r-lg, 22px); padding: 2vh 4vw; margin-top: 1vh; }
.d-change span { font-weight: 800; font-size: clamp(1rem, 2vw, 1.4rem); }
.d-change b { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.1; }
.d-num { color: var(--muted); font-weight: 800; font-size: 1.3rem; }
@media (max-aspect-ratio: 1/1) {
  .d-order { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .d-sum { border-inline-start: 0; border-top: 1px solid var(--line); }
  .d-cards { grid-template-columns: repeat(2, 1fr); }
  .d-cards .d-card:nth-child(3) { display: none; }
}

.d-n { align-items: flex-start; }
.d-card-n { align-items: center; }
.seg button { white-space: nowrap; }
.tabbar button .badge { inset-inline-end: calc(50% - 30px); }

.rail .avatar { background: var(--card); color: var(--ink); }

/* install button + instructions */
.install-pill { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .9rem;
  background: var(--on-secondary); color: var(--green); border-radius: 999px; padding: 8px 14px; min-height: 40px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.install-pill:hover { filter: brightness(.95); }
@media (max-width: 380px) { .install-pill .ip-t { display: none; } .install-pill { padding: 8px 11px; } }
.inst { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.inst li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.inst-n { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; flex: none; }
.inst-k { display: inline-flex; align-items: center; gap: 4px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-weight: 800; white-space: nowrap; color: var(--blue, #3C7DBF); }
.inst-hero { display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: var(--r); padding: 12px; }
.inst-hero img { border-radius: 18px; box-shadow: var(--shadow); flex: none; }
#sndCard .row select { flex: 1; }

/* sideways strips: edge arrows (mouse/trackpad devices), drag cursor */
.hs { overscroll-behavior-x: contain; --fs: 0px; --fe: 0px; }
.hs.dragging { cursor: grabbing; user-select: none; }
.hs.dragging * { pointer-events: none; }
.hs-btn { display: none; position: absolute; z-index: 6; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.hs-btn span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.18); font-size: 1.45rem; font-weight: 800; line-height: 1; padding-bottom: 3px; transition: background .15s, color .15s; }
.hs-btn:hover span { background: var(--red); color: var(--on-primary); border-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .hs-btn.on { display: block; }
  /* soft fade at the edge that has more categories — blends into any background */
  .hs.can-s { --fs: 64px; } .hs.can-e { --fe: 64px; }
  .hs.can-s, .hs.can-e {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
  }
  [dir=rtl] .hs.can-s, [dir=rtl] .hs.can-e {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
            mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
  }
}
.inst-code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); font-size: .85rem; word-break: break-all; user-select: all; }
.kiosk-box { display: block; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); line-height: 1.5; }
.kiosk-box .btn { display: inline-flex; }

/* ---------- Admin → Branding ---------- */
.brand-welcome { border: 2px solid var(--leaf); background: var(--leaf-soft); margin-bottom: 16px; }
.brand-welcome p { margin: 6px 0 0; }
.check-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.check-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; min-width: 0; }
.check-list a i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .8rem; }
.check-list a.ok { color: var(--muted); font-weight: 500; }
.check-list a.ok i { background: var(--green); border-color: var(--green); color: var(--on-secondary, #fff); }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-box { flex: none; width: 84px; height: 84px; border-radius: var(--r); background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.logo-box img { max-width: 76px; max-height: 76px; object-fit: contain; }
.logo-box.receipt { background: #fff; border: 1px dashed var(--line); }
.icon-prev { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.icon-prev figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.icon-prev figcaption { font-size: .78rem; color: var(--muted); }
.icon-prev img { width: 72px; height: 72px; box-shadow: var(--shadow); background: repeating-conic-gradient(#e8e8e8 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.icon-prev.big img { width: 120px; height: 120px; }
.icon-prev .ip-round { border-radius: 22%; }
.icon-prev .ip-ios { border-radius: 22.5%; }
.icon-prev .ip-circle { border-radius: 50%; }
.icon-prev .ip-tab { display: flex; align-items: center; gap: 8px; max-width: 170px; padding: 8px 12px; border-radius: 10px 10px 0 0; background: var(--card); box-shadow: var(--shadow); font-size: .8rem; }
.icon-prev .ip-tab img { width: 16px; height: 16px; box-shadow: none; background: none; }
.icon-prev .ip-tab span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field small { display: block; margin-top: 4px; font-size: .8rem; }

/* ---------- item options (sizes, kinds, extras) ---------- */
.opt-group { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.opt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.opt-need { font-size: .78rem; color: var(--muted); font-weight: 600; }
.variant-opt > span:first-child { display: flex; align-items: center; gap: 10px; }
.opt-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: inline-block; }
.variant-opt.multi .opt-dot { border-radius: 5px; }
.variant-opt.on .opt-dot { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--card); }
.variant-opt.multi.on .opt-dot { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.variant-opt .price { white-space: nowrap; }
.opt-total { position: sticky; bottom: 0; background: var(--card); padding-top: 12px; }

.pos-tile .o { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kopt { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.kopt span { font-size: .85em; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--ink); }
.d-v + .d-v::before { content: "· "; }

/* ---------- emoji picker ---------- */
.emoji-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--cream); }
.emoji-top { display: flex; gap: 8px; align-items: center; }
.emo-now { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; background: var(--card); border: 2px solid var(--red); }
.emoji-in { flex: 1; min-width: 0; font-size: 1.2rem; }
.emoji-addbtn { flex: none; width: 48px; height: 48px; padding: 0; font-size: 1.4rem; }
.emoji-tabs button { font-size: .85rem; }
.emoji-pick { max-height: 190px; overflow-y: auto; }
.emoji-pick button { position: relative; }
.emo-x { position: absolute; top: -6px; inset-inline-end: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: var(--on-primary); font-size: .6rem; font-style: normal; display: grid; place-items: center; }
kbd { font-family: inherit; font-size: .8em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); }

/* ---------- item editor: option groups ---------- */
.og-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--cream); }
.og-h { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; }
.og-h .input { font-weight: 700; }
.og-price { display: flex; align-items: center; gap: 4px; font-weight: 800; color: var(--muted); }
.og-price .input { width: 90px; }
@media (max-width: 640px) { .og-h { grid-template-columns: 1fr 1fr; } }

/* ticket lines: neat option lines + delete */
.opt-lines { margin-top: 3px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); font-weight: 500; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.opt-lines .opt-p { font-weight: 700; color: var(--ink); opacity: .75; }
.amt-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.t-del { border: 0; background: none; cursor: pointer; font-size: .95rem; padding: 2px 4px; border-radius: 8px; opacity: .55; }
.t-del:hover { opacity: 1; background: var(--red-soft); }
.t-clear { min-height: 34px; padding: 0 10px; font-size: .8rem; }
.variant-opt.off { opacity: .45; }
.opt-free { font-size: .78rem; font-weight: 800; color: var(--green-2); text-transform: uppercase; letter-spacing: .03em; }
.opt-count { align-self: flex-start; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--leaf-soft); }
.opt-count.over { background: var(--amber-soft); }
.order-card ul li > span { min-width: 0; }

/* POS: "Show all" — categories one after the other, foldable */
.pos-sec { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.pos-sec + .pos-sec { margin-top: 6px; }
.pos-sec-h { display: flex; align-items: center; gap: 8px; border: 0; background: var(--card); box-shadow: var(--shadow); border-inline-start: 5px solid var(--c); border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-align: start; color: var(--ink); }
.pos-sec-h .chev { width: 16px; color: var(--muted); }
.pos-sec-h .muted { margin-inline-start: auto; }
.pos-sec-h .q { background: var(--red); color: var(--on-primary); border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
.pos-sec.shut .pos-sec-h { opacity: .8; }
.pos-sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }

/* discount picker */
.disc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.disc-chips button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); min-width: 64px; }
.disc-chips button.on { border-color: var(--red); background: var(--red-soft); }
.disc-res { margin-top: 8px; font-weight: 800; }

.var-row.one { grid-template-columns: 1fr 90px 40px; }
.var-row.og-row.nopr { grid-template-columns: 1fr 1fr 40px; }
.var-row.og-row.one.nopr { grid-template-columns: 1fr 40px; }
.og-allow { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--card); }
.og-allow-row { display: flex; flex-wrap: wrap; gap: 12px; }
.og-allow-row label, .og-max { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.og-allow-row .input, .og-max .input { width: 84px; }
.support-line { padding: 12px 14px; border-radius: var(--r-sm); background: var(--cream); font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.support-line a { color: var(--green); }

/* masonry columns (kitchen tickets, online orders) */
.kds-grid.masonry, .orders-grid.masonry { display: flex; gap: 14px; align-items: flex-start; }
.masonry > .mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* long tickets: denser rows so the whole order fits without endless scrolling */
.kds.big .kds-items li { padding: 6px 6px; font-size: 1rem; }
.kds.big .kds-items .kq { font-size: 1.05rem; min-width: 32px; }
.kds.big .kds-items .kalt { display: none; }

/* customer site: every recent order on this phone */
.my-orders { margin-top: 14px; padding: 6px 0; overflow: hidden; }
.mo-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 6px; }
.my-order { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: inherit; text-decoration: none; border-top: 1px dashed var(--line); }
.my-order:hover { background: var(--cream); }
.my-order.old { opacity: .6; }
.mo-num { font-family: var(--display); font-weight: 800; font-size: 1.35rem; min-width: 48px; color: var(--red); }
.my-order .chip { margin-bottom: 2px; }
.mo-go { color: var(--muted); font-size: 1.3rem; }
/* payment: "Pay & print receipt" / "Pay without receipt" */
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-btns .btn { min-width: 0; white-space: normal; line-height: 1.2; padding-inline: 10px; }
@media (max-width: 420px) { .pay-btns { grid-template-columns: 1fr; } }
/* PIN pad: ⏎ lights up once enough digits are typed */
.pin-pad button.go { background: var(--green, #2E5A36); color: #fff; border-color: transparent; }
