/*
 * modern-pos.css — the core POS/order-taking screen (ModernPOSPage): topbar,
 * brand, nav, ticket group, menu/category/product grid, cart, order summary,
 * actions. This is the LARGEST peel and the most order-sensitive: the same
 * `.scale-modern-pos*` selectors are redeclared across the original file's four
 * "passes" (base -> V2 parity -> V2 final -> menu/product re-decl). They are
 * kept here in ONE contiguous file in their exact original order; the separately
 * peeled `modern-tokenlock.css` still loads AFTER this file, so its final
 * overrides continue to win. Kept GLOBAL (not `.razor.css`) — one selector
 * (`.scale-modern-pos-reference .mud-input-root`) reaches a MudBlazor input, and
 * the cross-pass ordering would break under scoped isolation.
 *
 * Phase 6 split: peeled verbatim off the (post-tranche-8) end of modern-base.css
 * (was lines 796-EOF). Loaded via index.html AFTER modern-base.css (which now
 * holds only the global shell base + Login/Device-Auth) and BEFORE
 * modern-pos-more.css — source order is load-bearing. Do not reorder the <link>
 * tags. Tokens resolve from modern-tokens.css imported by modern-base.css.
 */

.scale-modern-pos {
  position: relative;
  min-height: 100vh;
  padding: 18px;
  background: var(--scale-bg);
  color: var(--scale-text);
  overflow: hidden;
}

.scale-modern-pos-topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 250px 0 16px;
  border-radius: var(--scale-radius-sheet);
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
}

[data-scale-theme="dark"] .scale-modern-pos-topbar {
  background: #071827;
}

.scale-modern-pos-brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scale-modern-pos-logo {
  width: 90px;
  height: auto;
  display: block;
}

.scale-modern-pos-brand p,
.scale-modern-pos-card-header span,
.scale-modern-pos-menu-header span {
  margin: 0 0 2px;
  color: var(--scale-text-soft);
  font-size: var(--scale-type-caption-2-size);
  font-weight: 800;
  line-height: var(--scale-leading-mid);
  letter-spacing: var(--scale-tracking-caps);
  text-transform: uppercase;
}

.scale-modern-pos-brand p {
  color: rgba(255, 255, 255, 0.55);
}

.scale-modern-pos-brand strong {
  display: block;
  color: var(--scale-text-on-primary);
  font-size: var(--scale-type-callout-size);
  font-weight: 700;
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--scale-radius-round);
  background: rgba(255, 255, 255, 0.10);
}

.scale-modern-pos-nav button {
  min-height: 28px;
  padding: 5px 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-nav button.is-active {
  color: var(--scale-primary);
  background: #FFFFFF;
}

.scale-modern-pos-grid {
  height: calc(100vh - 102px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 35%) minmax(0, 65%);
  gap: 0;
  margin-top: 16px;
}

.scale-modern-pos-cart,
.scale-modern-pos-menu {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--scale-radius-sheet);
  background: var(--scale-panel-alt);
  box-shadow: var(--scale-shadow-tile);
  overflow: hidden;
}

.scale-modern-pos-menu {
  background: transparent;
  box-shadow: none;
}

.scale-modern-pos-card-header,
.scale-modern-pos-menu-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.scale-modern-pos-card-header strong,
.scale-modern-pos-menu-header strong {
  display: block;
  color: var(--scale-text);
  font-size: var(--scale-type-title-2-size);
  font-weight: var(--scale-type-title-2-weight);
  line-height: var(--scale-leading-snug);
  letter-spacing: var(--scale-tracking-mid);
}

.scale-modern-pos-reference {
  width: 180px;
  flex: 0 0 auto;
}

.scale-modern-pos-reference .mud-input-root {
  font-size: var(--scale-type-footnote-size);
  font-family: var(--scale-font-sans) !important;
}

