#mora-vue-page { min-height: 100%; }
#mora-vue-page .pos-section {
  width: min(100%, 1120px);
  min-height: 70vh;
  margin: 0 auto;
  padding: 4px 0 130px;
}
#mora-vue-page .pos-search-row,
#mora-vue-page .pos-member-row,
#mora-vue-page .pos-filter-row { display: flex; gap: 8px; align-items: center; }
#mora-vue-page .pos-search-row input,
#mora-vue-page .pos-member-row input,
#mora-vue-page .pos-filter-row input,
#mora-vue-page .pos-filter-row select {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #dfe4df;
  border-radius: 8px;
  color: #171b19;
  background: #fff;
  font: inherit;
}
#mora-vue-page .pos-search-row button,
#mora-vue-page .pos-member-row button,
#mora-vue-page .pos-filter-row button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid #d8ded9;
  border-radius: 8px;
  color: #171b19;
  background: #fff;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
#mora-vue-page .pos-search-row button:first-of-type,
#mora-vue-page .pos-member-row button,
#mora-vue-page .pos-filter-row button.is-active {
  color: #fff;
  border-color: #171b19;
  background: #171b19;
}
#mora-vue-page .pos-member-card,
#mora-vue-page .pos-summary-row,
#mora-vue-page .pos-cart-line,
#mora-vue-page .pos-order-summary,
#mora-vue-page .pos-payment-summary { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
#mora-vue-page .pos-member-card > div,
#mora-vue-page .pos-cart-copy,
#mora-vue-page .pos-order-main { min-width: 0; flex: 1; }
#mora-vue-page .pos-cart-list,
#mora-vue-page .pos-order-list,
#mora-vue-page .pos-member-list,
#mora-vue-page .pos-inventory-list { display: grid; gap: 10px; }
#mora-vue-page .pos-cart-list .pos-empty {
  margin: 0;
  padding: 38px 16px;
  border: 1px dashed #d9dfda;
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
}
#mora-vue-page .pos-cart-line,
#mora-vue-page .pos-order-summary,
#mora-vue-page .pos-payment-summary { padding: 12px; border: 1px solid #e1e6e2; border-radius: 8px; background: #fff; }
#mora-vue-page .pos-cart-line .qty { display: flex; gap: 6px; align-items: center; }
#mora-vue-page .pos-cart-line .qty button { width: 34px; height: 34px; }
#mora-vue-page .pos-mode-tabs {
  display: grid;
  width: min(100%, 280px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 12px;
  padding: 3px;
  border: 1px solid #d9dfda;
  border-radius: 8px;
  background: #e7eae6;
}
#mora-vue-page .pos-mode-tabs button {
  min-height: 36px;
  flex: 1;
  border: 0;
  border-radius: 6px;
  color: #626b65;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
#mora-vue-page .pos-mode-tabs button.is-active { color: #fff; background: #171b19; }
#mora-vue-page .pos-mode-tabs button.is-active:last-child { background: #b83228; }
#mora-vue-page .entry-hint { margin: 8px 0 12px; color: #747d77; font-size: 11px; }
#mora-vue-page .section-heading { margin: 20px 0 10px; }
#mora-vue-page .section-heading h1 { margin: 0; font-size: 24px; line-height: 1.1; }
#mora-vue-page .section-heading h2 { margin: 0; font-size: 17px; }
#mora-vue-page .card { min-width: 0; }
#mora-vue-page .pos-search-row,
#mora-vue-page .pos-member-row { margin-bottom: 10px; }
#mora-vue-page .pos-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 36px;
  gap: 7px;
  max-height: 79px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 0 6px;
  scrollbar-width: thin;
}
#mora-vue-page .pos-filter-row button { min-width: 0; min-height: 34px; padding: 0 8px; font-size: 11px; }
#mora-vue-page #salesView:has(> .product-grid:empty) > .section-heading:nth-child(8),
#mora-vue-page #salesView:has(> .product-grid:empty) > .pos-filter-row,
#mora-vue-page #salesView:has(> .product-grid:empty) > .product-grid {
  display: none !important;
}
#mora-vue-page .product-grid { margin-top: 4px; }
#mora-vue-page .sales-cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #e1e6e2;
  border-radius: 8px;
  background: #fff;
}
#mora-vue-page .sales-cart-summary span { color: #747d77; font-size: 11px; }
#mora-vue-page .sales-cart-summary strong { color: #171b19; font-size: 16px; }
#mora-vue-page .order-card-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dfe4df;
  border-radius: 7px;
  background: #fff;
  color: #171b19;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#mora-vue-page .order-card-actions button:last-child { color: #a33129; border-color: #e7c1bd; }
