@media (min-width: 901px) {
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) {
    --operator-border: #d6e1ea;
    --operator-surface: #ffffff;
    --operator-soft: #f4f7fa;
    --operator-soft-strong: #eaf1f7;
    --operator-text: #1f3a4b;
    --operator-muted: #6b8393;
    --operator-accent: #1769d2;
    --operator-accent-soft: #e8f2ff;
    --operator-danger: #b12d42;
    --operator-danger-soft: #fff3f5;
    --operator-success: #087e48;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 12px !important;
    border-bottom: 1px solid var(--operator-border) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand-cluster {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand {
    min-width: 0 !important;
    gap: 8px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand img {
    width: 30px !important;
    height: 30px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand small {
    display: none !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-brand-cluster h1 {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-tools {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-quick-actions {
    display: none !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: min(720px, 100%) !important;
    max-width: 720px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 auto !important;
    padding: 0 4px 0 36px !important;
    border-radius: 9px !important;
    border: 1px solid var(--operator-border) !important;
    background: var(--operator-soft) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search > svg {
    position: absolute !important;
    top: 50% !important;
    left: 11px !important;
    transform: translateY(-50%) !important;
    width: 17px !important;
    height: 17px !important;
    color: var(--operator-muted) !important;
    pointer-events: none !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search .scan-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #0284c7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search .scan-action:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #0369a1 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search .scan-action svg {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search .scan-action {
    color: #38bdf8 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-header-search .scan-action:hover {
    background: rgba(56, 189, 248, 0.2) !important;
    color: #7dd3fc !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-search-shortcut {
    display: none !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-user {
    gap: 6px !important;
    min-width: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-user-name {
    max-width: 88px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-user .badge {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .header-icon,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-tools-trigger {
    min-width: 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-content.pos-selling {
    height: calc(100dvh - var(--pwa-banner-height, 0px) - 58px) !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-layout {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, var(--split-category, 180px)) 8px minmax(0, 1fr) 8px minmax(0, var(--split-cart, 440px)) !important;
    background: #eef3f7 !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category-rail {
    padding: 9px 7px !important;
    border-right: 0 !important;
    background: var(--operator-surface) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category-list {
    gap: 5px !important;
    padding: 0 !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category {
    display: grid !important;
    grid-template-columns: 21px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--operator-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category:hover {
    background: var(--operator-soft) !important;
    border-color: var(--operator-border) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category.active {
    background: var(--operator-accent-soft) !important;
    border-color: #9fc4ee !important;
    color: #145aa9 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category svg {
    width: 17px !important;
    height: 17px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category-count {
    min-width: 23px !important;
    height: 21px !important;
    padding: 0 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--operator-soft-strong) !important;
    color: var(--operator-muted) !important;
    font-size: 11px !important;
    line-height: 21px !important;
    text-align: center;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category-footer {
    margin-top: auto !important;
    padding: 7px 0 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-table-list-action {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider {
    width: 8px !important;
    min-width: 8px !important;
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider::after {
    width: 2px !important;
    height: 38px !important;
    box-shadow: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:hover,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:focus-visible {
    opacity: 1 !important;
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:hover::after,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:focus-visible::after {
    opacity: 1 !important;
    background: #38bdf8 !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-products {
    min-width: 0 !important;
    padding: 9px !important;
    background: #eef3f7 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    gap: 8px !important;
    padding: 0 2px 10px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid::-webkit-scrollbar {
    display: block !important;
    width: 7px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #bfccd6;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border: 1px solid #c9d6df !important;
    border-radius: 10px !important;
    background: #dfe8ee !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color .12s ease, box-shadow .12s ease, filter .12s ease !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:hover {
    border-color: #739bc2 !important;
    box-shadow: 0 2px 9px rgba(32, 67, 93, .12) !important;
    filter: brightness(1.015);
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:focus-visible,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active).pos-keyboard-mode .product-card.is-keyboard-active {
    outline: 3px solid #2c7bd8 !important;
    outline-offset: -3px !important;
    border-color: #2c7bd8 !important;
    box-shadow: 0 0 0 2px rgba(44, 123, 216, .2) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-cover {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: inherit !important;
    background: #e2eaf0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-info {
    position: absolute !important;
    z-index: 2 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: 62px !important;
    padding: 18px 9px 8px !important;
    background: linear-gradient(to top, rgba(8, 23, 34, .88) 0%, rgba(8, 23, 34, .68) 58%, rgba(8, 23, 34, 0) 100%) !important;
    color: #ffffff !important;
    pointer-events: none;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-info strong {
    display: block !important;
    min-height: 0 !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:hover {
    z-index: 50 !important;
    overflow: visible !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-name-wrap {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-name-popover {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(4px) scale(0.96) !important;
    width: max-content !important;
    max-width: 220px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s !important;
    z-index: 100 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-name-popover::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:hover .product-name-popover,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:focus-visible .product-name-popover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n + 1) .product-name-popover {
    left: 0 !important;
    transform: translateX(0) translateY(4px) scale(0.96) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n + 1):hover .product-name-popover,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n + 1):focus-visible .product-name-popover {
    transform: translateX(0) translateY(0) scale(1) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n + 1) .product-name-popover::after {
    left: 28px !important;
    transform: translateX(0) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n) .product-name-popover {
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) translateY(4px) scale(0.96) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n):hover .product-name-popover,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n):focus-visible .product-name-popover {
    transform: translateX(0) translateY(0) scale(1) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card:nth-child(4n) .product-name-popover::after {
    left: auto !important;
    right: 28px !important;
    transform: translateX(0) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-info .price {
    margin-top: 4px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .stock-label {
    z-index: 3 !important;
    top: 7px !important;
    right: 7px !important;
    bottom: auto !important;
    padding: 3px 6px !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 6px !important;
    background: rgba(255,255,255,.9) !important;
    color: #385568 !important;
    font-size: 10px !important;
    backdrop-filter: blur(5px);
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart {
    min-width: 0 !important;
    padding: 0 9px 9px !important;
    border: 0 !important;
    border-left: 1px solid var(--operator-border) !important;
    border-radius: 0 !important;
    background: var(--operator-surface) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: 53px !important;
    min-height: 53px !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid var(--operator-border) !important;
    background: var(--operator-surface) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading .customer-picker-trigger {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    background: var(--operator-soft) !important;
    font-size: 13px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading > div:not(.customer-picker) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 55px !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 8px !important;
    border: 1px solid var(--operator-border) !important;
    border-radius: 8px !important;
    background: var(--operator-soft) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading small {
    font-size: 12px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading .pos-save-order,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading [data-action="saveTable"] {
    position: relative;
    width: auto !important;
    min-width: 94px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 31px 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) [data-shortcut]::after {
    content: attr(data-shortcut);
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 19px;
    padding: 0 4px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    opacity: .72;
    pointer-events: none;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-body {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-items {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding-right: 3px !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-items::-webkit-scrollbar {
    display: block !important;
    width: 7px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-items::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c6d1da;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line:not(.cart-line-hourly) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 96px !important;
    grid-template-rows: minmax(68px, auto) !important;
    align-items: start !important;
    column-gap: 8px !important;
    min-height: 84px !important;
    padding: 8px 3px !important;
    border-bottom: 1px solid #e3eaf0 !important;
    border-radius: 7px !important;
    outline: 0 !important;
    background: transparent !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active).pos-keyboard-mode .cart-line.is-keyboard-active,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line:focus-visible {
    background: var(--operator-accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--operator-accent) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-thumb {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 50px !important;
    height: 54px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-item-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    padding: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-item-content > strong {
    width: 100%;
    overflow: hidden;
    color: var(--operator-text) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-item-content > small {
    margin: 0 !important;
    color: var(--operator-muted) !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .note-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 74px !important;
    max-width: 100% !important;
    height: 25px !important;
    min-height: 25px !important;
    margin: 3px 0 0 !important;
    padding: 3px 7px !important;
    border: 1px solid var(--operator-border) !important;
    border-radius: 6px !important;
    background: var(--operator-soft) !important;
    color: var(--operator-muted) !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-note {
    width: 100% !important;
    height: 27px !important;
    min-height: 27px !important;
    margin: 3px 0 0 !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-total {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    width: 100% !important;
    padding: 0 !important;
    color: var(--operator-accent) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: end !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding: 0 !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty .qty {
    height: 32px !important;
    min-height: 32px !important;
    border: 1px solid var(--operator-border) !important;
    border-radius: 7px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty .qty button,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty .qty span {
    width: 32px !important;
    min-width: 32px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 30px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty .qty button {
    background: var(--operator-soft) !important;
    color: var(--operator-text) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-line-qty .qty span {
    background: var(--operator-surface) !important;
    color: var(--operator-text) !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid var(--operator-border) !important;
    background: var(--operator-surface) !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-action-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-clear-cart,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-action-checkout {
    position: relative !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 9px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-clear-cart {
    padding: 7px !important;
    border: 1px solid #efc9cf !important;
    background: var(--operator-danger-soft) !important;
    color: var(--operator-danger) !important;
    font-size: 12px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-action-checkout {
    padding: 7px 36px 7px 12px !important;
    border-color: var(--operator-success) !important;
    background: var(--operator-success) !important;
    color: #ffffff !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-checkout-footer .pos-action-checkout strong {
    color: #ffffff !important;
    font-size: 19px !important;
  }
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-status {
    display: none !important;
  }

  html .pos-selling-shell.pos-retail:not(.pos-edit-active) button:focus-visible,
  html .pos-selling-shell.pos-retail:not(.pos-edit-active) input:focus-visible {
    outline: 2px solid #2c7bd8 !important;
    outline-offset: 1px !important;
  }

  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) {
    --operator-border: #2c4d60;
    --operator-surface: #102c3b;
    --operator-soft: #153747;
    --operator-soft-strong: #1d4254;
    --operator-text: #e8f3f8;
    --operator-muted: #a5bac7;
    --operator-accent: #65d8ee;
    --operator-accent-soft: #173f52;
    --operator-danger: #ffb6c3;
    --operator-danger-soft: #3a2030;
    --operator-success: #087b50;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-layout,
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-products {
    background: #0d2633 !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider {
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider::after {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:hover,
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:focus-visible {
    opacity: 1 !important;
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:hover::after,
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-column-divider:focus-visible::after {
    opacity: 1 !important;
    background: #38bdf8 !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-name-popover {
    background: rgba(17, 43, 54, 0.96) !important;
    color: #e2f1f8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.15) !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-name-popover::after {
    border-color: rgba(17, 43, 54, 0.96) transparent transparent transparent !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card {
    border-color: #315466 !important;
    background: #173a4b !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-cover {
    background: #173a4b !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .stock-label {
    border-color: rgba(255,255,255,.16) !important;
    background: rgba(14,43,57,.88) !important;
    color: #d8eaf2 !important;
  }
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid::-webkit-scrollbar-thumb,
  html[data-ui-style="midnight"] .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-items::-webkit-scrollbar-thumb {
    background: #385767;
  }
}

@media(min-width:901px){
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-layout {grid-template-columns:minmax(0,var(--split-category,140px)) 8px minmax(0,1fr) 8px minmax(0,var(--split-cart,32vw))!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid {grid-template-columns:repeat(5,minmax(0,1fr))!important}
 @container (max-width:610px){html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important}}
 @container (max-width:435px){html .pos-selling-shell.pos-retail:not(.pos-edit-active) .products-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .product-card {aspect-ratio:1/1!important;height:auto!important;min-height:0!important}
}

@media(min-width:901px){
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-content.pos-selling {height:calc(100dvh - var(--pwa-banner-height, 0px) - 122px)!important;min-height:0!important;padding:8px 0 0!important;box-sizing:border-box}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-layout {height:100%!important;min-height:0!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:10px!important;height:auto!important;flex:0 0 auto!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading>.customer-picker {flex:0 0 100%!important;order:2!important;min-width:0!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading>.pos-table-controls {display:flex!important;flex:1!important;background:transparent!important;border:0!important;padding:0!important;justify-content:flex-start!important;min-width:0!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-active-table {border:0!important;background:transparent!important;font-size:18px!important;padding:0!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .cart-heading>.pos-action-item {flex:0 0 auto!important;width:auto!important;border:0!important;padding:0!important}
 html .pos-selling-shell.pos-retail:not(.pos-edit-active) .pos-category-footer {display:none!important}
}

@media(min-width:901px){
 html[data-store-palette="moc"] .pos-selling-shell.pos-retail:not(.pos-edit-active) {--operator-accent:#176c54;--operator-accent-soft:#e8f2e9;--operator-success:#176c54}
 html[data-store-palette="purple"] .pos-selling-shell.pos-retail:not(.pos-edit-active) {--operator-accent:#7951a6;--operator-accent-soft:#f0ebf7;--operator-success:#7951a6}
}

/* ==========================================================================
   MỤC 1: HEADER & NAVIGATION THU GỌN 1 HÀNG NGANG DUY NHẤT (DESKTOP PC)
   Bàn, Gọi món, Hóa đơn, Ca làm & thu chi bên trái;
   Trạng thái, User avatar, Tên, Tùy chọn, Đăng xuất bên phải.
   ========================================================================== */
@media (min-width: 901px) {
  html .pos-shell:not(.pos-selling-shell),
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) {
    display: grid !important;
    grid-template-rows: 52px 1fr !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "nav user"
      "content content" !important;
    height: calc(100dvh - var(--pwa-banner-height, 0px)) !important;
    min-height: calc(100dvh - var(--pwa-banner-height, 0px)) !important;
    max-height: calc(100dvh - var(--pwa-banner-height, 0px)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-topbar {
    grid-area: user !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 16px 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    z-index: 20 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  html:not([data-ui-style="midnight"]) .pos-shell:not(.pos-selling-shell) .pos-topbar,
  html:not([data-ui-style="midnight"]) .pos-shell:not(.pos-selling-shell) .pos-nav,
  html:not([data-ui-style="midnight"]) .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-topbar,
  html:not([data-ui-style="midnight"]) .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav {
    background: #ffffff !important;
    border-bottom: 1px solid var(--operator-border, #d6e1ea) !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-brand,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-brand {
    display: none !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 100% !important;
    width: auto !important;
    justify-content: flex-end !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user > span:not(.badge):not(.pos-tools-anchor),
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user > span:not(.badge):not(.pos-tools-anchor) {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--operator-text, #18333b) !important;
    max-width: 140px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .badge,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11.5px !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .operator-user-avatar,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .operator-user-avatar {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: var(--brand, #106c64) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .btn:not(.pos-tools-menu-row),
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .btn:not(.pos-tools-menu-row) {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .header-icon,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .header-icon {
    border: 1px solid var(--operator-border, #d6e1ea) !important;
    background: #ffffff !important;
    color: var(--operator-text, #18333b) !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .header-icon:hover,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .header-icon:hover {
    background: #f0f4f7 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user [data-action="logout"],
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user [data-action="logout"] {
    display: inline-flex !important;
    min-height: 34px !important;
    height: 34px !important;
    width: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
    color: var(--operator-muted, #58717a) !important;
    border-radius: 6px !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user [data-action="logout"]:hover,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user [data-action="logout"]:hover {
    background: #fde8e8 !important;
    color: #b12d42 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav {
    grid-area: nav !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 12px 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    z-index: 20 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav::before,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
    background: url('/icon.svg') no-repeat center center / contain;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav a,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    min-width: auto !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: var(--operator-muted, #546a73) !important;
    background: transparent !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    flex: 0 0 auto !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav a svg,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a svg {
    width: 15px !important;
    height: 15px !important;
    opacity: 0.85 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav a:hover,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a:hover {
    background: #f0f4f7 !important;
    color: var(--operator-text, #18333b) !important;
    box-shadow: none !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav a.active,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a.active {
    background: var(--operator-accent-soft, #e7f3f2) !important;
    color: var(--operator-accent, #106c64) !important;
    border: 1px solid var(--operator-accent, #106c64) !important;
    font-weight: 700 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav a.active svg,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a.active svg {
    color: var(--operator-accent, #106c64) !important;
    opacity: 1 !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-nav .operator-mobile-manage,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav .operator-mobile-manage {
    display: none !important;
  }

  html .pos-shell:not(.pos-selling-shell) .pos-content,
  html .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-content {
    grid-area: content !important;
    height: calc(100dvh - var(--pwa-banner-height, 0px) - 52px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - var(--pwa-banner-height, 0px) - 52px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Midnight / Dark Theme adjustments */
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-topbar,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-nav,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-topbar,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav {
    background: #112b36 !important;
    border-bottom: 1px solid #294652 !important;
  }

  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-nav a,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a {
    color: #c4d5df !important;
  }

  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-nav a:hover,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a:hover {
    background: #173946 !important;
    color: #ffffff !important;
  }

  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-nav a.active,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) > .pos-nav a.active {
    background: #1f7775 !important;
    color: #ffffff !important;
    border-color: #1f7775 !important;
  }

  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user > span:not(.badge):not(.pos-tools-anchor),
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user > span:not(.badge):not(.pos-tools-anchor) {
    color: #e7f1f3 !important;
  }

  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell) .pos-topbar .pos-user .header-icon,
  html[data-ui-style="midnight"] .pos-shell:not(.pos-selling-shell):has(.operator-landing) .pos-topbar .pos-user .header-icon {
    background: #173946 !important;
    border-color: #294652 !important;
    color: #e7f1f3 !important;
  }
}