.scale-modern-pos-order-types,
.scale-modern-pos-category-row,
.scale-modern-pos-subcategory-row {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.scale-modern-pos-chip,
.scale-modern-pos-category,
.scale-modern-pos-subcategory {
  height: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 14px;
  border-radius: 17px !important;
  color: var(--scale-text-mute) !important;
  background: var(--scale-chip-bg) !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
  line-height: var(--scale-leading-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.scale-modern-pos-chip.is-active,
.scale-modern-pos-category.is-active,
.scale-modern-pos-subcategory.is-active {
  color: var(--scale-text-on-primary) !important;
  background: var(--scale-primary) !important;
}

.scale-modern-pos-subcategory {
  min-height: 34px;
  height: 34px;
  background: transparent !important;
  border: var(--scale-hairline) solid var(--scale-border) !important;
}

.scale-modern-pos-cart-list {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  background: var(--scale-panel);
  border-radius: var(--scale-radius-card);
  box-shadow: var(--scale-shadow-tile);
}

/* No items yet: the empty-state placeholder must never trigger a scrollbar. */
.scale-modern-pos-cart-list.is-empty {
  overflow: hidden;
}

.scale-modern-pos-empty {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--scale-text-soft);
  text-align: center;
}

.scale-modern-pos-empty strong {
  color: var(--scale-text);
  font-size: var(--scale-type-headline-size);
  font-weight: 700;
}

.scale-modern-pos-empty span {
  max-width: 260px;
  font-size: var(--scale-type-footnote-size);
  font-weight: var(--scale-type-footnote-weight);
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-cart-item {
  position: relative;
  width: 100%;
  padding: 7px 14px 7px 16px;
  display: block;
  border-radius: 0;
  background: var(--scale-panel);
  box-shadow: none;
  border-bottom: var(--scale-hairline) solid var(--scale-separator);
  text-align: left;
  font-family: var(--scale-font-sans);
}

.scale-modern-pos-cart-item-shell.is-sent .scale-modern-pos-cart-item,
.scale-modern-pos-cart-item.is-sent {
  background: color-mix(in srgb, var(--scale-info) 12%, var(--scale-panel));
}

.scale-modern-pos-cart-item__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.scale-modern-pos-cart-item__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scale-modern-pos-cart-badge {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-9);
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.05em;
}

.scale-modern-pos-cart-badge.is-combo {
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
}

.scale-modern-pos-cart-badge.is-mods {
  background: var(--scale-accent-soft);
  color: var(--scale-accent);
}

/* Item discount, shown beside the item name instead of a second row under the
   line. Percentage reads as a soft chip like COMBO/MODS; a cash amount is the
   louder solid fill, because it states money rather than a rate. */
.scale-modern-pos-cart-badge.is-discount-percent {
  /* Same soft-success chip recipe as .scale-refund-inventory.is-on — derived from
     --scale-success rather than a new token, so it tracks the theme (and does not
     depend on the @import-ed token sheet refreshing its cache-busting version). */
  background: color-mix(in srgb, var(--scale-success) 12%, transparent);
  color: var(--scale-success);
}

.scale-modern-pos-cart-badge.is-discount-amount {
  background: var(--scale-success);
  color: var(--scale-text-on-primary);
}

.scale-modern-pos-cart-item__name {
  min-width: 0;
  overflow: hidden;
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-pos-cart-item__name.is-combo-name {
  font-weight: 600;
}

.scale-modern-pos-cart-item__qty {
  flex-shrink: 0;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-weight: 400;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-cart-item__price {
  min-width: 64px;
  flex-shrink: 0;
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* .scale-modern-pos-cart-discount REMOVED: the struck-through gross + "-10%" row
   under each line was replaced by the discount badge beside the item name
   (.scale-modern-pos-cart-badge.is-discount-*). No markup renders this class. */

.scale-modern-pos-cart-combo-parts {
  margin-top: 4px;
  margin-left: 2px;
  padding-left: 9px;
  border-left: 1.5px solid var(--scale-border-strong);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.scale-modern-pos-cart-combo-part {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: var(--scale-text);
  font-size: var(--scale-fs-12);
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
}

.scale-modern-pos-cart-combo-part.is-child {
  color: var(--scale-text-soft);
  padding-left: 14px;
}

.scale-modern-pos-cart-note,
.scale-modern-pos-cart-mods {
  margin-top: 1px;
  margin-left: 14px;
  padding-left: 8px;
  overflow: hidden;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-11);
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-pos-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 18px 14px;
  border-top: var(--scale-hairline) solid var(--scale-separator);
}

.scale-modern-pos-summary div {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: var(--scale-text-mute);
  font-size: var(--scale-type-footnote-size);
  font-weight: var(--scale-type-footnote-weight);
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-summary strong {
  color: var(--scale-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-summary-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: var(--scale-hairline) solid var(--scale-separator);
  color: var(--scale-text) !important;
  font-size: var(--scale-type-headline-size) !important;
  font-weight: 600 !important;
}

.scale-modern-pos-summary-total strong {
  color: var(--scale-success);
  font-size: var(--scale-type-title-3-size);
}

/* Single horizontally-scrollable strip: Hold/Void/Discount/Print plus the actions that
   previously lived in the "More" sheet (Tip, Delivery, Feedback, Cancel). */
.scale-modern-pos-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scale-modern-pos-actions::-webkit-scrollbar {
  display: none;
}

.scale-modern-pos-actions button {
  /* Grow to share the row when everything fits; never shrink below min-width, so extra
     actions push the strip into horizontal scrolling instead of compacting. */
  flex: 1 0 auto;
  min-width: 104px;
  padding: 0 14px;
  white-space: nowrap;
}

.scale-modern-pos-actions button.is-danger {
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.1) !important;
}

.scale-modern-pos-actions button,
.scale-modern-pos-pay,
.scale-modern-pos-flow-placeholder button {
  min-height: 44px;
  border-radius: var(--scale-radius-tinted-btn) !important;
  color: var(--scale-primary) !important;
  background: var(--scale-primary-soft) !important;
  font-size: var(--scale-type-footnote-size);
  font-weight: 600;
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-actions button:disabled,
.scale-modern-pos-pay:disabled {
  opacity: 0.42;
  cursor: default;
}

.scale-modern-pos-pay {
  min-height: 46px;
  margin: 0 16px 8px;
  color: var(--scale-text-on-primary) !important;
  background: var(--scale-primary) !important;
  font-size: var(--scale-type-callout-size);
}

.scale-modern-pos-product-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  grid-auto-rows: minmax(125px, 1fr);
  gap: 12px;
  padding: 0 0 4px;
  overflow-y: auto;
}

.scale-modern-pos-product {
  min-width: 0;
  min-height: 125px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px !important;
  border-radius: var(--scale-radius-card) !important;
  color: var(--scale-text) !important;
  background: var(--scale-panel) !important;
  box-shadow: var(--scale-shadow-tile);
  text-align: left;
}

.scale-modern-pos-product.has-discount {
  box-shadow: 0 0 0 1px var(--scale-accent), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.scale-modern-pos-product__name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 500;
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-product__name small {
  color: var(--scale-text-mute);
  font-size: var(--scale-type-footnote-size);
  font-weight: var(--scale-type-footnote-weight);
}

.scale-modern-pos-product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--scale-text-mute);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-product__meta i {
  color: var(--scale-accent);
  font-size: var(--scale-fs-18);
  line-height: 1;
}

.scale-modern-pos-product__meta strong {
  margin-left: auto;
  color: var(--scale-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-flow-placeholder {
  height: calc(100vh - 102px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  border-radius: var(--scale-radius-sheet);
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
  text-align: center;
}

.scale-modern-pos-flow-placeholder strong {
  color: var(--scale-text);
  font-size: var(--scale-type-title-2-size);
  font-weight: 800;
}

.scale-modern-pos-flow-placeholder span {
  max-width: 360px;
  color: var(--scale-text-mute);
  font-size: var(--scale-type-footnote-size);
  font-weight: var(--scale-type-footnote-weight);
}

.scale-modern-pos-flow-placeholder button {
  width: auto;
  min-width: 130px;
  padding: 0 18px;
}

/* Order page V2 screenshot parity */
.scale-modern-pos {
  min-height: 100vh;
  height: 100vh;
  padding: 6px 22px 12px;
  background: var(--scale-bg);
  overflow: hidden;
}

.scale-modern-pos-topbar {
  height: 84px;
  padding: 0 0 0 20px;
  border-radius: 0 22px 22px 22px;
  background: #113558;
  box-shadow: none;
}

[data-scale-theme="dark"] .scale-modern-pos-topbar {
  background: #0B1F38;
}

.scale-modern-pos-brand {
  min-width: 420px;
  gap: 58px;
}

.scale-modern-pos-logo {
  width: 72px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.scale-modern-pos-brand strong {
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 700;
  letter-spacing: var(--scale-tracking-caps);
  text-transform: uppercase;
}

.scale-modern-pos-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: -8px;
  padding: 8px;
  border-radius: var(--scale-radius-round);
  background: rgba(255, 255, 255, 0.16);
}

.scale-modern-pos-nav {
  gap: 3px;
  padding: 4px;
  background: transparent;
}

.scale-modern-pos-nav button {
  min-width: 84px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-pos-nav button.is-active {
  color: #113558;
  background: #FFFFFF;
}

.scale-modern-pos-switcher .scale-modern-switcher {
  position: static;
  top: auto;
  right: auto;
  padding: 0;
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scale-modern-pos-switcher .scale-modern-switcher__group {
  min-height: 50px;
  padding: 5px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(17, 53, 88, 0.16);
}

.scale-modern-pos-switcher .scale-modern-switcher__button {
  min-width: 88px;
  min-height: 40px;
  padding: 7px 16px;
  color: rgba(27, 38, 34, 0.58);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-pos-switcher .scale-modern-switcher__button.is-active {
  color: var(--scale-text);
  background: #FFFFFF;
}

.scale-modern-pos-grid {
  height: calc(100vh - 98px);
  grid-template-columns: minmax(360px, 35%) minmax(0, 65%);
  gap: 0;
  margin-top: 12px;
}

.scale-modern-pos-cart {
  border-radius: 22px;
  background: var(--scale-panel-alt);
  box-shadow: 0 0 0 0.5px var(--scale-separator), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.scale-modern-pos-menu {
  padding-top: 22px;
}

.scale-modern-pos-card-header {
  min-height: 100px;
  align-items: flex-start;
  padding: 23px 22px 12px;
}

.scale-modern-pos-card-header span,
.scale-modern-pos-menu-header span {
  font-size: var(--scale-type-caption-1-size);
  font-weight: 600;
  letter-spacing: var(--scale-tracking-caps);
}

.scale-modern-pos-card-header strong {
  display: none;
}

.scale-modern-pos-reference {
  width: 224px;
}

.scale-modern-pos-reference .mud-input-control,
.scale-modern-pos-reference .mud-input-control-input-container,
.scale-modern-pos-reference .mud-input,
.scale-modern-pos-reference .mud-input-root {
  margin: 0 !important;
  min-height: 62px;
}

.scale-modern-pos-reference .mud-input-root {
  border-radius: 4px;
  background: transparent;
  font-size: var(--scale-fs-20);
}

.scale-modern-pos-order-types {
  gap: 8px;
  padding: 0 16px 10px;
}

.scale-modern-pos-chip,
.scale-modern-pos-category,
.scale-modern-pos-subcategory {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px !important;
  background: var(--scale-chip-bg) !important;
  color: var(--scale-text-mute) !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
  line-height: var(--scale-leading-mid);
}

.scale-modern-pos-chip {
  min-width: 64px;
}

.scale-modern-pos-chip.is-active,
.scale-modern-pos-category.is-active,
.scale-modern-pos-subcategory.is-active {
  background: #113558 !important;
  color: var(--scale-text-on-primary) !important;
}

.scale-modern-pos-cart-list {
  padding: 0;
  border-bottom: var(--scale-hairline) solid var(--scale-separator);
}

.scale-modern-pos-empty {
  min-height: 270px;
  transform: translateY(22px);
}

.scale-modern-pos-empty strong {
  font-size: var(--scale-fs-22);
  font-weight: 600;
}

.scale-modern-pos-empty span {
  max-width: 300px;
  margin-top: 4px;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
  line-height: 1.45;
}

.scale-modern-pos-cart-item {
  margin: 0;
  padding: 7px 14px 7px 16px;
  border-radius: 0;
  background: var(--scale-panel);
  box-shadow: none;
  border-bottom: var(--scale-hairline) solid var(--scale-separator);
}

.scale-modern-pos-summary {
  gap: 8px;
  padding: 15px 22px 13px;
  border-top: 0;
}

.scale-modern-pos-summary div {
  color: var(--scale-text-mute);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
}

.scale-modern-pos-summary strong {
  color: var(--scale-text);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
}

.scale-modern-pos-summary-total {
  margin-top: 12px;
  padding-top: 12px;
  font-size: var(--scale-fs-22) !important;
}

.scale-modern-pos-summary-total strong {
  color: var(--scale-success);
  font-size: var(--scale-fs-22);
}

.scale-modern-pos-actions {
  gap: 6px;
  padding: 0 16px 12px;
}

.scale-modern-pos-actions button {
  min-height: 44px;
  border-radius: var(--scale-radius-tinted-btn) !important;
  background: var(--scale-primary-soft) !important;
  color: var(--scale-primary) !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-pos-pay {
  min-height: 46px;
  margin: 0 16px 8px;
  border-radius: var(--scale-radius-cta) !important;
  background: var(--scale-primary) !important;
  color: var(--scale-text-on-primary) !important;
  font-size: var(--scale-type-headline-size);
  font-weight: 600;
}

.scale-modern-pos-menu-header {
  min-height: 54px;
  padding: 0 22px 8px;
}

.scale-modern-pos-menu-header strong {
  font-size: var(--scale-type-headline-size);
  font-weight: 600;
}

.scale-modern-pos-category-row {
  gap: 8px;
  padding: 0 0 6px;
}

.scale-modern-pos-category {
  padding-inline: 0;
}

.scale-modern-pos-subcategory-row {
  gap: 4px;
  padding: 0 0 6px;
}

.scale-modern-pos-subcategory {
  min-height: 30px;
  padding: 6px 8px;
  border: var(--scale-hairline) solid var(--scale-border) !important;
}

.scale-modern-pos-product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 148px;
  gap: 14px;
  padding: 0 10px 24px 0;
}

.scale-modern-pos-product {
  min-height: 148px;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: var(--scale-panel) !important;
  box-shadow: 0 0 0 0.5px var(--scale-separator), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.scale-modern-pos-product__name {
  font-size: var(--scale-fs-14);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: var(--scale-tracking-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scale-modern-pos-product__meta {
  justify-content: flex-start;
  gap: 12px;
}

.scale-modern-pos-product__meta i {
  color: var(--scale-accent);
  font-size: var(--scale-fs-20);
}

.scale-modern-pos-product__meta strong {
  margin-left: 0;
  color: var(--scale-text);
  font-size: var(--scale-type-headline-size);
  font-weight: 500;
  line-height: 1.1;
}

@media (max-width: 1500px) {
  .scale-modern-pos-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .scale-modern-pos-grid {
    grid-template-columns: minmax(430px, 38%) minmax(560px, 1fr);
  }

  .scale-modern-pos-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scale-modern-pos-brand {
    min-width: 290px;
    gap: 34px;
  }

  .scale-modern-pos-nav button,
  .scale-modern-pos-switcher .scale-modern-switcher__button {
    min-width: 72px;
  }
}

/* Order page V2 final target: designV2/screenshots/04-order.png */
/* Shell owns the viewport; the topbar takes its natural height and the grid absorbs the rest.
   No magic numbers: the old `height: calc(100vh - 60px)` had to know the topbar's height, so
   any change to the header silently clipped the cart footer or opened a gap. Nothing here
   scrolls - the cart list and the product grid are the scroll containers. */
.scale-modern-pos {
  /* dvh tracks the visible viewport when mobile/tablet browser chrome collapses; vh does not,
     which is what makes 100vh layouts overflow on iPad Safari. vh first as the fallback. */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--scale-bg);
  color: var(--scale-text);
  overflow: hidden;
}

.scale-modern-pos-topbar {
    position: relative;
    /* Height comes from the content (tallest child), not a hard-coded value. Was `height: 50px`
       + `padding: 2% 0 !important`; percentage padding resolves against the containing block's
       WIDTH, so the bar grew as the screen got wider (~51px at 1280, ~80px at 2000, ~103px at
       2560) while the grid below subtracted a flat 60px - the surplus pushed the cart's footer
       out of view. `flex: 0 0 auto` keeps the bar at its natural height and never shrinks it. */
    flex: 0 0 auto;
    /* Undo the legacy `height: 84px` from the earlier .scale-modern-pos-topbar block above -
       without this the bar is still a fixed height and the content-sized approach is moot. */
    height: auto;
    box-sizing: border-box;
    padding: 6px 0;
    border-radius: 0;
    border-bottom: var(--scale-hairline) solid rgba(255, 255, 255, 0.10);
    background: var(--scale-primary);
    color: var(--scale-text-on-primary);
    box-shadow: none;
}

[data-scale-theme="dark"] .scale-modern-pos-topbar {
  background: var(--scale-bg);
}

.scale-modern-pos-brand {
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 0;
}

.scale-modern-pos-logo {
  width: 92px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.scale-modern-pos-topbar-actions {
  margin: 0;
  padding: 2px;
  gap: 0;
  border-radius: var(--scale-radius-seg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.scale-modern-pos-nav {
  display: inline-flex;
  gap: 0;
  padding: 0;
  background: transparent;
}

.scale-modern-pos-nav button {
  position: relative;
  min-width: 88px;
  min-height: 28px;
  padding: 9px 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 700;
  line-height: 1.2;
}

.scale-modern-pos-nav button.is-active {
  color: var(--scale-primary);
  background: var(--scale-panel);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.scale-modern-pos-nav button span {
  min-width: 18px;
  height: 16px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.20);
  font-size: var(--scale-fs-11);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-nav button.has-alert::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scale-danger);
  box-shadow: 0 0 0 2px var(--scale-primary);
}

.scale-modern-pos-userbar {
  position: absolute;
  top: 9px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scale-modern-pos-location {
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px !important;
  border-radius: var(--scale-radius-round) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--scale-text-on-primary) !important;
}

.scale-modern-pos-location i {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--scale-fs-14);
}

.scale-modern-pos-location strong {
  color: var(--scale-text-on-primary);
  font-size: var(--scale-fs-14) !important;
  font-weight: 700;
  line-height: 1;
}

.scale-modern-pos-location span {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--scale-type-caption-1-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-avatar {
  width: 32px;
  height: 32px;
  border: 0;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
  font-size: var(--scale-type-caption-1-size);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.70), 0 1px 3px rgba(0, 0, 0, 0.10);
}

.scale-modern-profile {
  position: relative;
}

.scale-modern-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  width: 220px;
  overflow: hidden;
  border-radius: var(--scale-radius-card);
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-sheet);
}

.scale-modern-profile-menu__user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: var(--scale-hairline) solid var(--scale-separator);
}

.scale-modern-profile-menu__user strong {
  color: var(--scale-text);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-profile-menu__user span {
  color: var(--scale-text-mute);
  font-size: var(--scale-type-caption-1-size);
}

.scale-modern-profile-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--scale-text);
  font-size: var(--scale-type-footnote-size);
  font-weight: 700;
  text-align: left;
}

.scale-modern-profile-menu button:hover {
  background: var(--scale-chip-bg);
}

.scale-modern-profile-menu button:disabled {
  cursor: default;
  color: var(--scale-text-soft);
  opacity: 0.58;
}

.scale-modern-profile-menu button.is-danger {
  color: var(--scale-danger);
  font-weight: 700;
}

.scale-modern-profile-menu button i {
  font-size: var(--scale-fs-17);
}

.scale-modern-pos-icon-button,
.scale-modern-pos-drawer-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--scale-panel);
  color: var(--scale-primary);
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-pos-icon-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.scale-modern-pos-icon-button i,
.scale-modern-pos-drawer-button i {
  font-size: var(--scale-fs-20);
}

.scale-modern-pos-icon-button i.is-spinning {
  animation: scale-modern-spin 900ms linear infinite;
}

.scale-modern-pos-switcher {
  display: none;
}

.scale-modern-pos-grid {
    /* Absorb whatever the topbar leaves. min-height:0 is what makes it work: a flex item
       defaults to min-height:auto and refuses to shrink below its content, which would push
       the cart footer past the bottom again. The cart list / product grid scroll internally. */
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 65%);
    gap: 0;
    margin-top: 0;
    padding-bottom: 0;
}

.scale-modern-pos-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* Sit on the boundary between the cart (left) and menu (right) columns. max(360px, 35%)
     mirrors the first column's minmax(360px, 35%) so the line stays on the seam even when
     the 360px minimum kicks in. z-index lifts it above the opaque cart panel. */
  left: max(360px, 35%);
  width: 1px;
  background: var(--scale-border);
  /* Centre the line in the 14px gutter that .scale-modern-pos-menu's left margin opens up
     (7px, less half the line's own 1px). This replaces `margin: 0 1%`, which scaled with the
     viewport: on a wide screen 1% (20px at 2000px) overshot the 14px gutter and parked the
     line on the menu panel's edge instead of between the two panels. */
  transform: translateX(6.5px);
  z-index: 1;
  pointer-events: none;
}

.scale-modern-pos-cart,
.scale-modern-pos-menu {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.scale-modern-pos-cart {
  gap: 0;
  border-radius: 0;
  padding: 0;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
}

/* Merge the four cart sections (chip-row header / cart-list / summary / footer) into a single
   continuous white surface. Their own backgrounds, shadows and radii are cleared so the parent
   .scale-modern-pos-cart card carries the frame. Internal padding is preserved so content
   stays comfortable; a hairline separator on each subsequent section keeps the visual rhythm. */
.scale-modern-pos-cart > .scale-modern-pos-order-summary-header,
.scale-modern-pos-cart > .scale-modern-pos-cart-list,
.scale-modern-pos-cart > .scale-modern-pos-summary,
.scale-modern-pos-cart > .scale-modern-pos-footer {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.scale-modern-pos-cart > .scale-modern-pos-cart-list,
.scale-modern-pos-cart > .scale-modern-pos-summary,
.scale-modern-pos-cart > .scale-modern-pos-footer {
  border-top: 0.5px solid var(--scale-separator);
}

.scale-modern-pos-cart > .scale-modern-pos-order-summary-header {
  padding: 4px 0px;
}

.scale-modern-pos-cart > .scale-modern-pos-cart-list {
  padding: 10px 14px;
}



.scale-modern-pos-cart > .scale-modern-pos-footer {
  padding: 12px 14px;
}

/* Flex-lock: cart-list absorbs remaining space (basis 0) and scrolls; header, summary and
   footer sit at their natural height and NEVER shrink. This must live on .scale-modern-pos-cart
   itself (not just the orders-dummy-cart variant) so both POS and Orders queue pages behave
   identically - opening a long order can't push the summary/footer off screen. */
.scale-modern-pos-cart > .scale-modern-pos-cart-list,
.scale-modern-pos-cart > .scale-modern-orders-detail-list {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.scale-modern-pos-cart > .scale-modern-pos-order-summary-header,
.scale-modern-pos-cart > .scale-modern-pos-summary,
.scale-modern-pos-cart > .scale-modern-pos-footer {
  flex: 0 0 auto !important;
}

.scale-modern-pos-menu {
  padding: 14px 16px 14px 0px;
}

.scale-modern-pos-order-summary-header {
  position: relative;
  z-index: 40;
  overflow: visible;
  border-radius: var(--scale-radius-card);
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-pos-order-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
}

.scale-modern-pos-order-row strong {
  flex: 0 0 auto;
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-order-row > span {
  width: 0.5px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--scale-separator);
}

.scale-modern-pos-order-row input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--scale-text);
        font-size: var(--scale-fs-14);
        font-weight: 500;
        line-height: 1.25;
        padding: 1px 2px !important;
    }

.scale-modern-customer-ref {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scale-modern-customer-ref > input {
  flex: 1 1 auto;
  min-width: 0;
}

.scale-modern-customer-add {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--scale-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  font-family: var(--scale-font-sans);
  transition: background 120ms ease, color 120ms ease;
}

.scale-modern-customer-add.has-reference {
  width: auto;
  padding: 0 9px 0 7px;
  border-radius: 8px;
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
}

.scale-modern-customer-add i {
  font-size: var(--scale-fs-15);
  line-height: 1;
}

.scale-modern-customer-add span {
  font-size: var(--scale-fs-12);
  font-weight: 600;
  line-height: 1;
}

.scale-modern-customer-chip {
  flex: 0 1 170px;
  min-width: 34px;
  max-width: 178px;
  height: var(--scale-chip-height);
  min-height: var(--scale-chip-height);
  border: 0;
  border-radius: 17px;
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
  padding: 0 8px 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  font-family: var(--scale-font-sans);
  overflow: hidden;
}

.scale-modern-customer-chip > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--scale-fs-10);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.scale-modern-customer-chip strong {
  min-width: 0;
  color: var(--scale-primary);
  font-size: var(--scale-fs-12);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scale-modern-customer-chip small {
  display: none;
}

.scale-modern-customer-chip i {
  flex: 0 0 auto;
  color: var(--scale-primary);
  font-size: var(--scale-fs-13);
}

@media (min-width: 1180px) {
  .scale-modern-customer-chip {
    flex-basis: 210px;
    max-width: 220px;
  }

  .scale-modern-customer-chip small {
    display: inline;
    flex: 0 0 auto;
    color: var(--scale-text-mute);
    font-size: var(--scale-fs-12);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }
}

.scale-modern-customer-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--scale-overlay);
}

.scale-modern-customer-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: min(96vw, 600px);
  max-height: min(90vh, 720px);
  border-radius: 16px;
  background: var(--scale-bg);
  box-shadow: var(--scale-shadow-sheet, 0 18px 44px rgba(0, 0, 0, 0.24));
  display: flex;
  flex-direction: column;
  font-family: var(--scale-font-sans);
}

.scale-modern-customer-grabber-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.scale-modern-customer-grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.40);
}

.scale-modern-customer-sheet__header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 2px 14px 12px;
}

.scale-modern-customer-sheet .scale-modern-customer-cancel {
  justify-self: start;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--scale-primary);
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-16);
  font-weight: 600;
  cursor: pointer;
}

.scale-modern-customer-sheet__title {
  justify-self: center;
  color: var(--scale-text);
  /* ONE font family app-wide — sans, like every other dialog title. */
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-20);
  font-weight: 600;
  letter-spacing: var(--scale-tracking-snug);
}

.scale-modern-customer-sheet .scale-modern-customer-save-top {
  justify-self: end;
  min-height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--scale-radius-cta);
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-16);
  font-weight: 600;
  cursor: pointer;
}

