:root {
  --pos-bg: #f3eadc;
  --pos-bg-edge: #cbb392;
  --pos-surface: #fff8ee;
  --pos-line: rgba(62, 43, 34, 0.16);
  --pos-text: #3e2b22;
  --pos-muted: #8d6e5a;
  --pos-accent: #5c3d2e;
  --pos-accent-soft: #a67c52;
  --pos-ok: #1f8a46;
  --pos-warn: #c4a035;
  --pos-danger: #a44a3f;
  --pos-tile-from: #6d4c3d;
  --pos-tile-to: #4a342c;
  --pos-font: "Segoe UI", system-ui, sans-serif;
  --pos-display: Syne, "Segoe UI", system-ui, sans-serif;
  --pos-sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --pos-tap: 52px;
  --pos-open-in: 0.55s;
  --pos-open-hold: 1.85s;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.pos-body {
  margin: 0;
  height: 100%;
  background: var(--pos-bg);
  color: var(--pos-text);
  font-family: var(--pos-font);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.pos-demo-frame button, .pos-demo-frame a, .pos-demo-frame [role="button"] {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.pos-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.pos-center {
  margin: auto;
  width: min(420px, 100%);
  text-align: center;
}

.pos-wordmark {
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  margin: 0;
}

.pos-wordmark span { color: var(--pos-muted); letter-spacing: 0.4em; font-weight: 500; }

.pos-kicker {
  margin: 0.35rem 0 1.5rem;
  color: var(--pos-muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pos-status {
  min-height: 1.4rem;
  color: var(--pos-muted);
  font-size: 0.95rem;
}

html:has(.pos-splash),
body.pos-body:has(.pos-splash) {
  background: #f3f0ea;
  color: #142033;
}

.pos-splash {
  position: relative;
  overflow: hidden;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 58% 48% at 50% 44%, rgba(27, 79, 114, 0.055) 0%, transparent 70%),
    linear-gradient(168deg, #f7f4ee 0%, #f1eee8 52%, #ece8e1 100%);
  color: #142033;
}

.pos-splash .pos-center {
  position: relative;
  z-index: 1;
  width: min(92vw, 36rem);
}

.pos-open-wash {
  position: absolute;
  inset: -18% -12% auto;
  height: 62%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 252, 247, 0.7) 0%, transparent 68%);
}

.pos-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pos-splash .pos-splash-brand {
  transform-origin: 50% 46%;
  transform: scale(1);
  animation: pos-open-approach var(--pos-open-hold) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.pos-splash .pos-open-mark {
  margin: 0;
  font-family: var(--pos-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 5.8vw, 2.85rem);
  letter-spacing: 0.08em;
  color: #142033;
  line-height: 1.08;
  opacity: 0;
  animation: pos-open-in var(--pos-open-in) ease forwards;
}

.pos-splash .pos-open-kicker {
  margin: 0.7rem 0 0;
  font-family: var(--pos-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: #8a918c;
  line-height: 1;
  opacity: 0;
  animation: pos-open-kicker-in 0.7s ease 0.32s forwards;
}

@keyframes pos-open-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pos-open-approach {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

@keyframes pos-open-kicker-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html:has(.pos-customer-root),
body.pos-body:has(.pos-customer-root) {
  background: #f3f0ea;
  color: #142033;
}

.pos-customer-root {
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  background: #f3f0ea;
}

.pos-customer-root[data-mode="brand"] {
  grid-template-columns: 1fr;
}

.pos-customer-root[data-mode="brand"] .pos-customer-ticket {
  display: none;
}

.pos-customer-root[data-mode="order"] {
  grid-template-columns: 1fr 1fr;
}

.pos-customer-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 58% 48% at 50% 44%, rgba(27, 79, 114, 0.055) 0%, transparent 70%),
    linear-gradient(168deg, #f7f4ee 0%, #f1eee8 52%, #ece8e1 100%);
}

.pos-customer-brand .pos-splash-brand {
  position: relative;
  z-index: 1;
  animation: none;
  transform: none;
}

.pos-customer-brand .pos-open-mark,
.pos-customer-brand .pos-open-kicker {
  animation: none;
  opacity: 1;
  transform: none;
}

.pos-customer-brand .pos-open-mark {
  margin: 0;
  font-family: var(--pos-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 8.2vw, 3.35rem);
  letter-spacing: 0.08em;
  color: #142033;
  line-height: 1.08;
}

.pos-customer-brand .pos-open-kicker {
  margin: 0.65rem 0 0;
  font-family: var(--pos-sans);
  font-size: clamp(0.78rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  color: #8a918c;
}

.pos-customer-root[data-mode="order"] .pos-customer-brand .pos-open-mark {
  font-size: clamp(1.35rem, 6.2vw, 2.15rem);
}

.pos-customer-root[data-mode="order"] .pos-customer-brand .pos-open-kicker {
  font-size: clamp(0.62rem, 1.8vw, 0.78rem);
  margin-top: 0.45rem;
}

.pos-customer-ticket {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: #ebe7e0;
  color: #142033;
}

.pos-customer-ticket-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--pos-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a918c;
}

.pos-customer-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: auto;
}

.pos-customer-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
}

.pos-customer-line-name {
  min-width: 0;
  font-weight: 650;
}

.pos-customer-line-meta {
  flex: none;
  color: #5c6560;
  font-variant-numeric: tabular-nums;
}

.pos-customer-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 32, 51, 0.14);
  font-size: 0.85rem;
  color: #5c6560;
}

.pos-customer-sum strong {
  font-family: var(--pos-display);
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  color: #142033;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px), (orientation: portrait) {
  .pos-customer-root[data-mode="order"] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(32%, 38%) 1fr;
  }
}

body:has(.pos-splash) #pos-update-bar,
body:has(.pos-customer-root) #pos-update-bar {
  display: none !important;
}

.pos-splash-mark {
  display: grid;
  place-items: center;
  width: min(200px, 46vw);
  height: min(200px, 46vw);
}

.pos-splash-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pos-splash-name {
  margin: 1.15rem 0 0;
}

.pos-splash-pos {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--pos-muted);
}

.pos-splash .pos-btn-primary {
  margin-top: 1.35rem;
}

.pos-launch {
  position: relative;
}

.pos-launch-main { margin: auto; }

.pos-check-update {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: auto;
  margin: 0;
  min-height: 44px;
  padding: 0 0.9rem;
}

.pos-debug { display: none !important; }

.pos-update-bar {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 2rem));
  padding: 1.25rem 1.1rem;
  background: #121b2b;
  border: 1px solid #3d9a6a;
  text-align: center;
}

.pos-update-bar p {
  margin: 0 0 0.85rem;
  color: #f3f6fa;
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .pos-splash .pos-splash-brand,
  .pos-splash .pos-open-mark,
  .pos-splash .pos-open-kicker {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) {
  .pos-splash-mark {
    width: 240px;
    height: 240px;
  }
}

.pos-title { margin: 0 0 0.35rem; font-size: 1.35rem; }
.pos-lead { margin: 0 0 1.25rem; color: var(--pos-muted); }

.pos-label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--pos-muted);
  margin-bottom: 0.4rem;
}

.pos-input {
  width: 100%;
  min-height: var(--pos-tap);
  border: 1px solid var(--pos-line);
  background: var(--pos-surface);
  color: var(--pos-text);
  border-radius: 4px;
  padding: 0 0.9rem;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pos-input:focus { outline: 2px solid var(--pos-accent); outline-offset: 1px; }

.pos-btn {
  appearance: none;
  border: 0;
  border-radius: 4px;
  min-height: var(--pos-tap);
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  width: 100%;
  margin-top: 0.85rem;
}

.pos-btn-primary { background: var(--pos-accent); color: #fff; }
.pos-btn-ghost { background: transparent; color: var(--pos-muted); }

.pos-btn-compact { width: auto; min-width: 5.5rem; }
a.pos-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.pos-error { color: var(--pos-danger); min-height: 1.2rem; }

.pos-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pos-line);
}

