@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

:root {
  --paper: #f4f6f5;
  --paper-2: #eaeeec;
  --ink: #18212e;
  --ink-soft: #667085;
  --line: #e5e9e7;
  --field: #ffffff;
  --accent: #16a34a;          /* fresh primary green */
  --accent-press: #15803d;
  --accent-soft: #e7f7ec;
  --accent-deep: #126e34;
  --grad: linear-gradient(135deg, #21bd61, #128a44);
  --gold: #f0a93a;
  --amber: #f59e0b;           /* warm accent for energy and highlights */
  --amber-soft: #fff3df;
  --warn: #b4541a;
  --danger: #b3261e;
  --chip: #eef2ef;
  --radius: 18px;
  --maxw: 600px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 24, .06), 0 1px 3px rgba(16, 30, 24, .04);
  --shadow: 0 10px 30px rgba(16, 40, 28, .09), 0 2px 6px rgba(16, 40, 28, .05);
  --shadow-lift: 0 16px 34px rgba(16, 40, 28, .14);
  --shadow-btn: 0 8px 18px rgba(18, 138, 70, .26);
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  --sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* =====================================================================
   No sideways scrolling, platform wide (English and Hindi).
   Long words, URLs and longer Hindi phrases wrap instead of pushing the
   page wider; images, media and form controls never exceed their column;
   and any residual overflow is contained. overflow-x: clip is used, not
   hidden, so the sticky header keeps working.
   ===================================================================== */
html, body { max-width: 100%; overflow-x: clip; }

/* ---- The page must not jump sideways between screens -----------------------
   A short section has no scrollbar and a long one does, and the scrollbar takes
   width from the page. So moving between Operations, Kitchen, Business and Team
   shifted everything left and right by the width of that bar, on every switch.

   scrollbar-gutter keeps the space reserved whether the bar is there or not, so
   the page stays where it is. It changes nothing else: no element moves, no
   layout is recalculated, and a browser too old to know the property simply
   ignores it and behaves exactly as it does today. */
html { scrollbar-gutter: stable; }
body { overflow-wrap: break-word; }
img, svg, video, canvas, iframe, table { max-width: 100%; }
input, select, textarea { max-width: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body {
  background:
    radial-gradient(900px 340px at 50% -150px, rgba(34, 189, 98, .13), transparent 70%),
    var(--paper);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 16px 110px;
}

/* ---------- Branded header ---------- */
/* ---- The bars sit above everything on the page ---------------------------
   The header was at 10 while several sticky things on the page sat at 50, 55
   and 60. The right-hand rail on the home page is one of them, so scrolling a
   long list slid the inquiry card straight over the green header.

   200 puts both bars above every piece of page content, and still well below
   the overlays that are meant to cover them: modals at 1000, the address picker
   at 8000, the sign-in prompt at 9000. Anything that has to sit over a bar is
   a deliberate overlay and lives above 1000.

   Page content, sticky or not, now belongs below 200 and there is room for it. */
header.bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--grad);
  color: #fff;
  /* 13px of padding around a 50px logo made a 76px bar, most of it empty green
     above and below the only thing in it. 6px still keeps the logo off the
     edges without the bar reading as a band of colour with a logo in it.
     Nothing inside changes size. */
  padding: 6px 16px;
  box-shadow: 0 2px 16px rgba(18, 90, 52, .22);
}
header.bar .wrap-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px 8px;
}
header.bar .brand { margin-right: auto; flex: none; }
header.bar .wrap-bar > * { flex: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::before {
  content: "";
  width: 19px;
  height: 19px;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3Cpath d='M14.5 12.5c1-1.6 2.8-1.7 3.4-1.6-.1.7-.5 2.4-2 2.9'/%3E%3C/svg%3E");
}
.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
/* ---------- Logo (swaps with language) ---------- */
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}
.brand-logo-hi { display: none; }
/* Brand always shows the LaaoDo logo, in every language. */
.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-soft);
}
header.bar .eyebrow { color: rgba(255, 255, 255, .85); }
/* legacy: any leftover .shopname renders like the brand name */
header.bar .shopname { color: #fff; font-weight: 800; font-size: 1.12rem; }

/* ---------- Type ---------- */
h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 6px; }
h2 { font-size: 1.08rem; font-weight: 700; margin: 24px 0 10px; }
p.sub { color: var(--ink-soft); margin: 0 0 18px; }
.namemeta { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin: 16px 0 6px; }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 66px; resize: vertical; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 10px 22px rgba(18, 138, 70, .3); }
.btn:active { transform: translateY(1px) scale(.995); }
.ic { display: block; width: 16px; height: 16px; flex: none; }
.btn .ic, .btn svg { width: 14.4px; height: 14.4px; flex: none; }
.btn.secondary .ic, .btn.secondary svg, .btn.ghost .ic, .btn.ghost svg { color: var(--accent); }
.icon-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: #fff; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: var(--shadow-sm); }
.icon-badge .ic { width: 17.6px; height: 17.6px; }
.actionrow { justify-content: center; margin: 0 0 18px; }
.actionrow .btn, .actionrow .action-card { flex: 1 1 0; min-width: 0; }
.greet { margin: 6px 2px 18px; }
.greet-sub { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.greet-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; color: var(--ink); }
.action-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px 12px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--field); box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .15s ease, transform .1s ease; }
.action-card:hover { box-shadow: var(--shadow); }
.action-card:active { transform: translateY(1px); }
.action-card .ic { width: 24px; height: 24px; flex: none; color: var(--accent); }
.action-card .ac-title { font-weight: 800; font-size: .95rem; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; max-width: 100%; }
@media (max-width: 480px) {
  .actionrow .action-card { padding: 14px 6px; }
  .action-card .ac-title { font-size: .8rem; }
}
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; }
.sec-head-r { display: flex; align-items: center; gap: 10px; }
.collapse-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--accent); background: #fff; color: var(--ink-soft); cursor: pointer; transition: background .15s ease; }
.collapse-btn:hover { background: var(--field); }
.collapse-btn .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.collapse-btn.open .ic { transform: rotate(180deg); }
.sec-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.sec-chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--field); font-size: .82rem; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.btn.secondary {
  background: var(--field); color: var(--ink); border: 1.5px solid rgba(22, 163, 74, .34); box-shadow: var(--shadow-sm);
}
.btn.ghost {
  background: var(--field); color: var(--accent-press); border: 1.5px solid rgba(22, 163, 74, .34); box-shadow: var(--shadow-sm);
}
.btn.small { width: auto; padding: 10px 16px; font-size: 0.9rem; border-radius: 12px; }
.btn.ghost.danger { color: #b42318; border-color: #f3c2bd; }
.btn.secondary:hover, .btn.ghost:hover { filter: none; border-color: var(--accent); background: var(--accent-soft); color: var(--accent-press); box-shadow: var(--shadow-sm); }
.btn.ghost.danger:hover { border-color: #e8a59d; background: #fdeeec; color: #b42318; }

/* Range chips (sales export) */
.chip-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.btn.chip { width: 100%; }
.btn.chip.chip-wide { grid-column: 1 / -1; }
.btn.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-press); }

