:root {
  --bg0: #edf6ee;
  --bg1: #e2f0e3;
  --bg2: #f8fbf6;
  --card: rgba(255, 255, 255, 0.96);
  --surface: rgba(246, 251, 246, 0.92);
  --text: #1f2f24;
  --muted: rgba(31, 47, 36, 0.64);
  --line: rgba(63, 102, 81, 0.16);
  --accent: #d47a2a;
  --accent-strong: #a75b1f;
  --accent-soft: #f9e2cd;
  --green: #5ea87a;
  --red: #b54a3c;
  --amber: #b7843d;
  --shadow: 0 16px 44px rgba(53, 90, 67, 0.12);
  --shadow-soft: 0 10px 28px rgba(53, 90, 67, 0.09);
  --radius: 20px;
  --radius2: 14px;
  --pad: 16px;
  --font: "Avenir Next", "Poppins", "Trebuchet MS", "Gill Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg0);
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(242, 196, 158, 0.48), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(177, 224, 193, 0.5), transparent 30%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 62%, var(--bg2));
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  border-color: rgba(94, 168, 122, 0.58);
  box-shadow: 0 0 0 3px rgba(94, 168, 122, 0.18);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.app {
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(250, 253, 250, 0.96), rgba(244, 250, 245, 0.86));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(53, 90, 67, 0.08);
}

.topbar-inner {
  max-width: 1580px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.brand-logo-button:focus-visible {
  outline: 2px solid rgba(212, 122, 42, 0.64);
  outline-offset: 2px;
}

.brand-logo-button:active {
  transform: translateY(1px);
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 7px 16px rgba(39, 65, 50, 0.18));
}