.scale-modern-customer-sheet .scale-modern-customer-save-top:hover:not(:disabled) {
  background: var(--scale-primary-hover);
}

.scale-modern-customer-sheet .scale-modern-customer-save-top:disabled {
  background: rgba(120, 120, 128, 0.16);
  color: var(--scale-text-mute);
  cursor: default;
}

.scale-modern-customer-sheet__body {
  min-height: 0;
  overflow: auto;
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scale-modern-customer-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  line-height: 1.35;
  padding: 0 2px;
}

.scale-modern-customer-hint i {
  margin-top: 2px;
  font-size: var(--scale-fs-12);
  color: var(--scale-text-mute);
}

.scale-modern-customer-hint strong {
  color: var(--scale-text);
  font-weight: 600;
}

.scale-modern-customer-fieldset {
  border-radius: 12px;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
  overflow: hidden;
}

.scale-modern-customer-field {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 0.5px solid var(--scale-separator);
}

/* Standalone required Phone field (its own bordered card above the list). */
.scale-modern-customer-field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-modern-customer-block-label {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-13);
  font-weight: 500;
  padding: 0 2px;
}

.scale-modern-customer-req {
  color: var(--scale-danger);
  font-weight: 700;
}

.scale-modern-customer-field-block .scale-modern-customer-field--single {
  min-height: 54px;
  border: 1px solid var(--scale-border);
  border-radius: 12px;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-customer-field-block .scale-modern-customer-field--single.is-required {
  border-color: color-mix(in srgb, var(--scale-danger) 45%, var(--scale-border));
}

.scale-modern-customer-field:last-child {
  border-bottom: 0;
}

.scale-modern-customer-field i {
  flex: 0 0 auto;
  width: 17px;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-17);
}