#mora-vue-page .pos-inventory-list a { text-decoration: none; color: inherit; }
#mora-vue-page .pos-inventory-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 3px 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e1e6e2;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
#mora-vue-page .pos-inventory-list a strong,
#mora-vue-page .pos-inventory-list a span { display: block; min-width: 0; }
#mora-vue-page .pos-inventory-list a span { color: #6e7771; font-size: 11px; }
#mora-vue-page .pos-inventory-list a b { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 17px; white-space: nowrap; }
#mora-vue-page .pos-member-list .card {
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid #e1e6e2;
  border-radius: 8px;
  background: #fff;
}
#mora-vue-page .member-value {
  display: grid;
  min-width: 86px;
  justify-items: end;
  gap: 5px;
}
#mora-vue-page .member-value span { white-space: nowrap; }
#mora-vue-page .member-value .primary-small { min-width: 76px; padding: 0 10px; }
#mora-vue-page .pos-member-card span,
#mora-vue-page .pos-member-card small,
#mora-vue-page .pos-order-summary span { display: block; margin-top: 3px; color: #69726c; font-size: 11px; line-height: 1.45; }
#mora-vue-page .pos-order-summary > div:last-child { text-align: right; }
#mora-vue-page .pos-order-summary > div:last-child strong { display: block; font-size: 17px; }
#mora-vue-page .pos-order-summary > div:last-child span {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #39745b;
  background: #edf5f0;
  font-size: 10px;
  font-weight: 800;
}
#mora-vue-page .pos-member-card > button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #171b19;
  border-radius: 7px;
  color: #fff;
  background: #171b19;
  font: inherit;
  cursor: pointer;
}
#mora-vue-page .page-heading .icon-button {
  width: auto;
  min-width: 48px;
  padding: 0 12px;
  color: #171b19;
  border: 1px solid #d8ded9;
  background: #fff;
  white-space: nowrap;
}
#mora-vue-page a.inventory-art {
  color: #6f7772;
  text-decoration: none;
}
#inventoryView .pos-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#inventoryView .pos-filter-row input { grid-column: 1 / -1; }
#mora-vue-page .pos-empty { padding: 28px 12px; text-align: center; color: #6f7772; }
#mora-vue-page .pos-danger { color: #b42318; }
#mora-vue-page .pos-payment-methods { display: grid; gap: 8px; margin-top: 12px; }
#mora-vue-page .pos-payment-methods button { min-height: 48px; text-align: left; }
.pos-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #171b19;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.pos-dock button { min-height: 44px; border: 0; border-radius: 7px; background: #2a302d; color: #fff; font: inherit; }
.pos-dock .summary { display: flex; flex: 1; align-items: center; justify-content: space-between; padding: 0 12px; }
.pos-dock .checkout { padding: 0 18px; background: #d94f2b; }
.pos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, .38);
}
.pos-modal {
  width: min(100%, 680px);
  max-height: 88vh;
  margin: 0 auto;
  overflow: auto;
  padding: 18px;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-sizing: border-box;
}
.pos-modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pos-modal header h2 { margin: 0; }
.pos-modal .close { width: 38px; height: 38px; }
.pos-modal .full { width: 100%; min-height: 46px; margin-top: 12px; }
.pos-modal :focus-visible { outline: 2px solid #d94f2b; outline-offset: 2px; }
@media (max-width: 420px) {
  #mora-vue-page .pos-search-row,
  #mora-vue-page .pos-member-row,
  #mora-vue-page .pos-filter-row { flex-wrap: wrap; }
  .pos-dock { left: 8px; right: 8px; bottom: 66px; }
  #mora-vue-page .pos-section { padding-top: 0; }
  #mora-vue-page .pos-mode-tabs { width: 100%; }
  #mora-vue-page .pos-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; }
  #mora-vue-page .pos-member-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  #inventoryView .pos-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #inventoryView .pos-filter-row input { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  #mora-vue-page .member-card { grid-template-columns: 42px minmax(0, 1fr); }
  #mora-vue-page .member-value {
    grid-column: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}
@media (min-width: 760px) {
  #mora-vue-page #salesView > .pos-filter-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  #mora-vue-page #salesView > .pos-filter-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Teleported price editor keeps the original shared sheet styles. */
.price-edit-error { margin: 0; color: #b42318; font-size: 12px; }
.price-edit-summary strong, .sales-cart-price-note, .cart-item-price-note { overflow-wrap: anywhere; }
.price-edit-summary span { flex-shrink: 0; }

/* Original member cards now use a link to the existing detail page. */
.member-card-detail { text-decoration: none; color: inherit; }
.order-receipt-image { display: grid; gap: 8px; margin-top: 14px; color: var(--accent); }
.order-receipt-image > span { display: flex; align-items: center; gap: 6px; }
.order-receipt-image svg { width: 18px; height: 18px; stroke-width: 1.8; }
.order-receipt-image img { display: block; width: 100%; max-height: 320px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: white; }
.member-feature-text, .member-maintenance-status, .receipt-line strong { overflow-wrap: anywhere; }
a.member-ai-recommendation { color: inherit; text-decoration: none; }
/* Restored native member filters and guide-assignment sheet. */
.member-assignment-sheet.is-open {
  grid-template-rows: auto auto auto auto minmax(80px, 1fr) auto auto;
}
.member-assignment-sheet.is-open .member-assignment-list { min-height: 0; }
.member-assignment-feedback { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.member-assignment-feedback p { margin: 6px 0; }
.member-assignment-sheet select { min-width: 0; max-width: 100%; }
.member-assignment-sheet .member-assignment-copy { min-width: 0; }
.member-filter-options [role="alert"] { color: var(--danger); font-size: 11px; }
.member-filter-options [role="status"] { color: var(--muted); font-size: 11px; }

/* Original guide-center grid inside the shared POS shell. */
#membersView .member-entry label { min-width: 0; }
#membersView .member-entry input { width: 100%; min-width: 0; }
.pos-guide-center { --blue:#3478d4; --blue-soft:#eaf2ff; --green:#19734a; --green-soft:#e9f7ef; --gold:#b47619; --gold-soft:#fff5e5; }
.pos-guide-center .page-title { margin:0; font-size:22px; }
.pos-guide-center .page-subtitle { margin:8px 0 0; color:var(--muted); font-size:12px; }
.pos-guide-center .guide-section-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:12px; }
.pos-guide-center .guide-section-head h2 { margin:0; font-size:14px; }
.pos-guide-center .guide-section-head > span { color:var(--muted); font-size:11px; }
.pos-guide-center .hub-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:8px; }
.pos-guide-center .hub-card { display:grid; flex:0 0 calc(33.333% - 4px); min-width:0; min-height:120px; align-content:start; justify-items:center; gap:5px; padding:8px 6px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); text-align:center; text-decoration:none; }
.pos-guide-center .hub-card:active { transform:translateY(1px); }
.pos-guide-center .hub-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:8px; color:var(--blue); background:var(--blue-soft); }
.pos-guide-center .hub-icon svg { width:22px; height:22px; }
.pos-guide-center .hub-card strong { display:-webkit-box; min-height:0; overflow:hidden; font-size:12px; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.pos-guide-center .hub-card p { display:-webkit-box; margin:0; overflow:hidden; color:var(--muted); font-size:9px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.pos-guide-center .hub-card:nth-child(3n + 2) .hub-icon { color:var(--green); background:var(--green-soft); }
.pos-guide-center .hub-card:nth-child(3n) .hub-icon { color:var(--gold); background:var(--gold-soft); }
.pos-guide-center .menu-loading { flex:1 0 100%; padding:28px 12px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); background:rgba(255,255,255,.58); font-size:11px; text-align:center; }
.pos-guide-center .dashboard-strip { display:flex; gap:6px; margin-top:0; }
.pos-guide-center .guide-todo-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #d8dfd9;
  border-radius: 10px;
  color: #fff;
  background: #1d241f;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(25, 34, 28, .14);
}
.pos-guide-center .guide-todo-entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 850;
}
.pos-guide-center .guide-todo-entry-copy { display: grid; min-width: 0; gap: 3px; }
.pos-guide-center .guide-todo-entry-copy strong { font-size: 15px; }
.pos-guide-center .guide-todo-entry-copy small { color: #cbd4cd; font-size: 11px; line-height: 1.4; }
.pos-guide-center .guide-todo-entry-count {
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #1d241f;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.pos-guide-center .dashboard-metric { display:block; flex:1 1 0; min-width:0; padding:8px 5px; border:1px solid var(--line); border-radius:8px; color:inherit; background:#fff; text-decoration:none; }
.pos-guide-center .dashboard-metric span { display:block; color:var(--muted); font-size:8px; line-height:1.3; }
.pos-guide-center .dashboard-metric strong { display:block; margin-top:4px; font-size:13px; }
.pos-guide-center .guide-daily-insight { margin:0 0 10px; overflow:hidden; border:1px solid #d7dfd9; border-radius:10px; background:#fff; box-shadow:0 6px 18px rgba(25,34,28,.07); }
.pos-guide-center .gdi-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:13px 13px 11px; color:#fff; background:linear-gradient(115deg,#17231d 0%,#264b39 100%); }
.pos-guide-center .gdi-eyebrow { display:block; color:#d8e7dc; font-size:8px; font-weight:850; letter-spacing:.13em; }
.pos-guide-center .gdi-head h2 { margin:3px 0 0; font-size:18px; line-height:1.2; }
.pos-guide-center .gdi-head p { margin:5px 0 0; color:#cbd8cf; font-size:10px; line-height:1.4; }
.pos-guide-center .gdi-head-actions { display:flex; flex:0 0 auto; align-items:center; gap:6px; }
.pos-guide-center .gdi-ai-button { flex:0 0 auto; min-height:34px; padding:7px 10px; border:1px solid rgba(255,255,255,.28); border-radius:7px; color:#17231d; background:#fff; font:inherit; font-size:10px; font-weight:800; }
.pos-guide-center .gdi-ai-button:disabled { cursor:default; opacity:.55; }
.pos-guide-center .gdi-toggle { flex:0 0 auto; min-height:34px; padding:7px 10px; border:1px solid rgba(255,255,255,.28); border-radius:7px; color:#fff; background:transparent; font:inherit; font-size:10px; font-weight:800; }
.pos-guide-center .gdi-loading,.pos-guide-center .gdi-error { margin:0; padding:16px 13px; font-size:11px; }
.pos-guide-center .gdi-loading { color:#68716b; }
.pos-guide-center .gdi-error { color:#a63f2c; background:#fff3ef; }
.pos-guide-center .gdi-collapsed-summary { display:grid; gap:4px; padding:11px 13px; color:#425047; }
.pos-guide-center .gdi-collapsed-summary strong { overflow:hidden; color:#1d2520; font-size:11px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.pos-guide-center .gdi-collapsed-summary span { display:-webkit-box; overflow:hidden; color:#66736b; font-size:9px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.pos-guide-center .gdi-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-bottom:1px solid #edf0ed; }
.pos-guide-center .gdi-kpis article { min-width:0; padding:11px 9px; border-right:1px solid #edf0ed; }
.pos-guide-center .gdi-kpis article:last-child { border-right:0; }
.pos-guide-center .gdi-kpis span,.pos-guide-center .gdi-kpis small { display:block; color:#77827b; font-size:9px; line-height:1.35; }
.pos-guide-center .gdi-kpis strong { display:block; margin:3px 0 2px; color:#1d2520; font-size:18px; line-height:1.1; }
.pos-guide-center .gdi-kpis b.up { color:#18734a; }
.pos-guide-center .gdi-kpis b.down { color:#c45032; }
.pos-guide-center .gdi-context { display:flex; flex-wrap:wrap; gap:5px 14px; padding:8px 12px; color:#69756d; background:#f7f9f7; font-size:9px; }
.pos-guide-center .gdi-context b { color:#1d2520; }
.pos-guide-center .gdi-body { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); }
.pos-guide-center .gdi-products,.pos-guide-center .gdi-points { min-width:0; padding:12px; }
.pos-guide-center .gdi-products { border-right:1px solid #edf0ed; }
.pos-guide-center .gdi-products > header,.pos-guide-center .gdi-points > header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.pos-guide-center .gdi-products h3,.pos-guide-center .gdi-points h3 { margin:0; font-size:12px; }
.pos-guide-center .gdi-products > header span,.pos-guide-center .gdi-points > header span { color:#78847c; font-size:9px; }
.pos-guide-center .gdi-product-row { display:grid; grid-template-columns:92px minmax(0,1fr) 38px; align-items:center; gap:7px; padding:5px 0; }
.pos-guide-center .gdi-product-row > div:first-child { min-width:0; }
.pos-guide-center .gdi-product-row strong,.pos-guide-center .gdi-product-row small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pos-guide-center .gdi-product-row strong { font-size:10px; }
.pos-guide-center .gdi-product-row small { color:#7a857e; font-size:8px; }
.pos-guide-center .gdi-product-row em { color:#58645d; font-size:8px; font-style:normal; text-align:right; }
.pos-guide-center .gdi-bar { height:6px; overflow:hidden; border-radius:999px; background:#edf1ee; }
.pos-guide-center .gdi-bar span { display:block; height:100%; border-radius:inherit; background:#d55432; }
.pos-guide-center .gdi-style-line { margin:7px 0 0; padding-top:7px; border-top:1px dashed #e0e5e1; color:#68746c; font-size:8px; line-height:1.45; }
.pos-guide-center .gdi-points article { padding:7px 0; border-top:1px solid #edf0ed; }
.pos-guide-center .gdi-points article:first-of-type { border-top:0; }
.pos-guide-center .gdi-points article > span { display:inline-block; margin-bottom:3px; color:#8b5b16; font-size:8px; font-weight:800; }
.pos-guide-center .gdi-points article.is-positive > span { color:#18734a; }
.pos-guide-center .gdi-points article.is-warning > span { color:#c45032; }
.pos-guide-center .gdi-points article strong { display:block; font-size:10px; }
.pos-guide-center .gdi-points article p { margin:3px 0; color:#657169; font-size:9px; line-height:1.45; }
.pos-guide-center .gdi-points article small { color:#2f5d48; font-size:8px; line-height:1.45; }
.pos-guide-center .gdi-empty { margin:6px 0; color:#7a857e; font-size:9px; }
.pos-guide-center .gdi-ai-result { margin:0 12px 12px; padding:11px 12px; border-radius:8px; color:#f6faf7; background:#1d2b23; }
.pos-guide-center .gdi-ai-result header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.pos-guide-center .gdi-ai-result header span { color:#cfdbd2; font-size:8px; font-weight:800; letter-spacing:.08em; }
.pos-guide-center .gdi-ai-result h3 { margin:3px 0 0; font-size:15px; }
.pos-guide-center .gdi-ai-result header em { color:#aab8ae; font-size:8px; font-style:normal; }
.pos-guide-center .gdi-ai-result > p { margin:8px 0; color:#dae4dd; font-size:10px; line-height:1.55; }
.pos-guide-center .gdi-ai-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pos-guide-center .gdi-ai-columns h4 { margin:0 0 5px; color:#fff; font-size:10px; }
.pos-guide-center .gdi-ai-columns strong,.pos-guide-center .gdi-ai-columns span { display:block; font-size:9px; line-height:1.45; }
.pos-guide-center .gdi-ai-columns span { margin-top:2px; color:#c8d4cb; }
.pos-guide-center .gdi-ai-columns div + div { margin-top:6px; }
.pos-guide-center .gdi-ai-columns ol { margin:0; padding-left:16px; color:#dce6df; font-size:9px; line-height:1.5; }
.pos-guide-center .gdi-ai-result > small { display:block; margin-top:9px; padding-top:7px; border-top:1px solid rgba(255,255,255,.13); color:#9fb0a4; font-size:8px; }
@media (max-width:764px) {
  .pos-guide-center .gdi-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pos-guide-center .gdi-kpis article { border-bottom:1px solid #edf0ed; }
  .pos-guide-center .gdi-kpis article:nth-child(2n) { border-right:0; }
  .pos-guide-center .gdi-kpis article:last-child { grid-column:1 / -1; border-bottom:0; }
  .pos-guide-center .gdi-body { grid-template-columns:1fr; }
  .pos-guide-center .gdi-products { border-right:0; border-bottom:1px solid #edf0ed; }
  .pos-guide-center .gdi-ai-columns { grid-template-columns:1fr; }
}
@media (max-width:390px) {
  .pos-guide-center .gdi-head { padding:11px; }
  .pos-guide-center .gdi-head h2 { font-size:16px; }
  .pos-guide-center .gdi-head-actions { align-items:stretch; flex-direction:column; }
  .pos-guide-center .gdi-ai-button { min-width:86px; padding-inline:7px; }
  .pos-guide-center .gdi-toggle { min-width:86px; padding-inline:7px; }
  .pos-guide-center .gdi-kpis strong { font-size:16px; }
}
#posStatus {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #263a33;
  color: #fff;
  box-shadow: 0 4px 20px #0003;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  pointer-events: none;
}
#posStatus.pos-danger { background: #963b32; }

/* POSWXB workflow port: original-order return, cloud delivery, recharge and holds. */
.return-mode-switch { display:flex; gap:8px; margin:0 14px 10px; }
.return-mode-switch button { flex:1; min-height:38px; border:1px solid #d8dfda; border-radius:10px; background:#fff; color:#657169; font-size:13px; font-weight:700; }
.return-mode-switch button.is-active { border-color:var(--accent,#d65a3a); background:var(--accent,#d65a3a); color:#fff; }
.manual-return-intro { margin:0 14px 12px; padding:12px; border:1px solid #e5ebe6; border-radius:12px; background:#f7faf8; }
.manual-return-intro p { margin:0 0 10px; color:#657169; font-size:12px; line-height:1.6; }
.order-query-toolbar { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(210px,1.4fr) auto; gap:8px; padding:0 14px 10px; }
.order-query-toolbar label { display:grid; gap:4px; color:#657169; font-size:10px; font-weight:700; }
.order-query-toolbar input { min-width:0; height:36px; padding:0 10px; border:1px solid #d8dfda; border-radius:8px; background:#fff; color:#263a33; }
.return-order-list,.return-order-detail { max-height:48vh; overflow:auto; padding:0 14px 8px; }
.return-order-row,.return-order-item,.hold-row,.recharge-order-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:11px 10px; border:0; border-bottom:1px solid #e8ede9; background:transparent; color:#263a33; text-align:left; }
.return-order-row > span,.hold-row > span,.recharge-order-row > span { min-width:0; display:grid; gap:3px; }
.return-order-row small,.return-order-item span,.return-order-item small,.hold-row small,.recharge-order-row small { color:#748078; font-size:10px; line-height:1.45; }
.return-order-item > div { min-width:0; display:grid; gap:4px; }
.return-order-item strong { font-size:12px; }
.sheet-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #e5ebe6; }
.cloud-recipient-summary { margin:0 14px 10px; }
.cloud-recipient-sheet .member-followup-form,.recharge-sheet .recharge-panel { padding:0 14px 14px; }
.product-order-sheet { padding-bottom:calc(18px + env(safe-area-inset-bottom)); }
.cloud-order-product { display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:12px; align-items:center; margin:0 14px 14px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.cloud-order-art { display:grid; place-items:center; width:64px; height:64px; overflow:hidden; border-radius:10px; background:#f2f3ef; color:var(--muted); }
.cloud-order-art img { width:100%; height:100%; object-fit:cover; }
.cloud-order-art svg { width:26px; height:26px; }
.cloud-order-copy { display:grid; min-width:0; gap:4px; }
.cloud-order-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cloud-order-copy span,.cloud-order-copy small { color:var(--muted); }
.cloud-order-price { color:var(--accent); white-space:nowrap; }
.cloud-order-quantity { display:flex; align-items:center; justify-content:space-between; margin:0 14px 12px; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cloud-order-hint { margin:0 14px 12px; color:var(--muted); font-size:13px; line-height:1.55; }
.cloud-order-actions { display:grid; gap:8px; margin:0 14px; }
.cloud-order-actions .primary-button,.cloud-order-actions .secondary-button { width:100%; min-height:46px; }
.cloud-order-submit { background:var(--accent); }
@media (max-width:390px){ .cloud-order-product { grid-template-columns:56px minmax(0,1fr); } .cloud-order-art { width:56px; height:56px; } .cloud-order-price { grid-column:2; } }
.recharge-sheet .smart-tabs { display:flex; gap:6px; padding:0 14px 10px; }
.recharge-sheet .smart-tabs button { flex:1; min-height:34px; border:1px solid #d8dfda; border-radius:8px; background:#f7f9f7; color:#516159; font-weight:800; }
.recharge-sheet .smart-tabs button.is-active { border-color:#e58a2b; background:#fff5e8; color:#9b5314; }
.recharge-member-summary { display:grid; gap:4px; margin-bottom:10px; padding:12px; border:1px solid #e2e8e3; border-radius:8px; background:#f7f9f7; }
.recharge-member-summary span { color:#66736b; font-size:11px; }
.recharge-order-row > span:last-child { justify-items:end; font-weight:800; }
.hold-row > span:last-child { display:flex; gap:8px; }
.sales-cart-item .status-pill { width:max-content; }
@media (max-width:640px) {
  .order-query-toolbar { grid-template-columns:1fr 1fr; }
  .order-query-toolbar label:nth-child(2),.order-query-toolbar .secondary-button { grid-column:1 / -1; }
  .return-order-row,.return-order-item,.hold-row,.recharge-order-row { align-items:flex-start; }
}

/* Keep the POS header dense and the payment sheet usable on short screens. */
.pos-mobile-page .app-header { padding:max(8px,env(safe-area-inset-top)) 14px 8px; }
.pos-mobile-page .brand-lockup { gap:8px; }
.pos-mobile-page .brand-mark { width:32px; height:32px; border-radius:6px; font-size:18px; }
.pos-mobile-page .app-header .icon-button { width:36px; height:36px; border-radius:7px; }
.pos-mobile-page .app-header .store-switch-button { min-height:36px; }

#paymentSheet .sheet-handle { margin:0 auto 6px; }
#paymentSheet .payment-total {
  position:relative;
  margin-top:8px;
  padding:10px 42px 10px 14px;
  place-items:start;
}
#paymentSheet .payment-sheet-title { margin:0 0 2px; color:rgba(255,255,255,.72); font-size:11px; font-weight:800; }
#paymentSheet .payment-total strong { margin:2px 0 0; font-size:26px; }
#paymentSheet .payment-total small { text-align:left; }
#paymentSheet .payment-close {
  position:absolute;
  top:6px;
  right:6px;
  width:34px;
  height:34px;
  border-color:rgba(255,255,255,.28);
  color:#fff;
  background:rgba(255,255,255,.12);
}
#paymentSheet .compact-guide {
  display:flex;
  min-height:38px;
  align-items:center;
  gap:8px;
  margin-top:6px;
  padding:4px 9px 4px 11px;
  border:1px solid rgba(35,68,58,.1);
  border-radius:9px;
  background:#f8faf8;
  color:var(--muted);
  font-size:11px;
}
#paymentSheet .compact-guide > span { flex:0 0 auto; font-weight:700; }
#paymentSheet .compact-guide select {
  min-width:0;
  min-height:30px;
  flex:1 1 auto;
  padding:0 22px 0 0;
  appearance:none;
  border:0;
  outline:0;
  color:var(--ink);
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8e88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat right center;
  background-size:16px;
  box-shadow:none;
  font-size:13px;
  font-weight:750;
  text-align:right;
}

.payment-benefit-stack {
  margin-top:8px;
  overflow:hidden;
  border:1px solid rgba(35,68,58,.14);
  border-radius:9px;
  background:#fff;
}
.payment-benefit + .payment-benefit { border-top:1px solid rgba(35,68,58,.1); }
.payment-benefit-head {
  display:flex;
  width:100%;
  min-height:42px;
  align-items:center;
  gap:10px;
  padding:0 11px;
  border:0;
  color:var(--ink);
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.payment-benefit-head:disabled { cursor:default; opacity:.7; }
.payment-benefit.is-open .payment-benefit-head { background:rgba(35,68,58,.03); }
.payment-benefit-label { flex:0 0 auto; font-size:13px; font-weight:800; }
.payment-benefit-summary {
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.payment-benefit-chevron {
  display:grid;
  width:17px;
  height:17px;
  flex:0 0 auto;
  place-items:center;
  color:var(--muted);
  transition:transform 160ms ease;
}
.payment-benefit-chevron svg { width:16px; height:16px; }
.payment-benefit.is-open .payment-benefit-chevron { transform:rotate(90deg); }
.payment-benefit-body { padding:0 8px 8px; }
#paymentSheet .payment-benefit-body :is(.promotion-payment,.points-payment,.discount-payment) { margin-top:0; }
#paymentSheet .payment-benefit-body .promotion-activity-list { max-height:220px; overflow:auto; }

.douyin-payment-body { display:grid; gap:8px; }
.douyin-scan-entry { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:6px; }
.douyin-scan-entry input {
  min-width:0;
  min-height:40px;
  padding:0 9px;
  border:1px solid rgba(35,68,58,.18);
  border-radius:7px;
  color:var(--ink);
  background:#fafbfa;
  font-size:16px;
}
.douyin-scan-entry button {
  min-height:40px;
  padding:0 10px;
  border:1px solid rgba(35,68,58,.18);
  border-radius:7px;
  color:var(--ink);
  background:#fff;
  font-weight:750;
  touch-action:manipulation;
}
.douyin-voucher-list { display:grid; gap:6px; }
.douyin-voucher-row {
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px;
  border:1px solid rgba(217,79,43,.16);
  border-radius:8px;
  background:#fff8f5;
}
.douyin-voucher-row > span { display:grid; min-width:0; gap:3px; }
.douyin-voucher-row strong { min-width:0; overflow:hidden; color:var(--ink); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.douyin-voucher-row small { color:var(--muted); font-size:10px; }
.douyin-voucher-row > strong { flex:0 0 auto; color:var(--accent); font-size:15px; font-variant-numeric:tabular-nums; }
.douyin-voucher-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px;
  border-radius:7px;
  background:rgba(35,68,58,.055);
}
.douyin-voucher-summary > span:first-child { display:grid; min-width:0; gap:3px; }
.douyin-voucher-summary strong { color:var(--ink); font-size:12px; }
.douyin-voucher-summary small { color:var(--muted); font-size:10px; }
.douyin-rule-warning { color:#a33b22 !important; font-weight:700; }
.douyin-countdown {
  flex:0 0 auto;
  min-width:48px;
  color:var(--success);
  font-size:12px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  text-align:right;
}
.douyin-countdown.expiring { color:#b33b22; }
.douyin-voucher-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; color:var(--muted); font-size:10px; }
.douyin-voucher-actions > span { flex:1 1 auto; line-height:1.45; }
.douyin-confirm { border-color:rgba(217,79,43,.28) !important; background:#fff8f5 !important; }
.coupon-payment-body { display:grid; gap:7px; }
.coupon-option-list { display:grid; gap:5px; max-height:170px; overflow:auto; }
.coupon-option-list button {
  display:flex;
  min-height:40px;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px;
  border:1px solid rgba(35,68,58,.14);
  border-radius:7px;
  color:var(--ink);
  background:#fff;
  text-align:left;
}
.coupon-option-list button:disabled { opacity:.45; }
.coupon-option-list button.is-unavailable small { overflow:visible; color:#a06452; text-overflow:clip; white-space:normal; }
.coupon-option-list button > span { display:grid; min-width:0; gap:2px; }
.coupon-option-list button strong,
.coupon-option-list button small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.coupon-option-list button small { color:var(--muted); font-size:9px; }
.coupon-option-list button > span:last-child { flex:0 0 auto; color:var(--accent); font-size:12px; font-weight:800; }
.return-item-actions { display:flex; flex:0 0 auto; gap:6px; }
.exchange-sku-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; max-height:300px; overflow:auto; }
.exchange-sku-grid button { display:grid; min-height:52px; gap:3px; padding:8px; border:1px solid rgba(35,68,58,.15); border-radius:8px; color:var(--ink); background:#fff; text-align:left; }
.exchange-sku-grid button.active { border-color:var(--accent); background:#fff7f4; box-shadow:inset 0 0 0 1px rgba(217,79,43,.18); }
.exchange-sku-grid button strong { font-size:12px; }
.exchange-sku-grid button span { color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.exchange-sheet .sheet-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.exchange-sheet .sheet-actions .primary-button { grid-column:1/-1; }

.member-selected-stats { display:flex; flex-wrap:wrap; gap:6px; }
.member-selected-stat {
  display:inline-flex;
  min-height:25px;
  align-items:center;
  gap:4px;
  padding:3px 7px;
  border:1px solid rgba(22,115,74,.16);
  border-radius:6px;
  color:var(--success);
  background:rgba(255,255,255,.72);
  font-size:10px;
}
.member-selected-stat em { color:var(--muted); font-style:normal; }
.member-selected-stat b { color:#16734a; font-size:12px; font-variant-numeric:tabular-nums; }

@media (max-width:380px) {
  .douyin-scan-entry { grid-template-columns:1fr 1fr; }
  .douyin-scan-entry input { grid-column:1 / -1; }
  .douyin-scan-entry button { width:100%; }
  .pos-mobile-page .app-header { padding:max(6px,env(safe-area-inset-top)) 10px 6px; }
  .pos-mobile-page .brand-mark { width:28px; height:28px; font-size:15px; }
  .pos-mobile-page .app-header .icon-button { width:32px; height:32px; }
  .pos-mobile-page .app-header .store-switch-button { min-height:32px; padding:0 7px; }
  .member-selected-stat { flex:1 1 calc(50% - 6px); }
}
