html {
  color-scheme: light dark;
  background: light-dark(#f3f5f4, #141b1d);
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
}
button,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #5ca887;
  outline-offset: 2px;
}
#casheer-preview {
  border: 0;
  border-radius: 0;
  min-height: 100dvh;
  overflow: visible;
}
#casheer-preview header {
  padding: 16px 24px;
  gap: 12px;
}
#casheer-preview .brand {
  margin-right: auto;
  margin-inline-end: auto;
}
#casheer-preview header button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
#casheer-preview .seller-picker {
  max-width: 180px;
  min-width: 0;
}
#casheer-preview .seller-picker select {
  width: 100%;
  max-width: 100%;
  font-size: 16px;
}
#casheer-preview .product {
  overflow-wrap: anywhere;
  min-height: 108px;
}
#casheer-preview .price {
  overflow-wrap: anywhere;
}
#casheer-preview .total {
  font-size: 22px;
  flex-wrap: wrap;
}
#casheer-preview .qty button {
  width: 44px;
  min-height: 44px;
}
#casheer-preview .row {
  flex-wrap: wrap;
}
#casheer-preview .user-row {
  flex-wrap: wrap;
}
#casheer-preview .user-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#casheer-preview .product-summary {
  flex: 1;
}
#casheer-preview .settings-layout > .panel {
  align-self: start;
}
#casheer-preview .setting-field select {
  font-size: 16px;
  min-width: 0;
}
#casheer-preview .cash-display {
  display: block;
  font-size: 28px;
  font-weight: 650;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
#casheer-preview .keys {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#casheer-preview .extra-key {
  grid-column: 1/-1;
}
#casheer-preview .notice {
  padding: 12px 24px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#casheer-preview .settings-intro {
  margin: 0 24px 16px;
  color: var(--sub);
}
#casheer-preview .action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
#casheer-preview .action-row .pay {
  width: auto;
  flex: 1;
}
#casheer-preview .sales-view strong {
  overflow-wrap: anywhere;
}
#casheer-preview .sales-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  direction: ltr;
}
#casheer-preview .sales-columns > section {
  direction: inherit;
}
#casheer-preview .sales-columns > section[dir="rtl"] {
  direction: rtl;
}
#casheer-preview .record-entry summary {
  list-style: none;
}
#casheer-preview .record-entry summary::-webkit-details-marker {
  display: none;
}
#casheer-preview .storage-note {
  padding: 16px 24px;
  color: var(--sub);
  font-size: 12px;
}
#app-error {
  position: sticky;
  top: 0;
  z-index: 10;
  background: light-dark(#fff0ed, #522b25);
  color: light-dark(#802d1d, #ffdfd6);
  padding: 14px 20px;
  border-bottom: 1px solid currentColor;
  font: 16px/1.5 system-ui;
}
#app-error[hidden] {
  display: none;
}
#casheer-preview .receipt {
  overflow-wrap: anywhere;
}
#casheer-preview .product-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#casheer-preview .record-columns {
  align-items: start;
}
#casheer-preview h2 {
  margin-bottom: 12px;
}
#casheer-preview .receipt h2 {
  margin: 0;
}
#casheer-preview .settings-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#casheer-preview .settings-layout .product-settings {
  grid-column: 1/-1;
}
#casheer-preview #product-editor {
  scroll-margin: 80px;
}
#casheer-preview .icon-preview {
  min-height: 42px;
  margin-bottom: 12px;
  font-size: 30px;
}
@media (min-width: 1200px) {
  #casheer-preview main {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1fr);
  }
  #casheer-preview .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #casheer-preview main,
  #casheer-preview .sales-view,
  #casheer-preview .settings-layout,
  #casheer-preview .history {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 760px) {
  #casheer-preview header {
    padding: 12px;
    gap: 8px;
  }
  #casheer-preview .brand {
    font-size: 20px;
  }
  #casheer-preview header button {
    padding: 8px 10px;
  }
  #casheer-preview .seller-picker {
    margin-left: auto;
  }
  #casheer-preview main {
    display: flex;
    flex-direction: column;
    padding: 0 12px 16px;
    gap: 12px;
  }
  #casheer-preview main > section {
    width: 100%;
  }
  #casheer-preview .cartpanel {
    order: 1;
  }
  #casheer-preview .payment {
    order: 2;
  }
  #casheer-preview .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #casheer-preview .product {
    min-height: 92px;
    padding: 9px 5px;
  }
  #casheer-preview .sales-columns,
  #casheer-preview .sales-metrics,
  #casheer-preview .settings-layout,
  #casheer-preview .product-fields {
    grid-template-columns: 1fr;
  }
  #casheer-preview .sales-view,
  #casheer-preview .settings-layout,
  #casheer-preview .history {
    padding: 0 12px 16px;
  }
  #casheer-preview .notice {
    padding: 12px;
  }
  #casheer-preview .panel {
    padding: 14px;
  }
  #casheer-preview nav {
    padding: 12px;
  }
  #casheer-preview .row.total {
    font-size: 24px;
  }
  #casheer-preview .sales-metrics strong {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
