.customer-app .checkout-contact-error {
  padding: 10px 12px;
  border: 1px solid #c85932;
  border-radius: 8px;
  color: #8b2914;
  background: #fff0e8;
  font-size: 13px;
}
.customer-app .brand {
  min-width: 0;
  max-width: min(40vw, 390px);
  flex: 0 1 auto;
  white-space: normal;
}
.customer-app .brand-icon {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
}
.customer-app .brand-icon.has-logo {
  background: transparent;
  box-shadow: none;
}
.customer-app .brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.customer-app .brand-copy {
  display: block;
  min-width: 0;
  overflow: hidden;
}
.customer-app .brand-name,
.customer-app .brand-tagline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .brand-name {
  font: inherit;
}
.customer-app .brand-tagline[hidden],
.customer-app .footer-tagline[hidden] {
  display: none;
}
.customer-app .footer-brand,
.customer-app .footer-tagline,
.customer-app .footer-name {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.customer-app .service-picker-brand {
  overflow: hidden;
  border-radius: 50%;
}
.customer-app .service-picker-brand img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.customer-app .menu-carousel {
  isolation: isolate;
}
.customer-app .menu-carousel::after {
  content: none;
}
.customer-app .menu-carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.customer-app .menu-carousel-slide[hidden] {
  display: none !important;
}
.customer-app .menu-carousel-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.customer-app .menu-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #26140aeb, #28140980 42%, transparent 78%);
  pointer-events: none;
}
.customer-app .menu-carousel-copy {
  position: absolute;
  z-index: 1;
  inset: auto auto 28px 38px;
  max-width: min(55%, 560px);
  color: #fff4df;
  overflow: hidden;
}
.customer-app .menu-carousel-copy h2 {
  margin: 0 0 10px;
  color: inherit;
  font: 400 clamp(27px, 4vw, 46px)/1.1 Caprasimo, Georgia, serif;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.customer-app .menu-carousel-copy p {
  margin: 0;
  color: #f3d8bc;
  font-size: 15px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.customer-app .menu-carousel-copy .hero-link {
  display: inline-block;
  margin-top: 13px;
  border-bottom: 1px solid #fdb45b;
  padding-bottom: 3px;
  color: #fff4df;
  font-weight: 800;
}
.customer-app .carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #2c1a12a8;
  color: #fff8ed;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.customer-app .carousel-previous {
  left: 14px;
}
.customer-app .carousel-next {
  right: 14px;
}
.customer-app .carousel-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 15px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.customer-app .carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff9;
  cursor: pointer;
  transition:
    width 140ms ease,
    background 140ms ease;
}
.customer-app .carousel-dot[aria-current='true'] {
  width: 25px;
  background: #fff;
}
@media (max-width: 650px) {
  .customer-app .menu-carousel-copy {
    inset: auto 30px 34px 20px;
    max-width: 75%;
  }
  .customer-app .menu-carousel-copy h2 {
    font-size: clamp(25px, 7vw, 35px);
  }
  .customer-app .menu-carousel-copy p {
    font-size: 13px;
  }
  .customer-app .carousel-arrow {
    width: 34px;
    height: 34px;
  }
  .customer-app .carousel-previous {
    left: 8px;
  }
  .customer-app .carousel-next {
    right: 8px;
  }
}
.customer-app dialog.service-picker-dialog {
  width: min(600px, calc(100% - 28px));
  padding: 30px;
  overflow: visible;
  text-align: center;
  border-radius: 22px;
}
.customer-app .service-picker {
  display: grid;
  justify-items: center;
  padding: 5px 2px 2px;
}
.customer-app .service-picker-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--orange);
  color: #fff8ed;
  font: 400 15px Caprasimo, Georgia, serif;
}
.customer-app .service-picker-brand.has-logo {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.customer-app .service-picker-kicker {
  margin: 12px 0 0;
  color: #a3652e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.customer-app .service-picker h2 {
  margin: 8px 0 0;
  font-size: 27px;
}
.customer-app .service-picker-copy {
  max-width: 390px;
  margin: 8px auto 22px;
}
.customer-app .service-picker-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.customer-app .service-choice {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  flex: 1 1 120px;
  max-width: 212px;
  min-height: 148px;
  padding: 16px 10px;
  border: 1px solid #ecd8bf;
  border-radius: 15px;
  background: #fffaf3;
  color: #502b1d;
  cursor: pointer;
  box-shadow: 0 5px 15px #502b1d0b;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}
.customer-app .service-choice:hover,
.customer-app .service-choice:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: #fff2df;
  outline: 2px solid #ed780055;
  outline-offset: 2px;
}
.customer-app .service-choice-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #f8ead7;
  color: #e86c10;
}
.customer-app .service-choice strong {
  font-size: 14px;
}
.customer-app .service-choice small {
  color: #8e705b;
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 520px) {
  .customer-app .brand {
    max-width: 42vw;
    gap: 7px;
  }
  .customer-app .brand-icon {
    width: 34px;
    height: 34px;
  }
  .customer-app .brand-tagline {
    font-size: 6px;
    letter-spacing: 0.25px;
  }
  .customer-app dialog.service-picker-dialog {
    padding: 26px 19px 20px;
  }
  .customer-app .service-picker h2 {
    max-width: 270px;
    font-size: 24px;
  }
  .customer-app .service-picker-copy {
    max-width: 290px;
    margin-bottom: 17px;
  }
  .customer-app .service-picker-options {
    gap: 9px;
  }
  .customer-app .service-choice {
    min-height: 132px;
    padding: 12px 8px;
  }
  .customer-app .service-choice-icon {
    width: 56px;
    height: 56px;
  }
  .customer-app .service-choice-icon svg {
    width: 36px;
    height: 36px;
  }
}
.owner-app #owner-order-alerts {
  padding: 10px 0;
}
.owner-app .owner-alert-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.owner-app .owner-alert-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.owner-app .owner-alert-controls select {
  width: auto;
  margin: 0;
  padding: 7px 10px;
}
.owner-app #owner-alert-test {
  border: 1px solid #d6b48e;
  border-radius: 8px;
  background: #fffaf3;
  padding: 8px 10px;
  color: #633619;
  cursor: pointer;
}
.owner-app #owner-new-order:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: 10px;
  background: #ffe0a6;
  color: #512900;
}
.owner-app #owner-alert-dismiss {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.owner-app .order-view-tabs,
.owner-app .order-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
}
.owner-app .order-view-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.owner-app .order-view-tabs button,
.owner-app .order-status-tabs button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf3;
  color: #6c4630;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.owner-app .order-view-tabs button[aria-selected='true'],
