/* ============================================================
   WAVE RISE FRONT DESK OS — POS styles
   ------------------------------------------------------------
   One accent (Wave Rise orange), cream / charcoal surfaces, large
   touch targets, typography does the hierarchy. Every value comes
   from the tokens below — do not scatter literals in components.
   Loaded by index.html; only applies inside body.pos-mode.
   ============================================================ */

:root {
  /* brand */
  --pos-orange: #E5551F;            /* canonical Wave Rise orange (index.html --primary-dark) */
  --pos-orange-ink: #FFFFFF;        /* text on orange */
  --pos-orange-12: rgba(229, 85, 31, .12);
  --pos-orange-20: rgba(229, 85, 31, .20);
  --pos-orange-35: rgba(229, 85, 31, .35);
  --pos-orange-60: rgba(229, 85, 31, .60);

  /* surfaces (light) */
  --pos-bg: #FBF7F1;                /* warm cream */
  --pos-surface: #FFFFFF;
  --pos-surface-2: #F4EEE5;         /* sunken / secondary surface */
  --pos-ink: #0C0D0E;               /* near black */
  --pos-ink-2: #5E5A54;             /* secondary text */
  /* Tertiary ink is real text — field labels, PAX, DHS, empty states — not
     decoration. At #9C968D it measured 2.9:1 on the card, which is below the
     4.5:1 a 13px label needs and unreadable on a counter in full sun. */
  --pos-ink-3: #767068;             /* tertiary / metadata — 4.9:1 on the card */
  /* Orange as TEXT on a light or 12%-orange background: the brand orange is
     3.3:1 there. This is the same orange darkened until it passes. */
  --pos-orange-text: #B34418;
  --pos-border: rgba(12, 13, 14, .09);
  --pos-border-strong: rgba(12, 13, 14, .18);
  --pos-shadow: 0 1px 2px rgba(12, 13, 14, .05), 0 8px 24px rgba(12, 13, 14, .06);
  --pos-shadow-lift: 0 2px 6px rgba(12, 13, 14, .08), 0 18px 40px rgba(12, 13, 14, .12);
  --pos-scrim: rgba(12, 13, 14, .42);

  /* spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;

  /* radii */
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px;

  /* type */
  --pos-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pos-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 21px; --t-xl: 28px; --t-2xl: 36px; --t-3xl: 48px; --t-4xl: 64px;

  /* motion */
  --m-fast: 120ms; --m-base: 200ms; --m-slow: 360ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* touch */
  --tap: 56px; --tap-lg: 72px;
}

body.pos-mode.pos-dark {
  --pos-bg: #0E0F10;
  --pos-surface: #181A1C;
  --pos-surface-2: #212427;
  --pos-ink: #F6F3EE;
  --pos-ink-2: #B9B4AC;
  --pos-ink-3: #948E85;
  --pos-orange-text: #FF8A5C;
  --pos-border: rgba(255, 255, 255, .09);
  --pos-border-strong: rgba(255, 255, 255, .18);
  --pos-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --pos-shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .6);
  --pos-scrim: rgba(0, 0, 0, .6);
  --pos-orange: #F26A38;            /* one step brighter for contrast on charcoal */
}

/* ---------- mode switch: hide the team app shell, show the desk ---------- */
body.pos-mode > *:not(#pos-root):not(#pos-toasts):not(#pos-sheet-host) { display: none !important; }
body.pos-mode { background: var(--pos-bg) !important; color: var(--pos-ink); overflow: hidden; }
body.pos-mode #pos-root { display: block; }
#pos-root { display: none; font-family: var(--pos-font); color: var(--pos-ink);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  position: fixed; inset: 0; background: var(--pos-bg); }
#pos-root *, #pos-sheet-host *, #pos-toasts * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#pos-root button, #pos-sheet-host button { font-family: inherit; color: inherit; }

/* ---------- layout ---------- */
.pos-shell { display: flex; flex-direction: column; height: 100%; }
.pos-top { height: 72px; flex: 0 0 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s3); }
.pos-top .pos-logo { display: flex; align-items: center; gap: 12px; height: var(--tap); padding: 0 8px; border-radius: var(--r-sm);
  background: transparent; border: 0; cursor: pointer; }
