/* ==========================================================================
   POS Screenshot Polish Stylesheet
   Parent task: pos-screenshot-workflow-20260919
   Author: AGY CLI (Safe child task)
   Covers:
   - 4-Action consolidated tools menu & edit mode sub-menu
   - Unified customer search / select in invoice column
   - Live category cart count badge & available stock badge
   - Standalone checkout dialog & return order dialog
   - 5-window canvas edit-mode safety & restaurant table safety
   - Mobile 390px & Desktop responsiveness + Midnight theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Consolidated POS Tools Menu (Topbar right)
   -------------------------------------------------------------------------- */
.pos-selling-shell .pos-tools-anchor,
.pos-shell .pos-tools-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 10050;
}

.pos-selling-shell .pos-tools-trigger,
.pos-shell .pos-tools-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-selling-shell .pos-tools-trigger.active,
.pos-selling-shell .pos-tools-trigger[aria-expanded="true"],
.pos-shell .pos-tools-trigger.active,
.pos-shell .pos-tools-trigger[aria-expanded="true"] {
  background: #eaf1ff;
  color: #1f63e9;
  box-shadow: inset 0 0 0 1px #9fc0f5;
}

.pos-selling-shell .pos-tools-menu,
.pos-shell .pos-tools-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20050;
  display: grid;
  min-width: 230px;
  padding: 6px;
  border: 1px solid #cddbea;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 40, 60, 0.18), 0 2px 6px rgba(16, 40, 60, 0.06);
}

.pos-selling-shell .pos-tools-menu-row,
.pos-shell .pos-tools-menu-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #405c78;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.pos-selling-shell .pos-tools-menu-row svg,
.pos-shell .pos-tools-menu-row svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.pos-selling-shell .pos-tools-menu-row:hover,
.pos-selling-shell .pos-tools-menu-row:focus-visible,
.pos-selling-shell .pos-tools-menu-row.active,
.pos-shell .pos-tools-menu-row:hover,
.pos-shell .pos-tools-menu-row:focus-visible,
.pos-shell .pos-tools-menu-row.active {
  background: #eef5ff;
  color: #1f63e9;
  outline: none;
}

