/* Definitive POS skin. Loaded after the application stylesheet to isolate the
   register from the back-office theme and older POS experiments. */

body.pos-fullscreen,
body.pos-force-light {
  --pos-accent: #e7aa18;
  --pos-accent-strong: #b77d00;
  --pos-accent-soft: #fff4d3;
  --pos-green: #b77d00;
  --pos-green-soft: #fff8e6;
  --pos-ink: #1f2933;
  --pos-muted: #66727f;
  --pos-line: #d6dde3;
  --pos-bg: #f1f3f5;
  --pos-panel: #ffffff;
  --pos-hover: #f6f8fa;
  --pos-app-accent: #e7aa18;
  --pos-app-accent-strong: #b77d00;
  --pos-app-accent-soft: #fff4d3;
  --pos-app-line: #d6dde3;
  --pos-app-ink: #1f2933;
  --pos-app-muted: #66727f;
  color: var(--pos-ink);
  background: var(--pos-bg);
}

.pos-order-paid {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5f5eb;
  color: #187448;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

/* Open orders: one stable desktop table, compact touch cards on small screens. */
body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-content,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-content {
  padding: 16px 20px 24px !important;
  background: #f1f3f5 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-toolbar,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
  align-items: stretch !important;
  gap: 12px !important;
  min-height: 44px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort {
  min-width: 0 !important;
  min-height: 44px !important;
  display: flex !important;
  overflow: hidden !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-right: 1px solid #e4e8ec !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #66727f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button:last-child,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button:last-child {
  border-right: 0 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button.active,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button.active {
  background: #fff8e6 !important;
  color: #8b5f00 !important;
  box-shadow: inset 0 -3px 0 #e7aa18 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-search,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search {
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #66727f !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-search input,
body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #20252a !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(32, 37, 42, .06) !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table-head,
body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.6fr) minmax(160px, 1fr) minmax(140px, .9fr) minmax(130px, auto) 50px !important;
  align-items: center !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table-head,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head {
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e8ec !important;
  background: #f6f8fa !important;
  color: #66727f !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table-head > :nth-child(4),
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head > :nth-child(4) {
  grid-column: 4 !important;
  justify-self: end !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
  min-height: 78px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e8ec !important;
  border-radius: 0 !important;
  background: #fff !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row:last-child,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row:last-child {
  border-bottom: 0 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row:hover,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row:hover {
  background: #fffaf0 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main,
body.pos-fullscreen .modal.pos-orders-modal .pos-order-main {
  grid-column: 1 !important;
  min-width: 0 !important;
  min-height: 78px !important;
  padding: 0 12px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  border: 0 !important;
  background: transparent !important;
  color: #20252a !important;
  text-align: left !important;
  overflow: hidden !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main strong,
body.pos-fullscreen .modal.pos-orders-modal .pos-order-main strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #20252a !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main small,
body.pos-fullscreen .modal.pos-orders-modal .pos-order-main small,
body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-cell {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #88939e !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.pos-fullscreen .modal.pos-orders-modal .pos-order-cell {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #66727f !important;
  font-size: 13px !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-amount,
body.pos-fullscreen .modal.pos-orders-modal .pos-order-amount {
  grid-column: 4 !important;
  justify-self: end !important;
  min-width: 0 !important;
  color: #20252a !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .icon-button,
body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .icon-button {
  grid-column: 5 !important;
  justify-self: end !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin-left: 12px !important;
  padding: 0 !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 7px !important;
  background: #fff !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-content,
  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-content {
    padding: 10px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-toolbar,
  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-toolbar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort,
  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort {
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort::-webkit-scrollbar,
  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort::-webkit-scrollbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button,
  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button {
    flex: 0 0 auto !important;
    min-width: 86px !important;
    padding: 0 14px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table-head,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    min-height: 84px !important;
    margin: 0 0 8px !important;
    padding: 12px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(32, 37, 42, .05) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .pos-order-cell,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .pos-order-cell {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main,
  body.pos-fullscreen .modal.pos-orders-modal .pos-order-main {
    grid-column: 1 !important;
    min-height: 58px !important;
    padding-right: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-amount,
  body.pos-fullscreen .modal.pos-orders-modal .pos-order-amount {
    grid-column: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    display: block !important;
    font-size: 14px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .icon-button,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .icon-button {
    grid-column: 3 !important;
    align-self: center !important;
    width: 38px !important;
    min-width: 38px !important;
    margin-left: 8px !important;
  }
}

/* Catalog tabs and horizontal product/label workspace. */
body.pos-fullscreen #view-sales .pos-catalog-tabs {
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 3px !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 2px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #f6f8fa !important;
}

body.pos-fullscreen #view-sales .pos-catalog-tabs button {
  min-width: 104px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #66727f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-catalog-tabs button svg {
  width: 16px !important;
  height: 16px !important;
}

body.pos-fullscreen #view-sales .pos-catalog-tabs button.active {
  background: #fff !important;
  color: #9a6a00 !important;
  box-shadow: 0 1px 3px rgba(32, 37, 42, .12) !important;
}

body.pos-fullscreen #view-sales .pos-catalog-stage {
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #f1f3f5 !important;
  touch-action: pan-y !important;
}

body.pos-fullscreen #view-sales .pos-catalog-track {
  width: 200% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  transform: translateX(0) !important;
  transition: transform .24s ease !important;
  will-change: transform !important;
}

body.pos-fullscreen #view-sales .pos-catalog-stage.is-labels .pos-catalog-track {
  transform: translateX(-50%) !important;
}

body.pos-fullscreen #view-sales .pos-catalog-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.pos-fullscreen #view-sales .pos-catalog-products-panel {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
}

body.pos-fullscreen #view-sales .pos-catalog-products-panel .pos-products {
  height: 100% !important;
}

body.pos-fullscreen #view-sales .pos-labels-panel {
  padding: 18px !important;
  overflow: auto !important;
  background: #f1f3f5 !important;
}

body.pos-fullscreen #view-sales .pos-labels-head {
  min-height: 50px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

body.pos-fullscreen #view-sales .pos-labels-head span {
  display: block !important;
  color: #9a6a00 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

body.pos-fullscreen #view-sales .pos-labels-head h3 {
  margin: 3px 0 0 !important;
  color: #20252a !important;
  font-size: 19px !important;
}

body.pos-fullscreen #view-sales .pos-labels-head > small {
  color: #66727f !important;
  font-size: 12px !important;
  text-align: right !important;
}

body.pos-fullscreen #view-sales .pos-label-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  align-content: start !important;
  gap: 10px !important;
}

body.pos-fullscreen #view-sales .pos-label-card {
  min-width: 0 !important;
  min-height: 76px !important;
  padding: 12px 14px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20252a !important;
  text-align: left !important;
  box-shadow: 0 1px 3px rgba(32, 37, 42, .05) !important;
}

body.pos-fullscreen #view-sales .pos-label-card:hover,
body.pos-fullscreen #view-sales .pos-label-card.active {
  border-color: var(--label-color, #e7aa18) !important;
  background: #fffaf0 !important;
}

body.pos-fullscreen #view-sales .pos-label-card-icon {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--label-color, #e7aa18) 16%, #fff) !important;
  color: var(--label-color, #b77d00) !important;
}

body.pos-fullscreen #view-sales .pos-label-card-icon svg {
  width: 19px !important;
  height: 19px !important;
}

body.pos-fullscreen #view-sales .pos-label-card-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

body.pos-fullscreen #view-sales .pos-label-card-copy strong,
body.pos-fullscreen #view-sales .pos-label-card-copy small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-label-card-copy strong {
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.pos-fullscreen #view-sales .pos-label-card-copy small {
  color: #7b8792 !important;
  font-size: 11px !important;
}

body.pos-fullscreen #view-sales .pos-label-card-arrow {
  width: 17px !important;
  height: 17px !important;
  color: #8b969f !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-catalog-tabs {
    position: absolute !important;
    top: 0 !important;
    left: 10px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 7px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.pos-fullscreen #view-sales .pos-catalog-tabs button {
    min-width: 88px !important;
    min-height: 44px !important;
    padding: 0 9px !important;
  }

  body.pos-fullscreen #view-sales .pos-catalog-tabs button span {
    font-size: 11px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-labels-panel {
    padding: 12px !important;
  }

  body.pos-fullscreen #view-sales .pos-labels-head {
    min-height: 42px !important;
    margin-bottom: 10px !important;
    display: block !important;
  }

  body.pos-fullscreen #view-sales .pos-labels-head > small {
    display: block !important;
    margin-top: 5px !important;
    text-align: left !important;
  }

  body.pos-fullscreen #view-sales .pos-label-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-label-card {
    min-height: 68px !important;
  }
}