.pos-top .pos-logo img { width: 44px; height: 44px; border-radius: 12px; }
.pos-top .pos-logo span { font-family: var(--pos-font-display); font-weight: 800; font-size: var(--t-lg); letter-spacing: -.01em; }
.pos-top .pos-logo span b { color: var(--pos-orange); }
.pos-top .pos-logo:active { transform: scale(.97); }
.pos-top .pos-clock { text-align: center; color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 600; }
.pos-top .pos-clock strong { display: block; color: var(--pos-ink); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.01em; }
.pos-top .pos-right { display: flex; align-items: center; gap: var(--s2); }
.pos-profile { display: flex; align-items: center; gap: 10px; height: var(--tap); padding: 0 16px 0 8px; border-radius: var(--r-pill);
  background: var(--pos-surface); border: 1px solid var(--pos-border); box-shadow: var(--pos-shadow); cursor: pointer; }
.pos-profile:active { transform: scale(.97); }
.pos-profile .av { width: 40px; height: 40px; border-radius: 50%; background: var(--pos-orange); color: var(--pos-orange-ink);
  display: grid; place-items: center; font-weight: 800; font-size: var(--t-md); }
.pos-profile .nm { font-weight: 700; font-size: var(--t-md); }
.pos-profile .rl { font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 600; display: block; }
.pos-iconbtn { width: var(--tap); height: var(--tap); border-radius: var(--r-pill); border: 1px solid var(--pos-border); background: var(--pos-surface);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--pos-shadow); }
.pos-iconbtn:active { transform: scale(.94); }
.pos-iconbtn svg { width: 24px; height: 24px; }
.pos-printer-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pos-orange); opacity: .35; }
.pos-printer-dot.ready { opacity: 1; }
.pos-printer-dot.off { opacity: .2; }
.pos-printer-dot.attention { opacity: 1; box-shadow: 0 0 0 4px var(--pos-orange-20); animation: pos-pulse 1.4s infinite; }
@keyframes pos-pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

.pos-main { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 var(--s4) var(--s6); }
.pos-page { max-width: 1180px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.pos-page > * { flex: 0 0 auto; }
.pos-page.narrow { max-width: 820px; }
.pos-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); padding: var(--s2) 0 var(--s3); }
.pos-page-head h1 { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.pos-page-head .sub { color: var(--pos-ink-2); font-size: var(--t-md); font-weight: 500; margin-top: 6px; }
.pos-back { display: inline-flex; align-items: center; gap: 8px; height: var(--tap); padding: 0 18px 0 12px; border-radius: var(--r-pill);
  background: var(--pos-surface); border: 1px solid var(--pos-border); font-weight: 700; font-size: var(--t-md); cursor: pointer; }
.pos-back:active { transform: scale(.97); }
.pos-back svg { width: 22px; height: 22px; }

/* ---------- icons ---------- */
.pos-ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.15em; }

/* ---------- phone with a country code ---------- */
/* The code is a narrow, quiet picker; the number is the field the thumb goes to. */
.pos-phone { display: flex; gap: 8px; }
.pos-phone .cc { flex: 0 0 96px; text-align: center; font-weight: 700; background-image: none; padding-right: 6px; }
.pos-phone input { flex: 1 1 auto; min-width: 0; }

/* ---------- home ---------- */
.pos-home { flex: 1 1 auto !important; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s3) 0 var(--s6); }
.pos-home .today { color: var(--pos-ink-3); font-weight: 700; font-size: var(--t-sm); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s4); }
.pos-home .today b { color: var(--pos-orange-text); font-size: var(--t-md); letter-spacing: 0; }
.pos-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); width: 100%; max-width: 1180px; }
.pos-door { aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--pos-surface); border: 1px solid var(--pos-border);
  box-shadow: var(--pos-shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  cursor: pointer; transition: transform var(--m-fast) var(--ease), box-shadow var(--m-base) var(--ease), background var(--m-base); position: relative; }
.pos-door:active { transform: scale(.96); background: var(--pos-orange-12); border-color: var(--pos-orange-35); }
.pos-door svg { width: 64px; height: 64px; color: var(--pos-orange); }
.pos-door span { font-family: var(--pos-font-display); font-weight: 800; font-size: var(--t-lg); letter-spacing: .02em; text-transform: uppercase; text-align: center; padding: 0 12px; }
.pos-door .badge { position: absolute; top: 14px; right: 14px; min-width: 32px; height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--pos-orange); color: var(--pos-orange-ink); font-weight: 800; font-size: var(--t-sm); display: grid; place-items: center; }
.pos-home .more { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
@media (max-width: 1000px) { .pos-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pos-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-main { padding: 0 var(--s2) var(--s4); } }

/* ---------- buttons ---------- */
.pos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--tap); padding: 0 var(--s3);
  border-radius: var(--r-md); border: 1px solid var(--pos-border); background: var(--pos-surface); color: var(--pos-ink);
  font-weight: 700; font-size: var(--t-md); cursor: pointer; user-select: none; transition: transform var(--m-fast) var(--ease), background var(--m-fast); white-space: nowrap; }
