.w-desk {
  --w-font:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,sans-serif;
  --w-ink:#1b1b1b;
  --w-muted:#5f5f5f;
  --w-line:#e5e5e5;
  --w-chrome:#f3f3f3;
  --w-surface:#fafafa;
  --w-card:#fff;
  --w-accent:#005fb8;
  --w-accent-ink:#004a91;
  --w-warn:#9d5d00;
  --w-warn-bg:#fff4ce;
  --w-bad:#c42b1c;
  --w-ok:#0f7b0f;
  --w-ok-bg:#dff6dd;
  background: #d5dbe3;
  padding: 20px;
  font-family: var(--w-font);
  color: var(--w-ink);
}
.w-window {
  display: flex;
  flex-direction: column;
  height: clamp(560px, calc(100vh - 170px), 820px);
  background: var(--w-chrome);
  border: 1px solid #c8ccd2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.w-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  flex: none;
  padding-left: 12px;
  font-size: 12px;
  user-select: none;
}
.w-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--w-accent);
  position: relative;
  flex: none;
}
.w-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: #fff;
  box-shadow: 0 4px 0 #fff;
}
.w-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-caption {
  display: flex;
  height: 100%;
}
.w-cap {
  width: 46px;
  height: 100%;
  position: relative;
}
.w-cap::before,
.w-cap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.w-cap-min::before {
  width: 10px;
  height: 1px;
  background: #1b1b1b;
}
.w-cap-max::before {
  width: 9px;
  height: 9px;
  border: 1px solid #1b1b1b;
  border-radius: 2px;
}
.w-cap-close::before,
.w-cap-close::after {
  width: 12px;
  height: 1px;
  background: #1b1b1b;
}
.w-cap-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.w-cap-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.w-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.w-nav {
  flex: none;
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
}
.w-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  text-align: left;
  color: var(--w-ink);
}
.w-nav-btn:hover {
  background: rgba(0, 0, 0, .04);
}
.w-nav-btn.on {
  background: rgba(0, 0, 0, .06);
  font-weight: 600;
}
.w-nav-btn.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--w-accent);
}
.w-ico {
  width: 16px;
  height: 16px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.w-ico-sell::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 4px;
  border-bottom: 1.5px solid currentColor;
}
.w-ico-receipts {
  border-radius: 2px 2px 0 0;
  border-bottom-style: dashed;
}
.w-ico-stock {
  border-radius: 2px;
}
.w-ico-stock::after {
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: 4px;
  border-top: 1.5px solid currentColor;
}
.w-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: var(--w-surface);
  border: 1px solid var(--w-line);
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0 0;
  padding: 14px 16px;
}
.w-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: 13px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #eff4f9;
  border: 1px solid #d6e3f0;
}
.w-info-warn {
  background: var(--w-warn-bg);
  border-color: #f2dea0;
}
.w-window.offline .w-titlebar {
  background: #fbf3dc;
}
.w-sell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.w-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.w-cat {
  border: 1px solid transparent;
  background: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--w-muted);
  min-height: 34px;
}
.w-cat:hover {
  background: rgba(0, 0, 0, .04);
}
.w-cat.on {
  background: var(--w-card);
  border-color: var(--w-line);
  color: var(--w-ink);
  font-weight: 600;
}
.w-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.w-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 84px;
  padding: 10px 12px;
  text-align: left;
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-bottom-color: #d4d4d4;
  border-radius: 6px;
  color: var(--w-ink);
}
.w-tile:hover:not(:disabled) {
  background: #f6f6f6;
}
.w-tile:active:not(:disabled) {
  background: #f0f0f0;
}
.w-tile:disabled {
  opacity: .55;
  cursor: default;
}
.w-tile-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}
.w-tile-price {
  font-size: 13px;
  color: var(--w-muted);
}
.w-tile-stock {
  margin-top: auto;
  font-size: 12px;
  color: var(--w-muted);
}
.w-tile-stock.low {
  color: var(--w-warn);
  font-weight: 600;
}
.w-tile-stock.out {
  color: var(--w-bad);
  font-weight: 600;
}
.w-tile-qty {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--w-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.w-ticket {
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
}
.w-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.w-ticket h2 {
  font-size: 15px;
  font-weight: 600;
}
.w-link {
  background: none;
  border: 0;
  color: var(--w-accent);
  font-size: 13px;
  padding: 4px;
}
.w-link:hover {
  text-decoration: underline;
}
.w-empty {
  color: var(--w-muted);
  font-size: 13.5px;
  padding: 10px 0;
}
.w-done {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--w-ok-bg);
  color: #0b5a0b;
  font-size: 13.5px;
}
.w-done.queued {
  background: var(--w-warn-bg);
  color: #6b4100;
}
.w-lines {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--w-line);
}
.w-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--w-line);
  font-size: 13.5px;
}
.w-line-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.w-line-total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.w-step {
  display: flex;
  align-items: center;
  border: 1px solid var(--w-line);
  border-radius: 6px;
}
.w-step button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--w-ink);
}
.w-step button:hover:not(:disabled) {
  background: rgba(0, 0, 0, .05);
}
.w-step button:disabled {
  color: #bdbdbd;
  cursor: default;
}
.w-step span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.w-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--w-muted);
}
.w-seg {
  display: flex;
  border: 1px solid var(--w-line);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  background: var(--w-chrome);
}
.w-seg-btn {
  flex: 1;
  border: 0;
  background: none;
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 12.5px;
  color: var(--w-muted);
  min-height: 32px;
}
.w-seg-btn.on {
  background: var(--w-card);
  color: var(--w-ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--w-line);
}
.w-sum {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.w-sum > div {
  display: flex;
  justify-content: space-between;
}
.w-sum-disc {
  color: var(--w-ok);
}
.w-sum-total {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}
.w-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.w-primary,
.w-secondary {
  border-radius: 6px;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.w-primary {
  background: var(--w-accent);
  border: 1px solid var(--w-accent-ink);
  color: #fff;
}
.w-primary:hover:not(:disabled) {
  background: var(--w-accent-ink);
}
.w-secondary {
  background: var(--w-card);
  border: 1px solid #d0d0d0;
  color: var(--w-ink);
}
.w-secondary:hover:not(:disabled) {
  background: #f6f6f6;
}
.w-primary:disabled,
.w-secondary:disabled {
  background: #e9e9e9;
  border-color: #e0e0e0;
  color: #9a9a9a;
  cursor: default;
}
.w-warn {
  color: var(--w-warn);
  font-size: 13px;
  font-weight: 600;
}
.w-muted {
  color: var(--w-muted);
}
.w-mono {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    Consolas,
    monospace;
  font-size: 12px;
}
.w-note {
  font-size: 13px;
  margin-top: 10px;
}
.w-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.w-list {
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: 8px;
  overflow: hidden;
}
.w-list-head,
.w-list-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.2fr) 52px 80px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
}
.w-stock .w-list-head,
.w-stock .w-list-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 70px 50px 70px;
}
.w-list-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--w-muted);
  background: var(--w-chrome);
  border-bottom: 1px solid var(--w-line);
}
.w-list-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--w-line);
  background: none;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
}
.w-list-row:last-child {
  border-bottom: 0;
}
button.w-list-row:hover {
  background: #f6f6f6;
}
.w-list-row.on {
  background: #eaf2fb;
}
.w-tag {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--w-ok-bg);
  color: #0b5a0b;
  white-space: nowrap;
}
.w-tag-queued {
  background: var(--w-warn-bg);
  color: #6b4100;
}
.w-count {
  font-weight: 600;
}
.w-count.low {
  color: var(--w-warn);
}
.w-count.out {
  color: var(--w-bad);
}
.w-receipt {
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.w-r-name {
  font-size: 15px;
}
.w-r-lines {
  margin: 10px 0 6px;
  padding: 8px 0;
  border-top: 1px dashed #cfcfcf;
  border-bottom: 1px dashed #cfcfcf;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.w-r-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.w-r-total {
  font-weight: 700;
  font-size: 15px;
}
.w-receipt p {
  margin-top: 8px;
}
.w-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 30px;
  padding: 3px 12px;
  font-size: 12px;
  background: var(--w-chrome);
  border-top: 1px solid var(--w-line);
}
.w-st-till {
  font-weight: 600;
}
.w-st-net {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 3px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--w-ink);
}
.w-switch:disabled {
  color: var(--w-bad);
  cursor: default;
}
.w-switch-track {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid #8a8a8a;
  background: var(--w-card);
  position: relative;
}
.w-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f5f5f;
  transition: left .15s ease;
}
.w-switch.on .w-switch-track {
  background: var(--w-accent);
  border-color: var(--w-accent);
}
.w-switch.on .w-switch-track::after {
  left: 19px;
  background: #fff;
}
.w-st-queue.on {
  color: var(--w-warn);
  font-weight: 600;
}
.w-st-sync.ok {
  color: var(--w-ok);
  font-weight: 600;
}
.w-st-clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.w-flash {
  animation: w-flash 1.6s ease;
}
@keyframes w-flash {
  0%, 40% {
    background: var(--w-ok-bg);
  }
  100% {
    background: transparent;
  }
}
@media (max-width:1023px) {
  .w-desk {
    padding: 0;
    background: var(--w-chrome);
  }
  .w-window {
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .w-caption {
    display: none;
  }
  .w-body {
    flex-direction: column;
  }
  .w-nav {
    flex-direction: row;
    width: auto;
    padding: 0 8px 6px;
  }
  .w-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 6px;
    min-height: 42px;
  }
  .w-nav-btn.on::before {
    left: 50%;
    top: auto;
    bottom: 2px;
    width: 18px;
    height: 3px;
    margin: 0 0 0 -9px;
  }
  .w-main {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow: visible;
    padding: 12px;
  }
  .w-sell,
  .w-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .w-tile {
    min-height: 78px;
    padding: 8px;
  }
  .w-tile-name {
    font-size: 13px;
  }
  .w-ticket {
    position: static;
  }
  .w-list-head,
  .w-list-row {
    grid-template-columns: 44px minmax(0, 1fr) 30px 64px 76px;
    gap: 6px;
    padding: 8px;
  }
  .w-list-head span:nth-child(2),
  .w-list-row span:nth-child(2) {
    font-size: 11px;
  }
  .w-stock .w-list-head,
  .w-stock .w-list-row {
    grid-template-columns: minmax(0, 1.6fr) 0 56px 36px 60px;
  }
  .w-stock .w-list-head span:nth-child(2),
  .w-stock .w-list-row span:nth-child(2) {
    display: none;
  }
  .w-status {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 6px 12px;
  }
  .w-st-till,
  .w-st-clock {
    display: none;
  }
  .w-switch {
    min-height: 36px;
  }
}
.o-root {
  --o-ink:#17202a;
  --o-muted:#5d6670;
  --o-line:#e3e6ea;
  --o-paper:#f6f7f9;
  --o-accent:#005fb8;
  --o-warn:#9d5d00;
  --o-bad:#c42b1c;
  background: var(--o-paper);
  color: var(--o-ink);
  min-height: calc(100vh - 100px);
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.o-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--o-accent);
}
.o-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.o-sub {
  font-size: 13.5px;
  color: var(--o-muted);
}
.o-news:empty {
  display: none;
}
.o-batch {
  padding: 10px 12px;
  border-radius: 10px;
  background: #dff6dd;
  color: #0b4f0b;
  font-size: 14px;
}
.o-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.o-kpi {
  background: #fff;
  border: 1px solid var(--o-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.o-kpi-k {
  font-size: 11.5px;
  color: var(--o-muted);
  font-weight: 600;
}
.o-kpi-v {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-cols {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.o-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.o-card {
  background: #fff;
  border: 1px solid var(--o-line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.o-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.o-card-head h2 {
  font-size: 15px;
  font-weight: 700;
}
.o-muted {
  color: var(--o-muted);
  font-size: 13px;
}
.o-till {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 9px 0;
  border-top: 1px solid var(--o-line);
}
.o-till:first-of-type {
  border-top: 0;
}
.o-till > div:first-child,
.o-low > div:first-child,
.o-sale > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
}
.o-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.o-bar {
  grid-column: 1/-1;
  height: 6px;
  border-radius: 3px;
  background: #eceff2;
  overflow: hidden;
}
.o-bar i {
  display: block;
  height: 100%;
  background: var(--o-accent);
}
.o-low {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--o-line);
}
.o-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--o-warn);
  white-space: nowrap;
}
.o-count.out {
  color: var(--o-bad);
}
.o-ghost {
  border: 1px solid #cdd3da;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--o-ink);
}
.o-ghost:hover {
  background: #f2f4f6;
}
.o-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--o-line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.o-sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--o-line);
}
.o-sale strong {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
}
.o-late {
  color: var(--o-warn);
  font-size: 13px;
  font-weight: 600;
}
.o-flash {
  animation: o-flash 1.8s ease;
}
@keyframes o-flash {
  0%, 40% {
    background: #e5f0fb;
  }
  100% {
    background: transparent;
  }
}
.o-fine {
  font-size: 12.5px;
  color: var(--o-muted);
}
@media (prefers-reduced-motion: reduce) {
  .w-switch-track::after {
    transition: none;
  }
  .w-flash,
  .o-flash {
    animation: none;
  }
}
