/* A focused selling surface. Workspace navigation remains available through Menu. */
#workspace:has(.terminal-counter) .main {
  margin-left: 0;
}
#workspace:has(.terminal-counter) .lx-sidebar {
  width: min(280px, 85vw);
  visibility: hidden;
  transform: translateX(-100%);
}
#workspace:has(.terminal-counter) .lx-sidebar[data-open="true"] {
  visibility: visible;
  transform: none;
}
#workspace:has(.terminal-counter) #pos-menu-toggle {
  display: flex;
  order: -1;
  padding: 8px 10px;
  font-size: 12px;
  background: #f4f5f7;
  color: #243b53;
  border: 1px solid #dfe4eb;
}
#workspace:has(.terminal-counter) #pos-sidebar-close {
  display: block;
}
#workspace:has(.terminal-counter) #pos-nav-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 65;
  background: #0d203850;
}
body:has(.terminal-counter):has(#pos-sidebar[data-open="true"]) {
  overflow: hidden;
}
#workspace:has(.terminal-counter) .lx-nav-header {
  min-height: 62px;
  padding: 6px 12px;
  gap: 12px;
}
#workspace:has(.terminal-counter) .lx-header-title {
  font-size: 13px;
}
#workspace:has(.terminal-counter) .lx-header-title small {
  display: none;
}
#workspace:has(.terminal-counter) .main main {
  padding: 8px;
  background: #f3f4f6;
}
.terminal-counter {
  --terminal-green: #10273e;
  --terminal-green-dark: #10273e;
  --terminal-mint: #eef2f6;
  --terminal-ink: #172e46;
  --terminal-border: #e0e5ec;
}
.terminal-counter[data-layout] .terminal-layout {
  grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 540px);
  gap: 10px;
  align-items: stretch;
}
.terminal-counter .terminal-work {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}
.terminal-counter .terminal-tools {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.terminal-counter .terminal-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.terminal-counter .scan-control {
  flex: 1;
  max-width: none;
  min-width: 0;
}
.terminal-counter .scan-control > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.terminal-counter .scan-control input {
  min-height: 46px;
  font-size: 14px;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px #14263808;
}
.terminal-view-switch {
  display: flex;
  gap: 2px;
  background: #fff;
  border: 1px solid #e0e5ec;
  padding: 4px;
  border-radius: 12px;
}
.terminal-counter .terminal-view-switch button {
  min-width: 36px;
  min-height: 36px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #61758d;
  font-size: 22px;
  border-radius: 8px;
}
.terminal-counter .terminal-view-switch button[aria-pressed="true"] {
  background: #e9edf2;
  color: #10273e;
}
.terminal-counter .terminal-options > summary {
  min-height: 46px;
  padding: 10px;
  background: #fff;
  border-color: #e0e5ec;
  color: #243b53;
}
.terminal-category-rail {
  grid-column: 1;
  grid-row: 2 / 5;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 14px;
  padding: 8px;
}
.terminal-counter .terminal-catalog-heading {
  display: block;
  margin: 6px 4px 12px;
}
.terminal-counter .terminal-catalog-heading h2 {
  font-size: 12px;
  margin: 0 0 4px;
}
.terminal-counter #terminal-catalog-status {
  font-size: 10px;
  color: #6d7e91;
}
.terminal-counter .terminal-categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  overflow: visible;
}
.terminal-counter .terminal-categories button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  color: #53677e;
  background: transparent;
}
.terminal-counter .terminal-categories button[aria-pressed="true"] {
  background: #10273e;
  color: #fff;
}
.terminal-counter .terminal-categories strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.terminal-counter .terminal-categories small {
  grid-column: 2;
  color: inherit;
  opacity: 0.75;
}
.terminal-counter .terminal-categories svg,
.terminal-counter .category-symbol {
  width: 20px;
  height: 20px;
  font-size: 22px;
  margin: 0;
  grid-row: 1 / 3;
}
.terminal-counter .terminal-catalog-label {
  grid-column: 2;
  margin: 2px 4px 0;
}
.terminal-counter .terminal-catalog-label h2 {
  font-size: 12px;
}
.terminal-counter[data-layout] .terminal-products {
  grid-column: 2;
  align-content: start;
  min-height: 0;
  max-height: none;
  gap: 10px;
  padding: 2px;
}
.terminal-counter .terminal-local-drafts {
  grid-column: 2;
  margin: 0;
  padding: 10px 12px;
  border-color: #e0e5ec;
}
.terminal-counter[data-layout] .terminal-product {
  border-color: #e0e5ec;
  border-radius: 12px;
}
.terminal-counter .product-art {
  background: #edf0f4;
  color: #6b7e92;
}
.terminal-counter .terminal-product b {
  color: #172e46;
}
.terminal-counter .terminal-product-add {
  background: #10273e;
}
.terminal-counter .terminal-empty-catalog {
  height: 100%;
  min-height: 240px;
  background: transparent;
  border: 0;
  color: #62758e;
}
.terminal-counter .terminal-empty-catalog h3 {
  color: #62758e;
  font-weight: 500;
}
.terminal-counter .terminal-empty-catalog > span {
  color: #aeb9c6;
}
.terminal-counter[data-layout="ledger"] .terminal-products {
  grid-template-columns: minmax(0, 1fr);
}
.terminal-counter[data-layout="ledger"] .terminal-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
}
.terminal-counter[data-layout="ledger"] .product-art {
  width: 48px;
  height: 48px;
  min-height: 0;
  grid-row: 1 / 4;
  font-size: 16px;
}
.terminal-counter[data-layout="ledger"] .terminal-product > span:nth-child(2) {
  grid-column: 2;
}
.terminal-counter[data-layout="ledger"] .terminal-product > b {
  grid-column: 3;
  grid-row: 1;
}
.terminal-counter[data-layout="ledger"] .stock-pill {
  grid-column: 2;
}
.terminal-counter[data-layout="ledger"] .terminal-product-add {
  grid-column: 3;
  grid-row: 2 / 4;
  padding: 6px 10px;
}
.terminal-counter[data-layout] .terminal-checkout {
  padding: 12px 16px;
  border-color: #e0e5ec;
  border-radius: 14px;
  box-shadow: 0 1px 3px #152c400b;
}
.terminal-counter .terminal-order-heading .eyebrow {
  display: none;
}
.terminal-counter .terminal-order-heading h2 {
  color: #172e46;
  font-size: 16px;
}
.terminal-counter #terminal-register {
  color: #243b53;
  background: #f1f3f6;
  border-color: #e0e5ec;
}
.terminal-counter .local-draft-label {
  color: #6d7e91;
}
.terminal-counter .terminal-customer {
  border-color: #e0e5ec;
  padding: 8px 0;
}
.terminal-counter .terminal-customer strong {
  color: #243b53;
}
.terminal-counter .terminal-customer button {
  background: #f3f5f7;
  border-color: #e0e5ec;
  color: #53677e;
}
.terminal-counter .terminal-empty-cart {
  height: 100%;
  min-height: 80px;
  color: #62758e;
}
.terminal-counter .terminal-empty-cart > span {
  background: #f3f5f7;
  border-color: #e0e5ec;
  color: #6d7e91;
}
.terminal-counter .terminal-empty-cart strong {
  color: #62758e;
  font-size: 14px;
  font-weight: 500;
}
.terminal-counter[data-layout] #terminal-summary > div:last-child,
.terminal-counter #terminal-summary > div:last-child dd {
  color: #172e46;
}
.terminal-counter .terminal-preview-button,
.terminal-counter .terminal-sticky button {
  background: #10273e;
}
.terminal-counter .terminal-cart-actions button,
.terminal-counter .commerce-actions button {
  background: #f3f5f7;
  color: #53677e;
  border-color: #e0e5ec;
}
.terminal-counter .terminal-draft-info,
.terminal-counter #terminal-storage {
  color: #6d7e91;
}
.terminal-counter button:focus-visible,
.terminal-counter input:focus-visible,
.terminal-counter select:focus-visible,
.terminal-counter summary:focus-visible {
  outline-color: #8aa8c8;
}
@media (min-width: 1101px) and (min-height: 650px) {
  .terminal-counter[data-layout] .terminal-layout {
    height: calc(100dvh - 90px);
  }
  .terminal-counter[data-layout] .terminal-checkout {
    height: 100%;
    max-height: 100%;
  }
  .terminal-counter .terminal-checkout > .terminal-lines {
    min-height: 70px;
  }
}
@media (max-width: 1100px) {
  .terminal-counter .terminal-work {
    min-height: calc(100dvh - 210px);
  }
  .terminal-counter .terminal-category-rail {
    grid-row: 2 / 5;
  }
  .terminal-counter[data-layout] .terminal-products {
    max-height: 65dvh;
  }
  .terminal-counter .terminal-checkout {
    min-height: calc(100dvh - 220px);
  }
}
@media (max-width: 700px) {
  #workspace:has(.terminal-counter) .lx-nav-header {
    padding: 8px 12px;
  }
  .terminal-counter .terminal-work {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .terminal-counter .terminal-category-rail {
    grid-column: 1;
    grid-row: 2;
    padding: 6px;
  }
  .terminal-counter .terminal-catalog-heading {
    display: none;
  }
  .terminal-counter .terminal-categories {
    flex-direction: row;
    overflow-x: auto;
  }
  .terminal-counter .terminal-categories button {
    width: auto;
    flex: 0 0 130px;
  }
  .terminal-counter .terminal-catalog-label,
  .terminal-counter[data-layout] .terminal-products,
  .terminal-counter .terminal-local-drafts {
    grid-column: 1;
  }
  .terminal-counter .terminal-tools {
    flex-wrap: nowrap;
  }
  .terminal-counter .scan-control {
    order: 0;
    flex-basis: auto;
  }
  .terminal-counter .terminal-view-switch button {
    min-width: 28px;
  }
  .terminal-counter .terminal-options {
    margin: 0;
  }
  .terminal-counter .terminal-options > summary {
    font-size: 10px;
  }
  .terminal-counter[data-layout="ledger"] .terminal-product {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 4px 6px;
  }
  .terminal-counter[data-layout="ledger"] .product-art {
    width: 36px;
    height: 36px;
  }
  .terminal-counter[data-layout="ledger"] .terminal-product-add {
    font-size: 9px;
    padding: 5px;
  }
}

.terminal-counter .terminal-category-rail {
  display: block;
}
.terminal-counter .terminal-categories {
  justify-content: flex-start;
  align-items: stretch;
}
.terminal-counter[data-layout] .product-art {
  background: #edf0f4;
  color: #6b7e92;
}
.terminal-counter[data-layout="ledger"] .product-art {
  width: 48px;
  height: 48px;
  min-height: 0;
}
.terminal-counter .terminal-product:hover {
  border-color: #8fa5bc;
}
@media (max-width: 700px) {
  .terminal-counter .terminal-tools {
    flex-wrap: wrap;
  }
  .terminal-counter .scan-control {
    flex: 1 0 100%;
  }
  .terminal-counter .terminal-options {
    margin-left: auto;
  }
  .terminal-counter[data-layout="ledger"] .product-art {
    width: 36px;
    height: 36px;
  }
}