.pos-btn:active { transform: scale(.97); }
.pos-btn.primary { background: var(--pos-orange); color: var(--pos-orange-ink); border-color: transparent; box-shadow: 0 6px 18px var(--pos-orange-35); }
.pos-btn.ghost { background: transparent; border-color: transparent; color: var(--pos-ink-2); }
.pos-btn.outline { border-color: var(--pos-orange-35); color: var(--pos-orange-text); background: transparent; }
.pos-btn.soft { background: var(--pos-orange-12); color: var(--pos-orange-text); border-color: transparent; }
.pos-btn.lg { height: var(--tap-lg); font-size: var(--t-lg); border-radius: var(--r-lg); padding: 0 var(--s4); }
.pos-btn.block { width: 100%; }
.pos-btn.quiet { color: var(--pos-ink-2); }
.pos-btn[disabled] { opacity: .4; pointer-events: none; }
.pos-btn svg { width: 22px; height: 22px; }
.pos-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pos-actions > .pos-btn { flex: 1 1 0; }

/* ---------- cards ---------- */
.pos-card { background: var(--pos-surface); border: 1px solid var(--pos-border); border-radius: var(--r-md); box-shadow: var(--pos-shadow); padding: var(--s3); }
.pos-stack > * + * { margin-top: var(--s2); }
.pos-card.tap { cursor: pointer; transition: transform var(--m-fast) var(--ease), border-color var(--m-fast); }
.pos-card.tap:active { transform: scale(.985); }
.pos-card.selected { border-color: var(--pos-orange); box-shadow: 0 0 0 3px var(--pos-orange-20), var(--pos-shadow); }
.pos-grid { display: grid; gap: var(--s2); }
.pos-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pos-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pos-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pos-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .pos-grid.c4, .pos-grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pos-grid.c3, .pos-grid.c4, .pos-grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-grid.c2 { grid-template-columns: 1fr; } }

.pos-section { margin-top: var(--s3); }
.pos-section-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s2); }
.pos-section-h h2 { font-size: var(--t-sm); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-ink-3); margin: 0; }
.pos-section-h .meta { font-size: var(--t-sm); color: var(--pos-ink-3); font-weight: 600; }

/* ---------- status (icon + label + orange intensity, never colour alone) ---------- */
.pos-status { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-weight: 800; font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pos-status .g { font-size: 15px; line-height: 1; }
.pos-status.paid { background: var(--pos-orange); color: var(--pos-orange-ink); }
.pos-status.partial { background: var(--pos-orange-20); color: var(--pos-orange); }
.pos-status.unpaid { background: transparent; color: var(--pos-ink-2); border: 1.5px solid var(--pos-border-strong); }
.pos-status.in { background: var(--pos-orange-12); color: var(--pos-orange); }
.pos-status.done { background: var(--pos-surface-2); color: var(--pos-ink-2); }
.pos-status.cancel { background: transparent; color: var(--pos-ink-3); border: 1.5px dashed var(--pos-border-strong); text-decoration: line-through; }
.pos-status.overdue { background: var(--pos-orange); color: var(--pos-orange-ink); animation: pos-pulse 1.6s infinite; }
.pos-status.warn { background: var(--pos-orange-20); color: var(--pos-orange); }
.pos-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; background: var(--pos-surface-2); color: var(--pos-ink-2); }
.pos-tag.on { background: var(--pos-orange-12); color: var(--pos-orange-text); }

/* ---------- booking list ---------- */
.pos-bk { background: var(--pos-surface); border: 1px solid var(--pos-border); border-radius: var(--r-md); box-shadow: var(--pos-shadow);
  margin-bottom: var(--s2); overflow: hidden; transition: box-shadow var(--m-base) var(--ease); }
