@import url("/fonts.css");
:root {
  --ink: #171a17;
  --muted: #70746b;
  --paper: #f5f6f0;
  --white: #fff;
  --lime: #cbf52b;
  --line: #e2e5db;
  --red: #aa382a;
  --radius: 22px;
  font-family: Arial, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6a8510;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3.1vw, 42px);
  letter-spacing: -1.3px;
  line-height: 1.35;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 18px;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.small {
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  direction: ltr;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.4px;
}
.brand svg {
  width: 38px;
  height: 38px;
  flex: none;
}
.wordmark {
  white-space: nowrap;
}
.brand.dark {
  color: white;
}
.brand.dark .logo-block {
  fill: white;
}
.button {
  background: var(--ink);
  color: white;
  padding: 14px 21px;
  border-radius: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  min-height: 47px;
}
.button.lime {
  background: var(--lime);
  color: var(--ink);
}
.button.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
}
.button.danger {
  background: #fae8e3;
  color: var(--red);
}
.button.compact {
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 13px 14px;
  min-height: 46px;
  color: var(--ink);
  font-weight: 400;
}
.field input::placeholder {
  color: #9b9e95;
}
.field input[type="email"],
.field input[type="password"] {
  direction: ltr;
  text-align: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f0f2e9;
  color: #59634b;
}
.tag.ready {
  background: #e4f7b6;
  color: #3b550c;
}
.tag.cancelled {
  background: #fae8e3;
  color: var(--red);
}
.dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.notice {
  padding: 14px 18px;
  background: #fff4da;
  border: 1px solid #f1d891;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.notice.error {
  background: #fff0ec;
  color: #8e3428;
  border-color: #f2c6bc;
}
.notice:empty {
  display: none;
}
.boot {
  height: 100dvh;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  font-size: 35px;
  font-weight: 900;
}
.boot span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 600px);
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 15px 22px;
  z-index: 100;
  transition: 0.2s;
  text-align: center;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