.scale-modern-customer-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--scale-text);
  font-size: var(--scale-fs-16);
  font-weight: 500;
  line-height: 1.3;
  font-family: var(--scale-font-sans);
}

.scale-modern-customer-field input::placeholder {
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-13);
  font-weight: 400;
}

.scale-modern-customer-field span {
  flex: 0 0 auto;
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-11);
  font-weight: 600;
}

.scale-modern-customer-matches {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.scale-modern-customer-matches > div {
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-11);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 4px;
}

.scale-modern-customer-matches section {
  border-radius: 12px;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
  overflow: hidden;
}

.scale-modern-customer-matches button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 0.5px solid var(--scale-separator);
  background: transparent;
  padding: 8px 10px 8px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  text-align: left;
  cursor: pointer;
  font-family: var(--scale-font-sans);
}

.scale-modern-customer-matches button:last-child {
  border-bottom: 0;
}

.scale-modern-customer-matches button > span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--scale-fs-12);
  font-weight: 700;
}

.scale-modern-customer-matches button strong {
  min-width: 0;
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-customer-matches button small {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.scale-modern-customer-matches button em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--scale-primary);
  font-size: var(--scale-fs-12);
  font-style: normal;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.scale-modern-customer-matches button em i {
  font-size: var(--scale-fs-12);
}

.scale-modern-customer-sheet .scale-modern-customer-more {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--scale-primary);
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-13);
  font-weight: 600;
  cursor: pointer;
}