.owner-app .order-status-tabs button[aria-selected='true'] {
  background: #542c1c;
  color: #fff3dd;
  border-color: #542c1c;
}
.owner-app .order-status-tabs span,
.owner-app .order-view-tabs span {
  padding: 2px 7px;
  border-radius: 6px;
  background: #c7956133;
  font-size: 12px;
}
.owner-app .board.live-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
}
.owner-app .live-board .order-column {
  min-height: 190px;
  max-height: 72vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.owner-app .live-board .column-heading {
  position: sticky;
  top: -12px;
  z-index: 1;
  background: inherit;
  padding: 12px 0;
  margin: -12px 0 12px;
  font-size: 14px;
}
.owner-app .live-board .order-card {
  margin: 0 0 12px;
  padding: 18px;
  min-width: 0;
}
.owner-app .live-board .order-card time {
  font-size: 12px;
}
.owner-app .live-board .order-card ul {
  font-size: 14px;
  line-height: 1.6;
}
.owner-app .live-board .order-bottom {
  font-size: 14px;
}
.owner-app .queue-grid .queue-state {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
}
.owner-app .queue-empty {
  grid-column: 1 / -1;
  padding: 50px 16px;
}
.owner-app .history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.owner-app .history-toolbar h2 {
  margin-bottom: 6px;
}
.owner-app .history-search {
  min-width: min(100%, 280px);
  margin: 0;
}
.owner-app .history-search input {
  margin-bottom: 0;
}
.owner-app .history-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 13px;
}
.owner-app .history-pagination > span:first-child {
  margin-right: auto;
}
.owner-app .order-history-panel table {
  min-width: 850px;
}
.owner-app .order-history-panel thead th {
  position: sticky;
  top: 0;
}
.owner-app .order-history-panel .table-scroll {
  max-height: 65vh;
  overflow: auto;
}
.owner-app .report-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
}
.owner-app .report-controls label {
  flex: 1 1 155px;
  margin: 0;
  font-size: 13px;
}
.owner-app .report-controls select,
.owner-app .report-controls input {
  margin: 7px 0 0;
  min-height: 46px;
}
.owner-app .report-controls .button {
  margin: 0;
  min-height: 46px;
}
.owner-app .report-controls [hidden] {
  display: none;
}
.owner-app .report-filter-note {
  flex-basis: 100%;
  color: #92745e;
}
.owner-app .kpi-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.owner-app .kpi-secondary .stat {
  padding: 18px;
  align-items: start;
}
.owner-app .kpi-secondary .stat-icon {
  display: none;
}
.owner-app .kpi-secondary .stat strong {
  font-size: 26px;
}
.owner-app .report-tables .table-scroll {
  max-height: 380px;
  overflow: auto;
}
.owner-app .report-tables table {
  min-width: 560px;
}
@media (max-width: 1000px) {
  .owner-app .kpi-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .owner-app .report-controls label {
    flex-basis: 100%;
  }
  .owner-app .report-controls .button {
    flex: 1 1 auto;
  }
}
.owner-app .order-contact {
  padding: 14px;
  background: #c795611a;
  border-radius: 10px;
  margin: 14px 0;
}
.customer-app .checkout-contact {
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.customer-app .checkout-contact h3 {
  margin: 0 0 12px;
}
.customer-app .checkout-contact label {
  display: block;
  margin-bottom: 16px;
  color: var(--theme-ink, #502b1d);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.customer-app .checkout-contact input,
.customer-app .checkout-contact textarea,
.customer-app .fulfilment-form input,
.customer-app .fulfilment-form select {
  width: 100%;
  box-sizing: border-box;
  display: block;
  min-height: 50px;
  margin: 7px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--theme-line, #dbc7b1);
  border-radius: 11px;
  background: var(--theme-soft, #fffaf2);
  color: var(--theme-ink, #452215);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px #00000008;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.customer-app .checkout-contact input::placeholder,
.customer-app .checkout-contact textarea::placeholder {
  color: var(--theme-muted, #92745e);
  opacity: 0.85;
}
.customer-app .checkout-contact input:focus,
.customer-app .checkout-contact textarea:focus,
.customer-app .fulfilment-form input:focus,
.customer-app .fulfilment-form select:focus {
  outline: none;
  border-color: var(--theme-accent, #d77811);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #d77811), transparent 80%);
}
.customer-app .checkout-contact textarea {
  min-height: 90px;
  resize: vertical;
}
.customer-app .fulfilment-form label {
  display: block;
  margin: 16px 0;
}
.customer-app .fulfilment-form input,
.customer-app .fulfilment-form select {
  width: 100%;
  box-sizing: border-box;
}
.customer-app .fulfilment-form [hidden] {
  display: none;
}
.customer-ready-alert {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  align-items: center;
  padding: 17px;
  color: #fffaf0;
  background: #3e1d0d;
  border: 1px solid #f1bd61;
  border-radius: 16px;
  box-shadow: 0 16px 44px #1d0d0790;
}
.customer-ready-alert strong {
  font-size: 17px;
}
.customer-ready-alert span {
  grid-column: 1 / -1;
  color: #ffe5b8;
  line-height: 1.45;
}
.customer-ready-alert button {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #4a210d;
  background: #ffd486;
}
.customer-ready-alert button:last-child {
  grid-column: 2;
  grid-row: 1;
  padding: 3px 8px;
  color: #ffe5b8;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 700px) {
  .customer-ready-alert {
    right: 16px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 68px));
  }
}
@media (max-width: 700px) {
  .owner-app .board.queue-grid {
    grid-template-columns: 1fr;
  }
  .owner-app .order-status-tabs {
    padding-bottom: 12px;
  }
  .owner-app .order-status-tabs button {
    padding: 9px 12px;
    font-size: 13px;
  }
  .owner-app .history-search {
    width: 100%;
  }
}
.customer-app #toast,
.owner-app #toast {
  inset: auto auto max(24px, env(safe-area-inset-bottom)) 50%;
  margin: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(540px, calc(100vw - 32px));
  box-sizing: border-box;
  border: 1px solid #ffffff25;
  padding: 15px 20px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 8px 32px #00000040;
}
.customer-app #toast[data-in-dialog],
.owner-app #toast[data-in-dialog] {
  position: sticky;
  inset: 0 auto auto;
  transform: none;
  width: 100%;
  z-index: 100;
  margin-bottom: 16px;
}
.owner-app .report-section .report-controls {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  margin: 18px 0;
}
.owner-app .report-section .table-scroll {
  max-height: 440px;
  overflow: auto;
}
.owner-app .report-section table {
  min-width: 650px;
}
.owner-app .report-section .kpi-secondary {
  margin-top: 0;
}
.owner-app .data-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.owner-app .data-pagination[hidden],
.owner-app table tr[hidden],
.owner-app [data-paginate] > [hidden] {
  display: none !important;
}
.owner-app .data-pagination > span {
  margin-right: auto;
}
.owner-app .data-pagination label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.owner-app .data-pagination select {
  width: auto;
  min-width: 75px;
  margin: 0;
  padding: 8px;
}
.owner-app .data-pagination button {
  margin: 0;
  padding: 10px 14px;
}
.owner-app .order-card .order-print-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #60341b;
  background: #fffaf3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.owner-app .order-card .order-print-link:hover {
  background: #f4e7d5;
}
.owner-app .floor-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  color: #88715b;
  font-size: 14px;
}
.owner-app .floor-summary b {
  color: #452215;
  font-size: 18px;
  margin-right: 4px;
}
.owner-app .floor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.owner-app .floor-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.owner-app .floor-toolbar label {
  font-size: 12px;
  margin: 0;
  flex: 1;
}
.owner-app .floor-toolbar input,
.owner-app .floor-toolbar select {
  margin: 6px 0 0;
  padding: 12px;
}
.owner-app .floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
}
.owner-app .floor-table {
  text-align: left;
  display: grid;
  gap: 10px;
  border: 1px solid #e4d7c7;
  border-radius: 12px;
  background: #fffaf3;
  color: #8c7862;
  padding: 16px;
  min-height: 126px;
}
.owner-app .floor-table-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.owner-app .floor-table-top strong {
  font:
    700 25px/1 Manrope,
    sans-serif;
  color: #4e3525;
}
.owner-app .floor-table-top small {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #397051;
  background: #eaf2e5;
}
.owner-app .floor-table > span:nth-child(2) {
  font-size: 11px;
}
.owner-app .floor-table > b {
  font-size: 14px;
  color: #4e3525;
}
.owner-app .floor-table.occupied {
  background: #fff0d8;
  border-color: #e5b56e;
}
.owner-app .floor-table.occupied small {
  background: #f4d8ad;
  color: #99560e;
}
.owner-app .floor-table[aria-pressed='true'] {
  outline: 2px solid #bf7726;
  outline-offset: 2px;
}
.owner-app .floor-detail {
  position: sticky;
  top: 20px;
  padding: 22px;
}
.owner-app .floor-detail h2 {
  font-size: 24px;
}
.owner-app .floor-amount {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  margin: 18px 0;
}
.owner-app .floor-amount span {
  font-size: 12px;
  color: #88715b;
}
.owner-app .floor-amount strong {
  font:
    700 30px Manrope,
    sans-serif;
}
.owner-app .floor-detail .button {
  font-size: 13px;
  padding: 12px;
  margin-top: 8px;
}
.owner-app .floor-orders > button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  padding: 15px 0;
  font-size: 12px;
}
.owner-app .floor-orders small {
  display: block;
  margin-top: 4px;
  color: #947957;
}
.owner-app .table-card-preview {
  text-align: center;
}
.owner-app .table-card-qr svg {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
}
.owner-app .table-card-preview h3 {
  font-size: 16px;
}
.owner-app .table-card-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.owner-app .table-card-url {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (min-width: 901px) {
  .owner-app > aside > .logo {
    flex-shrink: 0;
  }
  .owner-app > aside #nav {
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    scrollbar-width: thin;
    flex: 1;
  }
  .owner-app > aside .aside-bottom {
    padding-top: 18px;
    flex-shrink: 0;
    font-size: 22px;
  }
}
@media (max-width: 1000px) {
  .owner-app .floor-workspace {
    grid-template-columns: 1fr;
  }
  .owner-app .floor-detail {
    position: static;
  }
}
.owner-app .table-cards-toolbar {
  max-width: 480px;
}
.owner-app .table-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.owner-app .table-unified-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3d8ca;
  background: #fffaf3;
  border-radius: 12px;
}
.owner-app .table-unified-card.occupied {
  border-color: #dfb36d;
  background: #fff4e4;
}
.owner-app .table-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
  border: 0;
  background: transparent;
}
.owner-app .table-card-heading h2 {
  margin: 0;
  color: #4d3220;
  font:
    700 15px/1.3 Manrope,
    sans-serif;
}
.owner-app .table-card-state {
  background: #e8f0e3;
  color: #397051;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
}
.owner-app .occupied .table-card-state {
  background: #f5dfba;
  color: #955914;
}
.owner-app .table-card-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.owner-app .table-card-inline-qr {
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1px solid #ece7df;
  border-radius: 5px;
  background: white;
  display: grid;
  place-items: center;
}
.owner-app .table-card-inline-qr svg {
  width: 108px;
  height: 108px;
  display: block;
}
.owner-app .table-card-inline-qr span {
  font-size: 11px;
  color: #8f8070;
}
.owner-app .table-card-balance {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.owner-app .table-card-balance small {
  color: #8a7560;
  font-size: 11px;
}
.owner-app .table-card-balance strong {
  color: #452c1c;
  font:
    700 23px/1.3 Manrope,
    sans-serif;
  overflow-wrap: anywhere;
}
.owner-app .table-card-balance > span {
  font-size: 10px;
  color: #8f7c66;
}
.owner-app .table-card-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  margin-top: 12px;
}
.owner-app #loyalty-rewards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(340px, 92%);
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #d18b43 #f3e8d9;
  padding: 8px 2px 14px;
  margin: 8px 0 12px;
  min-width: 0;
}
.owner-app .loyalty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.owner-app .loyalty-members-panel {
  min-width: 0;
}
.owner-app .loyalty-members-panel #member-search {
  max-width: 440px;
  margin-bottom: 18px;
}
.owner-app #loyalty-members-table td {
  vertical-align: top;
}
.owner-app #loyalty-members-table summary {
  cursor: pointer;
  white-space: nowrap;
}
.owner-app #loyalty-form > label:first-child {
  max-width: 260px;
}
.owner-app #loyalty-form,
.owner-app .loyalty-rewards-panel {
  min-width: 0;
}
.owner-app .loyalty-reward {
  min-width: 0;
  margin: 0;
  padding: 12px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
}
.owner-app .loyalty-reward legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 13px;
}
.owner-app .loyalty-reward label {
  min-width: 0;
  font-size: 12px;
  margin-bottom: 0;
}
.owner-app .loyalty-reward :is(input, select) {
  padding: 8px 10px;
  min-height: 38px;
  font-size: 13px;
  margin: 4px 0 10px;
}
.owner-app .loyalty-reward .field-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.owner-app .loyalty-reward-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.owner-app .loyalty-reward-footer label {
  flex: 1;
  min-width: 100px;
}
.owner-app #add-loyalty-reward {
  margin-bottom: 16px;
}
.owner-app .table-card-controls button,
.owner-app .table-card-controls a {
  min-width: 0;
  border: 1px solid #e69a46;
  background: #ffffff;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #843b08;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.owner-app .table-card-controls button:first-child {
  background: #ff8a00;
  border-color: #e47500;
  color: #3d210b;
  font-weight: 700;
}
.owner-app .table-card-controls button:not(:disabled):hover,
.owner-app .table-card-controls a:hover {
  background: #fff0d9;
  border-color: #c96700;
}
.owner-app .table-card-controls button:first-child:hover {
  background: #ff9c26;
}
.owner-app .table-card-controls :is(button, a):focus-visible {
  outline: 3px solid #a94c00;
  outline-offset: 3px;
}
.owner-app .table-card-controls button:disabled {
  background: #eee9e2;
  color: #8c8378;
  border-color: #dcd5cc;
  cursor: not-allowed;
}
.owner-app .table-card-order-list {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e9dac4;
  font-size: 11px;
}
.owner-app .table-card-order-list summary {
  cursor: pointer;
  color: #8b6745;
}
.owner-app .table-card-order-list button {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}
.owner-app .table-card-order-list small {
  display: block;
  margin-top: 3px;
  color: #947957;
}