/* Final touch pass for the mobile POS workspaces and order actions. */
@media (max-width: 720px) {
  body.pos-fullscreen .modal.pos-orders-modal .modal-head,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head,
  body.pos-fullscreen .modal.pos-client-modal .modal-head,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head,
  body.pos-fullscreen .modal.pos-split-modal .modal-head,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head,
  body.pos-fullscreen .modal.pos-client-modal .pos-client-create-head {
    min-height: 66px !important;
    background: #fff !important;
    color: #20252a !important;
    border-bottom: 1px solid #d6dde3 !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-client-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-split-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-orders-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-client-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-split-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head .icon-button {
    color: #20252a !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-client-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head .modal-eyebrow {
    display: block !important;
    color: #a46f00 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal > .modal-inner {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-content {
    min-height: 0;
    overflow: auto;
    padding: 16px 14px 20px;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions {
    min-height: 68px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    display: flex !important;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #d6dde3;
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button {
    min-height: 48px;
    flex: 1 1 0;
    padding: 0 12px;
    border: 1px solid #d6dde3;
    border-radius: 5px;
    background: #fff;
    color: #20252a;
    font-weight: 800;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button.primary {
    border-color: #e7aa18;
    background: #e7aa18;
    color: #20252a;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button[hidden] {
    display: none !important;
  }

  body.pos-fullscreen .pos-dialog-mobile-bottom-nav {
    min-height: 70px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid #d6dde3;
    background: #fff;
  }

  body.pos-fullscreen .pos-dialog-mobile-bottom-nav button {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 1px solid #d6dde3;
    border-radius: 5px;
    background: #fff;
    color: #20252a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.pos-fullscreen .pos-dialog-mobile-bottom-nav button.active,
  body.pos-fullscreen .pos-dialog-mobile-bottom-nav button:active {
    border-color: #e7aa18;
    background: #e7aa18;
  }

  body.pos-fullscreen .pos-dialog-mobile-bottom-nav svg {
    width: 18px;
    height: 18px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort {
    display: flex !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort::-webkit-scrollbar {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 0 12px;
    border-right: 1px solid #d6dde3;
    background: #fff;
    color: #66727f;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button.active {
    background: #fff8e6;
    color: #8b5f00;
    box-shadow: inset 0 -3px 0 #e7aa18;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .pos-order-main {
    grid-column: 1 !important;
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .pos-order-cell {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .pos-order-amount {
    grid-column: 2 !important;
    display: block !important;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > .icon-button {
    grid-column: 3 !important;
    display: grid !important;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}

@media (min-width: 721px) {
  body.pos-fullscreen .pos-dialog-mobile-bottom-nav {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-orders-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: center;
    gap: 12px;
  }

  body.pos-fullscreen #view-sales .pos-orders-sort {
    display: flex !important;
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-orders-search {
    width: auto !important;
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-open-order-table-head,
  body.pos-fullscreen #view-sales .pos-open-order-row {
    grid-template-columns: minmax(260px, 1.3fr) minmax(150px, .8fr) minmax(130px, .7fr) auto auto !important;
  }

  body.pos-fullscreen #view-sales .pos-open-order-table-head > span,
  body.pos-fullscreen #view-sales .pos-open-order-row > * {
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-open-order-row > .pos-order-main {
    grid-column: 1;
  }

  body.pos-fullscreen #view-sales .pos-open-order-row > .pos-order-amount {
    grid-column: 4;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-open-order-row > .icon-button {
    grid-column: 5;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: center;
    gap: 12px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort {
    display: flex !important;
    min-width: 0;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search {
    width: auto !important;
    min-width: 0;
    display: flex !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search input {
    display: block !important;
    width: 100%;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
    grid-template-columns: minmax(260px, 1.3fr) minmax(150px, .8fr) minmax(130px, .7fr) auto auto !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .pos-order-main {
    grid-column: 1;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .pos-order-amount {
    grid-column: 4;
    white-space: nowrap;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > .icon-button {
    grid-column: 5;
  }
}

/* Legacy mobile pass retained for reference; the final mobile block is last. */
@media (max-width: 0px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 56px auto minmax(0, 1fr) auto auto;
    overflow: hidden;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    min-height: 56px;
    padding: 0 8px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    gap: 7px;
  }

  body.pos-fullscreen #view-sales .pos-app-title > span {
    width: 30px;
    height: 30px;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2 {
    font-size: 16px;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar {
    min-width: 0;
    gap: 4px;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar > .icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body.pos-fullscreen #view-sales .pos-app-status,
  body.pos-fullscreen #view-sales .pos-app-register {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  body.pos-fullscreen #view-sales .pos-app-status span,
  body.pos-fullscreen #view-sales .pos-app-register span,
  body.pos-fullscreen #view-sales .pos-app-register button {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    min-height: 56px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar::-webkit-scrollbar,
  body.pos-fullscreen #view-sales .pos-app-bottom-categories::-webkit-scrollbar {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions,
  body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-actionbar .pos-app-rail-actions,
  body.pos-fullscreen #view-sales .pos-webapp-shell.counter .pos-app-actionbar .pos-app-rail-actions {
    width: max-content;
    min-width: max-content;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions > button,
  body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-rail-actions > button {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions > button.primary {
    min-width: 142px;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    height: 100%;
    min-height: 0;
    position: relative;
    display: block;
    overflow: hidden;
  }

  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-ticket {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    min-height: 88px;
    padding: 7px 8px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 40px 40px 40px;
    grid-template-rows: 38px 38px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    width: 80px;
    min-width: 80px;
    grid-column: 2;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action {
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button {
    grid-column: 3;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-product {
    grid-column: 4;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-stock {
    grid-column: 5;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action span {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 148px;
    gap: 8px;
    padding: 8px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
    height: 148px;
    grid-template-rows: 88px minmax(0, 1fr);
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media {
    min-height: 88px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy {
    min-width: 0;
    padding: 5px 8px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-category {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy strong {
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy small:last-child {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories {
    min-height: 66px;
    max-height: 76px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories button,
  body.pos-fullscreen #view-sales .pos-app-bottom-categories button:not(:first-child) {
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    min-height: 54px;
    padding: 6px 8px;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories .pos-category-label {
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories strong {
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch {
    position: static;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 0;
    border-top: 1px solid var(--pos-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button {
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid var(--pos-line);
    border-radius: 6px;
    background: #fff;
    color: var(--pos-muted);
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button.active {
    background: var(--pos-ink);
    box-shadow: inset 0 -2px 0 var(--pos-accent);
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head {
    min-height: 62px;
    padding: 8px 10px;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head h2 {
    font-size: 17px;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head p {
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-head-actions .icon-button,
  body.pos-fullscreen #view-sales .pos-ticket-menu summary {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-context {
    min-height: 52px;
    padding: 6px 10px;
  }

  body.pos-fullscreen #view-sales .cart-lines {
    padding: 0;
  }

  body.pos-fullscreen #view-sales .cart-line {
    min-height: 64px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) minmax(74px, auto) 18px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child strong {
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child span {
    margin-top: 2px;
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .cart-line > strong {
    max-width: 28vw;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }

  body.pos-fullscreen #view-sales .pos-summary {
    padding: 5px 10px;
  }

  body.pos-fullscreen #view-sales .pos-summary > div {
    min-height: 21px;
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-summary > div.grand {
    min-height: 32px;
    font-size: 18px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions {
    min-height: 58px;
    grid-template-columns: 42% 58%;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    min-height: 58px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate {
    padding: 16px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card {
    padding: 28px 20px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate h1 {
    font-size: 34px;
  }
}

body.pos-fullscreen .app-shell,
body.pos-fullscreen .main,
body.pos-fullscreen #view-sales {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--pos-bg);
}

body.pos-fullscreen #view-sales {
  padding: 0;
}

body.pos-fullscreen #view-sales .pos-webapp-shell {
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.pos-fullscreen #view-sales .pos-app-layout {
  gap: 0;
  grid-template-columns: minmax(0, 1fr) clamp(500px, 40vw, 640px);
}

body.pos-fullscreen #view-sales .pos-app-catalog,
body.pos-fullscreen #view-sales .pos-app-ticket {
  height: auto;
  min-height: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.pos-fullscreen #view-sales .pos-app-catalog {
  border-right: 1px solid var(--pos-line);
}

body.pos-fullscreen .pos-webapp-shell {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 58px 54px minmax(0, 1fr) 72px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--pos-bg);
  color: var(--pos-ink);
  box-shadow: none;
}

body.pos-fullscreen .pos-app-header {
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pos-line);
  background: var(--pos-panel);
  color: var(--pos-ink);
}

body.pos-fullscreen .pos-app-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pos-fullscreen .pos-app-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent-strong);
}

body.pos-fullscreen .pos-app-title h2 {
  margin: 0;
  color: var(--pos-ink);
  font-size: 18px;
}

body.pos-fullscreen .pos-app-title p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--pos-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-app-commandbar,
body.pos-fullscreen .pos-app-status,
body.pos-fullscreen .pos-app-register {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pos-fullscreen .pos-app-status,
body.pos-fullscreen .pos-app-register {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-muted);
  font-size: 12px;
  font-weight: 700;
}

body.pos-fullscreen .pos-app-status:not(.offline),
body.pos-fullscreen .pos-app-register.open {
  border-color: #b9e1ce;
  background: var(--pos-green-soft);
  color: #16744b;
}

body.pos-fullscreen .pos-app-commandbar .icon-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
}

body.pos-fullscreen .pos-mobile-switch {
  display: none;
}

body.pos-fullscreen .pos-app-actionbar {
  min-height: 54px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line);
  background: #f7f8fa;
}

body.pos-fullscreen .pos-app-rail-actions,
body.pos-fullscreen .pos-app-rail-metrics {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

body.pos-fullscreen .pos-app-rail-actions > button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  box-shadow: none;
}

body.pos-fullscreen .pos-app-rail-actions > button.primary {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

body.pos-fullscreen .pos-app-rail-actions > button strong {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf0f3;
  font-size: 11px;
}

body.pos-fullscreen .pos-app-rail-actions > button.primary strong {
  background: rgba(255, 255, 255, .55);
}

body.pos-fullscreen .pos-app-rail-metrics > div {
  min-width: 112px;
  padding: 4px 10px;
  display: grid;
  align-content: center;
  border-left: 1px solid var(--pos-line);
}

body.pos-fullscreen .pos-app-rail-metrics span {
  color: var(--pos-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

body.pos-fullscreen .pos-app-rail-metrics strong {
  margin-top: 1px;
  color: var(--pos-ink);
  font-size: 15px;
}

body.pos-fullscreen .pos-app-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(350px, 31vw, 500px);
  gap: 0;
  overflow: hidden;
}

body.pos-fullscreen .pos-app-catalog {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  overflow: hidden;
  border-right: 1px solid var(--pos-line);
  background: var(--pos-bg);
}

body.pos-fullscreen .pos-app-catalog-top {
  min-height: 58px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line);
  background: var(--pos-panel);
}

body.pos-fullscreen .pos-app-catalog-top > div:first-child {
  min-width: 160px;
}

body.pos-fullscreen .pos-app-catalog-top > div:first-child > span {
  display: none;
}

body.pos-fullscreen .pos-app-catalog-top h2 {
  margin: 0;
  color: var(--pos-ink);
  font-size: 20px;
}

body.pos-fullscreen .pos-toolbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

body.pos-fullscreen .pos-search {
  width: min(410px, 37vw);
  min-height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-muted);
}

body.pos-fullscreen .pos-search input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-ink);
  box-shadow: none;
}

body.pos-fullscreen .icon-segmented,
body.pos-fullscreen .pos-scan-button {
  min-height: 40px;
}

body.pos-fullscreen .icon-segmented {
  display: flex;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

body.pos-fullscreen .icon-segmented button,
body.pos-fullscreen .pos-scan-button {
  width: 40px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--pos-muted);
}

body.pos-fullscreen .icon-segmented button.active {
  background: var(--pos-accent-soft);
  color: var(--pos-accent-strong);
}

body.pos-fullscreen .pos-products {
  min-height: 0;
  padding: 12px;
  align-content: start;
  overflow: auto;
  background: var(--pos-bg);
  scrollbar-gutter: stable;
}

body.pos-fullscreen .pos-products.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  grid-auto-rows: 172px;
  gap: 10px;
}

body.pos-fullscreen .pos-products.view-grid .pos-product {
  min-width: 0;
  min-height: 0;
  height: 172px;
  padding: 0;
  display: grid;
  grid-template-rows: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
  box-shadow: none;
}

body.pos-fullscreen .pos-products.view-grid .pos-product:hover {
  border-color: var(--pos-accent);
}

body.pos-fullscreen .pos-products.view-grid .pos-product:active:not(:disabled) {
  transform: scale(.985);
}

body.pos-fullscreen .pos-products.view-grid .pos-product-media {
  position: relative;
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--pos-line);
  background: #f7f8fa;
  color: #88929e;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-media > svg {
  width: 38px;
  height: 38px;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-price {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(32, 40, 50, .86);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-copy {
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  align-content: center;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-copy strong {
  overflow: hidden;
  color: var(--pos-ink);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-products.view-grid .pos-product-copy small,
body.pos-fullscreen .pos-products.view-grid .pos-product-list-price {
  display: none;
}

body.pos-fullscreen .pos-products.view-list {
  display: grid;
  grid-auto-rows: 64px;
  gap: 6px;
}

body.pos-fullscreen .pos-products.view-list .pos-product {
  min-height: 64px;
  padding: 0 12px 0 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
}

body.pos-fullscreen .pos-products.view-list .pos-product-media {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--pos-line);
  background: #f7f8fa;
}

body.pos-fullscreen .pos-products.view-list .pos-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.pos-fullscreen .pos-products.view-list .pos-product-price {
  display: none;
}

body.pos-fullscreen .pos-products.view-list .pos-product-copy {
  min-width: 0;
}

body.pos-fullscreen .pos-products.view-list .pos-product-copy strong,
body.pos-fullscreen .pos-products.view-list .pos-product-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-products.view-list .pos-product-copy small {
  color: var(--pos-muted);
  font-size: 11px;
}

body.pos-fullscreen .pos-products.view-list .pos-product-list-price {
  color: var(--pos-ink);
  font-weight: 800;
}

body.pos-fullscreen .pos-recent-sales {
  display: none;
}

body.pos-fullscreen .pos-app-ticket {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--pos-panel);
  color: var(--pos-ink);
  box-shadow: none;
}

body.pos-fullscreen .pos-app-ticket-head {
  grid-row: 1;
  min-height: 64px;
  padding: 9px 12px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--pos-line);
  background: #fff;
}

body.pos-fullscreen .pos-app-ticket-head > div:first-child {
  min-width: 0;
}

body.pos-fullscreen .pos-ticket-order-number {
  display: block;
  margin-bottom: 1px;
  color: var(--pos-accent-strong);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

body.pos-fullscreen .pos-app-ticket-head h2 {
  margin: 0;
  overflow: hidden;
  color: var(--pos-ink);
  font-size: 19px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-app-ticket-head p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--pos-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-ticket-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pos-fullscreen .pos-ticket-head-actions .icon-button,
body.pos-fullscreen .pos-ticket-menu summary {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
}

body.pos-fullscreen .pos-ticket-menu {
  position: relative;
}

body.pos-fullscreen .pos-ticket-menu > div {
  position: absolute;
  z-index: 30;
  top: 44px;
  right: 0;
  width: 260px;
  padding: 5px;
  display: grid;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(32, 40, 50, .18);
}

body.pos-fullscreen .pos-ticket-menu > div button {
  min-height: 42px;
  padding: 0 10px;
  justify-content: flex-start;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pos-ink);
}

body.pos-fullscreen .pos-ticket-menu > div button:hover {
  background: var(--pos-hover);
}

body.pos-fullscreen .pos-ticket-menu > div button.danger-text {
  color: #b42318;
}

body.pos-fullscreen .pos-ticket-context {
  grid-row: 2;
  min-height: 52px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--pos-line);
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
}

body.pos-fullscreen .pos-ticket-context > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent-strong);
}

body.pos-fullscreen .pos-ticket-context strong,
body.pos-fullscreen .pos-ticket-context small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-ticket-context strong {
  font-size: 13px;
}

body.pos-fullscreen .pos-ticket-context small {
  margin-top: 2px;
  color: var(--pos-muted);
  font-size: 10px;
}

body.pos-fullscreen .pos-app-start-order {
  grid-row: 3;
  margin: 10px 12px;
  min-height: 56px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  border: 1px solid var(--pos-accent);
  border-radius: 6px;
  background: var(--pos-accent-soft);
  color: var(--pos-ink);
  text-align: left;
}

body.pos-fullscreen .cart-lines {
  grid-row: 4;
  min-height: 0;
  padding: 4px 0;
  overflow-y: auto;
  background: #fff;
}

body.pos-fullscreen .cart-lines > .empty {
  height: 100%;
  min-height: 140px;
  padding: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 0;
  background: #fff;
  color: var(--pos-muted);
  text-align: center;
}

body.pos-fullscreen .cart-line {
  width: 100%;
  min-height: 72px;
  padding: 9px 12px 9px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
  box-shadow: none;
}

body.pos-fullscreen .cart-line > div:first-child {
  min-width: 0;
}

body.pos-fullscreen .cart-line > div:first-child strong,
body.pos-fullscreen .cart-line > div:first-child span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .cart-line > div:first-child strong {
  color: var(--pos-ink);
  font-size: 13px;
}

body.pos-fullscreen .cart-line > div:first-child span {
  margin-top: 3px;
  color: var(--pos-muted);
  font-size: 10px;
}

body.pos-fullscreen .cart-line > strong {
  color: var(--pos-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.pos-fullscreen .cart-line > svg {
  width: 20px;
  height: 20px;
  color: var(--pos-muted);
}

body.pos-fullscreen .cart-line:hover,
body.pos-fullscreen .cart-line:focus-visible {
  background: var(--pos-hover);
}

body.pos-fullscreen .pos-summary {
  grid-row: 5;
  padding: 8px 14px;
  border-top: 1px solid var(--pos-line);
  background: #fafbfc;
}

body.pos-fullscreen .pos-summary > div {
  min-height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pos-muted);
  font-size: 12px;
}

body.pos-fullscreen .pos-summary > div.grand {
  min-height: 36px;
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid var(--pos-line);
  color: var(--pos-ink);
  font-size: 19px;
  font-weight: 850;
}

body.pos-fullscreen .restaurant-order-actions {
  display: none;
}

body.pos-fullscreen .pos-ticket-actions {
  grid-row: 6;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38% 62%;
  border-top: 1px solid var(--pos-line);
  background: #fff;
}

body.pos-fullscreen .pos-ticket-actions > button {
  min-width: 0;
  min-height: 64px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--pos-muted);
  box-shadow: none;
}

body.pos-fullscreen .pos-ticket-actions > button + button {
  border-left: 1px solid var(--pos-line);
}

body.pos-fullscreen .pos-ticket-actions > button.pos-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pos-accent);
  color: #fff;
}

body.pos-fullscreen .pos-ticket-actions > button.pos-pay strong {
  max-width: 64%;
  overflow: hidden;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-register-state {
  grid-row: 7;
  min-height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--pos-line);
  background: #fff;
  color: var(--pos-muted);
  font-size: 9px;
  font-weight: 700;
}

body.pos-fullscreen .pos-register-state.open {
  color: #16744b;
}

body.pos-fullscreen .pos-register-state svg {
  width: 13px;
  height: 13px;
}

body.pos-fullscreen .pos-app-bottom-categories {
  min-height: 72px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border-top: 1px solid var(--pos-line);
  background: #fff;
  scrollbar-width: thin;
}

body.pos-fullscreen .pos-app-bottom-categories button {
  flex: 0 0 154px;
  min-width: 154px;
  min-height: 56px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 16px minmax(88px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
}

body.pos-fullscreen .pos-app-bottom-categories button:not(:first-child) {
  flex-basis: 200px;
  min-width: 184px;
}

body.pos-fullscreen .pos-app-bottom-categories button.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent-soft);
  box-shadow: inset 0 -2px 0 var(--pos-accent);
}

body.pos-fullscreen .pos-app-bottom-categories .pos-category-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--category-color, var(--pos-accent));
}

body.pos-fullscreen .pos-app-bottom-categories .pos-category-label {
  width: auto;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pos-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-app-bottom-categories strong {
  color: var(--pos-muted);
  font-size: 11px;
}

/* Shared full-screen POS dialogs */
body.pos-fullscreen dialog[class*="pos-"] {
  color: var(--pos-ink);
}

.modal.pos-orders-modal,
.modal.pos-checkout-modal,
.modal.pos-ticket-split-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--pos-bg, #eef1f4);
}

.modal.pos-orders-modal::backdrop,
.modal.pos-checkout-modal::backdrop,
.modal.pos-ticket-split-modal::backdrop {
  background: rgba(32, 40, 50, .24);
}

.modal.pos-orders-modal > .modal-inner,
.modal.pos-ticket-split-modal > .modal-inner {
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 60px;
  overflow: hidden;
  border-radius: 0;
  background: var(--pos-bg, #eef1f4);
}

.modal.pos-orders-modal .modal-head,
.modal.pos-ticket-split-modal .modal-head {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-orders-modal .modal-head > div {
  flex: 1;
}

.modal.pos-orders-modal .modal-head h2,
.modal.pos-ticket-split-modal .modal-head h2 {
  margin: 0;
  color: var(--pos-ink, #202832);
  font-size: 21px;
}

.modal.pos-orders-modal .modal-eyebrow,
.modal.pos-ticket-split-modal .modal-eyebrow {
  color: var(--pos-accent-strong, #bd8400);
}

.modal.pos-orders-modal .modal-head .field-hint {
  margin: 2px 0 0;
  color: var(--pos-muted, #657181);
  font-size: 11px;
}

.modal.pos-orders-modal .pos-orders-content {
  min-height: 0;
  padding: 14px 18px;
  overflow: auto;
  background: var(--pos-bg, #eef1f4);
}

.modal.pos-orders-modal .pos-orders-new-order {
  width: 100%;
  min-height: 58px;
  margin: 0 0 12px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pos-accent, #e7aa18);
  border-radius: 6px;
  background: var(--pos-accent-soft, #fff7df);
  color: var(--pos-ink, #202832);
  text-align: left;
}

.modal.pos-orders-modal .pos-orders-new-order > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 6px;
  background: #fff;
  color: var(--pos-accent-strong, #bd8400);
}

.modal.pos-orders-modal .pos-orders-new-order strong,
.modal.pos-orders-modal .pos-orders-new-order small {
  grid-column: 2;
}

.modal.pos-orders-modal .pos-orders-new-order small {
  color: var(--pos-muted, #657181);
}

.modal.pos-orders-modal .pos-orders-toolbar {
  min-height: 52px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal.pos-orders-modal .pos-orders-sort {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.modal.pos-orders-modal .pos-orders-sort button {
  min-width: 105px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--pos-muted, #657181);
}

.modal.pos-orders-modal .pos-orders-sort button + button {
  border-left: 1px solid var(--pos-line, #d9e0e7);
}

.modal.pos-orders-modal .pos-orders-sort button.active {
  background: var(--pos-accent, #e7aa18);
  color: #17140c;
}

.modal.pos-orders-modal .pos-orders-search {
  width: min(380px, 40vw);
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-muted, #657181);
}

.modal.pos-orders-modal .pos-orders-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--pos-ink, #202832);
  box-shadow: none;
}

.pos-open-order-table {
  overflow: hidden;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
}

.pos-open-order-table-head,
.pos-open-order-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(130px, .7fr) 150px 54px;
  align-items: center;
}

.pos-open-order-table-head {
  min-height: 42px;
  padding: 0 8px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #f7f8fa;
  color: var(--pos-muted, #657181);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pos-open-order-row {
  min-height: 66px;
  padding: 0 8px;
  border-bottom: 1px solid #edf0f3;
  color: var(--pos-ink, #202832);
}

.pos-open-order-row:last-child {
  border-bottom: 0;
}

.pos-open-order-row:hover {
  background: #fafbfc;
}

.pos-open-order-row.selected {
  background: var(--pos-accent-soft, #fff7df);
}

.pos-order-check {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-muted, #657181);
}

.pos-order-check.checked {
  color: var(--pos-accent-strong, #bd8400);
}

.pos-order-main {
  min-width: 0;
  display: grid;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.pos-order-main strong,
.pos-order-main small,
.pos-order-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-order-main strong {
  color: var(--pos-ink, #202832);
  font-size: 14px;
}

.pos-order-main small,
.pos-order-cell {
  color: var(--pos-muted, #657181);
  font-size: 11px;
}

.pos-order-amount {
  color: var(--pos-ink, #202832);
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.pos-open-order-row > .icon-button {
  justify-self: end;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-orders-modal .modal-actions {
  min-height: 60px;
  margin: 0;
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.pos-orders-selection-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-orders-selection-actions > span {
  margin-right: 4px;
  color: var(--pos-muted, #657181);
  font-size: 12px;
  font-weight: 750;
}

.pos-orders-selection-actions button {
  min-height: 40px;
}

.pos-orders-selection-actions .danger-text {
  color: #b42318;
}

/* Client picker and editor */
.modal.pos-client-modal {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(70vw, 980px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.modal.pos-client-modal::backdrop {
  background: rgba(32, 40, 50, .56);
}

.modal.pos-client-modal > .modal-inner {
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-rows: 68px 58px 54px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.modal.pos-client-modal .modal-head {
  min-height: 68px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-client-modal .modal-head h2 {
  margin: 0;
  color: var(--pos-ink, #202832);
  font-size: 21px;
}

.modal.pos-client-modal .pos-client-search {
  min-height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  color: var(--pos-muted, #657181);
}

.modal.pos-client-modal .pos-client-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--pos-ink, #202832);
  box-shadow: none;
}

.modal.pos-client-modal .pos-client-create {
  min-height: 54px;
  padding: 0 22px;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 0;
  background: #fff;
  color: var(--pos-green, #2f9f67);
}

.modal.pos-client-modal .pos-client-create span {
  display: grid;
  text-align: left;
}

.modal.pos-client-modal .pos-client-create small {
  color: var(--pos-muted, #657181);
}

.modal.pos-client-modal .pos-client-list {
  min-height: 0;
  padding: 8px 0;
  overflow-y: auto;
  background: #fff;
}

.modal.pos-client-modal .pos-client-list::before {
  content: "Clientes recientes";
  padding: 8px 22px 10px;
  display: block;
  color: var(--pos-muted, #657181);
  font-size: 12px;
  font-weight: 850;
}

.modal.pos-client-modal .pos-client-row {
  width: 100%;
  min-height: 60px;
  padding: 7px 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink, #202832);
  text-align: left;
}

.modal.pos-client-modal .pos-client-row.active {
  background: var(--pos-accent-soft, #fff7df);
}

.modal.pos-client-modal .pos-client-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0f3;
  color: var(--pos-muted, #657181);
  font-weight: 850;
}

.modal.pos-client-modal .pos-client-row strong,
.modal.pos-client-modal .pos-client-row small {
  display: block;
}

.modal.pos-client-modal .pos-client-row small {
  margin-top: 3px;
  color: var(--pos-muted, #657181);
}

.modal.pos-client-modal.client-create-mode > .modal-inner {
  grid-template-rows: minmax(0, 1fr);
}

.modal.pos-client-modal.client-create-mode > .modal-inner > .modal-head,
.modal.pos-client-modal.client-create-mode > .modal-inner > .pos-client-search,
.modal.pos-client-modal.client-create-mode > .modal-inner > .pos-client-create,
.modal.pos-client-modal.client-create-mode > .modal-inner > .pos-client-list {
  display: none;
}

.pos-client-create-form {
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  overflow: hidden;
}

.pos-client-create-form[hidden] {
  display: none;
}

.pos-client-create-head {
  min-height: 68px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.pos-client-create-head h2 {
  margin: 0;
  color: var(--pos-ink, #202832);
  font-size: 21px;
}

.pos-text-action {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--pos-green, #2f9f67);
  font-weight: 850;
  text-transform: uppercase;
}

.pos-client-fields {
  min-height: 0;
  padding: 22px 28px 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px 28px;
  overflow-y: auto;
}

.pos-client-fields label {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  color: var(--pos-muted, #657181);
}

.pos-client-fields label:not(.span-2) {
  grid-template-columns: 1fr;
  padding-left: 44px;
}

.pos-client-fields label.span-2 {
  grid-column: 1 / -1;
}

.pos-client-fields label > svg {
  margin-bottom: 11px;
  color: var(--pos-ink, #202832);
}

body.pos-fullscreen .pos-service-picker {
  position: relative;
  min-width: 0;
}

body.pos-fullscreen .pos-service-picker > summary {
  min-height: 62px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #f8fafb;
  color: var(--pos-ink, #202832);
  cursor: pointer;
  list-style: none;
}

body.pos-fullscreen .pos-service-picker > summary::-webkit-details-marker {
  display: none;
}

body.pos-fullscreen .pos-service-picker > summary > svg:first-child {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 6px;
  background: #e9f0f5;
}

body.pos-fullscreen .pos-service-picker > summary strong,
body.pos-fullscreen .pos-service-picker > summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-fullscreen .pos-service-picker > summary small {
  margin-top: 3px;
  color: var(--pos-muted, #657181);
  font-size: 11px;
}

body.pos-fullscreen .pos-service-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(32 40 50 / 16%);
}

body.pos-fullscreen .pos-service-options button {
  min-height: 46px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pos-ink, #202832);
  text-align: left;
}

body.pos-fullscreen .pos-service-options button:hover,
body.pos-fullscreen .pos-service-options button.active {
  background: var(--pos-accent-soft, #fff7df);
}

.pos-assign-list button span,
.pos-assign-list button strong,
.pos-assign-list button small {
  min-width: 0;
  display: block;
}

.pos-assign-list button small {
  margin-top: 3px;
  color: var(--pos-muted, #657181);
}

.pos-client-fields label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 11px;
}

.pos-client-fields input,
.pos-client-fields textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #9ba5b1;
  border-radius: 0;
  background: transparent;
  color: var(--pos-ink, #202832);
  box-shadow: none;
}

/* Checkout */
.modal.pos-checkout-modal > .modal-inner {
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-columns: clamp(330px, 28vw, 470px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0;
  background: var(--pos-bg, #eef1f4);
}

.modal.pos-checkout-modal .pos-checkout-ticket-summary {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-checkout-modal .pos-checkout-pane {
  min-width: 0;
  min-height: 0;
  padding: 0 18px 82px;
  overflow-y: auto;
  scroll-padding-bottom: 90px;
  background: var(--pos-bg, #eef1f4);
}

.modal.pos-checkout-modal .modal-head {
  min-height: 64px;
  margin: 0 -18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-checkout-modal .modal-head h2 {
  margin: 0;
  color: var(--pos-ink, #202832);
  font-size: 20px;
}

.modal.pos-checkout-modal .pos-checkout-total {
  min-height: 118px;
  margin: 0 -18px;
  padding: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-checkout-modal .pos-checkout-total span {
  color: var(--pos-muted, #657181);
  font-size: 12px;
}

.modal.pos-checkout-modal .pos-checkout-total strong {
  margin-top: 5px;
  color: var(--pos-ink, #202832);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
}

.modal.pos-checkout-modal .pos-checkout-order-actions,
.modal.pos-checkout-modal .pos-checkout-payment-mode {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.modal.pos-checkout-modal .pos-checkout-order-actions button,
.modal.pos-checkout-modal .pos-checkout-payment-mode button {
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-checkout-modal .pos-checkout-order-actions button.active,
.modal.pos-checkout-modal .pos-checkout-payment-mode button.active {
  border-color: var(--pos-accent, #e7aa18);
  box-shadow: inset 0 -2px 0 var(--pos-accent, #e7aa18);
}

.modal.pos-checkout-modal .pos-checkout-order-actions button span {
  display: grid;
  text-align: left;
}

.modal.pos-checkout-modal .pos-checkout-order-actions button small {
  color: var(--pos-muted, #657181);
}

.modal.pos-checkout-modal .pos-checkout-section {
  margin-top: 14px;
}

.modal.pos-checkout-modal .pos-checkout-section h3 {
  margin: 0 0 8px;
  color: var(--pos-ink, #202832);
  font-size: 12px;
}

.modal.pos-checkout-modal .pos-payment-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.modal.pos-checkout-modal .pos-payment-choices button {
  min-height: 62px;
  padding: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-checkout-modal .pos-payment-choices button.active {
  border-color: var(--pos-accent, #e7aa18);
  box-shadow: inset 0 -2px 0 var(--pos-accent, #e7aa18);
}

.modal.pos-checkout-modal .pos-checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal.pos-checkout-modal .pos-quick-cash {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.modal.pos-checkout-modal .pos-quick-cash button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-checkout-modal .pos-tender-input {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  color: var(--pos-muted, #657181);
  font-size: 11px;
}

.modal.pos-checkout-modal .pos-tender-input input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink, #202832);
  font-size: 24px;
  font-weight: 850;
  text-align: right;
}

.modal.pos-checkout-modal .pos-mixed-payment-rows {
  display: grid;
  gap: 8px;
}

.modal.pos-checkout-modal .pos-mixed-payment-row {
  min-height: 70px;
  padding: 9px;
  display: grid;
  grid-template-columns: 38px minmax(170px, 1fr) minmax(150px, .8fr) 40px;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
}

.modal.pos-checkout-modal .pos-mixed-payment-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 5px;
  background: #edf0f3;
  color: var(--pos-ink, #202832);
  font-weight: 850;
}

.modal.pos-checkout-modal .pos-mixed-payment-row label {
  display: grid;
  gap: 3px;
  color: var(--pos-muted, #657181);
  font-size: 10px;
}

.modal.pos-checkout-modal .pos-mixed-payment-row select,
.modal.pos-checkout-modal .pos-mixed-payment-row input {
  min-height: 40px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 5px;
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-checkout-modal .pos-mixed-payment-balance {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pos-line, #d9e0e7);
  color: var(--pos-ink, #202832);
}

.modal.pos-checkout-modal .pos-checkout-details {
  margin-top: 14px;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
}

.modal.pos-checkout-modal .pos-checkout-details summary {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pos-ink, #202832);
  cursor: pointer;
}

.modal.pos-checkout-modal .pos-checkout-details > div {
  padding: 12px;
}

.modal.pos-checkout-modal .pos-checkout-hint {
  min-height: 22px;
  margin: 10px 0;
  color: #b42318;
}

.modal.pos-checkout-modal .pos-checkout-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.modal.pos-checkout-modal .pos-checkout-result > div {
  min-height: 56px;
  padding: 8px 12px;
  display: grid;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
}

.modal.pos-checkout-modal .pos-checkout-result span {
  color: var(--pos-muted, #657181);
  font-size: 10px;
}

.modal.pos-checkout-modal .pos-checkout-result strong {
  color: var(--pos-ink, #202832);
  font-size: 18px;
}

.modal.pos-checkout-modal .pos-checkout-actions {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: clamp(330px, 28vw, 470px);
  min-height: 68px;
  margin: 0;
  padding: 9px 18px calc(9px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
}

.modal.pos-checkout-modal .pos-checkout-actions button {
  min-height: 48px;
}

.modal.pos-checkout-modal .pos-checkout-actions .primary {
  min-width: 180px;
  background: var(--pos-accent, #e7aa18);
  color: #17140c;
  box-shadow: none;
}

.pos-checkout-ticket-head {
  min-height: 82px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
}

.pos-checkout-ticket-head strong,
.pos-checkout-ticket-head small {
  display: block;
}

.pos-checkout-ticket-head strong {
  color: var(--pos-ink, #202832);
  font-size: 18px;
}

.pos-checkout-ticket-head small {
  margin-top: 4px;
  color: var(--pos-muted, #657181);
}

.pos-checkout-ticket-lines {
  min-height: 0;
}

.pos-checkout-ticket-line {
  min-height: 56px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
}

.pos-checkout-ticket-line > span {
  min-width: 0;
}

.pos-checkout-ticket-line strong,
.pos-checkout-ticket-line small {
  display: block;
}

.pos-checkout-ticket-line small {
  color: var(--pos-muted, #657181);
}

.pos-checkout-ticket-totals {
  padding: 12px 18px;
  border-top: 1px solid var(--pos-line, #d9e0e7);
}

/* Real open-ticket split board */
.modal.pos-ticket-split-modal > .modal-inner {
  grid-template-rows: 64px minmax(0, 1fr);
}

.modal.pos-ticket-split-modal .modal-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  justify-content: initial;
}

@media (max-height: 820px) and (min-width: 721px) {
  .modal.pos-checkout-modal .pos-checkout-total {
    min-height: 90px;
    padding: 10px 18px;
  }

  .modal.pos-checkout-modal .pos-checkout-total strong {
    margin-top: 3px;
    font-size: 42px;
  }

  .modal.pos-checkout-modal .pos-checkout-order-actions,
  .modal.pos-checkout-modal .pos-checkout-payment-mode {
    margin-top: 7px;
    gap: 6px;
  }

  .modal.pos-checkout-modal .pos-checkout-order-actions button,
  .modal.pos-checkout-modal .pos-checkout-payment-mode button {
    min-height: 46px;
    padding: 5px 10px;
  }

  .modal.pos-checkout-modal .pos-checkout-section {
    margin-top: 8px;
  }

  .modal.pos-checkout-modal .pos-checkout-section h3 {
    margin-bottom: 5px;
  }

  .modal.pos-checkout-modal .pos-payment-choices {
    gap: 6px;
  }

  .modal.pos-checkout-modal .pos-payment-choices button {
    min-height: 44px;
    padding: 4px 8px;
  }

  .modal.pos-checkout-modal .pos-quick-cash button {
    min-height: 30px;
  }

  .modal.pos-checkout-modal .pos-tender-input {
    margin-top: 5px;
  }

  .modal.pos-checkout-modal .pos-tender-input input {
    min-height: 46px;
    font-size: 21px;
  }
}

.pos-ticket-split-board {
  min-height: 0;
  padding: 16px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  background: var(--pos-bg, #eef1f4);
}

.pos-ticket-split-column {
  width: min(430px, 38vw);
  min-width: 330px;
  min-height: 0;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 68px;
  overflow: hidden;
  border: 1px solid var(--pos-line, #d9e0e7);
  border-radius: 6px;
  background: #fff;
}

.pos-ticket-split-column > header {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
}

.pos-ticket-split-column > header h3 {
  margin: 0;
  overflow: hidden;
  color: var(--pos-ink, #202832);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-ticket-split-column > header > span {
  display: flex;
  gap: 4px;
}

.pos-ticket-split-column > header button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-muted, #657181);
}

.pos-ticket-split-items {
  min-height: 0;
  overflow-y: auto;
}

.pos-ticket-split-item {
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink, #202832);
  text-align: left;
}

.pos-ticket-split-item.selected {
  background: var(--pos-accent-soft, #fff7df);
}

.pos-ticket-split-item > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #a8b1bc;
  border-radius: 4px;
  color: transparent;
}

.pos-ticket-split-item.selected > span:first-child {
  border-color: var(--pos-accent, #e7aa18);
  background: var(--pos-accent, #e7aa18);
  color: #17140c;
}

.pos-ticket-split-item strong,
.pos-ticket-split-item small {
  display: block;
}

.pos-ticket-split-item small {
  margin-top: 2px;
  color: var(--pos-muted, #657181);
}

.pos-ticket-split-empty {
  height: 100%;
  min-height: 160px;
  padding: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--pos-muted, #657181);
  text-align: center;
}

.pos-ticket-split-column > footer {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--pos-line, #d9e0e7);
  background: #fafbfc;
}

.pos-ticket-split-column > footer > span {
  display: grid;
}

.pos-ticket-split-column > footer small {
  color: var(--pos-muted, #657181);
}

.pos-ticket-split-column > footer button {
  min-height: 46px;
  background: var(--pos-accent, #e7aa18);
  border-color: var(--pos-accent, #e7aa18);
  color: #17140c;
}

.pos-ticket-split-add {
  width: 76px;
  min-width: 76px;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px dashed #aab4bf;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  color: var(--pos-muted, #657181);
}

.pos-ticket-split-add svg {
  width: 30px;
  height: 30px;
}

/* Assignment */
.modal.pos-assign-modal {
  width: min(520px, 92vw);
  max-width: 520px;
  border: 0;
  border-radius: 7px;
  background: #fff;
}

.modal.pos-assign-modal .modal-inner {
  width: 100%;
  max-height: min(80dvh, 700px);
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.modal.pos-assign-modal .modal-head {
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
}

.pos-assign-list {
  max-height: calc(80dvh - 64px);
  padding: 8px 0;
  overflow-y: auto;
}

.pos-assign-list button {
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink, #202832);
}

/* Naming dialog */
.modal.pos-name-modal {
  width: min(620px, 92vw);
  border: 0;
  border-radius: 7px;
  background: #fff;
}

.modal.pos-name-modal .modal-inner {
  width: 100%;
  padding: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-name-modal .modal-head,
.modal.pos-name-modal .field-hint,
.modal.pos-name-modal .pos-name-input {
  margin: 0;
  padding-right: 18px;
  padding-left: 18px;
}

.modal.pos-name-modal .modal-head {
  min-height: 64px;
  border-bottom: 1px solid var(--pos-line, #d9e0e7);
}

.modal.pos-name-modal .field-hint {
  padding-top: 14px;
}

.modal.pos-name-modal .pos-name-input {
  margin-top: 12px;
}

.modal.pos-name-modal .pos-name-input input,
.modal.pos-name-modal .pos-name-input textarea {
  width: 100%;
  border: 1px solid var(--pos-line, #d9e0e7);
  background: #fff;
  color: var(--pos-ink, #202832);
}

.modal.pos-name-modal .modal-actions {
  margin-top: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--pos-line, #d9e0e7);
}

/* Final light POS interaction layer */
body.pos-fullscreen .pos-app-rail-actions > button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

body.pos-fullscreen .pos-app-rail-actions > button strong {
  min-width: 26px;
  background: #26313b;
  color: #fff;
  text-align: center;
}

body.pos-fullscreen .pos-app-rail-actions > button.primary,
body.pos-fullscreen .pos-ticket-actions > button.pos-pay,
body.pos-fullscreen .pos-text-action {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

body.pos-fullscreen .pos-app-rail-actions > button.pos-send-kitchen {
  border-color: #b9e1ce;
  background: #eaf8f1;
  color: #146c49;
}

body.pos-fullscreen .pos-app-rail-actions > button.pos-send-kitchen:hover,
body.pos-fullscreen .pos-app-rail-actions > button.pos-send-kitchen:focus-visible {
  border-color: #78c9a2;
  background: #d8f2e5;
}

body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-actionbar .pos-app-rail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 860px);
}

body.pos-fullscreen #view-sales .pos-webapp-shell.counter .pos-app-actionbar .pos-app-rail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 580px);
}

/* Catalog management stays available from the register for authorized staff. */
body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
  flex-wrap: nowrap;
}

body.pos-fullscreen #view-sales .pos-catalog-action {
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.pos-fullscreen #view-sales .pos-catalog-action:hover,
body.pos-fullscreen #view-sales .pos-catalog-action:focus-visible {
  border-color: var(--pos-accent);
  background: var(--pos-hover);
}

body.pos-fullscreen #view-sales .pos-catalog-action-product {
  border-color: #b9e1ce;
  background: var(--pos-green-soft);
  color: #146c49;
}

body.pos-fullscreen #view-sales .pos-catalog-action-stock {
  border-color: #ecd18a;
  background: #fff8df;
  color: #805d00;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-actionbar .pos-app-rail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


body.pos-fullscreen .pos-app-rail-actions > button.primary strong {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

body.pos-fullscreen #view-sales .pos-app-rail-actions > button {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--pos-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pos-ink);
  font-size: 14px;
}

body.pos-fullscreen #view-sales .pos-app-rail-actions > button.primary {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

body.pos-fullscreen #view-sales .pos-app-rail-actions > button.primary strong {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product:hover {
  border-color: var(--pos-accent);
}

body.pos-fullscreen #view-sales .pos-app-bottom-categories button.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent-soft);
  box-shadow: inset 0 -2px 0 var(--pos-accent);
}

body.pos-fullscreen #view-sales .pos-app-start-order {
  border-color: #a8d4ae;
  background: var(--pos-accent-soft);
  color: var(--pos-ink);
}

body.pos-fullscreen #view-sales .cart-line {
  min-height: 72px;
  padding: 9px 12px 9px 16px;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink);
  box-shadow: none;
}

body.pos-fullscreen #view-sales .cart-line > strong {
  color: var(--pos-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.pos-fullscreen #view-sales .cart-line:hover,
body.pos-fullscreen #view-sales .cart-line:focus-visible {
  border-color: #edf0f3;
  background: var(--pos-hover);
  transform: none;
}

body.pos-fullscreen .pos-service-picker {
  min-width: 0;
  grid-row: 2;
}

/* Line editor */
.modal.pos-line-modal {
  width: min(560px, 94vw);
  max-width: 560px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--pos-ink, #1f2933);
}

.modal.pos-line-modal > .modal-inner {
  width: 100%;
  max-height: min(82dvh, 680px);
  padding: 0;
  display: grid;
  grid-template-rows: 68px minmax(240px, 1fr) 68px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.modal.pos-line-modal .modal-head {
  min-height: 68px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pos-line, #d6dde3);
}

.modal.pos-line-modal .modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.pos-line-content {
  min-height: 0;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.pos-line-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.pos-line-product > span:first-child {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--pos-accent-soft, #edf7ee);
  color: var(--pos-accent-strong, #2e7d32);
}

.pos-line-product > span:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-line-product > span:first-child svg {
  width: 30px;
  height: 30px;
}

.pos-line-product > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pos-line-product > div strong,
.pos-line-product > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-line-product > div strong {
  font-size: 20px;
}

.pos-line-product > div small {
  color: var(--pos-muted, #66727f);
  font-size: 13px;
}

.pos-line-product > strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-line-quantity {
  display: grid;
  grid-template-columns: 64px minmax(92px, 140px) 64px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.pos-line-quantity button {
  width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  border: 1px solid var(--pos-line, #d6dde3);
  border-radius: 50%;
  background: #fff;
  color: var(--pos-ink, #1f2933);
}

.pos-line-quantity strong {
  font-size: 34px;
  text-align: center;
}

.pos-line-quantity > div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.pos-line-quantity > div span {
  color: var(--pos-muted, #66727f);
  font-size: 13px;
}

.pos-line-total {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pos-line, #d6dde3);
  font-size: 16px;
}

.pos-line-total strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.modal.pos-line-modal .modal-actions {
  min-height: 68px;
  margin: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
}

.modal.pos-line-modal .modal-actions button {
  min-height: 46px;
}

.modal.pos-line-modal .modal-actions .danger-text {
  color: #b42318;
}

body.pos-fullscreen dialog[class*="pos-"] button.primary,
body.pos-fullscreen dialog[class*="pos-"] .pos-text-action,
.modal.pos-line-modal .modal-actions button.primary {
  border-color: var(--pos-accent, #43a047);
  background: var(--pos-accent, #43a047);
  color: #fff;
}

.modal.pos-line-modal .modal-head .icon-button {
  border-color: var(--pos-line, #d6dde3);
  background: #fff;
  color: var(--pos-ink, #1f2933);
}

/* Open orders remains inside the POS shell, below the persistent top bars. */
.modal.pos-orders-modal {
  inset: var(--pos-workspace-top, 112px) 0 0;
  width: 100vw;
  height: calc(100dvh - var(--pos-workspace-top, 112px));
  background: var(--pos-bg, #f1f3f5);
}

.modal.pos-orders-modal::backdrop {
  background: transparent;
}

.modal.pos-orders-modal > .modal-inner {
  height: 100%;
  grid-template-rows: 70px minmax(0, 1fr) 64px;
}

.modal.pos-orders-modal .modal-head {
  min-height: 70px;
  padding: 0 22px;
}

.modal.pos-orders-modal .modal-head h2 {
  font-size: 22px;
}

.modal.pos-orders-modal .pos-orders-content {
  padding: 18px 22px;
}

.modal.pos-orders-modal .pos-orders-toolbar {
  min-height: 56px;
  margin-bottom: 12px;
}

.modal.pos-orders-modal .pos-orders-sort button {
  min-width: 118px;
  min-height: 50px;
  padding: 0 18px;
  font-size: 14px;
}

.modal.pos-orders-modal .pos-orders-sort button.active {
  background: var(--pos-accent, #43a047);
  color: #fff;
}

.modal.pos-orders-modal .pos-orders-search {
  width: min(420px, 42vw);
  min-height: 50px;
  padding: 0 14px;
}

.modal.pos-orders-modal .pos-orders-search input {
  font-size: 15px;
}

.modal.pos-orders-modal .pos-open-order-table-head,
.modal.pos-orders-modal .pos-open-order-row {
  grid-template-columns: 58px minmax(260px, 1.5fr) minmax(160px, .75fr) minmax(150px, .7fr) 170px 64px;
}

.modal.pos-orders-modal .pos-open-order-table-head {
  min-height: 48px;
  padding: 0 12px;
}

.modal.pos-orders-modal .pos-open-order-row {
  min-height: 78px;
  padding: 0 12px;
}

.modal.pos-orders-modal .pos-order-check {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.modal.pos-orders-modal .pos-order-main {
  min-height: 54px;
  align-content: center;
}

.modal.pos-orders-modal .pos-order-main strong {
  font-size: 16px;
}

.modal.pos-orders-modal .pos-order-main small,
.modal.pos-orders-modal .pos-order-cell {
  font-size: 13px;
}

.modal.pos-orders-modal .pos-order-amount {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.modal.pos-orders-modal .pos-open-order-row > .icon-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
}

.modal.pos-orders-modal .modal-actions {
  min-height: 64px;
  padding-right: 22px;
  padding-left: 22px;
}

/* Loyverse-style split payment: ticket summary, equal portions, one payment at a time. */
.pos-webapp-shell {
  position: relative;
}

.pos-closed-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(241, 243, 245, .96);
  text-align: center;
}

.pos-closed-gate-card {
  width: min(460px, 100%);
  padding: 36px 32px;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--pos-line, #d6dde3);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 41, 51, .12);
}

.pos-closed-gate-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4d3;
  color: #9b6c00;
}

.pos-closed-gate-icon svg {
  width: 30px;
  height: 30px;
}

.pos-closed-gate-eyebrow {
  color: #9b6c00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pos-closed-gate h1 {
  margin: 0;
  color: var(--pos-ink, #1f2933);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.pos-closed-gate p {
  max-width: 340px;
  margin: 0 0 10px;
  color: var(--pos-muted, #66727f);
  line-height: 1.45;
}

.pos-closed-gate-card button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pos-ready-orders {
  border-color: #b9e1ce !important;
  background: #f0faf3 !important;
  color: #16744b !important;
}

.cash-availability-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4e9ee;
}

.cash-availability-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.cash-availability-head > div {
  display: grid;
  gap: 4px;
}

.cash-availability-head strong {
  color: #1f2933;
  font-size: 14px;
}

.cash-availability-head small {
  color: #66727f;
  line-height: 1.35;
}

.cash-availability-list {
  max-height: min(38vh, 360px);
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  border: 1px solid #e4e9ee;
  border-radius: 8px;
  background: #f7f9fb;
}

.cash-availability-item {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: 18px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.cash-availability-item:has(input:checked) {
  border-color: #b9e1ce;
  background: #f0faf3;
}

.cash-availability-item input {
  width: 17px;
  height: 17px;
  accent-color: #43a047;
}

.cash-availability-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf2f6;
  color: #51606d;
}

.cash-availability-mark svg {
  width: 16px;
  height: 16px;
}

.cash-availability-item > span:nth-of-type(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cash-availability-item strong,
.cash-availability-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-availability-item strong {
  color: #1f2933;
  font-size: 12px;
}

.cash-availability-item small {
  color: #71808d;
  font-size: 10px;
}

.cash-availability-item b {
  color: #1f2933;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cash-availability-list {
    grid-template-columns: 1fr;
  }

  .cash-availability-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .cash-availability-head .link-button {
    justify-self: start;
  }
}

.modal.pos-split-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--pos-bg, #f1f3f5);
  color: var(--pos-ink, #1f2933);
}

.modal.pos-split-modal::backdrop {
  background: rgba(31, 41, 51, .28);
}

.modal.pos-split-modal > .modal-inner {
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-columns: clamp(300px, 27vw, 430px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--pos-bg, #f1f3f5);
}

.modal.pos-split-modal .pos-checkout-ticket-summary {
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
  overflow: auto;
  border-right: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
}

.pos-payment-split-pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: 70px 188px minmax(0, 1fr) 68px;
  overflow: hidden;
}

.modal.pos-split-modal .modal-head {
  min-height: 70px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
}

.modal.pos-split-modal .modal-head h2 {
  margin: 1px 0 0;
  font-size: 22px;
}

.pos-payment-split-counter {
  display: grid;
  grid-template-columns: 76px minmax(100px, 150px) 76px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
}

.pos-payment-split-counter > button {
  width: 76px;
  height: 76px;
  min-height: 76px;
  padding: 0;
  border: 1px solid var(--pos-line, #d6dde3);
  border-radius: 50%;
  background: #fff;
  color: var(--pos-ink, #1f2933);
}

.pos-payment-split-counter > div {
  display: grid;
  justify-items: center;
}

.pos-payment-split-counter strong {
  font-size: 50px;
  line-height: 1;
}

.pos-payment-split-counter span {
  margin-top: 6px;
  color: var(--pos-muted, #66727f);
  font-size: 15px;
}

.pos-payment-split-rows {
  min-height: 0;
  padding: 18px 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.pos-payment-split-row {
  min-height: 84px;
  padding: 12px;
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) minmax(160px, .75fr) 116px;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--pos-line, #d6dde3);
  border-radius: 6px;
  background: #fff;
}

.pos-payment-split-row.paid {
  border-color: #a9d7b0;
  background: var(--pos-accent-soft, #edf7ee);
}

.pos-payment-split-remove {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
  color: #b42318;
}

.pos-payment-split-row label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--pos-muted, #66727f);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pos-payment-split-row select,
.pos-payment-split-row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--pos-line, #d6dde3);
  border-radius: 5px;
  background: #fff;
  color: var(--pos-ink, #1f2933);
  font-size: 16px;
}

.pos-payment-split-row input {
  padding: 0 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pos-payment-split-pay {
  min-height: 48px;
  border-color: var(--pos-accent, #43a047);
  background: var(--pos-accent, #43a047);
  color: #fff;
  font-weight: 850;
}

body.pos-force-light .modal.pos-split-modal button.pos-payment-split-pay:not(.paid) {
  border-color: var(--pos-accent, #43a047);
  background: var(--pos-accent, #43a047);
  color: #fff;
}

.pos-payment-split-pay.paid {
  border-color: #92c99a;
  background: #dff1e2;
  color: var(--pos-accent-strong, #2e7d32);
}

body.pos-force-light .modal.pos-split-modal button.pos-payment-split-pay.paid {
  border-color: #92c99a;
  background: #dff1e2;
  color: var(--pos-accent-strong, #2e7d32);
}

.modal.pos-split-modal #posSplitTicketSummary .pos-checkout-ticket-head > span {
  color: var(--pos-accent-strong, #2e7d32);
}

body.pos-force-light dialog[class*="pos-"] button:focus-visible,
body.pos-force-light dialog[class*="pos-"] summary:focus-visible {
  outline-color: rgba(67, 160, 71, .42);
}

.pos-payment-split-footer {
  min-height: 68px;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pos-line, #d6dde3);
  background: #fff;
  font-size: 16px;
}

.pos-payment-split-footer strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

body.kds-fullscreen,
body.kds-fullscreen .app-shell,
body.kds-fullscreen .main,
body.kds-fullscreen #view-sales {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #101418;
  color: #f7fafc;
}

body.kds-fullscreen #view-sales {
  padding: 0;
}

body.kds-fullscreen .sidebar,
body.kds-fullscreen .topbar {
  display: none;
}

body.kds-fullscreen .main {
  grid-column: 1 / -1;
  padding: 0;
}

.kds-shell {
  --kds-panel: #171d23;
  --kds-panel-strong: #202832;
  --kds-line: #303a45;
  --kds-muted: #9da8b3;
  --kds-accent: #e7aa18;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px 64px minmax(0, 1fr);
  background: #101418;
  color: #f7fafc;
}

.kds-header,
.kds-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--kds-line);
  background: var(--kds-panel);
}

.kds-header {
  padding: 0 18px;
}

.kds-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kds-brand > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2b2414;
  color: var(--kds-accent);
}

.kds-brand h2,
.kds-brand p {
  margin: 0;
}

.kds-brand h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.kds-brand p {
  margin-top: 2px;
  color: var(--kds-muted);
  font-size: 12px;
  font-weight: 700;
}

.kds-header-actions,
.kds-filters,
.kds-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kds-header-actions button,
.kds-filters button {
  min-height: 40px;
  border: 1px solid var(--kds-line);
  border-radius: 8px;
  background: #11171d;
  color: #f7fafc;
}

.kds-header-actions button {
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

.kds-filters button {
  padding: 0 14px;
  font-weight: 800;
}

.kds-filters button.active {
  border-color: var(--kds-accent);
  background: var(--kds-accent);
  color: #151008;
}

.kds-toolbar {
  padding: 10px 18px;
}

.kds-metrics > div {
  min-width: 104px;
  padding: 5px 12px;
  display: grid;
  gap: 1px;
  border-left: 1px solid var(--kds-line);
}

.kds-metrics span {
  color: var(--kds-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.kds-metrics strong {
  font-size: 18px;
}

.kds-board {
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  overflow: hidden;
}

.kds-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  border: 1px solid var(--kds-line);
  border-radius: 8px;
  background: #12181e;
  overflow: hidden;
}

.kds-column > header {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--kds-line);
  background: var(--kds-panel-strong);
}

.kds-column > header span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.kds-column > header strong {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #11171d;
  color: #fff;
}

.kds-column.new > header span {
  color: #f8ca58;
}

.kds-column.progress > header span {
  color: #77c9ff;
}

.kds-column.ready > header span {
  color: #69db93;
}

.kds-ticket-list {
  min-height: 0;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.kds-ticket {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--kds-line);
  border-radius: 8px;
  background: #f8fafc;
  color: #17202a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
}

.kds-ticket.late {
  border-color: #e05252;
  box-shadow: inset 4px 0 0 #e05252, 0 10px 20px rgba(0, 0, 0, .16);
}

.kds-ticket-head,
.kds-ticket footer,
.kds-ticket-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kds-ticket-head > div {
  min-width: 0;
}

.kds-ticket-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.kds-ticket-head span {
  color: #5d6875;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kds-ticket-head .kds-addition-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0c2;
  color: #8a5a00;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .02em;
}

.kds-ticket-head h2 {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-ticket-head p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #677381;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-ticket-head > strong {
  min-width: 58px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #edf1f5;
  text-align: center;
}

.kds-ticket-lines {
  display: grid;
  gap: 7px;
}

.kds-ticket-lines div {
  align-items: start;
  justify-content: start;
  padding: 8px 9px;
  border-radius: 7px;
  background: #edf1f5;
  font-size: 15px;
  font-weight: 800;
}

.kds-ticket-lines strong {
  min-width: 42px;
  color: #111820;
}

.kds-ticket-lines span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kds-ticket-note {
  margin: 0;
  padding: 9px 10px;
  display: flex;
  gap: 8px;
  border-radius: 7px;
  background: #fff5d6;
  color: #6f4a00;
  font-size: 13px;
  font-weight: 800;
}

.kds-ticket footer {
  padding-top: 2px;
}

.kds-ticket footer > span {
  min-width: 0;
  overflow: hidden;
  color: #657181;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-ticket footer button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #171d23;
  color: #fff;
  font-weight: 900;
}

.kds-ticket footer button:disabled {
  opacity: .65;
}

.kds-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--kds-line);
  border-radius: 8px;
  color: var(--kds-muted);
}

.kds-empty svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 980px) {
  .kds-shell {
    grid-template-rows: 58px auto minmax(0, 1fr);
  }

  .kds-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .kds-filters,
  .kds-metrics {
    overflow-x: auto;
  }

  .kds-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(340px, 1fr);
    overflow: auto;
  }

  .kds-column {
    min-height: 340px;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 58px 54px minmax(0, 1fr) 72px 56px;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    grid-row: 1;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    grid-row: 3;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories {
    grid-row: 4;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch {
    position: static;
    z-index: auto;
    grid-row: 5;
    inset: auto;
    width: auto;
    min-height: 56px;
    margin: 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 0;
    border-bottom: 1px solid var(--pos-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--pos-muted);
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button.active {
    background: var(--pos-ink);
    box-shadow: inset 0 -2px 0 var(--pos-accent);
    color: #fff;
  }

  body.pos-fullscreen .pos-app-layout {
    display: block;
    position: relative;
  }

  body.pos-fullscreen .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen .pos-app-layout > .pos-app-ticket {
    position: absolute;
    inset: 0;
  }

  body.pos-fullscreen .pos-app-layout.mobile-catalog > .pos-app-ticket,
  body.pos-fullscreen .pos-app-layout.mobile-cart > .pos-app-catalog {
    display: none;
  }

  body.pos-fullscreen .pos-app-catalog {
    border-right: 0;
  }

  body.pos-fullscreen .pos-app-ticket {
    width: 100%;
  }

  .modal.pos-client-modal {
    width: min(86vw, 780px);
  }

  .modal.pos-checkout-modal > .modal-inner {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .modal.pos-checkout-modal .pos-checkout-actions {
    left: 280px;
  }

  .pos-open-order-table-head,
  .pos-open-order-row {
    grid-template-columns: 42px minmax(180px, 1fr) minmax(120px, .7fr) 130px 48px;
  }

  .pos-open-order-table-head > :nth-child(4),
  .pos-open-order-row > :nth-child(4) {
    display: none;
  }

  .modal.pos-orders-modal .pos-open-order-table-head,
  .modal.pos-orders-modal .pos-open-order-row {
    grid-template-columns: 54px minmax(220px, 1fr) minmax(145px, .7fr) 150px 60px;
  }

  .modal.pos-orders-modal .pos-open-order-table-head > :nth-child(4),
  .modal.pos-orders-modal .pos-open-order-row > :nth-child(4) {
    display: none;
  }

  .modal.pos-split-modal > .modal-inner {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .pos-payment-split-row {
    grid-template-columns: 48px minmax(145px, 1fr) minmax(130px, .7fr) 104px;
  }
}

@media (max-width: 720px) {
  body.kds-fullscreen,
  body.kds-fullscreen .app-shell,
  body.kds-fullscreen .main,
  body.kds-fullscreen #view-sales {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .kds-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto;
  }

  .kds-header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 58px;
    padding: 8px 10px;
  }

  .kds-brand p,
  .kds-metrics {
    display: none;
  }

  .kds-brand {
    gap: 9px;
  }

  .kds-brand > span {
    width: 36px;
    height: 36px;
  }

  .kds-brand h2 {
    font-size: 18px;
  }

  .kds-header-actions {
    gap: 6px;
  }

  .kds-header-actions button {
    width: 40px;
    min-height: 40px;
  }

  .kds-toolbar {
    padding: 8px 10px;
  }

  .kds-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .kds-filters button {
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    font-size: 12px;
  }

  .kds-board {
    padding: 10px;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
    overflow: visible;
  }

  .kds-column {
    min-height: 0;
    grid-template-rows: 46px auto;
  }

  .kds-ticket-list {
    overflow: visible;
  }

  .kds-ticket {
    gap: 10px;
    padding: 10px;
  }

  .kds-ticket-head h2 {
    font-size: 17px;
  }

  .kds-ticket footer {
    align-items: stretch;
    flex-direction: column;
  }

  .kds-ticket footer button {
    width: 100%;
    justify-content: center;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 58px 70px minmax(0, 1fr) 64px 56px;
  }

  body.pos-fullscreen .pos-app-header {
    padding: 0 10px;
  }

  body.pos-fullscreen .pos-app-title p,
  body.pos-fullscreen .pos-app-status span,
  body.pos-fullscreen .pos-app-register span,
  body.pos-fullscreen .pos-app-rail-metrics {
    display: none;
  }

  body.pos-fullscreen .pos-app-status,
  body.pos-fullscreen .pos-app-register {
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  body.pos-fullscreen .pos-app-actionbar {
    padding: 5px 8px;
  }

  body.pos-fullscreen .pos-app-rail-actions {
    width: 100%;
  }

  body.pos-fullscreen .pos-app-rail-actions > button {
    flex: 1;
  }

  body.pos-fullscreen .pos-app-catalog-top {
    padding: 7px 8px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 94px minmax(0, 1fr);
  }

  body.pos-fullscreen .pos-app-catalog-top > div:first-child {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 40px 40px 40px;
    grid-template-rows: 40px 40px;
    gap: 7px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    grid-column: 2;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button {
    grid-column: 3;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action {
    width: 40px;
    padding: 0;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action-product {
    grid-column: 4;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action-stock {
    grid-column: 5;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action span {
    display: none;
  }

  body.pos-fullscreen .pos-products.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 154px;
  }

  body.pos-fullscreen .pos-products.view-grid .pos-product {
    height: 154px;
    grid-template-rows: 98px minmax(0, 1fr);
  }

  body.pos-fullscreen .pos-products.view-grid .pos-product-media {
    min-height: 98px;
  }

  .modal.pos-client-modal {
    width: 100vw;
  }

  .pos-client-fields {
    grid-template-columns: 1fr;
  }

  .pos-client-fields label,
  .pos-client-fields label.span-2 {
    grid-column: 1;
  }

  .modal.pos-checkout-modal > .modal-inner {
    grid-template-columns: 1fr;
  }

  .modal.pos-checkout-modal .pos-checkout-ticket-summary {
    display: none;
  }

  .modal.pos-checkout-modal .pos-checkout-actions {
    left: 0;
  }

  .modal.pos-checkout-modal .pos-checkout-total {
    min-height: 96px;
  }

  .modal.pos-checkout-modal .pos-checkout-order-actions,
  .modal.pos-checkout-modal .pos-checkout-payment-mode,
  .modal.pos-checkout-modal .pos-payment-choices {
    grid-template-columns: 1fr;
  }

  .modal.pos-checkout-modal .pos-mixed-payment-row {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
  }

  .modal.pos-checkout-modal .pos-mixed-payment-row label {
    grid-column: 2;
  }

  .modal.pos-orders-modal .pos-orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .modal.pos-orders-modal .pos-orders-sort,
  .modal.pos-orders-modal .pos-orders-search {
    width: 100%;
  }

  .modal.pos-orders-modal .pos-orders-sort button {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
    font-size: 12px;
  }

  .pos-open-order-table {
    border: 0;
    background: transparent;
  }

  .pos-open-order-table-head {
    display: none;
  }

  .pos-open-order-row {
    min-height: 84px;
    margin-bottom: 8px;
    padding: 8px;
    grid-template-columns: 36px minmax(0, 1fr) auto 42px;
    border: 1px solid var(--pos-line, #d9e0e7);
    border-radius: 6px;
    background: #fff;
  }

  .pos-open-order-row > :nth-child(3) {
    display: none;
  }

  .pos-order-amount {
    grid-column: 3;
  }

  .pos-open-order-row > .icon-button {
    grid-column: 4;
  }

  .modal.pos-orders-modal {
    inset: var(--pos-workspace-top, 128px) 0 0;
    height: calc(100dvh - var(--pos-workspace-top, 128px));
  }

  .modal.pos-orders-modal > .modal-inner {
    grid-template-rows: 64px minmax(0, 1fr) 62px;
  }

  .modal.pos-orders-modal .modal-head,
  .modal.pos-orders-modal .pos-orders-content,
  .modal.pos-orders-modal .modal-actions {
    padding-right: 10px;
    padding-left: 10px;
  }

  .modal.pos-orders-modal .pos-open-order-table-head {
    display: none;
  }

  .modal.pos-orders-modal .pos-open-order-row {
    min-height: 92px;
    margin-bottom: 9px;
    padding: 9px;
    grid-template-columns: 44px minmax(0, 1fr) auto 50px;
    border: 1px solid var(--pos-line, #d6dde3);
    border-radius: 6px;
    background: #fff;
  }

  .modal.pos-orders-modal .pos-open-order-row > :nth-child(3),
  .modal.pos-orders-modal .pos-open-order-row > :nth-child(4) {
    display: none;
  }

  .modal.pos-orders-modal .pos-order-amount {
    grid-column: 3;
    font-size: 15px;
  }

  .modal.pos-orders-modal .pos-open-order-row > .icon-button {
    grid-column: 4;
  }

  .pos-orders-selection-actions > span {
    display: none;
  }

  .pos-orders-selection-actions button span {
    display: none;
  }

  .pos-ticket-split-board {
    padding: 10px;
  }

  .pos-ticket-split-column {
    width: 82vw;
    min-width: 82vw;
  }

  .modal.pos-line-modal {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .modal.pos-line-modal > .modal-inner {
    height: 100dvh;
    max-height: none;
    grid-template-rows: 64px minmax(0, 1fr) 68px;
    border-radius: 0;
  }

  .pos-line-content {
    padding: 22px;
  }

  .modal.pos-split-modal > .modal-inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .modal.pos-split-modal .pos-checkout-ticket-summary {
    display: none;
  }

  .pos-payment-split-pane {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: 66px 150px minmax(0, 1fr) 64px;
  }

  .modal.pos-split-modal .modal-head {
    min-height: 66px;
    padding: 0 12px;
  }

  .pos-payment-split-counter {
    grid-template-columns: 62px minmax(86px, 120px) 62px;
    gap: 18px;
  }

  .pos-payment-split-counter > button {
    width: 62px;
    height: 62px;
    min-height: 62px;
  }

  .pos-payment-split-counter strong {
    font-size: 42px;
  }

  .pos-payment-split-rows {
    padding: 10px;
  }

  .pos-payment-split-row {
    min-height: 142px;
    padding: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 98px;
    align-items: end;
    gap: 8px;
  }

  .pos-payment-split-row label:first-of-type {
    grid-column: 2 / 4;
  }

  .pos-payment-split-row label:last-of-type {
    grid-column: 2;
  }

  .pos-payment-split-remove {
    width: 44px;
    height: 48px;
    min-height: 48px;
    grid-row: 1 / 3;
    align-self: center;
  }

  .pos-payment-split-pay {
    grid-column: 3;
  }

  .pos-payment-split-footer {
    min-height: 64px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Final mobile register layout. Keep this block last so legacy POS rules cannot
   collapse the touch targets or reintroduce horizontal overflow. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 56px auto minmax(0, 1fr) auto auto;
    overflow: hidden;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    min-height: 56px;
    padding: 0 8px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    gap: 7px;
  }

  body.pos-fullscreen #view-sales .pos-app-title > span {
    width: 30px;
    height: 30px;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2 {
    font-size: 16px;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar {
    min-width: 0;
    gap: 4px;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar > .icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body.pos-fullscreen #view-sales .pos-app-status,
  body.pos-fullscreen #view-sales .pos-app-register {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  body.pos-fullscreen #view-sales .pos-app-status span,
  body.pos-fullscreen #view-sales .pos-app-register span,
  body.pos-fullscreen #view-sales .pos-app-register button {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    min-height: 56px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar::-webkit-scrollbar,
  body.pos-fullscreen #view-sales .pos-app-bottom-categories::-webkit-scrollbar {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions,
  body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-actionbar .pos-app-rail-actions,
  body.pos-fullscreen #view-sales .pos-webapp-shell.counter .pos-app-actionbar .pos-app-rail-actions {
    width: max-content;
    min-width: max-content;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions > button,
  body.pos-fullscreen #view-sales .pos-webapp-shell.restaurant .pos-app-rail-actions > button {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions > button.primary {
    min-width: 142px;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    height: 100%;
    min-height: 0;
    position: relative;
    display: block;
    overflow: hidden;
  }

  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-ticket {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    min-height: 88px;
    padding: 7px 8px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 40px 40px 40px;
    grid-template-rows: 38px 38px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    width: 80px;
    min-width: 80px;
    grid-column: 2;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action {
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button {
    grid-column: 3;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-product {
    grid-column: 4;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-stock {
    grid-column: 5;
    grid-row: 2;
  }

  body.pos-fullscreen #view-sales .pos-catalog-action span {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 148px;
    gap: 8px;
    padding: 8px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
    height: 148px;
    grid-template-rows: 88px minmax(0, 1fr);
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media {
    min-height: 88px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy {
    min-width: 0;
    padding: 5px 8px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-category {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy strong {
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy small:last-child {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories {
    min-height: 66px;
    max-height: 76px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories button,
  body.pos-fullscreen #view-sales .pos-app-bottom-categories button:not(:first-child) {
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    min-height: 54px;
    padding: 6px 8px;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories .pos-category-label {
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-app-bottom-categories strong {
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch {
    position: static;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 0;
    border-top: 1px solid var(--pos-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button {
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid var(--pos-line);
    border-radius: 6px;
    background: #fff;
    color: var(--pos-muted);
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch button.active {
    background: var(--pos-ink);
    box-shadow: inset 0 -2px 0 var(--pos-accent);
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head {
    min-height: 62px;
    padding: 8px 10px;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head h2 {
    font-size: 17px;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head p {
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-head-actions .icon-button,
  body.pos-fullscreen #view-sales .pos-ticket-menu summary {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-context {
    min-height: 52px;
    padding: 6px 10px;
  }

  body.pos-fullscreen #view-sales .cart-lines {
    padding: 0;
  }

  body.pos-fullscreen #view-sales .cart-line {
    min-height: 64px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) minmax(74px, auto) 18px;
    gap: 6px;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child strong {
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child span {
    margin-top: 2px;
    font-size: 10px;
  }

  body.pos-fullscreen #view-sales .cart-line > strong {
    max-width: 28vw;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }

  body.pos-fullscreen #view-sales .pos-summary {
    padding: 5px 10px;
  }

  body.pos-fullscreen #view-sales .pos-summary > div {
    min-height: 21px;
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-summary > div.grand {
    min-height: 32px;
    font-size: 18px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions {
    min-height: 58px;
    grid-template-columns: 42% 58%;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    min-height: 58px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate {
    padding: 16px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card {
    padding: 28px 20px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate h1 {
    font-size: 34px;
  }
}
/* Mobile POS pass: the phone uses a ticket-first workflow with the same
   visual rhythm as the Loyverse register. Keep this block last. */
.pos-mobile-menu-button,
.pos-mobile-ticket-shortcut,
.pos-mobile-back-button,
.pos-mobile-primary-actions,
.pos-mobile-category-picker,
.pos-mobile-drawer,
.pos-mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 720px) {
  body.pos-fullscreen.pos-mobile-menu-open {
    overflow: hidden;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 58px auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    z-index: 8;
    min-height: 58px;
    padding: 0 10px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    background: #70b764;
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-menu-button,
  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut {
    position: relative;
    width: 46px;
    margin-left: auto;
    grid-template-columns: 22px 18px;
    gap: 2px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut strong {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    min-width: 0;
    gap: 0;
  }

  body.pos-fullscreen #view-sales .pos-app-title > span,
  body.pos-fullscreen #view-sales .pos-app-title p {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2 {
    width: auto;
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    content: 'Ticket';
  }

  body.pos-fullscreen #view-sales .pos-app-title h2 {
    font-size: 0;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    font-size: 22px;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar {
    flex: 0 0 auto;
    gap: 4px;
  }

  body.pos-fullscreen #view-sales .pos-app-status,
  body.pos-fullscreen #view-sales .pos-app-register,
  body.pos-fullscreen #view-sales .pos-app-commandbar [data-pos-fullscreen] {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar [data-kds-open-app] {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch,
  body.pos-fullscreen #view-sales .pos-app-bottom-categories {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    z-index: 5;
    min-height: 82px;
    padding: 10px 34px 12px;
    border: 0;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-rail-actions {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-primary-actions {
    width: 100%;
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid #88bd70;
    border-radius: 3px;
    overflow: hidden;
    background: #8bbb57;
  }

  body.pos-fullscreen #view-sales .pos-mobile-primary-actions button {
    min-width: 0;
    min-height: 60px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-right: 1px solid rgba(71, 121, 52, .28);
    border-radius: 0;
    background: #8bbb57;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.pos-fullscreen #view-sales .pos-mobile-primary-actions button:last-child {
    border-right: 0;
  }

  body.pos-fullscreen #view-sales .pos-mobile-primary-actions button:disabled {
    opacity: .58;
  }

  body.pos-fullscreen #view-sales .pos-mobile-primary-actions strong {
    font-size: 15px;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    position: relative;
    min-height: 0;
    height: 100%;
    display: block;
    overflow: hidden;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-ticket {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body.pos-fullscreen #view-sales .pos-app-layout.mobile-catalog > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-cart > .pos-app-catalog {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 60px minmax(0, 1fr);
    border: 0;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    position: relative;
    min-height: 60px;
    padding: 0;
    border-bottom: 1px solid #e0e2e5;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker {
    position: static;
    min-width: 0;
    display: block;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary {
    min-height: 60px;
    padding: 0 52px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f242a;
    font-size: 17px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary::-webkit-details-marker {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary svg {
    color: #747b83;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-options {
    position: absolute;
    z-index: 30;
    top: 60px;
    left: 34px;
    width: min(290px, calc(100vw - 68px));
    padding: 8px 0;
    display: grid;
    border: 1px solid #e0e2e5;
    background: #fff;
    box-shadow: 0 14px 30px rgba(31, 41, 51, .18);
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-options button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #20252a;
    text-align: left;
    font-size: 16px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-options button.active {
    background: #f1f5ee;
    color: #5a9c4e;
    font-weight: 700;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search {
    width: 58px;
    height: 60px;
    min-height: 60px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid #e0e2e5;
    border-radius: 0;
    background: #fff;
    color: #7a8188;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search input {
    position: absolute;
    right: 58px;
    width: 0;
    min-height: 42px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search:focus-within {
    position: absolute;
    z-index: 40;
    top: 9px;
    right: 58px;
    width: calc(100vw - 92px);
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #a7c99d;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search:focus-within input {
    position: static;
    width: 100%;
    min-height: 38px;
    opacity: 1;
    pointer-events: auto;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .icon-segmented,
  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-catalog-action {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid,
  body.pos-fullscreen #view-sales .pos-products.view-list {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 72px;
    align-content: start;
    gap: 0;
    overflow: auto;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-products .pos-product {
    width: 100%;
    height: 72px;
    min-height: 72px;
    padding: 0 34px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #e0e2e5;
    border-radius: 0;
    background: #fff;
    color: #20252a;
    text-align: left;
  }

  body.pos-fullscreen #view-sales .pos-products .pos-product:disabled {
    opacity: .48;
  }

  body.pos-fullscreen #view-sales .pos-product-media {
    width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: #edf0f2;
  }

  body.pos-fullscreen #view-sales .pos-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.pos-fullscreen #view-sales .pos-product-price {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-product-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 10px;
  }

  body.pos-fullscreen #view-sales .pos-product-copy .pos-category,
  body.pos-fullscreen #view-sales .pos-product-copy small:last-child {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-product-copy strong {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-product-list-price {
    grid-column: 2;
    grid-row: 1 / 3;
    display: block;
    color: #20252a;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head {
    min-height: 58px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 4px;
    border-bottom: 1px solid #e0e2e5;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-back-button {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f242a;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head > div {
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-ticket-order-number {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head h2 {
    margin: 0;
    font-size: 18px;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket-head p {
    margin-top: 2px;
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-head-actions .icon-button,
  body.pos-fullscreen #view-sales .pos-ticket-menu summary {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-context {
    min-height: 58px;
    padding: 6px 34px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }

  body.pos-fullscreen #view-sales .pos-app-start-order {
    margin: 8px 34px;
  }

  body.pos-fullscreen #view-sales .cart-lines {
    padding: 0;
    overflow: auto;
  }

  body.pos-fullscreen #view-sales .cart-line {
    min-height: 64px;
    padding: 8px 34px;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 8px;
    border-bottom: 1px solid #e0e2e5;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child strong {
    font-size: 15px;
  }

  body.pos-fullscreen #view-sales .cart-line > div:first-child span {
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .cart-line > strong {
    max-width: none;
    color: #20252a;
    font-size: 15px;
    white-space: nowrap;
  }

  body.pos-fullscreen #view-sales .pos-summary {
    padding: 0 34px;
    border-top: 1px solid #e0e2e5;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-summary > div:not(.grand) {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-summary > div.grand {
    min-height: 64px;
    font-size: 18px;
  }

  body.pos-fullscreen #view-sales .pos-summary > div.grand strong {
    color: #161a1e;
    font-size: 25px;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions {
    min-height: 64px;
    grid-template-columns: 1fr 1fr;
    padding: 0 0 env(safe-area-inset-bottom);
    background: #8bbb57;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    min-height: 64px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid rgba(71, 121, 52, .28);
    border-radius: 0;
    background: #8bbb57;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button:last-child {
    border-right: 0;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate {
    z-index: 50;
    padding: 24px 34px;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card {
    width: 100%;
    padding: 28px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-icon {
    width: 74px;
    height: 74px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate h1 {
    color: #20252a;
    font-size: 34px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate p {
    font-size: 17px;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card button {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 3px;
    background: #8bbb57;
    font-size: 16px;
    text-transform: uppercase;
  }

  body.pos-fullscreen .pos-mobile-drawer-backdrop:not([hidden]) {
    position: fixed;
    z-index: 10040;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .38);
  }

  body.pos-fullscreen .pos-mobile-drawer {
    position: fixed;
    z-index: 10050;
    inset: 0 auto 0 0;
    width: min(86vw, 340px);
    display: block;
    overflow: auto;
    transform: translateX(-105%);
    background: #fff;
    box-shadow: 10px 0 30px rgba(31, 41, 51, .22);
    transition: transform .18s ease;
  }

  body.pos-fullscreen .pos-mobile-drawer.is-open {
    transform: translateX(0);
  }

  body.pos-fullscreen .pos-mobile-drawer-head {
    min-height: 170px;
    padding: 24px 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #5b9e4f;
    color: #fff;
  }

  body.pos-fullscreen .pos-mobile-drawer-head > div {
    display: grid;
    gap: 5px;
  }

  body.pos-fullscreen .pos-mobile-drawer-head span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.pos-fullscreen .pos-mobile-drawer-head strong {
    font-size: 22px;
  }

  body.pos-fullscreen .pos-mobile-drawer-head small {
    font-size: 14px;
  }

  body.pos-fullscreen .pos-mobile-drawer-head .icon-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav {
    display: grid;
    padding: 10px 0;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav button {
    min-height: 56px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #20252a;
    text-align: left;
    font-size: 16px;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav button.active,
  body.pos-fullscreen .pos-mobile-drawer-nav button:active {
    background: #f0f5ed;
    color: #5b9e4f;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav button strong,
  body.pos-fullscreen .pos-mobile-drawer-nav button small {
    color: #707980;
    font-size: 12px;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav svg {
    width: 22px;
    height: 22px;
  }

  body.pos-fullscreen .modal.pos-orders-modal,
  body.pos-fullscreen .modal.pos-tickets-modal,
  body.pos-fullscreen .modal.pos-client-modal,
  body.pos-fullscreen .modal.pos-new-order-modal,
  body.pos-fullscreen .modal.pos-ticket-split-modal,
  body.pos-fullscreen .modal.pos-split-modal,
  body.pos-fullscreen .modal.pos-checkout-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal::backdrop,
  body.pos-fullscreen .modal.pos-tickets-modal::backdrop,
  body.pos-fullscreen .modal.pos-client-modal::backdrop,
  body.pos-fullscreen .modal.pos-new-order-modal::backdrop,
  body.pos-fullscreen .modal.pos-ticket-split-modal::backdrop,
  body.pos-fullscreen .modal.pos-split-modal::backdrop,
  body.pos-fullscreen .modal.pos-checkout-modal::backdrop {
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal > .modal-inner,
  body.pos-fullscreen .modal.pos-tickets-modal > .modal-inner,
  body.pos-fullscreen .modal.pos-client-modal > .modal-inner,
  body.pos-fullscreen .modal.pos-new-order-modal > .modal-inner,
  body.pos-fullscreen .modal.pos-ticket-split-modal > .modal-inner {
    width: 100%;
    height: 100%;
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 0;
    border-radius: 0;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head,
  body.pos-fullscreen .modal.pos-client-modal .modal-head,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head {
    min-height: 62px;
    padding: 0 12px;
    background: #70b764;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head > button:last-child {
    order: -1;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-client-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head h2 {
    color: #fff;
    font-size: 20px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-client-modal .modal-head .modal-eyebrow,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .modal-eyebrow {
    display: none;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-client-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head .icon-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-actions,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-actions,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions {
    display: none;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-content,
  body.pos-fullscreen .modal.pos-tickets-modal .pos-held-ticket-list {
    min-height: 0;
    overflow: auto;
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-toolbar {
    min-height: 62px;
    padding: 8px 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort {
    flex: 1;
    display: flex;
    overflow: hidden;
    border: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button {
    flex: 1;
    min-height: 42px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid #e0e2e5;
    background: #fff;
    color: #68727a;
    font-size: 12px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button.active {
    background: #8bbb57;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search {
    width: 44px;
    min-height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-search input {
    display: none;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head,
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
    grid-template-columns: 46px minmax(0, 1fr) auto 42px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head {
    min-height: 42px;
    padding: 0 34px;
    background: #f4f6f7;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head > :nth-child(3),
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-table-head > :nth-child(4),
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > :nth-child(3),
  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row > :nth-child(4) {
    display: none;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-open-order-row {
    min-height: 78px;
    padding: 0 34px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-order-main {
    min-height: 64px;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-order-amount {
    font-size: 16px;
  }

  body.pos-fullscreen .modal.pos-client-modal > .modal-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-search {
    min-height: 64px;
    padding: 0 34px;
    border-bottom: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-create {
    min-height: 66px;
    padding: 0 34px;
    border: 0;
    border-bottom: 1px solid #e0e2e5;
    border-radius: 0;
    background: #fff;
    color: #5b9e4f;
    text-transform: uppercase;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-list {
    min-height: 0;
    overflow: auto;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-create-form {
    position: absolute;
    inset: 62px 0 0;
    z-index: 2;
    overflow: auto;
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-create-head {
    min-height: 62px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #70b764;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-fields {
    padding: 10px 34px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-fields label,
  body.pos-fullscreen .modal.pos-client-modal .pos-client-fields label.span-2 {
    grid-column: 1;
    min-height: 76px;
  }

  body.pos-fullscreen .modal.pos-ticket-split-modal .pos-ticket-split-board {
    min-height: 0;
    padding: 10px 12px 22px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f7f8f9;
  }

  body.pos-fullscreen .modal.pos-ticket-split-modal .pos-ticket-split-column {
    flex: 0 0 min(82vw, 340px);
    min-width: min(82vw, 340px);
    min-height: 0;
  }

  body.pos-fullscreen .modal.pos-ticket-split-modal .pos-ticket-split-add {
    flex: 0 0 58px;
    min-height: 58px;
    align-self: flex-start;
  }

  body.pos-fullscreen .modal.pos-split-modal > .modal-inner,
  body.pos-fullscreen .modal.pos-checkout-modal > .modal-inner {
    width: 100%;
    height: 100%;
    display: block;
    overflow: auto;
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-split-modal .pos-checkout-ticket-summary,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-ticket-summary {
    display: none;
  }

  body.pos-fullscreen .modal.pos-split-modal .pos-payment-split-pane {
    width: 100%;
    min-height: 100%;
    display: grid;
    grid-template-rows: 62px 148px minmax(0, 1fr) 64px;
  }

  body.pos-fullscreen .modal.pos-split-modal .modal-head,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head {
    min-height: 62px;
    padding: 0 12px;
    background: #70b764;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-split-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head h2 {
    color: #fff;
    font-size: 20px;
  }

  body.pos-fullscreen .modal.pos-split-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head .icon-button {
    border: 0;
    background: transparent;
    color: #fff;
  }

  body.pos-fullscreen .modal.pos-split-modal .pos-payment-split-rows {
    padding: 0 34px;
  }

  body.pos-fullscreen .modal.pos-split-modal .pos-payment-split-row {
    min-height: 150px;
    padding: 14px 0;
    border-bottom: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-split-modal .pos-payment-split-footer {
    padding: 0 34px;
    border-top: 1px solid #e0e2e5;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-pane {
    min-height: 100%;
    padding-bottom: 76px;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    min-height: 64px;
    padding: 0 12px env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -4px 14px rgba(31, 41, 51, .12);
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-actions button {
    min-height: 48px;
  }
}

/* Final mobile toolbar precedence: keep the category row readable and search on the right. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-layout {
    touch-action: pan-y !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
    touch-action: manipulation !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    width: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 60px !important;
    gap: 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search {
    width: 58px !important;
    height: 60px !important;
    min-height: 60px !important;
    min-width: 58px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border: 0 !important;
    border-left: 1px solid #e0e2e5 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search input {
    position: absolute !important;
    right: 58px !important;
    width: 0 !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search:focus-within {
    position: absolute !important;
    z-index: 40 !important;
    top: 9px !important;
    right: 58px !important;
    width: calc(100vw - 92px) !important;
    height: 42px !important;
    min-height: 42px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #a7c99d !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search:focus-within input {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary {
    max-width: calc(100vw - 58px) !important;
    padding-right: 12px !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-mobile-primary-actions button,
  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-order-actions,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-payment-mode,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-payment-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-order-actions button,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-payment-mode button,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-payment-choices button {
    min-width: 0 !important;
    min-height: 72px !important;
    padding: 8px 6px !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-payment-choices button span,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-order-actions button span,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-payment-mode button span,
  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-order-actions button small {
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-payment-choices button span {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* King One mobile navigation test: actions stay reachable at the bottom. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 58px 0 minmax(0, 1fr) 74px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    grid-row: 2 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    grid-row: 3 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav {
    grid-row: 4 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2,
  body.pos-fullscreen #view-sales .pos-app-title h2::before,
  body.pos-fullscreen #view-sales .pos-app-commandbar [data-kds-open-app],
  body.pos-fullscreen #view-sales .pos-mobile-menu-button,
  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut {
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav {
    min-height: 74px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: grid !important;
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid #d6dde3;
    background: #fff;
    z-index: 30;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell.counter .pos-mobile-bottom-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav button {
    min-width: 0;
    min-height: 58px;
    padding: 4px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 1px solid #d6dde3;
    border-radius: 5px;
    background: #fff;
    color: #20252a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav button:first-child {
    border-color: #e7aa18;
    background: #e7aa18;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav button.pos-mobile-bottom-cocina.is-ready {
    border-color: #2f9f67;
    background: #2f9f67;
    color: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav button.pos-mobile-bottom-cocina.is-ready strong {
    background: #fff;
    color: #187448;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav button:active {
    transform: translateY(1px);
    background: #fff4d3;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav svg {
    width: 18px;
    height: 18px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav strong {
    min-width: 18px;
    min-height: 16px;
    padding: 1px 4px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #20252a;
    color: #fff;
    font-size: 10px;
    line-height: 1;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions,
  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    border-right-color: rgba(104, 71, 0, .24) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout.mobile-orders > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-orders > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-ready > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-ready > .pos-app-ticket {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f1f3f5;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head {
    min-height: 70px;
    padding: 10px 12px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #d6dde3;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head > div {
    min-width: 0;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-eyebrow {
    display: block;
    color: #a46f00;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head h1 {
    margin: 2px 0 0;
    color: #20252a;
    font-size: 21px;
    line-height: 1.1;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head p {
    margin: 3px 0 0;
    color: #66727f;
    font-size: 12px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head .icon-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid #d6dde3;
    background: #fff;
    color: #20252a;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-content {
    flex: 1;
    min-height: 0;
    padding: 10px;
    overflow: auto;
    background: #f1f3f5;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-toolbar {
    min-height: 0;
    margin-bottom: 10px;
    display: grid;
    gap: 8px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort,
  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-search {
    width: 100%;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort {
    overflow: hidden;
    border: 1px solid #d6dde3;
    border-radius: 6px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button {
    min-width: 0;
    min-height: 42px;
    padding: 0 4px;
    border: 0;
    border-right: 1px solid #d6dde3;
    background: #fff;
    color: #66727f;
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button:last-child {
    border-right: 0;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-sort button.active {
    background: #e7aa18;
    color: #20252a;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-search {
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid #d6dde3;
    border-radius: 6px;
    background: #fff;
    color: #66727f;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #20252a;
    box-shadow: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table {
    border: 0;
    background: transparent;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-table-head {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row {
    min-height: 82px;
    margin-bottom: 8px;
    padding: 8px;
    grid-template-columns: 36px minmax(0, 1fr) auto 42px;
    border: 1px solid #d6dde3;
    border-radius: 6px;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > :nth-child(3),
  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-open-order-row > :nth-child(4) {
    display: none;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-amount {
    grid-column: 3;
    font-size: 15px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main strong {
    font-size: 14px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-order-main small {
    font-size: 11px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace .pos-orders-selection-actions {
    min-height: 0;
    padding: 6px 10px;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-actions {
    flex: 0 0 auto;
    min-height: 0;
    border-top: 1px solid #d6dde3;
    background: #fff;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card button {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen .pos-mobile-drawer-head {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen .pos-mobile-drawer-head .icon-button {
    color: #20252a !important;
  }

  body.pos-fullscreen .pos-mobile-drawer-nav button.active,
  body.pos-fullscreen .pos-mobile-drawer-nav button:active {
    background: #fff8e6 !important;
    color: #a46f00 !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head,
  body.pos-fullscreen .modal.pos-client-modal .modal-head,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head,
  body.pos-fullscreen .modal.pos-split-modal .modal-head,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head,
  body.pos-fullscreen .modal.pos-client-modal .pos-client-create-head {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-client-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-split-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head h2,
  body.pos-fullscreen .modal.pos-orders-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-tickets-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-client-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-ticket-split-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-split-modal .modal-head .icon-button,
  body.pos-fullscreen .modal.pos-checkout-modal .modal-head .icon-button {
    color: #20252a !important;
  }

  body.pos-fullscreen .modal.pos-orders-modal .pos-orders-sort button.active {
    background: #e7aa18 !important;
    color: #20252a !important;
  }

  body.pos-fullscreen .modal.pos-client-modal .pos-client-create {
    color: #a46f00 !important;
  }

  body.pos-fullscreen .modal.pos-checkout-modal .pos-checkout-actions .primary,
  body.pos-fullscreen .modal.pos-split-modal .pos-payment-split-footer .primary {
    background: #e7aa18 !important;
    color: #20252a !important;
  }
}

/* New order: keep the choice step and the order details visually balanced. */
body.pos-fullscreen .modal.pos-new-order-modal {
  width: min(760px, calc(100vw - 32px)) !important;
  max-width: none !important;
  height: min(720px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  padding: 0 !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.pos-fullscreen .modal.pos-new-order-modal > .modal-inner {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-head {
  min-height: 84px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  border-bottom: 1px solid #d6dde3 !important;
  background: #fff !important;
  color: #20252a !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-head > div {
  min-width: 0 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-eyebrow {
  display: block !important;
  color: #a46f00 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-head h2 {
  margin: 3px 0 0 !important;
  color: #20252a !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-head .field-hint {
  max-width: 600px !important;
  margin: 5px 0 0 !important;
  color: #66727f !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-head .icon-button {
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #20252a !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-content {
  min-height: 0 !important;
  overflow: auto !important;
  padding: 22px !important;
  background: #f1f3f5 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button {
  min-width: 0 !important;
  min-height: 158px !important;
  padding: 18px 14px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 8px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20252a !important;
  text-align: center !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button:hover,
body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button:focus-visible {
  border-color: #e7aa18 !important;
  background: #fff8e6 !important;
  outline: 0 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button svg {
  width: 42px !important;
  height: 42px !important;
  color: #a46f00 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button strong {
  color: #20252a !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button small {
  max-width: 170px !important;
  color: #66727f !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-section {
  display: grid !important;
  gap: 8px !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-section-label,
body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-name > span {
  color: #394452 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap: 10px !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button {
  min-width: 0 !important;
  min-height: 92px !important;
  padding: 12px 10px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20252a !important;
  text-align: center !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button.active {
  border-color: #e7aa18 !important;
  background: #fff0c2 !important;
  box-shadow: inset 0 0 0 1px #e7aa18 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button:disabled {
  opacity: .62 !important;
  background: #e9edf0 !important;
  color: #66727f !important;
  cursor: not-allowed !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button svg {
  width: 24px !important;
  height: 24px !important;
  color: #a46f00 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button strong {
  overflow: hidden !important;
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button small {
  color: #66727f !important;
  font-size: 10px !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-divider {
  min-height: 34px !important;
  margin: 12px 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  color: #88939e !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-divider::before,
body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-divider::after {
  content: "" !important;
  height: 1px !important;
  background: #d6dde3 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-empty-tables {
  min-height: 82px !important;
  padding: 16px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20252a !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-empty-tables svg {
  width: 28px !important;
  height: 28px !important;
  color: #a46f00 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-empty-tables strong,
body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-empty-tables small {
  display: block !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-empty-tables small {
  margin-top: 3px !important;
  color: #66727f !important;
  line-height: 1.35 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-name {
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  gap: 8px !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-name input {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 14px !important;
  border: 1px solid #cfd7df !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20252a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-name input:focus {
  border-color: #e7aa18 !important;
  box-shadow: 0 0 0 3px rgba(231, 170, 24, .18) !important;
  outline: 0 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-actions {
  min-height: 68px !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  border-top: 1px solid #d6dde3 !important;
  background: #fff !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button {
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #20252a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button.primary {
  border-color: #e7aa18 !important;
  background: #e7aa18 !important;
  color: #20252a !important;
}

body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button[hidden] {
  display: none !important;
}

/* Product-first catalog: the view switch stays available on touch screens too. */
body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
  display: flex !important;
  flex: 0 0 auto !important;
  min-width: 80px !important;
  min-height: 40px !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented button {
  flex: 1 1 40px !important;
  min-width: 40px !important;
  min-height: 38px !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid,
body.pos-fullscreen #view-sales .pos-products.view-list {
  align-content: start !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product,
body.pos-fullscreen #view-sales .pos-products.view-list .pos-product {
  touch-action: manipulation;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    right: 0 !important;
    display: flex !important;
    gap: 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    width: 88px !important;
    min-width: 88px !important;
    height: 60px !important;
    min-height: 60px !important;
    border: 0 !important;
    border-left: 1px solid #e0e2e5 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented button {
    width: 44px !important;
    min-width: 44px !important;
    height: 60px !important;
    min-height: 60px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented button.active {
    background: #fff4d3 !important;
    color: #b77d00 !important;
    box-shadow: inset 0 -3px 0 #e7aa18 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary {
    max-width: calc(100vw - 146px) !important;
    padding-left: 18px !important;
    padding-right: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search {
    width: 58px !important;
    min-width: 58px !important;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search:focus-within {
    right: 88px !important;
    width: calc(100vw - 122px) !important;
  }

  body.pos-fullscreen #view-sales .pos-toolbar-actions .pos-search input {
    right: 88px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 148px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
    height: 148px !important;
    min-height: 148px !important;
    grid-template-rows: 88px minmax(0, 1fr) !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: 72px !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product {
    height: 72px !important;
    min-height: 72px !important;
  }
}

@media (max-width: 720px) {
  body.pos-fullscreen .modal.pos-new-order-modal {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal > .modal-inner {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-head {
    min-height: 70px !important;
    padding: 12px 14px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-head h2 {
    font-size: 20px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-head .field-hint {
    font-size: 11px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-content {
    padding: 12px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button {
    min-height: 78px !important;
    padding: 12px 14px !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    justify-items: start !important;
    align-content: center !important;
    text-align: left !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button svg {
    grid-row: 1 / span 2 !important;
    width: 34px !important;
    height: 34px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-types button small {
    max-width: none !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-new-order-table-grid button {
    min-height: 86px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions {
    min-height: 64px !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .modal-actions button {
    min-width: 0 !important;
    min-height: 46px !important;
    flex: 1 1 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen .modal.pos-new-order-modal .pos-dialog-mobile-bottom-nav {
    min-height: 66px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    border-top: 1px solid #d6dde3 !important;
    background: #fff !important;
  }
}

/* Last word on the product grid: square image, product details underneath. */
body.pos-fullscreen #view-sales .pos-products.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 10px !important;
  padding: 12px !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(62px, auto) !important;
  align-self: start !important;
  overflow: hidden !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(32, 37, 42, .06) !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e8ec !important;
  border-radius: 0 !important;
  background: #f4f6f8 !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-price {
  display: none !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  padding: 9px 10px 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 8px !important;
  row-gap: 2px !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-category {
  display: none !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy strong {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #20252a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-product-list-price {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: block !important;
  color: #9a6a00 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy small:last-child {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #7b8792 !important;
  font-size: 10px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: right !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-products.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy {
    min-height: 58px !important;
    padding: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy strong {
    font-size: 12px !important;
  }
}

/* Product / ticket tabs: the ticket is the order result, with one clear active marker. */
body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 auto !important;
  padding: 3px !important;
  flex: 0 0 auto !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #f6f8fa !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
  position: relative !important;
  min-width: 104px !important;
  min-height: 34px !important;
  flex: 1 1 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #66727f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active {
  background: #fff4d3 !important;
  color: #9a6a00 !important;
  box-shadow: none !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active::after {
  content: "" !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 0 !important;
  left: 10px !important;
  height: 3px !important;
  border-radius: 3px 3px 0 0 !important;
  background: #e7aa18 !important;
}

body.pos-fullscreen #view-sales .pos-catalog-stage > .pos-catalog-track {
  width: 100% !important;
  display: block !important;
  transform: none !important;
}

body.pos-fullscreen #view-sales .pos-catalog-stage > .pos-catalog-track > .pos-catalog-panel {
  width: 100% !important;
}

body.pos-fullscreen #view-sales .pos-app-ticket.pos-tab-ticket-active {
  box-shadow: inset 0 0 0 2px #e7aa18 !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 100px 0 minmax(0, 1fr) 74px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    height: 100px !important;
    min-height: 100px !important;
    padding: 0 8px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px auto !important;
    grid-template-rows: 56px 44px !important;
    gap: 0 6px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-menu-button {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > div {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar {
    min-width: 0 !important;
    gap: 4px !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: 176px !important;
    max-width: calc(100vw - 24px) !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 2px 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
    min-width: 0 !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-switch {
    display: none !important;
  }
}

/* Final POS presentation pass: simple text tabs, visible category selector, and a calm header. */
body.pos-fullscreen #view-sales .pos-app-header {
  min-height: 64px !important;
  padding: 0 18px !important;
  gap: 18px !important;
  border-bottom: 1px solid #d9e0e6 !important;
  background: #fff !important;
  color: #20252a !important;
  box-shadow: 0 1px 4px rgba(32, 37, 42, .06) !important;
}

body.pos-fullscreen #view-sales .pos-app-title {
  flex: 0 0 auto !important;
  gap: 10px !important;
}

body.pos-fullscreen #view-sales .pos-app-title > span {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 8px !important;
  background: #20252a !important;
  color: #e7aa18 !important;
}

body.pos-fullscreen #view-sales .pos-app-title h2,
body.pos-fullscreen #view-sales .pos-app-title h2::before {
  color: #20252a !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
  width: 240px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 auto !important;
  padding: 3px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 2px !important;
  border: 1px solid #d6dde3 !important;
  border-radius: 9px !important;
  background: #f6f8fa !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #6b7680 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button span {
  font-size: inherit !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active {
  background: #fff8e8 !important;
  color: #9a6a00 !important;
  box-shadow: none !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active::after {
  right: 14px !important;
  bottom: 0 !important;
  left: 14px !important;
  height: 3px !important;
  background: #e7aa18 !important;
}

body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut {
  display: none !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top {
  min-height: 64px !important;
  padding: 8px 16px !important;
  background: #fff !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child {
  display: block !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child > span {
  display: block !important;
  margin-bottom: 2px !important;
  color: #9a6a00 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top h2 {
  color: #20252a !important;
  font-size: 20px !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 104px 0 minmax(0, 1fr) 74px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    height: 104px !important;
    min-height: 104px !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    grid-template-rows: 58px 46px !important;
    gap: 0 8px !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-menu-button {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > span {
    width: 32px !important;
    height: 32px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > div {
    display: block !important;
    min-width: 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2,
  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    width: auto !important;
    margin: 0 !important;
    color: #20252a !important;
    font-size: 17px !important;
    font-weight: 850 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    content: none !important;
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title p {
    display: block !important;
    max-width: 180px !important;
    color: #7b8792 !important;
    font-size: 10px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-commandbar [data-kds-open-app] {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 2px 0 4px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
    min-height: 32px !important;
    font-size: 13px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 108px minmax(0, 1fr) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    min-height: 108px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 42px 42px !important;
    gap: 8px !important;
    text-align: left !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker {
    position: relative !important;
    z-index: 4 !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    display: block !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary {
    min-height: 42px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #f8fafb !important;
    color: #20252a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker summary svg {
    width: 17px !important;
    height: 17px !important;
    color: #9a6a00 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-options {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    left: 0 !important;
    width: auto !important;
    max-height: min(60vh, 420px) !important;
    overflow: auto !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 30px rgba(32, 37, 42, .16) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-options button {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    position: static !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px 42px 42px 42px !important;
    gap: 6px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 11px !important;
    display: flex !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search input {
    position: static !important;
    width: 100% !important;
    min-height: 38px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-product {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-stock {
    grid-column: 5 !important;
    grid-row: 1 !important;
  }
}

/* Restore the quick catalog actions in the product view. */
body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action {
  visibility: visible !important;
  opacity: 1 !important;
}

body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action span {
  display: inline !important;
  overflow: visible !important;
  max-width: none !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    grid-template-columns: 82px 42px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: 42px 42px !important;
    align-items: stretch !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-product {
    grid-column: 3 !important;
    grid-row: 2 !important;
    padding: 0 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action-stock {
    grid-column: 4 !important;
    grid-row: 2 !important;
    padding: 0 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action span {
    display: inline !important;
    font-size: 11px !important;
  }
}

/* Final interaction rules for the POS tabs and ticket actions. */
body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active {
  background: #e7aa18 !important;
  color: #20252a !important;
  box-shadow: 0 1px 2px rgba(32, 37, 42, .16) !important;
}

body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active::after {
  content: none !important;
  display: none !important;
}

body.pos-fullscreen #view-sales .pos-app-ticket-head {
  position: relative !important;
  z-index: 20 !important;
}

body.pos-fullscreen #view-sales .pos-ticket-order-number {
  color: #9a6a00 !important;
}

body.pos-fullscreen #view-sales .pos-ticket-menu {
  position: relative !important;
  z-index: 40 !important;
}

body.pos-fullscreen #view-sales .pos-ticket-menu > div {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(300px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(70vh, 520px) !important;
  overflow: auto !important;
  z-index: 120 !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-ticket-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-menu > div {
    position: fixed !important;
    top: 112px !important;
    right: 10px !important;
    left: auto !important;
    width: min(300px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 128px) !important;
  }
}

/* The complete mobile POS surface can switch panels horizontally while inner lists keep vertical scroll. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales,
  body.pos-fullscreen #view-sales .pos-webapp-shell,
  body.pos-fullscreen #view-sales .pos-app-layout,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-catalog-stage,
  body.pos-fullscreen #view-sales .pos-products,
  body.pos-fullscreen #view-sales .cart-lines {
    touch-action: pan-y !important;
  }
}

/* Mobile category rail: horizontal category scrolling is local and never changes the ticket panel. */
body.pos-fullscreen #view-sales .pos-category-strip {
  display: none !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 132px minmax(0, 1fr) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    min-height: 132px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 56px 50px !important;
    gap: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-category-picker {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 0 1px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip::-webkit-scrollbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button {
    flex: 0 0 auto !important;
    min-width: 108px !important;
    min-height: 56px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #4f5b66 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    touch-action: pan-x !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button.active {
    border-color: #e7aa18 !important;
    background: #e7aa18 !important;
    color: #20252a !important;
    box-shadow: 0 1px 2px rgba(32, 37, 42, .14) !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button strong {
    font-size: 11px !important;
    font-variant-numeric: tabular-nums !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: static !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    display: flex !important;
    position: static !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 7px !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search input {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .icon-segmented {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 50px !important;
    min-height: 50px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 7px !important;
    background: #f6f8fa !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .icon-segmented button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-catalog-action {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #4f5b66 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .icon-segmented button {
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 5px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .icon-segmented button.active {
    background: #e7aa18 !important;
    color: #20252a !important;
    box-shadow: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-catalog-action span {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-catalog-action-product,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-catalog-action-stock {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search:focus-within {
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
    width: auto !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    border: 1px solid #d6dde3 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search:focus-within input {
    position: static !important;
    right: auto !important;
    width: 100% !important;
    min-height: 46px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Keep the editable ticket identity in the single top POS bar. */
body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy {
  min-width: 0 !important;
  overflow: hidden !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy.is-empty {
  cursor: default !important;
}

body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy.is-empty h2 {
  color: #4d5964 !important;
  font-size: 16px;
}

body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy.is-empty p {
  color: #87919a !important;
}

body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy h2,
body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy p {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-title {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy {
    flex: 1 1 auto !important;
  }
}

.modal.pos-order-context-modal {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  border: 1px solid #d6dde3;
  border-radius: 12px;
  background: #fff;
  color: #20252a;
  box-shadow: 0 18px 55px rgba(32, 37, 42, .18);
}

.modal.pos-order-context-modal > .modal-inner {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) max-content;
  max-height: min(780px, calc(100dvh - 28px));
  padding: 0;
  background: #fff;
}

.modal.pos-order-context-modal .modal-head {
  min-height: 82px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #d9e0e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal.pos-order-context-modal .modal-head h2 {
  margin: 3px 0 0;
  color: #20252a;
  font-size: 24px;
  letter-spacing: 0;
}

.modal.pos-order-context-modal .modal-head .icon-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  color: #20252a;
}

.pos-order-context-body {
  min-height: 0;
  padding: 18px 20px 22px;
  display: grid;
  align-content: start;
  gap: 20px;
  overflow-y: auto;
}

.modal.pos-order-context-modal .pos-order-context-section,
.modal.pos-order-context-modal .pos-order-context-field {
  margin: 0;
  padding: 0;
}

.pos-order-context-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pos-order-context-label,
.pos-order-context-field > span {
  display: block;
  margin-bottom: 9px;
  color: #4c5963;
  font-size: 12px;
  font-weight: 850;
}

.pos-order-context-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pos-order-context-service {
  min-height: 68px;
  padding: 11px 10px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid #d6dde3;
  border-radius: 9px;
  background: #fff;
  color: #3b4650;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pos-order-context-service.active {
  border-color: #e7aa18;
  background: #fff8e8;
  color: #8d6200;
  box-shadow: inset 0 -3px 0 #e7aa18, 0 2px 6px rgba(231, 170, 24, .12);
}

.pos-order-context-service:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.pos-order-context-field input,
.pos-order-context-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  background: #fff;
  color: #20252a;
  font-size: 14px;
  font-weight: 650;
}

.pos-order-context-field input:focus,
.pos-order-context-field select:focus {
  border-color: #e7aa18;
  outline: 3px solid rgba(231, 170, 24, .16);
}

.modal.pos-order-context-modal .modal-actions {
  box-sizing: border-box;
  margin-top: 0;
  padding: 12px 20px;
  border-top: 1px solid #d9e0e6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
}

.modal.pos-order-context-modal .modal-actions > button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.modal.pos-order-context-modal .modal-actions > .primary {
  border-color: #e7aa18;
  background: #e7aa18;
  color: #20252a;
}

@media (max-width: 720px) {
  body.pos-fullscreen .modal.pos-order-context-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
  }

  body.pos-fullscreen .modal.pos-order-context-modal::backdrop {
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-order-context-modal > .modal-inner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .modal-head {
    min-height: 72px;
    padding: 13px 14px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .pos-order-context-body {
    min-height: 0;
    padding: 16px 14px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.pos-fullscreen .pos-order-context-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pos-fullscreen .pos-order-context-fields {
    grid-template-columns: 1fr;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .modal-actions {
    min-height: 72px;
    padding: 8px 14px max(12px, env(safe-area-inset-bottom));
    background: #fff;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .modal-actions > button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 720px) and (max-height: 640px) {
  body.pos-fullscreen .modal.pos-order-context-modal .modal-head {
    min-height: 62px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .pos-order-context-body {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .pos-order-context-service {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .pos-order-context-field input,
  body.pos-fullscreen .modal.pos-order-context-modal .pos-order-context-field select {
    min-height: 44px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .modal-actions {
    min-height: 66px;
    padding-top: 7px;
  }

  body.pos-fullscreen .modal.pos-order-context-modal .modal-actions > button {
    min-height: 46px;
  }
}

/* POS mobile redesign. This scope is intentionally limited to the fullscreen
   sales surface so the back-office and KDS keep their existing presentation. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales {
    --pos-mobile-yellow: #e4a916;
    --pos-mobile-yellow-soft: #fff7df;
    --pos-mobile-ink: #1f2933;
    --pos-mobile-muted: #647181;
    --pos-mobile-line: #d8e0e7;
    --pos-mobile-bg: #f4f6f8;
    --pos-mobile-green: #21865b;
    background: var(--pos-mobile-bg) !important;
    color: var(--pos-mobile-ink) !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell {
    position: relative !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    grid-template-rows: 68px 0 minmax(0, 1fr) calc(72px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    background: var(--pos-mobile-bg) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    box-sizing: border-box !important;
    z-index: 30 !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 168px !important;
    align-items: center !important;
    gap: 8px !important;
    border-bottom: 1px solid var(--pos-mobile-line) !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
    box-shadow: 0 1px 8px rgba(31, 41, 51, .07) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-menu-button {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > span,
  body.pos-fullscreen #view-sales .pos-mobile-ticket-shortcut,
  body.pos-fullscreen #view-sales .pos-app-commandbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title > .pos-app-title-copy {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2,
  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    width: 100% !important;
    margin: 0 !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title h2::before {
    content: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-title p {
    display: block !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    overflow: hidden !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
    box-sizing: border-box !important;
    width: 168px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 3px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 9px !important;
    background: #f2f5f7 !important;
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button {
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 7px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs button.active {
    background: var(--pos-mobile-yellow) !important;
    color: #20252a !important;
    box-shadow: 0 2px 4px rgba(175, 121, 0, .16) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-actionbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: var(--pos-mobile-bg) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-app-layout > .pos-mobile-orders-workspace {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout.mobile-catalog > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-catalog > .pos-mobile-orders-workspace,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-cart > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-cart > .pos-mobile-orders-workspace {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-layout.mobile-orders > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-orders > .pos-app-ticket,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-ready > .pos-app-catalog,
  body.pos-fullscreen #view-sales .pos-app-layout.mobile-ready > .pos-app-ticket {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 116px minmax(0, 1fr) !important;
    border: 0 !important;
    background: var(--pos-mobile-bg) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    box-sizing: border-box !important;
    min-height: 116px !important;
    padding: 8px 10px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 56px 44px !important;
    gap: 8px !important;
    border-bottom: 1px solid var(--pos-mobile-line) !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top > div:first-child,
  body.pos-fullscreen #view-sales .pos-mobile-category-picker {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 1px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip::-webkit-scrollbar {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button {
    flex: 0 0 auto !important;
    min-width: 126px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button.active {
    border-color: var(--pos-mobile-yellow) !important;
    background: var(--pos-mobile-yellow) !important;
    color: #20252a !important;
    box-shadow: 0 2px 4px rgba(175, 121, 0, .16) !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip button strong {
    font-size: 11px !important;
    font-variant-numeric: tabular-nums !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions {
    position: static !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 104px !important;
    gap: 8px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .icon-segmented {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 0 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-toolbar-actions .pos-search {
    padding: 0 11px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search input,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search:focus-within input {
    position: static !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 13px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-search:focus-within {
    width: 100% !important;
    height: 44px !important;
    border-color: var(--pos-mobile-yellow) !important;
    outline: 3px solid rgba(228, 169, 22, .15) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented {
    padding: 3px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    background: #f2f5f7 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented button {
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--pos-mobile-muted) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .icon-segmented button.active {
    background: var(--pos-mobile-yellow) !important;
    color: #20252a !important;
    box-shadow: none !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-scan-button,
  body.pos-fullscreen #view-sales .pos-app-catalog-top .pos-catalog-action {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 182px !important;
    gap: 10px !important;
    align-content: start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: var(--pos-mobile-bg) !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 182px !important;
    min-height: 182px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 120px 62px !important;
    gap: 0 !important;
    align-self: start !important;
    overflow: hidden !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
    box-shadow: 0 1px 3px rgba(31, 41, 51, .06) !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product:active:not(:disabled) {
    border-color: var(--pos-mobile-yellow) !important;
    box-shadow: inset 0 0 0 2px var(--pos-mobile-yellow) !important;
    transform: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media {
    box-sizing: border-box !important;
    position: relative !important;
    width: 100% !important;
    height: 120px !important;
    min-height: 120px !important;
    aspect-ratio: auto !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf1 !important;
    border-radius: 0 !important;
    background: #eef2f5 !important;
    color: #82909e !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    transform: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media > svg,
  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-media > i {
    width: 32px !important;
    height: 32px !important;
    color: #718091 !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-price {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 3px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-category,
  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy small:last-child {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product-copy .pos-product-list-price {
    display: block !important;
    color: #a46f00 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: 72px !important;
    gap: 0 !important;
    align-content: start !important;
    overflow-y: auto !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 7px 4px !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf1 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
    text-align: left !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-media {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #eef2f5 !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-media img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-price,
  body.pos-fullscreen #view-sales .pos-products.view-list .pos-category,
  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-copy small:last-child {
    display: none !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-copy {
    min-width: 0 !important;
    padding: 0 !important;
    display: grid !important;
    gap: 3px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-copy strong {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-list .pos-product-list-price {
    display: block !important;
    color: #a46f00 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket {
    box-sizing: border-box !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-lines {
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: 12px 12px 6px !important;
    overflow-y: auto !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line {
    width: 100% !important;
    min-height: 64px !important;
    padding: 10px 4px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 20px !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 1px solid #e8edf1 !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
    text-align: left !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line > div:first-child {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line > div:first-child strong {
    overflow: hidden !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line > div:first-child span {
    color: var(--pos-mobile-muted) !important;
    font-size: 11px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line > strong {
    color: var(--pos-mobile-ink) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .cart-line > svg {
    width: 18px !important;
    height: 18px !important;
    color: #9aa6b2 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .pos-summary {
    box-sizing: border-box !important;
    padding: 8px 14px 10px !important;
    border-top: 1px solid var(--pos-mobile-line) !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .pos-summary > div {
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .pos-summary > div strong {
    color: var(--pos-mobile-ink) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .pos-summary > div.grand {
    min-height: 48px !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--pos-mobile-line) !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  body.pos-fullscreen #view-sales .pos-app-ticket .pos-summary > div.grand strong {
    color: var(--pos-mobile-ink) !important;
    font-size: 22px !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions {
    box-sizing: border-box !important;
    min-height: 60px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
    gap: 8px !important;
    border-top: 1px solid var(--pos-mobile-line) !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button.primary,
  body.pos-fullscreen #view-sales .pos-ticket-actions > button.pos-pay {
    border-color: var(--pos-mobile-yellow) !important;
    background: var(--pos-mobile-yellow) !important;
    color: #20252a !important;
  }

  body.pos-fullscreen #view-sales .pos-ticket-actions > button:disabled {
    opacity: .45 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 40 !important;
    width: 100% !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    min-height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 8px 8px env(safe-area-inset-bottom) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    border-top: 1px solid var(--pos-mobile-line) !important;
    background: #fff !important;
    box-shadow: 0 -4px 14px rgba(31, 41, 51, .06) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button {
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 5px 3px !important;
    display: grid !important;
    grid-template-rows: 22px 16px auto !important;
    place-items: center !important;
    gap: 2px !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button:first-child {
    border-color: var(--pos-mobile-yellow) !important;
    background: var(--pos-mobile-yellow-soft) !important;
    color: #8e6300 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button svg {
    width: 19px !important;
    height: 19px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button strong {
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 0 4px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 9px !important;
    background: #e8edf1 !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 10px !important;
    line-height: 18px !important;
    font-variant-numeric: tabular-nums !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready {
    border-color: var(--pos-mobile-green) !important;
    background: #e8f6ef !important;
    color: var(--pos-mobile-green) !important;
    animation: pos-mobile-kitchen-ready 1.6s ease-in-out infinite !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready strong {
    background: var(--pos-mobile-green) !important;
    color: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate {
    position: absolute !important;
    inset: 68px 0 calc(72px + env(safe-area-inset-bottom)) !important;
    z-index: 35 !important;
    min-height: 0 !important;
    padding: 16px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(244, 246, 248, .97) !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card {
    box-sizing: border-box !important;
    width: min(340px, 100%) !important;
    padding: 30px 22px !important;
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
    border: 1px solid var(--pos-mobile-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(31, 41, 51, .1) !important;
    text-align: center !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-icon {
    width: 54px !important;
    height: 54px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: var(--pos-mobile-yellow-soft) !important;
    color: #9a6a00 !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate h1 {
    margin: 4px 0 0 !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 25px !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate p {
    margin: 0 !important;
    color: var(--pos-mobile-muted) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body.pos-fullscreen #view-sales .pos-closed-gate-card button {
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 8px !important;
    border-color: var(--pos-mobile-yellow) !important;
    border-radius: 8px !important;
    background: var(--pos-mobile-yellow) !important;
    color: #20252a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-workspace {
    box-sizing: border-box !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    background: var(--pos-mobile-bg) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head {
    min-height: 68px !important;
    padding: 12px 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--pos-mobile-line) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-head h1 {
    margin: 2px 0 0 !important;
    color: var(--pos-mobile-ink) !important;
    font-size: 21px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-workspace-eyebrow {
    color: #9a6a00 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  body.pos-fullscreen #view-sales .pos-orders-content {
    min-height: 0 !important;
    padding: 10px 0 !important;
    overflow-y: auto !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-orders-actions {
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  @keyframes pos-mobile-kitchen-ready {
    0%, 100% { box-shadow: 0 0 0 0 rgba(33, 134, 91, .12); }
    50% { box-shadow: 0 0 0 4px rgba(33, 134, 91, .12); }
  }
}

@media (max-width: 370px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 64px 0 minmax(0, 1fr) calc(70px + env(safe-area-inset-bottom)) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header {
    height: 64px !important;
    min-height: 64px !important;
    grid-template-columns: 38px minmax(0, 1fr) 152px !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-menu-button {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-header .pos-catalog-tabs {
    width: 152px !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog {
    grid-template-rows: 112px minmax(0, 1fr) !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    min-height: 112px !important;
    grid-template-rows: 52px 44px !important;
  }

  body.pos-fullscreen #view-sales .pos-category-strip,
  body.pos-fullscreen #view-sales .pos-category-strip button {
    height: 52px !important;
    min-height: 52px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid .pos-product {
    height: 174px !important;
    min-height: 174px !important;
    grid-template-rows: 114px 60px !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid {
    grid-auto-rows: 174px !important;
    padding: 10px !important;
    gap: 8px !important;
  }
}

/* POS mobile bottom navigation v2: one continuous surface, not three cards. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-webapp-shell {
    grid-template-rows: 68px 0 minmax(0, 1fr) calc(78px + env(safe-area-inset-bottom)) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    height: calc(78px + env(safe-area-inset-bottom)) !important;
    min-height: calc(78px + env(safe-area-inset-bottom)) !important;
    padding: 0 0 env(safe-area-inset-bottom) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border: 0 !important;
    border-top: 1px solid #d4dce3 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -8px 22px rgba(31, 41, 51, .10) !important;
    overflow: hidden !important;
  }

  body.pos-fullscreen #view-sales .pos-webapp-shell.counter .pos-mobile-bottom-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button {
    position: relative !important;
    min-width: 0 !important;
    min-height: 100% !important;
    padding: 8px 4px 6px !important;
    display: grid !important;
    grid-template-rows: 30px 17px auto !important;
    place-items: center !important;
    align-content: center !important;
    gap: 2px !important;
    border: 0 !important;
    border-right: 1px solid #e5eaf0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #687583 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: background-color .16s ease, color .16s ease !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button:last-child {
    border-right: 0 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 20% !important;
    left: 20% !important;
    height: 3px !important;
    border-radius: 0 0 3px 3px !important;
    background: transparent !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button svg {
    box-sizing: border-box !important;
    width: 30px !important;
    height: 30px !important;
    padding: 6px !important;
    border-radius: 9px !important;
    background: #f1f4f6 !important;
    color: #5d6a77 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button strong {
    min-width: 17px !important;
    min-height: 17px !important;
    padding: 0 4px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 9px !important;
    background: #e4e9ee !important;
    color: #52606d !important;
    font-size: 9px !important;
    line-height: 17px !important;
    font-variant-numeric: tabular-nums !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button[data-pos-mobile-bottom-action="new"],
  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button[data-pos-mobile-bottom-action="product"] {
    color: #8e6300 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button[data-pos-mobile-bottom-action="new"] svg,
  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button[data-pos-mobile-bottom-action="product"] svg {
    background: #fff3ce !important;
    color: #9a6a00 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-panel-catalog > button[data-pos-mobile-bottom-action="new"]::before,
  body.pos-fullscreen #view-sales .pos-mobile-bottom-panel-catalog > button[data-pos-mobile-bottom-action="product"]::before,
  body.pos-fullscreen #view-sales .pos-mobile-bottom-panel-cart > button[data-pos-mobile-bottom-action="product"]::before {
    background: #e4a916 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-panel-orders > button[data-pos-mobile-bottom-action="open"]::before {
    background: #e4a916 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-panel-ready > button[data-pos-mobile-bottom-action="kitchen"]::before {
    background: #21865b !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button[data-pos-mobile-bottom-action="open"] strong {
    background: #fff3ce !important;
    color: #8e6300 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready {
    background: #f0faf5 !important;
    color: #187448 !important;
    animation: none !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready::before {
    background: #21865b !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready svg {
    background: #d9f1e4 !important;
    color: #187448 !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button.pos-mobile-bottom-cocina.is-ready strong {
    background: #21865b !important;
    color: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-mobile-bottom-nav > button:active {
    transform: none !important;
    background: #fff8e8 !important;
  }
}

/* Keep the mobile catalogue as one full-width surface. */
@media (max-width: 720px) {
  body.pos-fullscreen #view-sales .pos-app-catalog {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-app-catalog-top {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 116px !important;
    margin: 0 !important;
    padding: 8px 12px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8ed !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.pos-fullscreen #view-sales .pos-products.view-grid,
  body.pos-fullscreen #view-sales .pos-products.view-list {
    background: #fff !important;
  }
}

/* Kitchen tracking keeps every active order visible and makes ready tickets unmistakable. */
.pos-kitchen-order-row.is-ready,
.modal.pos-orders-modal .pos-kitchen-order-row.is-ready {
  border-color: #55b878 !important;
  background: #ecfaf1 !important;
}

.pos-kitchen-order-row.is-ready .pos-order-main strong,
.pos-kitchen-order-row.is-ready .pos-order-main small,
.pos-kitchen-order-row.is-ready .pos-order-cell,
.pos-kitchen-order-row.is-ready .pos-order-amount {
  color: #147447 !important;
}

.pos-kitchen-order-row.is-in_progress .pos-order-main small {
  color: #9a6500 !important;
  font-weight: 800;
}

.pos-kitchen-order-row.is-new .pos-order-main small {
  color: #2a648f !important;
  font-weight: 800;
}

.pos-reprint-ticket {
  gap: 8px;
  color: #8e6300 !important;
  background: #fff5d8 !important;
}

.pos-reprint-ticket svg {
  width: 18px;
  height: 18px;
}

.pos-ticket-actions > button.pos-pay.is-paid,
.pos-ticket-actions > button.pos-pay.is-paid:disabled {
  background: #e9eef1 !important;
  color: #53616d !important;
  cursor: not-allowed;
  opacity: 1;
}