.scale-modern-customer-more i {
  font-size: var(--scale-fs-13);
}

.scale-modern-customer-sheet .scale-modern-customer-remove,
.scale-modern-customer-sheet .scale-modern-customer-save {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  font-family: var(--scale-font-sans);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  cursor: pointer;
}

.scale-modern-customer-sheet .scale-modern-customer-remove {
  background: rgba(217, 72, 59, 0.10);
  color: var(--scale-danger);
}

.scale-modern-customer-sheet .scale-modern-customer-save {
  height: 44px;
  border-radius: 11px;
  margin-top: 2px;
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
}

.scale-modern-customer-sheet .scale-modern-customer-save:disabled {
  background: rgba(120, 120, 128, 0.16);
  color: var(--scale-text-mute);
  cursor: default;
}

.scale-modern-pos-order-row input::placeholder {
  color: var(--scale-text-soft);
  opacity: 1;
}

.scale-modern-pos-order-row em {
  flex: 0 0 auto;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-order-type-row {
  position: relative;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  margin: 0;
  padding: 6px 10px;
}

.scale-modern-pos-order-types {
  position: relative;
  z-index: 41;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px;
  border-top: 0;
  border-radius: 9px;
  background: rgba(120, 120, 128, 0.16);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scale-modern-pos-order-types::-webkit-scrollbar {
  display: none;
}

.scale-modern-pos-chip-wrap {
  position: relative;
  z-index: 42;
  width:stretch;
}

.scale-modern-pos-chip-wrap:has(.scale-modern-pos-chip.is-open) {
  z-index: 80;
}

.scale-modern-pos-chip {
  width: 100%;
  height: var(--scale-chip-height);
  min-height: var(--scale-chip-height);
  padding: 6px 12px !important;
  border-radius: 7px !important;
  color: var(--scale-text-mute) !important;
  background: transparent !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 700;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.scale-modern-pos-chip.is-active {
  color: var(--scale-text) !important;
  background: var(--scale-panel) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  font-weight: 600 !important;
}

.scale-modern-order-subtype-picker {
  position: relative;
  z-index: 81;
  flex: 0 0 auto;
}

.scale-modern-order-subtype-popover {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 100;
  width: 170px;
  border-radius: 10px;
  background: var(--scale-panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), var(--scale-shadow-tile);
  overflow: hidden;
}

/* Icon-only chevron: the selected child's name lives on the parent chip. */
.scale-modern-order-subtype-trigger {
  width: 30px;
  min-height: 28px;
  padding: 4px !important;
  border-radius: 7px !important;
  background: rgba(120, 120, 128, 0.12) !important;
  color: var(--scale-text-mute) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: var(--scale-type-footnote-size);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.scale-modern-order-subtype-trigger {
  overflow: hidden;
  text-overflow: ellipsis;
}

.scale-modern-order-subtype-trigger.has-value {
  background: var(--scale-primary-soft) !important;
  color: var(--scale-primary) !important;
}

.scale-modern-order-subtype-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.scale-modern-order-subtype-trigger i {
  font-size: var(--scale-fs-15);
  transition: transform 120ms ease;
}

.scale-modern-order-subtype-trigger.is-open i {
  transform: rotate(180deg);
}

/* Dine-in: table assignment replaces the sub-order-type dropdown in the order-type row. */
.scale-modern-pos-table-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
  font-size: var(--scale-type-footnote-size);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.scale-modern-pos-table-icon.is-empty {
  background: rgba(120, 120, 128, 0.12);
  color: var(--scale-text-mute);
}

.scale-modern-pos-table-icon .material-icons {
  font-size: var(--scale-fs-18);
}

.scale-modern-pos-table-icon__count {
  font-variant-numeric: tabular-nums;
}

.scale-modern-order-subtype-list {
  max-height: 184px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  scrollbar-width: none;
}

.scale-modern-order-subtype-list::-webkit-scrollbar {
  display: none;
}

.scale-modern-order-subtype-list button {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--scale-text-mute);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 7px 12px;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
}

.scale-modern-order-subtype-list button.is-selected {
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--scale-primary) 16%, transparent);
}

.scale-modern-order-subtype-list button i {
  width: 13px;
  font-size: var(--scale-fs-13);
  flex: 0 0 auto;
}

.scale-modern-pos-area-chip {
  flex: 0 0 auto;
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 0 9px !important;
  border-radius: 7px !important;
  color: var(--scale-text-mute) !important;
  background: rgba(120, 120, 128, 0.12) !important;
  font-size: var(--scale-type-footnote-size);
  font-weight: 700;
}

.scale-modern-pos-area-chip i {
  font-size: var(--scale-fs-16);
}

.scale-modern-pos-cart-list {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  border-radius: var(--scale-radius-card);
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-pos-cart-item-shell {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: var(--scale-panel);
}

.scale-modern-pos-cart-item-shell.swiping {
  z-index: 5;
}

.scale-modern-pos-cart-item-shell.deleting {
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 140ms ease;
}

.scale-modern-pos-cart-item-shell.swiping .scale-modern-pos-cart-item {
  cursor: grabbing;
}

.scale-modern-pos-cart-swipe-tray {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  min-width: 88px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--scale-text-on-primary);
  font-size: var(--scale-type-caption-1-size);
  font-weight: 700;
}

.scale-modern-pos-cart-swipe-tray i {
  font-size: var(--scale-fs-15);
}

.scale-modern-pos-cart-swipe-tray.is-delete {
  right: 0;
  background: var(--scale-danger);
}

.scale-modern-pos-cart-swipe-tray.is-edit {
  left: 0;
  background: var(--scale-primary);
}

.scale-modern-pos-cart-item-shell:not(.edit-intent) .scale-modern-pos-cart-swipe-tray.is-edit,
.scale-modern-pos-cart-item-shell:not(.delete-intent) .scale-modern-pos-cart-swipe-tray.is-delete {
  opacity: 0;
}

.scale-modern-pos-cart-item {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  margin: 0;
  padding: 7px 14px 7px 16px;
  border: 0;
  border-bottom: var(--scale-hairline) solid var(--scale-separator);
  border-radius: 0;
  background: var(--scale-panel);
  box-shadow: none;
  text-align: left;
  appearance: none;
  min-height: 0;
}

.scale-modern-pos-cart-item__main strong {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 500;
  line-height: 1.3;
}

.scale-modern-pos-cart-item__main small,
.scale-modern-pos-cart-child span {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-weight: 400;
  line-height: 1.45;
}

.scale-modern-pos-cart-item__qty,
.scale-modern-pos-cart-child strong {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 500;
}

.scale-modern-pos-cart-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: baseline;
  gap: 5px;
  margin-left: 2px;
  padding: 2px 0 0 9px;
  border-left: 1.5px solid var(--scale-border-strong);
}