/* Settings row with an ON/OFF toggle (e.g. order alerts) */
.setting-row { display: flex; align-items: center; gap: 14px; background: linear-gradient(165deg, #f1faf4, #e7f5ee); border-color: #cdeedb; }
.setting-text { flex: 1; min-width: 0; }
.setting-title { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.switch { position: relative; flex: none; width: 78px; height: 34px; padding: 0; border: none; border-radius: 999px; background: #aab3ad; cursor: pointer; transition: background .2s ease; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.switch.on { background: var(--accent); }
.switch:disabled { opacity: .5; cursor: default; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .2s ease; }
.switch.on .switch-knob { left: 47px; }
.switch-txt { position: absolute; top: 0; height: 34px; display: flex; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #fff; pointer-events: none; transition: opacity .15s ease; }
.switch-on { left: 12px; opacity: 0; }
.switch-off { right: 11px; opacity: 1; }
.switch.on .switch-on { opacity: 1; }
.switch.on .switch-off { opacity: 0; }
.btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--field);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .12s ease;
}
.card.center { text-align: center; }

/* ---------- Order slip ---------- */
.slip { margin-top: 10px; }
.line-row {
  display: grid;
  grid-template-columns: 1fr 88px 40px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.line-row input { border: none; border-radius: 0; background: transparent; padding: 9px 2px; box-shadow: none; }
.line-row input:focus { box-shadow: none; }
.line-row .rm { background: none; border: none; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip {
  background: var(--accent-soft);
  border: 1.5px solid #c2e6cf;
  color: var(--accent-press);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Totals ---------- */
.amount { font-variant-numeric: tabular-nums; }
.totals { border-top: 1.5px solid var(--line); margin-top: 12px; padding-top: 12px; }
.totals .grand { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; }
.totals .line { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.9rem; padding: 2px 0; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-soft);
  vertical-align: middle;
}
.pill.go { background: var(--accent-soft); color: var(--accent-press); }
.pill.warn { background: #fbeadf; color: var(--warn); }
.pill.paid { background: var(--accent-soft); color: var(--accent-press); }

/* ---------- Progress steps ---------- */
.steps { display: flex; gap: 5px; margin: 16px 0; }
.steps .step { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.steps .step.on { background: var(--grad); }

.muted { color: var(--ink-soft); font-size: 0.9rem; }
.err { color: var(--danger); font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }
/* The card or field an error points to gets this red outline, so the user can see
   exactly where the problem is. Paired with an error message shown right above the
   button that was pressed. Reusable platform wide. */
.err-highlight { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(179, 38, 30, .16) !important; }
.ok { color: var(--accent-press); }
.center { text-align: center; }

/* ---------- Order items ---------- */
.order-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.order-item .name { flex: 1; }
.order-item .name a { color: var(--accent-press); font-weight: 700; }
.order-item.unavailable .name { text-decoration: line-through; color: var(--ink-soft); }

/* ---------- List rows ---------- */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: var(--field);
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .08s ease;
}
.list-row:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.list-row:active { transform: translateY(1px); }
.list-row .who { font-weight: 700; }
.list-row .meta { font-size: 0.82rem; color: var(--ink-soft); }

/* Shared page header with icon badge */
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-top: 4px; }
.page-ic { flex: none; width: 52px; height: 52px; border-radius: 15px; background: #e7f7ec; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.page-ic svg { width: 26px; height: 26px; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 4px 0 0; }

/* Rich order/status cards (My Orders, status lists) */
.order-card { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1.5px solid var(--accent); border-radius: 16px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease; }
.order-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.order-card:active { transform: translateY(1px); }
.oc-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.oc-ic svg { width: 22px; height: 22px; }
.oc-ic.g-green { background: #e3f6ea; color: var(--accent); }
.oc-ic.g-blue { background: #e7f0fe; color: #2563eb; }
.oc-ic.g-warn { background: #fdeede; color: var(--warn); }
.oc-ic.g-red { background: #fde9e6; color: var(--danger); }
.oc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oc-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-meta { font-size: .82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-meta svg { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.oc-right { flex: none; display: flex; align-items: center; gap: 8px; }
.oc-chev { color: var(--ink-soft); display: inline-flex; }
.oc-chev svg { width: 18px; height: 18px; }
.order-wrap { margin-bottom: 14px; }
.order-wrap .order-card { margin-bottom: 0; }
.reorder-btn { margin-top: 8px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.reorder-btn svg { width: 16px; height: 16px; }

/* Offer cards (Offers page) */
.offer-card { display: flex; gap: 14px; padding: 16px; border: 1.5px solid var(--accent); border-radius: 16px; background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.of-img { flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: #eef3ef; display: flex; align-items: center; justify-content: center; }
.of-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-img-ph { font-weight: 800; font-size: 1.9rem; color: var(--accent-press); }
.of-body { flex: 1; min-width: 0; }
.of-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.of-shop { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.of-dist { flex: none; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.of-chips { margin-top: 6px; }
.of-title { margin-top: 10px; font-weight: 800; color: var(--accent-press); font-size: 1.02rem; }
.of-details { margin-top: 6px; color: var(--ink); line-height: 1.5; white-space: pre-wrap; }
.of-valid { margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.offer-card .btn.small { margin-top: 12px; width: 100%; }
@media (max-width: 420px) {
  .of-img { width: 60px; height: 60px; }
  .of-img-ph { font-size: 1.5rem; }
}

/* Capture List Photo button + preview (customer order form) */
.listphoto-btn { display: inline-flex; align-items: center; gap: 7px; }
.listphoto-btn svg { width: 16px; height: 16px; }
.listphoto-prev { position: relative; display: inline-block; margin-top: 12px; }
.listphoto-prev img { max-width: 100%; max-height: 240px; border-radius: 14px; border: 1.5px solid var(--accent); display: block; }
.listphoto-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* Inquiry result cards + banners */
.shop-result { display: flex; gap: 13px; padding: 14px; border: 1.5px solid var(--accent); border-radius: 16px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.sr-main { flex: 1; min-width: 0; }
.sr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.sr-addr { font-size: .85rem; color: var(--ink-soft); margin-top: 3px; }
.sr-phone { font-size: .9rem; color: var(--ink-soft); margin-top: 7px; }
.sr-phone a { color: var(--accent-press); font-weight: 700; }
.shop-result .btn.small { margin-top: 10px; }
.note-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 600; line-height: 1.45; }
.note-banner svg { width: 22px; height: 22px; flex: none; }
.note-banner.ok { background: #eafaf0; border: 1.5px solid #c4ead3; color: var(--accent-press); }
.note-banner.neutral { background: #f6f8fa; border: 1.5px solid var(--accent); color: var(--ink); }
.sr-sec { margin: 22px 0 12px; font-size: 1.05rem; }

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 8px; }
.tabs button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px 13px; border: 1.5px solid var(--accent); background: var(--field);
  border-radius: 16px; font-weight: 700; font-size: .8rem; line-height: 1.2; color: var(--ink);
  text-align: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s ease;
}
.tabs button .tab-ic { display: inline-flex; color: var(--ink-soft); }
.tabs button .tab-ic .ic { width: 21px; height: 21px; }
.tabs button .tab-badge { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(22, 163, 74, .16); color: var(--accent-deep); font-size: .72rem; font-weight: 800; }
.tabs button .tab-label { display: block; }
.tabs button[aria-selected="true"] { border-color: var(--accent); color: #fff; background: var(--grad); box-shadow: var(--shadow-btn); }
.tabs button[aria-selected="true"] .tab-ic { color: #fff; }
.tabs button[aria-selected="true"] .tab-badge { background: rgba(255, 255, 255, .26); color: #fff; }

/* ---------- Admin order item editor ---------- */
/* One order line: tick, name and quantity, price and delete, then the
   Not available toggle across the bottom.

   Tighter than it was, because the swap note used to take a fourth row and the
   spacing was set to give it air. Without it the same padding just leaves a
   gap, and a busy order reads as a longer list than it is. */
.admin-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  row-gap: 5px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.admin-item .pick { width: 20px !important; height: 20px !important; min-width: 20px !important; flex: none; margin-top: 3px; }
.admin-item .iname { min-width: 0; line-height: 1.4; align-self: start; }
.admin-item .iname-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.admin-item .added-by { display: block; font-size: .78rem; color: #94a3b8; margin-top: 4px; font-weight: 500; }
.admin-item .pricecell { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.admin-item .rmItem { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 34px; padding: 0; margin-top: 2px; background: #fff; border: 1.5px solid #fecaca; border-radius: 9px; color: #dc2626; cursor: pointer; }
.admin-item .rmItem:hover { background: #fef2f2; border-color: #f87171; }
.admin-item .rmItem .ic { width: 18px; height: 18px; }
.admin-item .price-in { display: inline-flex; align-items: center; gap: 4px; }
.admin-item .price-in .rs { font-weight: 800; color: var(--ink); }
.admin-item .price-in .price { width: 72px; text-align: right; font-weight: 800; }
.admin-item .price { text-align: right; }
.admin-item .sub { grid-column: 1 / -1; }
.admin-item .price, .admin-item .sub { padding: 9px 10px; }

/* ---------- Field card (one input group per card) ---------- */
.fcard {
  background: var(--field);
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 16px 16px 18px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.fcard label:first-child { margin-top: 0; }
.fcard input:not([type=checkbox]):not([type=file]),
.fcard select, .fcard textarea { background: var(--paper); }
.fcard .line-row input { background: transparent; }
.fcard .checkrow { background: var(--paper); }
.fcard .checkrow:has(input:checked) { background: var(--accent-soft); }

/* legacy toggle (unused now, kept harmless) */
.toggle { display: flex; gap: 8px; }
.toggle button { flex: 1; padding: 12px; border: 1.5px solid var(--accent); background: var(--field); border-radius: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.toggle button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-press); background: var(--accent-soft); }

header.bar .shoplink-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .8rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34); white-space: nowrap;
  transition: background .15s ease;
}
header.bar .shoplink-btn:hover { background: rgba(255, 255, 255, .3); }

.acct-wrap { position: relative; flex: none; }
.acct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1.6px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s ease; }
.acct-btn:hover { background: rgba(255, 255, 255, .26); }
.acct-btn-person svg { width: 22px; height: 22px; display: block; }
.acct-btn-caret svg { width: 16px; height: 16px; display: block; transition: transform .2s ease; }
.acct-wrap.open .acct-btn-caret svg { transform: rotate(180deg); }

.acct-menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(330px, calc(100vw - 24px)); background: var(--field); border: 1px solid var(--accent); border-radius: 18px; box-shadow: var(--shadow-lift); padding: 8px; z-index: 60; }
.acct-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 12px; text-align: left; text-decoration: none; background: none; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; }
.acct-row + .acct-row { border-top: 1px solid var(--line); border-radius: 0; }
.acct-row:hover { background: var(--accent-soft); border-radius: 12px; }
.acct-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-press); }
.acct-ic svg { width: 23px; height: 23px; }
.acct-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-t { font-weight: 800; font-size: 1.04rem; color: var(--ink); line-height: 1.2; }
.acct-s { font-size: .84rem; color: var(--ink-soft); margin-top: 3px; line-height: 1.25; }
.acct-go { flex: none; color: var(--accent); opacity: .55; display: flex; }
.acct-go svg { width: 18px; height: 18px; }
.acct-row.danger .acct-ic { background: #fdeceb; color: var(--danger); }
.acct-row.danger .acct-t { color: var(--danger); }
.acct-row.danger .acct-go { color: var(--danger); }
.acct-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 13px 14px; border-radius: 13px; background: var(--accent-soft); }
.acct-foot-ic { flex: none; color: var(--accent); display: flex; }
.acct-foot-ic svg { width: 30px; height: 30px; }
.acct-foot-t { font-weight: 800; font-size: .95rem; color: var(--ink); }
.acct-foot-s { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

/* Registration / multi-field form redesign */
.reg-signin { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--accent-soft); text-decoration: none; margin: 4px 0 20px; }
.reg-signin .rs-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent-press); display: flex; align-items: center; justify-content: center; }
.reg-signin .rs-ic svg { width: 22px; height: 22px; }
.reg-signin .rs-tx { flex: 1; min-width: 0; }
.reg-signin .rs-q { color: var(--ink-soft); font-size: .9rem; }
.reg-signin .rs-a { color: var(--accent-press); font-weight: 800; margin-top: 2px; }
.reg-signin .rs-go { flex: none; color: var(--accent-press); opacity: .6; display: flex; }
.reg-signin .rs-go svg { width: 20px; height: 20px; }

.reg-stepper { display: flex; align-items: center; margin: 0 0 20px; }
.rs-step { display: flex; align-items: center; gap: 8px; flex: none; }
.rs-num { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex: none; transition: background .2s ease, color .2s ease; }
.rs-lb { font-weight: 700; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.rs-line { flex: 1; height: 2px; background: var(--line); margin: 0 8px; min-width: 10px; }
.rs-step.active .rs-num, .rs-step.done .rs-num { background: var(--accent); color: #fff; }
.rs-step.active .rs-lb { color: var(--accent-press); }
.rs-step.done .rs-lb { color: var(--ink); }

.reg-card { background: var(--field); border: 1px solid var(--accent); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.freg { display: flex; gap: 14px; padding: 20px 18px; }
.freg + .freg { border-top: 1px solid var(--line); }
.freg-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-press); display: flex; align-items: center; justify-content: center; }
.freg-ic svg { width: 23px; height: 23px; }
.freg-main { flex: 1; min-width: 0; }
.freg-label { font-weight: 800; font-size: 1.02rem; color: var(--ink); display: block; }
.freg-sub { color: var(--ink-soft); font-size: .88rem; margin: 3px 0 12px; line-height: 1.4; }
.freg-main > input, .freg-main > textarea, .freg-main > select { margin: 0; }

.phone-wrap { display: flex; align-items: stretch; gap: 8px; }
.phone-cc { flex: none; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--field); font-weight: 700; color: var(--ink); }
.phone-wrap input { flex: 1; }

.reg-foot { display: flex; flex-direction: column-reverse; gap: 10px; align-items: stretch; margin-top: 20px; }
.reg-foot .btn { margin-top: 0; width: 100%; }

@media (max-width: 520px) {
  .rs-lb { display: none; }
  .rs-line { margin: 0 6px; }
  .reg-stepper { justify-content: space-between; }
}

.subtabs { display: flex; width: 100%; background: var(--chip); border: 1px solid var(--accent); border-radius: 999px; padding: 5px; gap: 6px; margin: 4px 0 14px; }
.subtab { flex: 1; text-align: center; border: none; background: none; font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-soft); padding: 12px 12px; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.subtab.on { background: var(--accent); color: #fff; }

.loc-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 7px 7px 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-press); font-weight: 700; font-size: .9rem; }
.loc-chip-x { border: none; background: rgba(0, 0, 0, .07); color: var(--ink); width: 24px; height: 24px; border-radius: 50%; font-size: 1.15rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.loc-chip-x:hover { background: rgba(0, 0, 0, .14); }

/* First-visit tooltip pointing at the Register / Sign in button */
.outlet-tip { position: fixed; z-index: 60; max-width: 250px; background: #fff; color: var(--ink); border: 1.5px solid var(--accent); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); font-size: .9rem; line-height: 1.4; animation: tippop .25s ease; }
.outlet-tip::before { content: ""; position: absolute; top: -8px; right: 22px; width: 14px; height: 14px; background: #fff; border-left: 1.5px solid var(--line); border-top: 1.5px solid var(--line); transform: rotate(45deg); }
.outlet-tip-msg { display: block; }
.outlet-tip-x { display: inline-block; margin-top: 10px; background: var(--grad); color: #fff; border: none; border-radius: 9px; padding: 7px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; }
@keyframes tippop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Shared form controls (used across pages) ---------- */
.catselect {
  width: 100%; padding: 14px 16px; margin-top: 6px;
  border: 1.5px solid var(--accent); border-radius: 14px; background: var(--field); font-size: 1rem;
}
.fcard .catselect { background: var(--paper); }
.checkrow {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-top: 10px;
  border: 1.5px solid var(--accent); border-radius: 14px;
  background: var(--field); font-weight: 600; cursor: pointer;
}
.checkrow input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; flex: none; }
.checkrow:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.photo-preview {
  margin-top: 10px; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 14px; border: 1.5px solid var(--accent); display: none;
}
.ordiv { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #98a0a6; font-weight: 700; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.photo-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 6px; padding: 10px 12px;
  border: 1.5px solid var(--accent); border-radius: 14px; background: var(--field);
}
.photo-box input[type="file"] {
  border: none; background: transparent; padding: 0; width: auto;
  flex: 1; min-width: 150px; box-shadow: none;
}
.or-sep { color: #98a0a6; font-weight: 700; font-size: .85rem; }
.capture-btn {
  display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap;
  padding: 9px 14px; border: 1.5px solid var(--accent); border-radius: 10px;
  background: var(--paper); font-weight: 700; font-size: .9rem; color: var(--accent-press);
}
.capture-btn:hover { border-color: var(--accent); }
.distrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.timerow { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; margin-top: 6px; }
.timebox { text-align: center; }
.whenout { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--field); border: 1.5px dashed var(--line); color: var(--ink-soft); font-size: .92rem; font-weight: 600; line-height: 1.35; }
.whenout.whenout-set { background: linear-gradient(165deg, #f1faf4, #e7f5ee); border: 1.5px solid #cdeedb; color: var(--ink); font-weight: 700; }
.whenout.whenout-warn { background: #fdeeec; border: 1.5px solid #f3c9c3; color: var(--danger); font-weight: 700; }

/* ---------- Language toggle ---------- */
.bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.langtog {
  display: inline-flex; align-items: center; padding: 3px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px; cursor: pointer; user-select: none;
}
.langtog .seg {
  font-size: .72rem; font-weight: 800; line-height: 1; padding: 6px 10px;
  border-radius: 999px; color: rgba(255, 255, 255, .85); white-space: nowrap;
}
.langtog .seg.on { background: #fff; color: #15803d; }

/* Hindi reads better with a little more vertical room and no tight tracking. */
html.lang-hi body { line-height: 1.7; }

/* Owner identity + trust chips on the shop page */
.owner-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; }
.owner-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #e5e9e7; }
.owner-txt { display: flex; flex-direction: column; line-height: 1.35; }
.owner-txt .muted { font-size: .85rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.trust-chips .chip { cursor: default; }
.chip-good { background: #e7f7ec; border-color: #c2e6cf; color: #15803d; }

html.lang-hi h1, html.lang-hi h2, html.lang-hi h3 { letter-spacing: 0; line-height: 1.5; }
html.lang-hi .brand-name { letter-spacing: 0; }
html.lang-hi .eyebrow, html.lang-hi .pill, html.lang-hi .langtog .seg { letter-spacing: .02em; }
html.lang-hi label, html.lang-hi .btn, html.lang-hi .muted, html.lang-hi p.sub { line-height: 1.6; }

/* ---------- Star ratings ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--gold); line-height: 1; vertical-align: middle; }
.rate-num { color: var(--ink-soft); font-size: .85rem; margin-left: 6px; vertical-align: middle; }
.starpick { display: inline-flex; gap: 8px; margin: 8px 0 4px; }
.starpick .s { cursor: pointer; font-size: 2.1rem; line-height: 1; color: #d8d2c4; user-select: none; }
.starpick .s.on { color: var(--gold); }

/* ---------- Share order row ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .btn { flex: 1 1 auto; min-width: 92px; text-align: center; }

/* ---------- Sub-labels and category chips ---------- */
.subline { display: block; font-size: .85rem; font-weight: 700; color: #5d6470; margin: 2px 0 2px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; background: #e7f7ec; color: #15803d;
  border: 1px solid #c2e6cf; border-radius: 999px; padding: 6px 6px 6px 12px; font-size: .85rem; font-weight: 700; }
.cat-chip button { border: none; background: #c2e6cf; color: #15803d; width: 20px; height: 20px;
  border-radius: 50%; cursor: pointer; line-height: 1; font-size: 1rem; display: flex; align-items: center; justify-content: center; padding: 0; }

/* ---------- Trust: served count + Verified badge (Stage 8) ---------- */
.served { color: #5d6470; font-size: .85rem; font-weight: 600; margin: 4px 0 0; }
.vbadge {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: middle;
  background: #e7f1ff; color: #1559b3; border: 1px solid #bcd7fb;
  font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.report-link {
  display: inline-block; margin-top: 6px; background: none; border: none;
  color: #b42318; font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 4px 0;
}
.report-link:hover { color: #8a1a12; }

/* ---------- Open-days picker (Stage 9) ---------- */
.dayquick { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.daypreset { background: var(--field); border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; color: #2a2f36; }
.daypreset:hover { border-color: var(--accent); color: var(--accent-press); }
.daygrid { display: flex; gap: 8px; flex-wrap: wrap; }
.daychip { border: 1.5px solid var(--accent); background: var(--field); color: var(--ink);
  border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: .9rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.daychip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-press); }

/* Required-field marker */
.req { color: #b3261e; margin-left: 1px; font-weight: 700; }

/* Item "Not available" toggle (order detail) */
.admin-item.is-na .iname { text-decoration: line-through; color: var(--ink-soft); }
.admin-item .price:disabled { background: #eef1ef; color: var(--ink-soft); }

/* ---- Holding the order row together on a small phone ---------------------
   The row is three columns: tick, name with its quantity stepper, then price
   with the delete button under it. Everything in columns one and three is a
   fixed width, so the name column absorbs whatever is left. Below about 390px
   there is nothing left to absorb and the stepper wraps under the name, which
   turns a three-line row into five and makes a six item order a scroll.

   So the fixed parts shrink instead of the layout breaking. Same controls, same
   order, same positions, just sized for the screen they are on. Nothing here
   goes below the 30px that a thumb can still hit reliably. */
@media (max-width: 430px) {
  .admin-item { column-gap: 8px; }
  .admin-item .price-in .price { width: 60px; }
  .admin-item .rmItem { width: 36px; height: 32px; }
  .qty-inline .qty-save { padding: 7px 10px; font-size: .76rem; }
  .qty-inline .qty-btn { width: 30px; height: 30px; }
  .qty-inline .qty-val { min-width: 22px; }
  .admin-item .iname-name { font-size: .95rem; }
}
@media (max-width: 360px) {
  .admin-item { column-gap: 6px; }
  .admin-item .price-in .price { width: 54px; }
  .admin-item .price-in .rs { font-size: .88rem; }
  .admin-item .rmItem { width: 32px; height: 30px; }
  .qty-inline .qty-save { padding: 6px 8px; font-size: .72rem; }
  .qty-inline .qty-row { gap: 4px; }
  .admin-item .iname-name { font-size: .9rem; }
  /* The card's own padding comes in too. On a 320px screen the row was two
     pixels wider than the space left for it, and two pixels is the difference
     between one line and two. */
  .card { padding-left: 10px; padding-right: 10px; }
}
/* The stepper is the one thing that must never wrap: a plus and a minus on
   separate lines is a mis-tap waiting to happen. */
.qty-inline .qty-row { flex-wrap: nowrap; }
.qty-inline .qty-save { white-space: nowrap; }

/* Read-only order items (ready / completed phase) */
.ro-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.ro-item:last-child { border-bottom: none; }
.ro-item.unavail .iname { color: var(--ink-soft); }
.ro-item .amount { font-weight: 700; white-space: nowrap; }

/* WhatsApp reminder callout */
.wa-reminder { background: #e7f7ec; border: 1.5px solid #16a34a; color: #126e34; border-radius: 12px; padding: 12px 14px; margin: 14px 0 6px; font-weight: 600; position: relative; }
.wa-reminder::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 16px; height: 16px; background: #e7f7ec; border-right: 1.5px solid #16a34a; border-bottom: 1.5px solid #16a34a; transform: rotate(45deg); }
.btn.pulse { animation: btnpulse 1.1s ease-in-out infinite; }
@keyframes btnpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,139,78,.5); } 50% { box-shadow: 0 0 0 9px rgba(31,139,78,0); } }

/* New-orders tray (dashboard) */
.tray { margin: 2px 0 16px; }
.tray-card { background: #fff7e6; border: 1.5px solid #f0b400; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.tray-head strong { color: #8a5a00; font-size: 1.05rem; }
.tray-head .meta { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }

/* The table and the name, on their own line under "New order".

   These are the two things a counter reads out when an order lands, and they
   were buried mid-sentence in the grey meta line below. Full size here, with
   the seat as a badge so it is found by shape before it is read. */
.tray-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.tray-seat {
  font-size: .9rem; font-weight: 800; color: #8a5a00;
  background: rgba(180, 83, 9, .12); border-radius: 8px; padding: 3px 10px;
  white-space: nowrap; flex: none;
}
.tray-name {
  font-size: 1rem; font-weight: 800; color: var(--ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tray-items { margin: 10px 0 12px; padding-left: 18px; }
.tray-items li { margin: 3px 0; }
.tray-accept { width: 100%; }

/* The reasons row under Cancel order (#cancelReasons). The class name is from
   when a new order could be declined before accepting; that went on 30
   October 2026 (REMOVED.md) and the row stayed with Cancel. */
.decline-reasons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.decline-reasons .muted { width: 100%; margin: 0; }

/* New badge on the Open Orders tab */
.newbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #b3261e; color: #fff; font-size: .72rem; font-weight: 800; vertical-align: middle; }

/* Help dot (small ? marker) */

/* Centered modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.modal-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 22px; max-width: 420px; width: 100%; box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.modal-card p { margin: 0 0 10px; line-height: 1.5; }

/* Order alerts button state: red attention border when off, green when on */


/* Inline copy icon next to the outlet link */
.linkurl-row { display: flex; align-items: center; gap: 8px; }
.linkurl-row .linkurl { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--accent); background: #fff; color: var(--accent); cursor: pointer; }
.copy-icon:hover { border-color: var(--accent); }
.copy-icon:active { transform: translateY(1px); }

/* Price-list picker inside the order pricing row */
.admin-item .pricecell { display: flex; flex-direction: column; gap: 4px; }
.pricepick { width: 100%; padding: 5px 6px; font-size: .78rem; border: 1.5px solid var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--accent-press); font-weight: 700; }
.fromlist { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--accent-press); background: var(--accent-soft); border: 1px solid #c2e6cf; border-radius: 999px; padding: 1px 7px; vertical-align: middle; }

/* Saved price list (dashboard) */
.cat-list { margin-top: 14px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--field); margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.cat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-name { font-weight: 700; overflow-wrap: anywhere; }
.cat-price { color: var(--accent-press); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Food outlet menu screen */
.menu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.menu-head svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.menu-head strong { font-size: 1.05rem; }
.menu-hero { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 18px; }
.menu-hero-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.menu-hero-ic svg { width: 26px; height: 26px; }
.menu-card { display: flex; gap: 18px; align-items: flex-start; }
.menu-illus { flex: none; width: clamp(104px, 27vw, 156px); aspect-ratio: 1; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.menu-illus.green { background: #eafaf0; }
.menu-illus.purple { background: #f3effe; }
.menu-illus svg { width: 100%; height: 100%; }
.menu-card-body { flex: 1; min-width: 0; }
.menu-card-title { font-size: 1.18rem; font-weight: 800; margin: 0 0 9px; }
.menu-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-press); font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 5px 12px; margin-bottom: 10px; }
.menu-badge svg, .menu-badge .ic { width: 14px; height: 14px; }
.menu-cta { width: auto; margin-top: 4px; }
.menu-cta .ic, .menu-cta svg { width: 18px; height: 18px; }
.cta-block .ic, .cta-block svg { width: 18px; height: 18px; }
.btn.ghost.purple { border-color: #c4b5fd; color: #7c3aed; }
.btn.ghost.purple .ic, .btn.ghost.purple svg { color: #7c3aed; }
.btn.ghost.purple:hover { border-color: #a78bfa; background: #f3effe; color: #6d28d9; }
.field-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; }
.field-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.field-ic .ic, .field-ic svg { width: 22px; height: 22px; }
.field-main { flex: 1; min-width: 0; }
.field-main label { display: block; margin: 0 0 6px; }
.field-main input { width: 100%; }
.has-chev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
@media (max-width: 430px) {
  .menu-card { gap: 12px; }
  .menu-illus { width: 86px; border-radius: 13px; padding: 9px; }
  .menu-card-title { font-size: 1.06rem; }
  .field-ic { width: 42px; height: 42px; }
}
.menu-list { margin-top: 8px; }
.menu-group { margin-bottom: 16px; }
.menu-sec { font-weight: 800; color: var(--accent-press); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; margin: 4px 0 8px; }
.menu-sec-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.menu-sec-row .menu-sec { margin: 0; }
.sec-edit { flex: none; border: none; background: transparent; color: var(--accent); padding: 4px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sec-edit .ic, .sec-edit svg { width: 15px; height: 15px; }
.sec-edit:hover { background: var(--accent-soft); }
.sec-edit-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.sec-edit-form input { flex: 1; min-width: 150px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--field); margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.menu-row.off { opacity: .55; }
.menu-row.editing { display: block; }
.menu-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.menu-name { font-weight: 700; overflow-wrap: anywhere; }
.menu-price { color: var(--accent-press); font-weight: 800; font-variant-numeric: tabular-nums; }
.menu-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.menu-status .ms-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.menu-status.on { background: var(--accent-soft); color: var(--accent-press); }
.menu-status.on .ms-dot { background: #16a34a; }
.menu-status.off { background: #fff4e5; color: #b45309; }
.menu-status.off .ms-dot { background: #f59e0b; }
.menu-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.menu-btns { display: flex; gap: 8px; }
.menu-btns .btn svg { width: 15px; height: 15px; }
.menu-edit label { margin-top: 12px; }
.menu-edit label:first-child { margin-top: 0; }
.menu-edit input { width: 100%; }
.menu-edit-btns { display: flex; gap: 10px; margin-top: 14px; }
.avail-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.switchmini { position: relative; width: 38px; height: 22px; flex: none; }
.switchmini input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switchmini-track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .15s; pointer-events: none; }
.switchmini-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switchmini input:checked + .switchmini-track { background: #dc2626; }
.switchmini input:checked + .switchmini-track::after { transform: translateX(16px); }
.mx-list { margin-top: 12px; }
.mx-row { display: grid; grid-template-columns: 1fr 70px 90px 30px; gap: 6px; margin-bottom: 8px; align-items: center; }
.mx-row input { padding: 10px 10px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--field); font-size: .95rem; }
.mx-del { border: none; background: var(--paper-2); color: var(--ink-soft); width: 30px; height: 34px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.mx-del:hover { background: #fde2e2; color: var(--danger); }
.mx-actions { display: flex; gap: 10px; margin-top: 6px; }
.mj-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mj-row { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.mj-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ink-soft); }
.mj-row.queued .mj-dot { background: #d97706; }
.mj-row.processing .mj-dot { background: #2563eb; animation: mjpulse 1s ease-in-out infinite; }
.mj-row.done .mj-dot { background: #16a34a; }
.mj-row.done { background: var(--accent-soft); color: var(--accent-press); font-weight: 700; border-radius: 12px; padding: 11px 13px; }
.mj-row.done .ic, .mj-row.done svg { width: 20px; height: 20px; color: #16a34a; flex: none; }
.mj-row.failed .mj-dot { background: #dc2626; }
.mj-row.failed { color: #b91c1c; }
@keyframes mjpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Item list with an amount column (manual sale entry) */
.line-row.with-amt { grid-template-columns: 1fr 56px 72px 32px; }
.line-row .amt { text-align: right; }

/* Sales record (dashboard) */
.salenav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.salenav strong { font-size: 1.05rem; }
.salenav .btn { width: auto; }
.sale-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--field); margin-bottom: 8px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .12s ease, border-color .15s ease; }
.sale-row[data-open] { cursor: pointer; }
.sale-row[data-open]:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.sale-row[data-open]:active { transform: translateY(1px); }
.sale-info { flex: 1; min-width: 0; line-height: 1.4; }
.sale-who { font-weight: 700; }
.sale-row .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sale-tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.sale-tag.order { background: var(--accent-soft); color: var(--accent-press); }
.sale-tag.walkin { background: var(--amber-soft); color: #9a6400; }
.sale-del { background: none; border: none; color: var(--ink-soft); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 2px 4px; flex: none; }
/* Cash, UPI/Card and Credit (Udhaar), side by side and whole, on any width.

   These were laid out at their natural size and told never to shrink, so on a
   narrow phone the third ran off the right edge: an outlet could see "Credit
   (Udhaa" and could not reach the button at all. The row is one of three things
   pressed on every completed order, so it has to fit the screen it is on rather
   than the screen it was designed on.

   Each takes an equal third and gives ground as the screen narrows: padding and
   type shrink first, then the label wraps inside its own button. Wrapping keeps
   the three in one row and keeps every word readable, which matters more here
   than each button being one line tall. */
.pay-toggle { display: flex; gap: 8px; margin-top: 6px; align-items: stretch; }
.pay-opt {
  /* An equal share, allowed to shrink. min-width:0 is what actually permits it:
     a flex item will not go below its content width without it, which is why
     the old row overflowed instead of squeezing. */
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px clamp(6px, 2vw, 18px);
  font-size: clamp(.75rem, 2.7vw, .95rem);
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--field);
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
/* The icon holds its size while the label gives way. Below this the icon is the
   first thing to go: three icons plus three wrapped labels on a 320px screen
   leaves too little room for the words, and the words are what identify the
   button. */
@media (max-width: 360px) {
  .pay-opt .pm-ic { display: none; }
}
.pay-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-press); }

/* ---- Cash, UPI/Card, Credit: told apart by colour and shape ----------------

   Three pills in the same green read as one control with a highlight moving
   along it. At a counter this is pressed on every order, often without looking
   properly, and the wrong one recorded is money in the wrong column.

   So each gets its own colour and each is a box rather than a pill: a box has
   corners to aim at, and the colour is recognisable before the label is read.
   Selected fills solid, so which one is chosen is legible across a room.

   Scoped to [data-pm]. The discount toggle shares the .pay-opt class and is a
   different question with a different answer; colouring it the same way would
   say these two rows are the same kind of choice. */
.pay-opt[data-pm] {
  border-radius: 12px;
  border-width: 2px;
  font-weight: 800;
}
.pay-opt[data-pm] .pm-ic { opacity: .9; }

/* Cash: green, the colour of the platform's own confirmations. */
.pay-opt[data-pm="cash"] { border-color: #86e0a8; background: #f2fbf5; color: #15803d; }
.pay-opt[data-pm="cash"]:hover { border-color: #16a34a; }
.pay-opt[data-pm="cash"].on { border-color: #15803d; background: #16a34a; color: #fff; }

/* UPI or card: blue, and nothing else on this screen is blue. */
.pay-opt[data-pm="upi"] { border-color: #a8c9f5; background: #f3f8ff; color: #1d4ed8; }
.pay-opt[data-pm="upi"]:hover { border-color: #2563eb; }
.pay-opt[data-pm="upi"].on { border-color: #1d4ed8; background: #2563eb; color: #fff; }

/* Credit: amber. Money not collected yet, which is the one of the three worth
   hesitating over, so it reads as a caution rather than a confirmation. */
/* ---- Splitting a bill across methods --------------------------------------
   Above the buttons, quiet by default: most bills are settled one way and this
   must not read as another thing to fill in. */
/* The menu browser's styles are inline in admin.html, not here.
   admin.html is served no-cache; this file is cached for a year, so a layout
   that only works once the new stylesheet arrives shows up broken until it
   does. */

/* What a saved counter sale was made of. Read-only: seeing the breakdown is the
   job here, editing it line by line is a different one. */
.soldrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed #e8eeea; }
.soldrow:last-child { border-bottom: 0; }
.soldname { font-weight: 700; color: #18212e; overflow-wrap: anywhere; }
.soldamt { flex: none; font-weight: 800; color: #15803d; }

/* ---- Customer details, folded away on the walk-in sale screen -------------
   Most counter sales are cash and need none of it. */
.custdet { margin-top: 14px; border: 1px solid #e6ece9; border-radius: 12px; padding: 10px 12px; background: #fbfdfc; }
.custdet > summary { cursor: pointer; font-weight: 800; color: #334155; list-style: none; }
.custdet > summary::-webkit-details-marker { display: none; }
.custdet > summary::after { content: "\203a"; float: right; transform: rotate(90deg); color: #64748b; font-weight: 800; }
.custdet[open] > summary::after { transform: rotate(-90deg); }

/* Names already carrying udhaar. Anchored to the input so the list sits under
   it, and above everything else so it is not clipped by the card. */
.sugwrap { position: relative; }
.sugbox { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px;
  background: #fff; border: 1px solid #d7e0da; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,24,40,.14); }
.sugbox[hidden] { display: none; }
.sugitem { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #eef2f0;
  background: #fff; font: inherit; text-align: left; cursor: pointer; }
.sugitem:last-child { border-bottom: 0; }
.sugitem:hover { background: #f2fbf5; }
.sugname { font-weight: 700; color: #18212e; overflow-wrap: anywhere; }
.sugphone { flex: none; font-size: .84rem; font-weight: 700; color: #64748b; }

/* ---- Inventory rows ------------------------------------------------------
   Name, count, Save, then the two icon buttons. The name takes the space that
   is left, so a long dish name wraps rather than squeezing the controls. */
.inv-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid #e6ece9; border-radius: 12px; }
.inv-name { flex: 1 1 auto; min-width: 0; font-weight: 700; color: #18212e; overflow-wrap: anywhere; }
.inv-qty { flex: 0 0 78px; width: 78px; padding: 8px 9px; border: 1.5px solid #d7e0da; border-radius: 9px;
  font: inherit; font-weight: 800; text-align: right; background: #fff; }
.inv-qty:focus { outline: none; border-color: #16a34a; }
.inv-row .btn.small { flex: none; margin: 0; width: auto; padding: 8px 12px; }
.inv-add { display: flex; gap: 8px; align-items: center; }
.inv-add input:first-child { flex: 1 1 auto; min-width: 0; }
.inv-add input + input { flex: 0 0 78px; width: 78px; text-align: right; }
.inv-add .btn { flex: none; margin: 0; width: auto; }
.iconbtn { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 1.5px solid #e2e8f0; border-radius: 10px;
  background: #fff; cursor: pointer; color: #475569; }
.iconbtn:hover { border-color: #94a3b8; }
.inv-del { color: #b91c1c; border-color: #f3c9c9; }
.inv-del:hover { border-color: #b91c1c; }
.iconbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* What is left of a dish, under its line on the order screen. Small and grey:
   a reminder, not part of the bill, and it must not compete with the price
   beside it. Red at or below zero, the one case worth interrupting anyone for. */
.qty-stock { font-size: .74rem; font-weight: 700; color: #64748b; margin-top: 2px; }
.qty-stock.out { color: #b91c1c; }

.paysplit { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #e6ece9; border-radius: 12px; background: #fbfdfc; }
.paysplit-hd { font-size: .82rem; font-weight: 800; color: #334155; margin-bottom: 6px; }
.paysplit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .9rem; font-weight: 600; color: #1f2937; }
.paysplit-in { display: inline-flex; align-items: center; gap: 5px; }
.paysplit-in i { font-style: normal; font-size: .78rem; color: #64748b; }
.paysplit-in input { width: 96px; padding: 7px 9px; border: 1.5px solid #d7e0da; border-radius: 9px; font: inherit; font-weight: 700; text-align: right; background: #fff; }
.paysplit-in input:focus { outline: none; border-color: #16a34a; }
/* The running total. Red is not an error here, it is the difference the outlet
   still has to account for, so it says which way and by how much. */
.paysplit-sum { margin-top: 6px; font-size: .8rem; font-weight: 700; }
.paysplit-sum.ok { color: #15803d; }
.paysplit-sum.bad { color: #b91c1c; }
/* ---- How a completed bill was settled ------------------------------------
   On the order itself, where the outlet needs the figures rather than a hint.
   The total is repeated at the foot so nobody has to add the parts up. */
.paidline { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.paidline strong { display: block; font-size: .82rem; color: #334155; margin-bottom: 6px; }
.paidline-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .92rem; color: #1f2937; }
.paidline-row b { font-weight: 800; }
.paidline-row.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid #eef2f0; font-weight: 800; }

/* Two badges sit side by side on a completed order, so they need room. */
.pay-badge + .pay-badge { margin-left: 6px; }
.pay-badge b { font-weight: 800; }

.pay-opt[data-pm="credit"] { border-color: #f3ce8f; background: #fffaef; color: #b45309; }
.pay-opt[data-pm="credit"]:hover { border-color: #d97706; }
.pay-opt[data-pm="credit"].on { border-color: #b45309; background: #d97706; color: #fff; }

/* A chosen button carries its own colour, so the icon must follow the text
   rather than staying the accent green it inherits. */
.pay-opt[data-pm].on .pm-ic, .pay-opt[data-pm].on svg { color: currentColor; }

/* Daily summary tiles (dashboard) */.daystat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 4px; }
.daystat-tile { display: flex; flex-direction: column; align-items: flex-start; min-height: 128px; background: linear-gradient(165deg, #ffffff, #f5f9f6); border: 1.5px solid var(--accent); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.daystat-top { display: flex; align-items: center; gap: 11px; }
.daystat-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: #fff; }
.daystat-ic .ic { width: 16px; height: 16px; }
.daystat-tile .n { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.daystat-tile .l { display: block; font-size: .92rem; font-weight: 800; color: var(--ink); margin-top: 11px; }
.daystat-tile .sl { display: block; font-size: .76rem; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.daystat-tile.info { background: linear-gradient(165deg, #eff6ff, #e2eefd); border-color: #cfe0fb; }
.daystat-tile.info .daystat-ic { color: #2563eb; box-shadow: inset 0 0 0 1.5px #cfe0fb; }
.daystat-tile.good { background: linear-gradient(165deg, #eafaf0, #d9f2e3); border-color: #bfe8cf; }
.daystat-tile.good .daystat-ic { color: var(--accent); box-shadow: inset 0 0 0 1.5px #bfe8cf; }
.daystat-tile.bad { background: linear-gradient(165deg, #fdeeec, #fadfdb); border-color: #f3c9c3; }
.daystat-tile.bad .daystat-ic { color: var(--danger); box-shadow: inset 0 0 0 1.5px #f3c9c3; }
.daystat-tile.bad .l { color: var(--danger); }

/* Friendly empty states (pure CSS icon, so any screen can use it) */
.empty { text-align: center; padding: 34px 16px 28px; }
.empty::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 12px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23a9d8bd'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%202%203%206v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V6l-3-4z'/%3E%3Cline%20x1='3'%20y1='6'%20x2='21'%20y2='6'/%3E%3Cpath%20d='M16%2010a4%204%200%200%201-8%200'/%3E%3C/svg%3E"); }
.empty .t { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.empty .s { font-size: .9rem; color: var(--ink-soft); margin-top: 3px; }

/* Sales record screen */
.sales-sub { margin: -6px 0 18px; font-size: .95rem; }
.sales-daynav { flex-wrap: wrap; row-gap: 10px; margin: 6px 0 18px; }
.sales-daynav .sd-center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sd-cal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1.5px solid var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.sd-cal .ic { width: 20px; height: 20px; }
.sd-when { display: flex; flex-direction: column; line-height: 1.18; }
.sd-when strong { font-size: 1.05rem; color: var(--ink); }
.sd-when .sd-date { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.sd-right { flex: none; display: flex; align-items: center; gap: 8px; }
.sd-export { color: var(--accent); font-weight: 800; }
.sd-export .ic { width: 16px; height: 16px; }

.stiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 14px; }
.stile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 20px; border-radius: 18px; border: 1.5px solid var(--accent); box-shadow: var(--shadow-sm); }
.stile-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; margin-bottom: 14px; }
.stile-ic .ic { width: 24px; height: 24px; }
.stile-n { font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stile-l { font-size: .95rem; font-weight: 800; color: var(--ink); margin-top: 11px; }
.stile-sl { font-size: .76rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.stile.green { background: linear-gradient(165deg, #eafaf0, #def5e7); border-color: #c4ead3; }
.stile.green .stile-ic { background: #d2efdc; color: var(--accent); }
.stile.blue { background: linear-gradient(165deg, #eff6ff, #e3eefd); border-color: #cfe0fb; }
.stile.blue .stile-ic { background: #d8e8fd; color: #2563eb; }
.stile.purple { background: linear-gradient(165deg, #f5f1fe, #ece4fb); border-color: #ddd0f5; }
.stile.purple .stile-ic { background: #e5dbfa; color: #7c3aed; }

.sales-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f6f8fa; border: 1.5px solid var(--accent); margin: 0 0 16px; }
.sales-note-ic { flex: none; color: #2563eb; display: inline-flex; }
.sales-note-ic .ic { width: 22px; height: 22px; }
.sales-note-tx { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

#addSale .ic { width: 20px; height: 20px; }

.sales-empty { text-align: center; padding: 28px 16px 26px; }
.sales-empty-art { width: 140px; height: 130px; margin: 0 auto 4px; display: block; }
.sales-empty .t { font-weight: 800; color: var(--ink); font-size: 1.3rem; }
.sales-empty .s { font-size: .92rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

@media (max-width: 380px) {
  .stile { padding: 18px 8px 16px; }
  .stile-ic { width: 44px; height: 44px; margin-bottom: 11px; }
  .stile-ic .ic { width: 21px; height: 21px; }
  .stile-n { font-size: 1.35rem; }
  .stile-l { font-size: .85rem; margin-top: 9px; }
  .stile-sl { font-size: .7rem; }
  .stiles { gap: 9px; --nb: 1.35rem; }
}

/* A tile never pushes its grid column wider than its share (20 October 2026).
   At 390px "Rs 8,000.00" in Walk-in sales was wider than a third of the
   screen, the grid grew to fit it, and the third tile sat 14px off the edge;
   Rs 1,25,430.00 put it 96px off. The amount's digits cannot break, so the
   tile shrinks them to fit instead: each amount says how many characters its
   digits have (--n, from stileNum in admin.html) and the font is capped at
   what that many characters fit in the tile's own width (cqi). "Rs" may still
   drop to its own line, as it always has on a small phone.
   test-sales-tiles-fit.mjs. */
.stile { min-width: 0; }
.stile-l, .stile-sl { max-width: 100%; overflow-wrap: break-word; }
@supports (container-type: inline-size) {
  .stile { container-type: inline-size; }
  .stile-n[style*="--n"] { font-size: min(var(--nb, 1.65rem), calc(200cqi / var(--n))); }
  .stile.stile-sm .stile-n[style*="--n"] { font-size: min(1.12rem, calc(200cqi / var(--n))); }
}
/* A phone too old for that breaks the digits rather than spilling them over
   the next tile. */
@supports not (container-type: inline-size) {
  .stile-n { overflow-wrap: anywhere; }
}

/* Shared loading state */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px 16px; color: var(--ink-soft); font-size: .95rem; }
.loading::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:active, .list-row:hover, .list-row:active, .sale-row[data-open]:hover, .sale-row[data-open]:active { transform: none !important; }
}

/* Reviews: photos, cards, and the outlet's public reply */
.review-photo { display: block; margin-top: 10px; max-width: 100%; max-height: 240px; border-radius: 12px; border: 1.5px solid var(--accent); object-fit: cover; }
.reply-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.owner-reply { margin-top: 10px; padding: 10px 12px; background: var(--accent-soft); border-radius: 12px; border: 1px solid #c2e6cf; font-size: .92rem; }
.owner-reply-by { display: block; font-size: .72rem; font-weight: 800; color: var(--accent-press); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.rev-card { background: var(--field); border: 1.5px solid var(--accent); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.rev-top { display: flex; align-items: center; gap: 10px; }
.rev-top .stars { font-size: 1rem; }
.rev-name { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.rev-text { margin: 8px 0 0; }
.rev-img { display: block; margin-top: 10px; max-width: 100%; max-height: 260px; border-radius: 12px; border: 1.5px solid var(--accent); object-fit: cover; background: var(--paper-2); }

/* ---------- Small-phone polish (mobile is the primary device) ---------- */
@media (max-width: 430px) {
  .wrap { padding: 16px 13px 108px; }
  header.bar { padding: 11px 10px; }
  .brand-logo { height: 40px; }
  header.bar .wrap-bar { gap: 6px; }
  header.bar .shoplink-btn { padding: 6px 10px; font-size: .72rem; }
  .langtog .seg { padding: 5px 8px; font-size: .7rem; }
  .acct-btn { width: 34px; height: 34px; padding: 0; }
  .acct-btn-person svg { width: 20px; height: 20px; }
  .acct-btn-caret svg { width: 14px; height: 14px; }
  h1 { font-size: 1.38rem; }
}
@media (max-width: 380px) {
  header.bar { padding: 10px 8px; }
  .brand-logo { height: 36px; }
  header.bar .wrap-bar { gap: 5px; }
  header.bar .shoplink-btn { padding: 6px 8px; font-size: .66rem; }
  .langtog { padding: 2px; }
  .langtog .seg { padding: 5px 6px; font-size: .66rem; }
  .acct-btn { height: 31px; padding: 0 6px 0 8px; gap: 3px; }
  .acct-btn-person svg { width: 18px; height: 18px; }
  .acct-btn-caret svg { width: 13px; height: 13px; }
}
@media (max-width: 345px) {
  .brand-logo { height: 32px; }
  header.bar .shoplink-btn { padding: 5px 7px; font-size: .6rem; }
  .langtog .seg { padding: 4px 6px; font-size: .6rem; }
  .acct-btn { height: 29px; }
}


/* Clearly visible checkboxes across the whole platform: a dark green box that is
   easy to spot, with a white tick when checked. Custom-drawn so it looks the
   same in Chrome light and dark mode and at every size. */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border: 2px solid #0f7a37 !important;
  border-radius: 6px !important;
  background: #fff center / 70% no-repeat !important;
  cursor: pointer;
  vertical-align: middle;
  flex: none;
  box-sizing: border-box;
  opacity: 1 !important;
}
input[type="checkbox"]:checked {
  background-color: #0f7a37 !important;
  border-color: #0f7a37 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
}
input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .40);
  outline-offset: 2px;
}
input[type="checkbox"]:disabled { opacity: .5 !important; cursor: default; }

/* Toggle switches draw their look from a track element and keep the real
   checkbox hidden. The global checkbox styling above must not apply to them, or
   it paints a green box over the switch. Restore each toggle's hidden checkbox. */
.switch input[type="checkbox"] {
  -webkit-appearance: none !important; appearance: none !important;
  opacity: 0 !important; width: 0 !important; height: 0 !important; min-width: 0 !important;
  border: none !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important;
}
.switchmini input[type="checkbox"] {
  -webkit-appearance: none !important; appearance: none !important;
  opacity: 0 !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-width: 0 !important;
  border: none !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important; cursor: pointer;
}
.na-toggle input[type="checkbox"] {
  -webkit-appearance: none !important; appearance: none !important;
  opacity: 0 !important; width: 0 !important; height: 0 !important; min-width: 0 !important; position: absolute !important;
  border: none !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important;
}

/* ---- Address picker (Swiggy-style map + pin + details) ---- */
.ldap-ov {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.ldap-sheet {
  background: #fff; width: 100%; max-width: 520px; max-height: 96vh;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden;
}
.ldap-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.ldap-head strong { font-size: 1.05rem; }
.ldap-x {
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  cursor: pointer; color: var(--ink-soft); padding: 0 4px;
}
/* Leaflet stacks its map panes and controls from 400 up to 800. The search box
   and its dropdown must sit above all of that, or the suggestions render behind
   the map and look like nothing happened. */
.ldap-searchwrap { position: relative; z-index: 1000; padding: 12px 16px 0; flex: none; }
.ldap-searchwrap input {
  width: 100%; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: .98rem; font-family: inherit;
}
.ldap-sugg {
  position: absolute; left: 16px; right: 16px; top: 100%; z-index: 1001;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16); overflow: hidden; max-height: 240px; overflow-y: auto;
}
.ldap-s {
  display: block; width: 100%; text-align: left; background: none;
  border: none; border-bottom: 1px solid var(--line);
  padding: 11px 13px; cursor: pointer; font-family: inherit;
}
.ldap-s:last-child { border-bottom: none; }
.ldap-s1 { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); }
.ldap-s2 { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
/* z-index 1 traps Leaflet's internal 400-to-800 layers inside this box, so they
   can never rise above the search dropdown. */
.ldap-maparea { position: relative; z-index: 1; height: 230px; margin: 12px 0 0; flex: none; }
.ldap-map { position: absolute; inset: 0; }
/* The pin never moves. The map moves under it. */
.ldap-pin {
  position: absolute; left: 50%; top: 50%; z-index: 500;
  width: 38px; height: 38px; margin-left: -19px; margin-top: -38px;
  color: #128a44; pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.3));
}
.ldap-pin svg { width: 100%; height: 100%; }
.ldap-gps {
  position: absolute; right: 12px; bottom: 12px; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); color: #128a44;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.ldap-gps svg { width: 20px; height: 20px; }
.ldap-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.ldap-hint { margin: 0 0 8px; color: var(--ink-soft); font-size: .85rem; }
.ldap-area {
  font-weight: 700; color: var(--ink); font-size: .95rem;
  padding: 10px 12px; background: #f1f7f3; border-radius: 10px; margin-bottom: 14px;
}
.ldap-fields label {
  display: block; font-weight: 700; font-size: .88rem;
  margin: 12px 0 5px; color: var(--ink);
}
.ldap-req { color: #dc2626; }
.ldap-fields input {
  width: 100%; padding: 11px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: .95rem; font-family: inherit;
}
.ldap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ldap-two label { margin-top: 0; }
.ldap-tags { display: flex; gap: 8px; }
.ldap-tag {
  flex: 1; padding: 9px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: .88rem; font-family: inherit; color: var(--ink);
}
.ldap-tag.on { border-color: #128a44; background: #e7f7ec; color: #0f7a37; }
.ldap-err { color: #b91c1c; font-size: .88rem; margin-top: 10px; font-weight: 600; }
.ldap-foot {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); flex: none; background: #fff;
}
/* Ola requires a visible credit, linked to the OpenStreetMap licence. */
.ldap-attrib { margin: 0 0 8px; font-size: .74rem; color: var(--ink-soft); text-align: center; }
.ldap-attrib a { color: var(--ink-soft); text-decoration: underline; }
.ldap-foot .btn { width: 100%; }
@media (min-width: 560px) {
  .ldap-ov { align-items: center; }
  .ldap-sheet { border-radius: 20px; max-height: 92vh; }
}

/* Confirmed-pin chip shown after the customer sets their location */
.ldap-chip { margin-top: 12px; }
.ldap-chip-in {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 12px; border: 1.5px solid rgba(22,163,74,.34);
  background: #f1f7f3; border-radius: 12px;
}
.ldap-chip-tag {
  flex: none; background: #128a44; color: #fff; font-weight: 800;
  font-size: .72rem; padding: 3px 9px; border-radius: 20px;
}
.ldap-chip-tx { flex: 1; min-width: 0; font-size: .88rem; color: var(--ink); font-weight: 600; }
.ldap-chip-edit {
  flex: none; background: none; border: none; color: #0f7a37;
  font-weight: 800; font-size: .85rem; cursor: pointer; font-family: inherit;
  text-decoration: underline; padding: 2px 0;
}
.ldap-more {
  cursor: pointer; font-weight: 700; font-size: .88rem;
  color: var(--ink-soft); padding: 4px 0;
}

/* ---- Sign-in gate (welcome screen + guard for gated actions) ---- */
.ldg-ov {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(9, 40, 24, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.ldg-card {
  position: relative; background: #fff; border-radius: 20px;
  max-width: 380px; width: 100%; padding: 28px 22px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.32); text-align: center;
}
.ldg-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; display: block; }
.ldg-card h2 { margin: 0 0 18px; font-size: 1.28rem; color: var(--ink); }
.ldg-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.ldg-card .btn { width: 100%; margin-bottom: 10px; }
.ldg-note {
  margin: 12px 0 0; font-size: .8rem; color: var(--ink-soft);
  line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px;
}
.ldg-x {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 1.7rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 2px 6px;
}

/* ---- Live password checklist ---- */
.pwchk { margin-top: 10px; }
.pwchk-bar {
  height: 5px; border-radius: 4px; background: #e8ebe9;
  overflow: hidden; margin-bottom: 10px;
}
.pwchk-fill {
  display: block; height: 100%; width: 0;
  border-radius: 4px; transition: width .18s ease, background .18s ease;
}
.pwchk-fill.s1 { width: 20%;  background: #dc2626; }
.pwchk-fill.s2 { width: 40%;  background: #f59e0b; }
.pwchk-fill.s3 { width: 60%;  background: #f59e0b; }
.pwchk-fill.s4 { width: 80%;  background: #65a30d; }
.pwchk-fill.s5 { width: 100%; background: #16a34a; }
.pwchk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pwchk-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--ink-soft); line-height: 1.3;
}
.pwchk-list li.on { color: #15803d; font-weight: 600; }
.pwchk-ic { flex: none; width: 15px; height: 15px; display: inline-flex; color: #b6bfba; }
.pwchk-list li.on .pwchk-ic { color: #16a34a; }
.pwchk-ic svg { width: 100%; height: 100%; }

/* ---- Team access rows (outlet dashboard) ---- */
.ta-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.ta-row:last-child { border-bottom: none; }
.ta-who { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.4; word-break: break-word; }
.ta-tag {
  flex: none; font-size: .72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
}
.ta-tag.owner { background: #e7f7ec; color: #0f7a37; }
.ta-rm {
  flex: none; background: none; border: none; color: #dc2626;
  font-weight: 700; font-size: .88rem; cursor: pointer;
  font-family: inherit; text-decoration: underline; padding: 4px 0;
}

/* ---- Header notification bell ---- */
.hdr-bell {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid #fbbf24; color: #b45309;
  cursor: pointer; padding: 0;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .75);
  animation: hdrBellPulse 2s ease-out infinite;
}
.hdr-bell svg { width: 20px; height: 20px; }
/* A gentle pulse, so a waiting invitation is noticed without being shouty. */
@keyframes hdrBellPulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
@media (prefers-reduced-motion: reduce) { .hdr-bell { animation: none; } }
.hdr-bell-n {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 20px; background: #dc2626; color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 19px;
  border: 2px solid #fff; box-sizing: content-box;
}

/* ---- Notification panel ---- */
.hdr-nov {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(9, 40, 24, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 70px 16px 20px; overflow-y: auto;
}
.hdr-ncard {
  background: #fff; border-radius: 18px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,.32); overflow: hidden;
}
.hdr-nhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.hdr-nhead strong { font-size: 1.05rem; color: var(--ink); }
.hdr-nx {
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 0 4px;
}
.hdr-nbody { padding: 8px 16px 16px; }
.hdr-nempty { color: var(--ink-soft); font-size: .92rem; margin: 14px 0; text-align: center; }
.hdr-ni { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hdr-ni:last-child { border-bottom: none; }
.hdr-nt { margin: 0 0 4px; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.hdr-nw { margin: 0 0 12px; font-size: .82rem; color: var(--ink-soft); }
.hdr-nbtns { display: flex; gap: 10px; }
.hdr-nacc, .hdr-ndec {
  flex: 1; padding: 10px; border-radius: 11px; cursor: pointer;
  font-weight: 800; font-size: .9rem; font-family: inherit;
}
.hdr-nacc { background: linear-gradient(135deg, #21bd61, #128a44); color: #fff; border: none; }
.hdr-ndec { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.hdr-nacc:disabled, .hdr-ndec:disabled { opacity: .6; cursor: default; }
.hdr-nerr { margin: 8px 0 0; color: #b91c1c; font-size: .85rem; font-weight: 600; }

/* ---- Fields filled from the account, and locked ---- */
/* These are shown so the person can see what we hold, not so they can edit it.
   Greyed and non-editable, so they read as "already known", not "broken". */
input[readonly] {
  background: #f4f6f5;
  color: var(--ink-soft);
  cursor: default;
}
input[readonly]:focus { outline: none; border-color: var(--line); box-shadow: none; }
.phone-wrap input[readonly] { background: #f4f6f5; }

/* ---- Inline map pin picker (embedded in a form) ---- */
.ldpin {
  position: relative;
  height: 240px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  /* Not "hidden", or the search suggestions would be clipped at the map edge. */
  overflow: visible;
}
/* The map itself keeps the rounded corners and traps Leaflet's 400-800 layers. */
.ldpin-map {
  position: absolute; inset: 0;
  border-radius: 13px; overflow: hidden; z-index: 1;
}
/* The pin never moves. The map moves under it. */
.ldpin-mark {
  position: absolute; left: 50%; top: 50%; z-index: 500;
  width: 38px; height: 38px; margin-left: -19px; margin-top: -38px;
  color: #128a44; pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.3));
}
.ldpin-mark svg { width: 100%; height: 100%; }
.ldpin-gps {
  position: absolute; right: 12px; bottom: 12px; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); color: #128a44;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.ldpin-gps svg { width: 20px; height: 20px; }
.ldpin-gps.busy svg { animation: ldpinSpin 1s linear infinite; }
@keyframes ldpinSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ldpin-gps.busy svg { animation: none; } }
.ldpin-fail { padding: 20px; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.ldpin-hint { margin: 8px 0 0; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.ldpin-hint.set { color: #15803d; font-weight: 600; }

/* Note under fields that are owned by the LaaoDo account, not this form. */
.lock-note { font-size: .82rem; line-height: 1.5; }
.lock-note a { color: #0f7a37; font-weight: 700; text-decoration: underline; }

/* ---- Profile heading: pencil beside the title, Sign Out on the right ---- */
.profile-head .ph-main { flex: 1; min-width: 0; }
.profile-head .ph-title {
  display: flex; align-items: center; gap: 10px;
}
.profile-head .ph-title h1 { margin: 0; flex: none; }
/* The pencil sits right beside the title. */
.ph-edit {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid rgba(22, 163, 74, .38); color: #0f7a37;
  cursor: pointer; padding: 0;
}
.ph-edit:hover { background: #f1f7f3; border-color: #16a34a; }
.ph-edit svg { width: 17px; height: 17px; }
/* Sign Out is pushed to the far right of the same line. */
.ph-out {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 20px;
  background: #fff; border: 1.5px solid rgba(220, 38, 38, .35); color: #dc2626;
  font-weight: 800; font-size: .84rem; font-family: inherit; cursor: pointer;
}
.ph-out:hover { background: #fef2f2; border-color: #dc2626; }
.ph-out svg { width: 15px; height: 15px; }
/* On a narrow phone, drop the word and keep just the icon, so nothing wraps. */
@media (max-width: 400px) {
  .ph-out span { display: none; }
  .ph-out { padding: 7px; border-radius: 50%; width: 34px; height: 34px; justify-content: center; }
}

/* ---- Address book (account) ---- */
.addr-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px;
}
.addr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.addr-tag {
  flex: none; background: #e7f7ec; color: #0f7a37;
  font-weight: 800; font-size: .74rem; padding: 3px 10px; border-radius: 20px;
}
.addr-acts { margin-left: auto; display: flex; gap: 12px; }
.addr-ed, .addr-rm {
  background: none; border: none; font-weight: 700; font-size: .84rem;
  cursor: pointer; font-family: inherit; text-decoration: underline; padding: 2px 0;
}
.addr-ed { color: #0f7a37; }
.addr-rm { color: #dc2626; }
.addr-tx { margin: 0; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.addr-rc { margin: 5px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* Step counter in the picker header */
.ldap-step { margin-left: auto; font-size: .78rem; color: var(--ink-soft); font-weight: 700; }

/* Full-address box in the picker: same look as the inputs beside it. */
.ldap-fields textarea {
  width: 100%; padding: 11px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: .95rem; font-family: inherit;
  line-height: 1.5; resize: vertical; min-height: 76px;
}
.ldap-fields textarea:focus {
  outline: none; border-color: #16a34a; box-shadow: 0 0 0 3px #e7f7ec;
}
.ldap-sub {
  margin: 0 0 6px; font-size: .8rem; color: var(--ink-soft); line-height: 1.45;
}

/* Icon buttons on a saved-address card */
.addr-ic {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; cursor: pointer; padding: 0; border: 1.5px solid var(--line);
}
.addr-ic svg { width: 16px; height: 16px; }
.addr-ic.addr-ed { color: #0f7a37; border-color: rgba(22, 163, 74, .38); }
.addr-ic.addr-ed:hover { background: #f1f7f3; border-color: #16a34a; }
.addr-ic.addr-rm { color: #dc2626; border-color: rgba(220, 38, 38, .32); }
.addr-ic.addr-rm:hover { background: #fef2f2; border-color: #dc2626; }
.addr-ic:disabled, .addr-ic.busy { opacity: .5; cursor: default; }
.addr-acts { margin-left: auto; display: flex; gap: 8px; }

/* ---- Search on the inline map ---- */
/* Sits above Leaflet, which stacks its own layers from 400 up to 800. */
.ldpin-search {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 900;
}
.ldpin-sic {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: #16a34a; pointer-events: none;
}
.ldpin-sin {
  width: 100%; padding: 11px 12px 11px 38px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: .92rem; font-family: inherit;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
}
.ldpin-sin:focus { outline: none; border-color: #16a34a; box-shadow: 0 3px 14px rgba(0, 0, 0, .2); }
.ldpin-sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 901;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  overflow: hidden auto; max-height: 190px;
}
.ldpin-s {
  display: block; width: 100%; text-align: left; background: none;
  border: none; border-bottom: 1px solid var(--line);
  padding: 10px 12px; cursor: pointer; font-family: inherit;
}
.ldpin-s:last-child { border-bottom: none; }
.ldpin-s:hover { background: #f1f7f3; }
.ldpin-s1 { display: block; font-weight: 700; font-size: .89rem; color: var(--ink); }
.ldpin-s2 { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }

/* ---- A way of ordering this outlet does not offer ---- */
/* Shown, not hidden. Greyed out, with the reason in small red text underneath,
   so the customer knows the option exists and why they cannot pick it. */
.checkrow.row-na {
  opacity: .45;
  cursor: not-allowed;
  background: #f7f8f8;
  border-color: var(--line);
}
.checkrow.row-na:hover { background: #f7f8f8; border-color: var(--line); }
.checkrow.row-na input { cursor: not-allowed; }
.mode-na {
  margin: -4px 0 10px;
  padding: 0 4px;
  font-size: .76rem;
  color: #dc2626;
  font-weight: 600;
  line-height: 1.35;
}

/* An input whose value belongs to the account, not to this form. Greyed and not
   editable, but still submitted and still readable, unlike a disabled field. */
input.locked, textarea.locked {
  background: #f1f5f4;
  color: #64748b;
  cursor: not-allowed;
}
input.locked:focus, textarea.locked:focus {
  border-color: var(--line);
  box-shadow: none;
}

/* Confirming an order with a code. Its own sheet, because typing a code needs
   the customer's whole attention and the review screen behind it is long. */
.oc-ov { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1500;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.oc { background: #fff; border-radius: 16px; padding: 22px; max-width: 380px; width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.oc h3 { margin: 0 0 6px; font-size: 1.08rem; }
.oc-sub { margin: 0 0 14px; color: #64748b; font-size: .88rem; line-height: 1.5; }
.oc input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 11px; padding: 13px 14px;
  font: inherit; font-size: 1.25rem; letter-spacing: .28em; text-align: center; }
.oc input:focus { border-color: #16a34a; outline: none; }
.oc .err { margin-top: 8px; font-size: .86rem; }
.oc-btns { display: flex; gap: 10px; margin-top: 14px; }
.oc-btns button { flex: 1; border-radius: 11px; padding: 12px 14px; font-weight: 800;
  font-size: .94rem; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; }
.oc-cancel { background: transparent; border-color: #cbd5e1; color: #18212e; }
.oc-go { background: #15803d; color: #fff; }
.oc-go:disabled { opacity: .55; cursor: default; }
.oc-resend { display: block; width: 100%; margin-top: 12px; background: none; border: none;
  color: #15803d; font: inherit; font-weight: 700; font-size: .86rem; text-decoration: underline;
  cursor: pointer; }

/* A pickup order the customer already has running at this outlet. New items
   join that order rather than opening a second one, and this says so before
   they place. Shown on both the list form and the food review screen. */
.runnote{background:#ecfdf5;border:1.5px solid #6ee7b7;border-radius:14px;padding:12px 14px;margin:0 0 12px;color:#065f46;font-size:.92rem;line-height:1.5}
.runnote strong{display:block;margin-bottom:4px;color:#065f46}
.runnote span{display:block;color:#047857}

/* A dues entry the customer can dispute. Sits under the movement it belongs to,
   for the three days it can be objected to. */
.txn-obj { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .8rem; line-height: 1.45; }
.txn-obj span { flex: 1; min-width: 160px; }
.txn-obj-btn { flex: none; border: 1px solid #ea580c; background: #fff; color: #ea580c;
  font-weight: 800; font-size: .8rem; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.txn-obj-btn:active { background: #ffedd5; }
.txn-obj-btn:disabled { opacity: .6; cursor: default; }
.txn-obj.objected { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* When a sale or order happened, on its row in the sales record. Sits on its
   own line under the name so a long outlet name or note cannot push it out of
   view on a phone. */
.sale-when { display: block; font-size: .76rem; margin-top: 2px; }

/* A pointer shown to cafes and restaurants when they drop their map pin. Their
   pin is what the 50m dine-in check measures against, so where they stand
   decides whether guests at the far tables can order. */
.seating-note {
  margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  font-size: .86rem; line-height: 1.5; font-weight: 600;
}

/* ---- Order type and when it is due -----------------------------------------
   Mode and time were on every screen already, but as grey meta text between the
   item count and the placed-at stamp. An outlet scanning a busy queue had to
   read a sentence to learn whether an order walks out of the door or goes on a
   bike, and when.

   Now a band the eye lands on first: green for pickup, blue for delivery,
   purple for dine-in, with the time window beside it. */
.ordwhen {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 11px; border-radius: 999px; font-size: .82rem; font-weight: 800;
  line-height: 1.35; margin: 2px 0;
}
.ordwhen .ordwhen-t { font-weight: 700; opacity: .9; }
.ordwhen.pickup   { background: #dcfce7; color: #15803d; }
.ordwhen.delivery { background: #dbeafe; color: #1e40af; }
.ordwhen.dinein   { background: #ede9fe; color: #6d28d9; }
/* On a queue row the badge sits on its own line, so a long name cannot push the
   time out of view on a phone. */
.list-row .ordwhen { margin-top: 4px; }

/* An option the outlet offers, but not to where this customer is standing.
   Greyed rather than removed: an outlet that delivers just not this far is a
   different thing from one that does not deliver at all, and a customer
   choosing between outlets deserves to know which it is. */
.sc-mode-off { color: var(--ink-soft, #667085); opacity: .65; text-decoration: line-through; }
.sc-mode-off .sc-mode-note { text-decoration: none; font-size: .84em; opacity: .9; }

/* ---- The add-an-item card -------------------------------------------------
   Two rows that hold their shape at every width.

   Row one is the item and its numbers, row two is what to do with them. They
   were one flex row of five controls with wrap on, which at 360px put Rs on one
   line and Add on the next, so the card read as two unrelated groups.

   The three inputs never wrap against each other: a quantity box on its own
   line is not a quantity box any more. They shrink instead, and the widths here
   stay above what a thumb can hit. */
.ai-row { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.ai-row #aiName { flex: 1 1 auto; min-width: 0; }
.ai-row #aiQty { flex: 0 0 54px; width: 54px; text-align: center; }
.ai-row #aiPrice { flex: 0 0 68px; width: 68px; text-align: center; }
.ai-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ai-actions .btn { flex: 1 1 auto; margin: 0; white-space: nowrap; }
@media (max-width: 360px) {
  .ai-row { gap: 5px; }
  .ai-row #aiQty { flex: 0 0 46px; width: 46px; }
  .ai-row #aiPrice { flex: 0 0 58px; width: 58px; }
  .ai-actions .btn { font-size: .84rem; }
}

/* ---- Order header: customer left, seat right ------------------------------
   Two short blocks that used to take two tall rows. Side by side they read as
   one header and the items start higher up the page.

   align-items:start so the seat card keeps its own height instead of stretching
   to match a customer block that may carry a rating line or a risk note. */
.ord-top { display: flex; gap: 14px; align-items: start; }
.ord-cust { flex: 1 1 auto; min-width: 0; }
/* Sized to its content rather than a fixed 340px. On a phone that fixed width
   was wider than half the screen, so the two halves could never share a line
   however narrow the customer block got. */
.ord-top .ord-seat { flex: 0 1 auto; min-width: 0; margin-top: 0; align-self: start; }
/* A name and a table number in half a phone width each is worse than either on
   its own line, so below this they stack. */
/* ---- Side by side on a phone too ----------------------------------------
   They stacked below 720px, which was my guess at "too cramped" rather than a
   measurement. Measured, the pair needs about 364px: a customer block down to
   its phone number, and a seat card down to its Switch Table button.

   Tightened at phone widths the pair needs about 344px, so they stack only
   below 340px. Every phone in normal use shows them together, which is what the
   header is for: the items start higher and the outlet reads who and where in
   one glance. */
@media (max-width: 480px) {
  .ord-top { gap: 10px; }
  /* The card's own padding is most of what it needs at this width. */
  .ord-top .ord-seat { padding: 12px 10px; }
  .ord-top .ord-seat .seat-row { gap: 8px; }
  .ord-top .ord-seat .seat-row > span:first-child { width: 34px; height: 34px; }
  .ord-top .ord-seat strong { font-size: 1.05rem; }
  .ord-top .ord-seat .btn { font-size: .84rem; padding-left: 10px; padding-right: 10px; }
  .ord-cust h1 { font-size: 1.35rem; }
}
@media (max-width: 340px) {
  .ord-top { display: block; }
  .ord-top .ord-seat { margin-top: 12px; }
}

/* The dish name and its quantity control share a line. The stepper sits right
   after the name, and Save appears beside the plus when the number changes. */
.admin-item .iname-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-item .iname-top .qty-wrap.qty-inline { margin-top: 0; flex: none; }

/* The Not available toggle on the additions-accept panel.
   The one on the order row is gone, deleting handles that now. This one is a
   different decision: the outlet is choosing whether to TAKE an addition the
   customer just asked for, before it joins the order at all. Its styles used to
   live under .admin-item and went with that toggle, so they are restated here
   against the panel that still uses them. */
.na-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .88rem; color: var(--ink-soft); user-select: none; }
.na-toggle input { display: none; }
.na-track { width: 38px; height: 22px; border-radius: 999px; background: #d3d8d6;
  position: relative; transition: background .15s; flex: none; }
.na-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .15s; }
.na-toggle input:checked + .na-track { background: #b3261e; }
.na-toggle input:checked + .na-track::after { transform: translateX(16px); }

/* The order number above the customer's name. Green, because it is the one
   thing on this screen the outlet reads out loud to a customer or a rider, and
   it should be findable at a glance rather than the same grey as the labels
   around it. */
.eyebrow.ordno { color: var(--accent-press, #15803d); margin-top: 8px; }

/* The one instruction on the order screen. Green, because it is telling the
   outlet what to do rather than reporting a fact, and the grey it shared with
   the timestamps above it made it read as another line of detail. */
.served.serve-hint { color: var(--accent-press, #15803d); font-weight: 700; }

/* ---- The two add cards, collapsed by default -------------------------------
   They live between the order items and the button that ends the order, and an
   outlet is usually ticking and serving rather than adding. Closed, the action
   stays near the items; open, the form is exactly as it was. */
.addcard > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  font-weight: 700; color: var(--ink); font-size: .95rem;
}
.addcard > summary::-webkit-details-marker { display: none; }
/* A chevron of its own, so the row reads as something that opens rather than a
   heading that happens to be tappable. */
.addcard > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 3px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform .2s ease;
}
.addcard[open] > summary::after { transform: rotate(-135deg); }
.addcard[open] > summary { margin-bottom: 8px; }
.addcard > summary:hover { color: var(--accent-press); }

/* Edit details, in the top corner of the items card it acts on.
   A text link rather than a button: it is a way back to a screen the outlet has
   already left, not one of the actions this screen is for, and giving it a
   border put it on the same footing as Ready to Serve. */
/* A strip of its own rather than a float.
   Floated, the first item row would have sat BESIDE the link and been narrowed,
   because .ro-item is display:flex and so forms its own context. A right
   aligned strip keeps the link in the corner and leaves every row full width. */
.editrow { display: flex; justify-content: flex-end; margin: -2px 0 2px; line-height: 1; }
.editlink {
  border: 0; background: none; padding: 0 0 0 12px; margin: 0;
  color: var(--accent-press, #15803d); font-weight: 700; font-size: .84rem;
  font-family: inherit; cursor: pointer; line-height: 1.4;
}
.editlink:hover { text-decoration: underline; }
.editlink:disabled { opacity: .5; cursor: default; }

/* ---- One back control, everywhere ----------------------------------------
   Its own row at the top left of the page, above everything else. A row of its
   own so it can never sit on top of a heading or steal width from a button
   beside it, which is how the floating arrow went wrong twice.

   About three quarters the size of a normal small button: the text sits at
   .8rem with tight padding, so the row costs roughly 30px rather than 40. Still
   a comfortable tap: the padding plus line height keeps it near 32px tall, and
   it spans its own line so the target is wide. */
.pgback {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 8px; padding: 5px 9px 5px 7px;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--accent-press, #15803d);
  font-family: inherit; font-size: .8rem; font-weight: 700; line-height: 1.25;
  text-decoration: none; cursor: pointer;
}
.pgback:hover { border-color: var(--accent); background: var(--accent-soft, #f0fdf4); }
.pgback .pgback-ar { font-size: .95em; line-height: 1; }
/* The row itself, so the control never shares a line with page content. */
.pgback-row { display: block; margin: 0 0 2px; }

/* The bill card's heading and its Edit billing link, on one line.
   "Bill 15" left the rest of that row empty, so the link sits there instead of
   taking a row of its own above it. */
.billhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.billhead .editlink { padding-left: 0; }

/* ---- A "!" beside a label, tapped to read what it means -------------------
   Small and quiet: it is there for the person who wonders, not a thing to
   notice on every order. */
.infodot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px; padding: 0; flex: none;
  border: 1.3px solid #94a3b8; border-radius: 50%; background: none;
  color: #64748b; font-family: inherit; font-size: .64rem; font-weight: 800;
  line-height: 1; cursor: pointer; vertical-align: middle;
}
.infodot:hover, .infodot.on { border-color: var(--accent); color: var(--accent-press); }
/* The note takes the full width under the line, so a long sentence does not
   squeeze the amount sitting opposite it. */
.infonote {
  display: block; flex-basis: 100%; order: 99;
  margin: 6px 0 0; padding: 8px 10px; border-radius: 8px;
  background: #f1f5f9; color: #475569;
  font-size: .78rem; font-weight: 500; line-height: 1.45;
}

/* A quiet spinner for the at-outlet check. The customer is waiting on GPS, not
   on us, so it says "something is happening" without claiming progress. */
.spin {
  width: 26px; height: 26px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: laaospin .8s linear infinite;
}
@keyframes laaospin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* ---- A labelled on/off switch -------------------------------------------
   For a setting that changes what the form asks for, rather than one item in a
   list of things to tick. Free seating is that kind: turning it on takes the
   table count away, so it reads as a mode being switched, not a box ticked.

   The checkbox stays in the markup and keeps its id, so every .checked read and
   every change listener works untouched. */
/* Switch on the left, label after it.
   Reading order matches the tap: the control comes first, then what it does.
   On the right the two were separated by the whole width of the card, so a long
   label and a small grey switch read as unrelated. */
.swrow { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.swrow > input { display: none; }
/* Green and bold, so it reads as a choice rather than a caption. */
.swrow .swtx { flex: 1; min-width: 0; font-weight: 800; color: var(--accent-press, #15803d); line-height: 1.35; }
.swrow .swtrack {
  flex: none; order: -1; width: 44px; height: 26px; margin-top: 1px; border-radius: 999px;
  background: #d3d8d6; position: relative; transition: background .15s ease;
}
.swrow .swtrack::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.swrow > input:checked + .swtx + .swtrack,
.swrow > input:checked ~ .swtrack { background: var(--accent, #16a34a); }
.swrow > input:checked ~ .swtrack::after { transform: translateX(18px); }
.swrow > input:focus-visible ~ .swtrack { outline: 2px solid var(--accent-press); outline-offset: 2px; }

/* A guest leaving with an unpaid bill. Red, because the outlet has seconds to
   act, and this must not read like any other notice on the screen. */
.walkaway-ov { z-index: 9000; }
.mdel.walkaway { border: 2px solid #b91c1c; background: #fff5f5; text-align: center; }
.mdel.walkaway strong { display: block; color: #b91c1c; font-size: 1.06rem; line-height: 1.35; }
.mdel.walkaway p { margin: 8px 0 14px; color: #7f1d1d; font-weight: 600; }
.mdel.walkaway .btn { margin: 0; background: #b91c1c; border-color: #b91c1c; }

/* The offline bar. Red and at the very top, because an outlet acting on stale
   orders believing they are live is the failure this whole feature exists to
   prevent. It must be impossible to miss and impossible to mistake for normal. */
.ld-offbar {
  position: sticky; top: 0; z-index: 9500;
  padding: 8px 14px; background: #b91c1c; color: #fff;
  font-size: .84rem; font-weight: 700; text-align: center; line-height: 1.35;
}

/* An objected dues entry. Red-edged and permanent: the record of a dispute
   stays with the entry for good. */
.objentry { border-left: 5px solid #b91c1c; background: #fff5f5; }
.objentry-hi { box-shadow: 0 0 0 3px rgba(185, 28, 28, .28); }

/* The platform-wide new order / addition alert. Amber rather than red: this is
   work arriving, not something going wrong. */
.mdel.oalert { border: 2px solid #b45309; background: #fffbeb; text-align: center; }
.mdel.oalert strong { display: block; color: #b45309; font-size: 1.04rem; line-height: 1.35; }
.mdel.oalert p { margin: 8px 0 14px; color: #78350f; font-weight: 600; }

/* A whole outlet card is tappable. The pointer says so; the controls inside it
   keep their own cursor and their own job. */
.shopcard.tapcard { cursor: pointer; }
.shopcard.tapcard a, .shopcard.tapcard button { cursor: pointer; }
.shopcard.tapcard:hover { border-color: var(--accent, #16a34a); }

/* The two bill buttons, side by side at every width.
   Equal halves, and the label shrinks with the viewport rather than wrapping,
   so neither button ever runs onto a second line. */
.billrow { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.billrow .btn {
  flex: 1 1 0; min-width: 0; margin: 0;
  padding-left: 6px; padding-right: 6px;
  font-size: clamp(.72rem, 3.1vw, .95rem);
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.billrow .wa-btn svg { color: #25d366; }

/* An objected entry, marked on the ledger card the outlet actually works from.
   Red enough to find at a glance, quiet enough not to shout over the amount. */
.card.has-obj { border-color: #b91c1c; }
.objflag { margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff5f5; border: 1px solid #fecaca; }
.objflag > strong { display: block; color: #b91c1c; font-size: .86rem; }
.objflag-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #fecaca;
  font-size: .84rem; color: #7f1d1d; line-height: 1.45; }
.objflag-row:first-of-type { margin-top: 6px; padding-top: 0; border-top: none; }
.objflag-note { font-weight: 600; }
/* Where View lands. Held a moment so the eye catches it, then fades. */
.objentry-hi { outline: 3px solid #b91c1c; outline-offset: 3px; border-radius: 10px; }

/* ---- The modal overlay, shared -------------------------------------------
   These lived only inside admin.html, so a popup shown on any customer page
   had no styling at all and rendered inline in the page flow instead of
   floating over it. That is why two alerts appeared stacked in the middle of
   My Orders rather than as one dialog.

   Defined here so every page that can show one styles it the same. admin.html
   keeps its own copy, which is identical and simply wins by being later. */
.mdel-ov { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.mdel { background: #fff; border-radius: 16px; padding: 20px; max-width: 400px; width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.mdel h3 { margin: 0 0 8px; font-size: 1.06rem; }
.mdel p { margin: 0 0 8px; color: #475569; font-size: .9rem; line-height: 1.5; }
.mdel .btn { width: 100%; }
.mdel .btn + .btn { margin-top: 8px; }

/* The customer's "new dues entry" dialog. It carried a duealert class that was
   never styled, so it rendered as plain text. Given the same amber treatment as
   the other alerts: this is money being added to what they owe, worth reading,
   not an emergency. */
.mdel.duealert { border: 2px solid #b45309; background: #fffbeb; text-align: center; }
.mdel.duealert strong { display: block; color: #b45309; font-size: 1.04rem; line-height: 1.35; }
.mdel.duealert p { margin: 8px 0 14px; color: #78350f; font-weight: 600; }

/* The activity record: one line per action, newest first. Plain on purpose —
   it is a log to scan, not a screen to work from. */
.act-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: none; }
.act-row strong { font-weight: 700; }

/* ---- The credit (udhaar) alerts ------------------------------------------
   Red panel, white text, one button. These say money has been recorded against
   somebody's name, or disputed. They are meant to be read once, understood, and
   dismissed — not tapped through to somewhere else. */
.mdel.duealert, .mdel.objalert {
  background: #b3261e; color: #fff; border: none; text-align: left;
}
.mdel.duealert strong, .mdel.objalert strong {
  display: block; color: #fff; font-size: 1.06rem; line-height: 1.35; margin-bottom: 10px;
}
.mdel.duealert p, .mdel.objalert p {
  margin: 0 0 10px; color: #fff; font-weight: 500; font-size: .9rem; line-height: 1.55;
}
.mdel.duealert b, .mdel.objalert b { color: #fff; font-weight: 800; }
/* The path to the record, set apart so it reads as an instruction. */
.mdel.duealert .duealert-path, .mdel.objalert .objalert-path {
  margin: 12px 0 14px; padding: 9px 11px; border-radius: 8px;
  background: rgba(255,255,255,.14); font-size: .86rem;
}
/* White button on red, so it is the obvious thing to press. */
.mdel.duealert .btn, .mdel.objalert .btn {
  width: 100%; margin: 0; background: #fff; color: #b3261e;
  border-color: #fff; font-weight: 800;
}

/* A running offer, shown on an order the outlet is about to finish. Amber:
   worth noticing, not a problem. */
.offernote {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fcd34d;
}
.offernote > strong { display: block; color: #b45309; font-size: .9rem; }
.offernote-row { margin-top: 6px; font-size: .86rem; color: #78350f; line-height: 1.45; }
.offernote-row b { font-weight: 800; }
.offernote p { margin: 8px 0 0; font-size: .82rem; color: #92400e; }


/* What has been done to an order, at the foot of its page. Small and grey: it
   is a record to look up, not something to work from, and it must not compete
   with the items or the buttons above it. */
.acttrail { margin: 18px 2px 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.acttrail > strong { display: block; font-size: .78rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.acttrail-row { font-size: .76rem; color: #64748b; line-height: 1.6; }
.acttrail-row b { color: #475569; font-weight: 700; }

/* The day's expenses, under the takings. */
.exp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; line-height: 1.5; }
.exp-row:last-child { border-bottom: none; }
.exp-del { flex: none; background: none; border: none; color: #b3261e; font-size: 1.3rem;
  line-height: 1; cursor: pointer; padding: 0 4px; }
.stile.red .stile-n { color: #b3261e; }

/* The Operational Support note above Place Order. Small and grey: it is there so
   nothing on the bill is a surprise, not to argue for attention. */
.dine-foot .foot-fee, .cart-foot .foot-fee {
  margin: 6px 0 0; font-size: .74rem; color: #64748b; text-align: center; line-height: 1.45;
}

/* The expenses heading doubles as the control that opens the list. */
.exp-toggle { display: flex; align-items: center; gap: 8px; background: none; border: none;
  padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; min-width: 0; }
.exp-toggle .muted { font-size: .82rem; }
.exp-caret { transition: transform .15s ease; font-size: .8rem; color: #94a3b8; }
.exp-toggle.open .exp-caret { transform: rotate(180deg); }

/* The expenses screen: each entry with edit and remove beside it. */
.exp-acts { display: flex; gap: 4px; flex: none; }
.exp-act { background: none; border: none; padding: 6px; cursor: pointer; color: #64748b;
  border-radius: 8px; line-height: 0; }
.exp-act svg { width: 18px; height: 18px; }
.exp-act:hover { background: #f1f5f9; color: #0f172a; }
.exp-act.danger { color: #b3261e; }
.exp-act.danger:hover { background: #fef2f2; color: #b3261e; }

/* Settlement state pills on the Operational Support record. */
.pill.warn { background: rgba(180,83,9,.14); color: #b45309; }
.pill.danger { background: rgba(179,38,30,.14); color: #b3261e; }
.pill.muted { background: rgba(100,116,139,.14); color: #64748b; }

/* Payment method icons, on the pickers and on a finished order. */
.pay-opt { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pm-ic { width: 17px; height: 17px; flex: none; }
.pay-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #475569; }
.pay-badge .pm-ic { width: 14px; height: 14px; }


/* A note on the order just placed, when it went under a name that differs from
   the one on the account. Dismissible, and shown once. */
.namenote { display: flex; align-items: flex-start; gap: 10px; margin: 10px 12px 0;
  padding: 10px 12px; border: 1px solid #cfe3d6; border-radius: 12px;
  background: #f2fbf5; color: #14532d; font-size: .88rem; line-height: 1.35; }
.namenote[hidden] { display: none; }
.namenote button { flex: none; border: 0; background: none; color: #14532d;
  font-size: 1.15rem; line-height: 1; padding: 0 2px; cursor: pointer; }


/* ---- What the guest's phone could prove about being at the outlet ----------
   Three different facts, so three different colours. Amber for "we could not
   check, please look"; red for "we checked and they are not here"; green for
   "their own phone confirmed it since". A single grey note for all three would
   make the counter read the words every time to find out which it is. */
.seatnote {
  /* A row of its own, full width. It used to sit inside the header row beside
     the seat card, where a long sentence took width from the card and wrapped
     "Table 1" down its middle. */
  display: block; width: 100%;
  margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px;
  font-size: .85rem; font-weight: 700; line-height: 1.45;
}
.seatnote-unchecked { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.seatnote-far       { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.seatnote-auto      { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }


/* The note a guest sees when their phone could not prove where they are.
   Amber, not red: nothing has gone wrong for them, and the counter is about to
   confirm their table anyway. */
.seatask {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e;
  font-size: .88rem; line-height: 1.5;
}
.seatask a { color: #92400e; font-weight: 800; }
.seatask ol { margin: 8px 0 0; padding-left: 20px; }
.seatask li { margin: 4px 0; }