.brand-logo-fallback {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(140deg, #73c596, #5ea87a 56%, #d47a2a);
  color: #fff9f4;
  font-size: 17px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(66, 118, 87, 0.24);
}

.brand-logo-button:not(.logo-has-image) .brand-logo-fallback,
.brand-logo-button.logo-error .brand-logo-fallback {
  display: inline-flex;
}

.brand-logo-button.logo-error .brand-logo {
  display: none;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-chip,
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.role-chip {
  background: rgba(200, 140, 90, 0.18);
  color: var(--accent-strong);
}

.soft-chip {
  background: rgba(94, 168, 122, 0.17);
  color: #2f6749;
}

.topbar-signout {
  padding: 8px 12px;
}

.app-version {
  font-size: 11px;
  color: var(--muted);
}

.sync-chip {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1;
  letter-spacing: 0.2px;
}

.sync-chip[data-state="ok"] {
  color: #2f6749;
  border-color: rgba(47, 103, 73, 0.2);
}

.sync-chip[data-state="cached"] {
  color: #8a6d3b;
  border-color: rgba(138, 109, 59, 0.2);
}

.sync-chip[data-state="warn"] {
  color: #a24b2f;
  border-color: rgba(162, 75, 47, 0.2);
}

.content {
  flex: 1;
  max-width: 1580px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 16px 104px 16px;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--pad);
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(242, 196, 158, 0.24), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 247, 0.95));
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.btn-primary {
  background: linear-gradient(140deg, #73c596, #5ea87a 72%, #4f9269);
  color: #fff9f4;
  box-shadow: 0 12px 24px rgba(66, 118, 87, 0.22);
}

.btn-secondary {
  border-color: rgba(200, 140, 90, 0.28);
  background: rgba(253, 247, 241, 0.96);
}

.btn.is-active {
  border-color: rgba(73, 138, 96, 0.42);
  background: linear-gradient(140deg, #73c596, #5ea87a 72%, #4f9269);
  color: #fff9f4;
  box-shadow: 0 10px 20px rgba(66, 118, 87, 0.2);
}

.btn-danger {
  border-color: rgba(179, 54, 40, 0.2);
  color: var(--red);
  background: rgba(255, 241, 239, 0.94);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.notice {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
}

.notice-detail {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.8;
  word-break: break-word;
}

.notice-ok {
  border-color: rgba(30, 125, 65, 0.18);
  background: rgba(234, 251, 240, 0.95);
  color: #165a2f;
}

.notice-warn {
  border-color: rgba(182, 122, 8, 0.18);
  background: rgba(255, 248, 226, 0.95);
  color: #855805;
}

.notice-info {
  border-color: rgba(28, 107, 173, 0.2);
  background: rgba(236, 245, 255, 0.96);
  color: #1d4f7e;
}

.notice-error {
  border-color: rgba(179, 54, 40, 0.18);
  background: rgba(255, 240, 237, 0.96);
  color: #8f2218;
}

.cash-cut-guide {
  display: grid;
  gap: 6px;
}

.cash-cut-guide-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.cash-cut-guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.cash-draft-saved {
  align-self: flex-start;
  border: 1px solid rgba(84, 128, 99, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #2f6749;
  background: rgba(229, 244, 236, 0.9);
  white-space: nowrap;
}

.auth-shell {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pos-desktop-page {
  position: relative;
}

.versa-sale-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
}

.versa-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 8px;
}

.versa-command-btn {
  min-height: 74px;
  border: 1px solid rgba(38, 26, 16, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 235, 0.98));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  box-shadow: 0 6px 16px rgba(71, 39, 15, 0.08);
}

.versa-command-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.versa-command-btn-primary {
  background: linear-gradient(180deg, rgba(200, 140, 90, 0.98), rgba(165, 111, 67, 0.98));
  color: #fff9f4;
  border-color: rgba(165, 111, 67, 0.45);
}

.versa-command-shortcut {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.versa-command-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.versa-customer-strip {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.versa-customer-code input,
.versa-customer-main input {
  height: 58px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  padding: 10px 12px;
}

.versa-customer-code input {
  text-align: center;
}

.versa-customer-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.versa-customer-input-wrap {
  display: flex;
  flex-direction: column;
}

.versa-customer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.versa-customer-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.versa-strip-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.versa-strip-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(94, 168, 122, 0.14);
}

.versa-sale-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  align-items: stretch;
}

.versa-session-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(38, 26, 16, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(246, 250, 246, 0.92);
  color: #2d3d34;
}

.versa-session-strip-open {
  border-color: rgba(79, 146, 105, 0.35);
  background: rgba(230, 243, 236, 0.96);
  color: #2f6749;
}

.versa-session-strip-closed {
  border-color: rgba(189, 104, 40, 0.34);
  background: rgba(253, 245, 237, 0.96);
  color: #7a4318;
}

.versa-session-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(38, 26, 16, 0.14);
}

.versa-sale-main {
  min-width: 0;
}

.versa-sale-table-wrap {
  overflow: auto;
  border: 1px solid rgba(38, 26, 16, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.versa-sale-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.versa-sale-table th {
  padding: 11px 10px;
  background: #4d7f61;
  color: #f7fafc;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.03em;
}

.versa-sale-table td {
  padding: 10px;
  border-top: 1px solid rgba(38, 26, 16, 0.08);
  vertical-align: top;
}

.versa-sale-row-empty td {
  background: rgba(255, 248, 241, 0.72);
}

.versa-cell-code { width: 220px; }
.versa-cell-qty { width: 120px; }
.versa-cell-price { width: 145px; }
.versa-cell-total { width: 130px; font-size: 18px; font-weight: 900; text-align: right; }
.versa-cell-scale { width: 190px; }
.versa-cell-actions { width: 84px; }

.versa-line-index {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(94, 168, 122, 0.18);
  color: #315e46;
  font-weight: 900;
  margin-bottom: 8px;
}

.versa-code-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.versa-inline-ok,
.versa-row-action {
  min-height: 40px;
  min-width: 40px;
  border: 1px solid rgba(38, 26, 16, 0.14);
  border-radius: 10px;
  background: rgba(255, 248, 241, 0.94);
  color: var(--text);
  font-weight: 800;
}

.versa-row-action {
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
}

.versa-row-action-danger {
  color: var(--red);
  background: rgba(255, 240, 237, 0.98);
}

.versa-cell-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.versa-discount-hint {
  color: #8a3f0f;
  font-weight: 700;
}

.versa-line-name {
  font-size: 16px;
  font-weight: 900;
  color: #315e46;
}

.versa-line-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.versa-scale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(94, 168, 122, 0.18);
  color: #315e46;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.versa-scale-input {
  margin-top: 8px;
}

.versa-sale-table input,
.versa-sale-table select {
  border-radius: 10px;
  padding: 9px 10px;
}

.versa-total-panel {
  border: 1px solid rgba(38, 26, 16, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 243, 0.96));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.versa-total-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.versa-total-tc {
  font-size: 16px;
  font-weight: 900;
  color: #315e46;
}

.versa-total-usd {
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
  text-align: right;
}

.versa-total-main {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.96;
  font-weight: 900;
  text-align: right;
  color: #111;
}

.versa-total-foot {
  display: grid;
  gap: 10px;
}

.versa-last-change-card {
  border: 1px solid rgba(38, 26, 16, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.versa-last-change-head {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #5f3a11;
}

.versa-last-change-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #2f2a23;
}

.versa-last-change-row strong {
  font-size: 18px;
  line-height: 1.08;
  font-weight: 900;
  color: #1b1712;
}

.versa-last-change-row-accent {
  border-top: 1px dashed rgba(95, 58, 17, 0.35);
  padding-top: 6px;
}

.versa-total-mini {
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
}

.versa-total-mini-green {
  background: linear-gradient(180deg, #7dcc8d, #36a853);
}

.versa-total-mini-blue {
  background: linear-gradient(180deg, #f3b789, #d47a2a);
}

.versa-total-mini-label {
  font-size: 14px;
  font-weight: 800;
}

.versa-total-mini-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.versa-sale-footer {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.versa-side-rail,
.versa-footer-buttons {
  display: grid;
  gap: 8px;
}

.versa-footer-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.versa-payment-block {
  border: 1px solid rgba(38, 26, 16, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.versa-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.versa-payment-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.versa-payment-quick .btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

.versa-entry-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.versa-entry-stats {
  border: 1px solid rgba(38, 26, 16, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  text-align: center;
}

.versa-entry-stat-value {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.versa-entry-stat-label {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
}

.versa-entry-stat-meta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.versa-entry-card {
  border: 1px solid rgba(38, 26, 16, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.versa-sku-pad-mirror-shell {
  position: fixed;
  right: max(20px, calc((100vw - 1580px) / 2 + 20px));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(248px, calc(100vw - 40px));
  border: 1px solid rgba(38, 26, 16, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(71, 39, 15, 0.18);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.versa-sku-pad-mirror-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #315e46;
  text-transform: uppercase;
}

.versa-sku-pad-mirror-shell input {
  min-height: 54px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  padding: 10px 12px;
}

.versa-sku-pad-mirror-shell input::placeholder {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.versa-entry-title {
  font-size: 15px;
  font-weight: 900;
  color: #315e46;
}

.versa-entry-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.versa-mode-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.versa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 32;
  background: rgba(34, 24, 18, 0.46);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.versa-modal-card {
  width: min(980px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(38, 26, 16, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 246, 0.98));
  box-shadow: 0 28px 64px rgba(17, 11, 7, 0.24);
}

.versa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #d47a2a, #a75b1f);
  color: #fff;
}

.versa-modal-head-green {
  background: linear-gradient(180deg, #73c596, #4f9269);
}

.versa-modal-head-dark {
  background: linear-gradient(180deg, #4f9269, #315e46);
}

.versa-modal-title {
  font-size: 22px;
  font-weight: 900;
}

.versa-modal-close {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.versa-apertura-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.versa-capture-body,
.versa-checkout-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.versa-capture-header {
  border: 1px solid rgba(38, 26, 16, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 900;
  color: #315e46;
}

.versa-capture-grid,
.versa-checkout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.versa-discount-modal .versa-checkout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.versa-capture-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.versa-checkout-total {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 900;
  text-align: right;
  line-height: 1;
  color: #101010;
}

.versa-apertura-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.versa-apertura-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.versa-checkbox {
  justify-content: flex-end;
}

.versa-checkbox-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.versa-checkbox-row input {
  width: auto;
  margin: 0;
}

.print-only {
  display: none;
}

.stat {
  border: 1px solid rgba(200, 140, 90, 0.2);
  background: rgba(253, 247, 241, 0.88);
  border-radius: 16px;
  padding: 12px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}

.line-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-line-card {
  padding: 12px;
  gap: 10px;
}

.quick-line-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.quick-line-index {
  width: 42px;
  min-height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(140, 63, 15, 0.1);
  color: var(--accent-strong);
  font-weight: 800;
}

.quick-line-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.quick-line-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(3, minmax(130px, 1fr)) minmax(140px, 0.95fr);
  gap: 10px;
  align-items: start;
}

.quick-line-actions {
  justify-content: flex-end;
}

.quick-sku-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.quick-total-box {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(38, 26, 16, 0.08);
  padding: 10px 12px;
  min-height: 100%;
}

.quick-total-value {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
}

.line-card {
  border: 1px solid rgba(140, 63, 15, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 246, 240, 0.94));
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.line-card-title {
  font-weight: 800;
}

.sku-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.sku-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(140, 63, 15, 0.1);
  color: var(--accent-strong);
}

.line-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-tile {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(38, 26, 16, 0.08);
  padding: 10px 12px;
}

.summary-tile-label {
  font-size: 11px;
  color: var(--muted);
}

.summary-tile-value {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
}

.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cash-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cash-shortcut {
  min-width: 90px;
}

.checkout-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sku-entry-card {
  border: 1px dashed rgba(140, 63, 15, 0.24);
  background: rgba(255, 251, 247, 0.96);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sku-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-ghost {
  min-height: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.fiscal-workflow-panel {
  border-top: 1px solid rgba(38, 26, 16, 0.08);
  padding-top: 12px;
}

.fiscal-doc-list,
.fiscal-preview-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fiscal-doc-card,
.fiscal-preview-card {
  border: 1px solid rgba(38, 26, 16, 0.08);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 12px;
}

.fiscal-preview-line {
  border-radius: 14px;
  background: rgba(255, 248, 241, 0.86);
  border: 1px solid rgba(140, 63, 15, 0.08);
  padding: 10px 12px;
}

.fiscal-preview-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cash-report-layout,
.cash-report-group-list,
.cash-flat-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cash-report-header-card {
  gap: 8px;
}

.cash-report-company {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.cash-report-company-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.cash-report-banner {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(140, 63, 15, 0.1);
  color: var(--accent-strong);
}

.cash-report-block {
  border: 1px solid rgba(38, 26, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.cash-report-block-title {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(38, 26, 16, 0.08);
  background: rgba(255, 248, 241, 0.94);
}

.cash-report-block-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cash-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(38, 26, 16, 0.06);
}

.cash-report-row:first-child {
  border-top: 0;
}

.cash-report-label {
  font-size: 13px;
}

.cash-report-value {
  text-align: right;
}

.cash-report-group-card {
  background: rgba(255, 253, 249, 0.96);
}

.cash-report-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cash-report-item-row,
.cash-flat-item-row,
.cash-denomination-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed rgba(38, 26, 16, 0.1);
}

.cash-report-item-row:first-of-type,
.cash-flat-item-row:first-of-type,
.cash-denomination-row:first-of-type {
  border-top: 0;
}

.cash-report-item-name,
.cash-flat-item-name {
  font-weight: 700;
}

.cash-report-item-meta,
.cash-flat-item-qty {
  color: var(--muted);
  text-align: right;
}

.cash-report-item-total,
.cash-flat-item-total {
  min-width: 110px;
  text-align: right;
  font-weight: 800;
}

.cash-report-item-footer,
.cash-flat-item-footer {
  border-top: 1px solid rgba(38, 26, 16, 0.08);
  padding-top: 10px;
  text-align: right;
  font-weight: 800;
}

.cash-denomination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cash-denomination-card {
  min-height: 100%;
}

.cash-denomination-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cash-session-row {
  text-align: left;
}

.cash-session-row-active {
  border-color: rgba(140, 63, 15, 0.2);
  box-shadow: 0 10px 24px rgba(140, 63, 15, 0.12);
}

.cash-diff-pos .cash-report-value,
.cash-diff-pos {
  color: var(--green);
}

.cash-diff-neg .cash-report-value,
.cash-diff-neg {
  color: var(--red);
}

.cash-diff-even .cash-report-value,
.cash-diff-even {
  color: var(--accent-strong);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-row {
  border: 1px solid rgba(38, 26, 16, 0.09);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  text-align: left;
}

.customer-row-active {
  border-color: rgba(73, 138, 96, 0.4);
  box-shadow: 0 10px 24px rgba(66, 118, 87, 0.16);
}

.customer-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.customer-row-title {
  font-weight: 800;
}

.customer-row-meta {
  font-size: 12px;
  color: var(--muted);
}

.customer-row-end {
  display: flex;
  gap: 6px;
  align-items: center;
}

.customer-detail .toolbar {
  justify-content: flex-end;
}

.sale-row {
  border: 1px solid rgba(38, 26, 16, 0.09);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.sale-row .notice {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.sale-row-cancelled {
  border-color: rgba(179, 54, 40, 0.24);
  background: rgba(255, 242, 239, 0.92);
}

.sale-row-cancelled .sale-row-title,
.sale-row-cancelled .sale-row-total {
  color: #8f2218;
}

.sale-row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sale-row-title {
  font-size: 15px;
  font-weight: 800;
}

.sale-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.sale-row-amount {
  text-align: right;
  min-width: 120px;
}

.sale-row-total {
  font-size: 18px;
  font-weight: 800;
}

.ticket-wrap {
  display: flex;
  justify-content: center;
}

.ticket80-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.versa-cancel-modal {
  width: min(860px, calc(100vw - 36px));
}

.ticket80 {
  width: min(100%, 372px);
  background: linear-gradient(180deg, #fffefd 0%, #fffaf5 100%);
  border: 1px solid rgba(36, 28, 20, 0.2);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.14);
  padding: 17px 15px;
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ticket80-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 7px;
  border: 1px solid rgba(36, 28, 20, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.ticket80-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ticket80-logo {
  display: block;
  max-width: 186px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ticket80-center {
  text-align: center;
}

.ticket80-brand {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.ticket80-sub {
  font-size: 12px;
  line-height: 1.32;
  color: #000;
  font-weight: 800;
}

.ticket80-contact {
  font-size: 11px;
  line-height: 1.3;
}

.ticket80-doclabel {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6b3908;
}

.ticket80-rule {
  border-top: 1px dashed rgba(30, 22, 14, 0.38);
  margin: 2px 0;
}

.ticket80-section {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60451f;
  padding: 3px 8px 2px;
  border: 1px solid rgba(111, 68, 18, 0.2);
  border-radius: 999px;
  background: rgba(255, 245, 231, 0.78);
  width: fit-content;
}

.ticket80-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.ticket80-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ticket80-row strong {
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.ticket80-total {
  font-size: 15px;
  font-weight: 900;
  border: 1px solid rgba(111, 68, 18, 0.26);
  border-radius: 8px;
  background: rgba(255, 245, 231, 0.86);
  padding: 4px 6px;
}

.ticket80-total strong {
  font-size: 17px;
  font-weight: 900;
}

.ticket80-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ticket80-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 6px;
  border-bottom: 1px dotted rgba(38, 30, 20, 0.35);
}

.ticket80-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ticket80-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
}

.ticket80-item-name,
.ticket80-item-total {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.ticket80-item-total {
  text-align: right;
}

.ticket80-item-sub,
.ticket80-note {
  font-size: 12px;
  line-height: 1.36;
  color: #000;
  font-weight: 800;
}

.ticket80-item-discount {
  font-weight: 900;
  color: #7a4318;
}

.ticket80-policy {
  border: 1px solid rgba(101, 54, 12, 0.48);
  background: linear-gradient(180deg, #fff6e9 0%, #fff1df 100%);
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.38;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4f2400;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(38, 26, 16, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 248, 0.92);
  border-top: 1px solid rgba(38, 26, 16, 0.1);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottom-nav-inner.manager {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.nav-item-active {
  color: var(--accent-strong);
  background: rgba(255, 243, 233, 0.98);
  border-color: rgba(140, 63, 15, 0.14);
  box-shadow: 0 10px 24px rgba(140, 63, 15, 0.12);
}

.nav-icon {
  font-size: 12px;
  font-weight: 900;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-item {
  border-radius: 16px;
  border: 1px solid rgba(38, 26, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.help-item-title {
  font-size: 14px;
  font-weight: 800;
}

.help-item-body {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.price-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-editor-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 190px 150px;
  gap: 12px;
  align-items: end;
  border-radius: 16px;
  border: 1px solid rgba(38, 26, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.price-editor-code {
  font-size: 18px;
  font-weight: 900;
  color: #315e46;
}

.price-editor-main,
.price-editor-input,
.price-editor-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-editor-name {
  font-size: 15px;
  font-weight: 800;
}

.price-editor-meta {
  font-size: 12px;
  color: var(--muted);
}

.delta-pos { color: var(--green); }
.delta-neg { color: var(--red); }

@media (max-width: 880px) {
  .grid4,
  .stats-grid,
  .checkout-stats-grid,
  .cash-denomination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .versa-sale-workspace,
  .versa-sale-footer,
  .versa-apertura-grid,
  .versa-payment-grid,
  .versa-capture-grid,
  .versa-checkout-grid {
    grid-template-columns: 1fr;
  }

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

  .versa-side-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .grid2,
  .grid3,
  .grid4,
  .price-editor-row,
  .line-summary,
  .stats-grid,
  .checkout-stats-grid,
  .quick-line-grid,
  .cash-denomination-grid {
    grid-template-columns: 1fr;
  }

  .versa-command-grid,
  .versa-mode-toolbar,
  .versa-side-rail,
  .versa-footer-buttons {
    grid-template-columns: 1fr;
  }

  .versa-customer-strip {
    grid-template-columns: 1fr;
  }

  .versa-sale-shell {
    padding: 12px;
  }

  .versa-total-main {
    font-size: 48px;
  }

  .versa-sale-table-wrap {
    overflow-x: auto;
  }

  .versa-sale-table {
    min-width: 860px;
  }

  .versa-checkout-total {
    font-size: 42px;
  }

  .quick-line-head {
    grid-template-columns: 1fr;
  }

  .quick-line-index {
    width: 100%;
    min-height: 38px;
  }

  .quick-line-actions {
    justify-content: flex-start;
  }

  .sale-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sale-row-amount {
    min-width: 0;
    text-align: left;
  }

  .sku-entry-row {
    grid-template-columns: 1fr;
  }

  .topbar-meta {
    align-items: flex-start;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .versa-sku-pad-mirror-shell {
    display: none;
  }
}

/* Versatil desktop skin pass */
@media (min-width: 1024px) {
  :root {
    --bg0: #dfeee0;
    --bg1: #dfeee0;
    --bg2: #eaf5ea;
    --card: #eef4ee;
    --surface: #f4f8f3;
    --text: #24362a;
    --muted: #5c6f61;
    --line: #9cb6a0;
    --accent: #cf7628;
    --accent-strong: #9e561e;
    --accent-soft: #f5dec9;
    --green: #5fa477;
    --red: #a84439;
    --amber: #9d7635;
    --shadow: none;
    --shadow-soft: none;
    --radius: 6px;
    --radius2: 4px;
    --pad: 10px;
    --font: "Segoe UI", Tahoma, Verdana, "Trebuchet MS", sans-serif;
  }

  html,
  body {
    background: #dfeee0;
  }

  body {
    background: #dfeee0;
  }

  input,
  select,
  textarea {
    border-radius: 3px;
    border: 1px solid #98ae9d;
    background: #ffffff;
    padding: 8px 10px;
  }

  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  button:focus-visible {
    border-color: #5fa477;
    box-shadow: 0 0 0 2px rgba(95, 164, 119, 0.24);
  }

  .topbar {
    background: #f1f6f1;
    border-bottom: 1px solid #a9bca9;
    box-shadow: none;
    backdrop-filter: none;
  }

  .topbar::after {
    content: "";
    display: block;
    height: 8px;
    background: linear-gradient(
      90deg,
      #8bc8a1 0%,
      #6eb889 42%,
      #de8f4e 72%,
      #c96f27 100%
    );
  }

  .topbar-inner {
    max-width: 1700px;
    padding: 6px 12px 8px;
    gap: 10px;
  }

  .brand-logo-fallback,
  .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    box-shadow: none;
  }

  .brand-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.01em;
  }

  .brand-sub {
    font-size: 14px;
    font-weight: 700;
  }

  .role-chip,
  .soft-chip {
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .role-chip {
    background: #f4d9c3;
    color: #7b4b24;
  }

  .soft-chip {
    background: #dcebdd;
    color: #366147;
  }

  .content {
    max-width: 1700px;
    padding: 10px 10px 104px;
  }

  .page {
    gap: 10px;
  }

  .card {
    border: 1px solid #a8bba9;
    border-radius: 6px;
    box-shadow: none;
    background: #eef4ee;
    padding: 10px;
  }

  .hero-card {
    background: #e8f0e8;
  }

  .section-head {
    margin-bottom: 6px;
  }

  .btn {
    border-radius: 3px;
    border-color: #9fb1a1;
    background: #f3f7f2;
    min-height: 40px;
    padding: 8px 11px;
    font-weight: 700;
    color: #24362a;
  }

  .btn-primary {
    background: #5fa477;
    border-color: #44785b;
    color: #f7fff8;
    box-shadow: none;
  }

  .btn-secondary {
    background: #f3f7f2;
    border-color: #9fb1a1;
  }

  .btn-danger {
    background: #fceae8;
    border-color: #d5a2a0;
  }

  .notice {
    border-radius: 3px;
    padding: 8px 10px;
  }

  .notice-ok {
    background: #e8f5ea;
    border-color: #97caa4;
    color: #24653a;
  }

  .notice-warn {
    background: #fff8e0;
    border-color: #dbc484;
    color: #775704;
  }

  .notice-info {
    background: #eaf3ff;
    border-color: #9ec0e1;
    color: #254f7a;
  }

  .notice-error {
    background: #fdece9;
    border-color: #d8a4a0;
    color: #8c2a21;
  }

  .versa-sale-shell {
    border-radius: 6px;
    gap: 8px;
    padding: 8px;
    background: #e6eee6;
  }

  .versa-command-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
  }

  .versa-command-btn {
    min-height: 64px;
    border-radius: 3px;
    border: 1px solid #98ab99;
    background: #f3f7f2;
    box-shadow: none;
    gap: 2px;
    padding: 7px 8px;
  }

  .versa-command-btn-primary {
    border-color: #cf8f64;
    background: #e9c5a9;
    color: #4c2b13;
  }

  .versa-command-shortcut {
    font-size: 12px;
  }

  .versa-command-label {
    font-size: 14px;
  }

  .versa-customer-strip {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }

  .versa-customer-code input,
  .versa-customer-main input {
    height: 46px;
    border-radius: 3px;
    font-size: 26px;
    font-weight: 800;
    padding: 6px 10px;
    background: #ffffff;
  }

  .versa-customer-code input {
    font-size: 30px;
  }

  .versa-customer-main input {
    font-size: 22px;
  }

  .versa-strip-meta span {
    border-radius: 14px;
    background: #dfeadf;
    color: #4f6654;
    padding: 4px 9px;
  }

  .versa-sale-workspace {
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 10px;
  }

  .versa-sale-table-wrap {
    border-radius: 4px;
    border-color: #a3b5a4;
    background: #ffffff;
  }

  .versa-sale-table th {
    background: #4d7f61;
    color: #f8fbff;
    padding: 9px 10px;
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .versa-sale-table td {
    background: #ffffff;
    border-top-color: #d4d8df;
    padding: 8px 10px;
  }

  .versa-line-index {
    border-radius: 4px;
    background: #dceadd;
    color: #315e46;
  }

  .versa-inline-ok,
  .versa-row-action {
    border-radius: 3px;
    border-color: #9fb1a1;
    background: #f3f7f2;
  }

  .versa-row-action-danger {
    background: #fcebe8;
    border-color: #d8a7a1;
  }

  .versa-line-name {
    color: #315e46;
    font-size: 15px;
  }

  .versa-scale-pill {
    border-radius: 10px;
    background: #dceadd;
    color: #315e46;
  }

  .versa-total-panel {
    border-radius: 6px;
    border-color: #a7b9a8;
    background: #f2f6f2;
    padding: 10px;
    gap: 10px;
  }

  .versa-total-main {
    font-size: clamp(50px, 4.2vw, 66px);
  }

  .versa-total-mini {
    border-radius: 8px;
    padding: 8px 10px;
  }

  .versa-total-mini-value {
    margin-top: 4px;
    font-size: 20px;
  }

  .versa-sale-footer {
    grid-template-columns: 130px minmax(0, 1fr) 318px;
    gap: 10px;
  }

  .versa-entry-stats,
  .versa-entry-card,
  .versa-payment-block {
    border-radius: 6px;
    border-color: #a7b9a8;
    background: #f2f6f2;
    padding: 10px;
  }

  .versa-sku-pad-mirror-shell {
    width: min(290px, calc(100vw - 40px));
    border-radius: 8px;
    border-color: #98ab99;
    background: rgba(246, 250, 245, 0.86);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 30px rgba(23, 29, 40, 0.22);
    padding: 8px 10px 10px;
  }

  .versa-sku-pad-mirror-label {
    border-radius: 4px;
    background: #e8f0e3;
    padding: 4px 6px;
    font-size: 12px;
    color: #335d45;
  }

  .versa-sku-pad-mirror-shell input {
    height: 46px;
    min-height: 46px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 44px;
    padding: 0 12px;
  }

  .versa-sku-pad-mirror-shell input::placeholder {
    line-height: 44px;
  }

  .versa-modal-card {
    border-radius: 6px;
    border-color: #9cad9e;
    background: #eef4ee;
    box-shadow: 0 18px 40px rgba(9, 13, 19, 0.28);
  }

  .versa-modal-head {
    padding: 10px 12px;
  }

  .versa-modal-title {
    font-size: 30px;
  }

  .versa-modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 4px;
  }

  .bottom-nav {
    background: rgba(241, 246, 241, 0.94);
    border-top: 1px solid #a9bca9;
    padding-top: 8px;
  }

  .nav-item {
    min-height: 56px;
    border-radius: 6px;
    border-color: #aebdaf;
    background: #f3f7f2;
    color: #5a6d5f;
  }

  .nav-item-active {
    background: #ebcdb3;
    border-color: #cf8f64;
    color: #4c2b13;
    box-shadow: none;
  }
}

/* Professional desktop polish pass */
@media (min-width: 1024px) {
  :root {
    --bg0: #e7ece8;
    --bg1: #e7ece8;
    --bg2: #f1f5f1;
    --card: #f7faf7;
    --surface: #f4f8f4;
    --text: #223026;
    --muted: #5b675f;
    --line: #b5c1b6;
    --accent: #c9742e;
    --accent-strong: #6f9b7d;
    --accent-soft: #f2decc;
    --green: #6f9b7d;
    --red: #a4453f;
    --amber: #8e7744;
    --shadow: none;
    --shadow-soft: none;
    --radius: 4px;
    --radius2: 3px;
    --pad: 10px;
    --font: "Segoe UI Variable", "Segoe UI", Tahoma, Arial, sans-serif;
  }

  html,
  body {
    background: #e7ece8;
  }

  body {
    background: #e7ece8;
  }

  .topbar {
    background: #f3f6f3;
    border-bottom: 1px solid #b3bdb4;
    box-shadow: none;
    backdrop-filter: none;
  }

  .topbar::after {
    height: 4px;
    background: linear-gradient(90deg, #89c59d 0%, #6da882 44%, #d28a50 74%, #c06a2a 100%);
  }

  .topbar-inner {
    max-width: 1700px;
    padding: 6px 12px 8px;
    gap: 10px;
  }

  .brand-logo-fallback,
  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    box-shadow: none;
  }

  .brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .brand-sub {
    font-size: 12px;
    font-weight: 600;
  }

  .role-chip,
  .soft-chip {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
  }

  .role-chip {
    background: #f2ddcc;
    color: #704424;
  }

  .soft-chip {
    background: #e0ece1;
    color: #355740;
  }

  .content {
    max-width: 1700px;
    padding: 8px 10px 96px;
  }

  .page {
    gap: 10px;
  }

  .card,
  .hero-card {
    border: 1px solid #b5c1b6;
    border-radius: 4px;
    box-shadow: none;
    background: #f7faf7;
    padding: 10px;
  }

  .section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .section-subtitle {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    border-radius: 2px;
    border: 1px solid #b6c1b7;
    background: #fff;
    padding: 7px 10px;
  }

  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  button:focus-visible {
    border-color: #6f9b7d;
    box-shadow: 0 0 0 2px rgba(111, 155, 125, 0.2);
  }

  .btn {
    min-height: 34px;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    border-color: #b5c1b6;
    background: #f3f6f2;
  }

  .btn:hover {
    transform: none;
  }

  .btn-primary {
    background: #6f9b7d;
    border-color: #4f745d;
    color: #f8fcf8;
  }

  .btn-secondary {
    background: #f3f6f2;
    border-color: #b5c1b6;
  }

  .btn-danger {
    background: #fcebe9;
    border-color: #d3a8a4;
  }

  .notice {
    border-radius: 2px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .versa-sale-shell {
    border-radius: 4px;
    border: 1px solid #b7c2b8;
    gap: 8px;
    padding: 8px;
    background: #edf2ed;
  }

  .versa-command-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
  }

  .versa-command-btn {
    min-height: 56px;
    border: 1px solid #b5c0b6;
    border-radius: 2px;
    background: #f7f9f7;
    box-shadow: none;
    gap: 2px;
    padding: 6px 8px;
  }

  .versa-command-btn-primary {
    border-color: #ca8a5b;
    background: #f0d9c6;
    color: #503120;
  }

  .versa-command-shortcut {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .versa-command-label {
    font-size: 13px;
    font-weight: 600;
  }

  .versa-customer-strip {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
  }

  .versa-customer-code input,
  .versa-customer-main input {
    height: 40px;
    border-radius: 2px;
    padding: 6px 10px;
  }

  .versa-customer-code input {
    font-size: 22px;
    font-weight: 700;
  }

  .versa-customer-main input {
    font-size: 18px;
    font-weight: 700;
  }

  .versa-strip-meta {
    gap: 6px;
    font-size: 11px;
  }

  .versa-strip-meta span {
    border-radius: 999px;
    border: 1px solid #c4cec4;
    background: #e8eee8;
    color: #56685a;
    padding: 3px 8px;
  }

  .versa-sale-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 10px;
  }

  .versa-sale-table-wrap {
    border-radius: 2px;
    border-color: #b5c0b6;
    background: #fff;
  }

  .versa-sale-table th {
    background: #bd6828;
    color: #f6f9fb;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .versa-sale-table td {
    background: #fff;
    border-top-color: #d7ded8;
    padding: 7px 8px;
    font-size: 13px;
  }

  .versa-cell-total {
    font-size: 16px;
    font-weight: 800;
  }

  .versa-line-index {
    width: 26px;
    height: 26px;
    border-radius: 2px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  .versa-inline-ok,
  .versa-row-action {
    border-radius: 2px;
    border-color: #b6c1b7;
    background: #f4f7f3;
  }

  .versa-row-action-danger {
    background: #fcebe9;
    border-color: #d2a5a0;
  }

  .versa-line-name {
    font-size: 14px;
    font-weight: 700;
    color: #203226;
  }

  .versa-line-meta {
    margin-top: 3px;
    font-size: 11px;
  }

  .versa-scale-pill {
    min-width: 58px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #e7eee8;
    color: #355340;
    font-size: 10px;
    font-weight: 700;
  }

  .versa-total-panel {
    border-radius: 4px;
    border-color: #b5c0b6;
    background: #f7faf7;
    padding: 10px;
    gap: 10px;
  }

  .versa-total-tc,
  .versa-total-usd {
    font-size: 14px;
    font-weight: 700;
  }

  .versa-total-main {
    font-size: clamp(54px, 4.5vw, 70px);
    font-weight: 800;
  }

  .versa-total-mini {
    border-radius: 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
  }

  .versa-total-mini-green {
    background: #dceedd;
    border-color: #a0c5a5;
    color: #1a4a29;
  }

  .versa-total-mini-blue {
    background: #f4ddc9;
    border-color: #d4ab84;
    color: #5b371b;
  }

  .versa-total-mini-label {
    font-size: 12px;
    font-weight: 700;
  }

  .versa-total-mini-value {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 800;
  }

  .versa-sale-footer {
    grid-template-columns: 120px minmax(0, 1fr) 300px;
    gap: 10px;
  }

  .versa-entry-stats,
  .versa-entry-card,
  .versa-payment-block {
    border-radius: 4px;
    border-color: #b5c0b6;
    background: #f7faf7;
    padding: 10px;
  }

  .versa-entry-stat-value {
    font-size: 32px;
    font-weight: 800;
  }

  .versa-entry-stat-label {
    font-size: 14px;
    font-weight: 700;
  }

  .versa-entry-stat-meta {
    font-size: 12px;
  }

  .versa-sku-pad-mirror-shell {
    width: min(250px, calc(100vw - 40px));
    border-radius: 4px;
    border-color: #b5c0b6;
    background: #f9fbf9;
    box-shadow: 0 12px 24px rgba(20, 28, 22, 0.16);
    padding: 8px 10px 10px;
  }

  .versa-sku-pad-mirror-label {
    font-size: 10px;
    border-radius: 2px;
    border: 1px solid #c5d0c6;
    background: #eef3ee;
    color: #405549;
    padding: 3px 6px;
  }

  .versa-sku-pad-mirror-shell input {
    height: 42px;
    min-height: 42px;
    border-radius: 4px;
    font-size: 24px;
    line-height: 38px;
    font-weight: 700;
    padding: 0 10px;
  }

  .versa-sku-pad-mirror-shell input::placeholder {
    font-size: 0.56em;
    line-height: 38px;
    font-weight: 600;
  }

  .versa-modal-backdrop {
    background: rgba(18, 23, 19, 0.42);
  }

  .versa-modal-card {
    border-radius: 4px;
    border-color: #b5c0b6;
    background: #f6f9f6;
    box-shadow: 0 20px 40px rgba(14, 20, 16, 0.24);
  }

  .versa-modal-head {
    padding: 9px 12px;
    background: #bd6828;
    color: #f4f7fa;
  }

  .versa-modal-head-green {
    background: #2d6c4a;
  }

  .versa-modal-head-dark {
    background: #bd6828;
  }

  .versa-modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .versa-modal-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 2px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.2);
  }

  .versa-capture-body,
  .versa-checkout-body,
  .versa-apertura-body {
    padding: 12px;
    gap: 10px;
  }

  .versa-capture-header {
    border-radius: 2px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .versa-checkout-total {
    font-size: clamp(44px, 3.6vw, 56px);
    font-weight: 800;
  }

  .bottom-nav {
    background: rgba(243, 246, 243, 0.96);
    border-top: 1px solid #b4beb5;
  }

  .nav-item {
    min-height: 52px;
    border-radius: 4px;
    border-color: #bcc7bd;
    background: #f8faf8;
    color: #56645b;
  }

  .nav-item-active {
    background: #f2dcc8;
    border-color: #cd8e62;
    color: #4c2f1d;
    box-shadow: none;
  }

  .sale-row,
  .fiscal-doc-card,
  .fiscal-preview-card,
  .quick-total-box,
  .summary-tile,
  .help-item {
    border-radius: 4px;
  }
}

/* Enterprise desktop refinement */
@media (min-width: 1024px) {
  :root {
    --bg0: #e5ece6;
    --bg1: #e5ece6;
    --bg2: #f2f6f2;
    --card: #f7faf7;
    --surface: #f5f8f5;
    --text: #202c24;
    --muted: #5b665f;
    --line: #b8c2b9;
    --accent: #ca742e;
    --accent-strong: #7f481f;
    --accent-soft: #f2decb;
    --green: #6b9878;
    --red: #a2423d;
    --amber: #867346;
    --shadow: none;
    --shadow-soft: none;
    --radius: 3px;
    --radius2: 2px;
    --pad: 9px;
    --font: "Segoe UI", Tahoma, Verdana, "Trebuchet MS", sans-serif;
  }

  body {
    background:
      linear-gradient(180deg, #e8eee9 0, #e5ece6 48%, #edf3ee 100%);
  }

  .topbar {
    background: #f4f7f4;
    border-bottom: 1px solid #b6c0b7;
  }

  .topbar::after {
    height: 3px;
    background: linear-gradient(90deg, #8bc7a0 0%, #73ae87 44%, #d38b4f 76%, #c26c29 100%);
  }

  .topbar-inner {
    padding: 6px 12px;
  }

  .brand-logo-fallback,
  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .brand-sub {
    font-size: 11px;
    font-weight: 600;
  }

  .app-version {
    font-size: 10px;
    color: #68736b;
  }

  .role-chip,
  .soft-chip {
    font-size: 11px;
    padding: 4px 9px;
    font-weight: 700;
  }

  .content {
    padding: 8px 10px 96px;
  }

  .section-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .field-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #677269;
  }

  input,
  select,
  textarea {
    border-radius: 2px;
    border-color: #b9c3ba;
    padding: 7px 9px;
    font-size: 14px;
  }

  .btn {
    min-height: 32px;
    border-radius: 2px;
    border-color: #b7c2b8;
    background: #f5f8f4;
    color: #263329;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 9px;
  }

  .btn-primary {
    background: #709d7d;
    border-color: #51735d;
    color: #f8fcf8;
  }

  .btn-secondary {
    background: #f4f7f3;
    border-color: #b7c2b8;
  }

  .btn-danger {
    background: #fcebe9;
    border-color: #d5aba6;
  }

  .notice {
    border-radius: 2px;
    font-size: 12px;
  }

  .versa-sale-shell {
    border-radius: 3px;
    border: 1px solid #b7c1b8;
    background: #edf2ee;
    gap: 8px;
    padding: 8px;
  }

  .versa-command-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
  }

  .versa-command-btn {
    min-height: 50px;
    border-radius: 2px;
    border: 1px solid #b8c1b9;
    background: #f8faf8;
    padding: 5px 7px;
    gap: 1px;
  }

  .versa-command-btn-primary {
    background: #f0dcc9;
    border-color: #d2a37f;
    color: #58361e;
  }

  .versa-command-shortcut {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .versa-command-label {
    font-size: 12px;
    font-weight: 700;
  }

  .versa-customer-strip {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .versa-customer-code input,
  .versa-customer-main input {
    height: 38px;
    border-radius: 2px;
    padding: 5px 9px;
  }

  .versa-customer-code input {
    font-size: 20px;
    font-weight: 700;
  }

  .versa-customer-main input {
    font-size: 16px;
    font-weight: 700;
  }

  .versa-strip-meta {
    gap: 5px;
    font-size: 11px;
  }

  .versa-strip-meta span {
    border-radius: 999px;
    padding: 2px 7px;
    background: #e8eee8;
    border: 1px solid #c8d1c9;
    color: #556258;
  }

  .versa-sale-workspace {
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 9px;
  }

  .versa-sale-table-wrap {
    border-radius: 2px;
    border-color: #b7c1b8;
  }

  .versa-sale-table th {
    background: #bd6828;
    color: #f4f8fa;
    font-size: 11px;
    font-weight: 800;
    padding: 8px;
    letter-spacing: 0.02em;
  }

  .versa-sale-table td {
    padding: 7px 8px;
    border-top-color: #d8dfd9;
    font-size: 13px;
  }

  .versa-cell-total {
    font-size: 15px;
    font-weight: 800;
  }

  .versa-line-index {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    margin-bottom: 5px;
  }

  .versa-line-name {
    font-size: 13px;
    font-weight: 700;
    color: #223328;
  }

  .versa-line-meta,
  .versa-cell-hint {
    font-size: 11px;
  }

  .versa-scale-pill {
    min-width: 58px;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 8px;
    background: #e7eee8;
    color: #31523d;
    font-weight: 700;
  }

  .versa-inline-ok,
  .versa-row-action {
    min-height: 32px;
    min-width: 32px;
    border-radius: 2px;
    border-color: #b7c1b8;
    background: #f5f8f4;
  }

  .versa-total-panel {
    border-radius: 3px;
    border-color: #b7c1b8;
    background: #f8faf8;
    padding: 9px;
    gap: 9px;
  }

  .versa-total-tc,
  .versa-total-usd {
    font-size: 13px;
    font-weight: 700;
  }

  .versa-total-main {
    font-size: clamp(46px, 3.6vw, 60px);
    font-weight: 800;
    line-height: 0.95;
  }

  .versa-total-mini {
    border-radius: 3px;
    padding: 8px 10px;
    border: 1px solid transparent;
  }

  .versa-total-mini-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .versa-total-mini-value {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 800;
  }

  .versa-total-mini-green {
    background: #deefdf;
    border-color: #aac8ae;
    color: #184929;
  }

  .versa-total-mini-blue {
    background: #f3decc;
    border-color: #d9b089;
    color: #5c3a1f;
  }

  .versa-sale-footer {
    grid-template-columns: 116px minmax(0, 1fr) 292px;
    gap: 9px;
  }

  .versa-entry-stats,
  .versa-entry-card,
  .versa-payment-block {
    border-radius: 3px;
    border-color: #b7c1b8;
    background: #f8faf8;
    padding: 9px;
  }

  .versa-entry-stat-value {
    font-size: 30px;
    font-weight: 800;
  }

  .versa-entry-stat-label {
    font-size: 13px;
    font-weight: 700;
  }

  .versa-entry-stat-meta {
    font-size: 11px;
  }

  .versa-entry-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .versa-entry-subtitle {
    font-size: 11px;
  }

  .versa-sku-pad-mirror-shell {
    width: min(258px, calc(100vw - 40px));
    border-radius: 3px;
    border-color: #b7c1b8;
    background: #fbfcfb;
    box-shadow: 0 10px 22px rgba(25, 35, 28, 0.18);
    padding: 7px 9px 9px;
  }

  .versa-sku-pad-mirror-label {
    border-radius: 2px;
    border: 1px solid #c7d1c8;
    background: #eef3ee;
    color: #425449;
    font-size: 10px;
    padding: 3px 6px;
    text-align: center;
    letter-spacing: 0.02em;
  }

  .versa-sku-pad-mirror-shell input {
    height: 40px;
    min-height: 40px;
    border-radius: 3px;
    font-size: 22px;
    font-weight: 700;
    line-height: 36px;
    padding: 0 10px;
  }

  .versa-modal-card {
    border-radius: 3px;
    border-color: #b7c1b8;
    background: #f6faf6;
  }

  .versa-modal-head {
    padding: 8px 10px;
    background: #bd6828;
  }

  .versa-modal-head-green {
    background: #2c6a4a;
  }

  .versa-modal-head-dark {
    background: #bd6828;
  }

  .versa-modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .versa-modal-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 2px;
    font-size: 21px;
  }

  .versa-capture-body,
  .versa-checkout-body,
  .versa-apertura-body {
    padding: 11px;
    gap: 9px;
  }

  .versa-capture-header {
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 9px;
  }

  .versa-checkout-total {
    font-size: clamp(40px, 3.2vw, 52px);
    font-weight: 800;
  }

  .bottom-nav {
    background: rgba(244, 247, 244, 0.97);
    border-top: 1px solid #b7c1b8;
    padding-top: 7px;
  }

  .nav-item {
    min-height: 50px;
    border-radius: 3px;
    border-color: #c0c9c1;
    background: #f9fbf9;
    color: #55625a;
  }

  .nav-item-active {
    background: #f2decb;
    border-color: #d0a37f;
    color: #55351e;
  }
}

/* Optional preview theme v2: modern corporate + bold orange accents */
@media (min-width: 1024px) {
  body[data-ui-theme="corporate_flair"] {
    --corp-orange: #e36a00;
    --corp-orange-deep: #c95200;
    --corp-orange-soft: #fbe4d1;
    --corp-ink: #1f2622;
    --corp-muted: #5f6863;
    --corp-line: #c9d1cb;
    background: #edf2ee;
    color: var(--corp-ink);
  }

  body[data-ui-theme="corporate_flair"] .topbar {
    background: #f7faf7;
    border-bottom-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .topbar::after {
    background: linear-gradient(90deg, #8fb99c 0%, #78aa89 38%, #e36a00 76%, #c95200 100%);
    height: 3px;
  }

  body[data-ui-theme="corporate_flair"] .brand-title {
    letter-spacing: 0.02em;
    color: #1f2923;
  }

  body[data-ui-theme="corporate_flair"] .brand-sub,
  body[data-ui-theme="corporate_flair"] .app-version {
    color: var(--corp-muted);
  }

  body[data-ui-theme="corporate_flair"] .card,
  body[data-ui-theme="corporate_flair"] .hero-card {
    background: #f9fcf9;
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .btn-primary {
    background: #6f9e7d;
    border-color: #4f735d;
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .btn-secondary {
    background: #f7faf7;
    border-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .versa-sale-shell {
    background: #f2f7f3;
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-command-btn {
    background: #fbfdfb;
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-command-btn-primary {
    background: var(--corp-orange);
    border-color: #ad4300;
    color: #fff7ef;
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-customer-code input,
  body[data-ui-theme="corporate_flair"] .versa-customer-main input {
    background: #ffffff;
    border-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .versa-strip-meta span {
    background: #f1f5f2;
    border-color: #d1d8d2;
    color: #5c6862;
  }

  body[data-ui-theme="corporate_flair"] .versa-sale-table-wrap {
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-sale-table th {
    background: var(--corp-orange);
    color: #fff8f2;
    box-shadow: none;
    letter-spacing: 0.03em;
    font-weight: 800;
  }

  body[data-ui-theme="corporate_flair"] .versa-sale-table td {
    border-top-color: #e0e6e1;
  }

  body[data-ui-theme="corporate_flair"] .versa-line-index {
    background: var(--corp-orange-soft);
    color: #8d3b00;
  }

  body[data-ui-theme="corporate_flair"] .versa-total-panel {
    background: #f9fcf9;
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-total-tc,
  body[data-ui-theme="corporate_flair"] .versa-total-usd {
    color: #834105;
  }

  body[data-ui-theme="corporate_flair"] .versa-total-main {
    color: #1d2a22;
    text-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-total-mini-green {
    background: #e1efe4;
    border-color: #a9c7b2;
    color: #1d4b2e;
  }

  body[data-ui-theme="corporate_flair"] .versa-total-mini-blue {
    background: #fee5d1;
    border-color: #e2a575;
    color: #7b3801;
  }

  body[data-ui-theme="corporate_flair"] .versa-last-change-card {
    background: #f3f8f4;
    border-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .versa-last-change-head {
    color: #7b3801;
  }

  body[data-ui-theme="corporate_flair"] .versa-last-change-row {
    color: #2a332d;
  }

  body[data-ui-theme="corporate_flair"] .versa-last-change-row strong {
    color: #16241c;
  }

  body[data-ui-theme="corporate_flair"] .versa-last-change-row-accent {
    border-top-color: #b8c8bd;
  }

  body[data-ui-theme="corporate_flair"] .versa-entry-stats,
  body[data-ui-theme="corporate_flair"] .versa-entry-card,
  body[data-ui-theme="corporate_flair"] .versa-payment-block {
    background: #f9fcf9;
    border-color: var(--corp-line);
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] .versa-sku-pad-mirror-shell {
    background: #fcfefd;
    border-color: var(--corp-line);
    box-shadow: 0 8px 18px rgba(26, 39, 30, 0.16);
  }

  body[data-ui-theme="corporate_flair"] .versa-sku-pad-mirror-label {
    background: #f4f8f5;
    border-color: #d0d8d2;
    color: #5f6b64;
  }

  body[data-ui-theme="corporate_flair"] .versa-modal-card {
    background: #f9fcf9;
    border-color: var(--corp-line);
    box-shadow: 0 14px 28px rgba(24, 35, 27, 0.2);
  }

  body[data-ui-theme="corporate_flair"] .versa-modal-head,
  body[data-ui-theme="corporate_flair"] .versa-modal-head-dark {
    background: var(--corp-orange);
  }

  body[data-ui-theme="corporate_flair"] .versa-modal-head-green {
    background: #447d5d;
  }

  body[data-ui-theme="corporate_flair"] .bottom-nav {
    background: rgba(248, 251, 248, 0.98);
    border-top-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .nav-item {
    background: #fbfdfb;
    border-color: var(--corp-line);
  }

  body[data-ui-theme="corporate_flair"] .nav-item-active {
    background: #fde4cf;
    border-color: #e2a575;
    color: #783400;
    box-shadow: none;
  }

  body[data-ui-theme="corporate_flair"] input:focus-visible,
  body[data-ui-theme="corporate_flair"] select:focus-visible,
  body[data-ui-theme="corporate_flair"] textarea:focus-visible,
  body[data-ui-theme="corporate_flair"] button:focus-visible {
    border-color: #d36200;
    box-shadow: 0 0 0 2px rgba(227, 106, 0, 0.2);
  }
}

/* SKU pad text vertical alignment tweak */
@media (min-width: 1024px) {
  .versa-sku-pad-mirror-shell {
    right: max(28px, calc((100vw - 1700px) / 2 + 28px));
    bottom: calc(54px + env(safe-area-inset-bottom));
    width: min(292px, calc(100vw - 32px));
  }

  .versa-sku-pad-mirror-shell input[data-role="sale-code-pad-input"],
  .versa-entry-card input[data-role="sale-code-pad-input"] {
    line-height: 1.1;
    padding-top: 0;
    padding-bottom: 3px;
  }

  .versa-sku-pad-mirror-shell input[data-role="sale-code-pad-input"]::placeholder,
  .versa-entry-card input[data-role="sale-code-pad-input"]::placeholder {
    transform: translateY(-1px);
  }
}

/* Bottom nav compact + SKU pad translucency */
.bottom-nav {
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  gap: 6px;
}

.nav-item {
  min-height: 40px;
  gap: 2px;
  font-size: 10px;
}

.nav-item > div:last-child {
  line-height: 1.05;
  white-space: nowrap;
}

.nav-icon {
  font-size: 11px;
}

.versa-sku-pad-mirror-shell {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .versa-sku-pad-mirror-shell {
    background: rgba(246, 250, 245, 0.4);
  }

  body[data-ui-theme="corporate_flair"] .versa-sku-pad-mirror-shell {
    background: rgba(252, 254, 253, 0.38);
  }
}

body[data-ui-theme="corporate_flair"] .bottom-nav {
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
}

body[data-ui-theme="corporate_flair"] .nav-item {
  min-height: 40px;
  gap: 2px;
  font-size: 10px;
}

@page {
  size: 80mm auto;
  margin: 4mm;
}

@media print {
  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .bottom-nav,
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .ticket-wrap,
  .ticket80-shell {
    justify-content: flex-start;
  }

  .ticket80 {
    width: 70mm;
    max-width: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 1.5mm;
    box-sizing: border-box;
    color: #000;
    font-family: "Consolas", "Menlo", "Courier New", monospace;
    font-weight: 800;
    line-height: 1.32;
  }

  .ticket80-logo {
    max-width: 170px;
    max-height: 48px;
  }

  .ticket80-head {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
  }

  .ticket80,
  .ticket80 * {
    color: #000 !important;
  }

  .ticket80-rule {
    border-top: 1px solid #000 !important;
    margin: 3px 0;
  }

  .ticket80-doclabel {
    color: #000 !important;
    letter-spacing: 0.07em;
  }

  .ticket80-contact {
    font-size: 12px !important;
    line-height: 1.25;
  }

  .ticket80-section {
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    margin-top: 2px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
  }

  .ticket80-block {
    gap: 3px;
    padding: 3px 0;
  }

  .ticket80-sub,
  .ticket80-row,
  .ticket80-item-sub,
  .ticket80-note {
    font-size: 12.5px !important;
    font-weight: 800 !important;
  }

  .ticket80-item-name,
  .ticket80-item-total,
  .ticket80-row strong {
    font-size: 13.5px !important;
    font-weight: 900 !important;
  }

  .ticket80-row {
    line-height: 1.28;
    gap: 8px;
  }

  .ticket80-item {
    gap: 2px;
    border-bottom: 1px dotted #000;
    padding-bottom: 5px;
  }

  .ticket80-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .ticket80-item-head {
    gap: 8px;
  }

  .ticket80-total {
    border: 1px solid #000;
    border-radius: 0;
    background: #fff !important;
    padding: 3px 4px;
  }

  .ticket80-total strong {
    font-size: 19px !important;
    letter-spacing: 0.02em;
  }

  .ticket80-policy {
    border-radius: 0;
    border: 1px solid #000;
    background: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.25;
    padding: 5px 4px;
  }
}