.scale-modern-pos-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.5px auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--scale-radius-card);
  border-top: 0;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
  font-family: var(--scale-font-sans);
}

.scale-modern-pos-summary > div:not(.scale-modern-pos-summary-total) {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 13px;
  padding: 1px 12px 1px 14px;
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-weight: 500;
  line-height: 1.25;
}

.scale-modern-pos-summary > div:first-child {
  padding-top: 5px;
}

.scale-modern-pos-summary > div:nth-last-child(2) {
  padding-bottom: 5px;
}

.scale-modern-pos-summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 10;
  background: var(--scale-separator);
}

.scale-modern-pos-summary > div:not(.scale-modern-pos-summary-total) strong {
  color: var(--scale-text);
  font-weight: 500 !important;
  line-height: 1.35;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-summary-total {
  grid-column: 3 !important;
  grid-row: 1 / span 10;
  min-width: 124px;
  margin: 0;
  padding: 5px 14px !important;
  border-top: 0;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center !important;
  color: var(--scale-text-soft) !important;
  font-size: var(--scale-fs-10) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale-modern-pos-summary-total > span {
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-10);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale-modern-pos-summary-total strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--scale-text);
  font-size: var(--scale-fs-24) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-summary-total small {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-11) !important;
  font-weight: 600 !important;
  line-height: 1;
  letter-spacing: 0.04em;
}