/* Sub-menu edit options embedded inside tools menu */
.pos-selling-shell .pos-tools-menu .pos-edit-menu,
.pos-shell .pos-tools-menu .pos-edit-menu {
  position: static;
  display: grid;
  min-width: 0;
  margin: 6px 0 0;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid #dbe6f1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pos-selling-shell .pos-tools-menu .pos-edit-menu-row,
.pos-shell .pos-tools-menu .pos-edit-menu-row {
  min-height: 40px;
  padding: 8px 12px;
}

.pos-selling-shell .pos-tools-menu .pos-edit-menu-row.primary,
.pos-shell .pos-tools-menu .pos-edit-menu-row.primary {
  background: #1f63e9;
  color: #ffffff;
  font-weight: 600;
}

.pos-selling-shell .pos-tools-menu .pos-edit-menu-row.primary:hover,
.pos-selling-shell .pos-tools-menu .pos-edit-menu-row.primary:focus-visible,
.pos-shell .pos-tools-menu .pos-edit-menu-row.primary:hover,
.pos-shell .pos-tools-menu .pos-edit-menu-row.primary:focus-visible {
  background: #174fc0;
  color: #ffffff;
}

/* 5-window edit-mode canvas safety */
.pos-edit-active [data-pos-window="header"] {
  z-index: 20000 !important;
  overflow: visible !important;
}

.pos-edit-active .pos-tools-anchor {
  z-index: 20010 !important;
}

.pos-edit-active .pos-tools-menu {
  z-index: 20050 !important;
}

.pos-shell .pos-user > span.pos-tools-anchor {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   2. Category Rail & Live Cart Count Badge
   -------------------------------------------------------------------------- */
.pos-selling-shell .pos-category-count,
.pos-shell .pos-category-count {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid #d7e4f1;
  border-radius: 999px;
  background: #f3f7fc;
  color: #5f7892;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pos-selling-shell .pos-category.active .pos-category-count,
.pos-shell .pos-category.active .pos-category-count {
  border-color: rgba(255, 255, 255, 0.7);
  background: #ffffff;
  color: #1f63e9;
}

/* --------------------------------------------------------------------------
   3. Product Cards & Stock Badge
   -------------------------------------------------------------------------- */
.pos-selling-shell .product-card.is-out-of-stock,
.product-card.is-out-of-stock {
  cursor: not-allowed;
  opacity: 0.68;
}

.pos-selling-shell .product-card.is-out-of-stock .add-dot,
.product-card.is-out-of-stock .add-dot {
  background: #edf1f5;
  color: #8495a4;
}

/* --------------------------------------------------------------------------
   4. Unified Customer Search & Select Component
   -------------------------------------------------------------------------- */
.customer-picker {
  display: grid;
  gap: 0;
  position: relative;
  width: 100%;
  margin-bottom: 6px;
}

.customer-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ccd7dd;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.customer-picker-trigger:hover,
.customer-picker-trigger:focus-visible {
  border-color: #1f63e9;
  box-shadow: 0 0 0 2px rgba(31, 99, 233, 0.15);
  outline: none;
}

.customer-picker-chevron {
  color: var(--muted, #64748b);
  font-size: 18px;
  line-height: 1;
  margin-left: 8px;
  flex: 0 0 auto;
}

.customer-picker-panel {
  display: grid;
  gap: 8px;
  padding: 9px;
  margin-top: 5px;
  border: 1px solid #ccdbea;
  border-radius: 9px;
  background: #f8fbff;
  box-shadow: 0 8px 20px rgba(16, 40, 60, 0.12);
}

.customer-picker-panel[hidden] {
  display: none !important;
}

.customer-picker-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.customer-picker-add {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: #1f63e9;
  background: #eef4ff;
  border: 1px solid #d8e6fb;
  border-radius: 7px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.customer-picker-add:hover,
.customer-picker-add:focus-visible {
  background: #e2edff;
  border-color: #9fc0f5;
  outline: none;
}

.customer-picker-panel input#cart-customer-search {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  font-size: 13px;
  outline: none;
}

.customer-picker-panel input#cart-customer-search:focus {
  border-color: #1f63e9;
  box-shadow: 0 0 0 2px rgba(31, 99, 233, 0.15);
}

.customer-picker-options {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px;
}

.customer-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.customer-picker-option:hover,
.customer-picker-option:focus-visible,
.customer-picker-option.selected {
  border-color: #a9c5ee;
  background: #eef5ff;
  color: #1f63e9;
  outline: none;
}

.customer-picker-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-picker-option small {
  flex: 0 0 auto;
  font-size: 11px;
  color: #64748b;
}

.customer-picker-empty {
  padding: 8px;
  color: var(--muted, #64748b);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Checkout Dialog & Payments
   -------------------------------------------------------------------------- */
.checkout-hourly-row { background: var(--brand-soft, #eff6ff); }
.checkout-hourly-row .checkout-item-meta > span:last-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.checkout-hourly-row .checkout-thumb-placeholder { flex-shrink: 0; }
.checkout-hourly-label { display: block; font-size: 11px; color: var(--muted, #64748b); }
.checkout-earned-points { display: grid; gap: 5px; padding-top: 8px; border-top: 1px dashed #cbd5e1; font-size: 13px; color: var(--muted, #64748b); }
.checkout-earned-points > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-earned-points strong { color: var(--brand, #1677ff); text-align: right; }
#checkout-form .checkout-items-scroll { max-height: min(360px, 46dvh); padding-right: 8px; scrollbar-gutter: stable; }
#checkout-form .checkout-items-table { table-layout: fixed; }
#checkout-form .checkout-items-table .col-num { width: 24px; }
#checkout-form .checkout-items-table .col-qty { width: 64px; padding-left: 0; padding-right: 0; text-align: right; }
#checkout-form .checkout-items-table .col-price { width: 104px; }
#checkout-form .checkout-item-meta { min-width: 0; gap: 6px; }
#checkout-form .checkout-item-name { min-width: 0; overflow-wrap: anywhere; }
#checkout-form .checkout-thumb,
#checkout-form .checkout-thumb-placeholder { width: 28px; height: 28px; }
#checkout-form .checkout-qty-stepper { display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 1px !important; width: 64px !important; margin: 0 !important; padding: 0 !important; }
#checkout-form .checkout-qty-val { display: inline-block !important; grid-column: auto !important; grid-row: auto !important; flex: 1 1 22px !important; min-width: 0 !important; white-space: nowrap !important; font-size: 11px; }
#checkout-form .checkout-stepper-btn { flex: 0 0 20px !important; width: 20px !important; min-width: 20px !important; max-width: 20px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; }
#checkout-discount-fields .loyalty-checkout { margin-top: 12px; }
dialog:has(#checkout-form),
dialog:has(.checkout-dialog) {
  width: min(560px, calc(100vw - 24px));
  max-height: min(90vh, 90dvh);
  padding: 16px 20px 14px;
  border: 1px solid #cddbea;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(16, 40, 60, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

dialog:has(#checkout-form) .modal-head,
dialog:has(.checkout-dialog) .modal-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

dialog:has(#checkout-form) .modal-head h2,
dialog:has(.checkout-dialog) .modal-head h2 {
  font-size: 20px;
  font-weight: 750;
  color: #1b2c36;
}

dialog:has(#checkout-form) .close,
dialog:has(.checkout-dialog) .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #f0f4f6;
  border: 1px solid #ccd7dd;
  color: #354b54;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

dialog:has(#checkout-form) .close .modal-close-icon,
dialog:has(.checkout-dialog) .close .modal-close-icon {
  display: block;
  width: 15px;
  height: 15px;
}

dialog:has(#checkout-form) .close:hover,
dialog:has(#checkout-form) .close:focus-visible,
dialog:has(.checkout-dialog) .close:hover,
dialog:has(.checkout-dialog) .close:focus-visible {
  background: #dfe8ec;
  color: #112b36;
  border-color: #9eb5c0;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

#checkout-form .checkout-fixed-top {
  flex-shrink: 0;
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
}

#checkout-form .checkout-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  gap: 12px;
  padding: 4px 10px 8px 2px;
}

#checkout-form .checkout-footer {
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid #d8e4ef;
  background: #ffffff;
}

#checkout-form .checkout-footer .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

#checkout-form .checkout-footer button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-summary {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  background: #f8fbff;
}

.checkout-summary > div:first-child,
.checkout-summary > .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary > .cart-total {
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.checkout-summary > .cart-total strong {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.checkout-discount label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
  align-items: end;
  gap: 8px;
  font-size: 13px;
}

.checkout-discount label > select {
  min-height: 44px;
}

.checkout-discount .discount-editor-input {
  min-width: 0;
}

.checkout-discount .discount-editor-input input {
  min-height: 44px;
  text-align: right;
}

.checkout-discount-error {
  margin: 0 !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

.checkout-methods {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-methods legend {
  padding: 0;
  color: #405c78;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 8px;
  border: 1.5px solid #d6e1ed;
  border-radius: 8px;
  background: #ffffff;
  color: #49647e;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.payment-option:has(input:checked),
.payment-option.active {
  border-color: #1f63e9;
  background: #eaf1ff;
  color: #1f63e9;
  box-shadow: inset 0 0 0 1px #9fc0f5;
}

.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkout-payment-note {
  margin: 0;
}

.checkout-secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #e4ebf3;
}

.checkout-secondary-actions small {
  color: #6c8194;
  font-size: 12px;
}

.checkout-secondary-actions button[data-action="returnFromCheckout"] {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

#checkout-form .checkout-return-btn {
  min-height: 28px;
  padding: 3px 6px;
  gap: 3px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}

#checkout-form .checkout-return-icon {
  font-size: 12px;
}

@media (max-width: 600px) {
  dialog:has(#checkout-form) {
    padding: 12px 14px 10px;
  }

  dialog:has(#checkout-form) .modal-head {
    margin-bottom: 8px;
  }

  dialog:has(#checkout-form) .modal-head h2 {
    font-size: 18px;
  }

  dialog:has(#checkout-form) .close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  dialog:has(#checkout-form) .close .modal-close-icon {
    width: 14px;
    height: 14px;
  }

  #checkout-form .checkout-scroll-body {
    gap: 8px;
    padding: 2px 10px 6px 0;
  }

  #checkout-form .checkout-items-section {
    gap: 6px;
  }

  #checkout-form .checkout-items-head {
    gap: 8px;
  }

  #checkout-form .checkout-items-title {
    font-size: 13px;
  }

  #checkout-form .checkout-items-table {
    font-size: 12px;
  }

  #checkout-form .checkout-items-table th,
  #checkout-form .checkout-items-table td {
    padding: 5px 3px;
  }

  #checkout-form .checkout-items-table .col-num { width: 16px; }
  #checkout-form .checkout-items-table .col-qty { width: 64px; }
  #checkout-form .checkout-items-table .col-price { width: 76px; padding-left: 1px; padding-right: 1px; }

  #checkout-form .checkout-empty-row td {
    padding: 10px !important;
  }

  #checkout-form .checkout-summary {
    gap: 6px;
    padding: 10px;
  }

  #checkout-form .checkout-summary-main {
    gap: 8px;
    flex-wrap: wrap;
  }

  #checkout-form .checkout-summary-head {
    gap: 8px;
  }

  #checkout-form .checkout-summary-title {
    font-size: 16px;
  }

  #checkout-form .checkout-due-amount {
    font-size: 22px;
  }

  #checkout-form .checkout-discount-chip {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 12px;
  }

  #checkout-form .checkout-discount-fields {
    padding-top: 6px;
  }

  #checkout-form input:not([type="checkbox"]):not([type="radio"]),
  #checkout-form select {
    height: 40px;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 16px;
  }

  #checkout-form #checkout-paid-input,
  #checkout-form .checkout-discount-inputs input:not([type="checkbox"]):not([type="radio"]),
  #checkout-form .checkout-discount-inputs select {
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
  }

  #checkout-form #checkout-paid-input {
    max-width: 132px;
    padding-right: 28px;
  }

  #checkout-form .checkout-discount-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 260px;
  }

  #checkout-form .checkout-discount-inputs select {
    min-width: 0;
  }

  #checkout-form .checkout-summary .note,
  #checkout-form .discount-editor-error {
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
  }

  #checkout-form .checkout-methods {
    gap: 6px;
  }

  #checkout-form .payment-option {
    min-height: 40px;
    padding: 6px;
    font-size: 12px;
    line-height: 1.2;
  }

  #checkout-form .checkout-field-row {
    gap: 8px;
    margin-bottom: 6px;
  }

  #checkout-form .checkout-change-pill {
    padding: 4px 10px;
    font-size: 13px;
  }

  #checkout-form .checkout-order-note {
    gap: 4px;
  }

  #checkout-form .checkout-footer {
    padding-top: 8px;
  }

  #checkout-form .checkout-footer .form-actions {
    gap: 8px;
  }

  #checkout-form .checkout-footer .btn {
    min-height: 40px;
    padding: 7px 12px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   6. Return Order Picker & Form
   -------------------------------------------------------------------------- */