.pos-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.pos-meta strong { font-size: 1.05rem; }
.pos-meta small { color: var(--pos-muted); }

.pos-top-end { text-align: right; }
.pos-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.pos-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos-muted);
}
.pos-dot.is-online::before { background: var(--pos-ok); }
.pos-dot.is-offline::before { background: var(--pos-warn); }
.pos-dot.is-syncing::before { background: var(--pos-accent); }

.pos-notes {
  white-space: pre-wrap;
  color: var(--pos-muted);
  text-align: left;
}


/* ═══ POS DASHBOARD (/Pos/Menu) — 1920×1080 terminal ═══ */
/* WebView2-safe: no min(vw/1920) custom props (invalid → SVG explosion). */

html:has(.pos-dash),
body.pos-body:has(.pos-dash),
html:has(.pos-login),
body.pos-body:has(.pos-login) {
  background: var(--pos-bg);
  overflow: hidden;
  height: 100%;
}

.pos-dash-sr {
  position: absolute;
  display: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pos-screen.pos-dash,
.pos-dash {
  display: grid;
  grid-template-rows: 10vh minmax(0, 1fr) 7.5vh;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  color: var(--pos-text);
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: var(--pos-bg);
  background-image:
    radial-gradient(ellipse 62% 58% at 50% 36%, #fffaf3 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 50% 100%, var(--pos-bg-edge) 0%, transparent 62%),
    linear-gradient(180deg, #f7f1e5 0%, #ead9c2 52%, #d8c0a0 100%);
}

.pos-dash-top { grid-row: 1; }
.pos-dash-body { grid-row: 2; }
.pos-dash-foot { grid-row: 3; }

.pos-dash::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: -8%;
  top: 8%;
  width: 70%;
  height: 86%;
  border-radius: 48% 42% 38% 50% / 42% 46% 40% 52%;
  background: radial-gradient(ellipse at 40% 48%, rgba(255, 248, 238, 0.55) 0%, transparent 72%);
}

.pos-dash > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.pos-dash svg {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  max-width: 48px;
  max-height: 48px;
}

.pos-dash-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 1.6vh 2.5vw 0.8vh;
  background: transparent;
  overflow: hidden;
}

.pos-dash-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding-bottom: 2px;
}

.pos-dash-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1;
  color: var(--pos-text);
  white-space: nowrap;
}

.pos-dash-logo-name {
  font-weight: 500;
  letter-spacing: 0.1em;
}

.pos-dash-logo-pos {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--pos-accent-soft);
}

.pos-dash-branch {
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pos-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 6px;
}

.pos-dash-topright {
  display: flex;
  align-items: center;
  gap: 1.4vw;
  flex: none;
}

.pos-dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
}

.pos-dash-stat svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  color: var(--pos-muted);
}

.pos-dash-stat span {
  font-size: clamp(10px, 0.7vw, 13px);
  font-weight: 700;
  color: var(--pos-muted);
  line-height: 1;
}

.pos-dash-stat.is-on svg,
.pos-dash-stat.is-on span {
  color: var(--pos-ok);
}

.pos-dash-stat.is-off svg,
.pos-dash-stat.is-off span {
  color: var(--pos-muted);
}

.pos-dash-stat small {
  display: none;
}

.pos-dash-staff {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  gap: 6px;
  min-width: 72px;
}

.pos-dash-staff span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pos-text);
  line-height: 1.1;
}

.pos-dash-staff small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pos-muted);
  text-transform: none;
  letter-spacing: 0;
}

.pos-dash-staff:focus {
  outline: none;
}

.pos-dash-staff:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

body.pos-modal-open {
  overflow: hidden;
}

.pos-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
}

.pos-modal[hidden]:not(.is-open) {
  display: none !important;
}

.pos-modal.is-open {
  display: flex !important;
}

.pos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(62, 43, 34, 0.28);
  pointer-events: auto;
}

.pos-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 26px 24px 20px;
  border-radius: 12px;
  border: 1px solid var(--pos-line);
  background: var(--pos-surface);
  box-shadow: 0 12px 32px rgba(62, 43, 34, 0.18);
  pointer-events: auto;
  font-family: var(--pos-font);
}

.pos-modal-title {
  margin: 0 0 8px;
  font-family: var(--pos-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--pos-text);
}

.pos-modal-text {
  margin: 0 0 20px;
  font-family: var(--pos-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--pos-muted);
}

.pos-modal-actions {
  display: flex;
  gap: 10px;
}

.pos-modal-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-bg);
  color: var(--pos-text);
  font-family: var(--pos-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.pos-modal-btn:hover,
.pos-modal-btn:focus-visible {
  background: #efe4d4;
  outline: none;
}

.pos-modal-btn.is-danger {
  border-color: rgba(164, 74, 63, 0.45);
  background: var(--pos-danger);
  color: #fffaf3;
}

.pos-modal-btn.is-danger:hover,
.pos-modal-btn.is-danger:focus-visible {
  background: #8d3d34;
}

.pos-modal-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  font-family: var(--pos-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.pos-modal-link:hover,
.pos-modal-link:focus-visible {
  color: var(--pos-text);
  outline: none;
}

/* Adisyon özet popup (ödeme tamam) */
.pos-receipt-modal {
  z-index: 1100;
}

.pos-receipt-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--pos-line);
  background: #fff;
  box-shadow: 0 16px 40px rgba(62, 43, 34, 0.22);
  overflow: hidden;
  font-family: var(--pos-sans, var(--pos-font));
}

.pos-receipt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 22px 16px;
  background: color-mix(in srgb, var(--pos-ok, #1f8a46) 10%, #fff);
  border-bottom: 1px solid var(--pos-line);
  text-align: center;
}

.pos-receipt-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pos-ok, #1f8a46);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.pos-receipt-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pos-text);
}

.pos-receipt-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pos-muted);
}

.pos-receipt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 20px 8px;
  -webkit-overflow-scrolling: touch;
}

.pos-receipt-lines {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--pos-text);
}

.pos-receipt-line-name {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.pos-receipt-line-amt {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.pos-receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px dashed var(--pos-line);
}

.pos-receipt-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--pos-muted);
}

.pos-receipt-total-row.is-disc strong {
  color: var(--pos-danger, #a44a3f);
}

.pos-receipt-total-row.is-grand {
  margin-top: 4px;
  font-size: 1.05rem;
  color: var(--pos-text);
}

.pos-receipt-total-row.is-grand strong {
  color: var(--pos-ok, #1f8a46);
  font-size: 1.2rem;
  font-weight: 800;
}

.pos-receipt-pays {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--pos-line);
}

.pos-receipt-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--pos-text);
}

.pos-receipt-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--pos-line);
  background: #fbf7f1;
}

.pos-receipt-btn {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pos-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pos-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.pos-receipt-btn.is-primary {
  border-color: color-mix(in srgb, var(--pos-ok, #1f8a46) 55%, var(--pos-line));
  background: var(--pos-ok, #1f8a46);
  color: #fff;
}

.pos-receipt-btn:active {
  transform: scale(0.985);
}

.pos-dash-body {
  display: grid;
  grid-template-columns: 38% 62%;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  padding: 0 2.5vw;
  align-items: stretch;
}

.pos-dash-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 4.8vh 1.2vw 0 0;
}

.pos-dash-clock-block {
  flex: none;
}

.pos-dash-date {
  margin: 0 0 1.6vh;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pos-muted);
}

.pos-dash-clock-row {
  display: flex;
  align-items: center;
}

.pos-dash-time {
  font-size: clamp(52px, 7.1vw, 136px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--pos-text);
  text-shadow: none;
}

.pos-dash-notify {
  display: flex;
  flex-direction: column;
  margin-top: 4.8vh;
  min-height: 0;
  flex: 1;
  max-width: 28vw;
}

.pos-dash-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: clamp(11px, 0.75vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pos-text);
}

.pos-dash-side-title svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  color: var(--pos-accent);
}