.scale-modern-pos-pay {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border-radius: var(--scale-radius-cta) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--scale-text-on-primary) !important;
  background: var(--scale-primary) !important;
  font-size: var(--scale-type-headline-size);
  font-weight: 700;
}

.scale-modern-pos-pay i {
  font-size: var(--scale-fs-18);
}

/* Send-to-kitchen state: distinct green "go" so it never looks like the navy Charge action. */
.scale-modern-pos-pay.is-send {
  background: var(--scale-success) !important;
  color: var(--scale-text-on-primary) !important;
}

.scale-modern-pos-actions {
  display: flex;
  gap: 6px;
  padding: 0;
}

.scale-modern-pos-actions button {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  border-radius: var(--scale-radius-tinted-btn) !important;
  color: var(--scale-primary) !important;
  background: var(--scale-primary-soft) !important;
  font-size: var(--scale-type-footnote-size);
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.scale-modern-pos-actions button i {
  font-size: var(--scale-fs-14);
  line-height: 1;
}

.scale-modern-pos-menu {
  gap: 10px;
  margin: 0px 16px 14px 14px;
}

.scale-modern-pos-menu-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scale-modern-pos-search {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--scale-radius-tinted-btn);
  background: rgba(120, 120, 128, 0.12);
}

.scale-modern-pos-search i {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-16);
}

.scale-modern-pos-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--scale-text);
  font-size: var(--scale-type-callout-size);
}

.scale-modern-pos-search input::placeholder {
  color: var(--scale-text-mute);
  opacity: 1;
}

.scale-modern-pos-search kbd {
  padding: 2px 6px;
  border: 0;
  border-radius: var(--scale-radius-pill);
  background: rgba(120, 120, 128, 0.12);
  color: var(--scale-text-mute);
  font-family: var(--scale-font-mono);
  font-size: var(--scale-fs-11);
  font-weight: 700;
}

.scale-modern-pos-density {
  height: 34px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--scale-radius-seg);
  background: rgba(120, 120, 128, 0.12);
}

.scale-modern-pos-density button {
  width: 28px;
  height: 28px;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--scale-text-mute) !important;
}

.scale-modern-pos-density button.is-active {
  color: var(--scale-text) !important;
  background: var(--scale-panel) !important;
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-pos-density i {
  font-size: var(--scale-fs-18);
}

.scale-modern-pos-category-row,
.scale-modern-pos-subcategory-row {
  display: flex;
  gap: 8px;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scale-modern-pos-category-row::-webkit-scrollbar,
.scale-modern-pos-subcategory-row::-webkit-scrollbar {
  display: none;
}

.scale-modern-pos-subcategory-wrap {
  position: relative;
  min-width: 0;
}

.scale-modern-pos-subcategory-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, var(--scale-bg) 80%);
  z-index: 2;
}