.return-order-picker {
  display: grid;
  gap: 8px;
  max-height: 62dvh;
  overflow-y: auto;
}

.return-order-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #d8e4ef;
  border-radius: 9px;
  background: #f8fbff;
}

.return-order-option .grow {
  min-width: 0;
}

.return-order-option strong,
.return-order-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.return-order-option small {
  margin-top: 4px;
  color: #6c8194;
  font-size: 11px;
}

.return-order-items {
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  padding: 0 4px;
}


/* --------------------------------------------------------------------------
   7. Midnight (Dark Mode) Theme
   -------------------------------------------------------------------------- */
html[data-ui-style="midnight"] .pos-selling-shell .pos-tools-menu,
html[data-ui-style="midnight"] .pos-shell .pos-tools-menu {
  background: #112b36;
  border-color: #294652;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-tools-menu-row,
html[data-ui-style="midnight"] .pos-shell .pos-tools-menu-row {
  color: #e7f1f3;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-tools-menu-row:hover,
html[data-ui-style="midnight"] .pos-selling-shell .pos-tools-menu-row:focus-visible,
html[data-ui-style="midnight"] .pos-selling-shell .pos-tools-menu-row.active,
html[data-ui-style="midnight"] .pos-shell .pos-tools-menu-row:hover,
html[data-ui-style="midnight"] .pos-shell .pos-tools-menu-row:focus-visible,
html[data-ui-style="midnight"] .pos-shell .pos-tools-menu-row.active {
  background: #173946;
  color: #60a5fa;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-category-count,
html[data-ui-style="midnight"] .pos-shell .pos-category-count {
  border-color: #294652;
  background: #173946;
  color: #b5cbd5;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-category,
html[data-ui-style="midnight"] .pos-selling-shell .customer-picker-trigger,
html[data-ui-style="midnight"] .pos-selling-shell .customer-picker-panel,
html[data-ui-style="midnight"] .pos-selling-shell .customer-picker-option,
html[data-ui-style="midnight"] .customer-picker-trigger,
html[data-ui-style="midnight"] .customer-picker-panel,
html[data-ui-style="midnight"] .customer-picker-option {
  background: #112b36;
  color: #e7f1f3;
  border-color: #294652;
}

html[data-ui-style="midnight"] .customer-picker-add {
  background: #173946;
  color: #60a5fa;
  border-color: #294652;
}

html[data-ui-style="midnight"] .customer-picker-panel input#cart-customer-search {
  background: #0b1d24;
  color: #e7f1f3;
  border-color: #294652;
}

html[data-ui-style="midnight"] .customer-picker-option:hover,
html[data-ui-style="midnight"] .customer-picker-option.selected {
  background: #1a4252;
  border-color: #3b6b80;
  color: #60a5fa;
}

html[data-ui-style="midnight"] dialog:has(#checkout-form),
html[data-ui-style="midnight"] dialog:has(.checkout-dialog) {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}

html[data-ui-style="midnight"] dialog:has(#checkout-form) .modal-head h2,
html[data-ui-style="midnight"] dialog:has(.checkout-dialog) .modal-head h2 {
  color: #e7f1f3;
}

html[data-ui-style="midnight"] dialog:has(#checkout-form) .close,
html[data-ui-style="midnight"] dialog:has(.checkout-dialog) .close {
  background: #173946;
  border-color: #294652;
  color: #e7f1f3;
}

html[data-ui-style="midnight"] #checkout-form .checkout-footer {
  background: #112b36;
  border-top-color: #294652;
}

html[data-ui-style="midnight"] .checkout-summary,
html[data-ui-style="midnight"] .payment-option,
html[data-ui-style="midnight"] .return-order-option {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}

html[data-ui-style="midnight"] .checkout-summary > .cart-total strong {
  color: #e7f1f3;
}

html[data-ui-style="midnight"] .checkout-methods legend,
html[data-ui-style="midnight"] .checkout-secondary-actions small {
  color: #b5cbd5;
}

html[data-ui-style="midnight"] .return-order-items {
  background: #0b1d24;
  border-color: #294652;
}

/* --------------------------------------------------------------------------
   8. Responsive Design & Mobile 390px Viewport
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .pos-selling-shell .pos-tools-menu,
  .pos-shell .pos-tools-menu {
    right: -4px;
    min-width: min(230px, calc(100vw - 18px));
  }

  .pos-selling-shell .pos-tools-trigger span,
  .pos-shell .pos-tools-trigger span {
    display: none;
  }

  .payment-options {
    flex-direction: column;
    gap: 6px;
  }

  .checkout-discount label {
    grid-template-columns: 1fr;
  }

  dialog:has(#checkout-form),
  dialog:has(.checkout-dialog) {
    width: calc(100vw - 16px);
    margin: 8px;
    padding: 14px 12px;
  }
}

@media (max-width: 390px) {
  .pos-selling-shell .pos-category-count,
  .pos-shell .pos-category-count {
    min-width: 20px;
    height: 19px;
    padding: 0 4px;
    font-size: 10px;
  }

  .customer-picker-trigger {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   10. Approved full-height sales workspace — 2026-09-21
   -------------------------------------------------------------------------- */
.pos-selling-shell .discount-trigger,
.pos-selling-shell > .pos-actions,
.pos-selling-shell .pos-content > .pos-actions {
  display: none !important;
}

.pos-selling-shell .pos-category-footer,
.pos-selling-shell .cart-checkout-footer {
  flex: 0 0 auto;
}

.pos-selling-shell .pos-category-footer .pos-action-item,
.pos-selling-shell .cart-checkout-footer .pos-action-item {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
}

.pos-selling-shell .pos-category-footer .command-action,
.pos-selling-shell .cart-checkout-footer .command-action {
  width: 100%;
  min-height: var(--pos-action-item-height, 54px) !important;
}

.pos-selling-shell .pos-category-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.pos-selling-shell .pos-clear-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #ef4444 !important;
  border-radius: 9px;
  background: #ffffff !important;
  color: #dc2626 !important;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none !important;
}

.pos-selling-shell .pos-clear-cart:hover,
.pos-selling-shell .pos-clear-cart:focus-visible {
  background: #fff1f2 !important;
  border-color: #dc2626 !important;
  color: #b91c1c !important;
}

.pos-selling-shell .pos-clear-cart svg {
  width: 20px;
  height: 20px;
}

.pos-selling-shell .cart-checkout-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.pos-selling-shell .cart-checkout-footer .pos-action-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0 !important;
  min-height: var(--pos-action-item-height, 62px) !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 1px solid #16a34a !important;
  border-radius: 10px !important;
  background: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(22, 163, 74, 0.24) !important;
}

.pos-selling-shell .cart-checkout-footer .pos-action-checkout:hover,
.pos-selling-shell .cart-checkout-footer .pos-action-checkout:focus-visible {
  background: #15803d !important;
  border-color: #15803d !important;
}

.pos-selling-shell .cart-checkout-footer .pos-action-checkout:disabled {
  background: #7bc794 !important;
  border-color: #7bc794 !important;
  opacity: 1;
}

.pos-selling-shell .cart-checkout-footer .pos-checkout-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
}

.pos-selling-shell .cart-checkout-footer .pos-action-checkout strong {
  margin-left: auto;
  color: #ffffff !important;
  font-size: 20px;
  white-space: nowrap;
}

.pos-selling-shell .cart-checkout-footer .pos-action-checkout svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.pos-selling-shell .cart-heading .pos-save-order {
  min-height: 36px;
  padding: 7px 11px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  white-space: nowrap;
}

.pos-selling-shell .product-info {
  background: linear-gradient(
    to bottom,
    rgba(7, 15, 25, 0) 0%,
    rgba(7, 15, 25, 0.34) 30%,
    rgba(7, 15, 25, 0.84) 72%,
    rgba(7, 15, 25, 0.96) 100%
  ) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.pos-selling-shell .product-photo {
  filter: none !important;
  opacity: 1 !important;
}

@media (min-width: 901px) {
  .pos-selling-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .pos-selling-shell .pos-topbar {
    height: 72px !important;
    min-height: 72px;
    padding: 0 14px;
    grid-template-columns: clamp(210px, 14vw, 270px) minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .pos-selling-shell .pos-brand-cluster {
    gap: 12px;
  }

  .pos-selling-shell .pos-brand-cluster .pos-brand {
    max-width: 170px;
  }

  .pos-selling-shell .pos-brand-cluster h1 {
    font-size: 20px;
  }

  .pos-selling-shell .pos-header-tools {
    gap: 8px;
  }

  .pos-selling-shell .pos-header-search {
    height: 44px;
    padding-left: 38px;
    border-radius: 9px;
  }

  .pos-selling-shell .pos-header-search input {
    height: 42px;
    min-height: 42px;
    font-size: 14px;
  }

  .pos-selling-shell .pos-header-search > svg {
    top: 12px;
  }

  .pos-selling-shell .pos-header-search > .quick-action {
    height: 36px;
    min-height: 36px;
  }

  .pos-selling-shell .quick-action,
  .pos-selling-shell .pos-tools-trigger {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .pos-selling-shell .pos-user {
    gap: 6px;
  }

  .pos-selling-shell .pos-user > .badge {
    display: none;
  }

  .pos-selling-shell .pos-content.pos-selling {
    height: calc(100dvh - 72px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .pos-selling-shell .pos-layout {
    display: grid !important;
    height: 100%;
    min-height: 0;
    grid-template-columns: clamp(220px, 13vw, 260px) minmax(0, 1fr) clamp(430px, 28vw, 520px) !important;
    gap: 0 !important;
    background: #edf3fa;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-category-rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 12px 12px;
    overflow: hidden;
    border-right: 1px solid #dce5ef;
    background: #ffffff;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-category-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1px 2px 10px 0;
  }

  .pos-selling-shell .pos-section-label {
    min-height: 30px;
    padding: 0 6px 8px;
    font-size: 11px;
  }

  .pos-selling-shell .pos-category {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 9px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-products {
    min-height: 0;
    padding: 12px;
    overflow: hidden;
    background: #edf3fa;
  }

  .pos-selling-shell .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
    min-height: 0;
    padding: 0 4px 8px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-content: start !important;
  }

  .pos-selling-shell .product-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    border-radius: 10px !important;
  }

  .pos-selling-shell .product-info {
    padding: 18px 9px 7px !important;
  }

  .pos-selling-shell .product-info strong {
    font-size: clamp(11px, 0.78vw, 14px) !important;
  }

  .pos-selling-shell .product-info .price {
    font-size: clamp(14px, 1vw, 18px) !important;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .cart {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-left: 1px solid #d8e3ee;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .pos-selling-shell .cart-heading {
    min-height: 72px;
    padding: 10px 12px;
  }

  .pos-selling-shell .cart-heading h3 {
    font-size: 17px;
  }

  .pos-selling-shell .cart-body {
    padding: 10px 12px 6px;
  }

  .pos-selling-shell .cart-items {
    padding-right: 2px;
  }

  .pos-selling-shell .cart-line {
    padding: 8px 0;
  }

  .pos-selling-shell .customer-picker-trigger {
    min-height: 42px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .pos-selling-shell .pos-topbar {
    grid-template-columns: 190px minmax(0, 1fr) auto !important;
  }

  .pos-selling-shell .pos-brand-cluster h1 {
    font-size: 18px;
  }

  .pos-selling-shell .pos-brand-cluster .pos-brand {
    max-width: 125px;
  }

  .pos-selling-shell .pos-layout {
    grid-template-columns: 170px minmax(0, 1fr) 340px !important;
  }

  .pos-selling-shell .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .pos-selling-shell .pos-quick-actions .quick-action:first-child {
    max-width: 108px;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .pos-selling-shell .pos-category-rail {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .pos-selling-shell .pos-category-list {
    width: 100%;
  }

  .pos-selling-shell .pos-category-footer {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
  }

  .pos-selling-shell .pos-category-footer .command-action,
  .pos-selling-shell .cart-checkout-footer .command-action {
    min-height: 48px !important;
  }

  .pos-selling-shell .product-card {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .pos-selling-shell .cart {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .pos-selling-shell .cart-checkout-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .pos-selling-shell .pos-content.pos-selling {
    padding: 10px 8px 16px !important;
  }

  .pos-selling-shell .pos-category-footer .command-action {
    min-height: 48px !important;
  }

  .pos-selling-shell .cart-checkout-footer .pos-action-checkout {
    min-height: 56px !important;
  }

  .pos-selling-shell .cart-checkout-footer .pos-action-checkout strong {
    font-size: 17px;
  }
}

html[data-ui-style="midnight"] .pos-selling-shell:not(.pos-window-layout-active) .pos-category-rail,
html[data-ui-style="midnight"] .pos-selling-shell:not(.pos-window-layout-active) .cart,
html[data-ui-style="midnight"] .pos-selling-shell .cart-checkout-footer {
  border-color: #294652;
  background: #112b36;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-category-footer {
  border-color: #294652;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-clear-cart {
  background: #2d2430 !important;
  border-color: #ef7f88 !important;
  color: #ffd7dc !important;
}

/* The POS theme applies to the table landing, sales, invoices and shifts. */
html[data-ui-style="midnight"] .pos-shell,
html[data-ui-style="midnight"] .pos-selling-shell,
html[data-ui-style="midnight"] .pos-shell .pos-content {
  background: #0b1e27;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .pos-topbar,
html[data-ui-style="midnight"] .pos-shell .pos-nav {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .pos-brand,
html[data-ui-style="midnight"] .pos-selling-shell .pos-brand-cluster h1 {
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .pos-brand small,
html[data-ui-style="midnight"] .pos-selling-shell .pos-brand-cluster .pos-brand small,
html[data-ui-style="midnight"] .pos-selling-shell .pos-user-name {
  color: #b5cbd5;
}
html[data-ui-style="midnight"] .pos-shell .pos-nav a {
  color: #c4d5df;
}
html[data-ui-style="midnight"] .pos-shell .pos-nav a.active {
  background: #1f7775;
  color: #fff;
}
html[data-ui-style="midnight"] .pos-shell .pos-topbar .btn:not(.primary) {
  background: #173946;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .badge {
  background: #173b39;
  color: #b9e8db;
}
html[data-ui-style="midnight"] .pos-shell .badge.warn {
  background: #46391f;
  color: #ffe1a1;
}
html[data-ui-style="midnight"] .pos-shell .badge.danger {
  background: #452c35;
  color: #ffd7dc;
}
html[data-ui-style="midnight"] .pos-shell .table-seat {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .table-seat.busy {
  background: #173946;
  border-color: #45b8b2;
}
html[data-ui-style="midnight"] .restaurant-landing-head h1,
html[data-ui-style="midnight"] .restaurant-takeaway-card h2,
html[data-ui-style="midnight"] .restaurant-table-card strong {
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .restaurant-landing-stats,
html[data-ui-style="midnight"] .restaurant-takeaway-card,
html[data-ui-style="midnight"] .restaurant-table-card,
html[data-ui-style="midnight"] .restaurant-table-card.empty,
html[data-ui-style="midnight"] .restaurant-table-card.occupied,
html[data-ui-style="midnight"] .restaurant-table-card.reserved {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .restaurant-table-card.occupied {
  border-color: #45b8b2;
}
html[data-ui-style="midnight"] .restaurant-table-card.reserved {
  border-color: #d8aa5b;
}
html[data-ui-style="midnight"] .restaurant-landing-stats strong,
html[data-ui-style="midnight"] .restaurant-table-card small,
html[data-ui-style="midnight"] .restaurant-landing-head p,
html[data-ui-style="midnight"] .restaurant-takeaway-card p,
html[data-ui-style="midnight"] .restaurant-section-heading p {
  color: #b5cbd5;
}
html[data-ui-style="midnight"] .restaurant-kicker,
html[data-ui-style="midnight"] .restaurant-table-card.occupied .restaurant-table-status,
html[data-ui-style="midnight"] .restaurant-table-card.reserved .restaurant-table-status {
  color: #77d8c7;
}
html[data-ui-style="midnight"] .restaurant-pos-context,
html[data-ui-style="midnight"] .pos-selling-shell .pos-mobile-cart-summary {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .restaurant-pos-context .restaurant-kicker,
html[data-ui-style="midnight"] .pos-selling-shell .pos-mobile-cart-summary > strong {
  color: #8db8ff;
}
html[data-ui-style="midnight"] .restaurant-pos-context small,
html[data-ui-style="midnight"] .pos-selling-shell .pos-mobile-cart-summary small {
  color: #b5cbd5;
}
html[data-ui-style="midnight"] .pos-selling-shell .pos-mobile-cart-summary b {
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .pos-mobile-cart-summary > span:last-child {
  background: #173946;
  color: #b8d4ff;
}
html[data-ui-style="midnight"] .pos-shell .pos-content .btn:not(.primary):not(.orange):not(.danger):not(.pos-action-checkout) {
  background: #173946;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-shell .pos-content .btn.danger {
  background: #2d2430;
  border-color: #71414d;
  color: #ffd7dc;
}
html[data-ui-style="midnight"] .pos-shell .pos-content .empty strong {
  color: #e7f1f3;
}

/* Retail layout has its own light surfaces after the shared POS styles. */
html[data-ui-style="midnight"] .pos-selling-shell .pos-header-search,
html[data-ui-style="midnight"] .pos-selling-shell .pos-layout,
html[data-ui-style="midnight"] .pos-selling-shell:not(.pos-window-layout-active) .pos-products {
  background: #0b1e27;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .pos-header-search input {
  background: transparent;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .pos-header-search input::placeholder {
  color: #aabec7;
}
html[data-ui-style="midnight"] .pos-selling-shell .quick-action,
html[data-ui-style="midnight"] .pos-selling-shell .pos-header-search .quick-action,
html[data-ui-style="midnight"] .pos-selling-shell .header-icon {
  background: #173946;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .quick-action:hover,
html[data-ui-style="midnight"] .pos-selling-shell .header-icon:hover {
  background: #1e4554;
  color: #fff;
}
html[data-ui-style="midnight"] .pos-selling-shell:not(.pos-window-layout-active) .pos-category-rail,
html[data-ui-style="midnight"] .pos-selling-shell:not(.pos-window-layout-active) .cart,
html[data-ui-style="midnight"] .pos-selling-shell .cart-checkout-footer,
html[data-ui-style="midnight"] .pos-selling-shell .pos-category-footer {
  background: #112b36;
  border-color: #294652;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .pos-section-label,
html[data-ui-style="midnight"] .pos-selling-shell .cart-kicker,
html[data-ui-style="midnight"] .pos-selling-shell .cart-heading small,
html[data-ui-style="midnight"] .pos-selling-shell .cart-line small {
  color: #b5cbd5;
}
html[data-ui-style="midnight"] .pos-selling-shell .product-card {
  background: #112b36;
  border-color: #294652;
}
html[data-ui-style="midnight"] .pos-selling-shell .product-info strong,
html[data-ui-style="midnight"] .pos-selling-shell .cart-heading h3,
html[data-ui-style="midnight"] .pos-selling-shell .cart-line strong,
html[data-ui-style="midnight"] .pos-selling-shell .cart-line-controls .qty span {
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .cart-heading .pos-save-order {
  background: #1e4554;
  border-color: #3b6472;
  color: #e7f1f3;
}
html[data-ui-style="midnight"] .pos-selling-shell .cart-line-controls .qty button,
html[data-ui-style="midnight"] .pos-selling-shell .pay-methods button {
  background: #173946;
  border-color: #294652;
  color: #e7f1f3;
}


/* --------------------------------------------------------------------------
   2026-09-24 — compact POS workspace, square product cards and table shortcut
   -------------------------------------------------------------------------- */
.pos-selling-shell .product-card {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.pos-selling-shell .cart-checkout-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 10px;
  align-items: stretch;
}

.pos-selling-shell .cart-checkout-footer .pos-action-item {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.pos-selling-shell .cart-checkout-footer .command-action {
  width: 100% !important;
  height: 100%;
  min-width: 0 !important;
}

.pos-selling-shell .pos-category-footer .pos-table-list-action {
  display: inline-flex;
  width: 100%;
  min-height: 52px !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #bfd0df;
  border-radius: 10px;
  background: #f8fbfd;
  color: #123a4d;
  font-weight: 800;
}

.pos-selling-shell .pos-category-footer .pos-table-list-action:hover,
.pos-selling-shell .pos-category-footer .pos-table-list-action:focus-visible {
  border-color: #7fa5bd;
  background: #eef6fa;
}

html[data-ui-style="midnight"] .pos-selling-shell .pos-category-footer .pos-table-list-action {
  border-color: #3b6472;
  background: #173946;
  color: #e7f1f3;
}

@media (min-width: 901px) {
  .pos-selling-shell:not(.pos-window-layout-active) .pos-topbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 10px !important;
    grid-template-columns: clamp(190px, 13vw, 240px) minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-content.pos-selling {
    height: calc(100dvh - 48px) !important;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-brand-cluster {
    gap: 8px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-brand-cluster .pos-brand {
    max-width: 145px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-brand img {
    width: 30px;
    height: 30px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-brand-cluster h1 {
    font-size: 17px;
    white-space: nowrap;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-header-tools {
    gap: 7px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-header-search {
    height: 36px;
    padding-left: 34px;
    border-radius: 8px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-header-search input {
    height: 34px;
    min-height: 34px;
    font-size: 13px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-header-search > svg {
    top: 8px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-header-search > .quick-action,
  .pos-selling-shell:not(.pos-window-layout-active) .quick-action,
  .pos-selling-shell:not(.pos-window-layout-active) .pos-tools-trigger,
  .pos-selling-shell:not(.pos-window-layout-active) .pos-user > .btn {
    height: 34px;
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .pos-selling-shell:not(.pos-window-layout-active) .pos-user {
    gap: 5px;
  }
}

@media (max-width: 900px) {
  .pos-selling-shell .product-card {
    aspect-ratio: 1 / 1 !important;
  }

  .pos-selling-shell .cart-checkout-footer {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  }
}

/* Sales screen matched to the supplied 1672 x 941 desktop mockup. */
html .pos-selling-shell:not(.pos-edit-active) {
  background: #061b29;
  color: #f5f8fb;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-topbar {
  background: linear-gradient(100deg, #061b29, #082c3e 75%, #071d2b) !important;
  border-color: #14394c !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-brand,
html .pos-selling-shell:not(.pos-edit-active) .pos-brand strong {
  color: #f8fbff !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-brand small {
  color: #b7c9d4 !important;
  font-weight: 400;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-header-search {
  background: #071d2c !important;
  border-color: #28516a !important;
  box-shadow: none;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-header-search input {
  color: #f7fbff !important;
  background: transparent !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-header-search input::placeholder {
  color: #e1e9ef;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-header-search > svg {
  color: #f4f8fb;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 10px;
  border: 1px solid #2d5b73;
  border-radius: 11px;
  background: #0b2b3c;
  white-space: nowrap;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls .pos-table-list-action,
html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls .pos-active-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px !important;
  padding: 4px 10px;
  border: 0 !important;
  background: transparent !important;
  color: #f7fbff !important;
  font-size: 16px;
  font-weight: 500;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls .pos-active-table {
  border-left: 1px solid #7292a3 !important;
  padding-left: 16px;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls svg {
  width: 24px;
  height: 24px;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-down-chevron {
  margin-left: 8px;
  font-size: 24px;
  line-height: 1;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-trigger {
  min-height: 52px;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #2d5b73 !important;
  border-radius: 11px;
  background: #0b2b3c !important;
  color: #f7fbff !important;
  font-size: 15px;
  font-weight: 500;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-trigger::after {
  content: '⌄';
  margin-left: 3px;
  font-size: 22px;
  line-height: .7;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu {
  min-width: 300px;
  max-width: min(90vw, 340px);
  background: #0b2b3c;
  border-color: #2d5b73;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu .scan-action {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  min-height: 44px;
  opacity: 1 !important;
  text-align: left;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu .pos-menu-customer-picker {
  display: grid !important;
  margin: 6px 0;
  border-top: 1px solid #2d5b73;
  padding-top: 8px;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu .customer-picker-trigger {
  background: #173946;
  border-color: #2d5b73;
  color: #f5f9fc;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu-row,
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu .held-orders-trigger,
html .pos-selling-shell:not(.pos-edit-active) .pos-tools-menu [data-action="logout"] {
  color: #f5f9fc !important;
  background: transparent !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-quick-actions,
html .pos-selling-shell:not(.pos-edit-active) .pos-user-name,
html .pos-selling-shell:not(.pos-edit-active) .pos-user > .badge,
html .pos-selling-shell:not(.pos-edit-active) .pos-user > [data-action="logout"] {
  display: none !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-brand-cluster h1 {
  position: absolute;
  left: calc(18px + clamp(220px, 15vw, 252px));
  width: 1px;
  overflow: hidden;
  opacity: 0;
}

html .pos-selling-shell:not(.pos-edit-active) .pos-layout {
  background: #061b29 !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-section-label {
  display: none;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-category {
  color: #f4f8fc !important;
  background: #08283a !important;
  border: 1px solid #1c4960 !important;
  box-shadow: none !important;
  font-weight: 500;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-category.active {
  background: linear-gradient(110deg, #087479, #07505e) !important;
  border-color: #15c9cb !important;
  font-weight: 700;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-category svg {
  color: #f7fbff !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-category-count {
  min-width: 30px;
  height: 30px;
  border: 0;
  background: #1c4358;
  color: #fff;
  font-size: 15px;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-category.active .pos-category-count {
  background: #e3f2f7;
  color: #092433;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-clear-cart {
  min-height: 70px !important;
  border: 1px solid #ef3445 !important;
  border-radius: 11px;
  background: #1e242f !important;
  color: #ff4355 !important;
  font-size: 20px;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-clear-cart svg {
  width: 28px;
  height: 28px;
}
html .pos-selling-shell:not(.pos-edit-active) .product-card {
  position: relative;
  min-height: 0 !important;
  border: 1px solid #346078 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #153a4d, #092739) !important;
  box-shadow: none !important;
}
html .pos-selling-shell:not(.pos-edit-active) .product-card:hover {
  border-color: #45d6df !important;
}
html .pos-selling-shell:not(.pos-edit-active) .product-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(145deg, #153a4d, #092739) !important;
}
html .pos-selling-shell:not(.pos-edit-active) .product-photo {
  object-fit: cover !important;
  padding: 0 !important;
}
html .pos-selling-shell:not(.pos-edit-active) .stock-label {
  top: 9px !important;
  right: 9px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #20465d !important;
  color: #eff7fb !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 4px 9px !important;
}
html .pos-selling-shell:not(.pos-edit-active) .product-info {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 78px !important;
  padding: 22px 12px 8px !important;
  background: linear-gradient(transparent, #061a27 70%, #061a27) !important;
}
html .pos-selling-shell:not(.pos-edit-active) .product-info strong {
  min-height: 0;
  overflow: hidden;
  color: #f7f9fc !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html .pos-selling-shell:not(.pos-edit-active) .product-info .price {
  margin-top: 3px !important;
  color: #4ff1f8 !important;
  font-size: 20px !important;
  line-height: 1.2;
}
html .pos-selling-shell:not(.pos-edit-active) .add-dot {
  display: none !important;
}
html .pos-selling-shell:not(.pos-edit-active) .cart {
  padding: 12px 10px !important;
  background: #061b29 !important;
  border: 0 !important;
  border-left: 1px solid #12394d !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-heading,
html .pos-selling-shell:not(.pos-edit-active) .cart-body {
  background: linear-gradient(150deg, #092638, #082c40);
  border-color: #1c4860 !important;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-heading {
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid #1c4860;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-kicker {
  margin: 0 0 3px;
  color: #f7fbff !important;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .2px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-heading h3 {
  display: none;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-heading small {
  color: #f7fbff !important;
  font-size: 22px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-heading .pos-save-order,
html .pos-selling-shell:not(.pos-edit-active) .cart-heading [data-action="saveTable"] {
  min-width: 132px;
  min-height: 62px;
  padding: 12px 15px;
  border: 1px solid #1778ff !important;
  border-radius: 11px;
  background: #0967f4 !important;
  color: #fff !important;
  font-size: 19px;
  font-weight: 500;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-body {
  padding: 0 16px 10px;
  border: 1px solid #1c4860;
  border-top: 1px solid #1c4860;
  border-radius: 0 0 12px 12px;
}
html .pos-selling-shell:not(.pos-edit-active) .restaurant-pos-context {
  display: none !important;
}
/* Keep the customer selector reachable for debt checkout and customer-linked orders. */
html .pos-selling-shell:not(.pos-edit-active) .cart-body > .customer-picker {
  display: grid !important;
  margin: 10px 0 8px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-items {
  max-height: none;
  padding-right: 0;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  column-gap: 12px;
  padding: 20px 0 15px;
  border-color: #275069;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-main {
  grid-column: 1 / -1;
  gap: 14px;
  min-height: 62px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-thumb {
  width: 56px;
  height: 60px;
  flex-basis: 56px;
  border-radius: 10px;
  background: #fff;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-thumb img {
  object-fit: contain;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-item-content {
  padding: 2px 148px 0 0;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line strong {
  color: #f8fbfd !important;
  font-size: 16px;
  font-weight: 500;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line small {
  color: #b0c4d0 !important;
  font-size: 16px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls {
  position: absolute;
  top: 22px;
  right: 0;
  margin: 0;
  gap: 12px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty {
  height: 39px;
  border-color: #2c5b72;
  border-radius: 10px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty button,
html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty span {
  min-width: 39px;
  min-height: 37px;
  padding: 4px;
  background: #0e3448 !important;
  color: #f7fbfd !important;
  font-size: 23px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty span {
  display: grid;
  place-items: center;
  min-width: 40px;
  background: #09283b !important;
  font-size: 20px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-remove {
  color: #f7fbfd;
  font-size: 25px;
}
html .pos-selling-shell:not(.pos-edit-active) .note-toggle {
  display: none;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-note {
  grid-column: 1;
  min-height: 45px;
  margin: 0;
  padding: 8px 10px 8px 54px;
  border: 1px solid #2a5a73;
  border-radius: 10px;
  background: #0b2e42;
  color: #f8fbfd;
  font-size: 16px;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-note::placeholder {
  color: #9cb2bf;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line::before {
  content: '✎';
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 18px;
  color: #f2f7fa;
  font-size: 27px;
  pointer-events: none;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-line-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: #409dfb;
  font-size: 20px;
  white-space: nowrap;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-checkout-footer {
  display: block !important;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent !important;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-checkout-footer .pos-action-checkout {
  min-height: 83px !important;
  padding: 12px 26px !important;
  border-color: #088940 !important;
  border-radius: 11px !important;
  background: #088a43 !important;
  box-shadow: none !important;
}
html .pos-selling-shell:not(.pos-edit-active) .pos-checkout-label {
  gap: 18px;
  font-size: 21px !important;
}
html .pos-selling-shell:not(.pos-edit-active) .cart-checkout-footer .pos-action-checkout strong {
  font-size: 30px !important;
}

@media (min-width: 901px) {
  html .pos-selling-shell:not(.pos-edit-active) .scan-action {
    width: 36px;
    min-width: 36px;
    opacity: 0;
  }
  html .pos-selling-shell:not(.pos-edit-active) {
    height: 100dvh;
    overflow: hidden;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-topbar {
    display: flex !important;
    height: 78px !important;
    min-height: 78px !important;
    gap: 14px !important;
    padding: 0 18px !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand-cluster {
    flex: 0 0 clamp(220px, 15vw, 252px);
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand-cluster .pos-brand {
    max-width: 240px !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand img {
    width: 49px;
    height: 52px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand strong {
    font-size: 20px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand small {
    font-size: 17px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-header-tools {
    flex: 0 1 625px;
    width: min(625px, 40vw);
    margin-right: auto;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-header-search {
    height: 50px;
    padding-left: 64px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-header-search input {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-header-search > svg {
    top: 13px;
    left: 17px;
    width: 24px;
    height: 24px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-content.pos-selling {
    height: calc(100dvh - 78px) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-layout {
    display: grid !important;
    height: 100%;
    grid-template-columns: clamp(225px, 16.3vw, 273px) minmax(0, 1fr) clamp(370px, 28.8vw, 482px) !important;
    gap: 0 !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category-rail {
    display: flex;
    flex-direction: column;
    padding: 10px 11px 20px !important;
    overflow: hidden;
    background: #071f2e !important;
    border-right: 1px solid #194058 !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category-list {
    gap: 7px;
    padding: 0 !important;
    overflow-y: auto;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category {
    min-height: 59px !important;
    height: 59px !important;
    gap: 18px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 17px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category svg {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category-footer {
    margin-top: auto;
    padding: 0;
    border: 0;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-products {
    min-height: 0;
    padding: 12px 9px 20px !important;
    background: #061a27 !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: clamp(185px, calc((100dvh - 133px) / 4), 223px) !important;
    gap: 9px !important;
    overflow-y: auto !important;
    padding: 0 2px 0 0 !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .product-card {
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-height: 0;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty button {
    min-width: 48px;
    min-height: 48px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls {
    padding: 0 4px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls .pos-table-list-action span,
  html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls .pos-active-table span:first-child {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line {
    grid-template-columns: minmax(0, 1fr) 102px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-item-content {
    padding-right: 135px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-total {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  html .pos-selling-shell:not(.pos-edit-active) .pos-brand-cluster h1 {
    position: static;
    width: auto;
    opacity: 1;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-quick-actions {
    display: flex !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-quick-actions .held-orders-trigger {
    width: auto !important;
    min-width: 130px !important;
    padding: 7px 10px !important;
    background: #0b2b3c !important;
    border-color: #2d5b73 !important;
    color: #f7fbff !important;
    font-size: 12px !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .held-orders-trigger .held-badge {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    place-items: center;
    margin-left: 4px;
    border-radius: 999px;
    background: #e3f2f7;
    color: #0b2b3c;
    font-size: 12px;
    font-weight: 700;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-user-name,
  html .pos-selling-shell:not(.pos-edit-active) .pos-user > .badge,
  html .pos-selling-shell:not(.pos-edit-active) .pos-user > [data-action="logout"] {
    display: inline-flex !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .customer-picker {
    display: grid !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .restaurant-pos-context {
    display: flex !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .note-toggle {
    display: inline-flex !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line::before {
    display: none;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-note[hidden] {
    display: none !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line {
    display: block;
    padding: 12px 0;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-main {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 6px 9px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-thumb {
    width: 46px;
    height: 48px;
    flex-basis: 46px;
    grid-row: 1 / 3;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-item-content {
    display: contents;
    padding-right: 0;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line strong,
  html .pos-selling-shell:not(.pos-edit-active) .cart-line small {
    grid-column: 2;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line strong {
    font-size: 14px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line small {
    font-size: 12px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls {
    grid-column: 1 / -1;
    position: static;
    gap: 6px;
    justify-content: space-between;
    margin-top: 6px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty {
    height: 36px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty button,
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls .qty span {
    min-width: 32px;
    min-height: 34px;
    font-size: 17px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-controls > b {
    font-size: 14px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .note-toggle {
    position: static !important;
    width: auto;
    min-height: 32px;
    margin: 6px 0 0;
    padding: 3px 6px;
    overflow: visible;
    font-size: 13px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .note-toggle::before {
    margin-right: 4px;
    font-size: 15px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-note {
    width: 100%;
    margin-top: 3px;
    padding: 4px 7px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-table-controls {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category-rail,
  html .pos-selling-shell:not(.pos-edit-active) .pos-products {
    background: #061b29 !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-category-footer {
    border: 0;
  }
  html .pos-selling-shell:not(.pos-edit-active) .pos-clear-cart {
    min-height: 52px !important;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart {
    min-height: 420px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-item-content {
    padding-right: 140px;
  }
  html .pos-selling-shell:not(.pos-edit-active) .cart-line-total {
    font-size: 15px;
  }
}