.pos-bk.open { box-shadow: var(--pos-shadow-lift); border-color: var(--pos-orange-35); }
.pos-bk.cancelled { opacity: .55; }
.pos-bk-row { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); min-height: 96px; cursor: pointer; }
.pos-bk-row:active { background: var(--pos-orange-12); }
.pos-bk-time { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pos-bk-time small { display: block; font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 700; letter-spacing: .04em; margin-top: 6px; }
.pos-bk-main { min-width: 0; }
.pos-bk-name { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-bk-sub { margin-top: 6px; color: var(--pos-ink-2); font-size: var(--t-md); font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pos-bk-sub .pax { color: var(--pos-ink); font-weight: 800; }
.pos-bk-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pos-bk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pos-bk-money { font-size: var(--t-lg); font-weight: 800; letter-spacing: -.01em; }
.pos-bk-money.due { color: var(--pos-orange); }
.pos-bk-body { border-top: 1px solid var(--pos-border); padding: var(--s3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); animation: pos-expand var(--m-base) var(--ease); }
@keyframes pos-expand { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pos-kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: var(--t-md); }
.pos-kv .k { color: var(--pos-ink-3); font-weight: 700; font-size: var(--t-sm); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.pos-kv .v { font-weight: 600; word-break: break-word; }
.pos-kv .v.big { font-size: var(--t-xl); font-weight: 800; }
/* A phone number on a booking card is tapped to call, with wet hands, so it is
   a control and gets a control's target — it measured 19px tall. */
.pos-kv .v a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pos-bk-actions { display: flex; flex-direction: column; gap: var(--s2); }
.pos-bk-actions .row { display: flex; gap: var(--s2); }
.pos-bk-actions .row > .pos-btn { flex: 1; }
@media (max-width: 760px) { .pos-bk-body { grid-template-columns: 1fr; } .pos-bk-row { grid-template-columns: 84px 1fr auto; } .pos-bk-time { font-size: var(--t-xl); } .pos-bk-name { font-size: var(--t-lg); } }

/* ---------- wizard ---------- */
.pos-steps { display: flex; gap: var(--s2); align-items: center; margin: var(--s1) 0 var(--s3); flex-wrap: wrap; }
.pos-step { font-size: var(--t-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pos-ink-3); display: flex; align-items: center; gap: 8px; }
.pos-step.on { color: var(--pos-orange); }
.pos-step.done { color: var(--pos-ink-2); }
.pos-step i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; }
.pos-step.on i { opacity: 1; }
.pos-question { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; margin: 0 0 var(--s3); }
.pos-service { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.pos-service .cat { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-ink-3); }
.pos-service .nm { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.pos-service .pr { font-size: var(--t-lg); font-weight: 800; color: var(--pos-orange); margin-top: var(--s2); }
.pos-service .pr small { font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 700; margin-left: 6px; }
.pos-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s2); }
.pos-chip { height: 48px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--pos-border-strong); background: var(--pos-surface);
  font-weight: 800; font-size: var(--t-sm); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pos-chip.on { background: var(--pos-orange); color: var(--pos-orange-ink); border-color: transparent; }
.pos-chip:active { transform: scale(.96); }
.pos-chip.lg { height: var(--tap); font-size: var(--t-md); padding: 0 26px; }
.pos-seg { display: inline-flex; background: var(--pos-surface-2); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.pos-seg button { height: 52px; min-width: 96px; padding: 0 22px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 800; font-size: var(--t-md); cursor: pointer; }
.pos-seg button.on { background: var(--pos-orange); color: var(--pos-orange-ink); box-shadow: 0 4px 12px var(--pos-orange-35); }
.pos-time { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pos-time .t { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; }
.pos-time .c { color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 700; }
.pos-time .i { color: var(--pos-ink-3); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pos-stepper { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin: var(--s4) 0; }
.pos-stepper button { width: 96px; height: 96px; border-radius: 50%; border: 1.5px solid var(--pos-border-strong); background: var(--pos-surface); font-size: 44px; font-weight: 500; cursor: pointer; line-height: 1; }
.pos-stepper button:active { background: var(--pos-orange-12); border-color: var(--pos-orange); transform: scale(.94); }
.pos-stepper .n { font-family: var(--pos-font-display); font-size: 120px; font-weight: 800; letter-spacing: -.04em; min-width: 180px; text-align: center; line-height: 1; }
.pos-stepper-label { text-align: center; font-size: var(--t-lg); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-ink-3); }
.pos-wizard-foot { position: sticky; bottom: 0; padding: var(--s2) 0 0; margin-top: var(--s3); background: linear-gradient(to top, var(--pos-bg) 70%, transparent); display: flex; gap: var(--s2); justify-content: space-between; }

/* ---------- forms ---------- */
.pos-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s2); }
.pos-field label { font-size: var(--t-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pos-ink-3); }
.pos-input { height: var(--tap); border-radius: var(--r-sm); border: 1.5px solid var(--pos-border-strong); background: var(--pos-surface); padding: 0 18px;
  font-size: var(--t-lg); font-weight: 600; color: var(--pos-ink); outline: none; width: 100%; font-family: inherit; }
.pos-input:focus { border-color: var(--pos-orange); box-shadow: 0 0 0 3px var(--pos-orange-20); }
textarea.pos-input { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.pos-input::placeholder { color: var(--pos-ink-3); font-weight: 500; }
.pos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 640px) { .pos-form-row { grid-template-columns: 1fr; } }
.pos-search { position: relative; }
.pos-search .pos-input { padding-left: 56px; }
.pos-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--pos-ink-3); }
.pos-result { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--pos-border); cursor: pointer; min-height: 76px; }
.pos-result:last-child { border-bottom: 0; }
.pos-result:active { background: var(--pos-orange-12); }
.pos-result .n { font-size: var(--t-lg); font-weight: 800; }
.pos-result .m { color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 600; margin-top: 4px; }
.pos-list { background: var(--pos-surface); border: 1px solid var(--pos-border); border-radius: var(--r-md); box-shadow: var(--pos-shadow); overflow: hidden; }
.pos-select-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.pos-select-list button { text-align: left; height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--pos-border); background: var(--pos-surface); font-size: var(--t-md); font-weight: 600; cursor: pointer; }
.pos-select-list button.on { border-color: var(--pos-orange); background: var(--pos-orange-12); color: var(--pos-orange); }