.pos-dash-notify-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c518;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.7);
  flex: none;
}

.pos-dash-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-dash-notify-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  max-height: 54px;
  padding: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pos-surface);
  border: 1px solid var(--pos-line);
  box-shadow: 0 4px 12px rgba(62, 43, 34, 0.08);
}

.pos-dash-notify-item:active {
  filter: brightness(0.97);
}

.pos-dash-notify-icon {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}

.pos-dash-notify-icon.is-getir {
  border-radius: 8px;
  background: #5b2ebd;
  text-transform: lowercase;
}

.pos-dash-notify-icon.is-ys { background: #f97316; }
.pos-dash-notify-icon.is-y { background: #dc2626; }

.pos-dash-notify-body { min-width: 0; flex: 1; }

.pos-dash-notify-item strong {
  display: block;
  font-size: clamp(12px, 0.8vw, 15px);
  font-weight: 600;
  color: var(--pos-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-dash-notify-item em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: clamp(11px, 0.68vw, 13px);
  color: var(--pos-muted);
}

.pos-dash-notify-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--pos-line);
  background: var(--pos-surface);
  color: var(--pos-text);
  font-size: clamp(12px, 0.8vw, 15px);
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  appearance: none;
}

.pos-dash-notify-btn:active {
  filter: brightness(0.97);
}

.pos-dash-notify-btn svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  opacity: 0.85;
}

.pos-dash-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 3vh 4vw;
  overflow: hidden;
}

.pos-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, clamp(132px, 8.4vw, 164px));
  grid-template-rows: repeat(2, clamp(122px, 7.8vw, 152px));
  gap: clamp(14px, 1vw, 20px);
  width: auto;
  height: auto;
}

.pos-dash-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px 8px 8px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--pos-line);
  text-decoration: none;
  font: inherit;
  color: var(--pos-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  background: var(--pos-surface);
  box-shadow: 0 6px 16px rgba(62, 43, 34, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.pos-dash-tile:focus {
  outline: none;
}

.pos-dash-tile::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 48%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  opacity: 0;
  z-index: 1;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

@media (hover: hover) {
  .pos-dash-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(166, 124, 82, 0.45);
    filter: brightness(1.04);
    box-shadow:
      0 12px 22px rgba(62, 43, 34, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .pos-dash-tile:hover::after {
    opacity: 1;
    transform: translateX(280%) rotate(18deg);
  }

  .pos-dash-tile:hover .pos-dash-tile-ico {
    transform: scale(1.07);
  }
}

.pos-dash-tile:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.94);
}

.pos-dash-tile-ico {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  align-self: center;
  position: relative;
  z-index: 2;
  transition: transform 0.18s ease;
}

.pos-dash-tile-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--pos-text);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  padding-top: 2px;
  align-self: center;
  position: relative;
  z-index: 2;
}

.pos-dash-tile:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pos-dash-tile,
  .pos-dash-tile::after,
  .pos-dash-tile-ico,
  .pos-dash-notify-item,
  .pos-dash-notify-btn { transition: none; }
  .pos-dash-tile:hover,
  .pos-dash-tile:active { transform: none; }
  .pos-dash-tile:hover .pos-dash-tile-ico { transform: none; }
  .pos-dash-tile:hover::after { opacity: 0; transform: none; }
}

.pos-dash-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 0 2.5vw;
}

.pos-dash-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pos-muted);
  text-decoration: none;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 500;
}

.pos-dash-support svg,
.pos-dash-settings svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.pos-dash-ver {
  font-size: clamp(11px, 0.7vw, 13px);
  color: var(--pos-muted);
  text-align: center;
}

.pos-dash-settings {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--pos-accent);
  color: #fffaf3;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 600;
  text-decoration: none;
}

.pos-dash-settings:hover { background: #4a3226; }

/* —— Personel girişi —— */
.pos-login.pos-screen {
  padding: 0;
}

.pos-login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--pos-text);
  font-family: var(--pos-sans);
  background-color: var(--pos-bg);
}

.pos-login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 62% at 50% 32%, #fffaf3 0%, transparent 58%),
    radial-gradient(ellipse 90% 70% at 50% 108%, var(--pos-bg-edge) 0%, transparent 58%),
    linear-gradient(180deg, #f7f1e5 0%, #ead9c2 55%, #d8c0a0 100%);
}

.pos-login-bg::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: 58%;
  height: 72%;
  border-radius: 48% 42% 38% 50% / 42% 46% 40% 52%;
  background: radial-gradient(ellipse at 40% 48%, rgba(255, 248, 238, 0.5) 0%, transparent 72%);
  pointer-events: none;
}

.pos-login > *:not(.pos-login-bg) {
  position: relative;
  z-index: 1;
}

.pos-login-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1.25rem, 4vw, 2.5rem) clamp(0.5rem, 1.5vh, 1rem);
  min-height: 0;
}

.pos-login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 auto;
  width: min(100%, 340px);
  min-height: clamp(300px, 50vh, 400px);
  gap: 0;
  text-align: center;
  transition: opacity 0.2s ease;
}

.pos-login-head {
  flex: 0 0 auto;
  width: 100%;
  padding-top: clamp(20px, 4vh, 36px);
}

.pos-login-pin-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(40px, 7vh, 64px);
  padding: clamp(14px, 2.8vh, 24px) 0;
}

.pos-login-hero.is-busy {
  opacity: 0.82;
  pointer-events: none;
}

.pos-login-hero.is-error {
  animation: pos-login-shake 0.42s ease;
}

@keyframes pos-login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.pos-login-shield {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.4rem, 1vh, 0.65rem);
}

.pos-login-shield-svg {
  width: clamp(52px, 7.5vw, 64px);
  height: auto;
  opacity: 0.92;
}

.pos-login-title {
  margin: 0;
  font-family: var(--pos-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--pos-text);
}

.pos-login-pin {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  min-height: 8px;
  margin: 0;
}

.pos-login-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 61, 46, 0.28);
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pos-login-dot.is-filled {
  opacity: 1;
  background: var(--pos-accent);
  border-color: var(--pos-accent);
}

.pos-login-err {
  min-height: 0.9rem;
  margin: 0.35rem 0 0;
  color: #ffb4b4;
  font-size: 0.78rem;
}

.pos-login-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.3vw, 0.75rem);
  width: min(100%, clamp(210px, 30vw, 260px));
  margin: 0 auto;
  padding-top: clamp(14px, 2.8vh, 24px);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.pos-login-pad.is-busy {
  opacity: 0.6;
}

.pos-login-key {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: clamp(50px, 7.2vw, 62px);
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(62, 43, 34, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--pos-text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.pos-login-key::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transition: background 0.14s ease, transform 0.1s ease;
}

.pos-login-key:hover::before {
  background: rgba(92, 61, 46, 0.06);
}

.pos-login-key:active::before {
  background: rgba(92, 61, 46, 0.12);
}

.pos-login-key:hover {
  border-color: rgba(92, 61, 46, 0.45);
}

.pos-login-key:active {
  border-color: rgba(92, 61, 46, 0.55);
}

.pos-login-key:focus {
  outline: none;
}

.pos-login-key:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 2px;
  border-radius: 50%;
}

.pos-login-key-muted {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--pos-muted);
}

.pos-login-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.75rem, 1.8vh, 1.1rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 2.2vh, 1.5rem);
}

.pos-login-staff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  min-width: 0;
}

.pos-login-staff-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pos-muted);
}

.pos-login-staff-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.pos-login-staff-btn:hover,
.pos-login-staff-btn.is-selected {
  color: var(--pos-text);
}

.pos-login-staff-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--pos-line);
  color: var(--pos-accent);
  flex-shrink: 0;
}

.pos-login-staff-btn.is-selected .pos-login-staff-av {
  background: #fff;
  border-color: var(--pos-accent);
}

.pos-login-staff-name {
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(14rem, 42vw);
}

.pos-login-update {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  font: inherit;
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease;
}

.pos-login-update:hover {
  color: var(--pos-text);
}