.scale-modern-pos-subcategory-wrap .scale-modern-pos-subcategory-row {
  padding-right: 18px;
}

.scale-modern-pos-category {
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px !important;
  border-radius: var(--scale-radius-row-pill) !important;
  color: var(--scale-text) !important;
  background: rgba(120, 120, 128, 0.12) !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-pos-category.is-active {
  color: var(--scale-text-on-primary) !important;
  background: var(--scale-primary) !important;
}

.scale-modern-pos-category span,
.scale-modern-pos-subcategory span {
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 120, 128, 0.18);
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-11);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-category.is-active span {
  color: var(--scale-text-on-primary);
  background: rgba(255, 255, 255, 0.22);
}

.scale-modern-pos-subcategory {
  min-height: 30px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 10px 6px 12px !important;
  border: 0 !important;
  border-radius: var(--scale-radius-chip) !important;
  color: var(--scale-text-mute) !important;
  background: transparent !important;
  font-size: var(--scale-type-subheadline-size);
  font-weight: 600;
}

.scale-modern-pos-subcategory.is-active {
  color: var(--scale-primary) !important;
  background: var(--scale-primary-soft) !important;
}

.scale-modern-pos-product-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: 132px;
  gap: 12px;
  padding: 0 4px 24px 0;
  overflow-y: auto;
}

.scale-modern-pos-product-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
}

.scale-modern-pos-product-scroll .scale-modern-pos-product-grid {
  height: 100%;
}

.scale-modern-pos-product-scroll-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 4px;
  bottom: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--scale-bg) 90%);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 2;
}

.scale-modern-pos-product-scroll.has-more .scale-modern-pos-product-scroll-fade {
  opacity: 1;
}

.scale-modern-pos-product-scroll-pill {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 3px 9px 3px 10px !important;
  border-radius: 999px !important;
  background: var(--scale-panel) !important;
  box-shadow: 0 0 0 0.5px var(--scale-separator), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  color: var(--scale-text-mute) !important;
  font-family: var(--scale-font-sans);
  font-size: var(--scale-type-caption-1-size) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  transition: opacity 200ms ease;
  cursor: pointer;
}

.scale-modern-pos-product-scroll.has-more .scale-modern-pos-product-scroll-pill {
  pointer-events: auto;
  opacity: 1;
}

.scale-modern-pos-product-scroll-pill i {
  width: 11px;
  height: 11px;
  font-size: var(--scale-fs-11) !important;
  line-height: 11px !important;
}

.scale-modern-pos-product-grid--cols4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 102px;
  gap: 8px;
}

.scale-modern-pos-product-grid--cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 132px;
  gap: 12px;
}

/* One step denser than cols4: same tile anatomy, next size down on every
   dimension (row 102 -> 84, gap 8 -> 6). Tile-level type/padding lives with the
   other cols4 overrides further down this file. */
.scale-modern-pos-product-grid--cols6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 84px;
  gap: 6px;
}

.scale-modern-pos-product-grid--list {
  grid-template-columns: 1fr;
  grid-auto-rows: 58px;
}

.scale-modern-pos-product {
  position: relative;
  min-height: 132px;
  padding: 14px !important;
  border-radius: 14px !important;
  background: var(--scale-panel) !important;
  color: var(--scale-text) !important;
  box-shadow: var(--scale-shadow-tile);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.scale-modern-pos-product__badge {
  align-self: flex-start;
  padding: 1px 5px;
  border-radius: var(--scale-radius-pill);
  font-size: var(--scale-fs-9);
  font-weight: 800;
  letter-spacing: var(--scale-tracking-caps);
  line-height: 14px;
}

.scale-modern-pos-product__badge.is-mods {
  background: var(--scale-accent-soft);
  color: var(--scale-accent);
}

.scale-modern-pos-product__badge.is-combo {
  background: var(--scale-primary-soft);
  color: var(--scale-primary);
}

.scale-modern-pos-product__name {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scale-modern-pos-product__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scale-modern-pos-product__meta strong {
  color: var(--scale-text);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: var(--scale-fs-17);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.scale-modern-pos-product__meta small {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-10);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scale-modern-pos-product__meta em {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--scale-chip-bg);
  color: var(--scale-text-mute);
  font-size: var(--scale-type-footnote-size);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scale-modern-pos-product__meta em.has-qty {
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
}

.scale-modern-pos-chip {
  font-weight: 600;
}

.scale-modern-pos-product-grid--cols4 .scale-modern-pos-product {
  min-height: 102px;
  padding: 10px !important;
  border-radius: 12px !important;
  gap: 6px;
}

.scale-modern-pos-product-grid--cols4 .scale-modern-pos-product__name {
  font-size: var(--scale-fs-14);
}

.scale-modern-pos-product-grid--cols4 .scale-modern-pos-product__meta strong {
  font-size: var(--scale-fs-14);
}

.scale-modern-pos-product-grid--cols4 .scale-modern-pos-product__meta em {
  width: 24px;
  height: 24px;
}

/* cols6 tile: the cols4 treatment taken one step down. padding/border-radius need
   !important because modern-tokenlock.css sets both on the bare .scale-modern-pos-product
   with !important (which is also why the cols4 rules above carry it). */
.scale-modern-pos-product-grid--cols6 .scale-modern-pos-product {
  min-height: 84px;
  padding: 8px !important;
  border-radius: 10px !important;
  gap: 4px;
}

.scale-modern-pos-product-grid--cols6 .scale-modern-pos-product__name {
  font-size: var(--scale-fs-12);
}

.scale-modern-pos-product-grid--cols6 .scale-modern-pos-product__meta strong {
  font-size: var(--scale-fs-12);
}

.scale-modern-pos-product-grid--cols6 .scale-modern-pos-product__meta em {
  width: 20px;
  height: 20px;
}

.scale-modern-pos-product-grid--list .scale-modern-pos-product {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
}

.scale-modern-pos-product-grid--list .scale-modern-pos-product__badge {
  position: static;
  grid-column: 1;
  width: fit-content;
}

.scale-modern-pos-product-grid--list .scale-modern-pos-product__name {
  -webkit-line-clamp: 1;
}

.scale-modern-pos-product-grid--list .scale-modern-pos-product__meta {
  grid-column: 2;
  grid-row: 1 / span 2;
}