/* ---------- money ---------- */
.pos-money { font-family: var(--pos-font-display); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pos-money .cur { font-size: .42em; font-weight: 800; letter-spacing: .04em; margin-left: .25em; color: var(--pos-ink-3); vertical-align: baseline; }
.pos-money.hero { font-size: 56px; line-height: 1; }
.pos-money.big { font-size: var(--t-3xl); line-height: 1; }
.pos-money.accent { color: var(--pos-orange); }
.pos-money.accent .cur { color: var(--pos-orange-60); }
.pos-money.muted { color: var(--pos-ink-3); }
.pos-money.muted .cur { color: var(--pos-ink-3); }
.pos-total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: var(--t-md); font-weight: 600; color: var(--pos-ink-2); }
.pos-total-line.strong { color: var(--pos-ink); font-weight: 800; font-size: var(--t-lg); border-top: 1px solid var(--pos-border); margin-top: 6px; padding-top: 16px; }
.pos-total-line.due { color: var(--pos-orange); }

/* ---------- pay screen ---------- */
.pos-pay { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
@media (max-width: 900px) { .pos-pay { grid-template-columns: 1fr; } }
.pos-pay .pos-card { padding: var(--s2) var(--s3); }
.pos-pay .lbl { font-size: var(--t-sm); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pos-ink-3); margin-bottom: 8px; }
.pos-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pos-keypad button { height: 54px; border-radius: var(--r-md); border: 1px solid var(--pos-border); background: var(--pos-surface); font-size: var(--t-xl); font-weight: 700; cursor: pointer; box-shadow: var(--pos-shadow); }
.pos-keypad button:active { background: var(--pos-orange-12); border-color: var(--pos-orange-35); transform: scale(.96); }
.pos-keypad button.fn { color: var(--pos-ink-2); font-size: var(--t-md); font-weight: 800; letter-spacing: .06em; }
.pos-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pos-quick .pos-chip { height: 44px; padding: 0 16px; }
.pos-parts { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s2); }
.pos-part { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--r-sm); background: var(--pos-surface-2); font-weight: 700; font-size: var(--t-md); }
.pos-part small { color: var(--pos-ink-3); font-weight: 600; margin-left: 8px; }
.pos-part button { height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--pos-orange); font-weight: 800; font-size: var(--t-sm); cursor: pointer; }
.pos-received { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.03em; min-height: 48px; display: flex; align-items: baseline; gap: 10px; }
.pos-received .cur { font-size: var(--t-lg); color: var(--pos-ink-3); }
.pos-received.empty { color: var(--pos-ink-3); }
/* A prefilled amount is a suggestion until the first key is pressed — it has to
   look different from a number the receptionist typed, or nobody can tell
   whether the guest has actually handed anything over. */