.pos-login-update svg {
  display: block;
  color: var(--pos-accent);
}

@media (max-width: 640px) {
  .pos-login-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .pos-login-update {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-login-dot,
  .pos-login-key,
  .pos-login-key::before,
  .pos-login-hero {
    transition: none;
    animation: none;
  }
}

.pos-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.pos-dl-wrap {
  width: min(52rem, 100%);
}

.pos-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pos-dl-card {
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  padding: 1.25rem 1.35rem 1.4rem;
  background: color-mix(in srgb, var(--pos-surface) 88%, #fff);
}

.pos-dl-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.pos-dl-card p {
  margin: 0;
  color: var(--pos-muted);
}

.pos-dl-card .pos-btn {
  margin-top: 1.1rem;
  width: auto;
}

.pos-dl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.pos-dl-foot .pos-btn { width: auto; min-width: 10rem; }

@media (max-width: 720px) {
  .pos-dl-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ POS SATIŞ — Spilnet tema (Hızlı Satış) ═══ */

/* scoped out for marketing embed */

.pos-sale-op {
  --pay-key: #efe8df;
  --pay-key-hi: #e7ddd2;
  --pay-panel: #f3ebe0;
  --pay-mid: #ebe0d2;
  --pay-radius: 10px;
  --pay-gap: 0.4rem;

  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  color: var(--pos-text);
  background-color: var(--pos-bg);
  background-image:
    radial-gradient(ellipse 62% 58% at 50% 36%, #fffaf3 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 50% 100%, var(--pos-bg-edge) 0%, transparent 62%),
    linear-gradient(180deg, #f7f1e5 0%, #ead9c2 52%, #d8c0a0 100%);
  font-family: var(--pos-sans);
}

.pos-sale-op .pos-dash-top {
  padding: 0.85rem 1.1rem 0.65rem;
  border-bottom: 1px solid var(--pos-line);
  background: color-mix(in srgb, var(--pos-surface) 88%, transparent);
}

.pos-sale-op .pos-dash-logo-name { color: var(--pos-text); }
.pos-sale-op .pos-dash-logo-pos { color: var(--pos-accent-soft); }
.pos-sale-op .pos-dash-branch { color: var(--pos-muted); }
.pos-sale-op .pos-dash-staff span { color: var(--pos-text); }
.pos-sale-op .pos-dash-stat.is-on svg,
.pos-sale-op .pos-dash-stat.is-on span { color: var(--pos-ok); }
.pos-sale-op .pos-dash-stat.is-off svg,
.pos-sale-op .pos-dash-stat.is-off span { color: var(--pos-muted); }

.pos-sale-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--pos-line);
  background: var(--pos-surface);
  color: var(--pos-text);
  text-decoration: none;
  flex-shrink: 0;
}

.pos-sale-mode {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pos-accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pos-accent) 10%, var(--pos-surface));
  white-space: nowrap;
}

.pos-sale-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.6rem;
  z-index: 40;
  margin: 0;
  padding: 0.4rem 1.1rem;
  color: var(--pos-ok);
  font-weight: 650;
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--pos-ok) 10%, var(--pos-surface));
}

.pos-sale-msg[hidden] {
  display: none !important;
}

.pos-sale-msg.is-error {
  color: var(--pos-danger);
  background: color-mix(in srgb, var(--pos-danger) 10%, var(--pos-surface));
}


.pos-sale-work {
  display: grid;
  grid-template-columns: 64px minmax(280px, 32vw) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.pos-sale-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 13vw);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
}

.pos-sale-catalog,
.pos-pay-desk {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.pos-sale-catalog > .pos-sale-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pos-sale-catalog > .pos-sale-cats {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pos-sale-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.45rem 0.35rem;
  background: color-mix(in srgb, var(--pos-surface) 94%, #fff);
  border-right: 1px solid var(--pos-line);
  overflow-y: auto;
  min-height: 0;
}

.pos-sale-act {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.45rem 0.2rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  min-height: 62px;
  border-bottom: 1px solid color-mix(in srgb, var(--pos-line) 55%, transparent);
}

.pos-sale-act:last-child {
  border-bottom: 0;
}

.pos-sale-act:not(:disabled):hover,
.pos-sale-act:not(:disabled):focus-visible {
  background: var(--pos-surface);
  color: var(--pos-text);
  outline: none;
}

.pos-sale-act.is-on,
.pos-sale-act-keys.is-on {
  color: var(--pos-accent);
  background: color-mix(in srgb, var(--pos-accent) 10%, transparent);
}

.pos-sale-act-keys {
  margin-top: auto;
  border-bottom: 0;
}

.pos-sale-act-ico {
  width: 26px;
  height: 26px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--pos-accent);
  font-size: 0.95rem;
  line-height: 1;
}

.pos-sale-act.is-on .pos-sale-act-ico,
.pos-sale-act-keys.is-on .pos-sale-act-ico {
  background: transparent;
  border: 0;
  color: var(--pos-accent);
}

.pos-sale-act-keys .pos-sale-keys-ico svg {
  transition: transform 0.48s cubic-bezier(0.22, 0.8, 0.28, 1);
  transform-origin: 50% 50%;
}

.pos-sale-act-keys.is-on .pos-sale-keys-ico svg {
  transform: rotate(90deg) scale(1.05);
}

.pos-sale-act-ico svg {
  display: block;
}

.pos-sale-act:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pos-sale-ticket {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.pos-sale-ticket-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.pos-sale-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pos-sale-tab {
  appearance: none;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ece7e1;
  color: var(--pos-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pos-sale-tab.is-on {
  background: var(--pos-accent);
  color: #fff;
}

.pos-sale-tab.has-items:not(.is-on) {
  background: color-mix(in srgb, var(--pos-accent) 22%, #ece7e1);
  color: var(--pos-danger);
}

.pos-sale-tab:focus-visible {
  outline: 2px solid var(--pos-accent);
  outline-offset: 2px;
}

.pos-sale-bar-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #ece7e1;
  color: var(--pos-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.pos-sale-bar-btn.is-accent {
  background: var(--pos-accent);
  color: #fff;
  margin-left: auto;
}

.pos-sale-bar-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.pos-sale-bar-btn:not(:disabled):hover,
.pos-sale-bar-btn:not(:disabled):focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.pos-sale-bar-btn.is-accent:not(:disabled):hover,
.pos-sale-bar-btn.is-accent:not(:disabled):focus-visible {
  filter: brightness(1.06);
}

.pos-sale-bar-btn:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 2px;
}

.pos-sale-lines {
  list-style: none;
  margin: 0;
  padding: 0 0.65rem;
  overflow: auto;
  min-height: 0;
}

.pos-sale-lines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.45rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pos-line);
  font-size: 0.88rem;
}

.pos-sale-line-qty {
  font-weight: 800;
  color: var(--pos-danger);
  min-width: 1.8rem;
}

.pos-sale-line-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pos-sale-line-price {
  font-weight: 750;
  color: var(--pos-ok);
  white-space: nowrap;
}

.pos-sale-minus {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--pos-line);
  background: #fff;
  color: var(--pos-text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.pos-sale-sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.65rem;
  background: #fff;
  border-top: 1px solid var(--pos-line);
}

.pos-sale-work.is-pay .pos-sale-sum {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem 1.1rem;
  min-height: 84px;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--pos-surface) 70%, #fff) 100%);
  border-top: 1px solid var(--pos-line);
}

.pos-sale-work.is-pay .pos-sale-sum-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pos-text);
}

.pos-sale-work.is-pay .pos-sale-sum-total {
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  letter-spacing: -0.02em;
}

.pos-sale-work.is-pay .pos-sale-lines li {
  min-height: 58px;
  padding: 0.7rem 0;
  font-size: 0.98rem;
}

.pos-sale-work.is-pay .pos-sale-line-qty {
  font-size: 1rem;
}

.pos-sale-work.is-pay .pos-sale-line-name {
  font-weight: 550;
}

