:root {
  --ink: #23332e;
  --rail: #1c332b;
  --accent: #bd5c38;
  --bg: #f5f6f2;
  --line: #e5e7de;
  --muted: #68776e;
  --white: #fff;
  --green: #287c57;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d49c75;
  outline-offset: 2px;
}
a {
  color: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
}
small,
.small {
  font-size: 0.8rem;
  color: var(--muted);
}
.app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--rail);
  color: #f4f4e9;
  padding: 26px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 7px;
}
.logo {
  width: 45px;
  height: 45px;
  background: #d4e9b9;
  color: #23332e;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
}
.brand b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.brand small {
  color: #a6b8aa;
}
.nav-caption {
  color: #a6b8aa;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 9px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button,
.bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #cbd9ce;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.nav button.active {
  background: #43634e;
  color: white;
}
.nav button:hover {
  background: #385144;
}
.ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #51665a;
  padding: 15px 8px;
}
.sidefoot b {
  font-size: 14px;
}
.main {
  min-width: 0;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
}
.crumb {
  font-size: 14px;
  font-weight: 650;
}
.topright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 5px 10px;
  font-weight: 650;
  white-space: nowrap;
  font-size: 12px;
  background: #e7efe1;
  color: #2d6141;
}
.tag.orange {
  background: #fae9d9;
  color: #9d4920;
}
.tag.red {
  background: #f9e7e4;
  color: #a33e38;
}
.tag.gray {
  background: #eee;
  color: #666;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #efe3cc;
  color: #5d4937;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.content {
  padding: 28px;
  max-width: 1550px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.eyebrow {
  color: #68776e;
  letter-spacing: 0.09em;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 7px;
}
.sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}
.btn {
  background: var(--rail);
  color: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn.accent {
  background: var(--accent);
}
.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.btn.full {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  min-width: 0;
}
.metric {
  padding: 17px;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.metric strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.06em;
  display: block;
  margin: 7px 0;
}
.trend {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.chart {
  height: 218px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 0;
  position: relative;
  background: repeating-linear-gradient(to top, transparent 0, transparent 52px, #f0f0eb 53px, #f0f0eb 54px);
}
.bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: #a5c3a0;
  position: relative;
  min-width: 10px;
}
.bar:last-child {
  background: #bd5c38;
}
.bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
}
.channels {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 11px;
}
.channelIcon {
  height: 34px;
  width: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e3ecd9;
  font-weight: 900;
}
.channel .details {
  flex: 1;
  min-width: 0;
}
.channel .details b {
  font-size: 14px;
}
.miniTrack {
  height: 6px;
  background: #f1f1eb;
  border-radius: 20px;
  margin-top: 6px;
  overflow: hidden;
}
.miniTrack div {
  height: 100%;
  border-radius: 20px;
  background: #87a885;
}
.table-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.table-tile {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: #f5f8f0;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 100px;
}
.table-tile.occupied {
  background: #fff4e6;
  border-color: #f0d8b9;
}
.table-tile.bill {
  background: #f8eae0;
  border-color: #dbbda9;
}
.table-tile b {
  font-size: 16px;
}
.table-tile small {
  font-size: 12px;
}
.table-tile i {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.table-tile.occupied i,
.table-tile.bill i {
  color: #ad5e27;
}
.scroll {
  overflow: auto;
}
.listtable {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
  font-size: 14px;
}
.listtable th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.listtable td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.listtable tr:last-child td {
  border-bottom: 0;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.chip.active {
  background: var(--rail);
  color: white;
  border-color: var(--rail);
}
.search {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  margin-bottom: 14px;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 16px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.menu-card {
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  color: var(--ink);
}
.food {
  height: 116px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: #efe8d7;
}
.menu-card:nth-child(3n + 2) .food {
  background: #e1edda;
}
.menu-card:nth-child(3n) .food {
  background: #f4e3d7;
}
.menu-info {
  padding: 13px;
}
.menu-info b {
  display: block;
}
.menu-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
  font-weight: 700;
}
.add {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7efe1;
  color: #294633;
  font-size: 20px;
}
.cart {
  position: sticky;
  top: 14px;
  align-self: start;
}
.cartline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty button {
  background: #eef0eb;
  border-radius: 7px;
  width: 28px;
  height: 30px;
}
.rowtotal {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}
.total {
  font-size: 20px;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.empty {
  color: var(--muted);
  padding: 28px 8px;
  text-align: center;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lane {
  background: #e9ede7;
  border-radius: 13px;
  padding: 12px;
}
.lane h2 {
  margin: 7px 0 12px;
}
.ticket {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.ticket p {
  font-size: 14px;
  margin: 7px 0;
}
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.stockbar {
  height: 8px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  min-width: 90px;
}
.stockbar div {
  height: 100%;
  background: #6d9c74;
}
.stockbar.low div {
  background: #c4653b;
}
.mobilebar {
  display: none;
}
.cartjump {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  background: #14231c99;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}
.modal[hidden] {
  display: none;
}
.dialog {
  background: white;
  border-radius: 18px;
  padding: 22px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.dialog h2 {
  margin-bottom: 12px;
}
.dialog label {
  display: block;
  font-size: 14px;
  margin: 10px 0 4px;
}
.dialog input,
.dialog select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1c332b;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 30;
  box-shadow: 0 10px 25px #0002;
}
.toast[hidden] {
  display: none;
}
.guesthero {
  padding: 22px;
  border-radius: 16px;
  background: #1c332b;
  color: white;
  margin-bottom: 18px;
}
.guesthero p {
  color: #cbd9ce;
}
.guesthero h1 {
  margin: 10px 0;
}
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff4e3;
  border: 1px solid #efd8b9;
  padding: 12px;
  border-radius: 10px;
  color: #815223;
  margin-bottom: 16px;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .content {
    padding: 21px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top {
    padding: 13px 20px;
  }
}
@media (max-width: 800px) {
  .app {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .top {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 14px;
  }
  .topright .tag {
    display: none;
  }
  .content {
    padding: 18px 13px 95px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .card {
    padding: 13px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .heading {
    margin-bottom: 16px;
  }
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
    scroll-margin-top: 80px;
  }
  .cartjump {
    display: flex;
    position: fixed;
    bottom: 75px;
    right: 13px;
    z-index: 9;
    box-shadow: 0 4px 18px #0002;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rail);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 10;
    justify-content: space-around;
    box-shadow: 0 -4px 20px #0002;
  }
  .mobilebar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #b9cbbd;
    background: none;
    border-radius: 9px;
    padding: 7px 3px;
    font-size: 11px;
  }
  .mobilebar button.active {
    background: #43634e;
    color: white;
  }
  .table-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .table-tile {
    padding: 8px;
    min-height: 86px;
  }
  .table-tile small {
    font-size: 11px;
  }
  .toast {
    bottom: 83px;
    right: 12px;
    left: 12px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .food {
    height: 105px;
  }
  .btn {
    padding: 10px 12px;
  }
  .guesthero {
    padding: 18px;
  }
  .sectionhead {
    flex-wrap: wrap;
  }
  .crumb {
    font-size: 13px;
  }
  .chart {
    height: 170px;
  }
}
@media (max-width: 360px) {
  .table-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric strong {
    font-size: 1.4rem;
  }
  .menu-info {
    padding: 9px;
  }
  .topright {
    gap: 5px;
  }
}

.login {
  width: min(440px, calc(100% - 32px));
  margin: 12vh auto;
  padding: 30px;
}
.login label,
.field label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}
.login input,
.field input,
.field select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 100%;
  margin: 5px 0 10px;
  background: white;
}
.error {
  color: #a33e38;
  font-weight: 600;
}
.guest-only .sidebar,
.guest-only .mobilebar,
.guest-only .topright {
  display: none;
}
.guest-only .app {
  display: block;
}
.guest-only .content {
  max-width: 1000px;
}
.qr {
  width: 220px;
  max-width: 100%;
  display: block;
  margin: 12px auto;
}
.muted {
  color: var(--muted);
}
.cartline button {
  flex-shrink: 0;
}
.brand small {
  color: #b7cfbc;
}
.nav button {
  font-size: 14px;
}
.empty {
  min-height: 80px;
}
.mobilebar button {
  font-size: 12px;
}
.field {
  margin-bottom: 10px;
}
.dialog .notice {
  margin-top: 12px;
}

.addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}
.addon.on {
  border-color: var(--rail);
  background: #eef4e9;
}
.chip.off {
  opacity: 0.55;
  text-decoration: line-through;
}
.checkrow {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  margin: 6px 0 !important;
}
.checkrow input {
  width: auto !important;
  margin: 0 !important;
}
.optrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px auto auto auto;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}
.optrow input {
  padding: 9px !important;
}
.itemchecks {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px 10px;
}
.menu-price small {
  margin-left: auto;
  margin-right: 8px;
  font-weight: 600;
}
.dialog {
  max-width: 520px;
}

.ailayout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.aiside {
  max-height: 72vh;
  overflow: auto;
}
.aiconv {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border-radius: 9px;
  padding: 10px;
  color: var(--ink);
}
.aiconv b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aiconv.on,
.aiconv:hover {
  background: #eef4e9;
}
.aichat {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.chatbox {
  flex: 1;
  overflow: auto;
  max-height: 62vh;
  padding: 4px;
}
.bubble {
  padding: 12px 15px;
  border-radius: 14px;
  margin: 10px 0;
  max-width: 88%;
  font-size: 15px;
  line-height: 1.5;
}
.bubble p {
  margin: 0 0 8px;
}
.bubble p:last-child {
  margin: 0;
}
.bubble ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.bubble h3 {
  margin: 8px 0 4px;
}
.bubble.me {
  background: var(--rail);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: #f3f5ef;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble.thinking {
  color: var(--muted);
  font-style: italic;
}
.aitools {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 2px 0;
}
.aiinput {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}
.aiinput textarea {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}
.aiaction {
  margin: 8px 0;
}
.draftgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.draft {
  white-space: pre-wrap;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  max-height: 320px;
  overflow: auto;
}
@media (max-width: 800px) {
  .ailayout {
    grid-template-columns: 1fr;
  }
  .aiside {
    max-height: 180px;
  }
  .draftgrid {
    grid-template-columns: 1fr;
  }
  .bubble {
    max-width: 96%;
  }
}

.aiprov {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.aiprov .field {
  margin: 0;
  min-width: 260px;
}
.aiprov .tag {
  margin-top: 6px;
}
.aimeta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.login.setup {
  width: min(620px, calc(100% - 32px));
  margin: 5vh auto;
}
.login.setup h3 {
  margin: 14px 0 4px;
}

.cred {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
}
.cred code {
  flex: 1;
  background: #f3f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  word-break: break-all;
}

/* Branding: colours come from --rail/--accent; text colour adapts via --on-rail/--on-accent */
:root {
  --on-rail: #ffffff;
  --on-accent: #ffffff;
}
.btn {
  color: var(--on-rail);
}
.btn.accent {
  color: var(--on-accent);
}
.sidebar {
  color: var(--on-rail);
}
.nav button,
.mobilebar button {
  color: color-mix(in srgb, var(--on-rail) 78%, transparent);
}
.nav button.active,
.mobilebar button.active {
  background: color-mix(in srgb, var(--rail) 70%, white);
  color: var(--on-rail);
}
.nav button:hover {
  background: color-mix(in srgb, var(--rail) 82%, white);
}
.nav-caption,
.sidebar .brand small {
  color: color-mix(in srgb, var(--on-rail) 62%, transparent);
}
.sidefoot {
  border-top-color: color-mix(in srgb, var(--on-rail) 25%, transparent);
}
.chip.active {
  color: var(--on-rail);
}
.bubble.me {
  color: var(--on-rail);
}
.guesthero {
  background: var(--rail);
  color: var(--on-rail);
}
.guesthero p {
  color: color-mix(in srgb, var(--on-rail) 78%, transparent);
}
.toast {
  background: var(--rail);
  color: var(--on-rail);
}
.logo {
  overflow: hidden;
  flex: 0 0 45px;
}
.logo.has-img {
  background: #fff;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top .brand .logo {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
  font-size: 17px;
}
.brandrow {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.brandpreview {
  width: 230px;
  background: var(--rail);
  color: var(--on-rail);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brandpreview .brand {
  padding: 0;
}
.brandpreview small {
  color: color-mix(in srgb, var(--on-rail) 62%, transparent);
}
.brandpreview .btn.accent {
  background: var(--accent);
  color: var(--on-accent);
}
.field input[type="color"] {
  height: 46px;
  padding: 4px;
  cursor: pointer;
}
.notice[hidden] {
  display: none;
}

/* ---------- Menu item details: food type marker and badges ---------- */
.diet {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid;
  border-radius: 3px;
  position: relative;
  margin-right: 6px;
  vertical-align: -2px;
  flex: 0 0 14px;
}
.diet::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: currentColor;
}
.diet-veg,
.diet-vegan {
  color: #178a3e;
}
.diet-nonveg {
  color: #a8322d;
}
.diet-nonveg::after {
  border-radius: 0;
  inset: auto;
  left: 1.5px;
  right: 1.5px;
  top: 2px;
  bottom: 2.5px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.diet-egg {
  color: #c98a12;
}
.mtags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}
.mtag {
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 7px;
  background: #eef1ea;
  color: #3d5446;
}
.mtag-bestseller {
  background: #fff1d6;
  color: #8a5a00;
}
.mtag-chef {
  background: #efe6fb;
  color: #5b3e93;
}
.mtag-new {
  background: #e3f1fb;
  color: #1d5f8a;
}
.mtag-spicy {
  background: #fde6e3;
  color: #a33e38;
}
.field textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  resize: vertical;
}

/* ---------- Staff: guest requests ---------- */
.bell {
  position: relative;
  background: #fff4e3;
  border: 1px solid #efd8b9;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 16px;
  animation: ring 1.6s ease-in-out infinite;
}
.bell b {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  border-radius: 20px;
  padding: 1px 6px;
}
@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(12deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(6deg);
  }
  40% {
    transform: rotate(0);
  }
}
.reqstrip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.req {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8ec;
  border: 1px solid #f0d6ad;
  border-left: 5px solid #e09b2d;
  border-radius: 12px;
  padding: 10px 12px;
}
.req > div {
  flex: 1;
  min-width: 0;
}
.req small {
  display: block;
  color: var(--muted);
}
.req-ic {
  font-size: 22px;
}
.req-bill {
  border-left-color: #3d7bd9;
  background: #f1f6fe;
  border-color: #cddff8;
}
.req-paid {
  border-left-color: #1d9a52;
  background: #eef9f1;
  border-color: #c8ead4;
}
.table-tile.calling {
  outline: 3px solid #e09b2d;
  outline-offset: 1px;
}

/* ---------- Bill (on screen; print styles live in printReceipt) ---------- */
.receipt {
  font-size: 14px;
}
.rc-head {
  text-align: center;
  border-bottom: 1px dashed #b9c2b8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.rc-head img {
  max-height: 56px;
  max-width: 50%;
  display: block;
  margin: 0 auto 6px;
}
.rc-head h2 {
  margin: 0;
}
.rc-head p {
  margin: 1px 0;
  color: var(--muted);
  font-size: 13px;
}
.rc-tag {
  font-style: italic;
}
.rc-kind {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink) !important;
  margin-top: 4px !important;
}
.rc-meta {
  border-bottom: 1px dashed #b9c2b8;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.rc-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin: 2px 0;
}
.rc-meta span {
  color: var(--muted);
}
.rc-items {
  border-bottom: 1px dashed #b9c2b8;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.rc-ih,
.rc-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: start;
}
.rc-ih {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 4px;
}
.rc-item {
  padding: 5px 0;
}
.rc-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.rc-ih span:nth-child(n + 2),
.rc-item span:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}
.receipt .due {
  font-weight: 800;
  color: #a33e38;
}
.rc-pay {
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  border: 1px dashed #b9c2b8;
  border-radius: 10px;
}
.rc-pay img {
  width: 150px;
  display: block;
  margin: 6px auto;
}
.rc-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- Guest table page ---------- */
.guest-only {
  background: #f6f4ef;
}
.g {
  padding-bottom: 96px;
}
.g-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--rail);
  color: var(--on-rail);
}
.g-head .brand small {
  color: color-mix(in srgb, var(--on-rail) 70%, transparent);
}
.g-head .logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
  font-size: 18px;
}
.glive {
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--on-rail) 16%, transparent);
  padding: 5px 10px;
  border-radius: 20px;
}
.g-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
}
.g .guesthero {
  padding: 18px;
  margin-bottom: 12px;
}
.g .guesthero h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}
.gnotice {
  margin-top: 10px !important;
  font-size: 13px;
  font-weight: 600;
  background: color-mix(in srgb, var(--on-rail) 12%, transparent);
  border-radius: 9px;
  padding: 7px 10px;
  display: inline-block;
}
.gcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.gcard h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.gcard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.gorder {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.gorder:first-of-type {
  border-top: 0;
}
.gorder-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.gorder p {
  margin: 6px 0 0;
  font-size: 14px;
}
.gstatus {
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 12px;
  background: #eef1ea;
  color: #3d5446;
}
.gstatus.s-PREPARING {
  background: #fff1d6;
  color: #8a5a00;
}
.gstatus.s-READY {
  background: #e3f6e9;
  color: #17703a;
}
.gstatus.s-SERVED {
  background: #eef1ea;
  color: #68776e;
}
.gsteps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 7px;
}
.gsteps i {
  height: 4px;
  border-radius: 4px;
  background: #e6e8e1;
}
.gsteps i.on {
  background: var(--accent);
}
.gbill {
  margin: 8px 0 0;
  font-weight: 700;
}
.ghelps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ghelp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafaf7;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}
.ghelp span {
  font-size: 22px;
}
.ghelp.sent {
  background: #eef9f1;
  border-color: #c8ead4;
  color: #17703a;
}
.ghelp.wide {
  width: 100%;
  flex-direction: row;
  justify-content: center;
  margin-top: 8px;
  font-size: 14px;
}
.gpay {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 750;
  font-size: 15px;
}
.gok {
  margin-top: 8px !important;
  font-weight: 650;
  color: #17703a;
}
.center {
  text-align: center;
}
.gjoin {
  display: flex;
  gap: 8px;
}
.gjoin input {
  flex: 1;
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.gjoin .gpay {
  width: auto;
  margin: 0;
  padding: 10px 16px;
}
.gmenu {
  margin-top: 6px;
}
.gtools {
  position: sticky;
  top: 58px;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f6f4ef;
  padding: 8px 0;
}
.gtools .search {
  margin: 0;
  flex: 1;
}
.gveg {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
}
.gveg input {
  margin: 0 4px 0 0;
}
.gcats {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gcats .chip {
  flex: 0 0 auto;
}
.gitem {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}
.gitem-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.gitem-name {
  display: flex;
  align-items: center;
}
.gitem-name b {
  font-size: 16px;
}
.gitem-price {
  font-weight: 700;
  margin-top: 2px;
}
.gitem-desc {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gitem-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  flex: 0 0 104px;
}
.gitem-pic {
  width: 96px;
  height: 80px;
  border-radius: 12px;
  background: #f1ebde;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.gadd,
.gstep {
  margin-top: -14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px #0001;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 800;
  min-width: 84px;
  padding: 7px 10px;
  font-size: 13px;
}
.gstep {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
}
.gstep button {
  background: none;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  padding: 0 6px;
}
.gitem-side small {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}
.gcartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 9;
  max-width: 736px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  box-shadow: 0 8px 24px #0003;
}
.gnote {
  margin: 6px 0 0 !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  width: 100%;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.pick-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pick-pic {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #f1ebde;
  display: grid;
  place-items: center;
  font-size: 34px;
  flex: 0 0 64px;
}
.pick-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
}
.pick-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}
/* Bottom sheet on phones for the guest page */
.modal.sheet {
  align-items: end;
  padding: 0;
}
.modal.sheet .dialog {
  max-width: 640px;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  animation: up 0.22s ease-out;
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 801px) {
  .modal.sheet {
    align-items: center;
    padding: 16px;
  }
  .modal.sheet .dialog {
    border-radius: 18px;
  }
}
@media (max-width: 420px) {
  .ghelps {
    grid-template-columns: repeat(2, 1fr);
  }
  .gitem-side {
    width: 92px;
    flex-basis: 92px;
  }
  .gitem-pic {
    width: 86px;
    height: 72px;
  }
}
.gjoin input {
  min-width: 0;
  width: 100%;
}
.gjoin .gpay {
  flex: 0 0 auto;
  white-space: nowrap;
}