.pos-received.prefilled { color: var(--pos-ink-2); }
.pos-calc .lbl { margin-top: var(--s1); }
.pos-total-line.faded { opacity: .5; }
.pos-calc-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--pos-surface-2); color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pos-calc-note b { font-family: var(--pos-font-display); font-size: var(--t-lg); font-weight: 800; letter-spacing: -.02em; }
.pos-calc-note.change { background: var(--pos-orange-12); color: var(--pos-orange-text); }
/* The three answers to "how did they pay". The first one is the sale; the other
   two are the exceptions, and they look like it. */
.pos-choices { display: grid; gap: 12px; }
.pos-choice { display: block; width: 100%; text-align: left; padding: 18px 20px; min-height: 84px; border-radius: var(--r-md); border: 1px solid var(--pos-border-strong); background: var(--pos-surface); color: var(--pos-ink); font: inherit; cursor: pointer; box-shadow: var(--pos-shadow); }
.pos-choice:active { transform: scale(.99); }
.pos-choice b { display: block; font-size: var(--t-lg); font-weight: 800; letter-spacing: -.01em; }
.pos-choice span { display: block; font-size: var(--t-sm); font-weight: 600; margin-top: 4px; opacity: .75; }
.pos-choice.primary { background: var(--pos-orange); color: var(--pos-orange-ink); border-color: transparent; box-shadow: 0 10px 28px var(--pos-orange-35); }
.pos-choice.primary svg { display: none; }
.pos-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.pos-notes button { min-height: 72px; border-radius: var(--r-md); border: 1px solid var(--pos-border-strong); background: var(--pos-surface); color: var(--pos-ink); font: inherit; font-size: var(--t-lg); font-weight: 800; cursor: pointer; box-shadow: var(--pos-shadow); }
.pos-notes button:active { background: var(--pos-orange-12); border-color: var(--pos-orange); transform: scale(.96); }
.pos-notes button small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--pos-ink-3); margin-top: 2px; }
.pos-notechips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; min-height: 44px; }
.pos-notechips .pos-chip { padding-right: 4px; font-variant-numeric: tabular-nums; }
.pos-notechips .pos-chip button { border: 0; background: transparent; color: var(--pos-orange-text); font: inherit; font-weight: 800; cursor: pointer; padding: 4px 10px; min-height: 36px; }
.pos-notechips .muted { color: var(--pos-ink-3); font-size: var(--t-sm); font-weight: 600; }

/* ---------- success ---------- */
.pos-success { text-align: center; padding: var(--s6) var(--s3); display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.pos-success .ring { width: 132px; height: 132px; border-radius: 50%; background: var(--pos-orange); color: var(--pos-orange-ink); display: grid; place-items: center; animation: pos-pop var(--m-slow) var(--ease); box-shadow: 0 14px 36px var(--pos-orange-35); }
.pos-success .ring svg { width: 68px; height: 68px; stroke-dasharray: 60; stroke-dashoffset: 60; animation: pos-draw 420ms 160ms var(--ease) forwards; }
@keyframes pos-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pos-draw { to { stroke-dashoffset: 0; } }
.pos-success h2 { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: var(--s2) 0 0; }
.pos-success .print { display: inline-flex; align-items: center; gap: 10px; color: var(--pos-ink-2); font-weight: 700; font-size: var(--t-md); margin-top: var(--s1); }
.pos-success .print .pos-printer-dot { width: 12px; height: 12px; }

/* ---------- sheets / modals ---------- */
#pos-sheet-host { position: fixed; inset: 0; z-index: 9000; display: none; font-family: var(--pos-font); color: var(--pos-ink); }
#pos-sheet-host.on { display: block; }
#pos-sheet-host .scrim { position: absolute; inset: 0; background: var(--pos-scrim); animation: pos-fade var(--m-base) both; }
@keyframes pos-fade { from { opacity: 0; } }
#pos-sheet-host .sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 48px)); max-height: calc(100% - 48px); overflow: auto;
  background: var(--pos-surface); border-radius: var(--r-lg); box-shadow: var(--pos-shadow-lift); padding: var(--s4); animation: pos-sheet var(--m-base) var(--ease) both; }
#pos-sheet-host .sheet.wide { width: min(980px, calc(100% - 48px)); }
#pos-sheet-host .sheet.narrow { width: min(520px, calc(100% - 48px)); }
@keyframes pos-sheet { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.pos-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); gap: var(--s2); }
.pos-sheet-h h3 { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; margin: 0; }
.pos-sheet-h .x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--pos-surface-2); font-size: 22px; cursor: pointer; }