.pos-sale-work.is-pay .pos-sale-ticket-bar {
  padding: 0.85rem 1rem;
  min-height: 64px;
}

.pos-sale-sum-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pos-muted);
}

.pos-sale-work.is-pay .pos-sale-pay { display: none; }
.pos-sale-work.is-pay .pos-sale-sum-total { justify-self: end; }

.pos-sale-pay {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.55rem 1.05rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: var(--pos-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(180deg, #2bb85c 0%, var(--pos-ok) 48%, #176c36 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 18px color-mix(in srgb, var(--pos-ok) 42%, transparent);
}

.pos-sale-pay:hover:not(:disabled) {
  filter: brightness(1.05);
}

.pos-sale-pay:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 8px color-mix(in srgb, var(--pos-ok) 35%, transparent);
}

.pos-sale-pay:focus-visible {
  outline: 2px solid var(--pos-accent);
  outline-offset: 3px;
}

.pos-sale-pay:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.45;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.pos-sale-sum-total {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 800;
  color: var(--pos-ok);
  font-family: var(--pos-display);
  letter-spacing: 0.01em;
  padding-right: 0.15rem;
  white-space: nowrap;
}

.pos-sale-tools {
  display: grid;
  grid-template-rows: 0fr;
  background: transparent;
  pointer-events: none;
  min-height: 0;
  transition: grid-template-rows 0.48s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.pos-sale-ticket.has-keys .pos-sale-sum {
  border-bottom: 0;
}

.pos-sale-tools.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.pos-sale-tools-clip {
  min-height: 0;
  overflow: hidden;
}

.pos-sale-tools-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.35rem;
  gap: 0.45rem;
  padding: 0.75rem 0.5rem 0.85rem 0.7rem;
  min-height: 0;
  max-height: min(18rem, 40vh);
  background: linear-gradient(165deg, color-mix(in srgb, var(--pos-accent) 78%, #5a4034) 0%, color-mix(in srgb, var(--pos-accent) 92%, #2a1a14) 100%);
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow: 0 -8px 28px rgba(62, 43, 34, 0.18);
  transform: translateY(28%);
  opacity: 0;
  filter: saturate(0.92);
  transform-origin: 50% 100%;
  transition:
    transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1),
    opacity 0.32s ease,
    filter 0.4s ease;
}

.pos-sale-tools.is-open .pos-sale-tools-inner {
  transform: translateY(0);
  opacity: 1;
  filter: saturate(1);
}

.pos-sale-tools-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pos-sale-barcode-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 12, 8, 0.12);
}

.pos-sale-barcode-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pos-muted);
}

.pos-sale-barcode {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--pos-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0;
  margin: 0;
  caret-color: var(--pos-accent);
  pointer-events: none;
}

.pos-sale-barcode:focus {
  outline: none;
}

.pos-sale-keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(2.65rem, 1fr));
  gap: 0.42rem;
}

.pos-sale-key {
  appearance: none;
  min-height: 2.65rem;
  border-radius: 14px;
  border: 0;
  background: #fff;
  color: var(--pos-text);
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(20, 12, 8, 0.08);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.15s ease;
}

.pos-sale-key.is-action {
  background: color-mix(in srgb, #fff 88%, var(--pos-surface));
  color: var(--pos-accent);
}

.pos-sale-key.is-enter {
  grid-column: 4;
  grid-row: 3 / span 2;
  background: #fff;
  color: var(--pos-accent);
}

.pos-sale-key-enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pos-sale-key:hover {
  filter: brightness(1.03);
}

.pos-sale-key:active {
  transform: scale(0.97);
  filter: brightness(0.97);
}

.pos-sale-pad-modes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pos-sale-pad-mode {
  appearance: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 248, 238, 0.82);
  font: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.pos-sale-pad-mode.is-on {
  background: #fff;
  color: var(--pos-accent);
  box-shadow: 0 2px 8px rgba(20, 12, 8, 0.14);
}

.pos-sale-pad-mode:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pos-sale-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  position: relative;
  z-index: 1;
}

.pos-sale-col-head {
  display: flex;
  align-items: center;
  height: 3rem;
  padding: 0 0.85rem;
  border-bottom: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.pos-sale-toolbar {
  background: #fff;
}

.pos-sale-crumb {
  margin: 0;
  font-family: var(--pos-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pos-accent);
}

.pos-sale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--pos-prod-row, calc((100% - 24px) / 3));
  gap: 12px;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  align-items: stretch;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pos-sale-item {
  appearance: none;
  border: 1px solid rgba(62, 43, 34, 0.12);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 4.5rem;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: left;
  font: inherit;
  color: var(--pos-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(62, 43, 34, 0.08);
  touch-action: pan-y;
}

.pos-sale-item:disabled { opacity: 0.42; cursor: not-allowed; }

.pos-sale-item:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--pos-accent-soft) 45%, var(--pos-line));
}

.pos-sale-item:not(:disabled):active {
  transform: scale(0.985);
}

.pos-sale-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--pos-display);
  color: #fff;
  background: linear-gradient(160deg, var(--pos-accent-soft) 0%, var(--pos-accent) 100%);
  overflow: hidden;
}

.pos-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-sale-item-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  grid-row: 2;
  height: 4.5rem;
  min-height: 4.5rem;
  max-height: 4.5rem;
  padding: 6px 10px 8px;
  background: #fff;
  color: var(--pos-text);
  box-sizing: border-box;
  overflow: hidden;
}

.pos-sale-item-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 0 0 2.5em;
  height: 2.5em;
  min-height: 2.5em;
  max-height: 2.5em;
  font-family: var(--pos-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pos-text);
  word-break: break-word;
}

