:root {
  --d-bg: #fbf3e4; --d-fg: #2b1d12; --d-mute: #6f5b49; --d-line: #e8d9bd; --d-card: #fffaf0;
  --d-brand: #b93a1b; --d-brand-fg: #fff; --d-accent: #e8a317; --d-ok: #4d6b1f; --d-danger: #a3281a; --d-focus: #b93a1b;
  --olive: #5b6b2f; --ink: #1e1510; --paper2: #f4e8cf;
  --d-radius: 16px;
  --d-font: 'Readex Pro', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --d-font-body: 'IBM Plex Sans Arabic', 'Readex Pro', 'Segoe UI', sans-serif;
  --top-h: 64px;
}
html { scroll-padding-top: 130px; }
body { background: var(--d-bg); }
h1, h2, h3 { font-family: var(--d-font); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-block-end: .5rem; }
h2 { font-size: 1.25rem; }
.rx-shell { min-height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; }
.rx-shell > main { flex: 1; outline: 0; padding-block-end: 4.5rem; }
.rx-shell.is-kitchen { background: #17110d; color: #f4e8d4; --d-line: #3a2c22; --d-mute: #b9a58f; --d-card: #241a14; }
.rx-shell.is-kitchen > main { padding-block-end: 1rem; }

/* top */
.rx-top { position: sticky; inset-block-start: var(--bar-h); z-index: 50; display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; background: var(--ink); color: #fbf3e4; min-height: var(--top-h); flex-wrap: wrap; }
.rx-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-inline-end: auto; }
.rx-brand b { display: block; font-family: var(--d-font); font-size: 1.1rem; line-height: 1.2; }
.rx-brand small { display: block; font-size: .72rem; color: #d9c7a8; line-height: 1.2; }
.rx-roles-nav { display: flex; gap: .25rem; background: #2d2018; border-radius: 99px; padding: .2rem; }
.rx-roles-nav a { text-decoration: none; padding: .4rem .95rem; border-radius: 99px; font-size: .9rem; min-block-size: 36px; display: inline-flex; align-items: center; color: #e9d9bd; }
.rx-roles-nav a:hover { background: #3b2b20; }
.rx-roles-nav a.is-on { background: var(--d-accent); color: var(--ink); font-weight: 600; }
.rx-sub-nav { display: flex; gap: .25rem; padding: .4rem 1rem; background: var(--paper2); border-block-end: 1px solid var(--d-line); overflow-x: auto; position: sticky; inset-block-start: calc(var(--bar-h) + var(--top-h)); z-index: 40; }
.is-kitchen .rx-sub-nav { display: none; }
.rx-sub-nav a { text-decoration: none; padding: .45rem 1rem; border-radius: 99px; white-space: nowrap; font-size: .92rem; min-block-size: 40px; display: inline-flex; align-items: center; }
.rx-sub-nav a:hover { background: #ead9b8; }
.rx-sub-nav a.is-on { background: var(--d-brand); color: #fff; }
@media (max-width: 640px) { .rx-top { padding: .4rem .6rem; gap: .5rem; --top-h: 96px; } .rx-roles-nav { inline-size: 100%; justify-content: space-between; } .rx-roles-nav a { padding-inline: .6rem; flex: 1; justify-content: center; } .rx-brand small { display: none; } .rx-top { position: static; } .rx-sub-nav { inset-block-start: var(--bar-h); } }
.rx-foot { display: flex; align-items: center; gap: .75rem; padding: 1.2rem 1rem; color: var(--d-mute); font-size: .85rem; justify-content: center; }
.is-kitchen .rx-foot { display: none; }
.rx-pattern { inline-size: 80px; block-size: 20px; color: var(--d-accent); }

/* shared */
.rx-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.rx-narrow { max-inline-size: 44rem; margin-inline: auto; padding: 1.2rem 1rem; display: grid; gap: 1rem; align-content: start; }
.rx-wide-page { max-inline-size: 80rem; margin-inline: auto; padding: 1.2rem 1rem; display: grid; gap: 1rem; align-content: start; }
.rx-pad { padding: .8rem 1rem 0; max-inline-size: 80rem; margin-inline: auto; }
.rx-lead { color: var(--d-mute); font-size: 1.05rem; }
.rx-meta { color: var(--d-mute); font-size: .85rem; }
.rx-hint { color: var(--d-mute); font-size: .85rem; }
.rx-note { color: var(--d-brand); font-style: normal; }
.rx-sub { display: block; color: var(--d-mute); font-weight: 400; font-size: .8rem; }
.rx-back { text-decoration: none; color: var(--d-brand); font-weight: 500; justify-self: start; min-block-size: 44px; display: inline-flex; align-items: center; }
.rx-wide { inline-size: 100%; }
.rx-panel { background: var(--d-card); border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 1rem; display: grid; gap: .8rem; }
.rx-empty-card { background: var(--d-card); border: 1px dashed var(--d-line); border-radius: 20px; padding: 1.5rem; display: grid; gap: .8rem; justify-items: center; text-align: center; }
.rx-banner { background: #f3e2b0; border-radius: 12px; padding: .6rem 1rem; font-size: .92rem; }
.rx-headrow { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.rx-two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rx-chips { display: flex; gap: .4rem; overflow-x: auto; padding-block: .2rem; scrollbar-width: none; }
.rx-chip { flex: none; border: 1.5px solid var(--d-line); background: var(--d-card); border-radius: 99px; padding: .4rem 1rem; min-block-size: 40px; cursor: pointer; white-space: nowrap; font-size: .9rem; }
.rx-chip:hover { border-color: var(--d-brand); }
.rx-chip.is-on { background: var(--d-brand); border-color: var(--d-brand); color: #fff; font-weight: 500; }
.rx-step { display: inline-flex; align-items: center; border: 1.5px solid var(--d-line); border-radius: 99px; background: var(--d-card); }
.rx-step button { inline-size: 44px; block-size: 44px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; border-radius: 50%; color: var(--d-brand); }
.rx-step button:hover { background: var(--paper2); }
.rx-step output { min-inline-size: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.rx-totals { display: grid; gap: .3rem; }
.rx-totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.rx-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.rx-totals .is-big { font-weight: 700; font-size: 1.15rem; border-block-start: 1px dashed var(--d-line); padding-block-start: .5rem; margin-block-start: .2rem; }
.rx-totals .is-paidrow { color: var(--olive); }
.rx-linkbtn { border: 0; background: none; color: var(--d-brand); cursor: pointer; font-size: .85rem; padding: .3rem .5rem; min-block-size: 32px; text-decoration: underline; }
.rx-linkbtn.is-danger { color: var(--d-danger); }
.rx-count { display: inline-block; margin-inline-start: .5rem; background: var(--paper2); color: var(--d-fg); border-radius: 99px; font-size: .78rem; padding: 0 .55rem; font-weight: 500; vertical-align: middle; }
.rx-form { display: grid; gap: .9rem; }
.rx-seggroup { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper2); border-radius: 99px; padding: .25rem; }
.rx-seg { border: 0; background: transparent; border-radius: 99px; min-block-size: 44px; cursor: pointer; font-weight: 500; }
.rx-seg.is-on { background: var(--d-brand); color: #fff; }
.rx-art { display: block; inline-size: 100%; block-size: 100%; }

/* landing */
.rx-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; max-inline-size: 76rem; margin-inline: auto; padding: 2.5rem 1.2rem; }
.rx-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--d-brand); }
.rx-kicker { color: var(--olive); font-weight: 600; letter-spacing: .02em; }
.rx-hero__text { display: grid; gap: 1rem; }
.rx-hero__art { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rx-hero__tile { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 18px 30px -18px rgb(60 30 10 / .5); }
.rx-hero__tile.t1, .rx-hero__tile.t2 { transform: translateY(18px); }
.rx-section { max-inline-size: 76rem; margin-inline: auto; padding: 1.5rem 1.2rem; display: grid; gap: .8rem; }
.rx-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.rx-role { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: 1.1rem; text-decoration: none; display: grid; gap: .3rem; transition: transform .15s, box-shadow .15s; }
.rx-role:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -16px rgb(60 30 10 / .5); border-color: var(--d-brand); }
.rx-role b { font-family: var(--d-font); color: var(--d-brand); font-size: 1.1rem; }
.rx-role span { color: var(--d-mute); font-size: .9rem; }
.rx-scan { display: flex; gap: 1.2rem; align-items: center; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px; padding: 1.1rem; max-inline-size: 40rem; }
.rx-qr { flex: none; padding: .4rem; background: #fff; border-radius: 12px; border: 1px solid var(--d-line); line-height: 0; }
.rx-scan__body { display: grid; gap: .6rem; flex: 1; }
.rx-scan__body h3 { font-size: 1.05rem; }
.rx-scan__body p { color: var(--d-mute); font-size: .9rem; }
@media (max-width: 900px) { .rx-hero { grid-template-columns: 1fr; padding-block: 1.2rem; } .rx-roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rx-scan { flex-direction: column; align-items: stretch; } .rx-qr { align-self: center; } .rx-roles { grid-template-columns: 1fr; } }

/* menu */
.rx-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; max-inline-size: 80rem; margin-inline: auto; padding: .8rem 1rem; }
.rx-menutop { position: sticky; inset-block-start: calc(var(--bar-h) + var(--top-h) + 48px); z-index: 30; background: var(--d-bg); padding-block: .5rem; display: grid; gap: .5rem; }
@media (max-width: 640px) { .rx-menutop { inset-block-start: calc(var(--bar-h) + 48px); } }
.rx-sec { margin-block-end: 1.5rem; }
.rx-sec h2 { margin-block: .6rem; color: var(--d-brand); display: flex; align-items: center; gap: .6rem; }
.rx-sec h2::after { content: ''; flex: 1; border-block-start: 2px dotted var(--d-line); }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: .9rem; }
.rx-card { display: flex; gap: .8rem; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: .6rem; transition: box-shadow .2s, transform .2s; }
.rx-card:hover { box-shadow: 0 16px 28px -20px rgb(60 30 10 / .6); transform: translateY(-1px); }
.rx-card[hidden] { display: none; }
.rx-card__art { flex: none; inline-size: 7.2rem; border-radius: 12px; overflow: hidden; align-self: flex-start; aspect-ratio: 4/3.4; }
.rx-card__body { display: grid; gap: .25rem; align-content: start; flex: 1; min-inline-size: 0; }
.rx-card h3 { font-size: 1.02rem; }
.rx-card__desc { color: var(--d-mute); font-size: .83rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx-card__foot { display: flex; align-items: center; gap: .6rem; margin-block-start: .15rem; }
.rx-price { color: var(--d-brand); font-variant-numeric: tabular-nums; }
.rx-add { margin-inline-start: auto; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0; background: var(--d-brand); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 14px -8px var(--d-brand); }
.rx-add:hover { background: #9d2f14; }
.rx-cartside { display: none; }
.rx-cartbar { position: fixed; inset-inline: .75rem; inset-block-end: .75rem; z-index: 60; display: flex; align-items: center; gap: .8rem; background: var(--ink); color: #fbf3e4; border-radius: 99px; padding: .55rem .6rem .55rem 1.2rem; padding-inline: .6rem 1.3rem; text-decoration: none; min-block-size: 56px; box-shadow: 0 18px 30px -12px rgb(0 0 0 / .55); }
.rx-cartbar span:nth-child(2) { flex: 1; font-weight: 500; }
.rx-cartbar__n { inline-size: 38px; block-size: 38px; border-radius: 50%; background: var(--d-accent); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
@media (min-width: 1000px) {
  .rx-menu { grid-template-columns: minmax(0, 1fr) 22rem; }
  .rx-cartside { display: block; position: sticky; inset-block-start: calc(var(--bar-h) + var(--top-h) + 60px); align-self: start; }
  .rx-cartbar { display: none; }
  .rx-cartside .rx-cart { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px; padding: 1rem; }
}
@media (max-width: 420px) { .rx-grid { grid-template-columns: 1fr; } .rx-card__art { inline-size: 6rem; } }
.rx-tablehead { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--ink); color: #fbf3e4; border-radius: 18px; padding: .8rem 1rem; }
.rx-tablehead .rx-meta { color: #d9c7a8; display: block; }
.rx-tablehead__n { font-family: var(--d-font); font-size: 1.5rem; }
.rx-tablehead .mjx-btn--ghost { color: #fbf3e4; border-color: #5a4636; }
.rx-tablehead .mjx-btn--ghost[disabled] { opacity: .6; }
.rx-banner, .rx-billnote { background: #f3e2b0; border-radius: 12px; padding: .7rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* sheet */
.mjx-dialog.rx-sheetdlg { inline-size: min(94vw, 32rem); }
.rx-sheet { display: grid; gap: .9rem; }
.rx-sheet__art { border-radius: 16px; overflow: hidden; aspect-ratio: 16/8; }
.rx-sheet__desc { color: var(--d-mute); }
.rx-opt { border: 0; padding: 0; margin: 0; display: grid; gap: .3rem; }
.rx-opt legend { font-weight: 600; margin-block-end: .3rem; padding: 0; }
.rx-choice { display: flex; align-items: center; gap: .6rem; min-block-size: 44px; padding: 0 .8rem; border: 1.5px solid var(--d-line); border-radius: 12px; cursor: pointer; background: var(--d-card); }
.rx-choice:has(input:checked) { border-color: var(--d-brand); background: #fbe9dd; }
.rx-choice input { accent-color: var(--d-brand); inline-size: 1.15rem; block-size: 1.15rem; }
.rx-choice span { flex: 1; }
.rx-choice em { font-style: normal; color: var(--d-mute); font-variant-numeric: tabular-nums; }
.rx-sheet__foot { display: flex; gap: .8rem; align-items: center; position: sticky; inset-block-end: -1.25rem; background: var(--d-card); padding-block: .6rem; }
.rx-sheet__foot .mjx-btn { flex: 1; }
@media (max-width: 640px) { .mjx-dialog.rx-sheetdlg { inline-size: 100vw; max-inline-size: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-block-size: 92vh; } }

/* cart, orders, tracker */
.rx-cart { display: grid; gap: .8rem; }
.rx-lines { display: grid; gap: .6rem; }
.rx-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding-block-end: .6rem; border-block-end: 1px dashed var(--d-line); }
.rx-lines small, .rx-olines small { display: block; color: var(--d-mute); font-size: .8rem; }
.rx-orders { display: grid; gap: .8rem; }
.rx-order { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: .9rem; display: grid; gap: .7rem; }
.rx-order header, .rx-order footer { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rx-order footer { justify-content: space-between; }
.rx-olines li { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding-block: .15rem; }
.rx-olines .rx-lt { margin-inline-start: auto; }
.rx-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; position: relative; }
.rx-track li { display: grid; justify-items: center; gap: .3rem; text-align: center; font-size: .8rem; color: var(--d-mute); position: relative; }
.rx-track li::before { content: ''; position: absolute; inset-block-start: 14px; inset-inline: -50% 50%; border-block-start: 3px solid var(--d-line); z-index: 0; }
.rx-track li:first-child::before { display: none; }
.rx-track li i { inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--d-line); display: grid; place-items: center; font-style: normal; font-size: .85rem; position: relative; z-index: 1; color: var(--d-fg); }
.rx-track li.is-done i { background: var(--olive); color: #fff; }
.rx-track li.is-done::before, .rx-track li.is-now::before { border-color: var(--olive); }
.rx-track li.is-now i { background: var(--d-accent); color: var(--ink); box-shadow: 0 0 0 5px #e8a31744; }
.rx-track li.is-now { color: var(--d-fg); font-weight: 600; }
.rx-cancelled { color: var(--d-danger); font-weight: 500; }
.rx-find .rx-row { flex-wrap: nowrap; }
.rx-payline { background: var(--paper2); padding: .6rem .9rem; border-radius: 12px; }
.rx-cartbox { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: .9rem; }
.rx-cartbox .rx-cart > .rx-wide, .rx-cartbox .rx-hint { display: none; }
.rx-cartbox h2 { font-size: 1.05rem; }

/* reservations */
.rx-days { display: flex; gap: .4rem; overflow-x: auto; padding-block: .2rem; }
.rx-day { flex: none; inline-size: 4.6rem; border: 1.5px solid var(--d-line); background: var(--d-card); border-radius: 14px; padding: .35rem; display: grid; justify-items: center; min-block-size: 64px; cursor: pointer; line-height: 1.3; }
.rx-day small { font-size: .72rem; color: var(--d-mute); }
.rx-day b { font-size: 1.2rem; }
.rx-day.is-on { background: var(--d-brand); border-color: var(--d-brand); color: #fff; } .rx-day.is-on small { color: #fde3d6; }
.rx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .45rem; }
.rx-slot { min-block-size: 44px; border: 1.5px solid var(--d-line); background: var(--d-card); border-radius: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.rx-slot:hover:not([disabled]) { border-color: var(--d-brand); }
.rx-slot[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.rx-slot.is-on { background: var(--d-brand); border-color: var(--d-brand); color: #fff; }
.rx-check { inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.rx-booktable td { vertical-align: top; }
.rx-rowact { display: flex; flex-wrap: wrap; gap: .3rem; }

/* kitchen */
.rx-kitchen { display: grid; grid-template-rows: auto 1fr; min-block-size: calc(100vh - var(--bar-h) - var(--top-h)); }
.rx-kbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; flex-wrap: wrap; background: #1f1611; border-block-end: 1px solid #3a2c22; }
.rx-kbar h1 { font-size: 1.4rem; margin: 0; color: #f6c45b; }
.rx-kbar .rx-chips { flex: 1; }
.rx-kbar .rx-chip { background: #2a1e17; border-color: #4a382b; color: #f4e8d4; }
.rx-kbar .rx-chip.is-on { background: var(--d-accent); border-color: var(--d-accent); color: var(--ink); }
.rx-kbar .mjx-btn--ghost { color: #f4e8d4; border-color: #4a382b; }
.rx-klate { padding: .25rem .8rem; border-radius: 99px; background: #2a1e17; font-weight: 600; }
.rx-klate.has { background: #8f2615; color: #fff; }
.rx-kcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: .8rem; align-items: start; }
.rx-kcol { background: #1f1611; border-radius: 18px; padding: .8rem; display: grid; gap: .7rem; align-content: start; min-block-size: 20rem; }
.rx-kcol h2 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; padding-block-end: .4rem; border-block-end: 3px solid; }
.c-new h2 { border-color: #5aa0d8; } .c-preparing h2 { border-color: var(--d-accent); } .c-ready h2 { border-color: #8fb84a; }
.rx-kcol .rx-count { background: #3a2c22; color: #f4e8d4; font-size: 1rem; }
.rx-kempty { color: #8c7a68; text-align: center; padding: 2rem 0; }
.rx-ticket { background: #2d211a; border: 1px solid #45342a; border-inline-start: 6px solid #5aa0d8; border-radius: 14px; padding: .7rem .8rem; display: grid; gap: .5rem; }
.rx-ticket[data-status='preparing'] { border-inline-start-color: var(--d-accent); } .rx-ticket[data-status='ready'] { border-inline-start-color: #8fb84a; }
.rx-ticket header { display: flex; align-items: center; gap: .6rem; }
.rx-ticket__no { font-size: 1.4rem; font-family: var(--d-font); }
.rx-ticket__where { flex: 1; background: #45342a; padding: .1rem .7rem; border-radius: 99px; font-size: .88rem; text-align: center; }
.rx-ticket__time { font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 700; direction: ltr; }
.rx-late { display: none; }
.rx-ticket.is-late { background: #4a1d14; border-color: #c4452d; animation: rx-pulse 1.6s ease-in-out infinite; }
.rx-ticket.is-late .rx-late { display: inline; color: #ffb199; }
.rx-ticket.is-late .rx-ticket__time { color: #ffb199; }
@keyframes rx-pulse { 50% { box-shadow: 0 0 0 4px #c4452d55; } }
.rx-ticket ul { display: grid; gap: .35rem; }
.rx-ticket li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: baseline; font-size: 1.05rem; }
.rx-ticket li b { color: #f6c45b; font-size: 1.2rem; }
.rx-ticket small { display: block; font-size: .82rem; color: #c8b49c; }
.rx-ticket .rx-note { color: #ffcf7a; }
.rx-st { font-style: normal; font-size: .72rem; padding: .05rem .5rem; border-radius: 99px; background: #45342a; color: #e8d6bc; white-space: nowrap; }
.rx-other { color: #b9a58f; font-size: .85rem; }
.rx-ticket footer { display: flex; gap: .5rem; }
.rx-go { flex: 1; min-block-size: 48px; border: 0; border-radius: 12px; background: var(--d-accent); color: var(--ink); font-weight: 700; font-size: 1rem; cursor: pointer; }
.c-new .rx-go { background: #5aa0d8; } .c-ready .rx-go { background: #8fb84a; }
.rx-go:hover { filter: brightness(1.1); }
.rx-x { inline-size: 48px; border: 1.5px solid #5a4636; border-radius: 12px; background: transparent; color: #e8d6bc; font-size: 1.4rem; cursor: pointer; }
.rx-x:hover { background: #5a2218; }
@media (max-width: 900px) { .rx-kcols { grid-template-columns: 1fr; } .rx-kcol { min-block-size: 0; } }
@media (min-width: 1500px) { .rx-ticket li { font-size: 1.2rem; } .rx-kcols { gap: 1.2rem; padding: 1.2rem; } }

/* floor */
.rx-calls { display: grid; gap: .4rem; }
.rx-calls li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fde8bd; border: 1px solid #e8c06a; border-radius: 14px; padding: .5rem .8rem; flex-wrap: wrap; }
.rx-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.rx-legend li { display: inline-flex; align-items: center; gap: .3rem; }
.rx-zone { display: grid; gap: .6rem; }
.rx-zone h2 { color: var(--d-brand); }
.rx-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: .7rem; }
.rx-tbl { position: relative; display: grid; gap: .15rem; align-content: start; justify-items: start; text-decoration: none; border-radius: 18px; padding: .7rem .8rem; min-block-size: 8rem; border: 2px solid var(--d-line); background: var(--d-card); transition: transform .15s; }
.rx-tbl:hover { transform: translateY(-2px); }
.rx-tbl b { font-family: var(--d-font); font-size: 1.8rem; line-height: 1.1; }
.rx-tbl__seats { font-size: .78rem; color: var(--d-mute); }
.rx-tbl__state { font-size: .82rem; font-weight: 600; }
.rx-tbl__sum { font-weight: 700; font-size: .95rem; margin-block-start: auto; }
.rx-tbl.st-occupied { background: #f9e0c8; border-color: #d98a45; }
.rx-tbl.st-bill { background: #f6d4cc; border-color: var(--d-brand); }
.rx-tbl.st-reserved { background: #dfe6c8; border-color: var(--olive); border-style: dashed; }
.rx-tbl.st-free { background: var(--d-card); }
.rx-bell { position: absolute; inset-block-start: .5rem; inset-inline-end: .6rem; animation: rx-ring 1.4s ease-in-out infinite; transform-origin: top center; }
@keyframes rx-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(8deg); } }
.rx-thead { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.rx-thead h1 { margin: 0; }
.rx-tbl-state { font-weight: 600; padding: .1rem .8rem; border-radius: 99px; background: var(--paper2); }
.rx-tbl-state.st-bill { background: #f6d4cc; } .rx-tbl-state.st-occupied { background: #f9e0c8; } .rx-tbl-state.st-reserved { background: #dfe6c8; }
.rx-actions { gap: .6rem; }
.rx-staffbar { padding: .5rem 1rem 0; max-inline-size: 80rem; margin-inline: auto; }

/* bill */
.rx-receipt { background: #fff; border: 1px solid var(--d-line); border-radius: 6px; padding: 1.2rem; display: grid; gap: .8rem; box-shadow: 0 14px 24px -18px rgb(60 30 10 / .5); }
.rx-receipt header { text-align: center; display: grid; gap: .15rem; font-size: .88rem; color: var(--d-mute); }
.rx-receipt header h2 { color: var(--d-fg); }
.rx-receipt .mjx-table td { padding: .45rem .3rem; }
.rx-receipt .is-paid { opacity: .5; text-decoration: line-through; }
.rx-receipt .pick { inline-size: 40px; } .rx-receipt .pickbox { inline-size: 1.2rem; block-size: 1.2rem; accent-color: var(--d-brand); }
.rx-thanks { text-align: center; color: var(--d-mute); font-size: .88rem; }
.rx-parts { display: grid; gap: .4rem; }
.rx-parts li { display: flex; align-items: center; gap: .6rem; justify-content: space-between; flex-wrap: wrap; }
.rx-parts li span { flex: 1; }

/* manager */
.rx-msec { display: grid; gap: .6rem; }
.rx-msec h2 { display: flex; align-items: center; gap: .3rem; color: var(--d-brand); flex-wrap: wrap; }
.rx-mlist { display: grid; gap: .5rem; }
.rx-mrow { display: grid; grid-template-columns: 4.2rem minmax(8rem, 1fr) 6.5rem 6.5rem 9rem; gap: .8rem; align-items: center; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: .5rem .7rem; }
.rx-mrow.is-off { background: transparent; border-style: dashed; }
.rx-mrow.is-off .rx-mrow__name b { text-decoration: line-through; color: var(--d-mute); }
.rx-mrow__art { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.rx-mrow__name b { display: block; } .rx-mrow__name small { color: var(--d-mute); }
.rx-mini { display: grid; gap: .1rem; font-size: .75rem; color: var(--d-mute); }
.rx-num { min-block-size: 40px; padding-inline: .5rem; text-align: center; }
.rx-switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .85rem; min-block-size: 44px; position: relative; }
.rx-switch input { position: absolute; opacity: 0; inline-size: 100%; block-size: 100%; margin: 0; cursor: pointer; }
.rx-switch i { flex: none; inline-size: 46px; block-size: 26px; border-radius: 99px; background: #c9b79a; position: relative; transition: background .2s; }
.rx-switch i::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 20px; block-size: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.rx-switch input:checked + i { background: var(--olive); } .rx-switch input:checked + i::after { inset-inline-start: 23px; }
.rx-switch input:focus-visible + i { outline: 3px solid var(--d-focus); outline-offset: 2px; }
.rx-catform { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
@media (max-width: 700px) {
  .rx-mrow { grid-template-columns: 3.6rem 1fr 1fr; } .rx-mrow__name { grid-column: 2 / 4; } .rx-switch { grid-column: 1 / 4; }
  .rx-catform { grid-template-columns: 1fr; }
}
.rx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.rx-kpi { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: 1rem; display: grid; gap: .1rem; }
.rx-kpi span { color: var(--d-mute); font-size: .88rem; } .rx-kpi b { font-family: var(--d-font); font-size: 1.7rem; color: var(--d-brand); } .rx-kpi small { color: var(--d-mute); }
.rx-repgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rx-span { grid-column: 1 / -1; }
.rx-bars { display: grid; gap: .55rem; }
.rx-bars li { display: grid; grid-template-columns: 7rem 1fr 2.4rem 6rem; gap: .6rem; align-items: center; font-size: .9rem; }
.rx-bars small { color: var(--d-mute); text-align: end; }
.rx-bar { block-size: 12px; background: var(--paper2); border-radius: 99px; overflow: hidden; }
.rx-bar i { display: block; block-size: 100%; background: var(--d-brand); border-radius: 99px; min-inline-size: 4px; }
.rx-topdish .rx-bar i { background: var(--d-accent); }
.rx-hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: .35rem; align-items: end; }
.rx-hour { display: flex; flex-direction: column; justify-content: flex-end; text-align: center; font-size: .78rem; gap: .15rem; }
.rx-hour i { display: block; background: var(--d-brand); border-radius: 6px 6px 0 0; }
.rx-hour span { color: var(--d-mute); }
@media (max-width: 900px) { .rx-kpis { grid-template-columns: 1fr 1fr; } .rx-repgrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rx-bars li { grid-template-columns: 5rem 1fr 2rem; } .rx-bars small { grid-column: 1 / -1; text-align: start; } }

/* print: bills and report only */
@media print {
  body { background: #fff; }
  .rx-top, .rx-sub-nav, .rx-foot, .rx-back, .no-print, .mjx-skip, .rx-cartbar { display: none !important; }
  .rx-narrow { max-inline-size: 80mm; padding: 0; }
  .rx-receipt { border: 0; box-shadow: none; }
  .rx-billpage .rx-panel { display: none; }
  .rx-wide-page { padding: 0; }
}

/* containment fixes */
.rx-kitchen { grid-template-columns: minmax(0, 1fr); }
.rx-kbar .rx-chips { min-inline-size: 0; flex: 1 1 14rem; }
.rx-menucol { min-inline-size: 0; }
@media (max-width: 640px) { .rx-roles-nav { gap: 0; } .rx-roles-nav a { padding-inline: .2rem; font-size: .84rem; min-inline-size: 0; } }

.rx-field-step, .mjx-field > .rx-step { justify-self: start; }
.rx-sheet__foot .mjx-btn { white-space: nowrap; }