/* ---------- profile / pin ---------- */
.pos-who { text-align: center; }
.pos-who h1 { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; margin: 0 0 var(--s4); }
.pos-who .people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.pos-who .person { height: 160px; border-radius: var(--r-lg); border: 1.5px solid var(--pos-border); background: var(--pos-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.pos-who .person:active, .pos-who .person.on { border-color: var(--pos-orange); background: var(--pos-orange-12); }
.pos-who .person .av { width: 64px; height: 64px; border-radius: 50%; background: var(--pos-orange); color: var(--pos-orange-ink); display: grid; place-items: center; font-weight: 800; font-size: var(--t-xl); }
.pos-who .person b { font-size: var(--t-lg); letter-spacing: .06em; text-transform: uppercase; }
.pos-pin { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.pos-pin .dots { display: flex; gap: 18px; height: 24px; }
.pos-pin .dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pos-orange); background: transparent; transition: background var(--m-fast); }
.pos-pin .dots i.on { background: var(--pos-orange); }
.pos-pin.shake .dots { animation: pos-shake 320ms; }
@keyframes pos-shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pos-pin .pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; }
.pos-pin .pad button { height: 84px; border-radius: 50%; border: 1.5px solid var(--pos-border); background: var(--pos-surface); font-size: var(--t-xl); font-weight: 700; cursor: pointer; }
.pos-pin .pad button:active { background: var(--pos-orange-12); border-color: var(--pos-orange); transform: scale(.94); }
.pos-pin .pad button.fn { border-color: transparent; background: transparent; color: var(--pos-ink-2); font-size: var(--t-md); font-weight: 800; }
.pos-pin .msg { min-height: 24px; color: var(--pos-ink-2); font-weight: 700; }

/* ---------- packages ---------- */
.pos-dots { display: flex; gap: 10px; flex-wrap: wrap; }
.pos-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--pos-orange); }
.pos-dots i.used { background: var(--pos-orange); }

/* ---------- shop ---------- */
.pos-product { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.pos-product .ph { aspect-ratio: 4 / 3; background: var(--pos-surface-2); display: grid; place-items: center; overflow: hidden; }
.pos-product .ph img { width: 100%; height: 100%; object-fit: cover; }
.pos-product .ph svg { width: 48px; height: 48px; color: var(--pos-ink-3); }
.pos-product .in { padding: var(--s2); display: flex; flex-direction: column; gap: 6px; }
.pos-product .nm { font-weight: 800; font-size: var(--t-md); line-height: 1.2; }
.pos-product .pr { font-weight: 800; font-size: var(--t-lg); color: var(--pos-orange); }
.pos-product .st { font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pos-cart { position: sticky; top: 0; }
.pos-cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--pos-border); }
.pos-cart-line .q { display: inline-flex; align-items: center; gap: 4px; }
.pos-cart-line .q button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pos-border-strong); background: var(--pos-surface); font-size: 22px; cursor: pointer; }
.pos-cart-line .q b { min-width: 32px; text-align: center; font-size: var(--t-lg); }

/* ---------- owner ---------- */
.pos-metric { padding: var(--s2) var(--s3); }
.pos-metric .l { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-ink-3); }
.pos-metric .v { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pos-metric .v.accent { color: var(--pos-orange); }
.pos-bar { height: 10px; border-radius: var(--r-pill); background: var(--pos-orange-12); overflow: hidden; }
.pos-bar i { display: block; height: 100%; background: var(--pos-orange); border-radius: var(--r-pill); }
.pos-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--pos-border); }
.pos-row:last-child { border-bottom: 0; }
.pos-tx { display: grid; grid-template-columns: 130px 1fr auto auto; gap: var(--s2); align-items: center; padding: 14px var(--s3); border-bottom: 1px solid var(--pos-border); cursor: pointer; }
.pos-tx:last-child { border-bottom: 0; }
.pos-tx:active { background: var(--pos-orange-12); }
.pos-tx .d { font-weight: 800; font-size: var(--t-md); }
.pos-tx .d small { display: block; color: var(--pos-ink-3); font-size: var(--t-xs); font-weight: 700; }
.pos-tx .w { min-width: 0; }
.pos-tx .w b { display: block; font-size: var(--t-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-tx .w span { color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 600; }
.pos-tx .a { font-weight: 800; font-size: var(--t-lg); white-space: nowrap; }
@media (max-width: 760px) { .pos-tx { grid-template-columns: 96px 1fr auto; } .pos-tx .s { display: none; } }

/* ---------- empty / loading ---------- */
.pos-empty { text-align: center; padding: var(--s8) var(--s3); color: var(--pos-ink-3); }
.pos-empty svg { width: 56px; height: 56px; color: var(--pos-orange-35); }
.pos-empty h3 { font-size: var(--t-lg); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-ink-2); margin: var(--s2) 0 8px; }
.pos-empty p { margin: 0; font-weight: 600; }
.pos-skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--pos-surface-2) 25%, var(--pos-surface) 50%, var(--pos-surface-2) 75%); background-size: 200% 100%; animation: pos-skel 1.2s infinite; height: 96px; margin-bottom: var(--s2); }
@keyframes pos-skel { to { background-position: -200% 0; } }