/* Dine-in tab cards (DINE-IN-TABS.md): two even columns of actions. */
.owner-app .tab-card { text-align: left; }
.owner-app .tab-card .tab-card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.owner-app .tab-card .tab-card-actions :is(button, a) {
  min-height: 34px; display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; white-space: nowrap; font-size: 12px;
}
.owner-app .tab-card .tab-card-actions [data-tab-pay]:not(:disabled) {
  background: #1c6b57; border-color: #12493b; color: #fff;
}
.owner-app .tab-card .tab-move {
  grid-column: 1 / -1; justify-content: space-between; color: #843b08; font-size: 12px;
}
.owner-app .tab-card .tab-move select { flex: 1; max-width: 160px; font-size: 12px; }
.owner-app .tab-card .table-card-qr-fold .table-card-controls { grid-template-columns: 1fr; }

/* ── Floor / Orders / New order button (one screen per job) ── */
.owner-app .nav-new-order {
  width: 100%; justify-content: center; margin: 0 0 12px; padding: 11px 14px;
  border-radius: 12px; border: 1px solid #e76c00; color: #fff; font-weight: 800;
  background: linear-gradient(170deg, #ff8d0b, #ef7000); box-shadow: 0 3px 0 #c95b00;
}
.owner-app .nav-new-order:hover { background: linear-gradient(#ff971c, #ef7000); }
.owner-app .table-free { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; }
.owner-app .table-start {
  margin-top: 18px; min-height: 48px; border-radius: 10px; border: 1.5px dashed #e69a46;
  background: #fffaf3; color: #843b08; font: inherit; font-weight: 800; cursor: pointer;
}
.owner-app .table-start:hover { background: #fff0d9; border-style: solid; }
.owner-app .floor-waiting { color: #1c6b57; }
.owner-app a.bill-chip { text-decoration: none; }
.owner-app .table-qr-setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.owner-app .table-qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.owner-app .table-qr-card {
  display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 12px;
  border: 1px solid #e6d8c8; background: #fffaf3;
}
.owner-app .table-qr-card .table-card-inline-qr { width: 110px; height: 110px; }
.owner-app .table-qr-card .table-card-controls { grid-template-columns: 1fr 1fr; width: 100%; margin-top: 0; }
@media (max-width: 760px) {
  #phone-tabs .phone-new { color: #fff; background: linear-gradient(170deg, #ff8d0b, #ef7000); }
}
/* Guest orders from the table QR waiting for one Accept tap (simple mode). */
.owner-app .tab-card.tab-to-accept { border: 2px solid #e5322d; }
.owner-app .tab-to-accept .tab-card-state { color: #b72e19; }
.owner-app .tab-accept {
  width: 100%; min-height: 42px; margin: 4px 0 8px; border-radius: 10px; border: 1px solid #12493b;
  background: #1c6b57; color: #fff; font: inherit; font-weight: 800; cursor: pointer;
}
/* Simple mode: three columns (no "Awaiting payment"). */
.owner-app .board.live-board:has(> .order-column:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.owner-app .order-card .quick-pay { display: block; margin-top: 8px; color: #1c6b57; font-weight: 700; }
/* Order drawer header: plain row, title left, close right. */
.owner-app .pos-drawer-head, .pos-drawer-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 0 0 12px; background: none; border-bottom: 1px solid #e6d8c8;
}
.pos-drawer-head > div { display: block; }

/* ── Quick list: every open order on one card (simple mode) ── */
.owner-app .quick-list { display: grid; gap: 10px; }
.owner-app .quick-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid #e6d8c8; background: #fffaf3;
}
.owner-app .quick-card.needs-accept { border: 2px solid #e5322d; }
.owner-app .quick-card.asked { border: 2px solid #1c6b57; }
.owner-app .quick-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.owner-app .quick-title strong { font-size: 17px; color: #452215; }
.owner-app .quick-title > span:not(.quick-state) { color: #8a6f5b; font-weight: 700; }
.owner-app .quick-state {
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: #ece7e1; color: #6d5a4c;
}
.owner-app .quick-state.accept { background: #fde7e2; color: #b72e19; }
.owner-app .quick-state.ready, .owner-app .quick-state.bill { background: #e3f4ec; color: #1c6b57; }
.owner-app .quick-items { margin: 6px 0 4px; color: #5a2a17; font-size: 13.5px; }
.owner-app .quick-number {
  padding: 0; border: 0; background: none; color: #a0663a; font: inherit; font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.owner-app .quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.owner-app .quick-total { font-size: 19px; color: #452215; margin-right: 6px; }
.owner-app .quick-actions .button { padding: 10px 14px; font-size: 13.5px; }
.owner-app .quick-pay-button { background: #1c6b57 !important; border-color: #12493b !important; box-shadow: 0 2px 0 #0e3a2f !important; }
.owner-app .pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.owner-app .pay-methods .button { min-height: 56px; font-size: 17px; justify-content: center; }
.owner-app .pay-methods .pay-member { grid-column: 1 / -1; font-size: 13px; }
.owner-app .pay-note { font-size: 12px; }
@media (max-width: 760px) {
  .owner-app .quick-card { grid-template-columns: minmax(0, 1fr); }
  .owner-app .quick-actions { justify-content: stretch; }
  .owner-app .quick-actions .button { flex: 1; }
}

/* Take payment: UPI QR for the customer, and the bill. */
.owner-app .pay-extras { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.owner-app .pay-extras .button { flex: 1; justify-content: center; text-align: center; }
.owner-app .pay-qr { display: grid; justify-items: center; gap: 6px; margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--line, #e7dccd); border-radius: 14px; text-align: center; font-size: 13px; }
.owner-app .pay-qr img { width: min(240px, 70vw); height: auto; image-rendering: pixelated; }
.owner-app .quick-actions .quick-bill-link { gap: 6px; justify-content: center; color: #9a4a12; border-color: #e8b98c; background: linear-gradient(#fffaf3, #fdebd6); }
.owner-app .quick-actions .quick-bill-link:hover { background: #fde3c4; }
#toast .toast-action { color: inherit; font-weight: 800; text-decoration: underline; margin-left: 6px; }

/* Orders page: Open | History tabs. */
.owner-app .order-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; background: rgba(120, 72, 40, 0.08); border-radius: 999px; }
.owner-app .order-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: inherit; text-decoration: none; opacity: 0.7; }
.owner-app .order-tabs a[aria-current='page'] { background: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(60, 30, 10, 0.15); }
.owner-app .order-tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent, #f07d12); color: #fff; font-size: 12px; text-align: center; }
@media (max-width: 640px) { .owner-app .order-tabs { display: flex; } .owner-app .order-tabs a { flex: 1; justify-content: center; } }

/* Customer notes on the Orders and Floor cards: easy to spot mid-service. */
.owner-app .quick-note { display: flex; gap: 6px; align-items: baseline; margin: 6px 0 4px; padding: 6px 10px; border-left: 4px solid #d45b00; border-radius: 6px; background: #fff0d9; color: #542300; font-size: 13px; font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.owner-app .quick-note span { color: #a34400; }

/* Editing an open order from its popup. */
.owner-app .order-detail-line-end { display: grid; justify-items: end; gap: 6px; }
.owner-app .order-remove-item { padding: 4px 10px; border: 1px solid #e3b4a6; border-radius: 999px; background: #fff; color: #b0361c; font-size: 12px; font-weight: 800; cursor: pointer; }
.owner-app .order-remove-item:hover { background: #fdeee9; }
.owner-app .order-remove-item:disabled { opacity: 0.5; cursor: wait; }
.owner-app .order-cancel-all { margin: 6px 0 2px; }
.owner-app .quick-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-app .quick-edit { padding: 0; border: 0; background: none; color: #b0361c; font-size: 12.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Staff language switch in the header: shows the other language's name. */
.owner-app .staff-language {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 14px; margin-right: 8px;
  border: 1px solid #e3cdb4; border-radius: 999px;
  background: #fff8ef; color: #7a3a10;
  font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.owner-app .staff-language:hover { background: #fdebd6; }
@media (max-width: 760px) { .owner-app .staff-language { min-height: 38px; padding: 6px 12px; margin-right: 4px; font-size: 13px; } }
/* Devanagari reads small at Latin sizes; give it room. */
html[lang='hi'] .owner-app, html[lang='hi'] body.owner-app { font-family: 'Nunito Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif; }

/* ── Insights ── */
.owner-app .insight-periods { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: rgba(120, 72, 40, 0.08); border-radius: 999px; flex-wrap: wrap; }
.owner-app .insight-periods button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 700; font-size: 14px; cursor: pointer; opacity: 0.7; }
.owner-app .insight-periods button[aria-pressed='true'] { background: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(60, 30, 10, 0.15); }
.owner-app .insight-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.owner-app .insight-card { padding: 16px; border: 1px solid #ead9c4; border-radius: 14px; background: #fffdf9; display: grid; gap: 4px; min-width: 0; }
.owner-app .insight-card span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #8a6f5b; }
.owner-app .insight-card strong { font-size: 22px; font-weight: 900; color: #452215; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-app .insight-card small { font-size: 13px; font-weight: 700; color: #8a6f5b; }
.owner-app .insight-card small.up, .owner-app .insight-trend.up { color: #1c6b57; }
.owner-app .insight-card small.down, .owner-app .insight-trend.down { color: #b0361c; }
.owner-app .insight-tips { display: grid; gap: 10px; }
.owner-app .insight-tips h2 { margin: 0 0 4px; }
.owner-app .insight-tip { padding: 12px 14px; border-radius: 10px; border-left: 5px solid #c9a27c; background: #fff8ef; }
.owner-app .insight-tip.good { border-left-color: #1c6b57; background: #edf7f2; }
.owner-app .insight-tip.warn { border-left-color: #d45b00; background: #fff0d9; }
.owner-app .insight-tip.info { border-left-color: #3a6ea5; background: #eef4fb; }
.owner-app .insight-tip strong { display: block; font-size: 15px; color: #452215; }
.owner-app .insight-tip p { margin: 3px 0 0; font-size: 13.5px; color: #5e4636; }
.owner-app .insight-dishes td { vertical-align: middle; }
.owner-app .insight-dish { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.owner-app .insight-dish img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.owner-app .insight-share { display: block; width: 110px; height: 8px; border-radius: 99px; background: #f1e4d4; overflow: hidden; }
.owner-app .insight-share i { display: block; height: 100%; background: #f07d12; border-radius: 99px; }
.owner-app .insight-trend { font-weight: 800; font-size: 13px; }
.owner-app .insight-trend.flat { color: #8a6f5b; }
.owner-app .insight-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 190px; margin-top: 10px; }
.owner-app .insight-weekdays > div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 4px; }
.owner-app .insight-bar { display: flex; align-items: flex-end; height: 100%; }
.owner-app .insight-bar i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(#ff9b2f, #ef7000); }
.owner-app .insight-weekdays b { font-size: 12px; }
.owner-app .insight-weekdays small { font-size: 11px; color: #8a6f5b; }
.owner-app .insight-heat { display: grid; gap: 3px; align-items: center; margin-top: 10px; overflow-x: auto; }
.owner-app .insight-heat small { font-size: 10px; color: #8a6f5b; text-align: center; white-space: nowrap; }
.owner-app .insight-heat b { font-size: 12px; }
.owner-app .insight-heat i { display: block; height: 20px; border-radius: 4px; background: #d45b00; }
.owner-app .insight-days { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 10px; }
.owner-app .insight-days span { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 4px; }
.owner-app .insight-days i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: #f0a050; }
.owner-app .insight-days span:hover i { background: #d45b00; }
.owner-app .insight-unsold { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-app .insight-unsold span { padding: 6px 12px; border-radius: 999px; background: #fdeee9; color: #8a2a12; font-weight: 700; font-size: 13px; }
@media (max-width: 900px) { .owner-app .insight-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .owner-app .insight-share { width: 60px; } .owner-app .insight-card strong { font-size: 18px; } }

/* ── Stock ── */
.owner-app .stock-alert { display: block; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; border-left: 5px solid #d45b00; background: #fff0d9; color: #542300; font-size: 14px; line-height: 1.5; text-decoration: none; }
.owner-app .stock-alert-link span { font-weight: 800; color: #a34400; white-space: nowrap; }
.owner-app .stock-list { display: grid; gap: 10px; }
.owner-app .stock-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #ead9c4; border-left: 5px solid #1c6b57; border-radius: 12px; background: #fffdf9; }
.owner-app .stock-item.low { border-left-color: #e8a33a; }
.owner-app .stock-item.out { border-left-color: #c43a1d; background: #fff6f3; }
.owner-app .stock-item-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.owner-app .stock-item-main strong { font-size: 16px; }
.owner-app .stock-item-main small { flex-basis: 100%; color: #8a6f5b; font-size: 12.5px; }
.owner-app .stock-pill { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #e6f2ea; color: #1f6b43; }
.owner-app .stock-pill.low { background: #fdf0d8; color: #94580a; }
.owner-app .stock-pill.out { background: #fde2dc; color: #a4280f; }
.owner-app .stock-level { font-size: 20px; font-weight: 900; color: #452215; white-space: nowrap; }
.owner-app .stock-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.owner-app .stock-category { margin: 18px 0 8px; font-size: 15px; }
.owner-app .stock-category:first-child { margin-top: 0; }
.owner-app .stock-recipes { display: grid; gap: 8px; }
.owner-app .stock-recipe { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ead9c4; border-radius: 10px; background: #fffdf9; }
.owner-app .stock-recipe.empty-recipe { background: transparent; border-style: dashed; }
.owner-app .stock-recipe strong { display: block; }
.owner-app .stock-recipe small { color: #8a6f5b; font-size: 12.5px; }
.owner-app .stock-plates { padding: 3px 10px; border-radius: 999px; background: #e6f2ea; color: #1f6b43; font-size: 12px; font-weight: 800; white-space: nowrap; }
.owner-app .stock-plates.low { background: #fdf0d8; color: #94580a; }
.owner-app .stock-plates.out { background: #fde2dc; color: #a4280f; }
.owner-app .stock-history td.down { color: #b0361c; font-weight: 800; }
.owner-app .stock-history td.up { color: #1c6b57; font-weight: 800; }
.owner-app .stock-form { display: grid; gap: 12px; }
.owner-app .stock-form label { display: grid; gap: 6px; }
.owner-app .stock-amount { display: flex; align-items: center; gap: 8px; }
.owner-app .stock-amount input { flex: 1; }
.owner-app .recipe-block { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid #ead9c4; border-radius: 10px; }
.owner-app .recipe-block legend { padding: 0 6px; font-weight: 800; }
.owner-app .recipe-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px 28px; gap: 8px; align-items: center; }
.owner-app .recipe-row b { font-size: 13px; color: #8a6f5b; }
.owner-app .recipe-size-toggle { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.owner-app .recipe-size-toggle input { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .owner-app .stock-item { grid-template-columns: minmax(0, 1fr) auto; }
  .owner-app .stock-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .owner-app .recipe-row { grid-template-columns: minmax(0, 1fr) 80px 32px 24px; }
}
.owner-app .table-qr-setup-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* WhatsApp support: bottom-right, above the phone tab bar. */
.support-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: #25d366; color: #fff; font: 800 14px/1 'Nunito Sans', sans-serif;
  text-decoration: none; box-shadow: 0 6px 18px rgba(18, 140, 70, 0.35); transition: transform .15s ease, box-shadow .15s ease; }
.support-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18, 140, 70, 0.4); }
.support-whatsapp:focus-visible { outline: 3px solid #0b6b38; outline-offset: 3px; }
@media (max-width: 760px) {
  .support-whatsapp { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); padding: 11px; }
  .support-whatsapp span { display: none; }
}
@media print { .support-whatsapp { display: none; } }

/* ── Day closing ── */
.owner-app .closing-day { display: grid; gap: 4px; font-size: 12px; font-weight: 800; }
.owner-app .closing-day input { min-width: 170px; }
.owner-app .closing-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2f6b55, #1c4f3f); color: #fff; border: 0; }
.owner-app .closing-hero span { font-size: 13px; font-weight: 800; opacity: .9; text-transform: uppercase; letter-spacing: .5px; }
.owner-app .closing-hero strong { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; margin: 4px 0; }
.owner-app .closing-hero small { font-size: 14px; opacity: .9; }
.owner-app .closing-done { margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 800; }
.owner-app .closing-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.owner-app .closing-method { padding: 14px 16px; border-radius: 14px; border: 1px solid #ead9c4; background: #fffdf9; display: grid; gap: 2px; }
.owner-app .closing-method span { font-size: 13px; font-weight: 800; color: #8a6f5b; }
.owner-app .closing-method strong { font-size: 24px; font-weight: 900; color: #452215; }
.owner-app .closing-method small { color: #8a6f5b; font-weight: 700; }
.owner-app .closing-method.cash { border-top: 4px solid #2f8f5b; }
.owner-app .closing-method.upi { border-top: 4px solid #5b4fcf; }
.owner-app .closing-method.card { border-top: 4px solid #2f6fb0; }
.owner-app .closing-form { display: grid; gap: 12px; max-width: 520px; }
.owner-app .closing-form label { display: grid; gap: 6px; }
.owner-app .closing-money { display: flex; align-items: center; gap: 8px; }
.owner-app .closing-money b { font-size: 18px; color: #8a6f5b; }
.owner-app .closing-money input { flex: 1; font-size: 18px; font-weight: 800; }
.owner-app .closing-expected { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e3cdb4; font-weight: 700; }
.owner-app .closing-expected.total { font-size: 17px; font-weight: 900; border-bottom: 0; }
.owner-app .closing-result { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 17px; font-weight: 900; }
.owner-app .closing-result:empty { display: none; }
.owner-app .closing-result.good, .owner-app .closing-pill.good { background: #e3f4ea; color: #1c6b43; }
.owner-app .closing-result.bad, .owner-app .closing-pill.bad { background: #fde2dc; color: #a4280f; }
.owner-app .closing-result.warn, .owner-app .closing-pill.warn { background: #fdf0d8; color: #94580a; }
.owner-app .closing-pill { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.owner-app #closing-share { background: #25d366 !important; border-color: #1da851 !important; color: #fff !important; }
.owner-app .closing-facts { display: grid; gap: 0; margin: 0; }
.owner-app .closing-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1e4d4; }
.owner-app .closing-facts dt { color: #8a6f5b; font-weight: 700; }
.owner-app .closing-facts dd { margin: 0; font-weight: 800; }
.owner-app .closing-facts .warn dd, .owner-app .closing-facts .warn dd a { color: #b0361c; }
.owner-app .closing-dishes { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.owner-app .closing-dishes li span { display: inline-block; min-width: 70%; font-weight: 700; }
.owner-app .closing-dishes li b { float: right; }
@media (max-width: 640px) { .owner-app .closing-hero strong { font-size: 32px; } }

/* Brand colour picker (Restaurant brand). */
.owner-app .brand-color { margin: 14px 0; padding: 12px 14px; border: 1px solid #ead9c4; border-radius: 12px; display: grid; gap: 10px; }
.owner-app .brand-color legend { padding: 0 6px; font-weight: 800; }
.owner-app .brand-color .hint { margin: 0; }
.owner-app .brand-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owner-app .brand-swatch { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 3px solid #fff;
  background: var(--swatch); box-shadow: 0 0 0 1px #d9c8b4; cursor: pointer; }
.owner-app .brand-swatch[aria-checked='true'] { box-shadow: 0 0 0 3px #452215; }
.owner-app .brand-swatch.custom { display: grid; place-items: center; overflow: hidden;
  background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.owner-app .brand-swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.owner-app .brand-swatch.custom span { color: #fff; font-weight: 900; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.owner-app .brand-color-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.owner-app .brand-color-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.owner-app .brand-color-chip::before { content: ''; width: 22px; height: 22px; border-radius: 6px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* The real printed card, scaled down (qr-cards.js cardThumbnail). An A6
   card is 397 × 559 CSS pixels; --scale sets how big it shows. */
.owner-app .qr-card-thumb { --scale: 0.4; position: relative; display: block; width: calc(397px * var(--scale)); height: calc(559px * var(--scale));
  overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(69, 34, 21, 0.16), 0 0 0 1px rgba(69, 34, 21, 0.08); }
.owner-app .qr-card-thumb iframe { position: absolute; left: 0; top: 0; width: 397px; height: 559px; border: 0; transform: scale(var(--scale)); transform-origin: 0 0; pointer-events: none; }
.owner-app .table-qr-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.owner-app .table-qr-card .table-card-inline-qr { width: auto; height: auto; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.owner-app .table-qr-card .table-card-inline-qr:hover .qr-card-thumb { box-shadow: 0 8px 22px rgba(69, 34, 21, 0.24), 0 0 0 2px #f07d12; }
.owner-app .table-card-large { display: flex; justify-content: center; margin: 8px 0; }
.owner-app .table-card-large .qr-card-thumb { --scale: 0.72; }
.owner-app .review-qr-thumb { display: flex; justify-content: center; margin-bottom: 12px; }
.owner-app .review-qr-thumb .qr-card-thumb { --scale: 0.5; }
@media (max-width: 640px) { .owner-app .table-card-large .qr-card-thumb { --scale: 0.62; } }

/* Google review QR: card on the left, its actions in a column beside it. */
.owner-app .review-qr-output { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.owner-app .review-qr-output .review-qr-thumb { margin: 0; flex: none; }
.owner-app .review-qr-side { flex: 1; min-width: 170px; max-width: 320px; display: grid; gap: 10px; align-content: start; }
.owner-app .review-qr-side .button { width: 100%; justify-content: center; text-align: center; }
.owner-app .review-qr-ready { margin: 2px 0 0; font-size: 17px; font-weight: 900; color: #1c6b57; }
.owner-app .review-qr-side .subtle { margin: -4px 0 4px; }
.owner-app .review-qr-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
@media (max-width: 760px) { .owner-app .review-qr-output { justify-content: center; } .owner-app .review-qr-side { min-width: 100%; } }

/* Dine-in bill: Pay bill and View bill share one full-width row. */
.customer-app .tab-pay .bill-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.customer-app .tab-pay .bill-actions > * { width: 100%; justify-content: center; text-align: center; }

/* Profit: ingredient prices, recipe profit, Insights profit table and weekly report. */
.owner-app .stock-no-price { color: #b0361c; font-weight: 700; }
.owner-app .stock-profits { grid-column: 1 / -1; display: grid; gap: 4px; }
.owner-app .stock-size-profit { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12.5px; }
.owner-app .stock-profit { font-size: 12.5px; color: #5e4636; }
.owner-app .stock-profit b { color: #1c6b57; }
.owner-app .stock-profit.warn b { color: #94580a; }
.owner-app .stock-profit.bad b { color: #a4280f; }
.owner-app .stock-profit.muted { color: #8a6f5b; font-style: italic; }
.owner-app .insight-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.owner-app .insight-card small a { color: #a34400; font-weight: 800; }
.owner-app .insight-cost { padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: 12.5px; }
.owner-app .insight-cost.good { background: #e3f4ea; color: #1c6b43; }
.owner-app .insight-cost.warn { background: #fdf0d8; color: #94580a; }
.owner-app .insight-cost.bad { background: #fde2dc; color: #a4280f; }
.owner-app .insight-weekly { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
  border-left: 5px solid #25d366; }
.owner-app .insight-weekly h2 { margin: 0 0 2px; }
.owner-app .insight-weekly p { margin: 0; }
.owner-app #insight-weekly-send { background: #25d366 !important; border-color: #1da851 !important; color: #fff !important; }
.owner-app .insight-weekly-preview { flex-basis: 100%; }
.owner-app .insight-weekly-preview summary { cursor: pointer; font-weight: 700; color: #8a6f5b; }
.owner-app .insight-weekly-preview pre { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: #e7f6ec; white-space: pre-wrap;
  font: 500 13px/1.5 'Nunito Sans', sans-serif; color: #1f3b2b; }

/* Recipe list: amounts and plates left, per size. */
.owner-app .stock-recipe .stock-portion { display: block; color: #8a6f5b; font-size: 12.5px; }
.owner-app .stock-recipe .stock-portion b { color: #5e4636; }
.owner-app .stock-left { display: grid; justify-items: end; gap: 3px; }
.owner-app .stock-left small { color: #8a6f5b; font-size: 11.5px; text-align: right; }
@media (max-width: 700px) { .owner-app .stock-left { justify-items: start; grid-column: 1 / -1; } .owner-app .stock-left small { text-align: left; } }

/* Day closing top dishes, with their photos like the Overview. */
.owner-app .closing-dishes { list-style: none; padding: 0; gap: 10px; }
.owner-app .closing-dishes li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.owner-app .closing-dishes img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f1e7da; }
.owner-app .closing-dishes li span { display: grid; min-width: 0; }
.owner-app .closing-dishes li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-app .closing-dishes li small { color: #8a6f5b; font-weight: 700; }
.owner-app .closing-dishes li b { float: none; white-space: nowrap; }

/* Recipe editor: copy from a dish, create ingredients in place. */
.owner-app .recipe-copy { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff8ef; border: 1px dashed #e3cdb4; font-weight: 700; }
.owner-app .recipe-row { grid-template-columns: minmax(0, 1fr) 96px 36px 28px; }
.owner-app .recipe-new { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 8px;
  padding: 8px; border-radius: 8px; background: #fff8ef; }
.owner-app .recipe-new[hidden] { display: none; }
.owner-app .recipe-block [data-recipe-add] { justify-self: start; }
.owner-app .stock-hint { display: block; margin-top: 4px; color: #a34400; font-size: 12px; font-weight: 700; }
@media (max-width: 700px) { .owner-app .recipe-new { grid-template-columns: 1fr 1fr; } .owner-app .recipe-new input[data-new-name] { grid-column: 1 / -1; } }
.owner-app .stock-recipes-intro { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #edf7f2; color: #1c5a43; }

/* Compact recipe cards and the per-ingredient breakdown. */
.owner-app .stock-recipe.compact { grid-template-columns: minmax(0, 1fr) auto auto; }
.owner-app .stock-recipe-main { display: grid; gap: 3px; min-width: 0; }
.owner-app .stock-recipe-main > small { color: #8a6f5b; font-size: 12.5px; }
.owner-app .stock-recipe-profit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 13px; }
.owner-app .stock-recipe-profit small { color: #8a6f5b; }
.owner-app .stock-mini-profit b { color: #1c6b57; }
.owner-app .stock-mini-profit.warn b { color: #94580a; }
.owner-app .stock-mini-profit.bad b { color: #a4280f; }
.owner-app .stock-recipe.compact .stock-left { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.owner-app .stock-recipe.compact .stock-left small { font-size: 11.5px; color: #8a6f5b; }
.owner-app .stock-recipe-actions { display: flex; gap: 6px; }
.owner-app .recipe-breakdown { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.owner-app .recipe-breakdown th, .owner-app .recipe-breakdown td { padding: 8px 10px; border-bottom: 1px solid #f1e4d4; text-align: left; vertical-align: top; }
.owner-app .recipe-breakdown thead th { background: #f5ebdf; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.owner-app .recipe-breakdown tbody th { font-weight: 800; }
.owner-app .recipe-breakdown small { display: block; color: #8a6f5b; font-weight: 600; font-size: 11.5px; }
.owner-app .recipe-breakdown td.muted { color: #bba48f; }
.owner-app .recipe-breakdown tfoot th, .owner-app .recipe-breakdown tfoot td { font-weight: 800; background: #fffaf3; }
.owner-app .recipe-breakdown tfoot tr.profit td { color: #1c6b57; }
@media (max-width: 700px) {
  .owner-app .stock-recipe.compact { grid-template-columns: minmax(0, 1fr); }
  .owner-app .stock-recipe.compact .stock-left { justify-content: flex-start; }
}

/* Packs: "18 pcs (3 packs)" and unit/pack pickers beside amounts. */
.owner-app .stock-level small { display: block; font-size: 12px; font-weight: 700; color: #8a6f5b; text-align: right; }
.owner-app .stock-amount select { width: auto; min-width: 96px; }

/* Dish photos on recipe cards. */
.owner-app .stock-recipe.compact { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.owner-app .stock-dish-photo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f1e7da; }
@media (max-width: 700px) {
  .owner-app .stock-recipe.compact { grid-template-columns: 44px minmax(0, 1fr); }
  .owner-app .stock-dish-photo { width: 44px; height: 44px; }
  .owner-app .stock-recipe.compact .stock-left, .owner-app .stock-recipe.compact .stock-recipe-actions { grid-column: 2; }
}

/* Floors / sections: headings on the Floor page and the QR cards in Settings. */
.owner-app .floor-section-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1px solid #ead8c3; font-size: 20px; color: #452215; }
.owner-app .floor-section-head:first-child { margin-top: 0; }
.owner-app .floor-section-head span { font: 700 13px 'Nunito Sans', sans-serif; color: #8a6f5b; }
.owner-app .table-qr-section { grid-column: 1 / -1; margin: 12px 0 0; font-size: 17px; color: #452215; }
.owner-app .table-sections-editor { margin: 14px 0; padding: 14px; border: 1px solid #ead8c3; border-radius: 14px; background: #fffaf3; }
.owner-app .sections-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.owner-app .sections-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: #176452; }
.owner-app .sections-toggle span { display: grid; gap: 2px; }
.owner-app .sections-toggle small { color: #8a6f5b; }
.owner-app .sections-rows { display: grid; gap: 8px; margin-top: 12px; }
.owner-app .sections-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.owner-app .sections-row > input { min-height: 40px; }
.owner-app .sections-row label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: #8a6f5b; }
.owner-app .sections-row label input { width: 70px; min-height: 40px; }
.owner-app .sections-range { min-width: 52px; font-weight: 800; color: #176452; font-size: 13px; }
.owner-app .sections-remove { width: 34px; height: 34px; border: 1px solid #e3cdb4; border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
.owner-app .sections-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Order card buttons: labels stay on one line, centred with their icon.
   If the row is too narrow a whole button moves down, never half its text. */
.owner-app .quick-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; line-height: 1.2; }
.owner-app .quick-actions .button svg { flex: none; }
@media (max-width: 760px) {
  .owner-app .quick-actions .quick-total { flex-basis: 100%; margin: 0; }
  .owner-app .quick-actions .button { flex: 1 1 auto; padding: 10px 12px; }
}

/* Sales page: Day closing and Insights as two tabs, a sliding segmented
   control in the same family as Orders' Open / History. */
.owner-app .sales-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(100%, 380px); padding: 5px; margin: 2px 0 18px; border-radius: 16px; background: rgba(120, 72, 40, 0.08); }
.owner-app .sales-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; color: #6b5242; font: 800 15px/1 'Nunito Sans', sans-serif; text-decoration: none; transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.owner-app .sales-tab:hover { color: #302d29; background: rgba(255, 255, 255, 0.55); }
.owner-app .sales-tab[aria-current='page'] { background: #fff; color: #176452; box-shadow: 0 1px 2px rgba(60, 30, 10, 0.08), 0 4px 14px rgba(60, 30, 10, 0.08); }
.owner-app .sales-tab svg { opacity: 0.85; }
.owner-app .sales-tab:focus-visible { outline: 2px solid #176452; outline-offset: 2px; }
@media (max-width: 640px) { .owner-app .sales-tabs { display: grid; width: 100%; } }
/* Period choice under the Sales tabs: lighter outline chips in one even row,
   so it reads as a filter, not as more tabs. */
.owner-app .insight-periods { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 6px; padding: 0; background: none; border-radius: 0; flex-wrap: nowrap; }
.owner-app .insight-periods button { padding: 7px 14px; border: 1px solid #e3cdb4; background: #fffdf9; font-size: 13px; opacity: 1; color: #6b5242; white-space: nowrap; }
.owner-app .insight-periods button[aria-pressed='true'] { background: #176452; border-color: #176452; color: #fff; box-shadow: none; }
@media (max-width: 640px) { .owner-app .insight-periods { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; } .owner-app .insight-periods button { padding: 8px 6px; } }

/* Fake QR order guards */
.new-phone-pill { background: #fff4d6; color: #8a5a00; border: 1px solid #f0d48a; }
.block-phone { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px; border: 1px solid #f2c9c4; border-radius: 12px; background: #fff7f6; cursor: pointer; }
.block-phone input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #c0392b; }
.block-phone span { display: grid; gap: 2px; }
.block-phone small { color: #6b6b6b; font-weight: 400; }
.quick-state.new-phone { background: #fff4d6; color: #8a5a00; }
.quick-actions .button.quick-reject { color: #b3261e; border-color: #efb8b2; background: #fff; }
.table-codes-change { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); }
.table-codes-change p { margin: 4px 0 0; }
@media (max-width: 760px) { .table-codes-change { flex-direction: column; align-items: stretch; } }

/* Logo positioning (WhatsApp-style circle) */
dialog.logo-crop { width: min(92vw, 380px); padding: 0; border: 0; border-radius: 18px; background: #fffaf3; color: #2b1a10; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.logo-crop::backdrop { background: rgba(20, 14, 10, .6); }
.logo-crop-box { display: grid; gap: 12px; padding: 18px; }
.logo-crop-box h2 { margin: 0; font-size: 20px; }
.logo-crop-box .subtle { margin: 0; font-size: 13px; }
.logo-crop-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #1b1310; touch-action: none; cursor: grab; user-select: none; }
.logo-crop-stage:active { cursor: grabbing; }
.logo-crop-stage:focus-visible { outline: 3px solid #ed7800; outline-offset: 3px; }
.logo-crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
/* Everything outside the circle is dimmed, as in WhatsApp. */
.logo-crop-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; }
.logo-crop-zoom { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #6b5444; }
.logo-crop-zoom input { flex: 1; accent-color: #ed7800; }
.logo-crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Just added, in no recipe, nothing counted yet: not a warning. */
.owner-app .stock-item.idle { border-left-color: #d6cbbd; }
.owner-app .stock-pill.idle { background: #efe9e1; color: #6b5d50; }
/* The restaurant's name in the sidebar wraps instead of running out of it
   ("Mantri ji ki chai Okhla"). Long names are a size smaller (owner.js). */
.owner-app > aside > .logo {
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}
.owner-app > aside > .logo > span { padding-left: 0; }
.owner-app > aside > .logo.long-name { font-size: 26px; line-height: 1.1; }
.owner-app > aside > .logo.very-long-name { font-size: 21px; line-height: 1.15; }
.owner-app > aside > .logo small { white-space: normal; }

/* Settings → Google listing & search */
.owner-app .seo-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.owner-app .seo-head .subtle { margin: 4px 0 0; }
.owner-app .seo-score { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff4e6; border: 3px solid #ed7800; line-height: 1; }
.owner-app .seo-score b { font-size: 21px; color: #9a4a06; }
.owner-app .seo-score span { font-size: 11px; color: #9a7f68; margin-top: -10px; }
.owner-app .seo-progress { height: 8px; border-radius: 99px; background: #f0e6d8; margin: 14px 0; overflow: hidden; }
.owner-app .seo-progress i { display: block; height: 100%; background: linear-gradient(90deg, #ed7800, #f5a623); border-radius: inherit; }
.owner-app .seo-checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.owner-app .seo-checks li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fffaf3; border: 1px solid #f0e2cf; }
.owner-app .seo-checks li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #b9a48e; border: 2px solid #e2d3bf; font-size: 12px; }
.owner-app .seo-checks li.done > span { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.owner-app .seo-checks li strong { display: block; font-size: 14px; }
.owner-app .seo-checks li small { display: block; font-size: 12px; color: #7a6a5c; margin-top: 2px; }
.owner-app .seo-checks li.done strong { color: #1f6b3d; }
.owner-app .seo-preview { margin: 4px 0 18px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e8dccb; font-family: Arial, sans-serif; }
.owner-app .seo-preview-label { display: block; font-size: 11px; color: #9a7f68; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; font-family: inherit; }
.owner-app .seo-preview-url { font-size: 13px; color: #202124; }
.owner-app .seo-preview-title { font-size: 19px; line-height: 1.3; color: #1a0dab; margin: 3px 0; }
.owner-app .seo-preview-text { font-size: 14px; line-height: 1.5; color: #4d5156; }
.owner-app .seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.owner-app .seo-grid .wide { grid-column: 1 / -1; }
.owner-app .seo-grid small { display: block; font-weight: 400; color: #7a6a5c; margin-top: 4px; font-size: 12px; }
.owner-app .seo-guide { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #f7f1e8; }
.owner-app .seo-guide summary { cursor: pointer; font-weight: 800; }
.owner-app .seo-guide ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
@media (max-width: 760px) { .owner-app .seo-grid { grid-template-columns: 1fr; } }

/* Banner: "When tapped, open" */
.owner-app .banner-link { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.owner-app .banner-link [hidden] { display: none; }

/* Owner studio → Dish videos */
.owner-app .video-live-count { padding: 8px 14px; border-radius: 999px; background: #E9F4EE; color: #0F6B4B; font-weight: 700; font-size: 14px; }
.owner-app .videos-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.owner-app .videos-add h2, .owner-app .videos-list h2 { margin: 0 0 14px; }
.owner-app .video-form { display: grid; gap: 14px; }
.owner-app .video-form label small { display: block; font-weight: 400; color: #6B5B4D; margin-top: 4px; }
.owner-app .video-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.owner-app .video-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-app .video-form-foot small { color: #6B5B4D; }
.owner-app .video-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.owner-app .video-card { display: flex; flex-direction: column; gap: 6px; }
.owner-app .video-thumb { position: relative; height: 200px; border-radius: 14px; overflow: hidden; background: #3E2A20; }
.owner-app .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.owner-app .video-thumb span { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; }
.owner-app .video-status { align-self: flex-start; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.owner-app .video-status.pending { background: #FDF0D8; color: #8A4B06; }
.owner-app .video-status.live { background: #E9F4EE; color: #0F6B4B; }
.owner-app .video-status.rejected { background: #FBE3DE; color: #9A2B17; }
.owner-app .video-card small { color: #6B5B4D; }
.owner-app .video-note { color: #9A2B17 !important; }
.owner-app .video-actions { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.owner-app .video-tips { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #EADFD1; font-size: 14px; color: #5C4E43; }
@media (max-width: 900px) { .owner-app .videos-page, .owner-app .video-form-row { grid-template-columns: 1fr; } }

/* Order QR (owner-order-qr.js): one QR for a counter or cart. */
.order-qr-tag { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #E9F4EE; color: #0F6B4B; font-size: 12px; font-weight: 700; vertical-align: middle; }
.order-qr-off { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; color: #7A3E00; font-size: 14px; }
.order-qr-note { margin-top: 8px; }

/* Settings → QR cards: the order QR and the Google review QR side by side,
   stacked when there isn't room (a phone, a narrow window). */
.owner-app .qr-cards h2 { margin-bottom: 14px; }
.owner-app .qr-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px 36px; }
.owner-app .qr-col { min-width: 0; }
.owner-app .qr-cards-grid > .qr-col + .qr-col { border-left: 1px solid rgba(80, 50, 20, .1); padding-left: 36px; }
.owner-app .qr-col-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.owner-app .qr-col-head h3 { margin: 0; font-size: 19px; }
.owner-app .qr-col-line { margin: 4px 0 12px; }
.owner-app .qr-col-body { display: flex; align-items: flex-start; gap: 18px; }
.owner-app .qr-col-thumb { flex: none; }
.owner-app .qr-col-thumb .qr-card-thumb { --scale: 0.42; }
.owner-app .qr-col-actions { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.owner-app .qr-col-actions .button { width: 100%; justify-content: center; text-align: center; }
.owner-app .qr-col-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.owner-app .qr-col-change { margin-top: 12px; }
.owner-app .qr-col-change summary { cursor: pointer; font-weight: 700; color: #b8460b; }
.owner-app .qr-col-change form { margin-top: 10px; }
.owner-app .order-qr-tag { margin-left: 0; }
@media (max-width: 1100px) {
  .owner-app .qr-cards-grid > .qr-col + .qr-col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(80, 50, 20, .1); padding-top: 18px; }
}
@media (max-width: 520px) {
  .owner-app .qr-col-body { flex-direction: column; align-items: center; }
  .owner-app .qr-col-actions { width: 100%; }
}

/* Basket: Pickup | Delivery, instead of asking up front. */
.customer-app .service-switch { display: flex; gap: 4px; padding: 4px; margin: 4px 0 14px; border-radius: 14px; background: #f8ead7; }
.customer-app .service-switch button { flex: 1; min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: #502b1d; font: inherit; font-weight: 700; cursor: pointer; }
.customer-app .service-switch button[aria-pressed="true"] { background: #fff; color: var(--orange); box-shadow: 0 2px 8px #502b1d1a; }
.customer-app .service-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.customer-app .service-line { margin: 4px 0 12px; font-weight: 600; }

/* Dish videos: which picture the home page shows before play. */
.video-cover { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line, #e8dccd); border-radius: 12px; background: rgba(255,255,255,.5); }
.video-cover:empty { display: none; }
.video-cover img, .video-cover-none { flex: none; width: 56px; height: 72px; border-radius: 8px; object-fit: cover; }
.video-cover-none { display: grid; place-items: center; padding: 4px; background: #5b1f1a; color: #fff; font-size: 11px; font-weight: 700; text-align: center; overflow: hidden; }
.video-cover p { margin: 0; font-size: 13px; line-height: 1.4; }

/* Owner studio → Foodieway listing: the card on foodieway.in. */
.listing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.listing-head h2 { margin: 0; }
.listing-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin-top: 18px; align-items: start; }
.listing-preview { position: sticky; top: 16px; border: 1px solid var(--line, #e8dccd); border-radius: 16px; overflow: hidden; background: #fff; }
.listing-preview-photo { position: relative; aspect-ratio: 1; background: #f1e6d8; display: grid; place-items: center; color: #8a7666; font-size: 13px; text-align: center; }
.listing-preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.listing-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.listing-dots i.on { background: #fff; }
.listing-preview p { margin: 10px 12px 2px; font-size: 14px; line-height: 1.4; }
.listing-preview small { display: block; margin: 0 12px 12px; color: #8a7666; font-size: 12px; }
.listing-form fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.listing-form legend { font-weight: 800; font-size: 17px; margin-bottom: 4px; padding: 0; }
.listing-form .subtle { margin: 0; }
.listing-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.listing-photo { position: relative; display: grid; gap: 4px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.listing-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; opacity: .55; transition: opacity .15s; }
.listing-photo span { font-size: 12px; line-height: 1.25; padding: 0 2px 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.listing-photo.is-on { border-color: var(--accent, #f26a1b); }
.listing-photo.is-on img { opacity: 1; }
.listing-photo b { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #f26a1b); color: #fff; font-size: 13px; }
.listing-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listing-ask { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, #e8dccd); border-radius: 12px; background: rgba(255,255,255,.5); cursor: pointer; }
.listing-ask input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.listing-ask small { display: block; color: #8a7666; font-weight: 400; margin-top: 2px; }
.listing-badge { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.listing-badge.is-approved { background: #e8f0df; color: #31572e; }
.listing-badge.is-pending { background: #fff1d5; color: #875114; }
.listing-badge.is-rejected { background: #f9e6e0; color: #8e3427; }
.videos-heading { margin: 28px 0 12px; font-size: 24px; }
@media (max-width: 760px) {
  .listing-body { grid-template-columns: 1fr; }
  .listing-preview { position: static; max-width: 260px; }
  .listing-row { grid-template-columns: 1fr; }
}
.listing-ask.is-off { opacity: .7; cursor: default; }

/* Dish videos: choosing a clip to upload. */
.video-file { display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; padding: 14px; border: 2px dashed var(--line, #e2d3c2); border-radius: 14px; background: rgba(255,255,255,.55); cursor: pointer; }
.video-file:hover { border-color: var(--accent, #f26a1b); }
.video-file.has-file { border-style: solid; }
.video-file img { width: 56px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.video-file-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #f26a1b); color: #fff; font-size: 20px; flex: none; }
.video-file b { display: block; }
.video-file small { display: block; font-weight: 400; color: #8a7666; margin-top: 2px; }
.video-progress { width: 100%; height: 8px; accent-color: var(--accent, #f26a1b); }
.owner-app .video-insta-hint { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF6EC; color: #5C4E43; font-size: 13px; line-height: 1.5; }

/* The order number on each open order, easy to spot and call out. */
.owner-app .quick-title > span.quick-no { color: #b4531a; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }

/* "Where is your shop?" map pin (pin-picker.js) */
.pin-picker { display: grid; gap: 10px; margin: 12px 0; }
.pin-map { height: 180px; border-radius: 12px; overflow: hidden; border: 1px solid #e7d5c2; background: #f3ece2; }
.pin-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pin-map.is-empty { display: grid; place-items: center; color: #8a7462; font-size: 14px; }
.pin-check { font-size: 13px; }
.pin-ways { display: grid; gap: 8px; }
.pin-ways small { font-weight: 500; opacity: .75; }
.pin-link { display: flex; gap: 8px; }
.pin-link input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d9c5b0; border-radius: 10px; font: inherit; }
.pin-note { margin: 0; font-size: 14px; color: #31572e; min-height: 1em; }
.pin-note:empty { display: none; }
.pin-note.is-bad { color: #8e3427; }
.pin-area { display: grid; gap: 4px; font-weight: 600; }
.pin-area input { padding: 10px 12px; border: 1px solid #d9c5b0; border-radius: 10px; font: inherit; font-weight: 400; }
.listing-where { margin-bottom: 16px; }