.pos-sale-item-price {
  display: block;
  flex: 0 0 1.2em;
  height: 1.2em;
  margin: 0;
  overflow: hidden;
  color: var(--pos-ok);
  font-family: var(--pos-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.pos-sale-empty {
  grid-column: 1 / -1;
  color: var(--pos-muted);
  padding: 1rem;
}

.pos-sale-cats {
  --pos-cat-r: 1.35rem;
  --pos-cat-fill: #e6d0b5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: var(--pos-cat-fill);
  box-shadow: none;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.pos-sale-cats-title {
  margin: 0;
  justify-content: center;
  text-align: center;
  width: 100%;
  font-family: var(--pos-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pos-accent);
  background: var(--pos-cat-fill);
  box-shadow: none;
  border-bottom: 0;
  z-index: 4;
  position: relative;
  flex-shrink: 0;
}

.pos-sale-cats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--pos-cat-r) 0 var(--pos-cat-r);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1;
  background: var(--pos-cat-fill);
}

.pos-sale-cat {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pos-accent);
  font-family: var(--pos-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.95rem 0.85rem;
  min-height: 52px;
  cursor: pointer;
  line-height: 1.2;
  width: 100%;
  position: relative;
  z-index: 1;
}

.pos-sale-cat:not(.is-on):hover,
.pos-sale-cat:not(.is-on):focus-visible {
  color: var(--pos-text);
  background: color-mix(in srgb, #fff 18%, transparent);
  outline: none;
}

.pos-sale-cat.is-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  color: var(--pos-muted);
}

.pos-sale-cat:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pos-sale-cat.is-on {
  background: #fff;
  color: var(--pos-accent);
  font-family: var(--pos-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 3;
  margin: 0;
  border-radius: 0 var(--pos-cat-r) var(--pos-cat-r) 0;
  box-shadow: none;
}

.pos-sale-cat.is-on::before,
.pos-sale-cat.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  width: var(--pos-cat-r);
  height: var(--pos-cat-r);
  pointer-events: none;
  z-index: 2;
}

.pos-sale-cat.is-on::before {
  top: calc(var(--pos-cat-r) * -1);
  background: radial-gradient(circle at 100% 0, transparent var(--pos-cat-r), #fff calc(var(--pos-cat-r) + 0.5px));
}

.pos-sale-cat.is-on::after {
  bottom: calc(var(--pos-cat-r) * -1);
  background: radial-gradient(circle at 100% 100%, transparent var(--pos-cat-r), #fff calc(var(--pos-cat-r) + 0.5px));
}

@media (max-width: 1100px) {
  .pos-sale-work {
    grid-template-columns: 78px minmax(260px, 36vw) minmax(0, 1fr);
  }

  .pos-sale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pos-sale-catalog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .pos-sale-catalog > .pos-sale-main {
    grid-column: 1;
    grid-row: 1;
  }

  .pos-sale-catalog > .pos-sale-cats {
    grid-column: 1;
    grid-row: 2;
  }

  .pos-sale-cats {
    border-left: 0;
    border-top: 1px solid var(--pos-line);
  }

  .pos-sale-cats-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.45rem;
  }

  .pos-sale-cat {
    width: auto;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
  }

  .pos-sale-cat.is-on {
    border-radius: 999px;
    background: #fff;
    color: var(--pos-accent);
    box-shadow: none;
  }

  .pos-sale-cat.is-on::before,
  .pos-sale-cat.is-on::after { display: none; }
  .pos-sale-cat.is-sub { padding: 0.55rem 0.85rem; }
}


@media (max-width: 820px) {
  .pos-sale-work {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(240px, 34vh) minmax(0, 1fr);
    overflow: auto;
  }

  .pos-sale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-sale-catalog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: auto;
  }

  .pos-sale-op {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .pos-sale-actions {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: color-mix(in srgb, var(--pos-surface) 94%, #fff);
  }

  .pos-sale-act { min-width: 72px; min-height: 56px; }
  .pos-sale-ticket { border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }

  .pos-sale-catalog,
  .pos-pay-desk {
    grid-column: 1;
    grid-row: 3;
  }

  .pos-sale-work.is-pay {
    grid-template-rows: auto minmax(200px, 32vh) minmax(0, 1fr);
  }

  .pos-pay-board {
    grid-template-columns: minmax(5.5rem, 0.28fr) minmax(0, 1fr);
  }

  .pos-pay-extra {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 3rem;
  }

  .pos-pay-extra .pos-pay-side {
    flex: 1 1 calc(33.33% - 0.35rem);
    min-height: 52px;
  }

  .pos-pay-quick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pos-pay-rest {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .pos-pay-head {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
    column-gap: 1rem;
  }

  .pos-pay-stats {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-self: stretch;
    order: 3;
  }

  .pos-pay-close {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .pos-pay-desk {
    --pay-btn-h: 55px;
    --pay-key-h: 52px;
    --pay-pill-h: 48px;
    padding: 12px;
  }

  .pos-sale-op .pos-dash-branch { display: none; }
}

/* ═══ ÖDEME PANELİ (yalnızca .pos-pay-* / .is-pay) ═══ */

.pos-sale-work.is-pay {
  grid-template-columns: 64px minmax(300px, 36%) minmax(0, 1fr);
}

.pos-pay-desk {
  --pay-key: color-mix(in srgb, var(--pos-accent) 48%, #6b5a4e);
  --pay-key-hi: color-mix(in srgb, var(--pos-accent) 38%, #7a6a5c);
  --pay-panel: #f7f1e8;
  --pay-mid: color-mix(in srgb, var(--pos-muted) 22%, #ebe4d9);
  --pay-tray: color-mix(in srgb, var(--pos-muted) 28%, #e2d9cd);
  --pay-tray-hi: color-mix(in srgb, var(--pos-muted) 18%, #efe8de);
  /* Seçili yöntem: Spilnet soft bakır (koyu kahve / Menulux pembe değil) */
  --pay-select: var(--pos-accent-soft);
  --pay-select-hi: color-mix(in srgb, var(--pos-accent-soft) 55%, #e8c9a0);
  --pay-select-lo: color-mix(in srgb, var(--pos-accent-soft) 78%, #7a5538);
  --pay-radius: 12px;
  --pay-radius-lg: 16px;
  --pay-gap: 8px;
  --pay-btn-h: clamp(55px, 7.2vh, 72px);
  --pay-key-h: clamp(52px, 6.8vh, 80px);
  --pay-pill-h: clamp(48px, 5.8vh, 58px);
  --pay-shadow: 0 1px 2px rgba(62, 43, 34, 0.06), 0 6px 16px rgba(62, 43, 34, 0.07);
  --pay-inset: inset 0 1px 0 rgba(255, 255, 255, 0.22);

  display: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: clamp(16px, 2vh, 24px) clamp(16px, 1.6vw, 28px);
  background: linear-gradient(180deg, #fbf7f1 0%, var(--pay-panel) 100%);
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.pos-sale-work.is-pay .pos-sale-catalog { display: none; }
.pos-sale-work.is-pay .pos-pay-desk { display: grid; }
.pos-sale-work.is-pay .pos-sale-act-keys { display: none; }
.pos-sale-act-payonly { display: none; }
.pos-sale-work.is-pay .pos-sale-act-payonly { display: flex; }

.pos-pay-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 3.5rem;
  column-gap: 1.25rem;
  align-items: center;
  min-height: 56px;
}

.pos-pay-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.pos-pay-gmp3,
.pos-pay-lock {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, filter 0.15s ease;
}

.pos-pay-gmp3.is-off,
.pos-pay-lock.is-off {
  background: color-mix(in srgb, var(--pos-muted) 28%, #d9cfc3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pos-pay-gmp3.is-on {
  background: linear-gradient(180deg, #2f9f58 0%, var(--pos-ok) 100%);
  box-shadow: var(--pay-shadow);
}

.pos-pay-lock.is-on {
  background: color-mix(in srgb, var(--pos-muted) 42%, #9a8b7c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pos-pay-gmp3:hover,
.pos-pay-lock:hover { filter: brightness(1.06); }
.pos-pay-gmp3:active,
.pos-pay-lock:active { transform: scale(0.98); }
.pos-pay-gmp3:focus-visible,
.pos-pay-lock:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 2px;
}

.pos-pay-lock svg {
  flex: 0 0 auto;
}

.pos-pay-stats {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(7.5rem, auto);
  gap: 1.25rem 1.75rem;
  align-items: center;
  justify-self: end;
  padding-right: 0.75rem;
}

.pos-pay-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  min-width: 7.5rem;
  text-align: right;
}

.pos-pay-stat span {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pos-muted);
  line-height: 1.2;
}

.pos-pay-stat strong {
  display: block;
  width: 100%;
  font-family: var(--pos-sans);
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--pos-text);
  white-space: nowrap;
}

.pos-pay-stat.is-remain strong { color: var(--pay-select); }
.pos-pay-stat.is-remain.is-done strong { color: var(--pos-ok); }

.pos-pay-close {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pos-line);
  background: color-mix(in srgb, #fff 70%, var(--pos-surface));
  color: var(--pos-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  justify-self: end;
  box-shadow: var(--pay-shadow);
  transition: background 0.15s ease, transform 0.12s ease;
}

.pos-pay-close:hover { background: #fff; }
.pos-pay-close:active { transform: scale(0.98); }
.pos-pay-close:focus-visible {
  outline: 2px solid var(--pos-accent);
  outline-offset: 2px;
}

/* Parça ödeme tray: üst hızlı tutarlar + alt chip alanı */
.pos-pay-mid {
  display: grid;
  grid-template-rows: auto minmax(110px, 1fr);
  gap: 0;
  min-width: 0;
  min-height: 0;
  max-height: 210px;
  padding: 0;
  border-radius: var(--pay-radius-lg);
  overflow: hidden;
  background: var(--pay-tray);
  border: 1px solid color-mix(in srgb, var(--pos-line) 70%, transparent);
  box-shadow: var(--pay-shadow);
}

.pos-pay-quick-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.8fr);
  gap: 6px;
  align-items: stretch;
  padding: 8px 8px 0;
  background: var(--pay-tray-hi);
}

.pos-pay-quick { display: contents; }

.pos-pay-pill {
  appearance: none;
  width: 100%;
  height: var(--pay-pill-h);
  min-height: 48px;
  max-height: 58px;
  border: 1px solid color-mix(in srgb, #fff 55%, var(--pos-line));
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--pos-surface) 85%, #fff) 100%);
  color: var(--pos-text);
  padding: 0 8px;
  font: inherit;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(62, 43, 34, 0.06);
}

.pos-pay-pill:hover,
.pos-pay-pill:focus-visible {
  border-color: color-mix(in srgb, var(--pos-accent) 28%, var(--pos-line));
  box-shadow: var(--pay-shadow);
  outline: none;
}
.pos-pay-pill:active { transform: scale(0.98); }
.pos-pay-pill:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 2px;
}

.pos-pay-rest {
  appearance: none;
  grid-column: 7;
  border: 0;
  border-radius: 10px 10px 0 0;
  height: var(--pay-pill-h);
  min-height: 48px;
  max-height: 58px;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  white-space: nowrap;
  color: #fff;
  font-family: var(--pos-sans);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pos-accent) 65%, #fff) 0%, var(--pos-accent) 55%, color-mix(in srgb, var(--pos-accent) 90%, #2a1a14) 100%);
  box-shadow: var(--pay-inset), var(--pay-shadow);
  transition: filter 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.pos-pay-rest:hover { filter: brightness(1.06); }
.pos-pay-rest:active { transform: scale(0.98); }
.pos-pay-rest.is-done { background: linear-gradient(180deg, #3cb86a 0%, var(--pos-ok) 100%); }
.pos-pay-rest:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 3px;
}

.pos-pay-ledger {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 110px;
  max-height: 150px;
  padding: 14px;
  overflow: auto;
  background: var(--pay-tray);
}

.pos-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  align-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.pos-pay-ledger-hint {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  text-align: center;
  color: color-mix(in srgb, var(--pos-muted) 75%, transparent);
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: none;
}

.pos-pay-ledger-hint[hidden] { display: none !important; }

.pos-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  max-height: 52px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, #fff 40%, var(--pos-line));
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--pos-text);
  box-shadow: 0 2px 8px rgba(62, 43, 34, 0.1);
  z-index: 1;
}

.pos-pay-chip-lab { white-space: nowrap; }

.pos-pay-chip button {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pos-muted) 14%, #f4efe8);
  color: var(--pos-muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.pos-pay-chip button:hover {
  background: color-mix(in srgb, var(--pos-danger) 16%, #fff);
  color: var(--pos-danger);
}

.pos-pay-chip button:active { transform: scale(0.98); }

/* 3 kolon: yöntem | numpad | yan işlemler — masaüstünde yan yana */
.pos-pay-board {
  display: grid;
  grid-template-columns: minmax(7rem, 0.24fr) minmax(0, 0.52fr) minmax(7rem, 0.24fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
  align-items: end;
}

.pos-pay-methods,
.pos-pay-extra,
.pos-pay-pad {
  height: auto;
  max-height: 100%;
  min-height: 0;
  align-self: end;
}

.pos-pay-methods,
.pos-pay-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.pos-pay-method,
.pos-pay-side {
  appearance: none;
  flex: 0 0 auto;
  height: var(--pay-btn-h);
  min-height: 55px;
  max-height: 72px;
  border: 0;
  border-radius: var(--pay-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pay-key) 70%, #fff) 0%, var(--pay-key) 100%);
  color: #fff;
  font: inherit;
  font-size: clamp(0.88rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--pay-inset), var(--pay-shadow);
  transition: filter 0.15s ease, transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pos-pay-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1rem;
}

.pos-pay-method.is-on {
  background: linear-gradient(180deg, var(--pay-select-hi) 0%, var(--pay-select) 48%, var(--pay-select-lo) 100%);
  box-shadow: var(--pay-inset), 0 4px 14px color-mix(in srgb, var(--pay-select) 35%, transparent);
}

.pos-pay-method.is-on::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  margin-right: 0.15rem;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a67c52' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 0.72rem;
  box-shadow: 0 1px 3px rgba(62, 43, 34, 0.12);
}

.pos-pay-method:not(:disabled):hover,
.pos-pay-side:not(:disabled):hover { filter: brightness(1.08); }

.pos-pay-method:not(:disabled):active,
.pos-pay-side:not(:disabled):active { transform: scale(0.98); }

.pos-pay-method:disabled,
.pos-pay-side:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pos-pay-method:focus-visible,
.pos-pay-side:focus-visible {
  outline: 2px solid var(--pos-accent-soft);
  outline-offset: 2px;
}

.pos-pay-pad {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
}

.pos-pay-buffer {
  margin: 0;
  height: clamp(68px, 8vh, 82px);
  min-height: 68px;
  max-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--pay-select) 22%, var(--pos-line));
  color: var(--pos-text);
  box-shadow: var(--pay-shadow);
}

.pos-pay-buffer-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pos-text);
}

.pos-pay-sel-ico {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--pay-select);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 0.72rem;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--pay-select) 30%, transparent);
}

.pos-pay-buffer strong {
  font-family: var(--pos-display);
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pos-pay-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, var(--pay-key-h));
  gap: 10px;
  min-height: 0;
  height: auto;
  width: 100%;
  max-height: calc(4 * 80px + 3 * 10px);
}

.pos-pay-keys .pos-sale-key {
  height: var(--pay-key-h);
  min-height: 52px;
  max-height: 80px;
  border-radius: var(--pay-radius);
  border: 0;
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  font-weight: 700;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pay-key) 68%, #fff) 0%, var(--pay-key) 100%);
  color: #fff;
  box-shadow: var(--pay-inset), var(--pay-shadow);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.pos-pay-keys .pos-sale-key.is-action,
.pos-pay-keys .pos-sale-key.is-enter {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pay-key-hi) 62%, #fff) 0%, var(--pay-key-hi) 100%);
  color: #fff;
}

.pos-pay-keys .pos-sale-key.is-enter {
  grid-column: 4;
  grid-row: 3 / span 2;
  height: auto;
  max-height: none;
}

.pos-pay-keys .pos-sale-key:hover { filter: brightness(1.08); }
.pos-pay-keys .pos-sale-key:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

@media (max-width: 1199px) and (min-width: 821px) {
  .pos-sale-work.is-pay {
    grid-template-columns: 64px minmax(280px, 36%) minmax(0, 1fr);
  }

  .pos-pay-desk {
    --pay-btn-h: clamp(52px, 6.5vh, 62px);
    --pay-key-h: clamp(52px, 6vh, 68px);
    --pay-pill-h: clamp(48px, 5.2vh, 52px);
    padding: 16px;
    gap: 10px;
  }

  .pos-pay-board {
    grid-template-columns: minmax(6rem, 0.23fr) minmax(0, 0.54fr) minmax(6rem, 0.23fr);
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-sale-item:not(:disabled):active { transform: none; }
  .pos-sale-pay:active:not(:disabled) { transform: none; }
  .pos-pay-rest,
  .pos-pay-pill,
  .pos-pay-method,
  .pos-pay-side,
  .pos-pay-close,
  .pos-pay-keys .pos-sale-key,
  .pos-pay-chip button { transition: none; }
  .pos-pay-rest:active,
  .pos-pay-pill:active,
  .pos-pay-method:active,
  .pos-pay-side:active,
  .pos-pay-close:active,
  .pos-pay-keys .pos-sale-key:active { transform: none; }
  .pos-sale-tools,
  .pos-sale-tools-inner,
  .pos-sale-act-keys .pos-sale-keys-ico svg {
    transition: none;
    transform: none;
  }
}

/* === Spilnet.Web homepage embed overrides === */

/*
  Tema sistemi (özelleştirilebilir renk tercihi)
  - data-pos-theme="spilnet"  → logo: A101 mavisi + BİM kırmızısı (varsayılan)
  - data-pos-theme="classic"  → mevcut sıcak POS paleti
  - data-pos-theme="market"   → market vurgusu (kırmızı ağırlıklı)
  Portal/müşteri tarafında aynı değişken seti ile marka rengi bağlanır.
*/
.pos-demo-frame {
  --pos-brand-blue: #1c528a;
  --pos-brand-blue-hover: #163e6c;
  --pos-brand-red: #d71920;
  --pos-brand-red-soft: rgba(215, 25, 32, 0.1);
  --pos-brand-blue-soft: rgba(28, 82, 138, 0.1);

  border: 1px solid var(--sp-border, #e2e8f0);
  border-radius: var(--sp-radius-lg, 1.25rem);
  overflow: hidden;
  box-shadow: var(--sp-shadow-soft, 0 8px 28px rgba(23, 33, 43, 0.05));
  background: var(--pos-bg);
  color: var(--pos-text);
}

/* Varsayılan: Spilnet marka teması */
.pos-demo-frame,
.pos-demo-frame[data-pos-theme="spilnet"] {
  --pos-bg: #f4f7fb;
  --pos-bg-edge: #c5d3e4;
  --pos-surface: #ffffff;
  --pos-line: rgba(23, 33, 43, 0.12);
  --pos-text: #17212b;
  --pos-muted: #667085;
  --pos-accent: var(--pos-brand-blue);
  --pos-accent-soft: #4a7fb0;
  --pos-ok: #1f8a46;
  --pos-warn: #c4a035;
  --pos-danger: var(--pos-brand-red);
  --pos-tile-from: #1c528a;
  --pos-tile-to: #163e6c;
  --pos-theme-cat-fill: #dce8f4;
  --pos-chrome: #e8eef5;
  --pos-chrome-hi: #dde6f0;
  --pay-key: #1c528a;
  --pay-key-hi: #d71920;
  --pay-panel: #eef3f8;
  --pay-mid: #e2ebf4;
}

.pos-demo-frame[data-pos-theme="classic"] {
  --pos-bg: #f3eadc;
  --pos-bg-edge: #cbb392;
  --pos-surface: #fff8ee;
  --pos-line: rgba(62, 43, 34, 0.16);
  --pos-text: #3e2b22;
  --pos-muted: #8d6e5a;
  --pos-accent: #5c3d2e;
  --pos-accent-soft: #a67c52;
  --pos-ok: #1f8a46;
  --pos-warn: #c4a035;
  --pos-danger: #a44a3f;
  --pos-tile-from: #6d4c3d;
  --pos-tile-to: #4a342c;
  --pos-theme-cat-fill: #e6d0b5;
  --pos-chrome: #ece7e1;
  --pos-chrome-hi: #efe4d4;
  --pay-key: #efe8df;
  --pay-key-hi: #e7ddd2;
  --pay-panel: #f3ebe0;
  --pay-mid: #ebe0d2;
}

.pos-demo-frame[data-pos-theme="market"] {
  --pos-bg: #faf6f6;
  --pos-bg-edge: #e8c4c6;
  --pos-surface: #ffffff;
  --pos-line: rgba(23, 33, 43, 0.12);
  --pos-text: #17212b;
  --pos-muted: #667085;
  --pos-accent: var(--pos-brand-red);
  --pos-accent-soft: #e85a5f;
  --pos-ok: #1f8a46;
  --pos-warn: #c4a035;
  --pos-danger: var(--pos-brand-red);
  --pos-tile-from: #d71920;
  --pos-tile-to: #a5141a;
  --pos-theme-cat-fill: #f3d6d8;
  --pos-chrome: #f3e8e9;
  --pos-chrome-hi: #edd8da;
  --pay-key: #d71920;
  --pay-key-hi: #1c528a;
  --pay-panel: #f8eeee;
  --pay-mid: #f0e0e1;
}

.pos-demo-frame .pos-dash-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1;
  white-space: nowrap;
}

.pos-demo-frame .pos-dash-logo-word {
  font-family: var(--font-display, Syne, Manrope, system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pos-demo-frame .pos-dash-logo-spi {
  color: var(--pos-brand-blue, #1c528a);
}

.pos-demo-frame .pos-dash-logo-lnet {
  color: var(--pos-brand-red, #d71920);
}

.pos-demo-frame .pos-dash-logo-pos {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pos-muted);
  align-self: baseline;
  padding-bottom: 0.05rem;
}

.pos-demo-frame .pos-sale-op.pos-screen {
  background-color: var(--pos-bg);
  background-image:
    radial-gradient(ellipse 62% 58% at 50% 36%, color-mix(in srgb, var(--pos-surface) 88%, transparent) 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 50% 100%, var(--pos-bg-edge) 0%, transparent 62%),
    linear-gradient(180deg, var(--pos-surface) 0%, var(--pos-bg) 52%, color-mix(in srgb, var(--pos-bg-edge) 35%, var(--pos-bg)) 100%);
  color: var(--pos-text);
}

.pos-demo-frame .pos-sale-cats {
  --pos-cat-fill: var(--pos-theme-cat-fill);
  background: var(--pos-theme-cat-fill);
}

.pos-demo-frame .pos-sale-cats-title,
.pos-demo-frame .pos-sale-cats-list {
  background: var(--pos-theme-cat-fill);
}

.pos-demo-frame .pos-sale-tab,
.pos-demo-frame .pos-sale-ticket-bar {
  background: var(--pos-chrome);
}

.pos-demo-frame .pos-sale-tab.is-on {
  background: var(--pos-surface);
  color: var(--pos-accent);
}

.pos-demo-frame .pos-sale-tab.has-items:not(.is-on) {
  background: color-mix(in srgb, var(--pos-accent) 18%, var(--pos-chrome));
}

.pos-demo-frame .pos-pay-desk {
  --pay-key: var(--pay-key);
  --pay-key-hi: var(--pay-key-hi);
  --pay-panel: var(--pay-panel);
  --pay-mid: var(--pay-mid);
  background: var(--pay-panel);
}

.pos-demo-frame:not([data-pos-theme="classic"]) .pos-sale-pay {
  background: var(--pos-ok);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 18px color-mix(in srgb, var(--pos-ok) 32%, transparent);
}

.pos-demo-frame:not([data-pos-theme="classic"]) .pos-sale-act.is-on .pos-sale-act-ico,
.pos-demo-frame:not([data-pos-theme="classic"]) .pos-sale-act-keys.is-on .pos-sale-act-ico {
  background: color-mix(in srgb, var(--pos-brand-blue) 14%, var(--pos-surface));
  color: var(--pos-brand-blue);
}

.pos-demo-frame[data-pos-theme="market"] .pos-sale-act.is-on .pos-sale-act-ico,
.pos-demo-frame[data-pos-theme="market"] .pos-sale-act-keys.is-on .pos-sale-act-ico {
  background: color-mix(in srgb, var(--pos-brand-red) 12%, var(--pos-surface));
  color: var(--pos-brand-red);
}

.pos-demo-frame .pos-sale-op.pos-screen {
  min-height: 0;
  height: min(78vh, 52rem);
  max-height: 54rem;
  padding: 0;
}

.pos-demo-frame .pos-sale-back {
  pointer-events: none;
  opacity: 0.55;
}

/* Gerçek POS kolon oranları — yalnızca sepet/Ödeme Al hafif dar */
@media (min-width: 1101px) {
  .pos-demo-frame .pos-sale-work {
    grid-template-columns: 64px minmax(195px, 20vw) minmax(0, 1fr);
  }

  /* Yalnızca kategoriler (Çok Satanlar) listesi — çok az dar */
  .pos-demo-frame .pos-sale-catalog {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 8.5vw);
  }
}

@media (max-width: 899px) {
  .pos-demo-frame .pos-sale-op.pos-screen {
    height: auto;
    max-height: none;
    min-height: 40rem;
  }

  .pos-demo-frame .pos-sale-work {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(18rem, 1fr);
  }

  .pos-demo-frame .pos-sale-actions {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--pos-line);
  }

  .pos-demo-frame .pos-sale-catalog,
  .pos-demo-frame .pos-pay-desk {
    grid-column: 1;
  }
}