/* ---------- toasts ---------- */
#pos-toasts { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; font-family: var(--pos-font); }
.pos-toast { pointer-events: auto; background: var(--pos-ink); color: var(--pos-bg); padding: 14px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-md); box-shadow: var(--pos-shadow-lift); animation: pos-toast var(--m-base) var(--ease); max-width: 90vw; }
.pos-toast.warn { background: var(--pos-orange); color: var(--pos-orange-ink); }
@keyframes pos-toast { from { opacity: 0; transform: translateY(12px); } }

/* ---------- signature ---------- */
.pos-sig { border: 1.5px dashed var(--pos-border-strong); border-radius: var(--r-md); background: var(--pos-surface); touch-action: none; width: 100%; height: 220px; display: block; }
.pos-waiver-text { max-height: 220px; overflow: auto; padding: var(--s2); background: var(--pos-surface-2); border-radius: var(--r-sm); font-size: var(--t-sm); line-height: 1.5; color: var(--pos-ink-2); }

/* ---------- RTL ---------- */
body.pos-mode[dir="rtl"] .pos-search .pos-input { padding-left: 18px; padding-right: 56px; }
body.pos-mode[dir="rtl"] .pos-search svg { left: auto; right: 18px; }
body.pos-mode[dir="rtl"] .pos-bk-side { align-items: flex-start; }
body.pos-mode[dir="rtl"] .pos-money .cur { margin-left: 0; margin-right: .25em; }
body.pos-mode[dir="rtl"] .pos-back svg { transform: scaleX(-1); }
body.pos-mode[dir="rtl"] .pos-money, body.pos-mode[dir="rtl"] .pos-bk-money, body.pos-mode[dir="rtl"] .pos-total-line b, body.pos-mode[dir="rtl"] .pos-metric .v, body.pos-mode[dir="rtl"] .pos-tx .a, body.pos-mode[dir="rtl"] .pos-bk-time, body.pos-mode[dir="rtl"] .pos-kv .v.big { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Live rental countdown — the same shape as the team app's rental card, in the
   desk's palette: the number is the thing you read across a counter. */
.pos-count { font-size: 44px; font-weight: 900; text-align: center; letter-spacing: 1px; padding: 6px 0 2px; color: var(--pos-ink); font-variant-numeric: tabular-nums; }
.pos-count.late { color: var(--pos-orange); }
.pos-countlabel { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--pos-ink-3); margin-bottom: 10px; }
.pos-prog { height: 8px; border-radius: 4px; background: var(--pos-border); overflow: hidden; margin-bottom: var(--s2); }
.pos-prog i { display: block; height: 100%; background: var(--pos-ink-3); border-radius: 4px; transition: width 1s linear; }
.pos-prog i.late { background: var(--pos-orange); }

/* The first question of a booking is two doors, nothing else. */
.pos-doors2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.pos-doors2 .pos-btn { height: 132px; font-size: var(--t-xl); border-radius: var(--r-lg); flex-direction: column; gap: 10px; }
.pos-doors2 .pos-btn svg { width: 34px; height: 34px; }
@media (max-width: 820px) { .pos-doors2 { grid-template-columns: 1fr; } .pos-doors2 .pos-btn { height: 96px; } }

/* One row per product option: what it is called, how many are in the box. */
.pos-var-row { display: grid; grid-template-columns: 1fr 96px var(--tap); gap: 8px; margin-bottom: 8px; align-items: center; }
.pos-var-row .pos-btn { width: var(--tap); padding: 0; font-size: 20px; }