dialog {
  border: 0;
  border-radius: 26px;
  padding: 30px;
  width: min(520px, calc(100% - 28px));
  color: var(--ink);
  box-shadow: 0 30px 100px #0003;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #151a1680;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 15px;
}
.dialog-head h2 { min-width: 0; overflow-wrap: anywhere; }
.close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
}
.close-labeled {
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 14px;
}
.remember-device { display: flex; align-items: center; gap: 10px; }
.remember-device input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ink); }
.qr-view {
  text-align: center;
  display: grid;
  gap: 20px;
}
.qr-view img {
  width: min(100%, 300px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.qr-view input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  direction: ltr;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 22px;
  gap: 22px;
}
.login-story {
  background: var(--ink);
  color: white;
  border-radius: 30px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}
.login-story h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.3;
  max-width: 650px;
  letter-spacing: -2px;
}
.login-story h1 em {
  font-style: normal;
  color: var(--lime);
}
.login-story p {
  color: #aeb5a7;
  max-width: 410px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
}
.story-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 0;
}
.sample-card {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 26px;
  width: 260px;
  transform: rotate(-6deg);
  box-shadow: 15px 20px 0 #ffffff10;
}
.sample-card .number {
  font-size: 65px;
  font-weight: 800;
  letter-spacing: -4px;
  direction: ltr;
  margin: 12px 0;
}
.sample-card .ready-line {
  background: var(--lime);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.story-footer {
  display: flex;
  justify-content: space-between;
  color: #aeb5a7;
  font-size: 12px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.login-form > div {
  width: 100%;
  max-width: 380px;
}
.login-form .lang {
  position: absolute;
  top: 15px;
  inset-inline-end: 18px;
}
.login-form h1 {
  font-size: 32px;
  margin: 12px 0;
}
.login-form form {
  margin-top: 32px;
}
.login-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100dvh;
}
.sidebar {
  background: var(--ink);
  color: #c7ccbf;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  gap: 35px;
}
.sidebar .brand {
  font-size: 25px;
}
.sidebar .brand svg {
  width: 33px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  border-radius: 12px;
  padding: 14px 15px;
  background: transparent;
  color: #adb5a5;
  font-weight: 600;
}
.nav-button.active {
  background: var(--lime);
  color: var(--ink);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.workspace {
  background: #ffffff0b;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 15px;
}
.workspace p {
  color: #8c9585;
  font-size: 12px;
  margin-top: 7px;
}
.sidebar .button.ghost {
  color: #b8c2ae;
}
.main {
  padding: 32px clamp(22px, 4vw, 65px) 45px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eddc;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.topbar .lang {
  font-size: 13px;
  padding: 8px;
  background: transparent;
  color: var(--muted);
}
.connection {
  font-size: 12px;
  color: #62733f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.stat {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.stat:first-child {
  background: var(--lime);
  border-color: var(--lime);
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4a5141;
}
.stat-value {
  font-size: 42px;
  font-weight: 800;
  margin-top: 15px;
  line-height: 1;
  letter-spacing: -2px;
}
.stat-foot {
  font-size: 11px;
  margin-top: 12px;
  color: #667257;
}
.queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  gap: 6px;
  background: #e9ece2;
  padding: 5px;
  border-radius: 12px;
  overflow: auto;
}
.tab {
  background: transparent;
  color: #72786b;
  padding: 10px 17px;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #0000000a;
}
.search {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  background: white;
  max-width: 220px;
  width: 100%;
  font: inherit;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}
.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.order-card.ready {
  border-color: #aecb70;
}
.order-number {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.3px;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: start;
}
.order-number span {
  font-size: 19px;
  color: #a9afa0;
  margin-inline-end: 4px;
}
.order-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.order-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.order-footer .button {
  width: 100%;
}
.order-extra {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.order-extra button {
  font-size: 11px;
  padding: 6px;
  background: transparent;
  color: var(--muted);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 65px 25px;
  border: 1px dashed #cdd4c1;
  border-radius: 20px;
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: #7b886a;
  margin-bottom: 17px;
}
.empty p {
  margin-top: 12px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: start;
}
th,
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  font-size: 14px;
}
th {
  font-size: 11px;
  color: var(--muted);
  background: #fafbf7;
}
tr:last-child td {
  border-bottom: 0;
}
.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.list-card p {
  margin-top: 8px;
}
.license-number {
  font-size: 48px;
  font-weight: 800;
  margin: 15px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  display: grid;
  gap: 20px;
  align-content: start;
}
.code {
  background: var(--paper);
  padding: 15px;
  border-radius: 10px;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  user-select: all;
}
.guest {
  min-height: 100dvh;
  max-width: 500px;
  margin: auto;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.guest header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guest main {
  margin: auto 0;
  display: grid;
  gap: 20px;
  text-align: center;
}
.guest .brand {
  font-size: 24px;
}
.guest-hero {
  padding: 35px 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  gap: 20px;
}
.guest-number {
  font-size: clamp(55px, 14vw, 85px);
  font-weight: 800;
  letter-spacing: -4px;
  direction: ltr;
  overflow-wrap: anywhere;
}
.guest-status-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.guest-status-icon .icon {
  width: 34px;
  height: 34px;
}
.guest-progress {
  display: flex;
  gap: 7px;
  margin: 8px 0;
}
.guest-progress span {
  height: 5px;
  border-radius: 8px;
  background: #e6eadd;
  flex: 1;
}
.guest-progress span.done {
  background: #9fca19;
}
.guest footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.guest .notice {
  margin: 0;
  text-align: start;
}
.guest-help {
  font-size: 13px;
  line-height: 1.8;
  text-align: start;
}
.renewal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand-note {
  font-size: 11px;
  letter-spacing: 1px;
  direction: ltr;
  color: #96a188;
}
.link-button {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    max-width: 1500px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 14px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .main {
    padding: 25px;
  }
  .login-story {
    padding: 30px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .login {
    display: block;
    padding: 0;
  }
  .login-story {
    display: none;
  }
  .login-form {
    min-height: 100dvh;
    padding: 32px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 20;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    display: block;
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 4px;
  }
  .nav-button {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 5px;
    padding: 10px 8px;
    font-size: 10px;
    border-radius: 10px;
    min-width: 56px;
  }
  .nav-button .icon {
    width: 21px;
    height: 21px;
  }
  .main {
    padding: 22px 17px 110px;
  }
  .topbar {
    margin-bottom: 27px;
    padding-bottom: 18px;
  }
  .topbar-left .small {
    max-width: 125px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .topbar .connection {
    font-size: 10px;
  }
  .page-head {
    align-items: start;
  }
  .page-head .button {
    padding: 12px;
    font-size: 12px;
  }
  .page-head p {
    font-size: 13px;
  }
  .stats {
    gap: 9px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 15px 12px;
    border-radius: 15px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-label .icon {
    display: none;
  }
  .stat-value {
    font-size: 32px;
    margin-top: 14px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .queue-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search {
    max-width: none;
    flex: 1;
    min-width: 110px;
  }
  .tabs {
    max-width: 100%;
  }
  .tab {
    padding: 9px 12px;
    font-size: 12px;
  }
  .order-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .order-card {
    padding: 15px;
    gap: 14px;
    border-radius: 16px;
  }
  .order-card .tag {
    font-size: 10px;
    padding: 6px;
  }
  .order-number {
    font-size: 30px;
  }
  .order-meta {
    font-size: 10px;
  }
  .order-card .button {
    font-size: 12px;
    padding: 11px 8px;
  }
  .order-extra {
    flex-wrap: wrap;
  }
  .order-extra button {
    padding: 4px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .list-card {
    align-items: start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .connection .dot {
    width: 6px;
    height: 6px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 100px;
  }
  dialog {
    padding: 23px;
  }
  .guest #toast {
    bottom: 20px;
  }
}
@media (max-width: 370px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 5px;
  }
  .stat {
    padding: 12px 9px;
  }
  .topbar {
    gap: 4px;
  }
}

.page-head > .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Optional dining modules */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--paper, #f5f6f0);
  border-radius: 10px;
  font-size: 14px;
}
.choice input {
  width: 20px;
  height: 20px;
  accent-color: #171a17;
  flex-shrink: 0;
}
fieldset {
  border: 1px solid #dfe3dc;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
legend {
  padding: 0 8px;
  font-weight: 700;
}
textarea {
  font: inherit;
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #dfe3dc;
  border-radius: 10px;
  background: #fff;
  color: #171a17;
}
.section-actions {
  margin-block: 22px;
}
#dining-content {
  padding-block: 22px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.menu-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.menu-card > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}
.menu-card h2,
.menu-card h3,
.menu-card p {
  margin: 0;
}
.menu-card > .row:last-child {
  margin-top: auto;
}
.menu-placeholder {
  height: 120px;
  background: #e9eee0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 800;
  color: #56623c;
}
.menu-guest {
  max-width: 1100px;
  margin: auto;
}
.menu-guest main {
  max-width: none;
  width: 100%;
  padding-bottom: 100px;
}
.menu-guest .menu-intro {
  background: #171a17;
  color: #fff;
  border-radius: 22px;
  padding: 30px;
}
.menu-intro .eyebrow {
  color: #cbf52b;
}
.menu-intro h1 {
  font-size: clamp(26px, 5vw, 40px);
  margin: 12px 0;
}
.category-bar {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-block: 20px;
}
.category-bar button {
  white-space: nowrap;
}
.cart-bar {
  position: sticky;
  bottom: 12px;
  background: #fff;
  border: 1px solid #dfe3dc;
  border-radius: 16px;
  box-shadow: 0 6px 24px #0001;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  margin-top: 24px;
  gap: 10px;
  z-index: 2;
}
.customer-detail {
  padding: 14px;
  background: #f5f6f0;
  border-radius: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.customer-detail ul {
  padding-inline-start: 20px;
  margin-block: 8px;
}
.customer-detail li {
  margin-block: 6px;
}
.order-card.awaiting_payment,
.order-card.awaiting_approval {
  border-color: #d7b66a;
}
.tag.awaiting_payment,
.tag.awaiting_approval {
  background: #fff0cb;
  color: #795109;
}
#visit-state {
  margin-block: 16px;
}
#visit-state details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px;
}
#visit-state .list-card {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .menu-guest header {
    padding: 18px;
  }
  .menu-guest main {
    padding-inline: 16px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .menu-intro {
    padding: 24px !important;
  }
  .sidebar nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .sidebar .nav-button {
    min-width: 76px;
    flex: 0 0 auto;
  }
  .cart-bar {
    bottom: 8px;
  }
}
.menu-guest {
  padding: 20px 14px;
  gap: 16px;
}
.menu-guest main {
  text-align: start;
  gap: 12px;
}
.menu-intro .row {
  gap: 8px;
}
.menu-intro .button {
  padding: 12px;
  font-size: 14px;
  flex: 1;
  white-space: nowrap;
}
#visit-state:empty {
  display: none;
}
@media (max-width: 700px) {
  .menu-guest {
    padding: 12px 8px;
  }
  .menu-guest main {
    padding-inline: 8px;
  }
  .menu-guest header {
    padding: 10px 8px;
  }
  .cart-bar .button {
    font-size: 14px;
    padding: 12px;
    white-space: nowrap;
  }
  .menu-intro {
    padding: 20px !important;
  }
}

.access-permissions {
  border: 1px solid var(--line, #d9ddd4);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.access-permissions label,
.access-super {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.access-permissions input,
.access-super input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: #171a17;
}
.access-card {
  gap: 20px;
}
.access-card .row {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .access-card {
    align-items: stretch;
    flex-direction: column;
  }
}

.notification-evidence {
  display: grid;
  gap: 0.4rem;
  border-block-start: 1px solid var(--line, #dedfd8);
  padding-block-start: 0.8rem;
}
.acknowledged {
  color: #275b20;
  font-weight: 700;
}
.pager-settings-form {
  border-block-start: 1px solid #dedfd8;
  padding-block: 1rem;
}
.pager-settings-form input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}
.ready-banner {
  background: #cbf52b;
  color: #171a17;
  border-radius: 28px;
  padding: clamp(24px, 7vw, 48px);
  text-align: center;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 30px #171a1710;
}
.ready-banner:not(.seen) {
  min-height: min(75svh, 680px);
  align-content: center;
  scroll-margin-block-start: 12px;
}
.ready-banner h1 {
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.2;
  margin: 0;
}
.ready-banner p {
  margin: 0;
}
.ready-invoice {
  font-weight: 850;
  font-size: clamp(44px, 12vw, 80px);
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.ready-banner .button {
  background: #171a17;
  color: #fff;
  min-height: 56px;
  font-size: 20px;
}
.ready-banner.seen {
  background: #e6efcf;
}
.guest-hero.ready-summary {
  display: none;
}
.guest-import {
  margin-block: 18px;
}

@media (max-width: 720px) {
  .sidebar .nav-button {
    width: auto;
    flex: 0 0 auto;
  }
}
@media (max-width: 600px) {
  .order-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-card .tag {
    font-size: 12px;
  }
  .order-card .button {
    min-height: 48px;
  }
}

/* Compact pager workspace: operational actions first, evidence on demand. */
.pager-row { background: #fff; border: 1px solid #e1e4dc; border-inline-start: 4px solid #a6afa0; border-radius: 18px; padding: 14px 16px; min-width: 0; }
.pager-row.ready { border-inline-start-color: #91ba13; }
.pager-line { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pager-identity { display:grid; gap:2px; min-width:0; flex:1; }
.pager-number { font-size:26px; line-height:1.25; font-weight:800; overflow-wrap:anywhere; }
.pager-state { font-size:11px; color:#66715d; }
.pager-actions { display:flex; gap:8px; flex-shrink:0; }
.pager-actions .button { min-height:46px; padding:10px 15px; font-size:13px; border-radius:12px; white-space:nowrap; }
.pager-subline { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:5px; font-size:11px; }
.pager-detail-toggle { background:none; color:#536046; min-height:32px; padding:4px 0; font-size:11px; }
.pager-hint { color:#66715d; font-size:11px; margin:0; }
.pager-details { margin-top:10px; border-top:1px solid #e1e4dc; padding-top:12px; }
.pager-details[hidden] { display:none; }
.pager-details > .row { margin-top:12px; }
.order-grid:has(.pager-row) { grid-template-columns:minmax(0,1fr); }
@media (min-width:1100px) { .order-grid:has(.pager-row) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .queue-shell .main { padding:12px 14px 96px; }
  .queue-shell .topbar { margin-bottom:18px; padding-bottom:12px; }
  .queue-shell .page-head { align-items:center; margin-bottom:16px; }
  .queue-shell .page-head h1 { font-size:24px; }
  .queue-shell .page-head .eyebrow, .queue-shell .page-head p { display:none; }
  .queue-shell .stats { gap:8px; margin-bottom:16px; }
  .queue-shell .stat { padding:10px 12px; border-radius:12px; }
  .queue-shell .stat-value { font-size:23px; margin-top:2px; }
  .queue-shell .stat-foot { display:none; }
  .queue-shell .queue-toolbar { gap:8px; margin-bottom:14px; }
  .queue-shell .order-grid { gap:9px; }
  .pager-row { padding:10px 12px; border-radius:14px; }
  .pager-number { font-size:23px; }
  .pager-actions { gap:6px; }
  .pager-actions .button { padding:10px; font-size:12px; }
  .topbar-left .avatar { display:none; }
  dialog { max-height:calc(var(--visible-height, 100dvh) - 24px); overflow-y:auto; }
  dialog.order-entry { position:fixed; top:calc(var(--visible-top, 0px) + 12px); bottom:auto; margin:0 auto; padding:18px; border-radius:20px; }
  .order-entry .dialog-head { margin-bottom:12px; }
  .order-entry .dialog-head h2 { font-size:20px; }
  .order-entry .stack { gap:12px; }
  .order-entry input[name="invoice"] { font-size:24px; font-weight:700; min-height:52px; }
  .order-entry .button { min-height:48px; }
  .native-staff .login-story { display:none; }
}
@media(max-width:360px) { .pager-actions .button { padding:10px 8px; font-size:11px; } .pager-line {gap:6px;} }

.sidebar .mobile-more { display:none; }
.guest-alert-help { border:1px solid var(--line); padding:14px; border-radius:14px; }
.guest-alert-help summary { cursor:pointer; font-size:14px; font-weight:700; }
.guest-alert-help p { margin-top:12px; }
@media(max-width:700px) {
  .sidebar .mobile-extra { display:none; }
  .sidebar .mobile-more { display:grid; }
  .sidebar nav { justify-content:space-around; }
  .sidebar .nav-button { flex:1; min-width:0; }
}
/* Task-focused staff workspace: compact actions and explicit account controls. */
.pager-open { color:inherit; background:none; border:0; padding:0; text-align:start; font:inherit; cursor:pointer; min-width:76px; }
.pager-open:disabled { opacity:1; cursor:default; }
.pager-open:not(:disabled):focus-visible { outline:2px solid var(--lime,#c5f34a); outline-offset:5px; border-radius:8px; }
.pager-actions { flex-wrap:wrap; justify-content:flex-end; }
.pager-actions .cancel-inline { color:#b12e35; }
.logout-label { gap:5px; white-space:nowrap; }
.queue-toolbar .tabs { overflow-x:auto; max-width:100%; }
.tab { white-space:nowrap; }
button[aria-busy="true"] { cursor:progress; }
@media(max-width:600px) {
  .pager-actions { gap:6px; }
  .pager-actions .button { padding:9px 10px; min-height:40px; font-size:12px; }
  .topbar { gap:6px; }
  .topbar-left p { max-width:100px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .topbar .connection { display:none; }
  .logout-label { font-size:11px; padding:8px 4px; }
}
.pager-actions { flex:0 1 72%; min-width:0; }

/* Production settings and customer display. */
.auth-challenge { max-width:480px; margin:5vh auto; padding:24px; }
.break-text { overflow-wrap:anywhere; }
.recovery-codes { overflow:auto; padding:16px; background:var(--paper); line-height:1.8; }
.branch-policy { padding-block:16px; border-bottom:1px solid var(--line); }
.pair-code { display:block; font-size:30px; text-align:center; letter-spacing:3px; padding:20px; }
.table-scroll { overflow:auto; max-height:65vh; }
.table-scroll table { border-collapse:collapse; width:100%; font-size:13px; }
.table-scroll th,.table-scroll td { padding:10px; border-bottom:1px solid var(--line); text-align:start; white-space:nowrap; }
.customer-display { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:space-between; text-align:center; padding:20px; }
.customer-display h1 { font-size:clamp(24px,5vw,48px); }
.customer-display h2 { font-size:clamp(28px,6vw,60px); overflow-wrap:anywhere; }
.customer-display img { width:min(70vw,55dvh,500px); max-width:100%; }
.customer-display footer { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.occasion-banner { padding:14px; border-radius:14px; background:var(--lime); color:var(--ink); text-align:center; overflow-wrap:anywhere; }
.restaurant-name { font-size:clamp(26px,5vw,38px); overflow-wrap:anywhere; }
.restaurant-logo { width:80px; height:80px; object-fit:contain; border-radius:16px; }
.guest-contact { display:flex; flex-direction:column; gap:8px; padding:15px; }
@media(max-width:600px) { .auth-challenge { margin:15px; } .customer-display { padding:14px; } }
/* Management and display forms follow the selected language and fit narrow screens. */
.quota-summary { display:flex; flex-wrap:wrap; gap:12px; }
.quota-summary span { background:var(--surface,#f4f6ef); padding:12px; border-radius:12px; }
#management-overview .branch-policy { display:flex; flex-direction:column; gap:8px; }
#management-overview { margin-block-end:24px; }
#management-overview .panel, .access-card { min-width:0; overflow-wrap:anywhere; }
.auth-challenge input[readonly] { width:100%; user-select:all; }
.customer-display footer { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
[hidden] { display:none !important; }
html[dir="ltr"] .field, html[dir="ltr"] .list-card { text-align:start; }
@media(max-width:600px){.quota-summary{display:grid;grid-template-columns:1fr 1fr;font-size:13px;}#management-overview .row.wrap .button{flex:1 1 auto;}.auth-challenge{margin:16px;}}

/* The language control occupies its own row, including short landscape screens. */
.login-form { flex-direction: column; gap: 24px; padding-block: 24px 40px; }
.login-form .lang { position: static; align-self: flex-end; flex-shrink: 0; }
.login-form [hidden] { display: none !important; }
.collected-thanks { padding: 24px; background: var(--lime, #d2fa69); color: #182115; }
.license-totals { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.license-totals article { background:#f2f5ed;border-radius:16px;padding:18px; }
.license-totals strong { display:block;font-size:32px; }
.license-totals p { margin:6px 0;font-size:13px; }
@media(max-width:600px){.license-totals {grid-template-columns:1fr;}.license-totals article{padding:12px;}}

/* Restaurant colours are scoped to guest pages or their explicit preview only. */
.guest-custom { background: var(--paper); color: var(--ink); }
.guest-custom .guest-hero,.guest-custom .panel,.guest-custom input,.guest-custom select { background: var(--white); color: var(--ink); }
.guest-custom .button.lime,.guest-custom .guest-status-icon,.guest-custom .occasion-banner,.guest-custom .collected-thanks,.guest-custom .ready-banner { background: var(--lime); color: var(--accent-ink); }
.guest-custom .ready-banner .button { background: var(--accent-ink); color: var(--lime); }
.guest-custom .guest-progress span.done { background: var(--lime); }
.guest-custom .muted { opacity: .8; }
.theme-color { display:flex; align-items:end; gap:16px; flex-wrap:wrap; }
.theme-color label { display:grid; gap:8px; }
input.color-swatch { width:52px; height:52px; border-radius:50%; padding:3px; cursor:pointer; }
input.color-swatch::-webkit-color-swatch-wrapper { padding:0; }
input.color-swatch::-webkit-color-swatch { border-radius:50%; border:0; }
input.color-swatch::-moz-color-swatch { border-radius:50%; border:0; }
.theme-preview { padding:24px; border:1px solid var(--line); border-radius:18px; text-align:center; }
.preparation-estimate strong { display:block; font-size:clamp(20px,6vw,36px); font-variant-numeric:tabular-nums; }
.customer-entry-label { padding:8px 12px; border-inline-start:3px solid var(--lime); }
.guest-custom .button.secondary { background:var(--white); color:var(--ink); border:1px solid var(--line); }

.restaurant-sections { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 24px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.restaurant-section { padding:12px 16px; border-radius:12px; background:transparent; color:var(--ink); font-weight:700; border:1px solid var(--line); }
.restaurant-section.selected { background:var(--ink); color:var(--white); border-color:var(--ink); }
.restaurant-selector { align-items:end; }
[data-prod-section][hidden] { display:none !important; }
[data-prod-section] { max-width:1100px; }
[data-prod-section=experience] > .panel { width:100%; }
.display-account-card { padding:20px; border:1px solid var(--line); border-radius:18px; }
.display-account-card h3 { margin:0 0 8px; }
.display-device { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:16px; margin-top:16px; border-top:1px solid var(--line); }
.display-actions summary { cursor:pointer; font-weight:700; }
.display-actions .stack { margin-top:12px; }
@media(max-width:600px){
  .restaurant-section { padding:10px 12px; font-size:13px; flex:1 0 auto; }
  .restaurant-selector .field { min-width:0; flex:1; }
  .display-account-card { padding:15px; }
}

/* Guest and draft preview share the same markup, spacing and theme. */
.collected-image { display:block; width:100%; max-height:400px; object-fit:contain; border-radius:18px; margin-top:16px; }
.guest-notifications { border:1px solid var(--line); border-radius:18px; padding:16px; }
.guest-alert-options summary { cursor:pointer; font-size:14px; font-weight:700; }
.guest-alert-options>div { margin-top:14px; }
.guest main { margin:0; }
.preparation-estimate { padding:14px; }
.experience-preview-panel { margin-top:24px; border-top:1px solid var(--line); padding-top:20px; }
.guest-preview { width:100%; max-width:390px; height:720px; overflow:auto; border:6px solid #353a35; border-radius:28px; margin:16px auto; background:var(--paper); color:var(--ink); }
.guest-preview .guest { min-height:700px; padding:24px 16px; }
.guest-preview .field { text-align:start; }
.guest-preview .guest-number { overflow-wrap:anywhere; }
#pair-camera { width:100%; max-height:380px; object-fit:contain; border-radius:16px; background:#171a17; }
.customer-display header h2 { margin:8px 0; }
.collected-message h2 { overflow-wrap:anywhere; }
.experience-panel { grid-column:1/-1; }
.experience-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,390px); gap:28px; align-items:start; }
.experience-editor>form { min-width:0; }
.experience-editor .experience-preview-panel { position:sticky; top:16px; margin-top:0; padding-top:0; border-top:0; min-width:0; }
@media(max-width:1000px) {
 .experience-editor { grid-template-columns:minmax(0,1fr); }
 .experience-editor .experience-preview-panel { position:static; order:-1; }
 .guest-preview { height:450px; }
}

/* The fixed branch QR already identifies its branch; focus the guest on their receipt. */
#invoice-form .invoice-entry-number { min-height:88px; width:100%; text-align:center; font-size:clamp(2rem,8vw,3rem); font-weight:800; border:2px solid var(--ink); border-radius:16px; }
#invoice-form .invoice-entry-number:focus { outline:3px solid var(--lime); outline-offset:3px; }
#invoice-form > button { min-height:56px; font-size:1.1rem; }

.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; }
