﻿:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #1d2528;
  --muted: #68757a;
  --line: #dde4e7;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --accent-soft: #d8f3ee;
  --accent-tint: #f0fdfa;
  --side-bg: #142226;
  --side-line: #31464c;
  --side-muted: #a9b9bd;
  --side-active: #244147;
  --login-a: #10262b;
  --login-b: #123e45;
  --login-panel: #eef5f3;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;
  --info: #1d4ed8;
  --deep: #10262b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

/* Final landing layout pass: centered SaaS page, no inherited app sidebar */
body.system-zow-site {
  --zow-bg: #f7fbff;
  --zow-ink: #101824;
  --zow-muted: #5e6f82;
  --zow-line: rgb(17 31 49 / 10%);
  --zow-blue: #2563eb;
  --zow-cyan: #00b8d9;
  --zow-green: #22c55e;
  --zow-violet: #7c3aed;
  --zow-panel: rgb(255 255 255 / 82%);
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--zow-ink);
  background:
    radial-gradient(circle at 82% 8%, rgb(37 99 235 / 16%), transparent 32rem),
    radial-gradient(circle at 8% 32%, rgb(0 184 217 / 13%), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #eef8ff 100%);
  overflow-x: hidden;
}

body.system-zow-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(37 99 235 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(37 99 235 / 4%) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

body.system-zow-site main,
body.system-zow-site .site-header,
body.system-zow-site .site-footer {
  width: 100%;
}

body.system-zow-site .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  border-bottom: 1px solid transparent;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgb(255 255 255 / 66%);
  backdrop-filter: blur(22px);
  box-shadow: none;
  transition: padding 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

body.system-zow-site .site-header.is-scrolled {
  border-color: var(--zow-line);
  padding-block: 12px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 14px 42px rgb(17 31 49 / 8%);
}

body.system-zow-site .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: var(--zow-ink);
  text-decoration: none;
}

body.system-zow-site .zow-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(37 99 235 / 12%), rgb(34 197 94 / 10%)),
    #ffffff;
  box-shadow: 0 14px 34px rgb(37 99 235 / 12%);
  transform: rotate(45deg);
}

body.system-zow-site .zow-symbol::before,
body.system-zow-site .zow-symbol::after,
body.system-zow-site .zow-symbol span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--zow-blue), var(--zow-cyan));
  box-shadow: 0 0 18px rgb(37 99 235 / 28%);
}

body.system-zow-site .zow-symbol::before,
body.system-zow-site .zow-symbol::after {
  width: 25px;
  height: 5px;
}

body.system-zow-site .zow-symbol::before {
  transform: translateY(-9px);
}

body.system-zow-site .zow-symbol::after {
  transform: translateY(9px);
}

body.system-zow-site .zow-symbol span {
  width: 5px;
  height: 30px;
}

body.system-zow-site .zow-symbol.small {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

body.system-zow-site .site-brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
}

body.system-zow-site .site-brand-copy strong {
  color: var(--zow-ink);
  font-size: 1.02rem;
  letter-spacing: 0;
}

body.system-zow-site .site-brand-copy small {
  color: var(--zow-muted);
  font-size: 0.75rem;
  font-weight: 850;
}

body.system-zow-site .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body.system-zow-site .site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
  color: #3d4e63;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.system-zow-site .site-nav a:hover {
  border-color: rgb(37 99 235 / 14%);
  background: rgb(37 99 235 / 7%);
  color: var(--zow-blue);
  transform: translateY(-1px);
}

body.system-zow-site .site-login-link {
  border-color: rgb(37 99 235 / 16%) !important;
  background: #ffffff !important;
  color: var(--zow-blue) !important;
  box-shadow: 0 12px 28px rgb(37 99 235 / 10%);
}

body.system-zow-site .site-hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) 0 clamp(46px, 7vw, 88px);
}

body.system-zow-site .hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(37 99 235 / 13%);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgb(255 255 255 / 82%);
  color: var(--zow-blue);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgb(17 31 49 / 6%);
}

body.system-zow-site .hero-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zow-green);
  box-shadow: 0 0 18px rgb(34 197 94 / 70%);
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 680px;
  margin: 18px 0;
  color: var(--zow-ink);
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

body.system-zow-site .site-hero-copy p {
  max-width: 650px;
  color: var(--zow-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.68;
}

body.system-zow-site .site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.system-zow-site .primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--zow-blue), var(--zow-cyan));
  color: #ffffff;
  box-shadow: 0 16px 42px rgb(37 99 235 / 22%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgb(37 99 235 / 30%);
}

body.system-zow-site .ghost-button {
  border: 1px solid rgb(17 31 49 / 10%);
  background: rgb(255 255 255 / 74%);
  color: #1b2b3d;
  box-shadow: 0 12px 30px rgb(17 31 49 / 6%);
}

body.system-zow-site .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 30px;
}

body.system-zow-site .hero-metrics article,
body.system-zow-site .holo-grid article,
body.system-zow-site .product-card,
body.system-zow-site .plan-grid article,
body.system-zow-site .operation-grid article,
body.system-zow-site .request-form {
  border: 1px solid var(--zow-line);
  border-radius: 24px;
  background: var(--zow-panel);
  box-shadow: 0 22px 56px rgb(17 31 49 / 8%);
  backdrop-filter: blur(18px);
}

body.system-zow-site .hero-metrics article {
  padding: 16px;
}

body.system-zow-site .hero-metrics strong {
  display: block;
  color: var(--zow-ink);
  font-size: 1.28rem;
}

body.system-zow-site .hero-metrics span {
  color: var(--zow-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

body.system-zow-site .site-hero-visual {
  min-height: 520px;
  display: grid;
  align-items: center;
  position: relative;
}

body.system-zow-site .site-hero-visual::before {
  content: "";
  position: absolute;
  inset: auto -8% 4% 16%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 99 235 / 18%), transparent 68%);
  filter: blur(10px);
}

body.system-zow-site .holo-panel {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: 34px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 94%), rgb(255 255 255 / 68%)),
    radial-gradient(circle at 50% 0%, rgb(0 184 217 / 18%), transparent 55%);
  box-shadow: 0 36px 100px rgb(17 31 49 / 16%);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .holo-panel:hover {
  box-shadow: 0 44px 110px rgb(37 99 235 / 18%);
}

body.system-zow-site .holo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 47%, rgb(37 99 235 / 8%) 50%, transparent 53% 100%),
    linear-gradient(180deg, transparent 0 47%, rgb(0 184 217 / 7%) 50%, transparent 53% 100%);
  background-size: 42px 42px;
  opacity: 0.55;
}

body.system-zow-site .holo-panel > * {
  position: relative;
  z-index: 1;
}

body.system-zow-site .holo-panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.system-zow-site .holo-panel-top div {
  display: grid;
  gap: 4px;
}

body.system-zow-site .holo-panel-top strong,
body.system-zow-site .holo-grid strong,
body.system-zow-site .product-card h3,
body.system-zow-site .plan-grid strong {
  color: var(--zow-ink);
}

body.system-zow-site .holo-panel-top small,
body.system-zow-site .holo-grid span {
  color: var(--zow-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

body.system-zow-site .holo-panel-top i {
  margin-left: auto;
  border: 1px solid rgb(34 197 94 / 22%);
  border-radius: 999px;
  padding: 7px 10px;
  color: #15803d;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgb(34 197 94 / 9%);
}

body.system-zow-site .holo-main {
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgb(17 31 49 / 8%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgb(37 99 235 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(37 99 235 / 7%), rgb(0 184 217 / 6%)),
    #ffffff;
}

body.system-zow-site .holo-core {
  position: relative;
  width: min(210px, 56vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  background: linear-gradient(145deg, rgb(37 99 235 / 18%), rgb(0 184 217 / 14%));
  box-shadow: inset 0 0 56px rgb(37 99 235 / 12%), 0 0 70px rgb(37 99 235 / 16%);
}

body.system-zow-site .holo-core span {
  color: #ffffff;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 950;
  text-shadow: 0 10px 28px rgb(17 31 49 / 26%);
}

body.system-zow-site .holo-lines span {
  position: absolute;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zow-blue), transparent);
}

body.system-zow-site .holo-lines span:nth-child(1) { left: 7%; top: 34%; }
body.system-zow-site .holo-lines span:nth-child(2) { right: 7%; top: 34%; }
body.system-zow-site .holo-lines span:nth-child(3) { left: 7%; bottom: 32%; }
body.system-zow-site .holo-lines span:nth-child(4) { right: 7%; bottom: 32%; }

body.system-zow-site .holo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.system-zow-site .holo-grid article {
  padding: 15px;
  border-radius: 18px;
}

body.system-zow-site .site-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

body.system-zow-site .site-section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

body.system-zow-site .site-section-head h2 {
  max-width: 900px;
  color: var(--zow-ink);
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 0.98;
}

body.system-zow-site .site-section-head p,
body.system-zow-site .product-card p,
body.system-zow-site .plan-grid small,
body.system-zow-site .operation-grid span {
  color: var(--zow-muted);
}

body.system-zow-site .eyebrow {
  color: var(--zow-blue);
}

body.system-zow-site .product-grid,
body.system-zow-site .plan-grid,
body.system-zow-site .operation-grid {
  gap: 18px;
}

body.system-zow-site .product-card {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  padding: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.system-zow-site .product-card:hover,
body.system-zow-site .plan-grid article:hover,
body.system-zow-site .operation-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgb(37 99 235 / 13%);
}

body.system-zow-site .product-icon {
  width: 70px;
  height: 70px;
  border: 1px solid rgb(37 99 235 / 15%);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(37 99 235 / 12%), rgb(0 184 217 / 9%));
}

body.system-zow-site .product-card span,
body.system-zow-site .plan-grid span {
  background: rgb(37 99 235 / 8%);
  color: var(--zow-blue);
}

body.system-zow-site .product-card a,
body.system-zow-site .site-footer a {
  color: var(--zow-blue);
}

body.system-zow-site .product-card.upcoming-card {
  border-style: dashed;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 56%)),
    linear-gradient(135deg, rgb(34 197 94 / 7%), transparent 52%, rgb(0 184 217 / 6%));
}

body.system-zow-site .product-card.upcoming-card:hover {
  transform: translateY(-3px);
}

body.system-zow-site .product-card.upcoming-card span {
  background: rgb(34 197 94 / 10%);
  color: #15803d;
}

body.system-zow-site .product-card.upcoming-card a {
  color: #15803d;
}

body.system-zow-site .operation-section,
body.system-zow-site .site-band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, rgb(37 99 235 / 5%), rgb(34 197 94 / 4%));
}

body.system-zow-site .operation-grid strong {
  background: linear-gradient(135deg, var(--zow-blue), var(--zow-cyan));
  color: #ffffff;
}

body.system-zow-site .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

body.system-zow-site .request-form {
  padding: clamp(20px, 4vw, 34px);
}

body.system-zow-site .request-form label {
  color: #243548;
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  border-color: rgb(17 31 49 / 12%);
  background: #ffffff;
  color: var(--zow-ink);
}

body.system-zow-site .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.system-zow-site .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.system-zow-site .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--zow-line);
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--zow-muted);
  background: rgb(255 255 255 / 62%);
}

@media (max-width: 980px) {
  body.system-zow-site .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  body.system-zow-site .site-nav {
    justify-content: flex-start;
  }

  body.system-zow-site .site-hero,
  body.system-zow-site .contact-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.system-zow-site .site-hero-visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body.system-zow-site .site-header {
    padding: 12px 14px;
  }

  body.system-zow-site .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.system-zow-site .site-nav a {
    text-align: center;
  }

  body.system-zow-site .site-hero {
    width: min(100% - 28px, 1180px);
    padding-top: 36px;
  }

  body.system-zow-site .site-hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  body.system-zow-site .hero-metrics,
  body.system-zow-site .holo-grid,
  body.system-zow-site .product-card,
  body.system-zow-site .request-form {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .holo-main {
    min-height: 220px;
  }
}

body.app-ventas {
  --bg: #e8eef0;
  --ink: #17201d;
  --muted: #66736f;
  --line: #d9e1e7;
  --accent: #0f9f6e;
  --accent-dark: #08734f;
  --accent-soft: #dff8ef;
  --accent-tint: #f3fbf8;
  --side-bg: #101a18;
  --side-line: #263531;
  --side-muted: #b7c7c2;
  --side-active: #18352d;
  --login-a: #0c1715;
  --login-b: #0f684d;
  --login-panel: #f4faf7;
  --warn: #b7791f;
  display: block;
  background:
    radial-gradient(circle at 12% 8%, rgb(15 159 110 / 18%), transparent 30vw),
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 16%), transparent 24vw),
    linear-gradient(115deg, rgb(255 255 255 / 80%) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(90deg, rgb(8 115 79 / 5%) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgb(15 32 28 / 4%) 0 1px, transparent 1px 72px),
    var(--bg);
  background-attachment: fixed;
}

body.app-ventas .app-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
}

body.app-correspondencia {
  --bg: #eef3f7;
  --panel: #ffffff;
  --ink: #1c2633;
  --muted: #657487;
  --line: #d7e0ea;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-tint: #eff6ff;
  --side-bg: #172033;
  --side-line: #2c3a56;
  --side-muted: #b8c5dc;
  --side-active: #243b67;
  --login-a: #13213a;
  --login-b: #244f9f;
  --login-panel: #eef5ff;
  --warn: #a16207;
  position: relative;
  background:
    radial-gradient(circle at 86% 10%, rgb(37 99 235 / 14%), transparent 26vw),
    radial-gradient(circle at 18% 88%, rgb(14 165 233 / 12%), transparent 28vw),
    linear-gradient(135deg, rgb(255 255 255 / 74%) 0 22%, transparent 22%),
    repeating-linear-gradient(90deg, rgb(37 99 235 / 5%) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgb(30 41 59 / 4%) 0 1px, transparent 1px 86px),
    var(--bg);
  background-attachment: scroll;
}

body.app-correspondencia::before,
body.app-correspondencia::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.app-correspondencia::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 63%, rgb(37 99 235 / 7%) 63% 63.25%, transparent 63.25%),
    radial-gradient(circle at 68% 52%, rgb(255 255 255 / 72%), transparent 22vw);
}

body.app-correspondencia::after {
  right: -120px;
  bottom: 8vh;
  width: min(520px, 54vw);
  aspect-ratio: 1.25;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgb(37 99 235 / 8%) 18px 20px),
    linear-gradient(135deg, rgb(255 255 255 / 64%), rgb(37 99 235 / 7%));
  box-shadow: 0 24px 70px rgb(15 23 42 / 8%);
  opacity: 0.55;
  transform: rotate(-8deg);
  animation: documentFloat 13s ease-in-out infinite alternate;
}

body.app-zow-panel {
  --bg: #f6f6f7;
  --ink: #202226;
  --muted: #6d727a;
  --line: #dedfe3;
  --accent: #334155;
  --accent-dark: #111827;
  --accent-soft: #e8ecf2;
  --accent-tint: #f8fafc;
  --side-bg: #16181d;
  --side-line: #30343d;
  --side-muted: #b5bac4;
  --side-active: #2c3240;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 72%), transparent 260px),
    var(--bg);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow-x: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 28px);
  overflow: auto;
  background:
    linear-gradient(135deg, var(--login-a) 0%, var(--login-b) 42%, var(--login-panel) 42%, var(--login-panel) 100%);
}

.login-layout {
  width: min(1120px, 100%);
  min-height: min(650px, calc(100vh - 56px));
  max-height: calc(100vh - 24px);
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 8px;
  box-shadow: 0 30px 110px rgb(16 38 43 / 28%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  overflow: auto;
  backdrop-filter: blur(12px);
}

.login-intro {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--login-a) 96%, black), color-mix(in srgb, var(--login-b) 92%, black)),
    linear-gradient(45deg, var(--login-a), var(--login-b));
  color: white;
  padding: clamp(28px, 4.6vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 3vh, 34px);
  overflow: hidden;
}

.login-intro::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: 0;
  width: 58%;
  height: 44%;
  border: 1px solid rgb(255 255 255 / 16%);
  transform: skewX(-18deg);
  z-index: -1;
}

.login-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(140deg, black 0%, transparent 72%);
  z-index: -1;
}

.login-product-logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(255 255 255 / 76%));
  border: 1px solid rgb(255 255 255 / 54%);
  box-shadow: 0 18px 42px rgb(0 0 0 / 22%);
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 12%));
  animation: logoSettle 680ms ease-out both;
}

body.app-ventas .login-product-logo,
body.app-zow-panel .login-product-logo {
  background: linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(248 250 252 / 80%));
}

body.app-ventas .ventas-login-screen {
  background:
    linear-gradient(90deg, rgb(3 23 19 / 78%), rgb(3 23 19 / 24%) 58%, rgb(255 247 237 / 92%)),
    url("assets/brand/login-ventas-background.svg") center / cover no-repeat;
}

body.app-ventas .login-layout {
  grid-template-columns: minmax(350px, 0.86fr) minmax(0, 1.14fr);
  width: min(1180px, 100%);
  border-radius: 30px;
  border: 1px solid rgb(15 159 110 / 16%);
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 34px 120px rgb(6 17 15 / 34%);
}

body.app-ventas .login-intro {
  order: 2;
  background:
    radial-gradient(circle at 18% 12%, rgb(52 211 153 / 26%), transparent 34%),
    radial-gradient(circle at 86% 86%, rgb(245 158 11 / 18%), transparent 36%),
    linear-gradient(145deg, #07110f, #112b24 52%, #0f8f69);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 9%);
  padding-left: clamp(36px, 5vw, 68px);
}

body.app-ventas .login-card {
  order: 1;
  border-right: 1px solid rgb(15 159 110 / 10%);
  background:
    radial-gradient(circle at 12% 8%, rgb(245 158 11 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 98%), rgb(242 252 247 / 95%));
}

body.app-ventas .login-intro::before {
  background-image:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgb(52 211 153 / 14%) 48% 49%, transparent 49% 100%);
  background-size: 34px 34px, 34px 34px, 120px 120px;
}

body.app-ventas .login-intro::after {
  right: -16%;
  bottom: -18%;
  width: 52%;
  height: 54%;
  border-radius: 50%;
  transform: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgb(255 255 255 / 10%) 12px 14px, transparent 14px 28px),
    radial-gradient(circle, rgb(255 255 255 / 10%), transparent 64%);
}

body.app-ventas .login-product-logo {
  width: min(310px, 100%);
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 18%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 20%);
  backdrop-filter: blur(10px);
}

body.app-ventas .login-copy {
  position: relative;
  z-index: 2;
}

body.app-ventas .login-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 620px;
  text-wrap: balance;
}

body.app-ventas .login-copy p:not(.eyebrow) {
  color: rgb(236 253 245 / 82%);
  font-weight: 720;
}

body.app-ventas .ventas-login-scene {
  position: relative;
  min-height: clamp(230px, 34vh, 310px);
  display: grid;
  align-items: center;
  isolation: isolate;
  perspective: 900px;
}

body.app-ventas .sales-login-window {
  position: absolute;
  right: clamp(24px, 5vw, 62px);
  top: clamp(22px, 5vh, 54px);
  z-index: 3;
  width: min(250px, 44%);
  border: 1px solid rgb(236 253 245 / 18%);
  border-radius: 22px;
  padding: 18px;
  background: rgb(2 6 23 / 30%);
  box-shadow: 0 24px 68px rgb(0 0 0 / 20%);
  backdrop-filter: blur(16px);
}

body.app-ventas .sales-login-window span,
body.app-ventas .sales-login-window strong,
body.app-ventas .sales-login-window i {
  display: block;
}

body.app-ventas .sales-login-window span {
  color: rgb(209 250 229 / 74%);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.app-ventas .sales-login-window strong {
  margin: 8px 0 14px;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

body.app-ventas .sales-login-window i {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, rgb(16 185 129 / 22%));
}

body.app-ventas .sales-login-window i:nth-of-type(2) {
  width: 74%;
}

body.app-ventas .sales-login-window i:nth-of-type(3) {
  width: 52%;
}

body.app-ventas .advanced-sales-scene {
  --scene-tilt-x: 0deg;
  --scene-tilt-y: 0deg;
  transform: rotateX(var(--scene-tilt-x)) rotateY(var(--scene-tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

body.app-ventas .advanced-sales-scene::before,
body.app-ventas .advanced-sales-scene::after {
  content: "";
  position: absolute;
  inset: 7% 5%;
  border-radius: 18px;
  pointer-events: none;
}

body.app-ventas .advanced-sales-scene::before {
  background:
    radial-gradient(circle at 20% 22%, rgb(34 197 94 / 30%), transparent 28%),
    radial-gradient(circle at 84% 76%, rgb(251 191 36 / 24%), transparent 30%),
    linear-gradient(135deg, rgb(15 23 42 / 20%), rgb(255 255 255 / 8%));
  filter: blur(0.2px);
  transform: translateZ(-90px);
}

body.app-ventas .advanced-sales-scene::after {
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: inset 0 0 40px rgb(255 255 255 / 8%), 0 28px 70px rgb(0 0 0 / 22%);
  transform: translateZ(-40px);
}

body.app-ventas .sales-depth-grid {
  position: absolute;
  inset: 10% 7%;
  transform: rotateX(62deg) rotateZ(-18deg) translateZ(-70px);
  transform-style: preserve-3d;
}

body.app-ventas .sales-depth-grid span {
  position: absolute;
  inset: calc(var(--i, 0) * 18px);
  border: 1px solid rgb(236 253 245 / 13%);
  border-radius: 16px;
}

body.app-ventas .sales-depth-grid span:nth-child(1) { --i: 0; }
body.app-ventas .sales-depth-grid span:nth-child(2) { --i: 1; }
body.app-ventas .sales-depth-grid span:nth-child(3) { --i: 2; }

body.app-ventas .sales-orbit {
  position: absolute;
  border: 1px solid rgb(16 185 129 / 28%);
  border-radius: 999px;
  box-shadow: 0 0 32px rgb(16 185 129 / 12%);
  transform-style: preserve-3d;
}

body.app-ventas .orbit-a {
  width: 248px;
  height: 86px;
  right: 3%;
  top: 25%;
  transform: rotateX(64deg) rotateZ(-18deg) translateZ(28px);
}

body.app-ventas .orbit-b {
  width: 190px;
  height: 64px;
  left: 8%;
  bottom: 18%;
  border-color: rgb(251 191 36 / 26%);
  transform: rotateX(66deg) rotateZ(16deg) translateZ(18px);
}

body.app-ventas .warehouse-rack-3d,
body.app-ventas .pos-terminal-3d,
body.app-ventas .sales-package {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 18%);
  box-shadow: 0 22px 48px rgb(0 0 0 / 26%);
  transform-style: preserve-3d;
  will-change: transform;
}

body.app-ventas .warehouse-rack-3d {
  left: 5%;
  top: 26%;
  width: 155px;
  height: 98px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 10%) 1px, transparent 1px) 33% 0 / 33% 100%,
    linear-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px) 0 50% / 100% 50%,
    linear-gradient(135deg, rgb(6 78 59 / 58%), rgb(15 23 42 / 42%));
  transform: rotateY(-19deg) rotateX(5deg) translateZ(42px);
}

body.app-ventas .warehouse-rack-3d i {
  border-radius: 5px;
  background: linear-gradient(135deg, #fbbf24, #fb923c 58%, #10b981);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 34%);
}

body.app-ventas .warehouse-rack-3d i:nth-child(2n) {
  background: linear-gradient(135deg, #86efac, #22c55e 55%, #0f766e);
}

body.app-ventas .pos-terminal-3d {
  right: 8%;
  top: 22%;
  width: 210px;
  height: 126px;
  border-radius: 16px 16px 24px 24px;
  padding: 16px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%)),
    linear-gradient(135deg, #0f172a, #064e3b 76%);
  transform: rotateY(20deg) rotateX(8deg) translateZ(78px);
}

body.app-ventas .pos-terminal-3d::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -17px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #111827, #020617);
  transform: rotateX(-26deg);
  transform-origin: top;
}

body.app-ventas .pos-screen-3d {
  height: 48px;
  border-radius: 10px;
  padding: 9px;
  display: grid;
  gap: 6px;
  background:
    linear-gradient(135deg, rgb(34 197 94 / 28%), rgb(14 165 233 / 10%)),
    #021b16;
  box-shadow: inset 0 0 24px rgb(16 185 129 / 30%);
}

body.app-ventas .pos-screen-3d span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(236 253 245 / 92%), rgb(236 253 245 / 16%));
}

body.app-ventas .pos-screen-3d span:nth-child(2) { width: 72%; }
body.app-ventas .pos-screen-3d span:nth-child(3) { width: 48%; }

body.app-ventas .pos-keypad-3d {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

body.app-ventas .pos-keypad-3d i {
  height: 9px;
  border-radius: 4px;
  background: rgb(255 255 255 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

body.app-ventas .sales-package {
  width: 48px;
  height: 44px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, rgb(255 255 255 / 28%) 47% 53%, transparent 54%),
    linear-gradient(135deg, #f59e0b, #fbbf24);
}

body.app-ventas .package-a {
  left: 37%;
  top: 14%;
  transform: rotateY(-24deg) rotateX(12deg) translateZ(72px);
  animation: salesPackageFloat 5.4s ease-in-out infinite;
}

body.app-ventas .package-b {
  left: 48%;
  bottom: 15%;
  width: 62px;
  height: 50px;
  background:
    linear-gradient(90deg, transparent 46%, rgb(255 255 255 / 22%) 47% 53%, transparent 54%),
    linear-gradient(135deg, #10b981, #0f766e);
  transform: rotateY(22deg) rotateX(8deg) translateZ(54px);
  animation: salesPackageFloat 6.2s ease-in-out infinite reverse;
}

body.app-ventas .sales-scan-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(34 197 94 / 88%), #fbbf24, transparent);
  box-shadow: 0 0 26px rgb(34 197 94 / 46%);
  transform: translateZ(110px);
  animation: salesBeamSweep 3.8s ease-in-out infinite;
}

body.app-ventas .advanced-sales-scene:hover .pos-terminal-3d {
  transform: rotateY(16deg) rotateX(4deg) translateZ(90px) scale(1.02);
}

body.app-ventas .login-highlights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-ventas .login-highlights div {
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(10px);
}

body.app-ventas .login-card {
  background:
    radial-gradient(circle at 92% 8%, rgb(15 159 110 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(247 252 249 / 94%));
}

body.app-ventas .login-card .primary-button {
  min-height: 54px;
  background: linear-gradient(135deg, #0f8f69, #16a34a);
  box-shadow: 0 18px 42px rgb(15 159 110 / 22%);
}

body.app-correspondencia .correspondence-login-screen {
  isolation: isolate;
  background:
    linear-gradient(110deg, rgb(2 8 23 / 90%), rgb(8 23 53 / 60%) 52%, rgb(248 251 255 / 92%)),
    url("assets/brand/login-correspondencia-background.svg") center / cover no-repeat;
}

body.app-correspondencia .correspondence-login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 44%, rgb(125 211 252 / 10%) 44.2% 44.6%, transparent 44.8% 100%);
  background-size: 72px 72px, 72px 72px, 180px 180px;
  mask-image: linear-gradient(115deg, black 0 46%, transparent 78%);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

body.app-correspondencia .correspondence-login-screen::after {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    conic-gradient(from 180deg at 30% 42%, transparent, rgb(56 189 248 / 14%), transparent 30%),
    conic-gradient(from 40deg at 78% 62%, transparent, rgb(37 99 235 / 13%), transparent 34%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.correspondence-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.correspondence-backdrop span {
  position: absolute;
  width: 180px;
  height: 118px;
  border: 1px solid rgb(219 234 254 / 16%);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 0 22px, rgb(125 211 252 / 9%) 23px 24px, transparent 25px),
    linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%));
  box-shadow: 0 30px 80px rgb(2 6 23 / 18%), inset 0 1px 0 rgb(255 255 255 / 12%);
  transform: rotate(var(--doc-rotate, 0deg)) skewY(-6deg);
  opacity: 0.52;
  animation: correspondenceBackdropDrift 14s ease-in-out infinite;
}

.correspondence-backdrop span:nth-child(1) {
  left: 5%;
  top: 12%;
  --doc-rotate: -10deg;
}

.correspondence-backdrop span:nth-child(2) {
  left: 28%;
  bottom: 8%;
  width: 132px;
  height: 92px;
  --doc-rotate: 13deg;
  animation-delay: -4s;
}

.correspondence-backdrop span:nth-child(3) {
  right: 7%;
  top: 12%;
  width: 150px;
  height: 96px;
  --doc-rotate: 8deg;
  animation-delay: -7s;
}

.correspondence-backdrop span:nth-child(4) {
  right: 15%;
  bottom: 10%;
  width: 210px;
  height: 132px;
  --doc-rotate: -16deg;
  animation-delay: -10s;
}

body.app-correspondencia .login-layout {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  border-radius: 18px;
  border: 1px solid rgb(37 99 235 / 18%);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 11%), transparent 52%),
    rgb(255 255 255 / 86%);
  box-shadow: 0 38px 130px rgb(2 8 23 / 34%);
  backdrop-filter: blur(18px);
}

body.app-correspondencia .login-intro {
  background:
    radial-gradient(circle at 18% 12%, rgb(125 211 252 / 28%), transparent 32%),
    radial-gradient(circle at 86% 78%, rgb(99 102 241 / 18%), transparent 34%),
    linear-gradient(145deg, #020817, #0b1b3d 54%, #1d4ed8);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
}

body.app-correspondencia .login-intro::before {
  background-image:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgb(147 197 253 / 14%) 48% 49%, transparent 49% 100%),
    radial-gradient(circle at center, rgb(125 211 252 / 18%) 0 1px, transparent 2px);
  background-size: 34px 34px, 34px 34px, 128px 128px, 28px 28px;
  mask-image: linear-gradient(140deg, black 0%, transparent 82%);
}

body.app-correspondencia .login-intro::after {
  right: -12%;
  bottom: -22%;
  width: 68%;
  height: 62%;
  border-radius: 42%;
  transform: rotate(-12deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgb(255 255 255 / 9%) 18px 20px, transparent 20px 38px),
    conic-gradient(from 90deg, transparent, rgb(125 211 252 / 16%), transparent 35%, rgb(96 165 250 / 12%), transparent 78%),
    radial-gradient(circle, rgb(255 255 255 / 10%), transparent 66%);
}

.correspondence-login-scene {
  position: relative;
  min-height: 245px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 980px;
}

.advanced-correspondence-scene {
  --doc-tilt-x: 0deg;
  --doc-tilt-y: 0deg;
  transform: rotateX(var(--doc-tilt-x)) rotateY(var(--doc-tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

.advanced-correspondence-scene::before,
.advanced-correspondence-scene::after {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border-radius: 22px;
  pointer-events: none;
}

.advanced-correspondence-scene::before {
  background:
    radial-gradient(circle at 20% 24%, rgb(96 165 250 / 30%), transparent 27%),
    radial-gradient(circle at 82% 72%, rgb(14 165 233 / 24%), transparent 30%),
    conic-gradient(from 130deg at 50% 52%, transparent, rgb(125 211 252 / 12%), transparent 34%, rgb(59 130 246 / 12%), transparent 70%),
    linear-gradient(135deg, rgb(255 255 255 / 9%), rgb(15 23 42 / 12%));
  transform: translateZ(-88px);
}

.advanced-correspondence-scene::after {
  border: 1px solid rgb(191 219 254 / 16%);
  box-shadow: inset 0 0 48px rgb(147 197 253 / 10%), 0 32px 80px rgb(2 6 23 / 24%);
  transform: translateZ(-45px);
}

.document-grid-3d {
  position: absolute;
  inset: 10% 6%;
  transform: rotateX(62deg) rotateZ(-16deg) translateZ(-70px);
  transform-style: preserve-3d;
}

.document-grid-3d span {
  position: absolute;
  inset: calc(var(--ring, 0) * 20px);
  border: 1px solid rgb(219 234 254 / 14%);
  border-radius: 18px;
}

.document-grid-3d span:nth-child(1) { --ring: 0; }
.document-grid-3d span:nth-child(2) { --ring: 1; }
.document-grid-3d span:nth-child(3) { --ring: 2; }

.holo-panels {
  position: absolute;
  inset: 5% 7%;
  transform: translateZ(46px);
  transform-style: preserve-3d;
  pointer-events: none;
}

.holo-panels span {
  position: absolute;
  border: 1px solid rgb(191 219 254 / 18%);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgb(125 211 252 / 10%) 19px 20px, transparent 21px),
    linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%));
  box-shadow: 0 20px 54px rgb(2 8 23 / 18%), inset 0 1px 0 rgb(255 255 255 / 12%);
  animation: holoPanelShift 9s ease-in-out infinite;
}

.holo-panels span:nth-child(1) {
  width: 92px;
  height: 58px;
  left: 4%;
  top: 7%;
  transform: rotateY(-22deg) rotateZ(-8deg);
}

.holo-panels span:nth-child(2) {
  width: 118px;
  height: 74px;
  right: 2%;
  top: 12%;
  transform: rotateY(24deg) rotateZ(7deg);
  animation-delay: -3s;
}

.holo-panels span:nth-child(3) {
  width: 104px;
  height: 64px;
  left: 18%;
  bottom: 7%;
  transform: rotateY(-18deg) rotateZ(11deg);
  animation-delay: -6s;
}

.route-orbit {
  position: absolute;
  border: 1px solid rgb(147 197 253 / 24%);
  border-radius: 999px;
  box-shadow: 0 0 32px rgb(37 99 235 / 12%);
  transform-style: preserve-3d;
}

.route-orbit.orbit-primary {
  width: min(410px, 82%);
  height: 118px;
  top: 30%;
  transform: rotateX(67deg) rotateZ(-13deg) translateZ(28px);
}

.route-orbit.orbit-secondary {
  width: min(320px, 68%);
  height: 88px;
  bottom: 18%;
  border-color: rgb(125 211 252 / 20%);
  transform: rotateX(66deg) rotateZ(19deg) translateZ(12px);
}

.document-folder-3d,
.route-node,
.document-stamp-3d {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

.document-folder-3d {
  width: min(318px, 74vw);
  min-height: 178px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 20%), rgb(37 99 235 / 18%)),
    linear-gradient(135deg, #e0f2fe, #93c5fd 48%, #2563eb);
  box-shadow:
    0 34px 82px rgb(0 0 0 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 58%);
  transform: rotateX(57deg) rotateZ(-13deg) translateZ(58px);
}

.document-folder-3d::after {
  content: "";
  position: absolute;
  inset: auto 12px 14px 12px;
  height: 24px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgb(30 64 175 / 34%), rgb(15 23 42 / 28%));
  transform: translateZ(14px);
}

.document-folder-3d::before {
  content: "";
  position: absolute;
  inset: -24px -18px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 0 14%, rgb(255 255 255 / 16%) 14.5% 15%, transparent 15.5% 100%),
    linear-gradient(180deg, transparent 0 36%, rgb(125 211 252 / 16%) 36.5% 37%, transparent 37.5% 100%);
  opacity: 0.75;
  transform: translateZ(72px);
  pointer-events: none;
}

.folder-tab-3d {
  position: absolute;
  top: -23px;
  left: 24px;
  width: 118px;
  height: 46px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 64%);
}

.control-sheet {
  position: absolute;
  left: 38px;
  right: 34px;
  height: 94px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 0 24px, rgb(37 99 235 / 10%) 25px 26px, transparent 27px),
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(239 246 255 / 92%));
  box-shadow: 0 16px 36px rgb(15 23 42 / 18%);
  transform: translateZ(34px) rotateX(-10deg);
}

.control-sheet.sheet-front {
  top: 24px;
}

.control-sheet.sheet-back {
  top: 54px;
  opacity: 0.82;
  transform: translateZ(18px) rotateX(-10deg) translateX(22px);
}

.control-sheet i {
  height: 8px;
  margin-left: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, rgb(14 165 233 / 38%));
}

.control-sheet i:nth-child(2) {
  width: 72%;
}

.control-sheet i:nth-child(3) {
  width: 48%;
}

.control-sheet b {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 58px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgb(37 99 235 / 54%);
  transform: rotate(-8deg);
}

.folder-lock-mark {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(15 23 42 / 26%);
  transform: translateZ(42px);
}

.folder-lock-mark span {
  width: 16px;
  height: 12px;
  border: 2px solid rgb(255 255 255 / 80%);
  border-top: 0;
  border-radius: 3px;
}

.folder-lock-mark span::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 10px;
  margin: -11px 0 0 0;
  border: 2px solid rgb(255 255 255 / 80%);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.route-node {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 26%, rgb(255 255 255 / 28%), transparent 28%),
    linear-gradient(135deg, rgb(37 99 235 / 72%), rgb(14 165 233 / 44%));
  box-shadow: 0 20px 44px rgb(0 0 0 / 22%);
}

.route-node i {
  width: 24px;
  height: 28px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 6px, rgb(37 99 235 / 20%) 7px 8px, transparent 9px),
    linear-gradient(180deg, #ffffff, #dbeafe);
}

.node-reception {
  left: 4%;
  top: 34%;
  transform: rotateY(-18deg) translateZ(78px);
}

.node-area-a {
  right: 8%;
  top: 21%;
  transform: rotateY(20deg) translateZ(70px);
}

.node-area-b {
  right: 3%;
  bottom: 18%;
  transform: rotateY(18deg) translateZ(64px);
}

.document-route-map {
  position: absolute;
  inset: 5% 2%;
  width: 96%;
  height: 86%;
  overflow: visible;
  transform: translateZ(90px);
}

.route-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.4;
  stroke-dasharray: 12 12;
  filter: drop-shadow(0 0 10px rgb(56 189 248 / 58%));
  animation: routeTraceFlow 7s linear infinite;
}

.route-main {
  stroke: rgb(147 197 253 / 72%);
}

.route-alt {
  stroke: rgb(56 189 248 / 58%);
  animation-duration: 9s;
  animation-direction: reverse;
}

.route-packet {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgb(219 234 254 / 70%);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(191 219 254 / 78%));
  box-shadow: 0 0 18px rgb(56 189 248 / 58%), 0 16px 36px rgb(0 0 0 / 18%);
  transform: translateZ(118px);
  will-change: offset-distance, transform;
}

.packet-a {
  offset-path: path("M56 102 C128 46, 224 44, 338 78");
  animation: packetRouteA 5.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.packet-b {
  offset-path: path("M62 126 C150 188, 246 188, 374 158");
  animation: packetRouteA 7.2s cubic-bezier(0.45, 0, 0.2, 1) infinite 1.2s;
}

.packet-c {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  offset-path: path("M56 102 C128 46, 224 44, 338 78");
  animation: packetRouteA 4.6s cubic-bezier(0.45, 0, 0.2, 1) infinite 2s;
}

.document-stamp-3d {
  right: 28%;
  bottom: 12%;
  width: 74px;
  height: 42px;
  border: 2px solid rgb(255 255 255 / 44%);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgb(0 0 0 / 18%), inset 0 0 0 7px rgb(255 255 255 / 8%);
  transform: rotateZ(-14deg) translateZ(96px);
  animation: documentStampPulse 4.8s ease-in-out infinite;
}

.document-stamp-3d span {
  position: absolute;
  inset: 9px 15px;
  border-top: 2px solid rgb(255 255 255 / 46%);
  border-bottom: 2px solid rgb(255 255 255 / 46%);
  border-radius: 999px;
}

.hologram-core {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(255 255 255 / 20%) 0 13%, transparent 14%),
    conic-gradient(from 0deg, transparent, rgb(125 211 252 / 38%), transparent, rgb(37 99 235 / 34%), transparent);
  box-shadow: 0 0 42px rgb(56 189 248 / 24%);
  transform: rotateX(66deg) translateZ(30px);
  animation: hologramCoreSpin 12s linear infinite;
  pointer-events: none;
}

.data-vault-ring {
  position: absolute;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  border: 1px solid rgb(191 219 254 / 13%);
  background:
    conic-gradient(from 0deg, rgb(125 211 252 / 0%) 0 9%, rgb(125 211 252 / 34%) 10% 12%, transparent 13% 30%, rgb(96 165 250 / 24%) 31% 33%, transparent 34% 100%);
  filter: drop-shadow(0 0 26px rgb(56 189 248 / 16%));
  transform: rotateX(67deg) translateZ(24px);
  animation: dataVaultSweep 16s linear infinite;
  pointer-events: none;
}

.advanced-correspondence-scene:hover .document-folder-3d {
  transform: rotateX(53deg) rotateZ(-11deg) translateZ(72px) scale(1.015);
}

body.app-correspondencia .login-card {
  background:
    radial-gradient(circle at 92% 8%, rgb(37 99 235 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(248 251 255 / 94%));
}

body.app-correspondencia .panel-login-scene {
  display: none;
}

body.app-zow-panel-login .correspondence-login-screen {
  background:
    linear-gradient(118deg, rgb(5 8 22 / 86%), rgb(17 24 39 / 52%) 54%, rgb(248 250 252 / 88%)),
    url("assets/brand/login-panel-background.svg") center / cover no-repeat;
}

body.app-zow-panel-login .correspondence-backdrop,
body.app-zow-panel-login .correspondence-login-scene {
  display: none;
}

body.app-zow-panel-login .panel-login-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 38vh, 360px);
  isolation: isolate;
  perspective: 1000px;
}

body.app-zow-panel-login .login-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  border-color: rgb(99 102 241 / 18%);
  border-radius: 28px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 42px 140px rgb(2 6 23 / 38%);
}

body.app-zow-panel-login .login-intro {
  order: 2;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
  background:
    radial-gradient(circle at 50% 38%, rgb(34 211 238 / 24%), transparent 28%),
    radial-gradient(circle at 82% 80%, rgb(167 139 250 / 18%), transparent 34%),
    linear-gradient(145deg, #050816, #111827 58%, #3730a3);
}

body.app-zow-panel-login .login-card {
  order: 1;
  background:
    radial-gradient(circle at 10% 8%, rgb(99 102 241 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 97%), rgb(248 250 252 / 94%));
}

body.app-zow-panel-login .login-card .primary-button {
  background: linear-gradient(135deg, #111827, #4f46e5);
  box-shadow: 0 18px 42px rgb(79 70 229 / 22%);
}

body.app-zow-panel-login .login-highlights div {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(224 231 255 / 18%);
}

body.app-zow-panel-login .panel-network-grid {
  position: absolute;
  inset: 12% 8%;
  transform: rotateX(64deg) rotateZ(-16deg) translateZ(-36px);
  transform-style: preserve-3d;
}

body.app-zow-panel-login .panel-network-grid span {
  position: absolute;
  inset: calc(var(--panel-ring, 0) * 26px);
  border: 1px solid rgb(224 231 255 / 14%);
  border-radius: 24px;
}

body.app-zow-panel-login .panel-network-grid span:nth-child(1) { --panel-ring: 0; }
body.app-zow-panel-login .panel-network-grid span:nth-child(2) { --panel-ring: 1; }
body.app-zow-panel-login .panel-network-grid span:nth-child(3) { --panel-ring: 2; }
body.app-zow-panel-login .panel-network-grid span:nth-child(4) { --panel-ring: 3; }

body.app-zow-panel-login .panel-core-orb {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(103 232 249 / 34%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 32%), transparent 24%),
    conic-gradient(from 0deg, #22d3ee, #4f46e5, #a78bfa, #22d3ee);
  box-shadow: 0 0 70px rgb(34 211 238 / 24%), inset 0 0 30px rgb(255 255 255 / 18%);
  transform: translateZ(90px);
  animation: panelCoreFloat 6s ease-in-out infinite;
}

body.app-zow-panel-login .panel-core-orb span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #050816;
  color: white;
  font-weight: 950;
  letter-spacing: 0;
}

body.app-zow-panel-login .panel-system-card {
  position: absolute;
  width: 118px;
  border: 1px solid rgb(224 231 255 / 18%);
  border-radius: 18px;
  padding: 14px;
  background: rgb(255 255 255 / 10%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 20%);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}

body.app-zow-panel-login .panel-system-card strong,
body.app-zow-panel-login .panel-system-card span {
  display: block;
}

body.app-zow-panel-login .panel-system-card strong {
  color: white;
  font-size: 1rem;
}

body.app-zow-panel-login .panel-system-card span {
  margin-top: 8px;
  color: rgb(224 231 255 / 76%);
  font-size: 0.78rem;
  font-weight: 850;
}

body.app-zow-panel-login .card-correspondence {
  left: 7%;
  top: 18%;
  transform: rotateY(-22deg) translateZ(62px);
}

body.app-zow-panel-login .card-sales {
  right: 8%;
  top: 22%;
  transform: rotateY(22deg) translateZ(72px);
}

body.app-zow-panel-login .card-health {
  left: 32%;
  bottom: 10%;
  transform: rotateX(10deg) translateZ(58px);
}

body.app-correspondencia .login-card .primary-button {
  min-height: 54px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 18px 42px rgb(37 99 235 / 22%);
}

.login-copy {
  max-width: 590px;
}

.login-intro h1 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.login-intro p:not(.eyebrow) {
  color: #c8d6d9;
  max-width: 520px;
  line-height: 1.52;
  margin-bottom: 0;
}

.login-intro .eyebrow {
  color: color-mix(in srgb, var(--accent-soft) 70%, white);
}

.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-highlights div {
  min-height: 84px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 6%));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.login-highlights div:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 30%);
}

.login-highlights strong,
.login-highlights span {
  display: block;
}

.login-highlights strong {
  color: color-mix(in srgb, var(--accent-soft) 80%, white);
  font-size: 13px;
  margin-bottom: 14px;
}

.login-highlights span {
  color: #edf7f5;
  font-size: 13px;
  font-weight: 800;
}

.login-card {
  align-content: center;
  padding: clamp(28px, 4.4vw, 46px);
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 95%), rgb(247 251 250 / 94%));
}

.login-card h2 {
  font-size: clamp(24px, 3vw, 28px);
  margin-bottom: 4px;
}

.login-notice {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-tint) 58%, white), #ffffff);
  color: var(--ink);
}

.login-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.login-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.copyright-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.copyright-line.is-inline {
  white-space: nowrap;
}

.form-error {
  color: var(--danger);
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sidebar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--side-bg) 90%, white 3%), var(--side-bg)),
    var(--side-bg);
  color: #f7faf9;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  border-bottom: 1px solid var(--side-line);
  padding-bottom: 18px;
}

.sidebar-brand img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  padding: 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 14px 30px rgb(0 0 0 / 16%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2dd4bf;
  color: #102022;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand span,
.sidebar-footer span {
  display: block;
  color: var(--side-muted);
  font-size: 13px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 8px;
  padding: 8px;
  background: rgb(255 255 255 / 3%);
}

.nav-group-toggle {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--side-muted) 78%, black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  padding: 0 8px;
}

.nav-group-toggle::after {
  content: "+";
  margin-left: auto;
  color: color-mix(in srgb, var(--accent-soft) 70%, white);
}

.nav-group.is-open .nav-group-toggle::after {
  content: "-";
}

.nav-group-items {
  display: none;
  gap: 7px;
}

.nav-group.is-open .nav-group-items {
  display: grid;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: #dbe7ea;
  text-align: left;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-group-toggle,
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  opacity: 0.82;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--side-active);
  color: #ffffff;
  transform: translateX(2px);
}

body.app-correspondencia .sidebar {
  position: relative;
  top: auto;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 4%, rgb(59 130 246 / 20%), transparent 28%),
    linear-gradient(180deg, #142037, #172033 60%, #101827);
  box-shadow: 16px 0 60px rgb(15 23 42 / 10%);
}

body.app-correspondencia .sidebar::after {
  content: "";
  position: absolute;
  inset: auto 18px 20px;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgb(255 255 255 / 7%) 13px 14px),
    linear-gradient(135deg, transparent, rgb(96 165 250 / 12%));
  border-radius: 8px;
  opacity: 0.55;
}

body.app-correspondencia .sidebar > * {
  position: relative;
  z-index: 1;
}

body.app-correspondencia .sidebar-brand img {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(239 246 255 / 92%));
  box-shadow: 0 18px 40px rgb(15 23 42 / 24%);
}

body.app-correspondencia .nav-group {
  background: rgb(255 255 255 / 4%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

body.app-correspondencia .nav-item.is-active {
  background:
    linear-gradient(135deg, rgb(37 99 235 / 94%), rgb(14 165 233 / 78%));
  box-shadow: 0 14px 32px rgb(37 99 235 / 22%);
}

body.app-correspondencia .nav-item:hover {
  background: rgb(255 255 255 / 10%);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--side-line);
  padding-top: 18px;
}

.sidebar-footer small {
  display: block;
  margin-top: 10px;
  color: var(--side-muted);
  font-size: 11px;
  line-height: 1.4;
}

.app-shell {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--accent-tint) 36%, white));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 34px rgb(31 41 55 / 7%);
}

body.app-correspondencia .app-shell {
  position: relative;
  z-index: 1;
}

body.app-correspondencia .topbar {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 14% 16%, rgb(96 165 250 / 22%), transparent 28%),
    linear-gradient(135deg, #18243b, #1e3a8a 58%, #0ea5e9);
  color: white;
  box-shadow: 0 28px 80px rgb(15 23 42 / 16%);
}

body.app-correspondencia .topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 38%, rgb(255 255 255 / 13%) 41%, transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgb(255 255 255 / 5%) 42px 43px);
  animation: documentScan 8.5s ease-in-out infinite;
}

body.app-correspondencia .topbar > * {
  position: relative;
  z-index: 1;
}

body.app-correspondencia .topbar-actions > * {
  position: relative;
  z-index: 2;
}

body.app-correspondencia .topbar .eyebrow {
  color: rgb(219 234 254 / 82%);
}

body.app-correspondencia .topbar .user-badge,
body.app-correspondencia .topbar .ghost-button,
body.app-correspondencia .topbar .primary-button,
body.app-correspondencia .topbar .notification-button {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 12%);
  color: white !important;
  -webkit-text-fill-color: white;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.app-correspondencia .topbar .primary-button:hover,
body.app-correspondencia .topbar .ghost-button:hover,
body.app-correspondencia .topbar .notification-button:hover {
  background: rgb(255 255 255 / 18%);
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.topbar-actions,
.action-row,
.modal-actions,
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-action {
  cursor: pointer;
}

.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.user-badge {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  isolation: isolate;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}

.secondary-button {
  background: var(--accent-tint);
  border-color: color-mix(in srgb, var(--accent) 24%, white);
  color: var(--accent-dark);
}

.ghost-button {
  background: linear-gradient(180deg, white, #fbfcfc);
  border-color: var(--line);
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ghost-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 10px 22px rgb(15 23 42 / 8%);
}

.button-icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: -1;
  animation: buttonRipple 520ms ease-out;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: #f1f5f6;
  border-color: var(--line);
  font-size: 24px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article,
.document-list,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(31 41 55 / 5%);
}

.metrics article {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, white));
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

body.app-correspondencia .metrics article,
body.app-correspondencia .document-list,
body.app-correspondencia .detail-panel,
body.app-correspondencia .filter-panel,
body.app-correspondencia .action-menu,
body.app-correspondencia .workflow-panel,
body.app-correspondencia .admin-panel,
body.app-correspondencia .setup-overview article {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(248 251 255 / 84%));
  border-color: rgb(148 163 184 / 32%);
  box-shadow: 0 22px 58px rgb(15 23 42 / 8%);
  backdrop-filter: blur(16px);
}

body.app-correspondencia .metrics article {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.app-correspondencia .metrics article::before {
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #93c5fd);
}

body.app-correspondencia .metrics article::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 46px;
  height: 58px;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgb(37 99 235 / 9%) 8px 9px),
    linear-gradient(180deg, rgb(255 255 255 / 60%), rgb(219 234 254 / 48%));
  opacity: 0.62;
}

body.app-correspondencia .metrics article:hover {
  box-shadow: 0 28px 68px rgb(15 23 42 / 12%);
  transform: translateY(-2px);
}

.workspace {
  display: grid;
  gap: 14px;
}

.workflow-panel {
  background: linear-gradient(135deg, white, var(--accent-tint));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workflow-panel strong,
.workflow-panel span {
  display: block;
}

.workflow-panel span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.report-form {
  display: grid;
  grid-template-columns: 190px 150px 140px 140px 70px 70px;
  gap: 8px;
}

.report-form input,
.report-form select {
  min-height: 40px;
}

.toolbar {
  display: flex;
  gap: 12px;
}

.filter-panel,
.action-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-panel summary,
.action-menu summary {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #33454b;
  font-weight: 900;
  cursor: pointer;
}

.filter-panel summary::after,
.action-menu summary::after {
  content: "+";
  color: var(--accent);
}

.filter-panel[open] summary::after,
.action-menu[open] summary::after {
  content: "-";
}

.filter-panel .toolbar {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.action-menu {
  margin-bottom: 18px;
}

.action-menu .action-row {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.search-box input,
.toolbar select {
  min-height: 44px;
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
}

.toolbar select {
  width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.content-grid.admin-mode {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.admin-mode .document-list {
  min-height: auto;
}

.document-list,
.detail-panel {
  min-height: 590px;
  padding: 18px;
  min-width: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.setup-overview article,
.setup-guide,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.setup-overview article {
  padding: 14px;
}

.setup-overview article.is-warning {
  border-color: rgb(255 186 73 / 34%);
  background: #fff8eb;
}

.setup-overview article.is-danger {
  border-color: rgb(198 61 61 / 28%);
  background: #fff1f1;
}

.debt-aging-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customer-command-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), color-mix(in srgb, var(--accent-tint) 48%, white)),
    radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%);
  box-shadow: 0 20px 54px rgb(15 32 28 / 8%);
  overflow: hidden;
}

.customer-command-card h3 {
  margin: 4px 0 5px;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.customer-command-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.customer-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.catalog-role-panel,
.catalog-toolbar-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 13%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 7%);
}

.catalog-role-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.catalog-role-panel.is-seller {
  background:
    radial-gradient(circle at 92% 10%, rgb(245 158 11 / 16%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 72%));
}

.catalog-role-panel.is-warehouse {
  background:
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(240 249 255 / 72%));
}

.catalog-role-panel h3 {
  margin: 0 0 6px;
  color: #10251f;
  font-size: clamp(1.15rem, 2vw, 1.56rem);
}

.catalog-role-panel > div > span,
.catalog-role-cards span,
.catalog-role-cards small,
.catalog-category-strip span,
.catalog-product-main small,
.catalog-product-price span,
.catalog-product-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.35;
}

.catalog-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.catalog-role-cards article,
.catalog-category-strip article,
.catalog-product-card {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

.catalog-role-cards strong {
  display: block;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.catalog-toolbar-panel {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
}

.catalog-category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-category-strip strong {
  display: block;
  margin-bottom: 4px;
  color: #10251f;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.catalog-product-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 210px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.catalog-product-card:hover {
  transform: translateY(-2px);
  border-color: rgb(15 118 110 / 24%);
  box-shadow: 0 14px 30px rgb(8 30 26 / 8%);
}

.catalog-product-card.is-low {
  border-color: rgb(245 158 11 / 25%);
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(255 251 235 / 76%));
}

.catalog-product-card.is-inactive {
  opacity: 0.72;
}

.catalog-product-main > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgb(15 118 110 / 8%);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 950;
}

.catalog-product-main strong {
  display: block;
  margin: 8px 0 5px;
  color: #10251f;
  font-size: 1rem;
  line-height: 1.18;
}

.catalog-product-price strong {
  display: block;
  color: #063f35;
  font-size: 1.42rem;
}

.catalog-product-meta,
.catalog-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-product-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgb(255 255 255 / 76%);
}

.catalog-product-actions button {
  min-height: 36px;
  border-radius: 12px;
}

.inventory-role-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 13%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 7%);
}

.inventory-role-panel.is-warehouse {
  background:
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(240 249 255 / 72%));
}

.inventory-role-panel.is-supervisor {
  background:
    radial-gradient(circle at 92% 10%, rgb(245 158 11 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 72%));
}

.inventory-role-panel h3 {
  margin: 0 0 6px;
  color: #10251f;
  font-size: clamp(1.15rem, 2vw, 1.56rem);
}

.inventory-role-panel > div > span,
.inventory-role-cards span,
.inventory-role-cards small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.35;
}

.inventory-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.inventory-role-cards article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

.inventory-role-cards strong {
  display: block;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.cashier-collection-panel,
.supervisor-portfolio-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--line));
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), color-mix(in srgb, var(--accent-tint) 42%, white));
  box-shadow: 0 18px 40px rgb(15 32 28 / 7%);
}

.cashier-collection-panel h3,
.supervisor-portfolio-panel h3 {
  margin: 0 0 5px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
}

.cashier-collection-panel span,
.supervisor-portfolio-panel span,
.cashier-collection-grid small,
.supervisor-portfolio-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.cashier-collection-grid,
.supervisor-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.supervisor-portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cashier-collection-grid article,
.supervisor-portfolio-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 14px;
  padding: 11px;
  background: rgb(255 255 255 / 76%);
}

.cashier-collection-grid strong,
.supervisor-portfolio-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  overflow-wrap: anywhere;
}

.cashier-collection-grid article.is-warning,
.supervisor-portfolio-grid article.is-warning {
  border-color: rgb(245 158 11 / 25%);
  background: rgb(255 251 235 / 82%);
}

.supervisor-portfolio-grid article.is-danger {
  border-color: rgb(220 38 38 / 23%);
  background: rgb(254 242 242 / 82%);
}

.cashier-collection-grid article.is-ok,
.supervisor-portfolio-grid article.is-ok {
  border-color: rgb(16 185 129 / 18%);
}

/* ZOW Ventas POS stability pass: authoritative layout, fixed visual rhythm and premium background. */
body.app-ventas {
  --zow-bg-deep: #06201c;
  --zow-glass: rgb(255 255 255 / 88%);
  --zow-line: rgb(9 78 65 / 13%);
  --zow-line-strong: rgb(9 78 65 / 22%);
  --zow-text: #10231f;
  --zow-green: #0f766e;
  --zow-gold: #d9a441;
  background:
    radial-gradient(circle at 12% 12%, rgb(16 185 129 / 18%), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgb(217 164 65 / 18%), transparent 24rem),
    radial-gradient(circle at 54% 92%, rgb(14 165 233 / 10%), transparent 30rem),
    linear-gradient(135deg, #f7fbf8 0%, #e9f7f2 48%, #f8f2df 100%) !important;
}

body.app-ventas::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgb(8 63 54 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 63 54 / 4%) 1px, transparent 1px);
  background-size: 52px 52px;
}

body.app-ventas .ventas-operational-shell {
  width: min(1780px, calc(100vw - 18px)) !important;
  margin: 8px auto 22px !important;
}

body.app-ventas .topbar {
  top: 8px !important;
  z-index: 80 !important;
  margin-bottom: 10px !important;
  border-radius: 22px !important;
}

body.app-ventas .ventas-workspace {
  grid-template-columns: minmax(154px, 178px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.app-ventas .ventas-tabs.module-tabs {
  top: 116px !important;
  z-index: 60 !important;
  width: 100% !important;
  max-height: calc(100dvh - 128px) !important;
  padding: 12px 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(237 249 243 / 84%)) !important;
}

body.app-ventas .ventas-tabs.module-tabs button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  justify-content: stretch !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  text-align: left !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 11px !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 0.82rem !important;
  text-overflow: ellipsis !important;
}

body.app-ventas .ventas-workspace .document-list {
  overflow: visible !important;
  padding: 14px !important;
  border-radius: 26px !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(245 252 248 / 76%)),
    radial-gradient(circle at 100% 0%, rgb(20 184 166 / 10%), transparent 22rem) !important;
}

body.app-ventas .section-heading {
  display: none !important;
}

body.app-ventas .role-visual-panel,
body.app-ventas .context-help-dock,
body.app-ventas .free-plan-banner,
body.app-ventas .ventas-notification-center {
  margin-bottom: 12px !important;
}

body.app-ventas .pos-shell.touch-pos-shell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px) !important;
  gap: 14px !important;
  align-items: start !important;
  overflow: visible !important;
}

body.app-ventas .pos-products.touch-panel,
body.app-ventas .pos-cart.touch-cart-panel {
  min-width: 0 !important;
  border: 1px solid var(--zow-line) !important;
  border-radius: 24px !important;
  background: var(--zow-glass) !important;
  box-shadow: 0 22px 60px rgb(6 32 28 / 10%) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
}

body.app-ventas .pos-products.touch-panel {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 14px !important;
  overflow: visible !important;
}

body.app-ventas .touch-pos-head {
  position: sticky !important;
  top: 116px !important;
  z-index: 35 !important;
  margin: -2px -2px 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--zow-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 252 246 / 92%)) !important;
  box-shadow: 0 14px 28px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .touch-pos-head h3,
body.app-ventas .touch-cart-head h3 {
  margin: 0 !important;
  color: var(--zow-text) !important;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem) !important;
  line-height: 1 !important;
}

body.app-ventas .touch-shortcuts {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}

body.app-ventas .touch-shortcuts span {
  border: 1px solid var(--zow-line) !important;
  border-radius: 999px !important;
  padding: 6px 9px !important;
  color: #075e54 !important;
  background: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

body.app-ventas .pos-search-row {
  position: sticky !important;
  top: 186px !important;
  z-index: 34 !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto auto !important;
  gap: 8px !important;
  align-items: end !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--zow-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(241 252 247 / 92%)) !important;
  box-shadow: 0 14px 30px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .pos-search-row .toolbar-search,
body.app-ventas .pos-search-row .touch-search {
  min-width: 0 !important;
  margin: 0 !important;
}

body.app-ventas .pos-search-row input,
body.app-ventas .pos-search-row button {
  min-height: 48px !important;
}

body.app-ventas .pos-search-row button {
  min-width: 92px !important;
  white-space: nowrap !important;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint,
body.app-ventas .pos-result-hint {
  display: none !important;
}

body.app-ventas .pos-section-block {
  min-width: 0 !important;
  border-radius: 18px !important;
  background: rgb(255 255 255 / 74%) !important;
}

body.app-ventas .pos-products-block .touch-product-grid,
body.app-ventas .product-suggestion-grid.touch-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-ventas .touch-product-card {
  min-height: 184px !important;
  padding: 14px !important;
  border: 1px solid var(--zow-line) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 100% 100%, rgb(217 164 65 / 14%), transparent 5rem),
    linear-gradient(145deg, #ffffff, #f5fbf8) !important;
  box-shadow: 0 16px 34px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .touch-product-card strong {
  display: block !important;
  min-height: 2.3em !important;
  color: var(--zow-text) !important;
  line-height: 1.12 !important;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky !important;
  top: 116px !important;
  z-index: 32 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 10px !important;
  max-height: calc(100dvh - 128px) !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .pos-visible-checkout-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 9px !important;
  align-items: center !important;
  margin: 0 !important;
  border-radius: 20px !important;
  padding: 12px !important;
  background:
    radial-gradient(circle at 100% 100%, rgb(217 164 65 / 34%), transparent 9rem),
    linear-gradient(135deg, #064e3b, #0f766e) !important;
  box-shadow: 0 16px 34px rgb(6 32 28 / 18%) !important;
}

body.app-ventas .cashier-checkout-bar strong {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem) !important;
  line-height: 0.95 !important;
}

body.app-ventas .cashier-checkout-bar span,
body.app-ventas .cashier-checkout-bar small {
  color: rgb(255 255 255 / 78%) !important;
}

body.app-ventas .cashier-checkout-bar button {
  min-height: 48px !important;
  white-space: nowrap !important;
}

body.app-ventas .touch-cart-head {
  display: none !important;
}

body.app-ventas .touch-cart-panel form,
body.app-ventas .cashier-cart-form {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto !important;
  gap: 9px !important;
  overflow: hidden !important;
}

body.app-ventas .pos-customer-row,
body.app-ventas .pos-sale-options {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: end !important;
}

body.app-ventas .pos-sale-options {
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr) !important;
}

body.app-ventas .pos-cart-list,
body.app-ventas .cashier-cart-items {
  min-height: 120px !important;
  max-height: none !important;
  overflow: auto !important;
  padding-right: 4px !important;
  border-radius: 16px !important;
  scrollbar-gutter: stable !important;
}

body.app-ventas .pos-total-block,
body.app-ventas .pos-actions-block {
  margin: 0 !important;
}

body.app-ventas .sale-total-card {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.app-ventas .sale-total-card > div:not(.is-total) {
  display: none !important;
}

body.app-ventas .touch-sale-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

body.app-ventas .touch-sale-actions button {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 7px 8px !important;
  font-size: 0.82rem !important;
}

body.app-ventas .mobile-pos-summary,
body.app-ventas .pos-mobile-switch {
  display: none;
}

@media (min-width: 1181px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar {
    position: sticky !important;
    top: 8px !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-shell {
    height: auto !important;
    min-height: calc(100dvh - 118px) !important;
    overflow: visible !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-workspace {
    grid-template-columns: minmax(620px, 1fr) minmax(360px, 430px) !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane,
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane {
    overflow: visible !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block .touch-product-grid {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-operational-shell {
    width: min(100%, calc(100vw - 10px)) !important;
    margin-top: 5px !important;
  }

  body.app-ventas .ventas-workspace {
    display: block !important;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 75 !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    display: none !important;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs {
    display: grid !important;
    position: sticky !important;
    top: 142px !important;
    z-index: 74 !important;
    max-height: 48dvh !important;
    margin-bottom: 10px !important;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .pos-cart.touch-cart-panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.app-ventas .pos-search-row,
  body.app-ventas .touch-pos-head {
    position: sticky !important;
    top: 88px !important;
  }

  body.app-ventas .pos-search-row {
    top: 152px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.app-ventas .pos-search-row #scanAddBtn,
  body.app-ventas .pos-search-row #clearSearchBtn {
    display: none !important;
  }
}

@media (max-width: 720px) {
  body.app-ventas .topbar {
    position: relative !important;
    top: auto !important;
    border-radius: 18px !important;
  }

  body.app-ventas .topbar-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row {
    position: relative !important;
    top: auto !important;
  }

  body.app-ventas .touch-shortcuts {
    justify-content: flex-start !important;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-ventas .touch-product-card {
    min-height: 150px !important;
  }

  body.app-ventas .cashier-checkout-bar,
  body.app-ventas .pos-visible-checkout-bar {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .pos-sale-options,
  body.app-ventas .pos-customer-row {
    grid-template-columns: 1fr !important;
  }
}

/* Autoridad final real para /panel: evita que el contenido quede atrapado en el ancho de Correspondencia. */
body.app-zow-panel:not(.app-zow-panel-login) #appShell,
body.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-zow-panel:not(.app-zow-panel-login) .document-list,
body.app-zow-panel:not(.app-zow-panel-login) #documentList,
body.app-zow-panel:not(.app-zow-panel-login) .zow-saas-command-center,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-command-shell {
  width: calc(100vw - clamp(28px, 4vw, 56px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.app-zow-panel:not(.app-zow-panel-login) #appShell {
  display: block !important;
  padding: clamp(14px, 2vw, 28px) 0 !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard,
body.app-zow-panel:not(.app-zow-panel-login) .system-plan-board,
body.app-zow-panel:not(.app-zow-panel-login) .admin-tabs,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-main-flow,
body.app-zow-panel:not(.app-zow-panel-login) .admin-panel,
body.app-zow-panel:not(.app-zow-panel-login) .renewal-panel,
body.app-zow-panel:not(.app-zow-panel-login) .zow-production-review,
body.app-zow-panel:not(.app-zow-panel-login) .cloud-safe-note {
  width: 100% !important;
  max-width: none !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
body.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
}

@media (max-width: 900px) {
  body.app-zow-panel:not(.app-zow-panel-login) #appShell,
  body.app-zow-panel:not(.app-zow-panel-login) .workspace,
  body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
  body.app-zow-panel:not(.app-zow-panel-login) .document-list,
  body.app-zow-panel:not(.app-zow-panel-login) #documentList,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-saas-command-center,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-command-shell {
    width: calc(100vw - 20px) !important;
  }

  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
    grid-template-columns: 1fr !important;
  }
}

/* Verdadero cierre: override final de ZOW Ventas despues de todas las reglas legacy. */
body.app-ventas {
  background:
    radial-gradient(circle at 12% 12%, rgb(16 185 129 / 18%), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgb(217 164 65 / 18%), transparent 24rem),
    linear-gradient(135deg, #f7fbf8 0%, #e9f7f2 48%, #f8f2df 100%) !important;
}

body.app-ventas .ventas-operational-shell {
  width: min(1780px, calc(100vw - 18px)) !important;
  margin: 8px auto 22px !important;
}

body.app-ventas .ventas-workspace {
  grid-template-columns: minmax(154px, 178px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.app-ventas .ventas-tabs.module-tabs {
  top: 116px !important;
  z-index: 60 !important;
  max-height: calc(100dvh - 128px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.app-ventas .ventas-tabs.module-tabs button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  text-align: left !important;
  white-space: normal !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-label {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 0.82rem !important;
  text-overflow: ellipsis !important;
}

body.app-ventas .ventas-workspace .document-list {
  overflow: visible !important;
}

body.app-ventas .section-heading {
  display: none !important;
}

body.app-ventas .pos-shell.touch-pos-shell {
  display: grid !important;
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px) !important;
  gap: 14px !important;
  align-items: start !important;
  overflow: visible !important;
}

body.app-ventas .pos-products.touch-panel {
  overflow: visible !important;
}

body.app-ventas .touch-pos-head {
  position: sticky !important;
  top: 116px !important;
  z-index: 35 !important;
  padding: 12px 14px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 252 246 / 92%)) !important;
  box-shadow: 0 14px 28px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .pos-search-row {
  position: sticky !important;
  top: 186px !important;
  z-index: 34 !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto auto !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(241 252 247 / 92%)) !important;
  box-shadow: 0 14px 30px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint,
body.app-ventas .pos-result-hint {
  display: none !important;
}

body.app-ventas .product-suggestion-grid.touch-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-ventas .touch-product-card {
  min-height: 184px !important;
  padding: 14px !important;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky !important;
  top: 116px !important;
  z-index: 32 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  max-height: calc(100dvh - 128px) !important;
  overflow: hidden !important;
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .pos-visible-checkout-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 9px !important;
}

body.app-ventas .touch-cart-head {
  display: none !important;
}

body.app-ventas .touch-cart-panel form,
body.app-ventas .cashier-cart-form {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto !important;
  overflow: hidden !important;
}

body.app-ventas .pos-cart-list,
body.app-ventas .cashier-cart-items {
  min-height: 120px !important;
  overflow: auto !important;
  scrollbar-gutter: stable !important;
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-workspace {
    display: block !important;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 75 !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    display: none !important;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs {
    display: grid !important;
    max-height: 48dvh !important;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .pos-cart.touch-cart-panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row {
    position: relative !important;
    top: auto !important;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-ventas .cashier-checkout-bar,
  body.app-ventas .pos-visible-checkout-bar {
    grid-template-columns: 1fr !important;
  }
}

/* EOF override for ZOW Ventas POS. This must stay after all legacy app styles. */
body.app-ventas {
  background:
    radial-gradient(circle at 12% 12%, rgb(16 185 129 / 18%), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgb(217 164 65 / 18%), transparent 24rem),
    linear-gradient(135deg, #f7fbf8 0%, #e9f7f2 48%, #f8f2df 100%) !important;
}

body.app-ventas .ventas-operational-shell {
  width: min(1780px, calc(100vw - 18px)) !important;
  margin: 8px auto 22px !important;
}

body.app-ventas .ventas-workspace {
  grid-template-columns: minmax(154px, 178px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.app-ventas .ventas-tabs.module-tabs {
  top: 116px !important;
  z-index: 60 !important;
  max-height: calc(100dvh - 128px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.app-ventas .ventas-tabs.module-tabs button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  text-align: left !important;
  white-space: normal !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-label {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 0.82rem !important;
  text-overflow: ellipsis !important;
}

body.app-ventas .ventas-workspace .document-list {
  overflow: visible !important;
}

body.app-ventas .section-heading {
  display: none !important;
}

body.app-ventas .pos-shell.touch-pos-shell {
  display: grid !important;
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px) !important;
  gap: 14px !important;
  align-items: start !important;
  overflow: visible !important;
}

body.app-ventas .pos-products.touch-panel {
  overflow: visible !important;
}

body.app-ventas .touch-pos-head {
  position: sticky !important;
  top: 116px !important;
  z-index: 35 !important;
  padding: 12px 14px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 252 246 / 92%)) !important;
  box-shadow: 0 14px 28px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .pos-search-row {
  position: sticky !important;
  top: 186px !important;
  z-index: 34 !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto auto !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(241 252 247 / 92%)) !important;
  box-shadow: 0 14px 30px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint,
body.app-ventas .pos-result-hint {
  display: none !important;
}

body.app-ventas .product-suggestion-grid.touch-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-ventas .touch-product-card {
  min-height: 184px !important;
  padding: 14px !important;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky !important;
  top: 116px !important;
  z-index: 32 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  max-height: calc(100dvh - 128px) !important;
  overflow: hidden !important;
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .pos-visible-checkout-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 9px !important;
}

body.app-ventas .touch-cart-head {
  display: none !important;
}

body.app-ventas .touch-cart-panel form,
body.app-ventas .cashier-cart-form {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto !important;
  overflow: hidden !important;
}

body.app-ventas .pos-cart-list,
body.app-ventas .cashier-cart-items {
  min-height: 120px !important;
  overflow: auto !important;
  scrollbar-gutter: stable !important;
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-workspace {
    display: block !important;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 75 !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    display: none !important;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs {
    display: grid !important;
    max-height: 48dvh !important;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .pos-cart.touch-cart-panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row {
    position: relative !important;
    top: auto !important;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-ventas .cashier-checkout-bar,
  body.app-ventas .pos-visible-checkout-bar {
    grid-template-columns: 1fr !important;
  }
}

/* Final ZOW Ventas POS override: keep this at EOF so it wins over legacy POS layers. */
body.app-ventas {
  background:
    radial-gradient(circle at 12% 12%, rgb(16 185 129 / 18%), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgb(217 164 65 / 18%), transparent 24rem),
    linear-gradient(135deg, #f7fbf8 0%, #e9f7f2 48%, #f8f2df 100%) !important;
}

body.app-ventas .ventas-operational-shell {
  width: min(1780px, calc(100vw - 18px)) !important;
  margin: 8px auto 22px !important;
}

body.app-ventas .ventas-workspace {
  grid-template-columns: minmax(154px, 178px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.app-ventas .ventas-tabs.module-tabs {
  top: 116px !important;
  z-index: 60 !important;
  max-height: calc(100dvh - 128px) !important;
  padding: 12px 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.app-ventas .ventas-tabs.module-tabs button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  text-align: left !important;
  white-space: normal !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-label {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 0.82rem !important;
  text-overflow: ellipsis !important;
}

body.app-ventas .ventas-workspace .document-list {
  overflow: visible !important;
}

body.app-ventas .section-heading {
  display: none !important;
}

body.app-ventas .pos-shell.touch-pos-shell {
  display: grid !important;
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px) !important;
  gap: 14px !important;
  align-items: start !important;
  overflow: visible !important;
}

body.app-ventas .pos-products.touch-panel {
  overflow: visible !important;
}

body.app-ventas .touch-pos-head {
  position: sticky !important;
  top: 116px !important;
  z-index: 35 !important;
  padding: 12px 14px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 252 246 / 92%)) !important;
  box-shadow: 0 14px 28px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .pos-search-row {
  position: sticky !important;
  top: 186px !important;
  z-index: 34 !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto auto !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgb(9 78 65 / 13%) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(241 252 247 / 92%)) !important;
  box-shadow: 0 14px 30px rgb(6 32 28 / 8%) !important;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint,
body.app-ventas .pos-result-hint {
  display: none !important;
}

body.app-ventas .product-suggestion-grid.touch-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-ventas .touch-product-card {
  min-height: 184px !important;
  padding: 14px !important;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky !important;
  top: 116px !important;
  z-index: 32 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  max-height: calc(100dvh - 128px) !important;
  overflow: hidden !important;
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .pos-visible-checkout-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 9px !important;
}

body.app-ventas .touch-cart-head {
  display: none !important;
}

body.app-ventas .touch-cart-panel form,
body.app-ventas .cashier-cart-form {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto !important;
  overflow: hidden !important;
}

body.app-ventas .pos-cart-list,
body.app-ventas .cashier-cart-items {
  min-height: 120px !important;
  overflow: auto !important;
  scrollbar-gutter: stable !important;
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-workspace {
    display: block !important;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 75 !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    display: none !important;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs {
    display: grid !important;
    max-height: 48dvh !important;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .pos-cart.touch-cart-panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row {
    position: relative !important;
    top: auto !important;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-ventas .cashier-checkout-bar,
  body.app-ventas .pos-visible-checkout-bar {
    grid-template-columns: 1fr !important;
  }
}

/* Panel ZOW SaaS full-width command center. */
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f6;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  z-index: 20;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 18px 22px 34px 270px;
  background: #eef3f6;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .topbar {
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  border: 1px solid #d6e1e5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgb(18 35 42 / 8%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .metrics,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .filter-panel {
  display: none;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .document-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .document-list {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .section-heading,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .detail-panel {
  display: none !important;
}

.zow-saas-command-center {
  display: grid;
  width: 100%;
  gap: 16px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-panel,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .cloud-safe-note,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .renewal-panel {
  width: 100%;
  max-width: none;
  border: 1px solid #d6e1e5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgb(18 35 42 / 8%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard {
  padding: 18px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #10262b, #1e6b62);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-system-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-tabs {
  position: sticky;
  top: 10px;
  z-index: 10;
  width: 100%;
  border: 1px solid #d6e1e5;
  border-radius: 14px;
  padding: 8px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 30px rgb(18 35 42 / 8%);
  backdrop-filter: blur(14px);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .span-2 {
  grid-column: span 4;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-check-card {
  align-content: start;
  min-height: 118px;
  border: 1px solid #d8e4e8;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfc;
}

.system-check-card strong,
.system-check-card span {
  display: block;
}

.system-check-card span {
  margin-top: 6px;
  color: #66757b;
  font-size: .83rem;
  line-height: 1.35;
}

.transport-system-guidance,
.health-system-guidance {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  border: 1px solid #d8e4e8;
  border-radius: 14px;
  padding: 16px;
  background: #f8fbfc;
}

.transport-system-guidance.is-enabled,
.health-system-guidance.is-enabled {
  border-color: #9bd7c4;
  background: #f0fdfa;
}

.transport-guidance-head,
.health-guidance-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.transport-guidance-head h4,
.health-guidance-head h4 {
  margin: 4px 0;
}

.transport-guidance-head span,
.health-guidance-head span {
  color: #607178;
}

.transport-guidance-grid,
.health-guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.transport-guidance-grid article,
.health-guidance-grid article {
  min-height: 112px;
  border: 1px solid #d8e4e8;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.transport-guidance-grid span,
.health-guidance-grid span {
  color: #0f766e;
  font-size: .76rem;
  font-weight: 900;
}

.transport-guidance-grid strong,
.health-guidance-grid strong {
  display: block;
  margin-top: 8px;
}

.transport-guidance-grid small,
.health-guidance-grid small {
  display: block;
  margin-top: 6px;
  color: #66757b;
  line-height: 1.35;
}

.transport-guidance-list,
.health-guidance-list {
  margin: 0;
  padding-left: 18px;
  color: #52636a;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .app-shell {
    padding-left: 22px;
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .sidebar {
    position: static;
    width: 100%;
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-checks,
  .transport-guidance-grid,
  .health-guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .app-shell {
    padding: 12px;
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-checks,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .form-grid,
  .transport-guidance-grid,
  .health-guidance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .admin-form .span-2 {
    grid-column: span 1;
  }
}

body.app-ventas .collection-priority-inbox {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

body.app-ventas .collection-priority-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

body.app-ventas .collection-priority-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.12rem;
}

body.app-ventas .collection-priority-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

body.app-ventas .collection-priority-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  white-space: nowrap;
}

body.app-ventas .collection-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.app-ventas .collection-priority-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 8px;
  padding: 12px;
  background: #f8fffc;
}

body.app-ventas .collection-priority-card.is-ok {
  border-color: rgb(16 185 129 / 22%);
  background: rgb(236 253 245 / 78%);
}

body.app-ventas .collection-priority-card.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: rgb(255 251 235 / 82%);
}

body.app-ventas .collection-priority-card.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: rgb(254 242 242 / 84%);
}

body.app-ventas .collection-priority-card span,
body.app-ventas .collection-priority-card small,
body.app-ventas .collection-priority-card p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.32;
}

body.app-ventas .collection-priority-card strong {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 1.06rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .collection-priority-card p {
  margin: 0;
}

body.app-ventas .collection-priority-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

body.app-ventas .collection-priority-actions button {
  min-height: 38px;
}

@media (max-width: 980px) {
  body.app-ventas .collection-priority-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .collection-priority-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .collection-priority-head > strong {
    width: max-content;
  }
}

.customer-command-card.is-seller {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(255 251 235 / 78%)),
    radial-gradient(circle at 92% 14%, rgb(245 158 11 / 20%), transparent 34%);
}

.customer-command-card.is-cashier {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%)),
    radial-gradient(circle at 92% 14%, rgb(16 185 129 / 18%), transparent 34%);
}

.customer-command-card.is-supervisor {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(240 249 255 / 78%)),
    radial-gradient(circle at 92% 14%, rgb(14 165 233 / 16%), transparent 34%);
}

.customer-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.collection-plan-grid,
.customer-workspace-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.customer-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.customer-filter-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.customer-filter-actions button {
  display: grid;
  gap: 3px;
  min-height: 74px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 15px;
  padding: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgb(14 165 233 / 10%), transparent 32%),
    rgb(255 255 255 / 86%);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 10px 24px rgb(8 30 26 / 5%);
}

.customer-filter-actions button.is-active {
  border-color: rgb(15 118 110 / 32%);
  background:
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(145deg, #0f766e, #10b981);
  color: white;
  box-shadow: 0 16px 36px rgb(15 118 110 / 18%);
}

.customer-filter-actions span,
.customer-filter-actions small {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

.customer-filter-actions strong {
  color: var(--accent-dark);
  font-size: 1.18rem;
  line-height: 1;
}

.customer-filter-actions button.is-active strong {
  color: white;
}

.customer-filter-bar > .ghost-button {
  min-width: 132px;
  min-height: 74px;
}

.collection-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.inventory-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.inventory-decision-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(140px, 0.7fr)) auto;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 48%, white)),
    radial-gradient(circle at 3% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32%);
  box-shadow: 0 16px 38px rgb(15 32 28 / 7%);
}

.inventory-decision-strip.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(145deg, #ffffff, #fef2f2);
}

.inventory-decision-strip.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(145deg, #ffffff, #fffbeb);
}

.inventory-decision-strip article {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 10px;
  background: rgb(255 255 255 / 74%);
}

.inventory-decision-strip span,
.inventory-decision-strip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.inventory-decision-strip span {
  text-transform: uppercase;
}

.inventory-decision-strip strong {
  color: var(--accent-dark);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.inventory-decision-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.combo-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.combo-builder-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-tint) 30%, #fff);
}

.combo-product-card {
  border-color: color-mix(in srgb, var(--ok) 24%, var(--line));
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
}

.debt-aging-grid article,
.collection-plan-grid article,
.customer-health-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent-tint) 30%, white));
}

.inventory-insight-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent-tint) 30%, white));
}

.debt-aging-grid article.is-ok {
  border-color: rgb(22 163 74 / 22%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.customer-health-grid article.is-ok {
  border-color: rgb(22 163 74 / 22%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.collection-plan-grid article.is-ok {
  border-color: rgb(22 163 74 / 22%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.debt-aging-grid article.is-muted,
.collection-plan-grid article.is-muted {
  border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.inventory-insight-grid article.is-ok {
  border-color: rgb(22 163 74 / 22%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.debt-aging-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.customer-health-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.collection-plan-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.inventory-insight-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.debt-aging-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.customer-health-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.collection-plan-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.inventory-insight-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.debt-aging-grid span,
.debt-aging-grid small,
.collection-plan-grid span,
.collection-plan-grid small,
.customer-health-grid span,
.customer-health-grid small,
.inventory-insight-grid span,
.inventory-insight-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.debt-aging-grid strong,
.collection-plan-grid strong,
.customer-health-grid strong,
.inventory-insight-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.customer-directory-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  align-items: center;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), color-mix(in srgb, var(--accent-tint) 26%, white));
}

.customer-credit-meter {
  width: min(320px, 100%);
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgb(15 32 28 / 10%);
  overflow: hidden;
}

.customer-credit-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ok), var(--accent));
  transition: width 260ms ease;
}

.customer-credit-meter.is-warning i {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.customer-credit-meter.is-danger i {
  background: linear-gradient(90deg, #b91c1c, #fb7185);
}

.customer-risk-row,
.collection-action-row,
.receivable-row {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.customer-risk-row:hover,
.collection-action-row:hover,
.receivable-row:hover,
.customer-directory-row:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 14px 32px rgb(15 32 28 / 8%);
  transform: translateY(-1px);
}

.receivable-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.receivable-contact-actions .ghost-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  text-decoration: none;
}

.receivable-contact-actions span {
  align-self: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--muted) 8%, white);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.setup-overview span,
.admin-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.setup-overview strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.setup-guide {
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 16px;
}

.setup-guide ol {
  margin: 0;
  padding-left: 20px;
  color: #425158;
  line-height: 1.7;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 14px;
  font-weight: 900;
  color: var(--muted);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-tabs button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.admin-tabs button:not([hidden]):hover {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-soft) 62%, white);
  transform: translateY(-1px);
}

.admin-tabs button.is-active:hover {
  color: white;
  background: var(--accent);
}

.ventas-shell .topbar {
  background:
    linear-gradient(120deg, rgb(255 255 255 / 94%), color-mix(in srgb, var(--accent-tint) 74%, white)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}

.ventas-shell .metrics article {
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--accent-tint) 42%, white));
}

.ventas-module-grid,
.promotion-grid,
.report-grid,
.route-grid,
.service-strip {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.ventas-module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ventas-module-card {
  min-height: 122px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgb(67 146 100 / 12%), transparent 32%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 54%, white));
  color: var(--ink);
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 14px;
  box-shadow: 0 16px 42px rgb(32 74 48 / 7%);
}

.ventas-module-card span,
.promotion-card span,
.route-card-head span,
.service-strip span,
.report-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ventas-module-card strong {
  max-width: 28ch;
  font-size: 1.02rem;
  line-height: 1.35;
}

.ventas-module-card:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.service-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-strip article,
.report-grid article,
.promotion-card,
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 14px 38px rgb(15 23 42 / 6%);
}

.service-strip article {
  display: grid;
  gap: 5px;
}

.promotion-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promotion-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
}

.promotion-card strong {
  font-size: 1.35rem;
}

.promotion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.promotion-card.is-green {
  background: linear-gradient(145deg, #ffffff, #e8f7ed);
}

.promotion-card.is-amber {
  background: linear-gradient(145deg, #ffffff, #fff0ce);
}

.promotion-card.is-red {
  background: linear-gradient(145deg, #ffffff, #fff0ee);
}

.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card {
  display: grid;
  gap: 14px;
}

.route-card-head,
.route-stats,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-card-head strong {
  font-size: 1.12rem;
}

.route-stats span {
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--accent-tint) 72%, white);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-customer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-customer-list span {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid article {
  display: grid;
  gap: 6px;
}

.report-grid strong {
  font-size: 1.32rem;
}

.report-grid small,
.price-row small {
  color: var(--muted);
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.backup-control-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 78%)),
    radial-gradient(circle at 90% 10%, rgb(15 118 110 / 14%), transparent 34%);
  box-shadow: 0 18px 44px rgb(15 118 110 / 8%);
}

.backup-control-panel.is-empty {
  border-color: rgb(245 158 11 / 28%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 80%)),
    radial-gradient(circle at 90% 10%, rgb(245 158 11 / 14%), transparent 34%);
}

.backup-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.backup-control-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.backup-control-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.backup-control-head span,
.backup-control-grid small,
.backup-check-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.backup-control-grid,
.backup-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.backup-control-grid article,
.backup-check-grid article {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
}

.backup-control-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.backup-control-grid strong,
.backup-check-grid strong {
  display: block;
  color: var(--accent-dark);
}

.backup-control-grid strong {
  margin: 5px 0;
  font-size: 1.35rem;
}

.backup-check-grid article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.backup-check-grid article.pending {
  border-color: rgb(245 158 11 / 26%);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.backup-check-grid b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 0.72rem;
}

.backup-check-grid article.pending b {
  background: #fef3c7;
  color: #92400e;
}

.report-role-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) auto minmax(360px, 1.28fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), color-mix(in srgb, var(--accent-tint) 46%, white));
  box-shadow: 0 20px 52px rgb(15 32 28 / 8%);
}

.report-role-panel.is-supervisor {
  background:
    radial-gradient(circle at 92% 12%, rgb(14 165 233 / 16%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 78%));
}

.report-role-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.report-role-copy h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.1rem, 2vw, 1.48rem);
}

.report-role-copy > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.42;
}

.report-role-score {
  display: grid;
  min-width: 112px;
  place-items: center;
  border-radius: 16px;
  padding: 12px;
  background: var(--accent-dark);
  color: white;
  font-size: clamp(1.25rem, 2.6vw, 1.78rem);
  line-height: 1;
  text-align: center;
}

.report-role-cards,
.supervisor-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-role-cards article,
.supervisor-focus-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
  min-width: 0;
}

.report-role-cards span,
.report-role-cards small,
.supervisor-focus-grid span,
.supervisor-focus-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.32;
}

.report-role-cards strong,
.supervisor-focus-grid strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
  line-height: 1.1;
}

.supervisor-report-focus {
  background:
    radial-gradient(circle at 94% 10%, rgb(14 165 233 / 13%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(240 249 255 / 78%));
}

.supervisor-focus-grid article.is-ok {
  border-color: rgb(16 185 129 / 22%);
  background: rgb(236 253 245 / 76%);
}

.supervisor-focus-grid article.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: rgb(255 251 235 / 78%);
}

.supervisor-focus-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: rgb(254 242 242 / 78%);
}

.supervisor-focus-grid .ghost-button {
  min-height: 34px;
  margin-top: 2px;
}

body.app-ventas .operational-review-matrix {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 255 252 / 92%));
}

body.app-ventas .published-review-console {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 20%);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 97%), rgb(239 246 255 / 70%)),
    linear-gradient(90deg, rgb(15 118 110 / 8%), transparent 42%);
  box-shadow: 0 16px 36px rgb(15 23 42 / 6%);
}

body.app-ventas .published-review-console.is-danger {
  border-color: rgb(190 18 60 / 22%);
}

body.app-ventas .published-review-main,
body.app-ventas .published-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

body.app-ventas .published-review-main h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.2rem;
}

body.app-ventas .published-review-main span,
body.app-ventas .published-review-actions span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

body.app-ventas .published-review-main > strong {
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

body.app-ventas .published-review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .published-review-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 84%);
}

body.app-ventas .published-review-grid article.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: rgb(255 251 235 / 84%);
}

body.app-ventas .published-review-grid span,
body.app-ventas .published-review-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

body.app-ventas .published-review-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--accent-dark);
  font-size: 1.02rem;
  line-height: 1.1;
}

body.app-ventas .operational-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .operational-review-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.15rem;
}

body.app-ventas .operational-review-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

body.app-ventas .operational-review-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  white-space: nowrap;
}

body.app-ventas .operational-review-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .operational-review-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

body.app-ventas .operational-review-card.is-ok {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

body.app-ventas .operational-review-card.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: rgb(255 251 235 / 82%);
}

body.app-ventas .operational-review-card span,
body.app-ventas .operational-review-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.28;
}

body.app-ventas .operational-review-card strong {
  color: var(--accent-dark);
  font-size: 0.98rem;
  line-height: 1.12;
}

body.app-ventas .operational-review-card button {
  min-height: 34px;
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .report-role-panel {
    grid-template-columns: 1fr;
  }

  .report-role-score {
    min-height: 72px;
  }

  .report-role-cards,
  .supervisor-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .operational-review-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.app-ventas .published-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.app-ventas .operational-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .operational-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .operational-review-head > strong {
    width: max-content;
  }

  body.app-ventas .published-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .report-role-cards,
  .supervisor-focus-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .operational-review-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .published-review-grid {
    grid-template-columns: 1fr;
  }

  .report-role-score {
    min-width: 0;
    width: 100%;
  }
}

.report-export-card {
  min-height: 118px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 12%, rgb(245 158 11 / 13%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(242 250 247 / 86%));
  display: grid;
  gap: 10px;
  align-content: space-between;
  box-shadow: 0 18px 46px rgb(15 32 28 / 8%);
}

.report-export-card strong {
  font-size: 1.05rem;
}

.report-export-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-risk-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-risk-columns > div {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.report-risk-columns > div > strong {
  color: var(--accent-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.sale-return-panel {
  margin-top: 12px;
}

.return-item-list {
  display: grid;
  gap: 8px;
}

.return-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 82%);
}

.return-item-row span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 900;
}

.return-item-row small {
  color: var(--muted);
  font-weight: 800;
}

.price-list {
  display: grid;
  gap: 10px;
}

.price-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-tint) 60%, white), white);
}

.price-row > div {
  display: grid;
  gap: 4px;
}

.price-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.inventory-row .admin-row-meta {
  align-items: flex-end;
}

.mini-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.mini-action-row .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.toolbar-search {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.toolbar-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.cart-row .cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.cart-actions .ghost-button {
  min-height: 32px;
  min-width: 34px;
  padding: 0 10px;
}

.operation-model-grid,
.role-template-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.operation-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operation-model-grid article,
.role-template-grid button {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 44%, white));
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 6px;
}

.role-template-grid button {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.role-template-grid button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 12px 30px rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.operation-model-grid span,
.role-template-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operation-model-grid small,
.role-template-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.user-role-coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.user-role-coverage article {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 42%, white));
  box-shadow: 0 12px 28px rgb(15 32 28 / 5%);
}

.user-role-coverage article.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: linear-gradient(145deg, #ffffff, #fffbeb);
}

.user-role-coverage span,
.user-role-coverage small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.user-role-coverage span {
  text-transform: uppercase;
}

.user-role-coverage strong {
  display: block;
  margin: 4px 0;
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.user-scope-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.user-scope-strip small {
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.access-security-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(240 253 250 / 76%)),
    radial-gradient(circle at 90% 12%, rgb(14 165 233 / 13%), transparent 34%);
  box-shadow: 0 16px 38px rgb(15 118 110 / 7%);
}

.access-security-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.access-security-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
}

.access-security-head span,
.access-security-tips span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.access-security-head > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 13px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--accent-dark);
  font-weight: 950;
}

.access-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.access-security-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
  border-radius: 12px;
  padding: 10px;
  background: rgb(255 255 255 / 82%);
}

.access-security-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.access-security-grid article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #ffffff, #fef2f2);
}

.access-security-grid span,
.access-security-grid small,
.access-security-grid strong,
.access-security-tips strong {
  display: block;
}

.access-security-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-security-grid strong {
  margin: 5px 0;
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.access-security-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.35;
}

.access-security-tips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 11px;
  background: rgb(255 255 255 / 72%);
}

.access-security-tips > div {
  min-width: 0;
}

.access-security-tips button {
  flex: 0 0 auto;
}

.access-security-tips strong {
  margin-bottom: 4px;
  color: var(--accent-dark);
}

.role-advisor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin: 14px 0;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 18%, rgb(20 184 166 / 16%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 76%));
  box-shadow: 0 16px 38px rgb(15 118 110 / 7%);
}

.role-advisor-panel.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background:
    radial-gradient(circle at 92% 18%, rgb(245 158 11 / 15%), transparent 34%),
    linear-gradient(135deg, #ffffff, #fffbeb);
}

.role-advisor-panel.is-control {
  border-color: rgb(14 165 233 / 22%);
  background:
    radial-gradient(circle at 92% 18%, rgb(14 165 233 / 14%), transparent 34%),
    linear-gradient(135deg, #ffffff, #f0f9ff);
}

.role-advisor-main h3 {
  margin: 2px 0 5px;
  color: var(--accent-dark);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.role-advisor-main > span {
  display: block;
  max-width: 820px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 830;
  line-height: 1.45;
}

.role-advisor-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.role-advisor-metrics article {
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 13px;
  padding: 10px;
  background: rgb(255 255 255 / 70%);
}

.role-advisor-metrics span,
.role-advisor-metrics small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.role-advisor-metrics strong {
  display: block;
  margin: 3px 0;
  color: var(--accent-dark);
  font-size: 1.2rem;
}

.role-advisor-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 168px;
}

.role-advisor-actions button {
  width: 100%;
  min-height: 39px;
}

.users-delivery-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.users-delivery-actions > span {
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 920;
}

.users-delivery-actions button {
  min-height: 36px;
  border-radius: 999px;
  white-space: nowrap;
}

.role-permission-grid article,
.permission-note {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 42%, white));
  box-shadow: 0 12px 28px rgb(15 23 42 / 5%);
}

.role-permission-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.role-permission-grid span,
.permission-note span {
  color: var(--muted);
}

.role-permission-grid span {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-permission-grid strong {
  color: var(--ink);
}

.role-permission-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.role-permission-grid li {
  position: relative;
  padding-left: 18px;
}

.role-permission-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.role-access-simulator {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 36%, white));
  box-shadow: 0 18px 42px rgb(15 23 42 / 6%);
}

.role-access-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

.role-access-head span,
.role-access-head small,
.role-access-modules span {
  color: var(--muted);
}

.role-access-head span {
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-access-head strong {
  display: block;
  margin: 3px 0;
  color: var(--accent-dark);
  font-size: 1.08rem;
}

.role-access-head small {
  line-height: 1.4;
}

.role-access-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.role-access-tabs button {
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.role-access-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(15 23 42 / 8%);
}

.role-access-tabs button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.role-access-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-access-modules article {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.86);
}

.role-access-modules b {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1;
}

.role-access-modules strong {
  color: var(--ink);
}

.role-access-modules span {
  font-size: 0.78rem;
  line-height: 1.34;
}

.role-access-modules article.is-allowed b {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-dark);
}

.role-access-modules article.is-blocked {
  opacity: 0.72;
  background: linear-gradient(145deg, #fff, #f8fafc);
}

.role-access-modules article.is-blocked b {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 1180px) {
  .sales-qa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-access-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .setup-assistant-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .setup-assistant-actions .ghost-button {
    width: 100%;
  }

  .setup-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-next-step .primary-button {
    width: 100%;
  }

  .sales-qa-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-qa-head code {
    max-width: 100%;
    white-space: normal;
  }

  .sales-qa-grid {
    grid-template-columns: 1fr;
  }

  .role-access-head {
    grid-template-columns: 1fr;
  }

  .role-access-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .role-access-tabs button {
    flex: 0 0 auto;
  }

  .role-access-modules {
    grid-template-columns: 1fr;
  }
}

.permission-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  line-height: 1.45;
}

.shift-command-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 32%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 48%, white));
  box-shadow: 0 18px 42px rgb(15 23 42 / 7%);
}

.shift-command-panel::after {
  content: "";
  position: absolute;
  inset: auto -7% -44% auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 68%);
  pointer-events: none;
}

.shift-command-main,
.shift-command-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shift-command-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.shift-command-main span,
.shift-command-grid small,
.shift-checklist span {
  color: var(--muted);
}

.shift-command-main > strong {
  min-width: 78px;
  text-align: right;
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.shift-command-meter {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 68%, white);
}

.shift-command-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 260ms ease;
}

.shift-command-grid,
.shift-checklist {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.shift-command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shift-command-grid article,
.shift-checklist article {
  border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
  border-radius: 12px;
  background: rgb(255 255 255 / 82%);
}

.shift-command-grid article {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.shift-command-grid span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-command-grid strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.shift-checklist {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shift-checklist article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
}

.shift-checklist b {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.shift-checklist article.is-pending b {
  background: rgb(254 243 199 / 80%);
  color: #b45309;
}

.shift-checklist strong {
  display: block;
  color: var(--ink);
}

.shift-command-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pos-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 14px;
}

.pos-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.quick-action-row,
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.danger-action {
  color: #a73636;
}

.product-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pos-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 34%, white));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pos-product-card strong:last-child {
  grid-column: 1 / -1;
  color: var(--accent-dark);
}

.pos-product-card span,
.pos-product-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.pos-cart-list {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px auto auto;
  gap: 8px;
  align-items: center;
}

.cart-line label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-line input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sale-total-card,
.payment-total,
.cash-status-card {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent-tint) 50%, white);
  display: grid;
  gap: 8px;
}

.sale-total-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sale-total-card .is-total {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  font-size: 1.2rem;
}

.payment-total strong {
  font-size: 2rem;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.payment-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cash-close-breakdown,
.live-activity-grid,
.kardex-summary,
.kardex-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payment-breakdown-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, white, color-mix(in srgb, var(--accent-tint) 32%, white));
}

.cash-close-breakdown article,
.live-activity-grid article,
.kardex-summary article,
.kardex-control-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), color-mix(in srgb, var(--accent-tint) 28%, white)),
    radial-gradient(circle at 88% 12%, rgb(15 159 110 / 12%), transparent 34%);
}

.payment-breakdown-grid span,
.payment-breakdown-grid small,
.cash-close-breakdown span,
.cash-close-breakdown small,
.live-activity-grid span,
.live-activity-grid small,
.kardex-summary span,
.kardex-control-grid span,
.kardex-control-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.payment-breakdown-grid strong,
.cash-close-breakdown strong,
.live-activity-grid strong,
.kardex-summary strong,
.kardex-control-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--accent-dark);
}

body.app-ventas .cash-close-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

body.app-ventas .cash-close-form {
  gap: 0;
}

body.app-ventas .cash-close-head > span {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fffc;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

body.app-ventas .cash-close-hero {
  display: grid;
  gap: 12px;
  align-content: start;
  border-radius: 8px;
  padding: 18px;
  min-height: 100%;
  color: #ffffff;
  background:
    linear-gradient(145deg, #06382f, #0f766e 72%, #c79212);
}

body.app-ventas .cash-close-hero > span,
body.app-ventas .cash-close-hero > small {
  color: rgb(255 255 255 / 82%);
  font-weight: 850;
}

body.app-ventas .cash-close-hero > strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

body.app-ventas .cash-close-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .cash-close-hero-grid article {
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 10%);
}

body.app-ventas .cash-close-hero-grid span,
body.app-ventas .cash-close-hero-grid strong {
  display: block;
  color: #ffffff;
}

body.app-ventas .cash-close-count-panel,
body.app-ventas .cash-close-method-panel,
body.app-ventas .cash-close-difference-card {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

body.app-ventas .cash-close-count-panel {
  display: grid;
  gap: 10px;
}

body.app-ventas .cash-close-section-title,
body.app-ventas .cash-close-total-row,
body.app-ventas .cash-close-sticky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-ventas .cash-close-section-title span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.app-ventas .cash-close-section-title strong {
  color: var(--accent-dark);
}

body.app-ventas .cash-close-total-row label,
body.app-ventas .cash-close-note {
  flex: 1;
}

body.app-ventas .cash-close-total-row input,
body.app-ventas .cash-close-note input {
  min-height: 48px;
  font-size: 1.1rem;
}

body.app-ventas .cash-close-denomination-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-ventas .cash-close-denomination-grid label {
  min-height: 74px;
}

body.app-ventas .cash-close-denomination-grid input {
  min-height: 42px;
  text-align: center;
  font-size: 1rem;
}

body.app-ventas .cash-close-method-panel {
  grid-column: 2;
}

body.app-ventas .cash-close-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

body.app-ventas .cash-close-method-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: #f8fffc;
}

body.app-ventas .cash-close-method-grid span,
body.app-ventas .cash-close-method-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .cash-close-method-grid strong {
  display: block;
  color: var(--accent-dark);
  font-size: 1.05rem;
}

body.app-ventas .cash-close-difference-card {
  grid-column: 1 / -1;
}

body.app-ventas .cash-close-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
  background: #ffffff;
}

body.app-ventas .cash-close-sticky-actions span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

body.app-ventas .cash-close-sticky-actions button {
  min-width: 180px;
  min-height: 52px;
}

.kardex-control-grid {
  margin: 0 0 14px;
}

.kardex-control-grid article.is-in {
  border-color: rgb(16 185 129 / 22%);
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 88%));
}

.kardex-control-grid article.is-out {
  border-color: rgb(239 68 68 / 18%);
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(254 242 242 / 80%));
}

.cash-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cash-health-grid article,
.cash-difference-card {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent-tint) 34%, white));
}

.cash-health-grid article.is-ok,
.cash-difference-card.is-ok {
  border-color: rgb(22 163 74 / 22%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.cash-health-grid article.is-warning,
.cash-difference-card.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.cash-health-grid article.is-danger,
.cash-difference-card.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.cash-health-grid span,
.cash-health-grid small,
.cash-difference-card span,
.cash-difference-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cash-health-grid strong,
.cash-difference-card strong {
  display: block;
  margin: 6px 0;
  color: var(--accent-dark);
  font-size: 1.08rem;
}

.finance-overview-cards.is-cashier {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-role-panel,
.cash-review-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 7%);
}

.finance-role-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.finance-role-panel.is-supervisor,
.cash-review-panel {
  background:
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(240 249 255 / 74%));
}

.finance-role-panel h3,
.cash-review-panel h3 {
  margin: 0 0 6px;
  color: #10251f;
  font-size: clamp(1.15rem, 2vw, 1.56rem);
}

.finance-role-panel > div > span,
.finance-role-cards span,
.finance-role-cards small,
.cash-review-grid span,
.cash-review-grid small,
.cash-review-columns span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.35;
}

.finance-role-cards,
.cash-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cash-review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-role-cards article,
.cash-review-grid article,
.cash-review-columns article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

.finance-role-cards strong,
.cash-review-grid strong {
  display: block;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.cash-review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cash-review-columns strong {
  display: block;
  margin-bottom: 6px;
  color: #10251f;
}

.cashier-cash-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 94% 8%, rgb(245 158 11 / 13%), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 42px rgb(8 30 26 / 7%);
}

.cashier-cash-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cashier-cash-guide-head h3 {
  margin: 0;
  color: var(--accent-dark);
}

.cashier-cash-guide-head > strong {
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--accent-dark);
  color: white;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.cashier-cash-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cashier-cash-guide-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
}

.cashier-cash-guide-grid article.is-done {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

.cashier-cash-guide-grid b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

.cashier-cash-guide-grid strong,
.cashier-cash-guide-grid span {
  display: block;
}

.cashier-cash-guide-grid strong {
  color: var(--accent-dark);
}

.cashier-cash-guide-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.34;
}

.cash-denomination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cash-denomination-grid label {
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 9px;
  background: rgb(255 255 255 / 72%);
}

.cash-denomination-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.cash-denomination-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.cash-difference-card {
  margin-top: 12px;
}

.payment-method-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: white;
  color: var(--muted);
  font-weight: 900;
}

.payment-method-grid button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.cashier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.cashier-grid.is-simple-cashier {
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
}

.cash-closure-row {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
}

.cash-closure-row .admin-row-meta {
  justify-content: flex-end;
}

.history-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.ventas-touch-shell {
  position: relative;
  width: min(1600px, 100%) !important;
  padding: 18px;
  isolation: isolate;
}

.ventas-touch-shell::before,
.ventas-touch-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.ventas-touch-shell::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 72%, rgb(16 185 129 / 9%) 72% 72.25%, transparent 72.25% 100%),
    radial-gradient(circle at 72% 28%, rgb(15 159 110 / 16%), transparent 28vw),
    radial-gradient(circle at 22% 92%, rgb(245 158 11 / 14%), transparent 28vw);
}

.ventas-touch-shell::after {
  right: -120px;
  bottom: 6vh;
  width: min(560px, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgb(15 159 110 / 12%);
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgb(15 159 110 / 10%) 12px 14px, transparent 14px 28px),
    radial-gradient(circle, rgb(255 255 255 / 68%), rgb(15 159 110 / 8%) 64%, transparent 65%);
  filter: blur(0.2px);
  opacity: 0.58;
  animation: ventasAmbientFloat 12s ease-in-out infinite alternate;
}

.ventas-touch-shell[data-active-view="sell"] {
  min-height: 100vh;
}

.ventas-touch-shell[data-active-view="sell"] .topbar {
  margin-bottom: 10px;
  padding: 10px 14px;
}

.ventas-touch-shell[data-active-view="sell"] .topbar h1 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.ventas-touch-shell .topbar {
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 10%, rgb(52 211 153 / 28%), transparent 30%),
    radial-gradient(circle at 88% 18%, rgb(245 158 11 / 20%), transparent 22%),
    linear-gradient(135deg, #0b1412, #132822 58%, #0f8f69);
  color: white;
  box-shadow: 0 28px 80px rgb(13 35 31 / 22%);
  overflow: hidden;
  position: relative;
}

.ventas-touch-shell .topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 44%, rgb(255 255 255 / 14%) 46%, transparent 49% 100%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgb(255 255 255 / 5%) 34px 35px);
  opacity: 0.52;
  transform: translateX(-10%);
  animation: ventasScan 9s ease-in-out infinite;
}

.ventas-touch-shell .topbar > * {
  position: relative;
  z-index: 1;
}

.ventas-touch-shell .topbar .eyebrow,
.ventas-touch-shell .copyright-line {
  color: rgb(255 255 255 / 72%);
}

.ventas-touch-shell .topbar h1 {
  letter-spacing: 0;
}

.ventas-touch-shell .user-badge,
.ventas-touch-shell .topbar .ghost-button {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 12%);
  color: white;
  backdrop-filter: blur(12px);
}

.ventas-touch-shell .metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.ventas-touch-shell .metrics article {
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgb(15 159 110 / 14%), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(247 252 249 / 84%));
  box-shadow: 0 18px 48px rgb(15 32 28 / 10%);
  backdrop-filter: blur(16px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ventas-touch-shell .metrics article:hover {
  box-shadow: 0 24px 58px rgb(15 32 28 / 14%);
  transform: translateY(-2px);
}

.ventas-workspace {
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

.ventas-menu-toggle {
  display: none;
}

.ventas-tabs {
  position: sticky;
  top: 14px;
  z-index: 3;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 0%, rgb(15 159 110 / 18%), transparent 34%),
    linear-gradient(180deg, #101a18, #15241f);
  box-shadow: 0 22px 60px rgb(10 31 27 / 16%);
  backdrop-filter: blur(14px);
}

.ventas-tabs button {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--side-muted);
  justify-content: flex-start;
  padding: 0 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ventas-tabs button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.34;
  margin-right: 8px;
}

.ventas-tabs button.is-active,
.ventas-tabs button.is-active:hover {
  border-color: rgb(45 212 161 / 34%);
  background:
    linear-gradient(135deg, rgb(15 159 110 / 92%), rgb(10 110 83 / 92%));
  color: white;
  box-shadow: 0 14px 34px rgb(15 159 110 / 28%);
}

.ventas-tabs button:not([hidden]):hover {
  color: white;
  background: rgb(255 255 255 / 8%);
  transform: translateX(2px);
}

.ventas-workspace .workflow-panel,
.ventas-workspace .content-grid {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.ventas-workspace .workflow-panel {
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(241 250 247 / 82%));
  box-shadow: 0 18px 42px rgb(15 32 28 / 8%);
  backdrop-filter: blur(14px);
}

.ventas-workflow-footer {
  min-height: auto;
  margin-top: 0;
  padding: 10px 12px;
}

.ventas-workflow-footer strong {
  font-size: 0.92rem;
}

.ventas-workflow-footer span {
  max-width: 760px;
}

.ventas-footer {
  display: flex;
  justify-content: center;
  padding: 14px 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ventas-touch-shell[data-active-view="sell"] .metrics,
.ventas-touch-shell[data-active-view="sell"] .section-heading {
  display: none;
}

.ventas-touch-shell[data-active-view="sell"] .ventas-workspace {
  grid-template-columns: 168px minmax(0, 1fr);
}

.ventas-touch-shell[data-active-view="sell"] .document-list {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ventas-touch-shell[data-active-view="sell"] .ventas-footer,
.ventas-touch-shell[data-active-view="sell"] .ventas-workflow-footer {
  display: none;
}

.ventas-workspace .document-list {
  border: 0;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 86%), rgb(247 252 249 / 80%));
  box-shadow: 0 26px 76px rgb(15 32 28 / 12%);
  backdrop-filter: blur(18px);
}

.touch-pos-shell {
  grid-template-columns: minmax(520px, 1.38fr) minmax(360px, 0.82fr);
  gap: 16px;
  align-items: start;
  min-height: min(720px, calc(100dvh - 118px));
  overflow: visible;
}

.pos-mobile-switch {
  display: none;
}

.touch-panel,
.touch-cart-panel {
  min-width: 0;
  width: 100%;
  max-height: none;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 0%, rgb(15 159 110 / 10%), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(249 252 251 / 90%));
  box-shadow: 0 24px 68px rgb(15 32 28 / 11%);
  backdrop-filter: blur(18px);
}

.touch-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: visible;
}

.touch-cart-panel {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.touch-pos-head,
.touch-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.touch-pos-head h3,
.touch-cart-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.05rem);
}

.touch-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.touch-shortcuts span,
.pos-category-rail button,
.product-code {
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.touch-shortcuts span {
  padding: 7px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pos-toast {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8db;
  color: #7c4f00;
  font-weight: 900;
}

.pos-input-hint {
  margin: -2px 0 10px;
  border: 1px solid rgb(15 159 110 / 13%);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgb(236 253 245 / 54%);
  color: #55706b;
  font-size: 0.78rem;
  font-weight: 820;
}

.pos-input-hint strong {
  color: var(--accent-dark);
}

.scanner-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 10px;
  border: 1px solid rgb(15 159 110 / 18%);
  border-radius: 8px;
  padding: 9px 11px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 82%)),
    radial-gradient(circle at 8% 50%, rgb(15 159 110 / 16%), transparent 28%);
  color: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.scanner-status strong {
  font-size: 0.82rem;
}

.scanner-status span {
  color: #55706b;
  font-size: 0.76rem;
  font-weight: 850;
}

.pos-quick-status,
.pos-shift-grid,
.inventory-health-grid,
.owner-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

body.app-ventas .ventas-executive-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 86% 12%, rgb(245 158 11 / 22%), transparent 34%),
    radial-gradient(circle at 12% 18%, rgb(16 185 129 / 20%), transparent 30%),
    linear-gradient(135deg, #071613, #10251f 58%, #0f766e);
  color: white;
  box-shadow:
    0 26px 70px rgb(8 30 26 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 16%);
}

body.app-ventas .ventas-executive-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -42px;
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 42px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 10%) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgb(255 255 255 / 10%), transparent);
  transform: rotate(12deg);
}

body.app-ventas .ventas-executive-hero > * {
  position: relative;
  z-index: 1;
}

body.app-ventas .ventas-executive-hero .eyebrow,
body.app-ventas .ventas-executive-hero span {
  color: rgb(236 253 245 / 78%);
}

body.app-ventas .ventas-executive-hero h3 {
  margin: 4px 0 8px;
  color: white;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1.06;
}

body.app-ventas .ventas-executive-hero > strong {
  min-width: 104px;
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 30px;
  background: rgb(255 255 255 / 10%);
  color: white;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%);
}

body.app-ventas .sales-priority-command {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 255 252 / 92%));
  box-shadow: 0 16px 34px rgb(8 30 26 / 6%);
}

body.app-ventas .sales-priority-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .sales-priority-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.12rem;
}

body.app-ventas .sales-priority-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

body.app-ventas .sales-priority-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-size: 0.82rem;
  white-space: nowrap;
}

body.app-ventas .sales-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

body.app-ventas .sales-priority-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

body.app-ventas .sales-priority-card.is-ok {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

body.app-ventas .sales-priority-card.is-info {
  border-color: rgb(14 165 233 / 22%);
  background: rgb(240 249 255 / 74%);
}

body.app-ventas .sales-priority-card.is-warning {
  border-color: rgb(245 158 11 / 30%);
  background: rgb(255 251 235 / 82%);
}

body.app-ventas .sales-priority-card.is-danger {
  border-color: rgb(220 38 38 / 26%);
  background: rgb(254 242 242 / 84%);
}

body.app-ventas .sales-priority-card b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  font-size: 0.78rem;
}

body.app-ventas .sales-priority-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .sales-priority-card span,
body.app-ventas .sales-priority-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.28;
}

body.app-ventas .sales-priority-card strong {
  color: var(--accent-dark);
  font-size: 0.98rem;
  line-height: 1.14;
}

body.app-ventas .sales-priority-card button {
  grid-column: 1 / -1;
  min-height: 34px;
}

body.app-ventas .executive-action-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.app-ventas .executive-action-plan article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 72%));
  box-shadow: 0 14px 32px rgb(8 30 26 / 7%);
}

body.app-ventas .executive-action-plan article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 78%));
}

body.app-ventas .executive-action-plan article.is-danger {
  border-color: rgb(239 68 68 / 24%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(254 242 242 / 78%));
}

body.app-ventas .executive-action-plan article.is-ok {
  border-color: rgb(16 185 129 / 22%);
}

body.app-ventas .executive-action-plan div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .executive-action-plan strong {
  color: #10251f;
}

body.app-ventas .executive-action-plan span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .executive-action-plan button {
  flex: 0 0 auto;
}

body.app-ventas .commercial-alerts-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%)),
    radial-gradient(circle at 92% 10%, rgb(245 158 11 / 14%), transparent 32%);
  box-shadow: 0 18px 42px rgb(15 118 110 / 8%);
}

body.app-ventas .commercial-alerts-head,
body.app-ventas .commercial-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .commercial-alerts-head h3 {
  margin: 2px 0 0;
  color: var(--accent-dark);
}

body.app-ventas .commercial-alerts-head > span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgb(255 255 255 / 78%);
  color: var(--accent-dark);
  font-weight: 950;
}

body.app-ventas .commercial-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

body.app-ventas .commercial-alert-card {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 86%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

body.app-ventas .commercial-alert-card.is-danger {
  border-color: rgb(220 38 38 / 25%);
  background: linear-gradient(135deg, #fff, #fef2f2);
}

body.app-ventas .commercial-alert-card.is-warning {
  border-color: rgb(245 158 11 / 30%);
  background: linear-gradient(135deg, #fff, #fffbeb);
}

body.app-ventas .commercial-alert-card.is-info {
  border-color: rgb(14 165 233 / 24%);
  background: linear-gradient(135deg, #fff, #f0f9ff);
}

body.app-ventas .commercial-alert-card.is-ok {
  border-color: rgb(16 185 129 / 22%);
  background: linear-gradient(135deg, #fff, #ecfdf5);
}

body.app-ventas .commercial-alert-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .commercial-alert-card strong {
  color: #10251f;
  line-height: 1.2;
}

body.app-ventas .commercial-alert-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .commercial-alert-card button {
  flex: 0 0 auto;
}

body.app-ventas .training-mode-banner,
body.app-ventas .training-lab-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(14 165 233 / 24%);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgb(240 249 255 / 94%), rgb(255 255 255 / 90%)),
    radial-gradient(circle at 88% 18%, rgb(14 165 233 / 18%), transparent 34%);
  box-shadow: 0 16px 38px rgb(14 165 233 / 8%);
}

body.app-ventas .training-mode-banner div,
body.app-ventas .training-lab-panel > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .training-mode-banner strong,
body.app-ventas .training-lab-panel h3 {
  margin: 0;
  color: #0f3f4a;
}

body.app-ventas .training-mode-banner span,
body.app-ventas .training-lab-panel span {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .training-lab-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-ventas .training-lab-actions > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(14 165 233 / 12%);
  color: #075985;
}

.commercial-readiness-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 76%)),
    radial-gradient(circle at 88% 12%, rgb(15 118 110 / 16%), transparent 34%);
  box-shadow: 0 18px 44px rgb(15 118 110 / 8%);
}

.commercial-readiness-panel.is-pending {
  border-color: rgb(245 158 11 / 28%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 82%)),
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 14%), transparent 34%);
}

.commercial-readiness-panel.is-ready {
  border-color: rgb(16 185 129 / 28%);
}

.commercial-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.commercial-readiness-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
}

.commercial-readiness-head span,
.commercial-readiness-next span,
.commercial-readiness-list small,
.commercial-readiness-metrics small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.commercial-readiness-head > strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.commercial-readiness-metrics,
.commercial-readiness-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.commercial-readiness-metrics article,
.commercial-readiness-list article {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
}

.commercial-readiness-metrics span,
.commercial-readiness-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commercial-readiness-metrics strong,
.commercial-readiness-list strong,
.commercial-readiness-next > div > strong {
  display: block;
  color: var(--accent-dark);
}

.commercial-readiness-metrics strong {
  margin: 5px 0;
  font-size: 1.35rem;
}

.commercial-readiness-next {
  display: grid;
  gap: 10px;
}

.commercial-readiness-list article.is-done {
  border-color: rgb(16 185 129 / 24%);
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

.commercial-readiness-list button {
  margin-top: 8px;
}

.commercial-roadmap-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(247 254 231 / 72%)),
    radial-gradient(circle at 90% 10%, rgb(240 166 0 / 16%), transparent 34%);
  box-shadow: 0 18px 44px rgb(15 118 110 / 8%);
}

.commercial-roadmap-panel.is-pending {
  border-color: rgb(245 158 11 / 30%);
}

.commercial-roadmap-panel.is-ready {
  border-color: rgb(16 185 129 / 30%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 78%)),
    radial-gradient(circle at 90% 10%, rgb(16 185 129 / 16%), transparent 34%);
}

.commercial-roadmap-head,
.commercial-roadmap-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.commercial-roadmap-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
}

.commercial-roadmap-head span,
.commercial-roadmap-next span,
.commercial-roadmap-next small,
.commercial-roadmap-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.commercial-roadmap-head > strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.commercial-roadmap-next {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 80%);
}

.commercial-roadmap-next > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.commercial-roadmap-next strong,
.commercial-roadmap-grid strong {
  display: block;
  color: var(--accent-dark);
}

.commercial-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.commercial-roadmap-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 86%);
}

.commercial-roadmap-grid article.review {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.commercial-roadmap-grid article.pending {
  border-color: rgb(239 68 68 / 24%);
  background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.commercial-roadmap-grid b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgb(220 252 231);
  color: #047857;
  font-size: 0.8rem;
}

.commercial-roadmap-grid article.review b {
  background: #fef3c7;
  color: #92400e;
}

.commercial-roadmap-grid article.pending b {
  background: #fee2e2;
  color: #991b1b;
}

.commercial-roadmap-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.device-qa-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(14 165 233 / 18%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 14%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 78%));
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

.device-qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.device-qa-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
}

.device-qa-head span,
.device-qa-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.38;
}

.device-qa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.device-qa-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgb(14 165 233 / 14%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.device-qa-grid strong {
  color: var(--accent-dark);
}

.device-qa-grid span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
}

.device-qa-grid b {
  width: 13px;
  height: 13px;
  border: 1px solid rgb(14 165 233 / 36%);
  border-radius: 4px;
  flex: 0 0 auto;
  margin-top: 2px;
  background: #f8fdff;
}

.role-manual-test-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgb(245 158 11 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 78%));
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

.role-manual-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.role-manual-test-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
}

.role-manual-test-head span,
.role-manual-test-grid span,
.role-manual-test-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.38;
}

.role-manual-test-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.role-manual-test-grid article {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.role-manual-test-grid span {
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-manual-test-grid strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--accent-dark);
}

.operational-sale-test-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 13%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 244 / 78%));
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

.operational-sale-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.operational-sale-test-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
}

.operational-sale-test-head span,
.operational-sale-test-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.38;
}

.operational-sale-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.operational-sale-test-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.operational-sale-test-grid strong {
  color: var(--accent-dark);
}

.operational-sale-test-grid button {
  align-self: end;
  margin-top: 2px;
}

.commercial-roadmap-grid button {
  margin-top: 8px;
}

.demo-data-kit-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 78%)),
    radial-gradient(circle at 90% 10%, rgb(20 184 166 / 14%), transparent 34%);
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

.demo-data-kit-panel.is-ready {
  border-color: rgb(16 185 129 / 30%);
}

body.app-ventas .demo-cleanup-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 76%)),
    radial-gradient(circle at 88% 14%, rgb(245 158 11 / 14%), transparent 34%);
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

body.app-ventas .demo-cleanup-panel.is-protected {
  border-color: rgb(190 18 60 / 18%);
}

body.app-ventas .demo-cleanup-head,
body.app-ventas .demo-cleanup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

body.app-ventas .demo-cleanup-actions {
  justify-content: flex-start;
}

body.app-ventas .demo-cleanup-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

body.app-ventas .demo-cleanup-head span,
body.app-ventas .demo-cleanup-status span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

body.app-ventas .demo-cleanup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

body.app-ventas .demo-cleanup-grid article,
body.app-ventas .demo-cleanup-status {
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .demo-cleanup-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.app-ventas .demo-cleanup-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 1.45rem;
  line-height: 1;
}

body.app-ventas .demo-cleanup-status {
  display: grid;
  gap: 6px;
}

body.app-ventas .demo-cleanup-status.is-locked {
  border-color: rgb(190 18 60 / 22%);
  background: rgb(255 241 242 / 76%);
}

body.app-ventas .demo-cleanup-status code {
  width: fit-content;
  border: 1px solid rgb(15 118 110 / 20%);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgb(240 253 250 / 82%);
  color: var(--accent-dark);
  font-weight: 950;
}

body.app-ventas .danger-button {
  border: 1px solid rgb(190 18 60 / 24%);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgb(255 241 242);
  color: #9f1239;
  font-weight: 950;
  cursor: pointer;
}

body.app-ventas .danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-data-kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-data-kit-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.demo-data-kit-head span,
.demo-data-kit-metrics small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.demo-data-kit-head > strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.demo-data-kit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.demo-data-kit-metrics article {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
}

.demo-data-kit-metrics article.pending {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.demo-data-kit-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-data-kit-metrics strong {
  display: block;
  margin: 5px 0;
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.demo-data-kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-guide-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(14 165 233 / 18%);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 76%)),
    radial-gradient(circle at 90% 10%, rgb(14 165 233 / 14%), transparent 34%);
  box-shadow: 0 18px 44px rgb(14 165 233 / 7%);
}

.demo-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-guide-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
}

.demo-guide-head span,
.demo-guide-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.35;
}

.demo-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.demo-guide-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgb(14 165 233 / 15%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
}

.demo-guide-grid strong {
  color: var(--accent-dark);
}

.demo-guide-grid button {
  justify-self: start;
}

body.app-ventas .daily-operation-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 20px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 8% 12%, rgb(16 185 129 / 14%), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 82%));
  box-shadow: 0 18px 44px rgb(8 30 26 / 7%);
}

body.app-ventas .daily-operation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.app-ventas .daily-operation-head h3 {
  margin: 4px 0 5px;
  color: #10251f;
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
}

body.app-ventas .daily-operation-head span,
body.app-ventas .daily-operation-track span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.38;
}

body.app-ventas .daily-operation-head > strong {
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

body.app-ventas .daily-operation-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.app-ventas .daily-operation-track article {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .daily-operation-track article.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background: rgb(255 251 235 / 72%);
}

body.app-ventas .daily-operation-track b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: white;
  font-size: 0.85rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgb(15 118 110 / 16%);
}

body.app-ventas .daily-operation-track strong {
  display: block;
  margin-bottom: 4px;
  color: #10251f;
}

.pos-quick-status article,
.inventory-health-grid article,
.owner-dashboard-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%)),
    radial-gradient(circle at 90% 10%, rgb(15 159 110 / 14%), transparent 34%);
}

.pos-quick-status span,
.inventory-health-grid span,
.owner-dashboard-grid span,
.owner-dashboard-grid small,
.stock-movement-product span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.pos-quick-status strong,
.inventory-health-grid strong,
.owner-dashboard-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
}

.last-sale-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgb(15 159 110 / 20%);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 92%)),
    radial-gradient(circle at 88% 16%, rgb(15 159 110 / 18%), transparent 34%);
  box-shadow: 0 16px 36px rgb(15 32 28 / 9%);
}

.last-sale-receipt-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.last-sale-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.last-sale-receipt-actions button {
  min-height: 40px;
  border-radius: 12px;
  white-space: nowrap;
}

.last-sale-receipt span,
.last-sale-receipt small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.last-sale-receipt strong {
  color: var(--accent-dark);
  font-size: 1.08rem;
}

@media (max-width: 760px) {
  .last-sale-receipt {
    align-items: stretch;
    flex-direction: column;
  }

  .last-sale-receipt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .last-sale-receipt-actions button {
    width: 100%;
  }
}

.live-activity-panel {
  position: relative;
  overflow: hidden;
}

.ventas-notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(255 255 255 / 82%);
  color: var(--accent-dark);
  font-weight: 900;
}

.ventas-notification-button strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-dark);
  font-size: 0.76rem;
}

.ventas-notification-button.has-alerts strong {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 0 0 5px rgb(245 158 11 / 12%);
  animation: notificationPulse 1.8s ease-in-out infinite;
}

.ventas-notification-panel {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 82%)),
    radial-gradient(circle at 92% 12%, rgb(15 159 110 / 16%), transparent 34%);
}

.ventas-notification-grid {
  display: grid;
  gap: 10px;
}

.ventas-notification-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.ventas-notification-card.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.ventas-notification-card.is-danger {
  border-color: rgb(220 38 38 / 28%);
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.ventas-notification-card strong,
.ventas-notification-card span {
  display: block;
}

.ventas-notification-card strong {
  color: var(--accent-dark);
}

.ventas-notification-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.live-activity-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 42%, rgb(15 159 110 / 7%) 50%, transparent 58% 100%);
  animation: zow-scan 7s linear infinite;
}

.activity-timeline,
.kardex-timeline {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.activity-timeline-item,
.kardex-timeline-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 78%);
}

.activity-timeline-item > span,
.kardex-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.activity-timeline-item strong,
.kardex-timeline-row strong {
  display: block;
  color: var(--accent-dark);
}

.activity-timeline-item small,
.kardex-timeline-row span,
.kardex-timeline-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.kardex-timeline-row.is-out .kardex-dot {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgb(220 38 38 / 13%);
}

.inventory-valuation-panel .admin-row {
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 72%));
}

.setup-assistant-panel {
  overflow: hidden;
}

.first-setup-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.34fr) minmax(210px, 0.65fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid rgb(245 158 11 / 26%);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 18%), transparent 30%),
    radial-gradient(circle at 10% 84%, rgb(16 185 129 / 16%), transparent 32%),
    linear-gradient(145deg, #ffffff, #fffbeb);
  box-shadow: 0 18px 42px rgb(120 53 15 / 8%);
}

.first-setup-copy h3 {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}

.first-setup-copy span,
.first-setup-next small,
.first-setup-next em,
.first-setup-progress-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 830;
  line-height: 1.4;
}

.first-setup-progress-card,
.first-setup-next {
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

.first-setup-progress-card strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.first-setup-progress-card .setup-progress {
  margin-top: 10px;
}

.first-setup-next span {
  display: block;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.first-setup-next strong {
  display: block;
  margin: 4px 0;
  color: var(--accent-dark);
}

.first-setup-next em {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fef3c7;
  color: #92400e;
  font-style: normal;
  font-weight: 950;
}

.first-setup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 150px;
}

.first-setup-actions button {
  width: 100%;
  min-height: 40px;
  white-space: nowrap;
}

.setup-assistant-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-assistant-actions > span {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 950;
}

.setup-assistant-actions .ghost-button {
  min-height: 36px;
  white-space: nowrap;
}

.setup-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 14px;
  padding: 13px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 38%, white));
}

.setup-next-step.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 13%), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffbeb);
}

.setup-next-step span,
.setup-next-step small,
.setup-next-step em,
.setup-check-grid small,
.setup-check-grid em {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.38;
}

.setup-next-step span {
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.setup-next-step strong {
  display: block;
  margin: 3px 0;
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.setup-next-step em,
.setup-check-grid em {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 950;
}

.setup-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, var(--line));
}

.setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 64%, #facc15));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 38%, transparent);
  transition: width 420ms ease;
}

.setup-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.setup-check-grid article {
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 11px;
  background: rgb(255 255 255 / 82%);
}

.setup-check-grid article.is-done {
  border-color: rgb(22 163 74 / 24%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.setup-check-grid article.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.setup-check-grid strong,
.setup-check-grid span,
.setup-hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.setup-check-grid strong {
  color: var(--accent-dark);
}

.setup-check-grid .ghost-button {
  justify-self: start;
  min-height: 30px;
  margin-top: 2px;
  padding: 5px 9px;
}

.setup-stage-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.setup-stage-timeline article {
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), color-mix(in srgb, var(--accent-tint) 34%, white));
}

.setup-stage-timeline article.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background: linear-gradient(145deg, #ffffff, #fffbeb);
}

.setup-stage-timeline div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setup-stage-timeline span,
.setup-stage-timeline strong,
.setup-stage-timeline small,
.setup-stage-timeline em {
  display: block;
}

.setup-stage-timeline span {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 950;
}

.setup-stage-timeline strong {
  color: var(--accent);
  font-size: 1.18rem;
}

.setup-stage-timeline small,
.setup-stage-timeline em {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.35;
}

.setup-stage-timeline em {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 950;
}

.setup-stage-timeline .ghost-button {
  justify-self: start;
  min-height: 32px;
  padding: 6px 10px;
}

.setup-hint {
  margin: 12px 0 0;
}

.store-launch-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 46%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.store-launch-panel.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 88% 10%, rgb(245 158 11 / 12%), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffbeb);
}

.store-launch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-launch-head h3 {
  margin: 4px 0 5px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
}

.store-launch-head span,
.store-launch-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.35;
}

.store-launch-head > strong {
  min-width: 74px;
  text-align: right;
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.store-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.store-launch-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 13px;
  padding: 11px;
  background: rgb(255 255 255 / 78%);
}

.store-launch-grid article.is-pending {
  border-color: rgb(245 158 11 / 24%);
  background: rgb(255 251 235 / 72%);
}

.store-launch-grid b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.store-launch-grid article.is-pending b {
  background: rgb(254 243 199 / 82%);
  color: #b45309;
}

.store-launch-grid strong {
  display: block;
  color: var(--accent-dark);
}

.inventory-import-guide {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgb(245 158 11 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(240 253 244 / 76%));
  box-shadow: 0 18px 44px rgb(15 118 110 / 7%);
}

.inventory-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.inventory-import-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
}

.inventory-import-head span,
.inventory-import-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 830;
  line-height: 1.38;
}

.inventory-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inventory-import-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.inventory-import-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.inventory-import-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #64748b;
}

.inventory-import-grid article.is-ok::before {
  background: #10b981;
}

.inventory-import-grid article.is-danger::before {
  background: #ef4444;
}

.inventory-import-grid article.is-warning::before {
  background: #f59e0b;
}

.inventory-import-grid article.is-info::before {
  background: #0ea5e9;
}

.inventory-import-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
}

.help-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(16px, 2.4vw, 22px);
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 48%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.help-hero-panel h3 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
  font-size: clamp(1.16rem, 2.4vw, 1.72rem);
}

.help-hero-panel span,
.help-guide-grid li,
.help-support-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.48;
}

.help-hero-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.help-hero-actions > strong {
  max-width: 240px;
  border-radius: 16px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent-dark);
  text-align: right;
}

.help-hero-actions .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

.help-hero-actions .ghost-button {
  min-height: 38px;
  white-space: nowrap;
}

.help-guide-grid,
.help-support-grid {
  display: grid;
  gap: 12px;
}

.help-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.help-guide-grid article,
.help-support-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 36%, white));
}

.help-guide-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.help-guide-grid strong,
.help-support-grid strong {
  color: var(--accent-dark);
}

.help-guide-grid ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.help-guide-grid button {
  justify-self: start;
}

.help-support-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-manual-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 42%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.company-manual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  padding-bottom: 12px;
}

.company-manual-head h3 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
}

.company-manual-head span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.company-manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-manual-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 14px;
  background: rgb(255 255 255 / 78%);
}

.company-manual-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-manual-title b {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-dark);
  font-weight: 950;
}

.company-manual-title strong {
  color: var(--accent-dark);
}

.company-manual-grid ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.company-manual-grid li {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.42;
}

.company-manual-grid button {
  justify-self: start;
  margin-top: auto;
}

.sales-qa-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, #22c55e 14%, transparent), transparent 34%),
    radial-gradient(circle at 96% 16%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 36%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.sales-qa-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
  transform: translateX(-120%);
  animation: qaScan 6s ease-in-out infinite;
}

.sales-qa-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-qa-head h3 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
}

.sales-qa-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.42;
}

.sales-qa-head code {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 999px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 82%);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.sales-qa-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sales-qa-grid article {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 12px 28px rgb(15 23 42 / 5%);
}

.sales-qa-grid b {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(16 185 129 / 12%);
  color: #047857;
  font-size: 0.68rem;
}

.sales-qa-grid strong {
  color: var(--accent-dark);
}

.sales-qa-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.34;
}

@keyframes qaScan {
  0%,
  68% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.sales-certification-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 40%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.sales-certification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-certification-head h3 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
}

.sales-certification-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.42;
}

.sales-certification-head > strong {
  flex: 0 0 auto;
  min-width: 86px;
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: right;
}

.sales-certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sales-certification-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
}

.sales-certification-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
}

.sales-certification-grid article > div span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sales-certification-grid article > div strong {
  color: var(--accent-dark);
}

.sales-certification-grid p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  border-radius: 12px;
  padding: 8px;
  background: rgb(15 118 110 / 5%);
}

.sales-certification-grid p.is-pending {
  background: rgb(245 158 11 / 9%);
}

.sales-certification-grid b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgb(16 185 129 / 12%);
  color: #047857;
  font-size: 0.68rem;
}

.sales-certification-grid p.is-pending b {
  background: rgb(245 158 11 / 14%);
  color: #92400e;
}

.sales-certification-grid p > span {
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.28;
}

.sales-certification-grid .ghost-button {
  min-height: 30px;
  padding: 5px 9px;
}

.business-health-panel {
  overflow: hidden;
}

.business-health-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 10%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, var(--line));
}

.business-health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b 42%, var(--accent));
  transition: width 420ms ease;
}

.business-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.business-health-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
}

.business-health-grid article.is-ok {
  border-color: rgb(22 163 74 / 24%);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.business-health-grid article.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.business-health-grid strong,
.business-health-grid span {
  display: block;
}

.business-health-grid strong {
  color: var(--accent-dark);
}

.business-health-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-decision-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 48%, white));
  box-shadow: 0 18px 44px rgb(15 32 28 / 7%);
}

.report-decision-panel.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background:
    radial-gradient(circle at 90% 12%, rgb(245 158 11 / 14%), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffbeb);
}

.report-decision-panel.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background:
    radial-gradient(circle at 90% 12%, rgb(220 38 38 / 12%), transparent 34%),
    linear-gradient(145deg, #ffffff, #fef2f2);
}

.report-decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-decision-head h3 {
  margin: 4px 0 5px;
  color: var(--accent-dark);
  font-size: clamp(1.14rem, 2.2vw, 1.58rem);
}

.report-decision-head span,
.report-decision-grid small,
.report-decision-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.38;
}

.report-decision-head > strong {
  color: var(--accent);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
}

.report-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.report-decision-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 13px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
}

.report-decision-grid article.is-warning {
  border-color: rgb(245 158 11 / 24%);
  background: rgb(255 251 235 / 72%);
}

.report-decision-grid article.is-danger {
  border-color: rgb(220 38 38 / 22%);
  background: rgb(254 242 242 / 72%);
}

.report-decision-grid span {
  text-transform: uppercase;
}

.report-decision-grid strong {
  color: var(--accent-dark);
}

.user-audit-panel {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 76%)),
    radial-gradient(circle at 88% 12%, rgb(14 165 233 / 14%), transparent 34%);
}

.user-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.user-audit-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(14 165 233 / 16%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 84%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.user-audit-grid article.has-sensitive {
  border-color: rgb(245 158 11 / 28%);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.user-audit-grid strong,
.user-audit-grid span,
.user-audit-grid small {
  display: block;
}

.user-audit-grid strong {
  color: var(--accent-dark);
}

.user-audit-grid span,
.user-audit-grid small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 830;
  line-height: 1.35;
}

.user-audit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.user-audit-metrics span {
  border-radius: 10px;
  padding: 8px;
  background: color-mix(in srgb, var(--accent) 7%, white);
}

.user-audit-metrics b {
  display: block;
  color: var(--accent-dark);
  font-size: 1.02rem;
}

.owner-daily-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 20px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 13%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 76%));
  box-shadow: 0 18px 45px rgb(15 32 28 / 8%);
}

.owner-daily-panel.is-warning {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(135deg, #ffffff, #fffbeb);
}

.owner-daily-panel.is-danger {
  border-color: rgb(220 38 38 / 22%);
  background:
    radial-gradient(circle at 92% 8%, rgb(220 38 38 / 10%), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff7f7);
}

.owner-daily-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.owner-daily-head h3 {
  margin: 3px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.owner-daily-head span,
.owner-daily-grid span,
.owner-daily-grid small,
.owner-daily-actions span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 830;
  line-height: 1.38;
}

.owner-daily-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.owner-daily-grid article,
.owner-daily-actions article {
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.owner-daily-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1;
}

.owner-daily-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-daily-actions article {
  display: grid;
  gap: 7px;
}

.owner-daily-actions article.is-ok {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

.owner-daily-actions article.is-warning {
  border-color: rgb(245 158 11 / 25%);
  background: rgb(255 251 235 / 78%);
}

.owner-daily-actions article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: rgb(254 242 242 / 78%);
}

.owner-daily-actions strong {
  color: var(--accent-dark);
}

.executive-brief-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.3fr);
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 20px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(140deg, rgb(255 255 255 / 96%), color-mix(in srgb, var(--accent-tint) 42%, white));
  box-shadow: 0 18px 45px rgb(15 32 28 / 8%);
}

.executive-brief-main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.executive-brief-main h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.24rem, 2.4vw, 1.72rem);
}

.executive-brief-main > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.executive-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.executive-brief-actions button {
  min-height: 40px;
}

.executive-brief-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.executive-brief-metrics article,
.executive-brief-priority article {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.executive-brief-metrics span,
.executive-brief-metrics small,
.executive-brief-priority span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.36;
}

.executive-brief-metrics strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--accent-dark);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1;
}

.executive-brief-priority {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.executive-brief-priority article {
  display: grid;
  gap: 7px;
}

.executive-brief-priority article.is-ok {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

.executive-brief-priority article.is-warning {
  border-color: rgb(245 158 11 / 25%);
  background: rgb(255 251 235 / 78%);
}

.executive-brief-priority article.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: rgb(254 242 242 / 78%);
}

.executive-brief-priority strong {
  color: var(--accent-dark);
}

@keyframes zow-scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.pos-cash-warning,
.pos-stock-note {
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.pos-cash-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgb(245 158 11 / 18%), transparent 34%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid rgb(245 158 11 / 24%);
  color: #7c4f00;
}

.pos-cash-warning strong,
.pos-cash-warning span {
  display: block;
}

.pos-cash-warning span {
  color: #8a5c12;
  font-size: 0.86rem;
  font-weight: 760;
}

.pos-stock-note {
  background: #fff8db;
  border: 1px solid rgb(245 158 11 / 22%);
  color: #7c4f00;
  font-size: 0.86rem;
  line-height: 1.45;
}

body.app-ventas .sale-readiness-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgb(16 185 129 / 18%);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgb(16 185 129 / 12%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%));
}

body.app-ventas .sale-readiness-panel.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 14%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 78%));
}

body.app-ventas .sale-readiness-panel.is-simple {
  padding: 10px 12px;
}

body.app-ventas .sale-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-ventas .sale-readiness-head strong,
body.app-ventas .sale-readiness-grid strong {
  display: block;
  color: #10251f;
}

body.app-ventas .sale-readiness-head span,
body.app-ventas .sale-readiness-grid span,
body.app-ventas .sale-readiness-grid small,
body.app-ventas .sale-readiness-alerts span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .sale-readiness-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(16 185 129 / 12%);
  color: #0f766e;
  font-size: 0.82rem;
}

body.app-ventas .sale-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

body.app-ventas .sale-readiness-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 12px;
  padding: 9px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .sale-readiness-grid article.is-warning {
  border-color: rgb(245 158 11 / 24%);
  background: rgb(255 251 235 / 78%);
}

body.app-ventas .sale-readiness-grid article.is-danger {
  border-color: rgb(220 38 38 / 22%);
  background: rgb(254 242 242 / 78%);
}

body.app-ventas .sale-readiness-grid span {
  text-transform: uppercase;
}

body.app-ventas .sale-readiness-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.app-ventas .sale-readiness-alerts span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(245 158 11 / 10%);
  color: #92400e;
}

body.app-ventas .sale-readiness-alerts span.is-danger {
  background: rgb(220 38 38 / 10%);
  color: #991b1b;
}

body.app-ventas .simple-cashier-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgb(16 185 129 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%));
}

body.app-ventas .simple-cashier-status.is-closed {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 92% 0%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(255 251 235 / 82%));
}

body.app-ventas .simple-cashier-status span,
body.app-ventas .simple-cashier-status small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

body.app-ventas .simple-cashier-status strong {
  display: block;
  margin: 3px 0;
  color: #10251f;
  font-size: 1.42rem;
  font-weight: 950;
}

body.app-ventas .simple-cashier-status button {
  min-height: 48px;
  border-radius: 14px;
  white-space: nowrap;
}

body.app-ventas .warehouse-action-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
}

body.app-ventas .warehouse-action-strip article,
body.app-ventas .warehouse-action-strip > div {
  display: grid;
  align-content: center;
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgb(16 185 129 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%));
}

body.app-ventas .warehouse-action-strip span,
body.app-ventas .warehouse-action-strip small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

body.app-ventas .warehouse-action-strip strong {
  color: #10251f;
  font-size: 1.2rem;
  font-weight: 950;
}

body.app-ventas .warehouse-action-strip button {
  min-height: 54px;
  border-radius: 14px;
  white-space: nowrap;
}

.supervisor-control-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgb(14 165 233 / 12%), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(240 249 255 / 72%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 8%);
}

.supervisor-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.supervisor-control-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
}

.supervisor-control-head span,
.supervisor-review-card small,
.supervisor-audit-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.supervisor-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.supervisor-control-actions button {
  min-height: 40px;
  border-radius: 13px;
  white-space: nowrap;
}

.supervisor-review-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.supervisor-review-card {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.supervisor-review-card:hover {
  transform: translateY(-2px);
  border-color: rgb(15 118 110 / 26%);
  box-shadow: 0 14px 26px rgb(8 30 26 / 8%);
}

.supervisor-review-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.supervisor-review-card strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--accent-dark);
  font-size: clamp(0.98rem, 1.7vw, 1.22rem);
  overflow-wrap: anywhere;
}

.supervisor-review-card.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: rgb(255 251 235 / 82%);
}

.supervisor-review-card.is-info {
  border-color: rgb(14 165 233 / 22%);
  background: rgb(240 249 255 / 82%);
}

.supervisor-audit-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.supervisor-audit-strip article {
  min-width: 0;
  border: 1px dashed rgb(15 118 110 / 18%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 66%);
}

.supervisor-audit-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.seller-attention-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 8%, rgb(245 158 11 / 15%), transparent 28%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(255 251 235 / 68%));
  box-shadow: 0 18px 38px rgb(8 30 26 / 7%);
}

.seller-attention-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.seller-attention-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
}

.seller-attention-head span,
.seller-attention-grid small,
.seller-attention-lists span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.seller-attention-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.seller-attention-actions button {
  min-height: 40px;
  border-radius: 13px;
  white-space: nowrap;
}

.seller-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.seller-attention-grid article,
.seller-attention-lists article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 72%);
}

.seller-attention-grid article.is-warning {
  border-color: rgb(245 158 11 / 25%);
  background: rgb(255 251 235 / 82%);
}

.seller-attention-grid article.is-ok {
  border-color: rgb(16 185 129 / 18%);
}

.seller-attention-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-attention-grid strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--accent-dark);
  font-size: 1.22rem;
}

.seller-attention-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.seller-attention-lists strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  body.app-ventas .warehouse-action-strip {
    grid-template-columns: 1fr;
  }

  .supervisor-control-head {
    display: grid;
  }

  .supervisor-control-actions,
  .supervisor-control-actions button {
    width: 100%;
  }

  .supervisor-review-grid,
  .supervisor-audit-strip,
  .seller-attention-grid,
  .seller-attention-lists {
    grid-template-columns: 1fr;
  }

  .seller-attention-head {
    display: grid;
  }

  .seller-attention-actions,
  .seller-attention-actions button {
    width: 100%;
  }
}

body.app-ventas .sales-goal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgb(16 185 129 / 18%);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background:
    radial-gradient(circle at 92% 16%, rgb(16 185 129 / 14%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 72%));
  box-shadow: 0 18px 42px rgb(15 32 28 / 7%);
}

body.app-ventas .sales-goal-panel.is-warning {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 92% 16%, rgb(245 158 11 / 15%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 72%));
}

body.app-ventas .sales-goal-panel h3 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
}

body.app-ventas .sales-goal-panel span,
body.app-ventas .sales-goal-meter small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.42;
}

body.app-ventas .sales-goal-meter {
  display: grid;
  gap: 7px;
}

body.app-ventas .sales-goal-meter > div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(15 118 110 / 10%);
}

body.app-ventas .sales-goal-meter > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #f59e0b);
}

body.app-ventas .sales-goal-meter strong {
  color: var(--accent-dark);
  font-size: 1.35rem;
}

body.app-ventas .hourly-sales-panel {
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 96% 12%, rgb(16 185 129 / 12%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(245 252 249 / 82%));
  box-shadow: 0 18px 42px rgb(15 32 28 / 6%);
}

body.app-ventas .hourly-sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 10px;
  align-items: end;
}

body.app-ventas .hourly-sales-grid article {
  display: grid;
  grid-template-rows: auto 86px auto;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 14px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .hourly-sales-grid span,
body.app-ventas .hourly-sales-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

body.app-ventas .hourly-sales-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 0.86rem;
}

body.app-ventas .hourly-sales-bar {
  display: flex;
  align-items: flex-end;
  min-height: 86px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(15 118 110 / 8%);
}

body.app-ventas .hourly-sales-bar span {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: inherit;
  background: linear-gradient(180deg, #10b981, #f59e0b);
}

body.app-ventas .top-products-panel {
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(circle at 94% 14%, rgb(245 158 11 / 12%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(245 252 249 / 82%));
  box-shadow: 0 18px 42px rgb(15 32 28 / 6%);
}

body.app-ventas .top-products-list {
  display: grid;
  gap: 10px;
}

body.app-ventas .top-products-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 14px;
  padding: 10px;
  background: rgb(255 255 255 / 74%);
}

body.app-ventas .top-products-list b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgb(16 185 129 / 12%);
  color: var(--accent-dark);
}

body.app-ventas .top-products-list strong {
  color: var(--accent-dark);
}

body.app-ventas .top-products-list span,
body.app-ventas .top-products-list small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

body.app-ventas .top-products-list i {
  display: block;
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(15 118 110 / 8%);
}

body.app-ventas .top-products-list i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #f59e0b);
}

body.app-ventas .top-product-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

body.app-ventas .top-product-side em {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgb(15 118 110 / 8%);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

body.app-ventas .top-product-side em.is-ok {
  background: rgb(16 185 129 / 10%);
  color: #047857;
}

body.app-ventas .top-product-side em.is-warning {
  background: rgb(245 158 11 / 12%);
  color: #92400e;
}

body.app-ventas .top-product-side em.is-danger {
  background: rgb(220 38 38 / 10%);
  color: #991b1b;
}

body.app-ventas .top-product-side .ghost-button {
  min-height: 32px;
  padding: 6px 10px;
}

body.app-ventas .product-margin-preview {
  display: grid;
  gap: 4px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 14px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 96% 10%, rgb(16 185 129 / 12%), transparent 30%),
    rgb(255 255 255 / 78%);
}

body.app-ventas .product-margin-preview.is-warning {
  border-color: rgb(245 158 11 / 28%);
  background: rgb(255 251 235 / 84%);
}

body.app-ventas .product-margin-preview.is-danger {
  border-color: rgb(220 38 38 / 24%);
  background: rgb(254 242 242 / 84%);
}

body.app-ventas .product-margin-preview strong {
  color: var(--accent-dark);
}

body.app-ventas .product-margin-preview.is-warning strong {
  color: #92400e;
}

body.app-ventas .product-margin-preview.is-danger strong {
  color: #991b1b;
}

body.app-ventas .product-margin-preview span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.38;
}

.pos-customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.pos-customer-row .ghost-button {
  min-height: 58px;
}

.pos-sale-options {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.settings-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 10px;
  background: rgb(255 255 255 / 72%);
  color: #1f2a44;
  font-weight: 800;
}

.settings-check input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.settings-overview-grid,
.settings-preset-row {
  display: grid;
  gap: 10px;
}

.settings-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.settings-overview-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 76%)),
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 10%), transparent 34%);
  box-shadow: 0 14px 32px rgb(8 30 26 / 7%);
}

.settings-overview-grid span,
.settings-overview-grid small,
.settings-preset-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.settings-overview-grid strong {
  display: block;
  margin: 6px 0 3px;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.admin-config-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.18fr);
  gap: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 86% 16%, rgb(16 185 129 / 18%), transparent 28%),
    radial-gradient(circle at 6% 82%, rgb(245 158 11 / 13%), transparent 28%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 82%));
  box-shadow: 0 20px 44px rgb(8 30 26 / 9%);
}

.admin-config-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(15 118 110 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 118 110 / 5%) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.admin-config-main,
.admin-config-score,
.admin-config-kpis,
.admin-config-pending {
  position: relative;
  z-index: 1;
}

.admin-config-main h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
}

.admin-config-main > span {
  display: block;
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.admin-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.admin-config-actions button {
  min-height: 40px;
  border-radius: 13px;
  white-space: nowrap;
}

.admin-config-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 112px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  background: linear-gradient(155deg, rgb(6 78 59 / 94%), rgb(15 118 110 / 86%));
  color: #ecfdf5;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.admin-config-score strong {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.admin-config-score span {
  color: rgb(209 250 229 / 82%);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-config-kpis,
.admin-config-pending {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.admin-config-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-config-kpis article,
.admin-config-pending {
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 12px 26px rgb(8 30 26 / 6%);
}

.admin-config-kpis article {
  padding: 12px;
}

.admin-config-kpis span,
.admin-config-kpis small,
.admin-config-pending p {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-config-kpis strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.admin-config-pending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}

.admin-config-pending > strong {
  margin-right: auto;
  color: var(--accent-dark);
}

.admin-config-pending button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgb(245 158 11 / 24%);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 920;
  cursor: pointer;
}

.admin-config-pending b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
}

.admin-system-overview {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgb(14 116 144 / 16%);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgb(20 184 166 / 18%), transparent 28%),
    radial-gradient(circle at 10% 90%, rgb(245 158 11 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 78%));
  box-shadow: 0 22px 50px rgb(8 30 26 / 9%);
}

.admin-system-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(15 118 110 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 118 110 / 5%) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.admin-system-head,
.admin-system-cards,
.admin-system-roles,
.admin-system-footer {
  position: relative;
  z-index: 1;
}

.admin-system-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-system-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.18rem, 2.2vw, 1.75rem);
}

.admin-system-head span,
.admin-system-footer span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.45;
}

.admin-system-score {
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 86px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #064e3b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 16px 28px rgb(15 118 110 / 16%);
}

.admin-system-score.is-warning {
  background: linear-gradient(145deg, #b45309, #78350f);
}

.admin-system-score.is-danger {
  background: linear-gradient(145deg, #b91c1c, #7f1d1d);
}

.admin-system-score strong {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.admin-system-score span {
  color: rgb(255 255 255 / 82%);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-system-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-system-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-height: 112px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 13px 28px rgb(8 30 26 / 6%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-system-card:hover {
  transform: translateY(-2px);
  border-color: rgb(15 118 110 / 34%);
  box-shadow: 0 18px 34px rgb(8 30 26 / 10%);
}

.admin-system-card b {
  display: grid;
  grid-row: span 3;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 950;
}

.admin-system-card.is-warning b {
  background: #fef3c7;
  color: #b45309;
}

.admin-system-card.is-danger b {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-system-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-system-card strong {
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-size: 1.02rem;
}

.admin-system-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.admin-system-roles,
.admin-system-footer {
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 72%);
}

.admin-system-roles {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-system-roles > strong,
.admin-system-footer strong {
  color: var(--accent-dark);
}

.admin-system-roles div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-system-roles span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(148 163 184 / 28%);
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-system-roles span.is-on {
  border-color: rgb(16 185 129 / 26%);
  background: #ecfdf5;
  color: #047857;
}

.admin-system-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .admin-system-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-system-overview {
    padding: 12px;
    border-radius: 16px;
  }

  .admin-system-head,
  .admin-system-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-system-score {
    width: 100%;
    min-height: 72px;
  }

  .admin-system-cards {
    grid-template-columns: 1fr;
  }

  .admin-system-card {
    min-height: 96px;
  }

  .admin-system-actions,
  .admin-system-actions button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .admin-config-console,
  .settings-overview-grid,
  .admin-config-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-config-main,
  .admin-config-pending {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .admin-config-console,
  .settings-overview-grid,
  .admin-config-kpis,
  .settings-preset-row {
    grid-template-columns: 1fr;
  }

  .admin-config-score,
  .admin-config-kpis,
  .admin-config-pending {
    grid-column: 1;
  }

  .admin-config-actions button,
  .admin-config-pending button {
    width: 100%;
    justify-content: center;
  }
}

.settings-command-panel {
  border-color: rgb(15 118 110 / 12%);
  background:
    radial-gradient(circle at 96% 0%, rgb(245 158 11 / 9%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(248 253 250 / 86%));
}

.settings-window-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 8px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 16px 36px rgb(15 32 28 / 7%);
}

.module-window-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 8px;
  background:
    radial-gradient(circle at 95% 0%, rgb(16 185 129 / 10%), transparent 32%),
    rgb(255 255 255 / 80%);
  box-shadow: 0 16px 36px rgb(15 32 28 / 7%);
}

.settings-window-nav button,
.module-window-nav button,
.settings-start-grid button {
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(248 253 250 / 86%);
  color: var(--accent-dark);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.settings-window-nav button:hover,
.module-window-nav button:hover,
.settings-start-grid button:hover,
.module-window-nav button.is-active,
.settings-window-nav button.is-active {
  border-color: rgb(15 118 110 / 28%);
  background: linear-gradient(135deg, rgb(16 185 129 / 14%), rgb(245 158 11 / 10%));
  box-shadow: 0 12px 28px rgb(15 118 110 / 10%);
  transform: translateY(-1px);
}

.settings-window-nav strong,
.settings-window-nav span,
.module-window-nav strong,
.module-window-nav span,
.settings-start-grid span,
.settings-start-grid strong {
  display: block;
}

.settings-window-nav strong,
.module-window-nav strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.settings-window-nav span,
.module-window-nav span,
.settings-start-grid strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.35;
}

.settings-window-panel[hidden],
.inventory-window-panel[hidden],
.purchase-window-panel[hidden],
.cash-window-panel[hidden],
.history-window-panel[hidden],
.customer-window-panel[hidden],
.report-window-panel[hidden] {
  display: none !important;
}

.settings-start-window {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 78%));
}

.settings-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.settings-start-grid span {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.settings-preset-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 8px;
}

.settings-preset-row button {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 950;
}

.settings-preset-note {
  margin: 0 0 12px;
}

body.app-ventas .receipt-preview-panel {
  overflow: hidden;
}

body.app-ventas .receipt-preview-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

body.app-ventas .receipt-preview-ticket {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 360px;
  border: 1px solid rgb(15 23 42 / 18%);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #111827;
  box-shadow: 0 18px 42px rgb(8 30 26 / 10%);
}

body.app-ventas .receipt-preview-ticket::before,
body.app-ventas .receipt-preview-ticket::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 8px, transparent 8px 14px);
}

body.app-ventas .receipt-preview-ticket::before {
  top: 76px;
}

body.app-ventas .receipt-preview-ticket::after {
  bottom: 72px;
}

body.app-ventas .receipt-preview-brand {
  display: grid;
  gap: 3px;
  text-align: center;
}

body.app-ventas .receipt-preview-brand strong {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.app-ventas .receipt-preview-brand span,
body.app-ventas .receipt-preview-brand small,
body.app-ventas .receipt-preview-meta,
body.app-ventas .receipt-preview-ticket p {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .receipt-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
  text-align: center;
}

body.app-ventas .receipt-preview-lines {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

body.app-ventas .receipt-preview-lines div,
body.app-ventas .receipt-preview-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body.app-ventas .receipt-preview-lines span {
  color: #475569;
  font-size: 0.86rem;
}

body.app-ventas .receipt-preview-lines strong,
body.app-ventas .receipt-preview-total strong {
  color: #0f172a;
  font-weight: 950;
  white-space: nowrap;
}

body.app-ventas .receipt-preview-total {
  border-top: 2px solid #0f172a;
  padding-top: 10px;
  font-weight: 950;
}

body.app-ventas .receipt-preview-ticket p {
  margin: 0;
  text-align: center;
}

body.app-ventas .receipt-preview-tips {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgb(245 158 11 / 14%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(236 253 245 / 74%));
}

body.app-ventas .receipt-preview-tips strong {
  color: #10251f;
  font-size: 1.06rem;
}

body.app-ventas .receipt-preview-tips span {
  color: var(--muted);
  line-height: 1.5;
}

.mixed-payment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(20 184 166 / 20%);
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(240 253 250 / 88%), rgb(255 255 255 / 92%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
}

.mixed-payment-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mixed-payment-card span,
.mixed-payment-card small {
  color: #55706b;
  font-size: 0.82rem;
  font-weight: 800;
}

.mixed-payment-card strong {
  color: #0f766e;
}

.touch-search {
  margin: 0;
  font-size: 0.9rem;
}

.touch-search input,
.touch-customer-select select {
  min-height: 58px;
  border-radius: 8px;
  font-size: 1.02rem;
}

.touch-action {
  min-height: 58px;
  min-width: 132px;
  border-radius: 8px;
  font-size: 1rem;
}

.pos-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-top: 10px;
}

.pos-category-rail button {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: white;
  color: var(--muted);
  white-space: nowrap;
}

.pos-category-rail button.is-active,
.pos-category-rail button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.touch-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.touch-product-card {
  min-height: 156px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 90% 8%, rgb(15 159 110 / 16%), transparent 34%),
    linear-gradient(145deg, white, #f5fbf8);
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 7px;
  align-content: space-between;
  justify-items: start;
  box-shadow: 0 12px 34px rgb(15 32 28 / 7%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.touch-product-card:not(:disabled):hover,
.touch-product-card:not(:disabled):focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 48px rgb(15 159 110 / 14%);
  transform: translateY(-2px);
}

.touch-product-card:active {
  transform: scale(0.98);
}

.touch-product-card:disabled {
  opacity: 0.48;
}

.touch-product-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.touch-product-card .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
}

.touch-product-card b {
  color: var(--accent-dark);
  font-size: 1.28rem;
}

.product-code {
  width: fit-content;
  padding: 5px 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}

.touch-cart-panel {
  position: sticky;
  top: 14px;
  align-self: start;
}

.touch-cart-head strong {
  color: var(--accent-dark);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.pos-section-block {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgb(15 159 110 / 7%), transparent 32%),
    linear-gradient(180deg, rgb(255 255 255 / 82%), rgb(247 252 249 / 70%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%);
}

.pos-section-block + .pos-section-block {
  margin-top: 12px;
}

.pos-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
}

.pos-section-title strong,
.pos-section-title span {
  display: block;
}

.pos-section-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.pos-total-block {
  margin-top: 12px;
}

.pos-actions-block {
  background:
    radial-gradient(circle at 100% 0%, rgb(245 158 11 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(255 255 255 / 86%), rgb(255 251 235 / 58%));
}

.touch-cart-list {
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.touch-cart-list .empty-state {
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 68%);
}

.touch-cart-line {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.cart-item-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cart-item-name small {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  font-weight: 880;
}

.touch-qty {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  gap: 8px;
}

.touch-qty .ghost-button {
  min-height: 52px;
  font-size: 1.35rem;
}

.touch-qty strong {
  min-height: 52px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.touch-cart-line label input {
  min-height: 48px;
}

.touch-sale-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  margin: 12px 0;
}

.touch-sale-actions .ghost-button {
  min-height: 48px;
}

.touch-charge-button {
  width: 100%;
  min-height: 68px;
  border-radius: 8px;
  font-size: 1.2rem;
  box-shadow: 0 20px 45px rgb(15 159 110 / 22%);
}

.touch-cart-panel form {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.touch-cart-panel .pos-cart-list {
  max-height: clamp(180px, 28dvh, 390px);
  min-height: 120px;
}

.payment-modal-body {
  width: min(760px, calc(100vw - 24px));
  max-height: min(88dvh, 760px);
  overflow: auto;
}

.sale-detail-modal {
  width: min(760px, calc(100vw - 24px));
}

.stock-movement-product {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid rgb(15 159 110 / 18%);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent-tint) 36%, white));
}

.stock-movement-product strong {
  color: var(--accent-dark);
}

.stock-movement-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.15fr);
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 76%));
}

.stock-movement-preview.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 82%));
}

.stock-movement-preview.is-danger {
  border-color: rgb(239 68 68 / 24%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(254 242 242 / 82%));
}

.stock-movement-preview article,
.stock-movement-preview > div {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 13px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
}

.stock-movement-preview span,
.stock-movement-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.32;
}

.stock-movement-preview strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 1.08rem;
}

/* Visual polish for the sales SaaS workspace. Kept CSS-only for smooth POS performance. */
body.app-ventas {
  background:
    linear-gradient(115deg, rgb(4 18 16 / 4%) 0 24%, transparent 24% 100%),
    radial-gradient(circle at 8% 18%, rgb(20 184 166 / 13%), transparent 28vw),
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 12%), transparent 26vw),
    radial-gradient(circle at 68% 92%, rgb(37 99 235 / 8%), transparent 30vw),
    #f6faf8;
}

body.app-ventas .ventas-touch-shell::before {
  background:
    linear-gradient(90deg, transparent 0 71%, rgb(20 184 166 / 10%) 71% 71.2%, transparent 71.2% 100%),
    linear-gradient(0deg, transparent 0 78%, rgb(245 158 11 / 7%) 78% 78.18%, transparent 78.18% 100%),
    radial-gradient(circle at 76% 24%, rgb(20 184 166 / 14%), transparent 30vw),
    radial-gradient(circle at 18% 92%, rgb(245 158 11 / 13%), transparent 30vw);
}

body.app-ventas .ventas-touch-shell::after {
  opacity: 0.36;
  mix-blend-mode: multiply;
}

body.app-ventas .admin-panel,
body.app-ventas .ventas-workspace .document-list,
body.app-ventas .ventas-workspace .workflow-panel,
body.app-ventas .metrics article {
  border: 1px solid rgb(15 23 42 / 6%);
  box-shadow:
    0 22px 60px rgb(8 30 26 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 78%);
}

body.app-ventas .ventas-touch-shell .topbar {
  min-height: 86px;
  border: 1px solid rgb(255 255 255 / 14%);
  background:
    radial-gradient(circle at 16% 18%, rgb(82 255 193 / 28%), transparent 28%),
    radial-gradient(circle at 78% 22%, rgb(255 183 77 / 22%), transparent 26%),
    linear-gradient(135deg, #071613, #10251f 46%, #0f766e 78%, #11915f);
}

body.app-ventas .ventas-touch-shell .topbar h1 {
  text-shadow: 0 10px 26px rgb(0 0 0 / 22%);
}

body.app-ventas .ventas-tabs {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(7 18 17 / 96%), rgb(17 38 32 / 94%)),
    radial-gradient(circle at 24% 0%, rgb(82 255 193 / 22%), transparent 34%);
}

body.app-ventas .ventas-tabs button {
  border-radius: 12px;
  font-weight: 900;
}

body.app-ventas .ventas-tabs button.is-active,
body.app-ventas .ventas-tabs button.is-active:hover {
  background:
    linear-gradient(135deg, #10b981, #0f766e 58%, #f59e0b);
}

body.app-ventas .touch-pos-shell {
  gap: 18px;
}

body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(15 23 42 / 6%);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(246 252 249 / 90%)),
    radial-gradient(circle at 92% 0%, rgb(16 185 129 / 14%), transparent 34%);
}

body.app-ventas .touch-panel::before,
body.app-ventas .touch-cart-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 48%, rgb(255 255 255 / 36%) 50%, transparent 52% 100%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgb(15 118 110 / 4%) 42px 43px);
  opacity: 0.36;
}

body.app-ventas .touch-panel > *,
body.app-ventas .touch-cart-panel > * {
  position: relative;
  z-index: 1;
}

body.app-ventas .touch-pos-head,
body.app-ventas .touch-cart-head {
  min-height: 66px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgb(15 118 110 / 10%);
}

body.app-ventas .touch-pos-head h3,
body.app-ventas .touch-cart-head h3 {
  color: #10251f;
}

body.app-ventas .touch-shortcuts span,
body.app-ventas .product-code {
  border: 1px solid rgb(15 118 110 / 12%);
  background: linear-gradient(135deg, rgb(236 253 245 / 92%), rgb(255 251 235 / 82%));
}

body.app-ventas .pos-quick-status article {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 82%)),
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 12%), transparent 30%);
}

body.app-ventas .pos-quick-status article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(20 184 166 / 9%);
}

body.app-ventas .pos-search-row {
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 16px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 84%);
}

body.app-ventas .touch-search input,
body.app-ventas .touch-customer-select select,
body.app-ventas .pos-sale-options input,
body.app-ventas .cart-line input {
  border-color: rgb(15 118 110 / 14%);
  background: rgb(255 255 255 / 88%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}

body.app-ventas .touch-search input:focus,
body.app-ventas .touch-customer-select select:focus,
body.app-ventas .pos-sale-options input:focus,
body.app-ventas .cart-line input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgb(16 185 129 / 12%);
}

body.app-ventas .scanner-status {
  border-radius: 14px;
}

body.app-ventas .pos-input-hint {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgb(236 253 245 / 76%), rgb(255 251 235 / 62%));
}

body.app-ventas .pos-section-block {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 82%), rgb(248 252 250 / 72%)),
    radial-gradient(circle at 100% 0%, rgb(20 184 166 / 8%), transparent 34%);
}

body.app-ventas .pos-section-title {
  align-items: center;
}

body.app-ventas .pos-category-rail button {
  border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

body.app-ventas .pos-category-rail button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgb(15 118 110 / 12%);
}

body.app-ventas .touch-product-grid {
  gap: 14px;
}

body.app-ventas .touch-product-card {
  isolation: isolate;
  position: relative;
  min-height: 170px;
  border-radius: 16px;
  border-color: rgb(15 118 110 / 12%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 80%)),
    radial-gradient(circle at 90% 10%, rgb(16 185 129 / 18%), transparent 36%);
  box-shadow:
    0 16px 36px rgb(8 30 26 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 86%);
}

body.app-ventas .touch-product-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgb(16 185 129 / 18%), rgb(245 158 11 / 16%));
  transform: rotate(8deg);
  z-index: -1;
}

body.app-ventas .touch-product-card:not(:disabled):hover,
body.app-ventas .touch-product-card:not(:disabled):focus-visible {
  border-color: rgb(16 185 129 / 42%);
  box-shadow:
    0 24px 54px rgb(8 30 26 / 14%),
    0 0 0 5px rgb(16 185 129 / 9%);
}

body.app-ventas .touch-product-card.is-recently-added {
  border-color: rgb(245 158 11 / 64%);
  box-shadow:
    0 22px 54px rgb(245 158 11 / 18%),
    0 0 0 6px rgb(245 158 11 / 12%);
  animation: posAddedPulse 780ms ease-out 1;
}

body.app-ventas .touch-product-card.is-recently-added::before {
  content: "Agregado";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: white;
  font-size: 0.7rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgb(8 30 26 / 14%);
}

body.app-ventas .combo-product-card {
  border-color: rgb(245 158 11 / 30%);
  background:
    linear-gradient(145deg, #ffffff, #fff7ed 52%, #ecfdf5),
    radial-gradient(circle at 90% 10%, rgb(245 158 11 / 20%), transparent 36%);
}

body.app-ventas .combo-product-card::after {
  background: linear-gradient(135deg, rgb(245 158 11 / 24%), rgb(16 185 129 / 18%));
}

body.app-ventas .touch-product-card b {
  padding: 6px 10px;
  border-radius: 999px;
  background: #064e3b;
  color: #ffffff;
  font-size: 1.08rem;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgb(16 37 31 / 12%);
}

body.app-ventas .touch-cart-panel {
  border-color: rgb(245 158 11 / 12%);
}

body.app-ventas .touch-cart-head > strong {
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10251f, #0f766e);
  color: #ffffff;
  box-shadow: 0 14px 30px rgb(15 118 110 / 18%);
}

body.app-ventas .touch-cart-line {
  border-radius: 14px;
  border-color: rgb(15 118 110 / 10%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(247 252 249 / 80%));
  box-shadow: 0 10px 26px rgb(8 30 26 / 7%);
}

body.app-ventas .touch-qty strong {
  border: 1px solid rgb(15 118 110 / 14%);
  background: linear-gradient(135deg, rgb(236 253 245 / 96%), #ffffff);
}

body.app-ventas .sale-total-card {
  border-radius: 16px;
  background:
    linear-gradient(135deg, #10251f, #0f766e);
  color: #ffffff;
  box-shadow: 0 18px 42px rgb(15 118 110 / 18%);
}

body.app-ventas .sale-total-card span,
body.app-ventas .sale-total-card strong {
  color: #ffffff;
}

body.app-ventas .sale-total-card > div:not(.is-total) {
  opacity: 0.82;
}

body.app-ventas .sale-total-card .is-total {
  border-color: rgb(255 255 255 / 18%);
}

body.app-ventas .touch-sale-actions .ghost-button {
  border-radius: 12px;
  background: rgb(255 255 255 / 84%);
}

body.app-ventas .touch-charge-button {
  border-radius: 16px;
  background:
    linear-gradient(135deg, #10b981, #0f766e 54%, #f59e0b);
  box-shadow:
    0 22px 50px rgb(15 118 110 / 24%),
    inset 0 1px 0 rgb(255 255 255 / 26%);
}

body.app-ventas .touch-charge-button:not(:disabled):hover {
  box-shadow:
    0 28px 66px rgb(15 118 110 / 30%),
    0 0 0 6px rgb(245 158 11 / 10%);
}

body.app-ventas .promotion-card,
body.app-ventas .collection-plan-grid article,
body.app-ventas .debt-aging-grid article,
body.app-ventas .inventory-insight-grid article,
body.app-ventas .cash-health-grid article,
body.app-ventas .business-health-grid article {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgb(8 30 26 / 7%);
}

@media (min-width: 1280px) {
  body.app-ventas .touch-pos-shell {
    grid-template-columns: minmax(620px, 1.45fr) minmax(390px, 0.82fr);
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  body.app-ventas .touch-cart-panel .pos-cart-list {
    max-height: clamp(260px, 32dvh, 440px);
  }
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-touch-shell {
    padding: 12px;
  }

  body.app-ventas .ventas-touch-shell .topbar {
    min-height: auto;
  }

  body.app-ventas .touch-pos-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-ventas .touch-cart-panel {
    position: static;
  }

  body.app-ventas .touch-cart-panel .pos-cart-list {
    max-height: none;
  }

  body.app-ventas .touch-product-card {
    min-height: 152px;
  }
}

@media (max-width: 760px) {
  body.app-ventas {
    background:
      radial-gradient(circle at 18% 8%, rgb(20 184 166 / 14%), transparent 42vw),
      radial-gradient(circle at 92% 90%, rgb(245 158 11 / 12%), transparent 46vw),
      #f6faf8;
  }

  body.app-ventas .ventas-touch-shell {
    width: 100% !important;
    padding: 8px;
  }

  body.app-ventas .ventas-touch-shell::before,
  body.app-ventas .ventas-touch-shell::after {
    display: none;
  }

  body.app-ventas .ventas-touch-shell .topbar {
    gap: 10px;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
  }

  body.app-ventas .ventas-touch-shell .topbar h1 {
    font-size: 1.22rem;
  }

  body.app-ventas .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  body.app-ventas .topbar-actions > * {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  body.app-ventas .topbar-actions .user-badge {
    grid-column: 1 / -1;
  }

  body.app-ventas .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .ventas-menu-toggle {
    border-radius: 16px;
    background:
      linear-gradient(135deg, #071613, #0f766e);
  }

  body.app-ventas .ventas-tabs {
    border-radius: 16px;
  }

  body.app-ventas .touch-panel,
  body.app-ventas .touch-cart-panel {
    border-radius: 16px;
    padding: 12px;
  }

  body.app-ventas .touch-pos-head,
  body.app-ventas .touch-cart-head {
    min-height: auto;
  }

  body.app-ventas .touch-shortcuts {
    justify-content: flex-start;
  }

  body.app-ventas .pos-quick-status,
  body.app-ventas .pos-shift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-ventas .pos-search-row,
  body.app-ventas .pos-customer-row,
  body.app-ventas .pos-sale-options {
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-action,
  body.app-ventas .pos-customer-row .ghost-button {
    width: 100%;
    min-height: 54px;
  }

  body.app-ventas .scanner-status,
  body.app-ventas .pos-input-hint {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .pos-section-block {
    padding: 10px;
  }

  body.app-ventas .pos-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.app-ventas .touch-product-card {
    min-height: 138px;
    padding: 12px;
  }

  body.app-ventas .touch-product-card b {
    font-size: 0.96rem;
  }

  body.app-ventas .touch-product-card::after {
    width: 34px;
  }

  body.app-ventas .touch-cart-head > strong {
    width: 100%;
    text-align: center;
  }

  body.app-ventas .touch-qty {
    grid-template-columns: 52px 1fr 52px;
  }

  body.app-ventas .touch-charge-button {
    min-height: 62px;
  }

  body.app-ventas .combo-builder-grid,
  body.app-ventas .customer-workspace-grid,
  body.app-ventas .collection-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  body.app-ventas .ventas-touch-shell {
    padding: 6px;
  }

  body.app-ventas .topbar-actions {
    grid-template-columns: 1fr;
  }

  body.app-ventas .metrics,
  body.app-ventas .pos-quick-status,
  body.app-ventas .pos-shift-grid,
  body.app-ventas .pos-shift-last {
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-product-card {
    min-height: 122px;
  }

  body.app-ventas .touch-sale-actions {
    grid-template-columns: 1fr;
  }

  body.app-ventas .payment-method-grid,
  body.app-ventas .quick-cash-grid,
  body.app-ventas .touch-payment-methods {
    grid-template-columns: 1fr;
  }

  body.app-ventas .admin-row,
  body.app-ventas .cash-closure-row {
    grid-template-columns: 1fr;
  }

  body.app-ventas .admin-row-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.receivable-payment-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.receivable-payment-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(200px, 1.15fr);
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 76%));
}

.receivable-payment-preview.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 82%));
}

.receivable-payment-preview.is-danger {
  border-color: rgb(239 68 68 / 24%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(254 242 242 / 82%));
}

.receivable-payment-preview article,
.receivable-payment-preview > div {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 13px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
}

.receivable-payment-card div {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent-tint) 32%, white));
}

.receivable-payment-card span,
.receivable-payment-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.32;
}

.receivable-payment-card strong,
.receivable-payment-preview strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
}

.receivable-progress {
  width: min(260px, 100%);
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgb(15 32 28 / 10%);
  overflow: hidden;
}

.receivable-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.sale-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.sale-detail-summary article,
.sale-detail-card,
.sale-detail-items article {
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 8px;
  background: linear-gradient(135deg, white, color-mix(in srgb, var(--accent-tint) 34%, white));
}

.sale-detail-summary article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.sale-detail-summary span,
.sale-detail-card span,
.sale-detail-items span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.sale-detail-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.sale-detail-card div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.sale-detail-items {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.sale-detail-items article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.sale-detail-items div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sale-detail-items b {
  color: var(--accent-dark);
}

.touch-payment-layout {
  display: grid;
  gap: 14px;
}

.touch-payment-total {
  border: 0;
  background:
    radial-gradient(circle at 88% 0%, rgb(15 159 110 / 18%), transparent 38%),
    linear-gradient(135deg, #101a18, #17362e);
  color: white;
}

.touch-payment-total span,
.touch-payment-total small {
  color: rgb(255 255 255 / 68%);
}

.touch-payment-total strong {
  font-size: clamp(2rem, 6vw, 3.35rem);
  overflow-wrap: anywhere;
}

.touch-payment-methods {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.touch-payment-methods button,
.quick-cash-grid button {
  min-height: 66px;
  border-radius: 8px;
  font-size: 0.96rem;
}

.touch-payment-methods button {
  display: grid;
  place-items: center;
  gap: 5px;
}

.touch-payment-methods button span {
  min-width: 34px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.touch-payment-methods button.is-active span {
  background: rgb(255 255 255 / 18%);
  color: white;
}

@keyframes salesBeamSweep {
  0%, 100% { transform: translateY(-44px) translateZ(110px); opacity: 0.38; }
  50% { transform: translateY(44px) translateZ(110px); opacity: 0.95; }
}

@keyframes salesPackageFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes routeTraceFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -120; }
}

@keyframes packetRouteA {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: translateZ(118px) scale(0.7) rotate(0deg);
  }
  12%,
  86% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: translateZ(118px) scale(1.08) rotate(180deg);
  }
}

@keyframes hologramCoreSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes dataVaultSweep {
  from { rotate: 0deg; }
  to { rotate: -360deg; }
}

@keyframes holoPanelShift {
  0%,
  100% {
    opacity: 0.42;
    translate: 0 0;
  }
  50% {
    opacity: 0.84;
    translate: 0 -8px;
  }
}

@keyframes correspondenceBackdropDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

@keyframes documentStampPulse {
  0%, 100% { scale: 1; opacity: 0.72; }
  50% { scale: 1.08; opacity: 1; }
}

@keyframes panelCoreFloat {
  0%, 100% { transform: translateZ(90px) translateY(0) rotate(0deg); }
  50% { transform: translateZ(112px) translateY(-10px) rotate(4deg); }
}

@keyframes posAddedPulse {
  0% { transform: scale(0.98); }
  45% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.quick-cash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-cash-grid button {
  border: 1px solid var(--line);
  background: white;
  color: var(--accent-dark);
  font-weight: 900;
}

.quick-cash-grid button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payment-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-keypad button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #f4fbf8);
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgb(13 84 70 / 8%);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.payment-keypad button:hover,
.payment-keypad button:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(16 185 129 / 45%);
  box-shadow: 0 16px 30px rgb(13 84 70 / 14%);
}

.payment-keypad .is-strong {
  border-color: transparent;
  background: linear-gradient(135deg, #059669, #0f766e 60%, #f59e0b);
  color: white;
}

.touch-payment-fields input {
  min-height: 58px;
  font-size: 1.08rem;
  min-width: 0;
  width: 100%;
}

.touch-payment-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.touch-payment-actions button {
  min-height: 64px;
}

.history-filters input,
.history-filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-action-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.admin-action-card:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, white);
  background: var(--accent-tint);
}

.cloud-safe-note {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent-tint) 82%, white), white),
    var(--panel);
  display: grid;
  gap: 4px;
  box-shadow: 0 14px 34px rgb(15 23 42 / 5%);
}

.cloud-safe-note strong {
  color: var(--accent-dark);
}

.cloud-safe-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.membership-note {
  border: 1px solid color-mix(in srgb, var(--info) 24%, var(--line));
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(120deg, color-mix(in srgb, #dff4ff 82%, white), white),
    var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgb(15 23 42 / 5%);
}

.membership-note.is-warning {
  border-color: color-mix(in srgb, var(--warn) 34%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, #fff2cc 82%, white), white),
    var(--panel);
}

.membership-note.is-danger {
  border-color: rgb(198 61 61 / 30%);
  background:
    linear-gradient(120deg, #fff1f1, white),
    var(--panel);
}

.membership-note strong {
  color: var(--accent-dark);
}

.membership-note.is-danger strong {
  color: #9d2f2f;
}

.membership-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body.app-ventas #loginError:not(:empty) {
  min-height: auto;
  border: 1px solid rgb(185 28 28 / 22%);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgb(255 241 241 / 96%), rgb(255 255 255 / 90%));
  color: #9d2f2f;
  line-height: 1.45;
}

body.app-ventas .security-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgb(14 165 233 / 22%);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgb(14 165 233 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 88%));
  box-shadow: 0 16px 38px rgb(8 30 26 / 8%);
}

body.app-ventas .security-notice h3 {
  margin: 2px 0 5px;
  color: #10251f;
}

body.app-ventas .security-notice span {
  color: #64746f;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

body.app-ventas .security-notice.is-session {
  border-color: rgb(14 165 233 / 28%);
}

body.app-ventas .security-notice.is-permission {
  border-color: rgb(245 158 11 / 30%);
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 14%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 88%));
}

body.app-ventas .security-notice.is-plan {
  border-color: rgb(239 68 68 / 30%);
  background:
    radial-gradient(circle at 92% 8%, rgb(239 68 68 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 241 241 / 88%));
}

.public-consult-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgb(46 125 118 / 18%), transparent 32rem),
    linear-gradient(135deg, #f7fbfa 0%, #edf5f2 48%, #fdf8ed 100%);
  color: #17262b;
}

.public-consult-shell {
  min-height: calc(100vh - 54px);
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
}

.public-consult-card {
  width: min(100%, 520px);
  border: 1px solid rgb(23 38 43 / 12%);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 28px 80px rgb(23 38 43 / 14%);
  backdrop-filter: blur(16px);
}

.public-consult-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.public-consult-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgb(16 80 73 / 18%));
}

.public-consult-brand span {
  display: block;
  margin-bottom: 5px;
  color: #4c6f6b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-consult-brand h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  line-height: 1.05;
}

.public-consult-form {
  display: grid;
  gap: 14px;
}

.public-consult-form label {
  display: grid;
  gap: 7px;
  color: #31454a;
  font-size: 0.92rem;
  font-weight: 700;
}

.public-consult-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgb(23 38 43 / 14%);
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
  color: #17262b;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.public-consult-form input:focus {
  outline: none;
  border-color: #24756d;
  box-shadow: 0 0 0 4px rgb(36 117 109 / 14%);
  transform: translateY(-1px);
}

.public-consult-form button {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #164b46, #2f8175);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgb(25 85 78 / 25%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.public-consult-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgb(25 85 78 / 28%);
  filter: saturate(1.05);
}

.public-consult-message {
  min-height: 22px;
  margin-top: 14px;
  font-weight: 700;
  color: #52676d;
}

.public-consult-message.is-success {
  color: #17695f;
}

.public-consult-message.is-error {
  color: #9d2f2f;
}

.public-consult-result {
  margin-top: 12px;
  border: 1px solid rgb(36 117 109 / 18%);
  border-radius: 14px;
  padding: 16px;
  background: #f7fbfa;
}

.public-result-status {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgb(36 117 109 / 12%);
  color: #17695f;
  font-size: 0.8rem;
  font-weight: 900;
}

.public-consult-result dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.public-consult-result dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.46fr) 1fr;
  gap: 12px;
  align-items: baseline;
}

.public-consult-result dt {
  color: #5d7075;
  font-size: 0.82rem;
  font-weight: 800;
}

.public-consult-result dd {
  margin: 0;
  color: #17262b;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-consult-note {
  margin: 18px 0 0;
  color: #52676d;
  font-size: 0.86rem;
  line-height: 1.5;
}

.public-consult-legal {
  margin: 12px 0 0;
  border-top: 1px solid rgb(23 38 43 / 10%);
  padding-top: 12px;
  color: #697d82;
  font-size: 0.78rem;
  line-height: 1.45;
}

.public-copyright {
  padding: 0 18px 22px;
  color: #61787d;
  font-size: 0.82rem;
  text-align: center;
}

.system-zow-site {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 62%)),
    radial-gradient(circle at 88% 0%, rgb(0 184 217 / 16%), transparent 34rem),
    #f7faf8;
  color: #172421;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgb(23 36 33 / 10%);
  padding: 12px clamp(18px, 5vw, 76px);
  background: rgb(255 255 255 / 86%);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgb(23 36 33 / 6%);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: #182621;
  font-weight: 950;
  text-decoration: none;
}

.site-brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(23 36 33 / 10%);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgb(23 36 33 / 10%);
}

.site-brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.site-brand-copy strong {
  font-size: 1rem;
}

.site-brand-copy small {
  color: #6c7c76;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 12px;
  color: #42554f;
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgb(20 111 98 / 9%);
  color: #146f62;
  transform: translateY(-1px);
}

.site-login-link {
  border: 1px solid rgb(20 111 98 / 18%);
  background: #ffffff;
  color: #146f62 !important;
  box-shadow: 0 10px 24px rgb(23 36 33 / 8%);
}

.site-hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 76px) clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.site-hero-logo {
  width: clamp(92px, 13vw, 150px);
  height: clamp(92px, 13vw, 150px);
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 22px 28px rgb(23 36 33 / 12%));
}

.site-hero-copy h1 {
  max-width: 840px;
  margin: 10px 0 18px;
  font-size: clamp(3.15rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.site-hero-copy p {
  max-width: 720px;
  color: #43544f;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.site-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.site-hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
}

.site-hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -12% auto auto;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgb(20 111 98 / 16%);
  border-radius: 50%;
  background: rgb(20 111 98 / 5%);
}

.dashboard-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  border: 1px solid rgb(23 36 33 / 10%);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(155deg, rgb(255 255 255 / 94%), rgb(240 248 245 / 90%)),
    #ffffff;
  box-shadow: 0 32px 90px rgb(23 36 33 / 16%);
  transform: rotate(-1.5deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.dashboard-preview:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 38px 100px rgb(23 36 33 / 20%);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53645e;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dbe6df;
}

.preview-topbar strong {
  margin-left: auto;
  color: #182621;
  font-size: 0.92rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-grid article {
  min-height: 106px;
  display: grid;
  align-content: end;
  gap: 9px;
  border: 1px solid rgb(23 36 33 / 8%);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.preview-grid span,
.preview-flow span {
  color: #687973;
  font-size: 0.78rem;
  font-weight: 850;
}

.preview-grid strong {
  color: #172421;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.15;
}

.preview-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-radius: 18px;
  padding: 14px;
  background: #172421;
}

.preview-flow span {
  color: #ffffff;
}

.preview-flow i {
  width: 26px;
  height: 1px;
  background: rgb(255 255 255 / 26%);
}

.product-card span,
.plan-grid span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(36 117 109 / 11%);
  color: #17695f;
  font-weight: 850;
}

.site-section {
  padding: clamp(40px, 6vw, 78px) clamp(18px, 5vw, 76px);
}

.site-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.site-section-head h2 {
  margin: 6px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.site-section-head p {
  color: #4c656a;
}

.product-grid,
.plan-grid,
.operation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.product-card,
.plan-grid article,
.operation-grid article,
.request-form {
  border: 1px solid rgb(23 36 33 / 10%);
  border-radius: 16px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 18px 52px rgb(23 36 33 / 8%);
}

.product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.plan-grid article:hover,
.operation-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgb(23 36 33 / 12%);
}

.product-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.product-card h3,
.plan-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.product-card p,
.plan-grid small {
  color: #4c656a;
  line-height: 1.5;
}

.product-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #17695f;
  font-weight: 900;
  text-decoration: none;
}

.site-band {
  background: rgb(255 255 255 / 58%);
}

.plan-grid article,
.operation-grid article {
  padding: 20px;
}

.operation-section {
  background:
    linear-gradient(90deg, rgb(20 111 98 / 7%), transparent 42%),
    rgb(255 255 255 / 34%);
}

.operation-grid article {
  min-height: 130px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.operation-grid strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #172421;
  color: #ffffff;
}

.operation-grid span {
  color: #43544f;
  font-weight: 850;
  line-height: 1.45;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
}

.request-form label {
  display: grid;
  gap: 7px;
  color: #34565b;
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgb(19 40 45 / 14%);
  border-radius: 10px;
  padding: 12px;
  color: #13282d;
  font: inherit;
}

.request-form textarea {
  resize: vertical;
}

.request-form button,
.request-form .form-error {
  grid-column: 1 / -1;
}

.request-form .form-error.is-success {
  color: #17695f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgb(23 36 33 / 10%);
  padding: 24px clamp(18px, 5vw, 72px);
  color: #4c656a;
}

.site-footer a {
  color: #17695f;
  font-weight: 900;
  text-decoration: none;
}

/* SYSTEM ZOW public landing redesign */
.system-zow-site {
  --zow-bg: #070b12;
  --zow-panel: rgb(12 20 32 / 74%);
  --zow-line: rgb(125 241 255 / 18%);
  --zow-cyan: #62efff;
  --zow-green: #6bffb2;
  --zow-violet: #8c7dff;
  --zow-text: #eff8ff;
  --zow-muted: #9aadc0;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(98 239 255 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(98 239 255 / 5%) 1px, transparent 1px),
    radial-gradient(ellipse at 72% 18%, rgb(98 239 255 / 20%), transparent 42%),
    radial-gradient(ellipse at 12% 68%, rgb(107 255 178 / 13%), transparent 40%),
    linear-gradient(135deg, #050711 0%, #08111d 48%, #0a1517 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--zow-text);
  overflow-x: hidden;
}

.system-zow-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 28%, rgb(98 239 255 / 10%) 29%, transparent 31% 100%),
    linear-gradient(240deg, transparent 0 68%, rgb(107 255 178 / 9%) 69%, transparent 71% 100%);
  opacity: 0.8;
}

.system-zow-site .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--zow-line);
  padding: 14px clamp(18px, 5vw, 82px);
  background: rgb(5 9 17 / 78%);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

.system-zow-site .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: var(--zow-text);
  text-decoration: none;
}

.zow-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(98 239 255 / 38%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(98 239 255 / 18%), rgb(140 125 255 / 10%)),
    rgb(9 16 28 / 92%);
  box-shadow:
    inset 0 0 26px rgb(98 239 255 / 16%),
    0 0 34px rgb(98 239 255 / 20%);
  transform: rotate(45deg);
}

.zow-symbol::before,
.zow-symbol::after,
.zow-symbol span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--zow-cyan), var(--zow-green));
  box-shadow: 0 0 18px rgb(98 239 255 / 55%);
}

.zow-symbol::before {
  width: 28px;
  height: 6px;
  transform: translateY(-10px);
}

.zow-symbol::after {
  width: 28px;
  height: 6px;
  transform: translateY(10px);
}

.zow-symbol span {
  width: 6px;
  height: 32px;
}

.zow-symbol.small {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.zow-symbol.small::before,
.zow-symbol.small::after {
  width: 20px;
  height: 4px;
}

.zow-symbol.small span {
  width: 4px;
  height: 23px;
}

.system-zow-site .site-brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.system-zow-site .site-brand-copy strong {
  color: #ffffff;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.system-zow-site .site-brand-copy small {
  color: var(--zow-muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.system-zow-site .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.system-zow-site .site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
  color: #c7d8e8;
  font-weight: 850;
  text-decoration: none;
  transition: border 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.system-zow-site .site-nav a:hover {
  border-color: rgb(98 239 255 / 26%);
  background: rgb(98 239 255 / 9%);
  color: #ffffff;
  transform: translateY(-1px);
}

.system-zow-site .site-login-link {
  border-color: rgb(107 255 178 / 28%) !important;
  background: linear-gradient(135deg, rgb(107 255 178 / 16%), rgb(98 239 255 / 11%)) !important;
  color: #eafff4 !important;
  box-shadow: 0 0 26px rgb(107 255 178 / 12%);
}

.system-zow-site .site-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding: clamp(46px, 8vw, 102px) clamp(18px, 5vw, 82px);
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(98 239 255 / 24%);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgb(7 14 25 / 72%);
  color: #bdeeff;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: inset 0 0 20px rgb(98 239 255 / 8%);
}

.hero-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zow-green);
  box-shadow: 0 0 18px var(--zow-green);
}

.system-zow-site .site-hero-copy h1 {
  max-width: 920px;
  margin: 18px 0;
  color: #ffffff;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgb(98 239 255 / 18%);
}

.system-zow-site .site-hero-copy p {
  max-width: 740px;
  color: #bfd0df;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.66;
}

.system-zow-site .site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.system-zow-site .primary-button {
  border: 1px solid rgb(98 239 255 / 36%);
  background: linear-gradient(135deg, #62efff, #6bffb2);
  color: #061018;
  box-shadow: 0 16px 42px rgb(98 239 255 / 22%);
}

.system-zow-site .ghost-button {
  border-color: rgb(207 228 240 / 16%);
  background: rgb(255 255 255 / 6%);
  color: #e6f8ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 30px;
}

.hero-metrics article {
  border: 1px solid var(--zow-line);
  border-radius: 18px;
  padding: 15px;
  background: rgb(8 16 29 / 66%);
}

.hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.hero-metrics span {
  color: var(--zow-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.system-zow-site .site-hero-visual {
  min-height: 520px;
  display: grid;
  align-items: center;
  position: relative;
}

.holo-panel {
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid rgb(98 239 255 / 22%);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 8%), transparent 24%),
    linear-gradient(180deg, rgb(10 20 35 / 86%), rgb(7 12 22 / 78%));
  box-shadow:
    inset 0 0 60px rgb(98 239 255 / 8%),
    0 34px 90px rgb(0 0 0 / 36%),
    0 0 80px rgb(98 239 255 / 10%);
  overflow: hidden;
}

.holo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgb(98 239 255 / 10%) 50%, transparent 52% 100%),
    linear-gradient(180deg, transparent 0 48%, rgb(107 255 178 / 9%) 50%, transparent 52% 100%);
  background-size: 42px 42px;
  opacity: 0.32;
}

.holo-panel > * {
  position: relative;
  z-index: 1;
}

.holo-panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.holo-panel-top div {
  display: grid;
  gap: 4px;
}

.holo-panel-top strong {
  color: #ffffff;
}

.holo-panel-top small,
.holo-grid span {
  color: var(--zow-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.holo-panel-top i {
  margin-left: auto;
  border: 1px solid rgb(107 255 178 / 28%);
  border-radius: 999px;
  padding: 7px 10px;
  color: #b9ffd9;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgb(107 255 178 / 9%);
}

.holo-main {
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgb(98 239 255 / 8%), transparent 38%),
    rgb(5 10 19 / 58%);
}

.holo-core {
  position: relative;
  width: min(210px, 56vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  background: linear-gradient(145deg, rgb(98 239 255 / 20%), rgb(107 255 178 / 13%));
  border: 1px solid rgb(98 239 255 / 34%);
  box-shadow: inset 0 0 60px rgb(98 239 255 / 18%), 0 0 70px rgb(98 239 255 / 20%);
}

.holo-core span {
  color: #ffffff;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 950;
  letter-spacing: 0;
}

.holo-core i {
  position: absolute;
  inset: 14%;
  border: 1px solid rgb(255 255 255 / 18%);
  clip-path: inherit;
}

.holo-lines span {
  position: absolute;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zow-cyan), transparent);
}

.holo-lines span:nth-child(1) { left: 7%; top: 34%; }
.holo-lines span:nth-child(2) { right: 7%; top: 34%; }
.holo-lines span:nth-child(3) { left: 7%; bottom: 32%; }
.holo-lines span:nth-child(4) { right: 7%; bottom: 32%; }

.holo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.holo-grid article,
.system-zow-site .product-card,
.system-zow-site .plan-grid article,
.system-zow-site .operation-grid article,
.system-zow-site .request-form {
  border: 1px solid var(--zow-line);
  background: var(--zow-panel);
  box-shadow: 0 22px 56px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px);
}

.holo-grid article {
  border-radius: 18px;
  padding: 15px;
}

.holo-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
}

.system-zow-site .site-section {
  position: relative;
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 82px);
}

.system-zow-site .site-section-head h2 {
  max-width: 880px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.system-zow-site .site-section-head p {
  color: #b7c8d7;
}

.system-zow-site .eyebrow {
  color: var(--zow-green);
}

.system-zow-site .product-grid,
.system-zow-site .plan-grid,
.system-zow-site .operation-grid {
  gap: 18px;
}

.system-zow-site .product-card {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  border-radius: 22px;
  padding: 24px;
}

.product-icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgb(98 239 255 / 24%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(98 239 255 / 16%), transparent),
    rgb(255 255 255 / 5%);
  position: relative;
}

.product-icon::before,
.product-icon::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid var(--zow-cyan);
  border-radius: 8px;
  box-shadow: 0 0 20px rgb(98 239 255 / 35%);
}

.product-icon::after {
  inset: 30px 16px 18px 28px;
  border-color: var(--zow-green);
}

.sales-icon::before {
  border-radius: 50% 50% 12px 12px;
}

.sales-icon::after {
  inset: 18px 26px 28px 26px;
  border-radius: 6px;
}

.health-icon::before {
  inset: 16px 29px;
  border-color: var(--zow-green);
  border-radius: 6px;
}

.health-icon::after {
  inset: 29px 16px;
  border-color: var(--zow-cyan);
  border-radius: 6px;
}

.system-zow-site .product-card span,
.system-zow-site .plan-grid span {
  background: rgb(98 239 255 / 10%);
  color: #bdeeff;
}

.system-zow-site .product-card h3,
.system-zow-site .plan-grid strong {
  color: #ffffff;
}

.system-zow-site .product-card p,
.system-zow-site .plan-grid small,
.system-zow-site .operation-grid span {
  color: #b6c7d5;
}

.system-zow-site .product-card a,
.system-zow-site .site-footer a {
  color: var(--zow-green);
}

.system-zow-site .operation-section,
.system-zow-site .site-band {
  background: linear-gradient(90deg, rgb(98 239 255 / 5%), rgb(107 255 178 / 4%));
}

.system-zow-site .operation-grid strong {
  background: linear-gradient(135deg, var(--zow-cyan), var(--zow-violet));
  color: #061018;
}

.system-zow-site .contact-section {
  gap: 32px;
}

.system-zow-site .request-form label {
  color: #d9e8f4;
}

.system-zow-site .request-form input,
.system-zow-site .request-form select,
.system-zow-site .request-form textarea {
  border-color: rgb(98 239 255 / 18%);
  background: rgb(255 255 255 / 7%);
  color: #ffffff;
}

.system-zow-site .request-form input::placeholder,
.system-zow-site .request-form textarea::placeholder {
  color: #8094a8;
}

.system-zow-site .site-footer {
  border-top: 1px solid var(--zow-line);
  color: var(--zow-muted);
  background: rgb(5 9 17 / 72%);
}

@media (max-width: 980px) {
  .system-zow-site .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .system-zow-site .site-nav {
    justify-content: flex-start;
  }

  .system-zow-site .site-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .system-zow-site .site-hero-visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .system-zow-site .site-header {
    padding: 12px 14px;
  }

  .system-zow-site .site-brand {
    min-width: 0;
  }

  .zow-symbol {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .system-zow-site .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .system-zow-site .site-nav a {
    text-align: center;
  }

  .system-zow-site .site-hero {
    padding: 34px 14px 52px;
  }

  .system-zow-site .site-hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .hero-metrics,
  .holo-grid,
  .system-zow-site .product-card,
  .system-zow-site .contact-section,
  .system-zow-site .request-form {
    grid-template-columns: 1fr;
  }

  .holo-main {
    min-height: 220px;
  }
}

.compact-audit-list .admin-row {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
}

.lead-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.lead-dashboard article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, #f7fbfb),
    linear-gradient(135deg, rgb(36 117 109 / 8%), transparent);
  box-shadow: 0 14px 34px rgb(20 34 38 / 6%);
}

.lead-dashboard span,
.lead-meta-line {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.lead-dashboard strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.6rem;
}

.lead-dashboard article.is-warning {
  border-color: rgb(255 186 73 / 34%);
  background: #fff8eb;
}

.lead-dashboard article.is-danger {
  border-color: rgb(198 61 61 / 28%);
  background: #fff1f1;
}

.lead-insights-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #f8fbfc),
    radial-gradient(circle at 100% 0%, rgb(36 117 109 / 10%), transparent 34%);
  box-shadow: 0 18px 44px rgb(20 34 38 / 7%);
}

.lead-insight-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead-insight-main h4 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.12rem;
}

.lead-insight-main span,
.lead-insight-grid span,
.lead-insight-grid small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.lead-conversion-ring {
  display: grid;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(var(--accent) calc(var(--conversion) * 1%), rgb(20 34 38 / 10%) 0);
  box-shadow: inset 0 0 0 1px rgb(20 34 38 / 8%), 0 16px 34px rgb(20 34 38 / 8%);
}

.lead-conversion-ring strong,
.lead-conversion-ring span {
  grid-area: 1 / 1;
}

.lead-conversion-ring strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.lead-conversion-ring span {
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lead-insight-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 76%);
}

.lead-insight-grid strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.lead-distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-distribution-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 70%);
}

.lead-distribution-grid > article > strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.lead-bars {
  display: grid;
  gap: 9px;
}

.lead-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
}

.lead-bars span,
.lead-bars strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.lead-bars strong {
  color: var(--ink);
}

.lead-bars i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(20 34 38 / 8%);
}

.lead-bars i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #62d2c9);
}

.renewal-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #f8fbfc),
    radial-gradient(circle at 100% 0%, rgb(255 186 73 / 14%), transparent 34%);
  box-shadow: 0 18px 44px rgb(20 34 38 / 7%);
}

.renewal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.renewal-head h3 {
  margin: 4px 0 6px;
  color: var(--ink);
}

.renewal-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.renewal-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(36 117 109 / 10%);
  color: #17695f;
  font-size: 0.82rem;
}

.renewal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.renewal-grid article {
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 76%);
}

.renewal-grid article.is-warning {
  border-color: rgb(255 186 73 / 34%);
  background: #fff8eb;
}

.renewal-grid article.is-danger {
  border-color: rgb(198 61 61 / 28%);
  background: #fff1f1;
}

.renewal-grid span,
.renewal-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.renewal-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.5rem;
}

.renewal-list {
  display: grid;
  gap: 9px;
}

.renewal-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 10px;
  background: #ffffff;
}

.renewal-list strong {
  color: var(--ink);
}

.renewal-pill {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(82 103 109 / 12%);
  color: #52676d;
  white-space: nowrap;
}

.renewal-pill.is-warning,
.admin-row-meta .is-warning {
  background: rgb(255 186 73 / 18%);
  color: #8a5300;
}

.renewal-pill.is-danger,
.admin-row-meta .is-danger {
  background: rgb(198 61 61 / 14%);
  color: #9d2f2f;
}

.renewal-pill.is-ok,
.admin-row-meta .is-ok {
  background: rgb(36 117 109 / 10%);
  color: #17695f;
}

.zow-production-review {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 96% 10%, rgb(36 117 109 / 12%), transparent 30%),
    linear-gradient(145deg, #ffffff, #f8fbfc);
  box-shadow: 0 18px 44px rgb(20 34 38 / 7%);
}

.zow-production-review.has-warning {
  border-color: rgb(255 186 73 / 30%);
}

.zow-production-review.has-danger {
  border-color: rgb(198 61 61 / 24%);
}

.zow-production-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zow-production-head h3 {
  margin: 4px 0 6px;
  color: var(--ink);
}

.zow-production-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.45;
}

.zow-production-head > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(36 117 109 / 10%);
  color: #17695f;
  font-size: 0.82rem;
}

.zow-owner-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgb(20 34 38 / 9%);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 6%, rgb(36 117 109 / 16%), transparent 32%),
    linear-gradient(145deg, #ffffff, #f6fbfb);
  box-shadow: 0 22px 54px rgb(20 34 38 / 8%);
}

.zow-owner-hero,
.zow-owner-section-head,
.zow-owner-action-grid article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zow-owner-hero h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.zow-owner-hero span,
.zow-owner-section-head span,
.zow-owner-action-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.45;
}

.zow-owner-hero > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 13px;
  background: #123b36;
  color: #ecfdf5;
  font-size: 0.82rem;
  box-shadow: 0 12px 26px rgb(18 59 54 / 18%);
}

.zow-owner-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.zow-owner-kpis article,
.zow-owner-split > section,
.zow-owner-action-grid article {
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 16px;
  background: rgb(255 255 255 / 86%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
}

.zow-owner-kpis article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 13px;
}

.zow-owner-kpis span {
  color: #52676d;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.zow-owner-kpis strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.zow-owner-kpis small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.zow-owner-kpis article.is-warning {
  border-color: rgb(255 186 73 / 32%);
  background: #fffbeb;
}

.zow-owner-kpis article.is-danger {
  border-color: rgb(198 61 61 / 28%);
  background: #fff5f5;
}

.zow-owner-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zow-owner-split > section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.zow-owner-section-head strong {
  color: var(--ink);
}

.zow-owner-system-stack {
  display: grid;
  gap: 8px;
}

.zow-owner-system-stack article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgb(36 117 109 / 7%);
}

.zow-owner-system-stack span {
  color: #52676d;
  font-size: 0.8rem;
  font-weight: 900;
}

.zow-owner-system-stack strong {
  color: #123b36;
}

.zow-owner-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.zow-owner-action-grid article {
  flex-direction: column;
  min-height: 154px;
  padding: 12px;
}

.zow-owner-action-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.zow-owner-action-grid button {
  width: 100%;
}

.zow-production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zow-production-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

.zow-production-grid article.is-warning {
  border-color: rgb(255 186 73 / 34%);
  background: #fff8eb;
}

.zow-production-grid article.is-danger {
  border-color: rgb(198 61 61 / 28%);
  background: #fff1f1;
}

.zow-production-grid article.is-ok {
  border-color: rgb(36 117 109 / 18%);
  background: #f0fdf8;
}

.zow-production-grid span,
.zow-production-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

.zow-production-grid span {
  text-transform: uppercase;
}

.zow-production-grid strong {
  color: var(--ink);
}

.zow-production-grid div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.commercial-plan-guide,
.company-commercial-status,
.company-onboarding-checklist {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgb(36 117 109 / 14%);
  border-radius: 16px;
  padding: 13px;
  background:
    radial-gradient(circle at 96% 0%, rgb(36 117 109 / 10%), transparent 34%),
    linear-gradient(145deg, #ffffff, #f7fbfb);
}

.commercial-plan-guide {
  margin-top: 0;
}

.commercial-plan-guide h4,
.company-commercial-status h4,
.company-checklist-head h4 {
  margin: 3px 0 5px;
  color: var(--ink);
}

.commercial-plan-guide span,
.company-commercial-status span,
.company-onboarding-checklist span,
.company-onboarding-checklist small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

.commercial-plan-limits,
.company-commercial-metrics,
.company-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.commercial-plan-limits article,
.company-commercial-metrics article,
.company-checklist-grid article {
  min-width: 0;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 12px;
  padding: 10px;
  background: rgb(255 255 255 / 82%);
}

.commercial-plan-limits strong,
.company-commercial-metrics strong,
.company-checklist-grid strong,
.company-checklist-head > strong {
  display: block;
  color: var(--ink);
}

.company-commercial-status.is-ready,
.company-checklist-grid article.is-done {
  border-color: rgb(36 117 109 / 22%);
  background: #f0fdf8;
}

.company-commercial-status.is-pending,
.company-checklist-grid article.is-pending {
  border-color: rgb(255 186 73 / 30%);
  background: #fffbeb;
}

.company-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-checklist-head > strong {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(36 117 109 / 10%);
  color: #17695f;
  font-size: 0.78rem;
}

.lead-activity-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #f7fbfb),
    linear-gradient(135deg, rgb(29 78 216 / 6%), rgb(36 117 109 / 6%));
  box-shadow: 0 18px 44px rgb(20 34 38 / 7%);
}

.lead-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lead-activity-head h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.lead-activity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-activity-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 72%);
}

.lead-activity-grid > article > strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.lead-activity-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.lead-activity-item:hover {
  border-color: rgb(36 117 109 / 22%);
  box-shadow: 0 12px 28px rgb(20 34 38 / 8%);
  transform: translateY(-2px);
}

.lead-activity-item .lead-follow-pill {
  justify-self: start;
}

.lead-activity-item strong {
  color: var(--ink);
  line-height: 1.2;
}

.lead-activity-item small,
.lead-activity-empty {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.lead-activity-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgb(255 255 255 / 58%);
}

.lead-filter-grid {
  grid-template-columns: repeat(7, minmax(112px, 1fr)) auto;
}

.lead-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.lead-pipeline::-webkit-scrollbar {
  height: 8px;
}

.lead-pipeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(15 118 110 / 22%);
}

.lead-column {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #f8fbfc;
  scroll-snap-align: start;
}

.lead-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px 10px;
}

.lead-column header strong {
  color: var(--ink);
}

.lead-column header span {
  min-width: 28px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.lead-column-body {
  display: grid;
  align-content: start;
  gap: 10px;
}

.lead-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.lead-card {
  position: relative;
  display: grid;
  gap: 9px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgb(20 34 38 / 7%);
}

.lead-card.is-warning {
  border-color: rgb(255 186 73 / 42%);
  box-shadow: 0 14px 30px rgb(255 186 73 / 12%);
}

.lead-card.is-danger {
  border-color: rgb(198 61 61 / 34%);
  box-shadow: 0 14px 30px rgb(198 61 61 / 12%);
}

.lead-card.priority-urgente {
  border-left: 4px solid #b42318;
}

.lead-card.priority-alta {
  border-left: 4px solid #b45309;
}

.lead-card-head {
  display: grid;
  gap: 4px;
}

.lead-card-head strong {
  color: var(--ink);
  line-height: 1.2;
}

.lead-card-head span,
.lead-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-card p {
  margin: 0;
  color: #39474d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.lead-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-follow-pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(82 103 109 / 12%);
  color: #52676d;
  font-size: 0.72rem;
  font-weight: 900;
}

.lead-priority-pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(82 103 109 / 10%);
  color: #52676d;
  font-size: 0.72rem;
  font-weight: 900;
}

.lead-priority-pill.priority-baja {
  background: rgb(36 117 109 / 10%);
  color: #17695f;
}

.lead-priority-pill.priority-media {
  background: rgb(29 78 216 / 10%);
  color: #1d4ed8;
}

.lead-priority-pill.priority-alta {
  background: rgb(255 186 73 / 20%);
  color: #8a5300;
}

.lead-priority-pill.priority-urgente {
  background: rgb(198 61 61 / 14%);
  color: #9d2f2f;
}

.lead-follow-pill.is-info {
  background: rgb(29 78 216 / 10%);
  color: #1d4ed8;
}

.lead-follow-pill.is-warning {
  background: rgb(255 186 73 / 20%);
  color: #8a5300;
}

.lead-follow-pill.is-danger {
  background: rgb(198 61 61 / 14%);
  color: #9d2f2f;
}

.lead-follow-pill.is-closed {
  background: rgb(36 117 109 / 12%);
  color: #17695f;
}

.lead-card-message,
.lead-note,
.lead-next {
  border-radius: 10px;
  padding: 9px;
  background: #f4f8f8;
  color: #46565c;
  font-size: 0.82rem;
  line-height: 1.38;
}

.lead-next {
  border: 1px solid rgb(29 78 216 / 12%);
  background: #eef6ff;
}

.lead-next strong,
.lead-next span {
  display: block;
}

.lead-next strong {
  color: #1d4ed8;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lead-note {
  border: 1px solid rgb(180 83 9 / 12%);
  background: #fff7ed;
}

.lead-history-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f8fbfc;
}

.lead-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-history-head strong {
  color: var(--ink);
}

.lead-history-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.lead-history-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.lead-history-list article {
  display: grid;
  gap: 4px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
}

.lead-history-list strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.lead-history-list span,
.lead-history-list small,
.lead-history-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-actions .ghost-button,
.lead-actions .primary-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.deadline-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(82 103 109 / 12%);
  color: #52676d;
  font-size: 0.76rem;
  font-weight: 850;
}

.deadline-pill.ok,
.deadline-pill.done {
  background: rgb(36 117 109 / 12%);
  color: #17695f;
}

.deadline-pill.warning {
  background: rgb(255 186 73 / 18%);
  color: #8a5300;
}

.deadline-pill.overdue {
  background: rgb(198 61 61 / 14%);
  color: #9d2f2f;
}

.permission-grid,
.report-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.permission-grid article,
.report-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgb(15 23 42 / 5%);
}

.permission-grid strong,
.permission-grid span,
.report-box h4,
.report-box div {
  display: block;
}

.permission-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.reports-panel {
  gap: 16px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.report-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.report-filter-grid select,
.report-filter-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.report-filter-grid.lead-filter-grid {
  grid-template-columns: repeat(7, minmax(112px, 1fr)) auto;
}

.report-box h4 {
  margin: 0 0 10px;
}

.report-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

@media (max-width: 560px) {
  .public-consult-brand {
    align-items: flex-start;
  }

  .public-consult-brand img {
    width: 58px;
    height: 58px;
  }

  .public-consult-result dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

body.app-zow-panel:not(.app-zow-panel-login) .app-shell,
body.app-zow-panel:not(.app-zow-panel-login) .main-content,
body.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-zow-panel:not(.app-zow-panel-login) .document-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
}

body.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode .document-list {
  min-height: auto;
  padding: clamp(14px, 1.6vw, 22px);
}

body.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode .detail-panel {
  display: none !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard {
  width: 100%;
  margin-bottom: 0;
  padding: clamp(16px, 1.8vw, 24px);
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis article {
  min-height: 116px;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid article {
  min-height: 170px;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid button {
  margin-top: auto;
}

@media (min-width: 1280px) {
  body.app-zow-panel:not(.app-zow-panel-login) .app-shell {
    padding-right: clamp(28px, 3vw, 44px);
  }

  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid {
    grid-template-columns: 1fr;
  }
}

.surface-enter {
  animation: surfaceEnter 360ms ease both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes surfaceEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes logoSettle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ventasAmbientFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-42px, -18px, 0) rotate(8deg);
  }
}

@keyframes ventasScan {
  0%,
  62% {
    transform: translateX(-35%);
  }
  100% {
    transform: translateX(35%);
  }
}

@keyframes documentFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(-34px, -18px, 0) rotate(-5deg);
  }
}

@keyframes documentScan {
  0%,
  64% {
    transform: translateX(-34%);
  }
  100% {
    transform: translateX(34%);
  }
}

.admin-action-card span,
.admin-action-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-action-card strong {
  font-size: 20px;
}

.admin-config-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
}

.admin-panel {
  padding: 14px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.purchase-assist-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.purchase-assist-card::after {
  content: "";
  position: absolute;
  inset: auto 18px -34px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 26px solid rgba(14, 165, 233, 0.08);
  pointer-events: none;
}

.purchase-assist-card h3 {
  margin: 2px 0 6px;
}

.purchase-assist-card span {
  color: var(--muted);
  font-weight: 800;
}

.admin-collapsible {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fbfcfc;
}

.admin-collapsible summary {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 900;
}

.admin-collapsible summary::after {
  content: "+";
  color: var(--accent);
}

.admin-collapsible[open] summary::after {
  content: "-";
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.admin-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
  display: grid;
  gap: 8px;
}

.admin-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-form {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 14px;
}

.letterhead-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.letterhead-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.letterhead-preview > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.letterhead-preview div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.letterhead-preview small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-meta span {
  min-height: 24px;
  border-radius: 999px;
  background: #eef2f3;
  padding: 4px 8px;
  color: #425158;
  font-size: 12px;
  font-weight: 800;
}

.system-checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.system-checks legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

.system-access-editor {
  gap: 12px;
}

.system-access-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.system-access-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent-tint) 45%, white));
}

.system-access-card > span,
.system-access-card > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.system-access-card > small {
  color: var(--accent-dark);
}

.system-access-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.system-access-fields label {
  font-size: 12px;
}

.system-access-fields select,
.system-access-fields input {
  width: 100%;
}

.health-system-guidance {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, #0f766e 24%, var(--line));
  border-radius: 16px;
  margin-top: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgb(45 212 191 / 14%), transparent 34%),
    linear-gradient(145deg, #f8fffc, #ffffff);
  box-shadow: 0 18px 44px rgb(15 118 110 / 8%);
}

.health-system-guidance.is-muted {
  border-style: dashed;
  background:
    linear-gradient(145deg, #ffffff, #f8fafc);
  opacity: 0.88;
}

.health-guidance-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.health-guidance-head h4 {
  margin: 2px 0 4px;
  color: #0f2f2c;
  font-size: 1.08rem;
}

.health-guidance-head span,
.health-guidance-list,
.health-guidance-grid small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.health-guidance-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgb(20 184 166 / 10%);
  color: #0f766e;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.health-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.health-guidance-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 76%);
}

.health-guidance-grid span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 950;
}

.health-guidance-grid strong {
  color: #10201d;
}

.health-guidance-list {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 760px) {
  .health-guidance-head {
    display: grid;
  }

  .health-guidance-grid {
    grid-template-columns: 1fr;
  }
}

.ok-text {
  color: var(--ok) !important;
}

.danger-text {
  color: var(--danger) !important;
}

.warn-text {
  color: #b7791f !important;
}

.muted-text {
  color: var(--muted) !important;
}

.section-heading,
.detail-header,
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

#resultCount {
  color: var(--muted);
  font-size: 13px;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fbfcfc;
}

body.app-correspondencia .doc-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(37 99 235 / 9%) 0 4px, transparent 4px),
    linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(248 251 255 / 90%));
  box-shadow: 0 14px 34px rgb(15 23 42 / 6%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

body.app-correspondencia .doc-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 44px;
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 76%, rgb(37 99 235 / 13%) 76%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgb(37 99 235 / 12%) 7px 8px);
  opacity: 0.36;
}

body.app-correspondencia .doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 42%, rgb(255 255 255 / 34%) 48%, transparent 54%);
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 160ms ease, transform 420ms ease;
}

.doc-card:hover,
.doc-card.is-selected {
  border-color: #72cfc2;
  background: #f0fdfa;
}

body.app-correspondencia .doc-card:hover,
body.app-correspondencia .doc-card.is-selected {
  border-color: rgb(37 99 235 / 48%);
  background:
    linear-gradient(90deg, #2563eb 0 4px, transparent 4px),
    linear-gradient(180deg, rgb(239 246 255 / 96%), rgb(255 255 255 / 92%));
  box-shadow: 0 24px 52px rgb(37 99 235 / 13%);
  transform: translateY(-2px);
}

body.app-correspondencia .doc-card:hover::before,
body.app-correspondencia .doc-card.is-selected::before {
  opacity: 1;
  transform: translateX(42%);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.doc-card h3 {
  margin: 0 0 8px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill,
.code-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  background: #e0f2fe;
  color: var(--info);
}

body.app-correspondencia .status-pill,
body.app-correspondencia .code-pill,
body.app-correspondencia .priority-pill {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 45%);
}

.status-pill.atendido,
.status-pill.respondido,
.status-pill.archivado {
  background: #dcfce7;
  color: var(--ok);
}

.status-pill.vencido {
  background: #fee2e2;
  color: var(--danger);
}

.status-pill.derivado,
.status-pill.en-revision,
.status-pill.en-recepcion,
.status-pill.reservado {
  background: #fef3c7;
  color: var(--warn);
}

.code-pill {
  margin-top: 10px;
  background: #eef2f3;
  color: #304046;
}

.priority-pill {
  background: #eef2f3;
  color: #425158;
}

.priority-pill.alta,
.priority-pill.urgente {
  background: #ffedd5;
  color: #9a3412;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.file-pill.ready {
  background: #dcfce7;
  color: var(--ok);
}

.file-pill.pending {
  background: #fee2e2;
  color: var(--danger);
}

.notification-button {
  border: 1px solid #fde68a;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 12px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

.notification-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f59e0b;
  color: white;
  font-size: 12px;
}

body.app-correspondencia .notification-button:not(.hidden) strong {
  animation: notificationPulse 1.8s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(245 158 11 / 34%);
  }
  50% {
    box-shadow: 0 0 0 7px rgb(245 158 11 / 0%);
  }
}

.notification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-item {
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  color: #713f12;
  text-align: left;
  display: grid;
  gap: 3px;
}

.notification-item span {
  color: #92400e;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-grid div,
.institutional-block div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
}

body.app-correspondencia .detail-grid div,
body.app-correspondencia .institutional-block div {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 86%), rgb(239 246 255 / 48%));
  transition: transform 150ms ease, border-color 150ms ease;
}

body.app-correspondencia .detail-grid div:hover,
body.app-correspondencia .institutional-block div:hover {
  border-color: rgb(37 99 235 / 28%);
  transform: translateY(-1px);
}

.institutional-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.institutional-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.institutional-block strong {
  display: block;
  margin-top: 6px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.movement-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

label {
  display: grid;
  gap: 7px;
  color: #36464b;
  font-size: 13px;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fbfcfc;
}

.check-row input {
  width: 16px;
  height: 16px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.timeline-item {
  border-left: 3px solid #99d8ce;
  padding: 0 0 14px 12px;
  margin-left: 5px;
}

body.app-correspondencia .timeline-item {
  position: relative;
  border-left-color: rgb(37 99 235 / 38%);
}

body.app-correspondencia .timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid white;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

.timeline-item strong {
  display: block;
}

.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.empty-state {
  min-height: min(360px, 42vh);
  display: grid;
  gap: 8px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--line) 78%, var(--accent) 22%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 12%, transparent) 0 22%, transparent 44%),
    linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 48%));
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  max-width: 460px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-list .empty-state,
.sales-history-list .empty-state,
.purchase-history-list .empty-state,
.product-suggestion-grid .empty-state,
.price-list .empty-state {
  min-height: 124px;
  grid-column: 1 / -1;
  align-self: stretch;
}

.hidden {
  display: none !important;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 22px 80px rgb(20 34 38 / 24%);
}

dialog::backdrop {
  background: rgb(15 23 42 / 42%);
}

.modal-body {
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2 {
  grid-column: span 2;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 1180px) {
  body {
    grid-template-columns: 1fr;
  }

  .login-layout {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
    margin: auto 0;
  }

  .login-intro {
    padding: 28px;
    min-height: auto;
  }

  .login-intro h1 {
    font-size: 28px;
  }

  .login-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar {
    position: relative;
    top: auto;
    z-index: 10;
    min-height: auto;
    max-width: 100vw;
    overflow: hidden;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--side-line);
  }

  body.app-correspondencia .sidebar::after {
    display: none;
  }

  .sidebar-brand {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .sidebar-brand img {
    width: 150px;
    padding: 6px;
  }

  .nav {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    contain: layout paint;
  }

  .nav::-webkit-scrollbar {
    height: 6px;
  }

  .nav::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 18%);
    border-radius: 999px;
  }

  .nav-group {
    min-width: min(230px, 78vw);
    scroll-snap-align: start;
  }

  body.app-correspondencia .nav {
    align-items: center;
    gap: 8px;
  }

  body.app-correspondencia .nav-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: calc(100vw - 32px);
    padding: 6px;
    background: rgb(255 255 255 / 5%);
  }

  body.app-correspondencia .nav-group-toggle,
  body.app-correspondencia .nav-item {
    min-height: 38px;
    white-space: nowrap;
  }

  body.app-correspondencia .nav-group-toggle {
    padding: 0 10px;
    color: rgb(226 232 240 / 84%);
  }

  body.app-correspondencia .nav-group-items,
  body.app-correspondencia .nav-group.is-open .nav-group-items,
  body.app-correspondencia .nav-group:not(.is-open) .nav-group-items {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .nav-group-items {
    display: grid;
  }

  .nav-group-toggle::after {
    display: none;
  }

  .nav-group:not(.is-open) .nav-group-items {
    display: grid;
  }

  .app-shell {
    padding: 20px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-list,
  .detail-panel {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-hero {
    grid-template-columns: 1fr;
  }

  .site-hero-visual {
    min-height: auto;
  }

  .nav {
    gap: 10px;
  }

  .nav-group {
    align-content: start;
  }

  .nav-group-toggle {
    text-align: center;
  }

  .nav-item {
    text-align: center;
  }

  .sidebar-footer {
    display: none;
  }

  .metrics,
  .institutional-block,
  .admin-config-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-panel,
  .report-form {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
  }

  .site-hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .system-zow-site {
    background:
      linear-gradient(115deg, rgb(255 255 255 / 92%), rgb(255 255 255 / 74%)),
      radial-gradient(circle at 92% 0%, rgb(0 184 217 / 14%), transparent 22rem),
      #f7faf8;
  }

  .site-header {
    padding: 10px 14px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .site-brand-mark img {
    width: 39px;
    height: 39px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    text-align: center;
  }

  .site-hero,
  .contact-section,
  .request-form {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .site-hero-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .dashboard-preview {
    transform: none;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-flow i {
    width: 1px;
    height: 18px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .login-screen {
    align-items: flex-start;
    padding: 10px;
  }

  .login-card,
  .login-intro {
    padding: 22px;
  }

  .login-layout {
    min-height: auto;
    max-height: none;
  }

  .login-product-logo {
    width: min(260px, 100%);
  }

  .login-highlights {
    grid-template-columns: 1fr;
  }

  .login-highlights div {
    min-height: auto;
  }

  .topbar,
  .toolbar,
  .section-heading,
  .detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    margin-inline: -4px;
  }

  .nav-group {
    min-width: 82vw;
  }

  .topbar-actions,
  .action-row,
  .modal-actions,
  .admin-actions {
    width: 100%;
  }

  .topbar-actions > *,
  .action-row > *,
  .modal-actions > *,
  .admin-actions > * {
    width: 100%;
  }

  body.app-correspondencia .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  body.app-correspondencia .topbar-actions > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  body.app-correspondencia #currentUserBadge,
  body.app-correspondencia #openNewDocument,
  body.app-correspondencia #logoutBtn {
    font-size: 0;
  }

  body.app-correspondencia #currentUserBadge::after,
  body.app-correspondencia #openNewDocument::after,
  body.app-correspondencia #logoutBtn::after {
    font-size: 0.9rem;
    font-weight: 900;
    -webkit-text-fill-color: white;
  }

  body.app-correspondencia #currentUserBadge::after {
    content: "Sesion activa";
  }

  body.app-correspondencia #openNewDocument::after {
    content: "Nuevo documento";
  }

  body.app-correspondencia #logoutBtn::after {
    content: "Salir";
  }

  .metrics,
  .lead-dashboard,
  .lead-insight-grid,
  .lead-distribution-grid,
  .lead-insight-main,
  .renewal-grid,
  .renewal-head,
  .zow-production-grid,
  .zow-production-head,
  .zow-owner-hero,
  .zow-owner-kpis,
  .zow-owner-split,
  .zow-owner-action-grid,
  .commercial-plan-limits,
  .company-commercial-metrics,
  .company-checklist-grid,
  .lead-activity-grid,
  .content-grid,
  .admin-grid,
  .admin-config-grid,
  .admin-action-grid,
  .setup-overview,
  .setup-guide,
  .detail-grid,
  .form-grid,
  .institutional-block,
  .report-form,
  .report-filter-grid,
  .permission-grid,
  .report-columns {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .cash-closure-row,
  .renewal-list article,
  .compact-audit-list .admin-row {
    grid-template-columns: 1fr;
  }

  .zow-owner-hero,
  .zow-owner-section-head,
  .zow-owner-action-grid article {
    align-items: stretch;
    flex-direction: column;
  }

  .cash-closure-row .admin-row-meta {
    justify-content: flex-start;
  }

  .workflow-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .ventas-touch-shell[data-active-view="sell"] .content-grid {
    gap: 10px;
  }

  .touch-pos-shell {
    display: block;
  }

  .pos-mobile-switch {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: 12px;
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 16px 42px rgb(15 32 28 / 12%);
    backdrop-filter: blur(14px);
  }

  .pos-mobile-switch button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-weight: 950;
  }

  .pos-mobile-switch button.is-active {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: white;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  }

  .pos-mobile-switch strong {
    display: inline-grid;
    min-width: 24px;
    min-height: 24px;
    margin-left: 5px;
    place-items: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 22%);
  }

  .touch-pos-shell.pos-mode-products .touch-cart-panel,
  .touch-pos-shell.pos-mode-cart .touch-panel {
    display: none;
  }

  .touch-pos-shell.pos-mode-products .touch-panel,
  .touch-pos-shell.pos-mode-cart .touch-cart-panel {
    display: grid;
  }

  .toolbar select {
    width: 100%;
  }

  .span-2 {
    grid-column: auto;
  }

  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
  }

  .modal-body {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .sidebar {
    padding: 10px;
  }

  .sidebar-brand img {
    width: 128px;
  }

  .metrics strong {
    font-size: 24px;
  }

  .document-list,
  .detail-panel {
    padding: 14px;
  }
}

/* SYSTEM ZOW navigation polish - final override */
body.system-zow-site .site-scroll-progress {
  --scroll-progress: 0;
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #00b8d9, #22c55e);
  box-shadow: 0 0 18px rgb(37 99 235 / 42%);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress));
  will-change: transform;
}

body.system-zow-site .site-header {
  left: 0;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px;
  border-bottom: 1px solid rgb(37 99 235 / 0%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 66%));
}

body.system-zow-site .site-header::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(37 99 235 / 18%), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

body.system-zow-site .site-header.is-scrolled::after {
  opacity: 1;
}

body.system-zow-site .site-brand {
  isolation: isolate;
}

body.system-zow-site .site-brand:hover .zow-symbol {
  transform: rotate(45deg) scale(1.06);
  box-shadow: 0 18px 44px rgb(37 99 235 / 18%);
}

body.system-zow-site .site-nav {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid rgb(17 31 49 / 8%);
  border-radius: 999px;
  padding: 6px;
  background: rgb(255 255 255 / 72%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 86%),
    0 18px 48px rgb(17 31 49 / 8%);
  backdrop-filter: blur(20px);
}

body.system-zow-site .site-nav::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(37 99 235 / 18%), transparent 34%, rgb(0 184 217 / 16%));
  opacity: 0;
  transition: opacity 220ms ease;
}

body.system-zow-site .site-nav:hover::before {
  opacity: 1;
}

body.system-zow-site .site-nav a {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 15px;
  color: #405168;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(0);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body.system-zow-site .site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at var(--mx) var(--my), rgb(37 99 235 / 20%), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.system-zow-site .site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #00b8d9);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.system-zow-site .site-nav a span {
  position: relative;
  z-index: 1;
}

body.system-zow-site .site-nav a:hover {
  border-color: rgb(37 99 235 / 12%);
  background: rgb(255 255 255 / 88%);
  color: #1f55d8;
  box-shadow: 0 12px 30px rgb(37 99 235 / 12%);
  transform: translateY(-2px);
}

body.system-zow-site .site-nav a:hover::before,
body.system-zow-site .site-nav a.is-active::before {
  opacity: 1;
}

body.system-zow-site .site-nav a:hover::after,
body.system-zow-site .site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

body.system-zow-site .site-nav a.is-active {
  border-color: rgb(37 99 235 / 14%);
  background: #ffffff;
  color: #174fd3;
  box-shadow: 0 10px 26px rgb(37 99 235 / 10%);
}

body.system-zow-site .site-nav .site-login-link {
  margin-left: 4px;
  border-color: transparent !important;
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgb(37 99 235 / 24%);
}

body.system-zow-site .site-nav .site-login-link::before {
  background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 28%), transparent 40%);
}

body.system-zow-site .site-nav .site-login-link::after {
  background: linear-gradient(90deg, #ffffff, rgb(255 255 255 / 40%));
}

@media (max-width: 980px) {
  body.system-zow-site .site-header {
    align-items: stretch !important;
    flex-direction: column;
  }

  body.system-zow-site .site-nav {
    width: 100%;
    justify-content: center;
    border-radius: 24px;
    padding: 8px;
  }
}

@media (max-width: 720px) {
  body.system-zow-site .site-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  body.system-zow-site .site-nav a {
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
  }

  body.system-zow-site .site-nav .site-login-link {
    grid-column: 1 / -1;
    margin-left: 0;
  }
}

/* SYSTEM ZOW immersive background */
body.system-zow-site {
  background:
    linear-gradient(120deg, rgb(255 255 255 / 92%), rgb(247 251 255 / 76%) 44%, rgb(239 248 255 / 92%)),
    linear-gradient(90deg, rgb(37 99 235 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(0 184 217 / 4%) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eef8ff 100%);
  background-size: auto, 72px 72px, 72px 72px, auto;
}

body.system-zow-site .site-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgb(37 99 235 / 7%) 18.2% 18.55%, transparent 18.8% 100%),
    linear-gradient(72deg, transparent 0 64%, rgb(34 197 94 / 6%) 64.2% 64.55%, transparent 64.9% 100%),
    repeating-linear-gradient(90deg, transparent 0 94px, rgb(37 99 235 / 3%) 94px 95px, transparent 95px 188px);
}

body.system-zow-site .site-ambient::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto -8%;
  height: 58%;
  background:
    linear-gradient(100deg, transparent 0 10%, rgb(37 99 235 / 11%) 10% 32%, transparent 32% 38%, rgb(0 184 217 / 10%) 38% 58%, transparent 58%),
    linear-gradient(180deg, rgb(255 255 255 / 18%), transparent);
  clip-path: polygon(0 12%, 100% 0, 100% 68%, 0 100%);
  filter: blur(0.2px);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

body.system-zow-site .site-ambient::after {
  content: "";
  position: absolute;
  inset: auto -12% -20% -12%;
  height: 54%;
  background:
    linear-gradient(78deg, transparent 0 16%, rgb(124 58 237 / 8%) 16% 39%, transparent 39% 47%, rgb(34 197 94 / 8%) 47% 70%, transparent 70%),
    linear-gradient(180deg, transparent, rgb(255 255 255 / 24%));
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 72%);
  animation: ambientDrift 22s ease-in-out infinite alternate-reverse;
}

body.system-zow-site .ambient-plane,
body.system-zow-site .ambient-scan {
  position: absolute;
  display: block;
}

body.system-zow-site .ambient-plane {
  border: 1px solid rgb(37 99 235 / 10%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 62%), rgb(37 99 235 / 5%)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgb(37 99 235 / 5%) 26px 27px);
  box-shadow: 0 32px 90px rgb(37 99 235 / 7%);
  transform: skewX(-14deg) rotate(-5deg);
  animation: planeFloat 16s ease-in-out infinite;
}

body.system-zow-site .plane-a {
  top: 11%;
  right: -7%;
  width: min(40vw, 520px);
  height: 190px;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}

body.system-zow-site .plane-b {
  top: 44%;
  left: -10%;
  width: min(42vw, 540px);
  height: 220px;
  animation-delay: -5s;
  clip-path: polygon(0 0, 86% 0, 100% 100%, 12% 100%);
}

body.system-zow-site .plane-c {
  right: 8%;
  bottom: 8%;
  width: min(34vw, 430px);
  height: 160px;
  animation-delay: -9s;
  clip-path: polygon(12% 0, 100% 0, 86% 100%, 0 100%);
}

body.system-zow-site .ambient-scan {
  width: 42vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(0 184 217 / 54%), rgb(34 197 94 / 36%), transparent);
  filter: blur(0.2px);
  opacity: 0.56;
  transform: rotate(-16deg);
  animation: scanLine 9s linear infinite;
}

body.system-zow-site .scan-a {
  top: 28%;
  left: -24%;
}

body.system-zow-site .scan-b {
  top: 66%;
  right: -30%;
  animation-delay: -4s;
}

body.system-zow-site .site-hero,
body.system-zow-site .site-section {
  position: relative;
}

body.system-zow-site .site-hero::before {
  content: "";
  position: absolute;
  inset: 10% -4% auto 48%;
  height: 72%;
  z-index: -1;
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 68%), rgb(37 99 235 / 5%)),
    repeating-linear-gradient(135deg, transparent 0 28px, rgb(0 184 217 / 5%) 28px 29px);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  box-shadow: 0 40px 120px rgb(37 99 235 / 10%);
}

body.system-zow-site .site-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(37 99 235 / 14%), transparent);
}

body.system-zow-site .operation-section,
body.system-zow-site .site-band {
  background:
    linear-gradient(90deg, rgb(37 99 235 / 6%), transparent 42%, rgb(34 197 94 / 5%)),
    linear-gradient(135deg, rgb(255 255 255 / 60%), rgb(255 255 255 / 28%));
}

body.system-zow-site .holo-panel,
body.system-zow-site .product-card,
body.system-zow-site .plan-grid article,
body.system-zow-site .operation-grid article,
body.system-zow-site .trust-grid article,
body.system-zow-site .faq-shell,
body.system-zow-site .implementation-flow article,
body.system-zow-site .launch-cta,
body.system-zow-site .request-form {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 68%)),
    linear-gradient(135deg, rgb(37 99 235 / 5%), transparent 48%, rgb(0 184 217 / 5%));
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: translate3d(1.5%, 1%, 0);
  }
}

@keyframes planeFloat {
  0%, 100% {
    transform: skewX(-14deg) rotate(-5deg) translate3d(0, 0, 0);
  }
  50% {
    transform: skewX(-14deg) rotate(-5deg) translate3d(0, -14px, 0);
  }
}

@keyframes scanLine {
  from {
    transform: translateX(0) rotate(-16deg);
  }
  to {
    transform: translateX(180vw) rotate(-16deg);
  }
}

@media (max-width: 720px) {
  body.system-zow-site .site-ambient {
    opacity: 0.74;
  }

  body.system-zow-site .ambient-plane {
    display: none;
  }

  body.system-zow-site .site-hero::before {
    inset: 42% -34% auto 8%;
    height: 46%;
  }
}

/* SYSTEM ZOW direct contact block */
body.system-zow-site .contact-copy {
  display: grid;
  gap: 18px;
}

body.system-zow-site .contact-copy > p {
  margin: 0;
}

body.system-zow-site .contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

body.system-zow-site .contact-direct article {
  display: grid;
  gap: 5px;
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 18px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(255 255 255 / 58%)),
    linear-gradient(135deg, rgb(37 99 235 / 5%), transparent);
  box-shadow: 0 16px 38px rgb(17 31 49 / 7%);
}

body.system-zow-site .contact-direct span {
  color: var(--zow-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.system-zow-site .contact-direct strong,
body.system-zow-site .contact-direct a {
  color: var(--zow-ink);
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
}

body.system-zow-site .contact-direct a:hover {
  color: var(--zow-blue);
}

body.system-zow-site .contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.system-zow-site .contact-actions .primary-button,
body.system-zow-site .contact-actions .ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  body.system-zow-site .contact-actions {
    flex-direction: column;
  }
}

/* SYSTEM ZOW trust and FAQ */
body.system-zow-site .trust-section {
  display: grid;
  gap: 24px;
}

body.system-zow-site .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.system-zow-site .trust-grid article,
body.system-zow-site .faq-shell {
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 22px;
  box-shadow: 0 22px 56px rgb(17 31 49 / 8%);
}

body.system-zow-site .trust-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 22px;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

body.system-zow-site .trust-grid article::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--zow-blue), var(--zow-cyan), #35d07f);
  opacity: 0.7;
}

body.system-zow-site .trust-grid article:hover {
  border-color: rgb(0 184 217 / 26%);
  box-shadow: 0 30px 72px rgb(37 99 235 / 12%);
  transform: translateY(-5px);
}

body.system-zow-site .trust-grid span {
  color: var(--zow-blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .trust-grid strong {
  color: var(--zow-ink);
  font-size: 1.1rem;
}

body.system-zow-site .trust-grid p,
body.system-zow-site .faq-list p {
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.55;
}

body.system-zow-site .faq-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 26px;
  padding: clamp(22px, 4vw, 34px);
}

body.system-zow-site .faq-copy {
  margin-bottom: 0;
}

body.system-zow-site .faq-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
}

body.system-zow-site .faq-list {
  display: grid;
  gap: 12px;
}

body.system-zow-site .faq-list details {
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 16px;
  background: rgb(255 255 255 / 62%);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

body.system-zow-site .faq-list details[open] {
  border-color: rgb(0 184 217 / 26%);
  background: rgb(255 255 255 / 80%);
}

body.system-zow-site .faq-list details:hover {
  transform: translateX(3px);
}

body.system-zow-site .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--zow-ink);
  font-weight: 950;
  list-style: none;
}

body.system-zow-site .faq-list summary::-webkit-details-marker {
  display: none;
}

body.system-zow-site .faq-list summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgb(37 99 235 / 8%);
  color: var(--zow-blue);
  transition: transform 170ms ease, background 170ms ease;
}

body.system-zow-site .faq-list details[open] summary::after {
  background: rgb(0 184 217 / 14%);
  transform: rotate(45deg);
}

body.system-zow-site .faq-list p {
  padding: 0 18px 18px;
}

/* SYSTEM ZOW implementation path */
body.system-zow-site .implementation-section {
  display: grid;
  gap: 24px;
}

body.system-zow-site .implementation-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.system-zow-site .implementation-flow::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(0 184 217 / 32%), rgb(34 197 94 / 24%), transparent);
}

body.system-zow-site .implementation-flow article {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 22px 56px rgb(17 31 49 / 8%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .implementation-flow article:hover {
  border-color: rgb(0 184 217 / 26%);
  box-shadow: 0 30px 72px rgb(37 99 235 / 12%);
  transform: translateY(-5px);
}

body.system-zow-site .implementation-flow article::after {
  content: "";
  position: absolute;
  inset: auto auto -36px -26px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(0 184 217 / 16%), transparent 66%);
}

body.system-zow-site .implementation-flow span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(0 184 217 / 24%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 56%)),
    linear-gradient(135deg, rgb(0 184 217 / 12%), rgb(34 197 94 / 8%));
  color: var(--zow-blue);
  font-weight: 950;
  box-shadow: 0 16px 34px rgb(0 184 217 / 12%);
}

body.system-zow-site .implementation-flow strong {
  color: var(--zow-ink);
  font-size: 1.08rem;
}

body.system-zow-site .implementation-flow p {
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.55;
}

body.system-zow-site .launch-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgb(0 184 217 / 16%);
  border-radius: 26px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 26px 70px rgb(37 99 235 / 10%);
}

body.system-zow-site .launch-cta div {
  display: grid;
  gap: 7px;
}

body.system-zow-site .launch-cta span {
  color: var(--zow-blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .launch-cta strong {
  color: var(--zow-ink);
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  line-height: 1.1;
}

body.system-zow-site .launch-cta .primary-button {
  flex: 0 0 auto;
}

/* SYSTEM ZOW commercial plan cards */
body.system-zow-site .pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

body.system-zow-site .pricing-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 24px;
  isolation: isolate;
}

body.system-zow-site .pricing-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgb(0 184 217 / 18%), transparent 30%),
    radial-gradient(circle at 88% 18%, rgb(34 197 94 / 14%), transparent 32%);
  opacity: 0;
  transition: opacity 220ms ease;
}

body.system-zow-site .pricing-card:hover::before,
body.system-zow-site .pricing-card.is-featured::before {
  opacity: 1;
}

body.system-zow-site .pricing-card.is-featured {
  border-color: rgb(0 184 217 / 36%);
  box-shadow:
    0 28px 76px rgb(0 184 217 / 17%),
    inset 0 1px 0 rgb(255 255 255 / 54%);
  transform: translateY(-8px);
}

body.system-zow-site .pricing-card.is-featured:hover {
  transform: translateY(-12px);
}

body.system-zow-site .pricing-card > i {
  align-self: flex-start;
  border: 1px solid rgb(0 184 217 / 28%);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgb(0 184 217 / 10%);
  color: var(--zow-blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.system-zow-site .pricing-card > b {
  color: var(--zow-ink);
  font-size: 1.1rem;
  font-weight: 950;
}

body.system-zow-site .pricing-features {
  display: grid;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}

body.system-zow-site .pricing-features li {
  position: relative;
  padding-left: 25px;
  color: var(--zow-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.system-zow-site .pricing-features li::before {
  content: "";
  position: absolute;
  top: 0.43rem;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 25%, transparent 26%),
    linear-gradient(135deg, var(--zow-blue), var(--zow-cyan));
  box-shadow: 0 0 18px rgb(0 184 217 / 32%);
}

body.system-zow-site .plan-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgb(37 99 235 / 16%);
  border-radius: 999px;
  padding: 10px 14px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 64%)),
    linear-gradient(135deg, rgb(37 99 235 / 8%), rgb(0 184 217 / 8%));
  color: var(--zow-blue);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease;
}

body.system-zow-site .plan-cta:hover {
  border-color: rgb(0 184 217 / 38%);
  color: var(--zow-ink);
  box-shadow: 0 18px 42px rgb(37 99 235 / 13%);
  transform: translateY(-2px);
}

body.system-zow-site .request-form.is-highlighted {
  animation: requestPulse 1400ms ease;
}

/* SYSTEM ZOW advanced public landing */
body.system-zow-site {
  --zow-deep: #07111f;
  --zow-neon: #00e5ff;
  --zow-lime: #8cffc1;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 10%, rgb(0 229 255 / 18%), transparent 30rem),
    radial-gradient(circle at 16% 22%, rgb(37 99 235 / 16%), transparent 28rem),
    linear-gradient(180deg, #f8fcff 0%, #edf8ff 46%, #f8fbff 100%);
}

body.system-zow-site .site-hero {
  min-height: min(880px, calc(100vh - 74px));
  perspective: 1300px;
  overflow: clip;
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 760px;
  background: linear-gradient(115deg, #07111f 8%, #123c72 48%, #00a8c7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.system-zow-site .site-hero-copy p {
  font-weight: 720;
}

body.system-zow-site .site-nav {
  flex-wrap: nowrap;
}

body.system-zow-site .site-header {
  overflow: visible;
}

body.system-zow-site .site-brand {
  --brand-tilt-x: 0deg;
  --brand-tilt-y: 0deg;
  min-width: 0;
  transform-style: preserve-3d;
}

body.system-zow-site .site-brand-logo {
  display: block;
  width: clamp(164px, 15vw, 220px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgb(37 99 235 / 10%));
  transform: perspective(620px) rotateX(var(--brand-tilt-x)) rotateY(var(--brand-tilt-y)) translateZ(0);
  transition: transform 180ms ease, filter 180ms ease;
}

body.system-zow-site .site-brand .zow-symbol {
  transform: perspective(620px) rotateX(var(--brand-tilt-x)) rotateY(var(--brand-tilt-y)) translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.system-zow-site .site-brand:hover .site-brand-logo {
  filter:
    drop-shadow(0 18px 32px rgb(37 99 235 / 18%))
    drop-shadow(0 0 16px rgb(0 184 217 / 14%));
}

body.system-zow-site .site-brand:hover .zow-symbol {
  border-color: rgb(0 184 217 / 35%);
  box-shadow:
    0 20px 46px rgb(37 99 235 / 18%),
    0 0 0 7px rgb(0 184 217 / 7%);
}

body.system-zow-site .zow-symbol i {
  position: absolute;
  inset: -9px;
  border: 1px solid rgb(0 184 217 / 28%);
  border-radius: 18px;
  opacity: 0.75;
  transform: rotateX(62deg) rotateZ(0deg);
  animation: zowLogoOrbit 4.8s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

body.system-zow-site .zow-symbol.small i {
  display: none;
}

body.system-zow-site .site-brand:hover .zow-symbol i {
  border-color: rgb(34 197 94 / 42%);
  animation-play-state: running;
}

body.system-zow-site .site-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(238 249 255 / 72%)),
    radial-gradient(circle at 25% 10%, rgb(0 229 255 / 20%), transparent 55%);
  box-shadow: 0 16px 34px rgb(37 99 235 / 12%);
  cursor: pointer;
}

body.system-zow-site .site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #10213d, #2563eb, #00b8d9);
  transition: transform 180ms ease, opacity 180ms ease;
}

body.system-zow-site .tech-hero-visual {
  min-height: 620px;
  isolation: isolate;
  perspective: 1100px;
}

body.system-zow-site #zowHeroCanvas {
  position: absolute;
  inset: -4% -5% 3%;
  z-index: 0;
  width: 110%;
  height: 100%;
  filter: drop-shadow(0 18px 42px rgb(0 184 217 / 12%));
  pointer-events: none;
}

body.system-zow-site .tech-orbit-stack {
  position: absolute;
  inset: 9% 4% 8%;
  z-index: 0;
  display: grid;
  place-items: center;
  transform: rotateX(62deg) rotateZ(-18deg);
  transform-style: preserve-3d;
}

body.system-zow-site .tech-orbit-stack span {
  position: absolute;
  width: min(480px, 82vw);
  aspect-ratio: 1;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgb(37 99 235 / 7%), 0 0 42px rgb(0 184 217 / 8%);
  animation: zowOrbitSpin 14s linear infinite;
}

body.system-zow-site .tech-orbit-stack span:nth-child(2) {
  width: min(360px, 66vw);
  border-color: rgb(124 58 237 / 16%);
  animation-duration: 18s;
  animation-direction: reverse;
}

body.system-zow-site .tech-orbit-stack span:nth-child(3) {
  width: min(250px, 52vw);
  border-color: rgb(34 197 94 / 18%);
  animation-duration: 10s;
}

body.system-zow-site .tech-command-panel {
  z-index: 2;
  width: min(510px, 100%);
  margin: auto;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(238 249 255 / 68%)),
    radial-gradient(circle at 20% 0%, rgb(0 229 255 / 20%), transparent 34%),
    radial-gradient(circle at 88% 20%, rgb(37 99 235 / 18%), transparent 28%);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  animation: zowFloatPanel 5.8s ease-in-out infinite;
  will-change: transform;
}

body.system-zow-site .tech-command-panel .holo-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgb(0 229 255 / 18%), transparent 27%),
    linear-gradient(145deg, rgb(7 17 31 / 90%), rgb(13 36 68 / 82%));
}

body.system-zow-site .tech-command-panel .holo-main::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgb(0 229 255 / 18%), transparent 26%, rgb(140 255 193 / 14%), transparent 52%);
  animation: zowRadar 8s linear infinite;
}

body.system-zow-site .tech-command-panel .holo-core {
  width: min(190px, 46vw);
  background:
    linear-gradient(145deg, rgb(0 229 255 / 26%), rgb(37 99 235 / 20%)),
    radial-gradient(circle at 48% 40%, rgb(255 255 255 / 18%), transparent 42%);
  animation: zowCorePulse 3.2s ease-in-out infinite;
}

body.system-zow-site .tech-command-panel .holo-core span {
  font-size: clamp(2rem, 6vw, 3.7rem);
}

body.system-zow-site .tech-pulses span {
  animation: zowLinePulse 2.6s ease-in-out infinite;
}

body.system-zow-site .tech-pulses span:nth-child(2) { animation-delay: 300ms; }
body.system-zow-site .tech-pulses span:nth-child(3) { animation-delay: 600ms; }
body.system-zow-site .tech-pulses span:nth-child(4) { animation-delay: 900ms; }

body.system-zow-site .floating-tech-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  border: 1px solid rgb(0 184 217 / 20%);
  border-radius: 18px;
  padding: 13px 15px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(238 249 255 / 58%)),
    radial-gradient(circle at 20% 0%, rgb(0 229 255 / 18%), transparent 62%);
  box-shadow: 0 22px 55px rgb(7 17 31 / 12%);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  animation: zowFloatCard 4.8s ease-in-out infinite;
  will-change: transform;
}

body.system-zow-site .floating-tech-card strong {
  color: var(--zow-deep);
  font-size: 0.95rem;
}

body.system-zow-site .floating-tech-card span {
  color: var(--zow-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

body.system-zow-site .floating-tech-card.card-a {
  top: 17%;
  left: 2%;
}

body.system-zow-site .floating-tech-card.card-b {
  right: -1%;
  top: 34%;
  animation-delay: 900ms;
}

body.system-zow-site .floating-tech-card.card-c {
  right: auto;
  left: 50%;
  bottom: 3%;
  max-width: 205px;
  animation-delay: 1500ms;
}

body.system-zow-site .capability-section {
  position: relative;
}

body.system-zow-site .capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.system-zow-site .capability-grid article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgb(0 184 217 / 15%);
  border-radius: 26px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(255 255 255 / 58%)),
    radial-gradient(circle at 18% 0%, rgb(0 229 255 / 14%), transparent 46%);
  box-shadow: 0 26px 70px rgb(17 31 49 / 8%);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

body.system-zow-site .capability-grid article::after {
  content: "";
  position: absolute;
  inset: auto -18% -30%;
  height: 110px;
  background: radial-gradient(circle, rgb(0 184 217 / 18%), transparent 66%);
}

body.system-zow-site .capability-grid article:hover {
  border-color: rgb(0 184 217 / 34%);
  box-shadow: 0 34px 82px rgb(0 184 217 / 13%);
  transform: translateY(-7px) rotateX(2deg);
}

body.system-zow-site .capability-grid span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(0 184 217 / 22%);
  border-radius: 16px;
  color: var(--zow-blue);
  background: rgb(0 184 217 / 9%);
  font-weight: 950;
}

body.system-zow-site .capability-grid strong {
  color: var(--zow-ink);
  font-size: 1.12rem;
}

body.system-zow-site .capability-grid p {
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.58;
}

body.system-zow-site .services-section {
  position: relative;
}

body.system-zow-site .services-section::before {
  content: "";
  position: absolute;
  inset: 6% -8% auto auto;
  width: min(360px, 70vw);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(0 229 255 / 18%), transparent 62%),
    radial-gradient(circle at 70% 30%, rgb(124 58 237 / 14%), transparent 52%);
  filter: blur(10px);
}

body.system-zow-site .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.system-zow-site .service-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(239 250 255 / 68%)),
    radial-gradient(circle at 20% 0%, rgb(0 184 217 / 14%), transparent 48%);
  box-shadow: 0 28px 78px rgb(17 31 49 / 8%);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

body.system-zow-site .service-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -34%;
  height: 140px;
  background: radial-gradient(circle, rgb(37 99 235 / 16%), transparent 66%);
  transition: transform 220ms ease, opacity 220ms ease;
}

body.system-zow-site .service-card:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 34px 84px rgb(0 184 217 / 13%);
  transform: translateY(-7px);
}

body.system-zow-site .service-card:hover::after {
  opacity: 0.9;
  transform: translateY(-10px) scale(1.08);
}

body.system-zow-site .service-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(0 184 217 / 22%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(224 248 255 / 76%)),
    radial-gradient(circle at 30% 20%, rgb(0 229 255 / 28%), transparent 60%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 14px 34px rgb(37 99 235 / 10%);
}

body.system-zow-site .service-card span::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  background: linear-gradient(135deg, #2563eb, #00b8d9);
  -webkit-mask: var(--service-icon);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask: var(--service-icon);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

body.system-zow-site .web-service {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-6v2h3a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2h3v-2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 2v9h16V7H4Z'/%3E%3C/svg%3E");
}

body.system-zow-site .design-service {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h7l7 7v11H7V3Zm8 3.4V10h3.6L15 6.4ZM4 7h1v16h14v1H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2Zm6 8h8v2h-8v-2Zm0-4h4v2h-4v-2Z'/%3E%3C/svg%3E");
}

body.system-zow-site .support-service {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m21 16.5-5.3-5.3a6.5 6.5 0 0 0-8.8-7.9l4.1 4.1-3.5 3.5-4.1-4.1a6.5 6.5 0 0 0 7.9 8.8l5.3 5.3a3.1 3.1 0 0 0 4.4-4.4Z'/%3E%3C/svg%3E");
}

body.system-zow-site .software-service {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.2 6.2 3.1L12 10.4 5.8 7.3 12 4.2ZM5 9.1l6 3v7.1l-6-3V9.1Zm8 10.1v-7.1l6-3v7.1l-6 3Z'/%3E%3C/svg%3E");
}

body.system-zow-site .service-card strong {
  position: relative;
  z-index: 1;
  color: var(--zow-ink);
  font-size: 1.12rem;
}

body.system-zow-site .service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.58;
}

body.system-zow-site .site-section {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

body.system-zow-site .site-hero,
body.system-zow-site .site-header,
body.system-zow-site .site-footer {
  content-visibility: visible;
}

@media (max-width: 760px) {
  body.app-correspondencia::after,
  .ventas-touch-shell::after,
  .ventas-touch-shell .topbar::after {
    animation: none;
  }

  body.app-correspondencia::after,
  .ventas-touch-shell::after {
    opacity: 0.28;
  }
}

@keyframes zowOrbitSpin {
  to { transform: rotateZ(360deg); }
}

@keyframes zowFloatPanel {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes zowFloatCard {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -13px; rotate: 1.5deg; }
}

@keyframes zowRadar {
  to { transform: rotate(360deg); }
}

@keyframes zowCorePulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgb(0 229 255 / 24%)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 42px rgb(0 229 255 / 38%)); transform: scale(1.035); }
}

@keyframes zowLinePulse {
  0%, 100% { opacity: 0.28; transform: scaleX(0.82); }
  50% { opacity: 1; transform: scaleX(1.08); }
}

@keyframes zowLogoOrbit {
  to { transform: rotateX(62deg) rotateZ(360deg); }
}

@media (max-width: 1060px) {
  body.system-zow-site .capability-grid,
  body.system-zow-site .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.system-zow-site .site-header {
    position: sticky;
    top: 0;
    flex-direction: row !important;
    gap: 12px;
    align-items: center !important;
    padding: 10px 14px;
  }

  body.system-zow-site .site-brand {
    align-self: center;
    min-width: 0;
  }

  body.system-zow-site .site-brand-copy small {
    display: none;
  }

  body.system-zow-site .site-menu-toggle {
    display: grid;
    place-content: center;
    margin-left: auto;
  }

  body.system-zow-site .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid !important;
    grid-template-columns: none !important;
    justify-content: stretch;
    width: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    border: 1px solid rgb(37 99 235 / 10%);
    border-radius: 22px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 24px 60px rgb(17 31 49 / 14%), inset 0 1px 0 rgb(255 255 255 / 80%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease;
    scrollbar-width: none;
  }

  body.system-zow-site.site-menu-open .site-nav {
    max-height: min(72vh, 520px);
    padding: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.system-zow-site .site-nav::-webkit-scrollbar {
    display: none;
  }

  body.system-zow-site .site-nav a {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  body.system-zow-site .site-login-link {
    grid-column: auto !important;
    margin-left: 0 !important;
    background: linear-gradient(135deg, #10213d, #2563eb) !important;
    color: #ffffff !important;
  }

  body.system-zow-site.site-menu-open .site-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.system-zow-site.site-menu-open .site-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.system-zow-site.site-menu-open .site-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.system-zow-site .tech-hero-visual {
    min-height: 430px;
  }

  body.system-zow-site #zowHeroCanvas,
  body.system-zow-site .tech-orbit-stack {
    display: none;
  }

  body.system-zow-site .tech-command-panel,
  body.system-zow-site .floating-tech-card {
    animation: none;
    will-change: auto;
  }

  body.system-zow-site .floating-tech-card {
    position: relative;
    inset: auto !important;
    width: fit-content;
    margin: -10px 0 0;
  }

  body.system-zow-site .floating-tech-card.card-b {
    margin-left: auto;
  }

  body.system-zow-site .floating-tech-card.card-c {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body.system-zow-site .capability-grid,
  body.system-zow-site .services-grid {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .capability-grid article,
  body.system-zow-site .service-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body.system-zow-site #zowHeroCanvas,
  body.system-zow-site .tech-orbit-stack {
    display: none;
  }
}

@keyframes requestPulse {
  0%,
  100% {
    box-shadow: 0 22px 56px rgb(17 31 49 / 8%);
  }
  35% {
    box-shadow:
      0 28px 80px rgb(0 184 217 / 22%),
      0 0 0 4px rgb(0 184 217 / 12%);
  }
}

@media (max-width: 1120px) {
  body.system-zow-site .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.system-zow-site .trust-grid,
  body.system-zow-site .implementation-flow,
  body.system-zow-site .faq-shell {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .implementation-flow::before {
    top: 8%;
    bottom: 8%;
    left: 50px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgb(0 184 217 / 28%), rgb(34 197 94 / 20%), transparent);
  }

  body.system-zow-site .pricing-card.is-featured {
    transform: none;
  }

  body.system-zow-site .pricing-card.is-featured:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 640px) {
  body.system-zow-site .pricing-grid {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .pricing-card {
    padding: 20px;
  }

  body.system-zow-site .trust-grid {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .faq-shell {
    padding: 20px;
  }

  body.system-zow-site .implementation-flow article {
    min-height: auto;
  }

  body.system-zow-site .launch-cta {
    align-items: stretch;
    flex-direction: column;
  }

  body.system-zow-site .launch-cta .primary-button {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  body.app-ventas .login-layout,
  body.app-zow-panel-login .login-layout,
  body.app-correspondencia .login-layout {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  body.app-ventas .login-intro,
  body.app-zow-panel-login .login-intro,
  body.app-correspondencia .login-intro {
    order: 1;
    clip-path: none;
  }

  body.app-ventas .login-card,
  body.app-zow-panel-login .login-card,
  body.app-correspondencia .login-card {
    order: 2;
  }

  body.app-ventas .sales-login-window {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  body.app-ventas .ventas-login-screen,
  body.app-correspondencia .correspondence-login-screen,
  body.app-zow-panel-login .correspondence-login-screen {
    background-position: center top;
  }

  body.app-ventas .login-layout,
  body.app-zow-panel-login .login-layout,
  body.app-correspondencia .login-layout {
    border-radius: 20px;
  }

  body.app-ventas .sales-login-window {
    display: none;
  }

  body.app-zow-panel-login .panel-login-scene {
    min-height: 180px;
    transform: scale(0.82);
    transform-origin: center;
    margin: -14px 0;
  }

  body.app-zow-panel-login .panel-system-card {
    width: 94px;
    padding: 10px;
  }

  body.app-zow-panel-login .panel-core-orb {
    width: 118px;
    height: 118px;
  }

  body.app-zow-panel-login .panel-core-orb span {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 980px) {
  .correspondence-login-scene {
    min-height: clamp(154px, 31vw, 190px);
    transform: scale(0.92);
    transform-origin: center;
  }

  .document-folder-3d {
    width: min(250px, 66vw);
    min-height: clamp(128px, 22vw, 150px);
  }

  .route-node {
    width: 46px;
    height: 46px;
  }

  body.app-ventas .login-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .ventas-login-scene {
    min-height: clamp(138px, 28vw, 150px);
    transform: scale(0.92);
    transform-origin: center;
  }

  .ventas-workspace {
    display: block;
    grid-template-columns: 1fr;
  }

  .ventas-workspace .workflow-panel,
  .ventas-workspace .content-grid {
    grid-column: 1;
  }

  .ventas-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    width: 100%;
    margin-bottom: 14px;
    max-height: none;
  }

  .ventas-tabs button {
    min-width: max-content;
  }

  .ventas-module-grid,
  .promotion-grid,
  .route-grid,
  .report-grid,
  .report-actions,
  .report-risk-columns,
  .collection-plan-grid,
  .customer-workspace-grid,
  .inventory-decision-strip,
  .service-strip,
  .operation-model-grid,
  .role-template-grid,
  .role-permission-grid,
  .role-advisor-panel,
  .role-advisor-metrics,
  .first-setup-gateway,
  .system-access-fields,
  .user-role-coverage,
  .access-security-grid,
  .shift-command-grid,
  .shift-checklist,
  .finance-overview-cards.is-cashier,
  .cashier-cash-guide-grid,
  .stock-movement-preview,
  .receivable-payment-preview,
  .customer-filter-bar,
  .customer-filter-actions,
  .help-guide-grid,
  .company-manual-grid,
  .help-support-grid,
  body.app-ventas .daily-operation-track,
  body.app-ventas .history-control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ventas-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pos-shell,
  .cashier-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cashier-grid.is-simple-cashier {
    grid-template-columns: 1fr;
  }

  .touch-pos-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .touch-panel,
  .touch-cart-panel,
  .touch-cart-panel form {
    max-height: none;
    overflow: visible;
  }

  .touch-product-grid,
  .touch-cart-list {
    overflow: visible;
  }

  .ventas-workspace .content-grid,
  .ventas-workspace .document-list,
  #mainList {
    width: 100%;
  }

  .touch-cart-panel {
    position: static;
  }

  .product-suggestion-grid,
  .payment-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .touch-payment-methods,
  .quick-cash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .login-screen {
    align-items: flex-start;
    min-height: 100dvh;
    padding: 8px;
  }

  .login-layout {
    width: min(100%, 430px);
    max-height: none;
    min-height: 0;
    overflow: visible;
    border-radius: 12px;
  }

  .login-card,
  .login-intro {
    padding: 18px;
  }

  .login-intro {
    gap: 14px;
  }

  .login-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .login-copy p:not(.eyebrow),
  .login-notice p {
    font-size: 0.9rem;
  }

  .login-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .login-highlights div {
    min-height: 62px;
    padding: 9px;
  }

  .login-highlights strong {
    font-size: 0.8rem;
  }

  .login-highlights span {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .correspondence-login-scene {
    min-height: clamp(122px, 34vw, 150px);
    margin: -8px 0 -4px;
    transform: scale(0.74);
    transform-origin: center;
  }

  .correspondence-backdrop span {
    width: 116px;
    height: 76px;
    opacity: 0.34;
  }

  .document-folder-3d {
    width: min(218px, 76vw);
    min-height: 118px;
    transform: rotateX(54deg) rotateZ(-12deg) translateZ(42px) scale(0.86);
  }

  .route-orbit,
  .holo-panels,
  .data-vault-ring,
  .document-stamp-3d {
    display: none;
  }

  .document-route-map,
  .route-packet,
  .hologram-core {
    display: block;
  }

  .hologram-core {
    width: 88px;
    height: 88px;
  }

  .control-sheet {
    left: 28px;
    right: 24px;
    height: 70px;
    padding: 14px;
  }

  .route-node {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .route-node i {
    width: 18px;
    height: 22px;
  }

  body.app-ventas .login-copy h1 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  body.app-ventas .login-highlights {
    grid-template-columns: 1fr;
  }

  body.app-ventas .ventas-login-scene {
    display: grid !important;
    min-height: clamp(118px, 34vw, 145px);
    margin: -10px 0 -4px;
    transform: scale(0.72);
    transform-origin: center;
  }

  body.app-ventas .sales-depth-grid,
  body.app-ventas .sales-orbit {
    display: none;
  }

  body.app-ventas .warehouse-rack-3d {
    left: 3%;
    top: 25%;
    width: 126px;
    height: 82px;
  }

  body.app-ventas .pos-terminal-3d {
    right: 4%;
    top: 20%;
    width: 166px;
    height: 108px;
  }

  body.app-ventas .sales-scan-beam {
    opacity: 0.68;
  }

  .ventas-touch-shell[data-active-view="sell"] .topbar {
    padding: 10px;
  }

  .ventas-touch-shell[data-active-view="sell"] .topbar h1 {
    font-size: 1.35rem;
  }

  .ventas-menu-toggle {
    width: 100%;
    min-height: 58px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #101a18, #15312a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 16px 34px rgb(15 32 28 / 14%);
  }

  .ventas-menu-toggle span {
    color: rgb(255 255 255 / 64%);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .ventas-menu-toggle strong {
    font-size: 1rem;
  }

  .ventas-menu-toggle::after {
    content: "Abrir";
    border-radius: 999px;
    padding: 6px 9px;
    background: rgb(255 255 255 / 13%);
    color: white;
    font-size: 0.76rem;
    font-weight: 900;
  }

  .ventas-touch-shell.ventas-menu-open .ventas-menu-toggle::after {
    content: "Cerrar";
  }

  .ventas-tabs {
    display: grid;
    max-height: 0;
    margin-bottom: 0;
    padding: 0 10px;
    overflow: hidden;
    transition: max-height 180ms ease, padding 180ms ease, margin 180ms ease;
  }

  .ventas-touch-shell.ventas-menu-open .ventas-tabs {
    max-height: 70vh;
    margin-bottom: 12px;
    padding: 10px;
    overflow: auto;
  }

  .ventas-tabs button {
    min-height: 48px;
    width: 100%;
  }

  .ventas-module-grid,
  .promotion-grid,
  .route-grid,
  .report-grid,
  .report-actions,
  .report-risk-columns,
  .executive-brief-panel,
  .service-strip,
  .operation-model-grid,
  .role-template-grid,
  .role-permission-grid,
  .user-role-coverage,
  .shift-command-grid,
  .shift-checklist,
  .finance-overview-cards.is-cashier,
  .cashier-cash-guide-grid,
  .help-guide-grid,
  .company-manual-grid,
  .help-support-grid,
  .inventory-decision-strip,
  body.app-ventas .history-control-strip,
  body.app-ventas .history-role-panel,
  body.app-ventas .history-role-cards,
  .report-decision-grid,
  .owner-daily-grid,
  .owner-daily-actions,
  .executive-brief-metrics,
  .executive-brief-priority,
  body.app-ventas .inventory-filter-bar,
  body.app-ventas .inventory-filter-actions,
  body.app-ventas .daily-operation-track,
  .settings-overview-grid,
  .settings-window-nav,
  .module-window-nav,
  .settings-start-grid,
  .store-launch-grid,
  .backup-control-grid,
  .backup-check-grid,
  .settings-preset-row,
  .catalog-role-panel,
  .catalog-role-cards,
  .catalog-toolbar-panel,
  .inventory-role-panel,
  .inventory-role-cards,
  .inventory-import-grid,
  body.app-ventas .commercial-alerts-grid,
  .device-qa-grid,
  .role-manual-test-grid,
  .operational-sale-test-grid,
  body.app-ventas .receipt-preview-shell {
    grid-template-columns: 1fr;
  }

  .user-audit-grid,
  .user-audit-metrics {
    grid-template-columns: 1fr;
  }

  .setup-stage-timeline {
    grid-template-columns: 1fr;
  }

  .help-hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .commercial-alerts-head,
  body.app-ventas .commercial-alert-card,
  .backup-control-head,
  .cashier-cash-guide-head,
  .commercial-readiness-head,
  .commercial-roadmap-head,
  .commercial-roadmap-next,
  .device-qa-head,
  .role-manual-test-head,
  .operational-sale-test-head,
  .inventory-import-head,
  .owner-daily-head,
  .demo-data-kit-head,
  .demo-guide-head,
  body.app-ventas .training-mode-banner,
  .first-setup-gateway,
  body.app-ventas .training-lab-panel {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .commercial-alert-card button,
  .backup-control-head button,
  .backup-control-actions,
  .backup-control-actions button,
  body.app-ventas .inventory-filter-bar > .ghost-button,
  body.app-ventas .training-mode-banner button,
  .first-setup-actions,
  .first-setup-actions button,
  .commercial-roadmap-next button,
  .device-qa-head button,
  .role-manual-test-head button,
  .operational-sale-test-head button,
  .inventory-import-actions,
  .inventory-import-actions button,
  .inventory-import-actions .file-action,
  .owner-daily-head button,
  .demo-data-kit-actions button,
  body.app-ventas .training-lab-actions,
  body.app-ventas .training-lab-actions button {
    width: 100%;
  }

  .help-hero-actions {
    justify-items: stretch;
    width: 100%;
  }

  .help-hero-actions > strong {
    max-width: none;
    width: 100%;
    text-align: left;
  }

  .sales-certification-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-advisor-actions,
  .role-advisor-actions button,
  .users-delivery-actions,
  .users-delivery-actions button {
    width: 100%;
  }

  .users-delivery-actions {
    justify-content: stretch;
  }

  .sales-certification-head > strong {
    text-align: left;
  }

  .route-card-head,
  .route-stats,
  .access-security-head,
  .access-security-tips,
  .price-row,
  .cart-row .cart-actions,
  .purchase-assist-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-assist-card .primary-button,
  .access-security-tips button,
  .admin-head-actions {
    width: 100%;
  }

  .admin-head-actions .ghost-button {
    flex: 1 1 160px;
  }

  .inventory-row .admin-row-meta,
  .mini-action-row {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .ventas-module-card {
    min-height: 104px;
  }

  .pos-search-row,
  .pos-customer-row,
  .pos-sale-options,
  .pos-cash-warning,
  .ventas-notification-card,
  .cart-line,
  .touch-payment-actions {
    grid-template-columns: 1fr;
  }

  .ventas-notification-card {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-cash-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-method-grid,
  .product-suggestion-grid,
  .combo-builder-grid,
  .cash-health-grid,
  .finance-role-panel,
  .finance-role-cards,
  .cash-review-grid,
  .cash-review-columns,
  .cashier-collection-panel,
  .cashier-collection-grid,
  .supervisor-portfolio-panel,
  .supervisor-portfolio-grid,
  .debt-aging-grid,
  .collection-plan-grid,
  .customer-workspace-grid,
  .inventory-insight-grid,
  .payment-breakdown-grid,
  .cash-close-breakdown,
  .live-activity-grid,
  .kardex-summary,
  .kardex-control-grid,
  .setup-check-grid,
  .customer-health-grid,
  .business-health-grid {
    grid-template-columns: 1fr;
  }

  .customer-command-card {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-command-actions {
    justify-content: stretch;
  }

  .customer-command-actions button {
    flex: 1 1 160px;
  }

  .customer-directory-row {
    grid-template-columns: 1fr;
  }

  .ventas-touch-shell {
    padding: 10px;
  }

  .ventas-touch-shell .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .touch-product-grid,
  .touch-payment-methods,
  .quick-cash-grid,
  .touch-sale-actions {
    grid-template-columns: 1fr;
  }

  .pos-quick-status,
  .pos-shift-grid,
  .inventory-health-grid,
  .cash-health-grid,
  .debt-aging-grid,
  .collection-plan-grid,
  .inventory-insight-grid,
  .owner-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .ventas-executive-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.app-ventas .sales-priority-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .sales-priority-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .sales-priority-head > strong {
    width: max-content;
  }

  body.app-ventas .sales-goal-panel {
    grid-template-columns: 1fr;
  }

  body.app-ventas .ventas-executive-hero > strong {
    min-width: 86px;
    min-height: 86px;
  }

  body.app-ventas .executive-action-plan article {
    align-items: stretch;
    flex-direction: column;
  }

  .sale-detail-summary,
  .sale-detail-card,
  .receivable-payment-card {
    grid-template-columns: 1fr;
  }

  .sale-detail-items {
    max-height: none;
  }

  .last-sale-receipt {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-section-block {
    padding: 10px;
  }

  .pos-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pos-search-row {
    grid-template-columns: 1fr;
  }

  .combo-builder-line {
    grid-template-columns: 1fr;
  }

  .pos-search-row .touch-action {
    width: 100%;
  }

  .pos-category-rail {
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .pos-category-rail button {
    flex: 0 0 auto;
  }

  .touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .activity-timeline-item,
  .kardex-timeline-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .activity-timeline-item .admin-row-meta,
  .kardex-timeline-row .admin-row-meta {
    grid-column: 2;
    align-items: flex-start;
  }

  .touch-product-card {
    min-height: 128px;
  }

  .sale-total-card {
    gap: 7px;
  }

  .touch-pos-head,
  .touch-cart-head,
  .cart-item-name {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .top-products-list article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  body.app-ventas .top-product-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

/* POS tactile modal polish: payment, stock, customers and sale details. */
body.app-ventas dialog {
  width: min(840px, calc(100vw - 24px));
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(245 252 249 / 94%)),
    radial-gradient(circle at 96% 0%, rgb(16 185 129 / 18%), transparent 34%);
  box-shadow:
    0 36px 110px rgb(7 18 17 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  overflow: hidden;
}

body.app-ventas dialog::backdrop {
  background:
    radial-gradient(circle at 50% 24%, rgb(16 185 129 / 14%), transparent 34%),
    rgb(5 15 14 / 58%);
  backdrop-filter: blur(8px);
}

body.app-ventas .modal-body {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
}

body.app-ventas .modal-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 52%, rgb(255 255 255 / 36%) 53%, transparent 55% 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgb(15 118 110 / 4%) 46px 47px);
  opacity: 0.44;
}

body.app-ventas .modal-body > * {
  position: relative;
  z-index: 1;
}

body.app-ventas .modal-header {
  align-items: center;
  margin: calc(clamp(16px, 2.4vw, 26px) * -1) calc(clamp(16px, 2.4vw, 26px) * -1) 18px;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid rgb(15 118 110 / 12%);
  background:
    radial-gradient(circle at 12% 18%, rgb(82 255 193 / 18%), transparent 28%),
    linear-gradient(135deg, #071613, #10251f 56%, #0f766e);
  color: white;
}

body.app-ventas .modal-header .eyebrow,
body.app-ventas .modal-header h2 {
  color: white;
}

body.app-ventas .modal-header h2 {
  margin-top: 2px;
  font-size: clamp(1.22rem, 2.2vw, 1.8rem);
}

body.app-ventas .modal-header .icon-button {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 12%);
  color: white;
}

body.app-ventas .modal-header .icon-button:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 20%);
}

body.app-ventas .modal-body .form-grid {
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 18px;
  background: rgb(255 255 255 / 64%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 84%);
}

body.app-ventas .modal-body label {
  color: #10251f;
  font-weight: 900;
}

body.app-ventas .modal-body input,
body.app-ventas .modal-body select,
body.app-ventas .modal-body textarea {
  border-color: rgb(15 118 110 / 16%);
  border-radius: 14px;
  background: rgb(255 255 255 / 94%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}

body.app-ventas .modal-body input:focus,
body.app-ventas .modal-body select:focus,
body.app-ventas .modal-body textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgb(16 185 129 / 12%);
}

body.app-ventas .modal-actions {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgb(15 118 110 / 10%);
}

body.app-ventas .modal-actions .ghost-button,
body.app-ventas .modal-actions .primary-button {
  min-height: 52px;
  border-radius: 14px;
}

body.app-ventas .payment-modal-body {
  width: min(1040px, calc(100vw - 24px));
  max-height: min(92dvh, 780px);
  overflow: hidden;
}

body.app-ventas .touch-payment-layout {
  gap: 16px;
}

body.app-ventas .payment-fit-layout {
  min-height: 0;
  max-height: calc(min(92dvh, 780px) - 132px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  align-items: stretch;
}

body.app-ventas .payment-fit-summary,
body.app-ventas .payment-fit-entry {
  min-height: 0;
  display: grid;
  gap: 12px;
}

body.app-ventas .payment-fit-summary {
  grid-template-rows: auto auto minmax(0, 1fr);
}

body.app-ventas .payment-fit-entry {
  align-content: start;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

body.app-ventas .touch-payment-total {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border-radius: 22px;
  padding: clamp(16px, 2.4vw, 24px);
  background:
    radial-gradient(circle at 88% 18%, rgb(245 158 11 / 24%), transparent 34%),
    radial-gradient(circle at 12% 24%, rgb(82 255 193 / 22%), transparent 32%),
    linear-gradient(135deg, #071613, #10251f 52%, #0f766e);
  box-shadow:
    0 24px 60px rgb(15 118 110 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 16%);
}

body.app-ventas .touch-payment-total::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 10%), transparent),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 12%) 0 2px, transparent 2px 14px);
  transform: rotate(10deg);
}

body.app-ventas .touch-payment-total strong {
  line-height: 1;
  text-shadow: 0 14px 34px rgb(0 0 0 / 24%);
}

body.app-ventas .touch-payment-methods {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

body.app-ventas .touch-payment-methods button,
body.app-ventas .quick-cash-grid button,
body.app-ventas .payment-keypad button {
  position: relative;
  overflow: hidden;
  min-height: 62px;
  border-radius: 12px;
  border-color: rgb(15 118 110 / 12%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 78%));
  box-shadow:
    0 14px 30px rgb(8 30 26 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 86%);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

body.app-ventas .touch-payment-methods button:hover,
body.app-ventas .quick-cash-grid button:hover,
body.app-ventas .payment-keypad button:hover {
  transform: translateY(-2px);
  border-color: rgb(16 185 129 / 42%);
  box-shadow:
    0 20px 44px rgb(8 30 26 / 12%),
    0 0 0 5px rgb(16 185 129 / 8%);
}

body.app-ventas .touch-payment-methods button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #10b981, #0f766e 58%, #f59e0b);
  color: white;
}

body.app-ventas .touch-payment-methods button span {
  min-width: 42px;
  min-height: 34px;
  background: rgb(16 185 129 / 12%);
}

body.app-ventas .quick-cash-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .payment-keypad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .payment-keypad button {
  text-align: center;
  font-size: 1.16rem;
}

body.app-ventas .payment-keypad .is-strong {
  background:
    radial-gradient(circle at 24% 15%, rgb(255 255 255 / 24%), transparent 32%),
    linear-gradient(135deg, #059669, #0f766e 58%, #f59e0b);
  color: white;
}

body.app-ventas .quick-cash-grid button {
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: left;
  color: #10251f;
  font-size: 1.04rem;
}

body.app-ventas .quick-cash-grid button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.app-ventas .quick-cash-grid button strong {
  color: #10251f;
  font-size: clamp(1rem, 2.4vw, 1.34rem);
}

body.app-ventas .payment-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

body.app-ventas .payment-helper-row span {
  display: grid;
  gap: 2px;
}

body.app-ventas .payment-helper-row small {
  color: rgb(101 115 112 / 82%);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

body.app-ventas .payment-helper-row button {
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(255 255 255 / 82%);
  color: var(--accent-dark);
  font-weight: 900;
}

body.app-ventas .payment-flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.app-ventas .payment-flow-summary article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 72%));
  box-shadow: 0 12px 28px rgb(8 30 26 / 7%);
}

body.app-ventas .payment-flow-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.app-ventas .payment-flow-summary strong {
  display: block;
  overflow: hidden;
  color: #10251f;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .payment-flow-summary article.is-warning {
  border-color: rgb(245 158 11 / 32%);
  background: linear-gradient(145deg, rgb(255 251 235 / 95%), rgb(254 243 199 / 72%));
}

body.app-ventas .payment-flow-summary article.is-warning strong {
  color: #92400e;
}

body.app-ventas .payment-flow-summary article.is-ok {
  border-color: rgb(16 185 129 / 24%);
}

body.app-ventas .payment-safety-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgb(16 185 129 / 18%);
  border-radius: 10px;
  padding: 11px 12px;
  background:
    radial-gradient(circle at 92% 0%, rgb(16 185 129 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(236 253 245 / 92%), rgb(255 255 255 / 88%));
  color: #0f5132;
}

body.app-ventas .payment-safety-card strong {
  font-size: 0.98rem;
  font-weight: 950;
}

body.app-ventas .payment-safety-card span {
  color: rgb(15 81 50 / 78%);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .payment-safety-card.is-warning {
  border-color: rgb(245 158 11 / 26%);
  background:
    radial-gradient(circle at 92% 0%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(135deg, rgb(255 251 235 / 96%), rgb(255 255 255 / 88%));
  color: #92400e;
}

body.app-ventas .payment-safety-card.is-warning span {
  color: rgb(146 64 14 / 82%);
}

body.app-ventas .payment-safety-card.is-caution {
  border-color: rgb(239 68 68 / 22%);
  background:
    radial-gradient(circle at 92% 0%, rgb(239 68 68 / 13%), transparent 34%),
    linear-gradient(135deg, rgb(254 242 242 / 96%), rgb(255 255 255 / 88%));
  color: #991b1b;
}

body.app-ventas .payment-safety-card.is-caution span {
  color: rgb(153 27 27 / 82%);
}

body.app-ventas .touch-payment-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-ventas .touch-payment-fields input {
  min-height: 54px;
  width: 100%;
  min-width: 0;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 950;
}

body.app-ventas #paymentReceived,
body.app-ventas #paymentResultValue {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

body.app-ventas #paymentReceived:focus {
  border-color: rgb(245 158 11 / 48%);
  background:
    linear-gradient(135deg, rgb(255 251 235 / 96%), rgb(236 253 245 / 86%));
  box-shadow:
    0 0 0 4px rgb(245 158 11 / 12%),
    0 16px 34px rgb(8 30 26 / 10%);
}

body.app-ventas .touch-payment-actions {
  gap: 10px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

body.app-ventas .touch-payment-actions button {
  min-height: 58px;
  font-size: 1.04rem;
}

body.app-ventas .payment-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: 2px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgb(255 255 255 / 78%), #ffffff 28%);
}

@media (max-width: 860px) {
  body.app-ventas .payment-modal-body {
    max-height: calc(100dvh - 12px);
    overflow: auto;
  }

  body.app-ventas .payment-fit-layout {
    max-height: none;
    grid-template-columns: 1fr;
  }

  body.app-ventas .payment-fit-entry {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

body.app-ventas .touch-payment-actions .primary-button {
  background: linear-gradient(135deg, #10b981, #0f766e 58%, #f59e0b);
}

body.app-ventas .sale-detail-modal {
  width: min(900px, calc(100vw - 24px));
}

body.app-ventas .sale-detail-summary {
  gap: 12px;
}

body.app-ventas .sale-detail-summary article,
body.app-ventas .sale-detail-card,
body.app-ventas .sale-detail-items article,
body.app-ventas .receivable-payment-card div,
body.app-ventas .receivable-payment-preview article,
body.app-ventas .receivable-payment-preview > div,
body.app-ventas .stock-movement-product {
  border-radius: 16px;
  border-color: rgb(15 118 110 / 12%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 76%)),
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 10%), transparent 34%);
  box-shadow: 0 14px 32px rgb(8 30 26 / 7%);
}

body.app-ventas .sale-detail-summary article {
  min-height: 82px;
}

body.app-ventas .sale-detail-audit-strip,
body.app-ventas .sale-detail-payment-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

body.app-ventas .sale-detail-audit-strip article,
body.app-ventas .sale-detail-payment-card article,
body.app-ventas .sale-detail-payment-card > div {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 74%)),
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 9%), transparent 34%);
  box-shadow: 0 12px 26px rgb(8 30 26 / 6%);
}

body.app-ventas .sale-detail-audit-strip span,
body.app-ventas .sale-detail-audit-strip small,
body.app-ventas .sale-detail-payment-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .sale-detail-audit-strip strong,
body.app-ventas .sale-detail-payment-card strong {
  display: block;
  margin: 5px 0 2px;
  overflow: hidden;
  color: #10251f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .sale-detail-items {
  padding: 4px;
}

body.app-ventas .sale-detail-items article {
  align-items: flex-start;
  padding: 12px 14px;
}

body.app-ventas .sale-detail-items small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

body.app-ventas .sales-history-panel {
  display: grid;
  gap: 14px;
}

body.app-ventas .history-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.app-ventas .history-kpi-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 78%)),
    radial-gradient(circle at 90% 14%, rgb(245 158 11 / 10%), transparent 34%);
  box-shadow: 0 14px 32px rgb(8 30 26 / 7%);
}

body.app-ventas .history-kpi-grid span,
body.app-ventas .history-kpi-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

body.app-ventas .history-kpi-grid strong {
  display: block;
  margin: 5px 0 2px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1.08rem, 2.4vw, 1.52rem);
}

body.app-ventas .history-exception-inbox {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 255 252 / 92%));
}

body.app-ventas .history-quick-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(14 165 233 / 18%);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 94% 10%, rgb(14 165 233 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 86%));
  box-shadow: 0 16px 34px rgb(8 30 26 / 6%);
}

body.app-ventas .history-quick-guide h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.14rem;
}

body.app-ventas .history-quick-guide > div > span,
body.app-ventas .history-guide-grid span,
body.app-ventas .history-action-legend span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.38;
}

body.app-ventas .history-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .history-guide-grid article {
  min-width: 0;
  border: 1px solid rgb(14 165 233 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .history-guide-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #10251f;
  font-size: 0.9rem;
}

body.app-ventas .history-action-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-ventas .history-action-legend span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(15 118 110 / 8%);
  color: #0f513f;
}

body.app-ventas .cash-closure-filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 94% 12%, rgb(20 184 166 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 88%));
  box-shadow: 0 16px 34px rgb(8 30 26 / 6%);
}

body.app-ventas .cash-closure-filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(2, minmax(150px, 0.8fr)) minmax(190px, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.app-ventas .cash-closure-filter-grid label,
body.app-ventas .cash-closure-filter-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 78%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

body.app-ventas .cash-closure-filter-grid input,
body.app-ventas .cash-closure-filter-grid select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #ffffff;
  color: #10251f;
  font: inherit;
}

body.app-ventas .cash-closure-filter-grid strong {
  display: block;
  margin: 5px 0 2px;
  color: #10251f;
  font-size: 1.12rem;
}

body.app-ventas .cash-closure-report {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

body.app-ventas .cash-closure-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.app-ventas .cash-closure-report-grid article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 76%)),
    radial-gradient(circle at 90% 14%, rgb(245 158 11 / 10%), transparent 34%);
  box-shadow: 0 12px 24px rgb(8 30 26 / 6%);
}

body.app-ventas .cash-closure-report-grid span,
body.app-ventas .cash-closure-report-grid small,
body.app-ventas .cash-closure-group-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

body.app-ventas .cash-closure-report-grid strong {
  display: block;
  margin: 6px 0 3px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

body.app-ventas .cash-closure-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.app-ventas .cash-closure-group-grid > section {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 82%);
}

body.app-ventas .cash-closure-group-list {
  display: grid;
  gap: 8px;
}

body.app-ventas .cash-closure-group-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(248 255 252 / 82%);
}

body.app-ventas .cash-closure-group-list strong {
  display: block;
  color: #10251f;
}

body.app-ventas .cash-closure-detail-list {
  margin-top: 8px;
}

body.app-ventas .finance-sales-history-panel {
  border-color: rgba(20, 184, 166, 0.24);
}

body.app-ventas .finance-sales-list {
  display: grid;
  gap: 8px;
}

body.app-ventas .finance-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

body.app-ventas .finance-sale-row > div {
  display: grid;
  gap: 3px;
}

body.app-ventas .finance-sale-row > div:last-child {
  text-align: right;
}

body.app-ventas .finance-sale-row span,
body.app-ventas .finance-sale-row small {
  color: var(--muted);
}

body.app-ventas .finance-sale-row.is-voided {
  opacity: 0.72;
}

body.app-ventas .finance-sales-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

body.app-ventas .finance-sales-pagination button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #ffffff;
  color: #0f766e;
  font-weight: 800;
}

body.app-ventas .finance-sales-pagination button.is-active {
  background: #0f766e;
  color: #ffffff;
}

body.app-ventas .free-plan-banner,
body.app-ventas .free-plan-limit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(239, 246, 255, 0.92));
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.08);
}

body.app-ventas .free-plan-banner h3,
body.app-ventas .free-plan-limit-card h3 {
  margin: 0 0 4px;
  color: #0f3d34;
}

body.app-ventas .free-plan-banner span,
body.app-ventas .free-plan-limit-card span {
  display: block;
  max-width: 820px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

body.app-ventas .free-plan-limit-card.is-full {
  border-color: rgba(217, 119, 6, 0.32);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.94));
}

body.app-ventas .history-exception-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .history-exception-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.12rem;
}

body.app-ventas .history-exception-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

body.app-ventas .history-exception-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-size: 0.82rem;
  white-space: nowrap;
}

body.app-ventas .history-exception-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .history-exception-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .history-exception-card.is-ok {
  border-color: rgb(16 185 129 / 24%);
  background: rgb(236 253 245 / 78%);
}

body.app-ventas .history-exception-card.is-info {
  border-color: rgb(14 165 233 / 22%);
  background: rgb(240 249 255 / 74%);
}

body.app-ventas .history-exception-card.is-warning {
  border-color: rgb(245 158 11 / 30%);
  background: rgb(255 251 235 / 82%);
}

body.app-ventas .history-exception-card.is-danger {
  border-color: rgb(220 38 38 / 26%);
  background: rgb(254 242 242 / 84%);
}

body.app-ventas .history-exception-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .history-exception-card span,
body.app-ventas .history-exception-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.28;
}

body.app-ventas .history-exception-card strong {
  color: var(--accent-dark);
  font-size: 0.98rem;
  line-height: 1.14;
}

body.app-ventas .history-exception-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.app-ventas .history-exception-actions button {
  min-height: 34px;
}

body.app-ventas .history-control-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 0.6fr));
  gap: 10px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(240 253 250 / 82%)),
    radial-gradient(circle at 4% 10%, rgb(16 185 129 / 10%), transparent 32%);
  box-shadow: 0 16px 36px rgb(8 30 26 / 6%);
}

body.app-ventas .history-control-strip.is-warning {
  border-color: rgb(245 158 11 / 24%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 72%)),
    radial-gradient(circle at 4% 10%, rgb(245 158 11 / 12%), transparent 32%);
}

body.app-ventas .history-control-strip article {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .history-control-strip span,
body.app-ventas .history-control-strip small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

body.app-ventas .history-control-strip span {
  text-transform: uppercase;
}

body.app-ventas .history-control-strip strong {
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(0.98rem, 1.9vw, 1.25rem);
}

body.app-ventas .history-role-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgb(16 185 129 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 7%);
}

body.app-ventas .history-role-panel.is-seller {
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 16%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 72%));
}

body.app-ventas .history-role-panel.is-supervisor {
  background:
    radial-gradient(circle at 92% 8%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(240 249 255 / 72%));
}

body.app-ventas .history-role-panel h3 {
  margin: 0 0 6px;
  color: #10251f;
  font-size: clamp(1.14rem, 2vw, 1.56rem);
}

body.app-ventas .history-role-panel > div > span,
body.app-ventas .history-role-cards span,
body.app-ventas .history-role-cards small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.35;
}

body.app-ventas .history-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

body.app-ventas .history-role-cards article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

body.app-ventas .history-role-cards strong {
  display: block;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

body.app-ventas .history-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-ventas .history-quick-filters button {
  min-height: 42px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 999px;
  padding: 0 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 72%));
  color: #0f3d35;
  font-weight: 950;
  box-shadow: 0 10px 22px rgb(8 30 26 / 5%);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

body.app-ventas .history-quick-filters button:hover,
body.app-ventas .history-quick-filters button:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(16 185 129 / 42%);
  box-shadow: 0 16px 32px rgb(8 30 26 / 10%);
}

body.app-ventas .sales-history-list {
  display: grid;
  gap: 10px;
}

body.app-ventas .sales-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 0.9fr) minmax(128px, 0.55fr) minmax(250px, auto);
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(248 253 250 / 88%));
  box-shadow: 0 16px 36px rgb(8 30 26 / 7%);
}

body.app-ventas .sales-history-row.is-voided {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(254 242 242 / 78%));
}

body.app-ventas .sales-history-main,
body.app-ventas .sales-history-money,
body.app-ventas .sales-history-state {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.app-ventas .sales-history-code {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(16 185 129 / 10%);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

body.app-ventas .sales-history-main strong,
body.app-ventas .sales-history-money strong {
  overflow: hidden;
  color: #10251f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .sales-history-main span,
body.app-ventas .sales-history-money span,
body.app-ventas .sales-history-money small,
body.app-ventas .sales-history-state small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

body.app-ventas .sales-history-state > span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(16 185 129 / 10%);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.app-ventas .sales-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.app-ventas .purchase-kpi-grid,
body.app-ventas .purchase-workflow-strip,
body.app-ventas .inventory-reorder-grid {
  display: grid;
  gap: 12px;
}

body.app-ventas .purchase-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

body.app-ventas .purchase-kpi-grid article,
body.app-ventas .purchase-workflow-strip article,
body.app-ventas .inventory-reorder-card {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 10%), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 72%));
  box-shadow: 0 16px 38px rgb(8 30 26 / 8%);
}

body.app-ventas .purchase-kpi-grid article {
  padding: 14px;
}

body.app-ventas .purchase-kpi-grid span,
body.app-ventas .purchase-kpi-grid small,
body.app-ventas .purchase-workflow-strip small,
body.app-ventas .inventory-reorder-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

body.app-ventas .purchase-kpi-grid strong {
  display: block;
  margin: 5px 0 2px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1.08rem, 2.4vw, 1.48rem);
}

body.app-ventas .purchase-role-panel,
body.app-ventas .purchase-review-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 13%);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgb(16 185 129 / 13%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(236 253 245 / 74%));
  box-shadow: 0 18px 40px rgb(8 30 26 / 7%);
}

body.app-ventas .purchase-role-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

body.app-ventas .purchase-role-panel.is-warehouse {
  background:
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(240 249 255 / 72%));
}

body.app-ventas .purchase-role-panel.is-supervisor,
body.app-ventas .purchase-review-panel {
  background:
    radial-gradient(circle at 92% 10%, rgb(245 158 11 / 14%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 72%));
}

body.app-ventas .purchase-role-panel h3,
body.app-ventas .purchase-review-panel h3 {
  margin: 0 0 6px;
  color: #10251f;
  font-size: clamp(1.15rem, 2vw, 1.56rem);
}

body.app-ventas .purchase-role-panel > div > span,
body.app-ventas .purchase-role-cards span,
body.app-ventas .purchase-role-cards small,
body.app-ventas .purchase-review-grid span,
body.app-ventas .purchase-review-grid small,
body.app-ventas .purchase-review-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 1.35;
}

body.app-ventas .purchase-role-cards,
body.app-ventas .purchase-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

body.app-ventas .purchase-role-cards article,
body.app-ventas .purchase-review-grid article,
body.app-ventas .purchase-review-list article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 15px;
  padding: 12px;
  background: rgb(255 255 255 / 74%);
}

body.app-ventas .purchase-role-cards strong,
body.app-ventas .purchase-review-grid strong,
body.app-ventas .purchase-review-list strong {
  display: block;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #10251f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

body.app-ventas .purchase-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}

body.app-ventas .purchase-workflow-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

body.app-ventas .purchase-workflow-strip article {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 13px;
  opacity: 0.72;
}

body.app-ventas .purchase-workflow-strip article.is-active {
  opacity: 1;
  border-color: rgb(16 185 129 / 24%);
}

body.app-ventas .purchase-workflow-strip article > span {
  width: 34px;
  height: 34px;
  display: grid;
  grid-row: span 2;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: white;
  font-weight: 950;
}

body.app-ventas .purchase-workflow-strip strong {
  color: #10251f;
}

body.app-ventas .purchase-entry-grid {
  align-items: start;
}

body.app-ventas .purchase-card-panel,
body.app-ventas .purchase-detail-panel,
body.app-ventas .purchase-history-panel,
body.app-ventas .inventory-reorder-panel,
body.app-ventas .inventory-operational-panel {
  border-color: rgb(15 118 110 / 12%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(248 253 250 / 84%));
  box-shadow: 0 18px 44px rgb(8 30 26 / 7%);
}

body.app-ventas .purchase-line-row,
body.app-ventas .purchase-history-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 70%));
}

body.app-ventas .purchase-line-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.45fr) auto;
}

body.app-ventas .purchase-history-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.44fr) auto auto;
}

body.app-ventas .purchase-line-row strong,
body.app-ventas .purchase-history-row strong {
  color: #10251f;
}

body.app-ventas .purchase-line-row span,
body.app-ventas .purchase-line-row small,
body.app-ventas .purchase-history-row span,
body.app-ventas .purchase-history-row small,
body.app-ventas .purchase-line-total span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

body.app-ventas .purchase-line-total strong {
  display: block;
  margin-top: 3px;
  font-size: 1.06rem;
}

body.app-ventas .purchase-line-actions,
body.app-ventas .purchase-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.app-ventas .purchase-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.24fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 0 0 12px;
}

body.app-ventas .purchase-filter-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .purchase-filter-actions button,
body.app-ventas .purchase-filter-bar label {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 15px;
  padding: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgb(16 185 129 / 10%), transparent 32%),
    rgb(255 255 255 / 86%);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 10px 24px rgb(8 30 26 / 5%);
}

body.app-ventas .purchase-filter-actions button {
  display: grid;
  gap: 3px;
  min-height: 74px;
}

body.app-ventas .purchase-filter-actions button.is-active {
  border-color: rgb(15 118 110 / 32%);
  background:
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(145deg, #0f766e, #10b981);
  color: white;
  box-shadow: 0 16px 36px rgb(15 118 110 / 18%);
}

body.app-ventas .purchase-filter-actions span,
body.app-ventas .purchase-filter-actions small,
body.app-ventas .purchase-filter-bar label {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

body.app-ventas .purchase-filter-actions strong {
  color: var(--accent-dark);
  font-size: 1.18rem;
  line-height: 1;
}

body.app-ventas .purchase-filter-actions button.is-active strong {
  color: white;
}

body.app-ventas .purchase-filter-bar select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 10px;
  padding: 8px;
  background: white;
}

body.app-ventas .purchase-filter-bar > .ghost-button {
  min-width: 120px;
  min-height: 74px;
}

body.app-ventas .supplier-row a.ghost-button {
  text-decoration: none;
}

body.app-ventas .inventory-reorder-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.app-ventas .reorder-purchase-plan {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 255 252 / 92%));
}

body.app-ventas .reorder-purchase-plan.is-danger {
  border-color: rgb(220 38 38 / 26%);
  background: linear-gradient(135deg, #fff, #fef2f2);
}

body.app-ventas .reorder-purchase-plan.is-warning {
  border-color: rgb(245 158 11 / 30%);
  background: linear-gradient(135deg, #fff, #fffbeb);
}

body.app-ventas .reorder-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .reorder-plan-head h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.12rem;
}

body.app-ventas .reorder-plan-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
}

body.app-ventas .reorder-plan-head > strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--accent-dark);
  color: white;
  font-size: 0.92rem;
  white-space: nowrap;
}

body.app-ventas .reorder-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .reorder-plan-grid article,
body.app-ventas .reorder-plan-preview article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .reorder-plan-grid span,
body.app-ventas .reorder-plan-grid small,
body.app-ventas .reorder-plan-preview span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.3;
}

body.app-ventas .reorder-plan-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--accent-dark);
  font-size: 1rem;
}

body.app-ventas .reorder-plan-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .reorder-plan-preview article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-ventas .reorder-plan-preview article.is-alta {
  border-color: rgb(220 38 38 / 24%);
}

body.app-ventas .reorder-plan-preview article.is-media {
  border-color: rgb(245 158 11 / 26%);
}

body.app-ventas .reorder-plan-preview strong,
body.app-ventas .reorder-plan-preview b {
  color: var(--accent-dark);
  line-height: 1.15;
}

body.app-ventas .reorder-purchase-plan > button {
  justify-self: start;
  min-height: 38px;
}

body.app-ventas .inventory-reorder-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

body.app-ventas .inventory-reorder-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: rgb(16 185 129 / 10%);
  transform: rotate(12deg);
}

body.app-ventas .inventory-reorder-card.is-alta {
  border-color: rgb(239 68 68 / 20%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(254 242 242 / 72%));
}

body.app-ventas .inventory-reorder-card.is-media {
  border-color: rgb(245 158 11 / 22%);
  background: linear-gradient(145deg, rgb(255 255 255 / 95%), rgb(255 251 235 / 74%));
}

body.app-ventas .inventory-reorder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-ventas .inventory-reorder-head span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgb(255 255 255 / 76%);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

body.app-ventas .inventory-reorder-card h4 {
  position: relative;
  z-index: 1;
  margin: 10px 0;
  color: #10251f;
  font-size: 1rem;
}

body.app-ventas .stock-meter {
  position: relative;
  z-index: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(15 118 110 / 9%);
}

body.app-ventas .stock-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b 45%, #10b981);
}

body.app-ventas .inventory-reorder-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

body.app-ventas .inventory-reorder-meta strong {
  color: #10251f;
}

body.app-ventas .inventory-risk-board {
  border-color: rgb(15 118 110 / 12%);
  background:
    radial-gradient(circle at 96% 0%, rgb(245 158 11 / 10%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(248 253 250 / 86%));
}

body.app-ventas .inventory-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.app-ventas .inventory-risk-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .inventory-risk-column > div:first-child strong {
  display: block;
  color: #10251f;
  font-size: 1rem;
}

body.app-ventas .inventory-risk-column > div:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

body.app-ventas .inventory-risk-column.is-danger {
  border-color: rgb(239 68 68 / 18%);
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(254 242 242 / 72%));
}

body.app-ventas .inventory-risk-column.is-warning {
  border-color: rgb(245 158 11 / 20%);
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(255 251 235 / 74%));
}

body.app-ventas .inventory-risk-item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgb(15 118 110 / 9%);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 10px 24px rgb(8 30 26 / 5%);
}

body.app-ventas .inventory-risk-item strong,
body.app-ventas .inventory-risk-item span,
body.app-ventas .inventory-risk-item small {
  display: block;
}

body.app-ventas .inventory-risk-item strong {
  color: #10251f;
}

body.app-ventas .inventory-risk-item span,
body.app-ventas .inventory-risk-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

body.app-ventas .inventory-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 12px 0;
}

body.app-ventas .inventory-filter-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .inventory-filter-actions button {
  display: grid;
  gap: 3px;
  min-height: 74px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 15px;
  padding: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgb(16 185 129 / 10%), transparent 32%),
    rgb(255 255 255 / 86%);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 10px 24px rgb(8 30 26 / 5%);
}

body.app-ventas .inventory-filter-actions button.is-active {
  border-color: rgb(15 118 110 / 32%);
  background:
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 16%), transparent 34%),
    linear-gradient(145deg, #0f766e, #10b981);
  color: white;
  box-shadow: 0 16px 36px rgb(15 118 110 / 18%);
}

body.app-ventas .inventory-filter-actions span,
body.app-ventas .inventory-filter-actions small {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

body.app-ventas .inventory-filter-actions strong {
  color: var(--accent-dark);
  font-size: 1.18rem;
  line-height: 1;
}

body.app-ventas .inventory-filter-actions button.is-active strong {
  color: white;
}

body.app-ventas .inventory-filter-bar > .ghost-button {
  min-width: 132px;
  min-height: 74px;
}

@media (max-width: 1180px) {
  body.app-ventas .inventory-filter-actions,
  .customer-filter-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.app-ventas .history-guide-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cash-closure-filter-grid,
  body.app-ventas .cash-closure-report-grid,
  body.app-ventas .cash-closure-group-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cash-closure-group-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .history-exception-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .history-exception-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .history-exception-head > strong {
    width: max-content;
  }

  body.app-ventas .reorder-plan-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .reorder-plan-preview {
    grid-template-columns: 1fr;
  }

  body.app-ventas .reorder-plan-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .reorder-plan-head > strong,
  body.app-ventas .reorder-purchase-plan > button {
    width: max-content;
  }
}

body.app-ventas .voided-sale-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgb(185 28 28 / 16%);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgb(254 242 242 / 92%), rgb(255 255 255 / 88%));
}

body.app-ventas .voided-sale-banner strong {
  color: #991b1b;
}

body.app-ventas .voided-sale-banner span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

body.app-ventas .cloud-safe-note {
  border-radius: 16px;
}

@media (max-width: 760px) {
  body.app-ventas dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  body.app-ventas .modal-body,
  body.app-ventas .payment-modal-body {
    max-height: calc(100dvh - 12px);
    overflow: auto;
    padding: 14px;
  }

  body.app-ventas .modal-header {
    margin: -14px -14px 14px;
    padding: 14px;
  }

  body.app-ventas .modal-header {
    align-items: flex-start;
  }

  body.app-ventas .modal-body .form-grid,
  body.app-ventas .touch-payment-fields,
  body.app-ventas .touch-payment-actions,
  body.app-ventas .payment-flow-summary,
  body.app-ventas .history-control-strip,
  body.app-ventas .history-kpi-grid,
  body.app-ventas .sale-readiness-grid,
  body.app-ventas .sales-history-row,
  body.app-ventas .sale-detail-card,
  body.app-ventas .sale-detail-audit-strip,
  body.app-ventas .sale-detail-payment-card,
  body.app-ventas .sale-detail-summary,
  body.app-ventas .receivable-payment-card {
    grid-template-columns: 1fr;
  }

  body.app-ventas .shift-command-main,
  body.app-ventas .shift-command-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .store-launch-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .report-decision-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .daily-operation-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .store-launch-grid article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-ventas .store-launch-grid button {
    grid-column: 1 / -1;
  }

  body.app-ventas .shift-command-main > strong {
    text-align: left;
  }

  body.app-ventas .touch-payment-total {
    min-height: 118px;
    border-radius: 18px;
  }

  body.app-ventas .touch-payment-methods,
  body.app-ventas .quick-cash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .touch-payment-methods button,
  body.app-ventas .quick-cash-grid button,
  body.app-ventas .payment-keypad button {
    min-height: 66px;
  }

  body.app-ventas .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.app-ventas .modal-actions > * {
    width: 100%;
  }

  body.app-ventas .sales-history-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.app-ventas .purchase-kpi-grid,
  body.app-ventas .purchase-role-panel,
  body.app-ventas .purchase-role-cards,
  body.app-ventas .purchase-review-grid,
  body.app-ventas .purchase-review-list,
  body.app-ventas .purchase-workflow-strip,
  body.app-ventas .purchase-filter-bar,
  body.app-ventas .purchase-filter-actions,
  body.app-ventas .purchase-line-row,
  body.app-ventas .purchase-history-row {
    grid-template-columns: 1fr;
  }

  body.app-ventas .purchase-line-actions,
  body.app-ventas .purchase-history-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.app-ventas .touch-payment-actions {
    position: sticky;
    bottom: -14px;
    z-index: 4;
    margin: 0 -4px -4px;
    padding: 10px 4px 4px;
    background:
      linear-gradient(180deg, rgb(248 253 250 / 0%), rgb(248 253 250 / 94%) 22%, rgb(248 253 250));
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 430px) {
  body.app-ventas .touch-payment-methods,
  body.app-ventas .quick-cash-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .payment-helper-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .touch-payment-total strong {
    font-size: 2.2rem;
  }
}

/* Desktop POS correction: clean product cards and stable cashier panel. */
body.app-ventas .pos-products {
  min-width: 0;
}

body.app-ventas .icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.app-ventas .ui-ico {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgb(15 118 110 / 10%);
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

body.app-ventas .touch-pos-shell {
  position: relative;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.78fr);
  width: 100%;
  min-width: 0;
  overflow: clip;
}

body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel {
  position: relative;
  border-color: rgb(15 118 110 / 12%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(248 253 250 / 82%));
  box-shadow:
    0 22px 56px rgb(8 30 26 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
}

body.app-ventas .touch-panel {
  overflow: hidden;
}

body.app-ventas .touch-panel::before,
body.app-ventas .touch-cart-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #0f766e, #f59e0b);
  opacity: 0.75;
}

body.app-ventas .touch-pos-head,
body.app-ventas .touch-cart-head {
  align-items: center;
  border-bottom: 1px solid rgb(15 118 110 / 10%);
  padding-bottom: 12px;
}

body.app-ventas .touch-cart-head > strong {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10251f, #0f766e 70%, #f59e0b);
  color: white;
  box-shadow: 0 14px 30px rgb(15 118 110 / 18%);
}

body.app-ventas .touch-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body.app-ventas .touch-shortcuts span {
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
}

body.app-ventas .pos-quick-status article {
  position: relative;
  overflow: hidden;
  border-color: rgb(15 118 110 / 12%);
  background:
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 11%), transparent 36%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(236 253 245 / 74%));
}

body.app-ventas .pos-quick-status article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 62px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: rgb(16 185 129 / 10%);
  transform: rotate(12deg);
}

body.app-ventas .pos-shift-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 20px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgb(245 158 11 / 12%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 72%));
  box-shadow: 0 16px 38px rgb(8 30 26 / 7%);
}

body.app-ventas .pos-shift-panel.is-closed {
  border-color: rgb(245 158 11 / 24%);
  background:
    radial-gradient(circle at 92% 0%, rgb(245 158 11 / 18%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(255 251 235 / 78%));
}

body.app-ventas .pos-shift-grid {
  margin-bottom: 0;
}

body.app-ventas .pos-turn-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 8px;
  margin: -2px 0 12px;
}

body.app-ventas .pos-turn-strip article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgb(255 255 255 / 78%);
}

body.app-ventas .pos-turn-strip article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #64748b;
}

body.app-ventas .pos-turn-strip article.is-ok::before {
  background: #10b981;
}

body.app-ventas .pos-turn-strip article.is-warning::before {
  background: #f59e0b;
}

body.app-ventas .pos-turn-strip article.is-danger::before {
  background: #ef4444;
}

body.app-ventas .pos-turn-strip span,
body.app-ventas .pos-turn-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .pos-turn-strip strong {
  display: block;
  min-width: 0;
  margin: 3px 0;
  overflow: hidden;
  color: #10251f;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .pos-shift-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 76%);
}

body.app-ventas .pos-shift-grid span,
body.app-ventas .pos-shift-grid small,
body.app-ventas .pos-shift-last span,
body.app-ventas .pos-shift-last small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

body.app-ventas .pos-shift-grid strong,
body.app-ventas .pos-shift-last strong {
  display: block;
  min-width: 0;
  margin: 4px 0;
  overflow: hidden;
  color: #10251f;
  font-size: 0.98rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .pos-shift-last {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px dashed rgb(15 118 110 / 16%);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgb(255 255 255 / 66%);
}

body.app-ventas .pos-search-row {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 8px;
  align-items: end;
  margin: 0 -6px;
  padding: 6px;
  border: 1px solid rgb(15 118 110 / 9%);
  border-radius: 18px;
  background: rgb(248 253 250 / 88%);
  backdrop-filter: blur(14px);
}

body.app-ventas .touch-search input {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-weight: 900;
}

body.app-ventas .pos-search-row .touch-action {
  min-height: 56px;
  border-radius: 14px;
  white-space: nowrap;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint {
  border-radius: 14px;
}

body.app-ventas .pos-category-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

body.app-ventas .pos-category-rail button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 999px;
  padding: 0 17px;
  background: rgb(255 255 255 / 82%);
  color: var(--muted);
  font-weight: 950;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

body.app-ventas .pos-category-rail button:hover,
body.app-ventas .pos-category-rail button.is-active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: white;
  box-shadow: 0 12px 26px rgb(15 118 110 / 16%);
}

body.app-ventas .pos-section-block {
  border-color: rgb(15 118 110 / 10%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 70%), rgb(236 253 245 / 46%));
}

body.app-ventas .pos-section-title {
  align-items: start;
  border-bottom-color: rgb(15 118 110 / 12%);
}

body.app-ventas .pos-section-title strong {
  color: #10251f;
}

body.app-ventas .pos-result-hint,
body.app-ventas .pos-more-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

body.app-ventas .pos-result-hint strong {
  color: #0f766e;
  font-weight: 950;
}

body.app-ventas .pos-more-results {
  justify-content: center;
  margin: 10px 0 0;
  color: #0f766e;
}

body.app-ventas .quick-action-row .ghost-button {
  min-height: 48px;
  border-radius: 14px;
  background: rgb(255 255 255 / 80%);
}

body.app-ventas .touch-charge-button {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border-radius: 20px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  box-shadow:
    0 22px 54px rgb(15 118 110 / 26%),
    inset 0 1px 0 rgb(255 255 255 / 24%);
}

body.app-ventas .touch-charge-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgb(255 255 255 / 18%) 42%, transparent 52% 100%);
  transform: translateX(-110%);
  transition: transform 420ms ease;
}

body.app-ventas .touch-charge-button:hover::after {
  transform: translateX(110%);
}

body.app-ventas .pos-ambient-strip {
  position: absolute;
  inset: 12px;
  z-index: -1;
  overflow: hidden;
  border-radius: 28px;
  pointer-events: none;
}

body.app-ventas .pos-ambient-strip span {
  position: absolute;
  width: 160px;
  height: 42px;
  border: 1px solid rgb(15 118 110 / 11%);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 48%, rgb(15 118 110 / 8%) 49% 51%, transparent 52%),
    repeating-linear-gradient(90deg, rgb(15 118 110 / 10%) 0 2px, transparent 2px 10px);
  opacity: 0.5;
  transform: rotate(-14deg);
}

body.app-ventas .pos-ambient-strip span:nth-child(1) { left: 4%; top: 3%; }
body.app-ventas .pos-ambient-strip span:nth-child(2) { right: 34%; top: 9%; width: 110px; opacity: 0.28; }
body.app-ventas .pos-ambient-strip span:nth-child(3) { left: 28%; bottom: 8%; width: 130px; opacity: 0.32; }
body.app-ventas .pos-ambient-strip span:nth-child(4) { right: 4%; bottom: 14%; opacity: 0.38; }

body.app-ventas .touch-cart-panel {
  position: sticky;
  top: 12px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

body.app-ventas .touch-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(188px, 100%), 1fr));
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

body.app-ventas .pos-products-block .touch-product-grid {
  max-height: clamp(300px, 52dvh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 6px 2px;
}

body.app-ventas .touch-product-card {
  position: relative;
  min-width: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto auto;
  align-content: stretch;
  align-items: start;
  gap: 9px;
  min-height: 184px;
  padding: 14px 14px 12px;
  border-color: rgb(15 118 110 / 14%);
  background:
    radial-gradient(circle at 92% 12%, rgb(16 185 129 / 12%), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(240 253 250 / 82%));
  box-shadow:
    0 14px 34px rgb(8 30 26 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 86%);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, filter 150ms ease;
  isolation: isolate;
}

body.app-ventas .touch-product-card:hover,
body.app-ventas .touch-product-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgb(16 185 129 / 40%);
  box-shadow:
    0 20px 48px rgb(8 30 26 / 12%),
    0 0 0 5px rgb(16 185 129 / 8%);
}

body.app-ventas .touch-product-card:active {
  transform: translateY(0) scale(0.985);
}

body.app-ventas .touch-product-card:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.68;
}

body.app-ventas .touch-product-card > * {
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.app-ventas .product-badge-row {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-height: 24px;
  max-width: 100%;
}

body.app-ventas .product-badge {
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 999px;
  padding: 4px 7px;
  background: rgb(255 255 255 / 82%);
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgb(8 30 26 / 8%);
}

body.app-ventas .product-badge.is-favorite {
  background: rgb(245 158 11 / 14%);
  color: #92400e;
}

body.app-ventas .product-badge.is-warning {
  background: rgb(245 158 11 / 14%);
  color: #92400e;
}

body.app-ventas .product-badge.is-danger {
  background: rgb(239 68 68 / 12%);
  color: #991b1b;
}

body.app-ventas .product-visual {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 0;
  width: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  opacity: 0.7;
  transform: rotate(8deg);
}

body.app-ventas .product-visual i {
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgb(16 185 129 / 28%), rgb(245 158 11 / 18%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 54%);
}

body.app-ventas .product-visual i:nth-child(1) {
  grid-row: span 2;
}

body.app-ventas .product-visual i:nth-child(3) {
  background: linear-gradient(135deg, rgb(245 158 11 / 24%), rgb(16 185 129 / 18%));
}

body.app-ventas .combo-visual i {
  background: linear-gradient(135deg, rgb(34 197 94 / 32%), rgb(14 165 233 / 16%));
}

body.app-ventas .touch-product-card .product-code {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 76%);
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
}

body.app-ventas .touch-product-card strong {
  display: -webkit-box;
  width: 100%;
  min-height: 2.75em;
  margin: 0;
  overflow: hidden;
  color: #10251f;
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

body.app-ventas .touch-product-card .product-meta {
  align-self: end;
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  line-height: 1.25;
}

body.app-ventas .touch-product-card .product-meta span,
body.app-ventas .touch-product-card .product-meta small {
  margin: 0;
}

body.app-ventas .stock-chip {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(16 185 129 / 10%);
  color: #0f766e;
  font-weight: 950;
}

body.app-ventas .stock-chip.is-warning {
  background: rgb(245 158 11 / 13%);
  color: #92400e;
}

body.app-ventas .stock-chip.is-danger {
  background: rgb(239 68 68 / 12%);
  color: #991b1b;
}

body.app-ventas .touch-product-card b {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #064e3b;
  color: #ffffff;
  font-size: 1.08rem;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgb(8 30 26 / 16%);
}

body.app-ventas .product-add-hint {
  justify-self: end;
  margin-top: -44px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

body.app-ventas .touch-product-card:hover .product-add-hint,
body.app-ventas .touch-product-card:focus-visible .product-add-hint {
  opacity: 1;
  transform: translateY(0);
}

body.app-ventas .touch-cart-panel .pos-cart-list {
  max-height: clamp(150px, 24dvh, 300px);
}

body.app-ventas .pos-actions-block .touch-sale-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-ventas .pos-actions-block .danger-action {
  grid-column: 1 / -1;
}

@media (min-width: 1440px) {
  body.app-ventas .touch-pos-shell {
    grid-template-columns: minmax(0, 1.55fr) minmax(370px, 0.72fr);
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  }
}

@media (max-width: 1180px) {
  body.app-ventas .pos-search-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(96px, auto));
  }

  body.app-ventas .touch-cart-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.app-ventas .pos-products-block .touch-product-grid {
    max-height: none;
    overflow: visible;
  }
}

/* POS overflow guard: avoid clipped products and horizontal scroll on desktop. */
body.app-ventas,
body.app-ventas .ventas-touch-shell,
body.app-ventas .ventas-workspace,
body.app-ventas .ventas-workspace .content-grid,
body.app-ventas .ventas-workspace .document-list,
body.app-ventas #mainList,
body.app-ventas .touch-panel,
body.app-ventas .pos-section-block {
  min-width: 0;
  max-width: 100%;
}

body.app-ventas .ventas-touch-shell {
  overflow-x: clip;
}

body.app-ventas .ventas-workspace .content-grid,
body.app-ventas .ventas-workspace .document-list,
body.app-ventas #mainList {
  overflow-x: hidden;
}

body.app-ventas .touch-pos-shell {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.74fr);
  overflow: hidden;
}

body.app-ventas .touch-cart-panel {
  min-width: 0;
  overflow-x: hidden;
}

body.app-ventas .touch-cart-panel form {
  min-width: 0;
}

body.app-ventas .pos-products-block .touch-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body.app-ventas .touch-product-card {
  width: 100%;
  max-width: 100%;
}

body.app-ventas .touch-product-card strong,
body.app-ventas .touch-product-card .product-meta,
body.app-ventas .touch-product-card .product-code,
body.app-ventas .touch-product-card b {
  max-width: 100%;
}

body.app-ventas .pos-sale-options {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

body.app-ventas .pos-sale-options input,
body.app-ventas .pos-customer-row select {
  min-width: 0;
  width: 100%;
}

@media (min-width: 1280px) and (max-width: 1439px) {
  body.app-ventas .ventas-workspace {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  body.app-ventas .ventas-tabs button {
    padding: 0 12px;
  }

  body.app-ventas .touch-pos-shell {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
    gap: 14px;
  }

  body.app-ventas .pos-products-block .touch-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  }

  body.app-ventas .touch-cart-panel {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  body.app-ventas .pos-ambient-strip {
    display: none;
  }

  body.app-ventas .pos-mobile-switch {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgb(15 118 110 / 14%);
    border-radius: 18px;
    background: rgb(248 253 250 / 92%);
    box-shadow: 0 16px 34px rgb(8 30 26 / 10%);
    backdrop-filter: blur(14px);
  }

  body.app-ventas .pos-mobile-switch button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-weight: 950;
  }

  body.app-ventas .pos-mobile-switch button.is-active {
    background: linear-gradient(135deg, #10b981, #0f766e);
    color: white;
    box-shadow: 0 10px 24px rgb(15 118 110 / 18%);
  }

  body.app-ventas .touch-shortcuts {
    justify-content: flex-start;
  }

  body.app-ventas .pos-search-row {
    top: 68px;
    grid-template-columns: 1fr;
  }

  body.app-ventas .pos-turn-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  body.app-ventas .pos-turn-strip article {
    flex: 0 0 152px;
  }

  body.app-ventas .touch-pos-shell {
    overflow: visible;
  }

  body.app-ventas .touch-product-card {
    min-height: 176px;
  }

  body.app-ventas .product-add-hint {
    display: none;
  }

  body.app-ventas .pos-products-block .touch-product-grid {
    overflow: visible;
    scrollbar-gutter: auto;
  }

  body.app-ventas .pos-sale-options {
    grid-template-columns: 1fr;
  }
}

/* Cashier focus mode: maximizes the sales workspace for touch and desktop counters. */
body.app-ventas .topbar-actions #posFocusToggle.is-active {
  border-color: rgb(245 158 11 / 38%);
  background:
    linear-gradient(135deg, rgb(245 158 11 / 24%), rgb(16 185 129 / 18%));
  color: white;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] {
  width: min(1720px, 100%) !important;
  padding: 10px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar {
  min-height: auto;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 16px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar h1 {
  font-size: clamp(1.02rem, 1.4vw, 1.32rem);
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar .eyebrow,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .copyright-line {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-workspace {
  display: block;
  grid-template-columns: 1fr;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-tabs,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-menu-toggle {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .content-grid,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .document-list {
  grid-column: 1;
  width: 100%;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-shell {
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.62fr);
  gap: 12px;
  height: calc(100dvh - 74px);
  min-height: 0;
  overflow: hidden;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-panel,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel {
  border-radius: 18px;
  min-height: 0;
  overflow: hidden;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-products-block .touch-product-grid {
  max-height: calc(100dvh - 262px);
  overflow: auto;
  padding-right: 4px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-product-card {
  min-height: 108px;
  padding: 10px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel {
  max-height: none;
  display: flex;
  flex-direction: column;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-head,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-head h3,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-head h3 {
  font-size: 1.18rem;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-search-row {
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-search-row input,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-search-row button {
  min-height: 42px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .scanner-status {
  min-height: 30px;
  padding: 6px 10px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-section-block {
  padding: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-section-title {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .product-visual,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .product-badge-row,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .product-meta {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-product-card strong {
  font-size: 0.92rem;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel form {
  flex: 1;
  min-height: 0;
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-customer-row,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-sale-options {
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel .pos-cart-list {
  flex: 1;
  min-height: 90px;
  max-height: none;
  overflow: auto;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-total-block,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-actions-block {
  margin-top: 0;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .sale-total-card {
  padding: 8px;
  gap: 6px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .sale-total-card > div:not(.is-total) {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-sale-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-sale-actions button {
  min-height: 38px;
  padding: 7px 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-charge-button {
  min-height: 48px;
  font-size: 1rem;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .compact-charge-button {
  width: 100%;
  margin: 0 0 8px;
  min-height: 54px;
  font-size: 1.08rem;
}

/* Authoritative cashier POS layout: two panes, visible cart, visible checkout. */
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px);
  align-items: stretch;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  min-height: 0;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto) minmax(132px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #0f3d34, #0f766e);
  color: #ffffff;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar span,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar small {
  display: block;
  color: rgb(255 255 255 / 76%);
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.05;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-view-cart-button {
  min-height: 48px;
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-view-cart-button:hover {
  background: rgb(255 255 255 / 20%);
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar .compact-charge-button {
  margin: 0;
  min-height: 48px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #05251d;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane > .touch-cart-head {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(clamp(180px, 30dvh, 360px), 1fr) auto auto;
  gap: 8px;
  overflow: hidden;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-customer-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-items {
  min-height: clamp(180px, 30dvh, 360px);
  max-height: none;
  overflow: auto;
  padding-right: 3px;
  border-radius: 8px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-secondary-tools {
  padding: 6px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-secondary-tools .pos-section-title {
  display: none;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-secondary-tools .touch-sale-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-secondary-tools #suspendSaleBtn,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-secondary-tools #recoverSaleBtn {
  display: none;
}

body.app-ventas .cart-review-modal {
  width: min(860px, calc(100vw - 24px));
}

body.app-ventas .cart-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.app-ventas .cart-review-summary > div {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: #f8fffc;
}

body.app-ventas .cart-review-summary span,
body.app-ventas .cart-review-money span {
  display: block;
  color: #5d706a;
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .cart-review-summary strong,
body.app-ventas .cart-review-money strong {
  display: block;
  color: #10251f;
  font-size: 1.08rem;
}

body.app-ventas .cart-review-summary .is-total {
  background: #0f766e;
}

body.app-ventas .cart-review-summary .is-total span,
body.app-ventas .cart-review-summary .is-total strong {
  color: #ffffff;
}

body.app-ventas .cart-checkout-blocker {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid rgb(180 83 9 / 28%);
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgb(255 247 237 / 96%), rgb(255 251 235 / 88%));
  color: #4a2b08;
  box-shadow: 0 14px 28px rgb(180 83 9 / 10%);
}

body.app-ventas .cart-checkout-blocker strong {
  display: block;
  color: #7c2d12;
  font-size: 0.98rem;
}

body.app-ventas .cart-checkout-blocker span {
  display: block;
  color: #7a4b14;
  font-size: 0.84rem;
  font-weight: 800;
}

body.app-ventas .cart-checkout-blocker ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-ventas .cart-checkout-blocker li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(180 83 9 / 16%);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .cart-checkout-blocker li b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .cart-checkout-blocker .ghost-button {
  justify-self: end;
  border-color: rgb(180 83 9 / 32%);
  color: #7c2d12;
  background: #fff7ed;
}

body.app-ventas .return-sale-modal {
  width: min(860px, calc(100vw - 24px));
}

body.app-ventas .return-sale-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

body.app-ventas .return-sale-summary article,
body.app-ventas .return-sale-item,
body.app-ventas .return-sale-estimate,
body.app-ventas .write-off-hint {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 14px;
  padding: 11px;
  background: rgb(248 255 252 / 86%);
}

body.app-ventas .return-sale-summary span,
body.app-ventas .return-sale-summary small,
body.app-ventas .return-sale-item small,
body.app-ventas .write-off-hint span {
  display: block;
  color: #5d706a;
  font-size: 0.78rem;
  font-weight: 800;
}

body.app-ventas .return-sale-summary strong,
body.app-ventas .return-sale-item strong,
body.app-ventas .return-sale-estimate,
body.app-ventas .write-off-hint strong {
  display: block;
  color: #10251f;
  font-weight: 950;
}

body.app-ventas .return-sale-items {
  display: grid;
  gap: 8px;
  max-height: min(36dvh, 320px);
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

body.app-ventas .return-sale-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

body.app-ventas .return-sale-item input {
  min-height: 42px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 12px;
  padding: 0 10px;
  font-weight: 900;
}

body.app-ventas .return-sale-estimate {
  margin-top: 12px;
  color: #075e54;
  background: linear-gradient(135deg, rgb(220 252 231 / 90%), rgb(240 253 250 / 86%));
}

body.app-ventas .write-off-hint {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgb(255 247 237 / 92%), rgb(255 251 235 / 86%));
  border-color: rgb(180 83 9 / 22%);
}

body.app-ventas .ui-ico svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-ventas .module-tab-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #075e54;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(8 63 54 / 10%);
}

body.app-ventas .module-tab-icon .ui-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

body.app-ventas .module-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-ventas .ventas-tabs.module-tabs button {
  gap: 10px;
}

body.app-ventas .context-help-dock {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 20px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(240 253 250 / 82%));
  box-shadow: 0 18px 40px rgb(8 63 54 / 8%);
}

body.app-ventas .context-help-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.app-ventas .context-help-main > .ui-ico {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #075e54, #14b8a6);
}

body.app-ventas .context-help-main strong {
  display: block;
  color: #10251f;
  font-size: 1rem;
  font-weight: 950;
}

body.app-ventas .context-help-main span,
body.app-ventas .context-help-more p {
  display: block;
  color: #5d706a;
  font-size: 0.83rem;
  font-weight: 800;
}

body.app-ventas .context-help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body.app-ventas .context-help-actions span {
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 999px;
  padding: 7px 10px;
  color: #075e54;
  background: #ecfdf5;
  font-size: 0.75rem;
  font-weight: 950;
}

body.app-ventas .context-help-more {
  position: relative;
}

body.app-ventas .context-help-more summary,
body.app-ventas .history-help-drawer summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  color: #075e54;
  background: #ffffff;
  border: 1px solid rgb(15 118 110 / 14%);
  font-size: 0.78rem;
  font-weight: 950;
  list-style: none;
}

body.app-ventas .context-help-more summary::-webkit-details-marker,
body.app-ventas .history-help-drawer summary::-webkit-details-marker {
  display: none;
}

body.app-ventas .context-help-more p {
  position: absolute;
  right: 0;
  z-index: 5;
  width: min(320px, 78vw);
  margin: 8px 0 0;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgb(8 63 54 / 14%);
}

body.app-ventas .history-help-drawer {
  margin-top: 12px;
}

body.app-ventas .history-help-drawer[open] {
  border-top: 1px solid rgb(15 118 110 / 10%);
  padding-top: 12px;
}

body.app-ventas .compact-guide-grid article:nth-child(n + 5) {
  display: none;
}

body.app-ventas .cart-review-list {
  display: grid;
  gap: 8px;
  max-height: min(48dvh, 430px);
  overflow: auto;
  padding-right: 4px;
}

body.app-ventas .cart-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px 116px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

body.app-ventas .cart-review-row > div:first-child {
  min-width: 0;
}

body.app-ventas .cart-review-row > div:first-child strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #10251f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .cart-review-row > div:first-child span {
  display: block;
  color: #5d706a;
  font-size: 0.78rem;
  font-weight: 750;
}

body.app-ventas .cart-review-qty {
  display: grid;
  grid-template-columns: 40px minmax(36px, 1fr) 40px;
  align-items: center;
  gap: 6px;
}

body.app-ventas .cart-review-qty strong {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  background: #f1fbf7;
}

body.app-ventas .cart-review-actions {
  position: sticky;
  bottom: 0;
  background: #ffffff;
}

body.app-ventas .quick-sales-modal {
  width: min(920px, calc(100vw - 24px));
}

body.app-ventas .quick-sales-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

body.app-ventas .quick-sales-summary > div {
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: #f8fffc;
}

body.app-ventas .quick-sales-summary span,
body.app-ventas .quick-sales-money span {
  display: block;
  color: #5d706a;
  font-size: 0.76rem;
  font-weight: 850;
}

body.app-ventas .quick-sales-summary strong,
body.app-ventas .quick-sales-money strong {
  display: block;
  color: #10251f;
  font-size: 1.08rem;
}

body.app-ventas .quick-sales-list {
  display: grid;
  gap: 8px;
  max-height: min(52dvh, 460px);
  overflow: auto;
  padding-right: 4px;
}

body.app-ventas .quick-sales-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

body.app-ventas .quick-sales-row.is-voided {
  background: #fff7f7;
  border-color: rgb(185 28 28 / 20%);
}

body.app-ventas .quick-sales-main {
  min-width: 0;
}

body.app-ventas .quick-sales-main strong,
body.app-ventas .quick-sales-main span,
body.app-ventas .quick-sales-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .quick-sales-main strong {
  color: #10251f;
}

body.app-ventas .quick-sales-main span,
body.app-ventas .quick-sales-main small {
  color: #5d706a;
  font-size: 0.78rem;
  font-weight: 750;
}

body.app-ventas .quick-sales-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.app-ventas .quick-sales-actions button {
  min-height: 38px;
}

@media (max-width: 980px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cart-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .cart-review-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-ventas .quick-sales-summary,
  body.app-ventas .quick-sales-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-ventas .quick-sales-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  body.app-ventas .cash-close-workspace {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cash-close-method-panel {
    grid-column: auto;
  }

  body.app-ventas .cash-close-method-grid,
  body.app-ventas .cash-close-denomination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .cash-close-total-row,
  body.app-ventas .cash-close-sticky-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .cash-close-sticky-actions button {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-shell {
    grid-template-columns: 1fr;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-products-block .touch-product-grid {
    max-height: none;
  }
}

/* Faster cart lines for daily cashier work. */
body.app-ventas .touch-cart-line {
  gap: 12px;
  padding: 12px;
}

body.app-ventas .cart-item-name {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}

body.app-ventas .cart-item-name strong {
  min-width: 0;
  overflow: hidden;
  color: #10251f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .cart-item-name small {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

body.app-ventas .cart-item-name > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(16 185 129 / 10%);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

body.app-ventas .cart-line-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(112px, 0.64fr);
  gap: 10px;
  align-items: end;
}

body.app-ventas .cart-discount-field {
  min-width: 0;
}

body.app-ventas .cart-discount-field input {
  min-height: 52px;
  font-weight: 900;
}

body.app-ventas .touch-qty {
  grid-template-columns: 54px minmax(46px, 1fr) 54px;
}

body.app-ventas .touch-qty .ghost-button {
  border-radius: 14px;
  background: rgb(255 255 255 / 92%);
}

body.app-ventas .touch-qty strong {
  border-radius: 14px;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

body.app-ventas .cart-line-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.app-ventas .cart-line-footer > strong {
  min-height: 48px;
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10251f, #0f766e);
  color: white;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body.app-ventas .cart-line-footer .danger-action {
  min-height: 48px;
  border-radius: 14px;
  white-space: nowrap;
}

body.app-ventas .pos-focus-mode .touch-cart-line {
  padding: 10px;
}

body.app-ventas .pos-focus-mode .cart-line-controls {
  grid-template-columns: 1fr;
}

.mobile-pos-summary {
  display: none;
}

.mobile-pos-toast {
  display: none;
}

.pos-mini-cart-preview {
  display: none;
}

.mobile-back-products {
  display: none;
}

body.app-ventas .pos-more-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 14px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(236 253 245 / 78%));
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

body.app-ventas .pos-more-results button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 12px;
}

body.app-ventas .pos-quick-cash-open {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 0.9fr) auto;
  gap: 8px;
  align-items: end;
  min-width: min(100%, 520px);
}

body.app-ventas .pos-quick-cash-open label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

body.app-ventas .pos-quick-cash-open select,
body.app-ventas .pos-quick-cash-open input {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: 12px;
  padding: 0 10px;
  background: rgb(255 255 255 / 92%);
  color: #10251f;
  font-weight: 900;
}

body.app-ventas .pos-quick-cash-open button {
  min-height: 42px;
  border-radius: 12px;
  white-space: nowrap;
}

body.app-ventas .touch-pos-shell {
  overflow: visible;
}

body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel {
  min-width: 0;
}

body.app-ventas .pos-products-block .touch-product-grid {
  overscroll-behavior: contain;
}

/* Pulido de revision logueada: evita texto apretado y ancho fantasma. */
body.app-ventas .pos-cash-warning {
  flex-wrap: wrap;
}

body.app-ventas .pos-cash-warning > div {
  flex: 1 1 240px;
  min-width: 220px;
}

body.app-ventas .pos-cash-warning .pos-quick-cash-open {
  flex: 2 1 480px;
}

body.app-correspondencia,
body.app-correspondencia .app-shell,
body.app-correspondencia .main-content,
body.app-correspondencia .topbar,
body.app-correspondencia .metrics,
body.app-correspondencia .content-grid {
  max-width: 100%;
  overflow-x: clip;
}

body.app-correspondencia .app-shell {
  width: 100%;
  min-width: 0;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout {
  max-width: 100vw;
  overflow-x: clip;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
  opacity: 0.78;
}

body.app-correspondencia .admin-tabs {
  flex-wrap: wrap;
  max-width: 100%;
  overflow: visible;
}

body.app-correspondencia .admin-tabs button {
  flex: 1 1 118px;
}

@media (max-width: 640px) {
  body.app-correspondencia .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-correspondencia .admin-tabs button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.app-ventas .pos-search-row {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 1fr;
  }

  body.app-ventas .pos-result-hint {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-ventas .pos-search-row .touch-search {
    grid-column: 1 / -1;
  }

  body.app-ventas .pos-search-row .touch-action {
    min-height: 50px;
    width: 100%;
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .inventory-risk-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .pos-toast {
    display: none;
  }

  body.app-ventas .ventas-touch-shell[data-active-view="sell"] {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  body.app-ventas .mobile-pos-summary {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "summary summary"
      "cart checkout";
    gap: 7px;
    align-items: center;
    margin: 0;
    padding: 9px;
    border: 1px solid rgb(15 118 110 / 14%);
    border-radius: 18px;
    background:
      radial-gradient(circle at 92% 0%, rgb(245 158 11 / 18%), transparent 34%),
      linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(236 253 245 / 92%));
    box-shadow:
      0 22px 54px rgb(8 30 26 / 22%),
      inset 0 1px 0 rgb(255 255 255 / 82%);
    backdrop-filter: blur(18px);
  }

  body.app-ventas .mobile-pos-summary span,
  body.app-ventas .mobile-pos-summary strong {
    display: block;
  }

  body.app-ventas .mobile-pos-summary > div {
    grid-area: summary;
    min-width: 0;
  }

  body.app-ventas .mobile-cart-review-button {
    grid-area: cart;
  }

  body.app-ventas .mobile-pos-summary #mobileCheckoutBtn {
    grid-area: checkout;
  }

  body.app-ventas .mobile-pos-summary span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
  }

  body.app-ventas .mobile-pos-summary strong {
    color: #10251f;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  body.app-ventas .mobile-pos-summary button {
    min-height: 50px;
    border-radius: 14px;
    padding: 0 10px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  body.app-ventas .mobile-pos-summary button strong {
    display: inline-grid;
    min-width: 24px;
    min-height: 24px;
    margin-left: 5px;
    place-items: center;
    border-radius: 999px;
    background: rgb(15 118 110 / 12%);
    color: #0f766e;
  }

  body.app-ventas .mobile-pos-summary .primary-button {
    min-width: 0;
    box-shadow: 0 14px 30px rgb(15 118 110 / 26%);
  }

  body.app-ventas .pos-mini-cart-preview {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgb(15 118 110 / 13%);
    border-radius: 18px;
    background:
      radial-gradient(circle at 94% 12%, rgb(245 158 11 / 16%), transparent 34%),
      linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 82%));
    box-shadow: 0 14px 34px rgb(8 30 26 / 9%);
  }

  body.app-ventas .mini-cart-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.app-ventas .mini-cart-preview-head span,
  body.app-ventas .mini-cart-preview-list small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
  }

  body.app-ventas .mini-cart-preview-head strong {
    display: block;
    color: #10251f;
    font-size: 1.32rem;
  }

  body.app-ventas .mini-cart-preview-list {
    display: grid;
    gap: 6px;
  }

  body.app-ventas .mini-cart-preview-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid rgb(15 118 110 / 9%);
    border-radius: 12px;
    background: rgb(255 255 255 / 72%);
  }

  body.app-ventas .mini-cart-preview-list span {
    min-width: 0;
    overflow: hidden;
    color: #10251f;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app-ventas .mini-cart-preview-list strong {
    color: #0f766e;
    font-weight: 950;
  }

  body.app-ventas .pos-mini-cart-preview .primary-button {
    min-height: 50px;
    border-radius: 14px;
  }

  body.app-ventas .mobile-back-products {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgb(255 255 255 / 88%);
  }

  body.app-ventas .touch-pos-shell.pos-mode-products .mobile-back-products {
    display: none;
  }

  body.app-ventas .touch-pos-shell.pos-mode-cart .touch-charge-button {
    position: sticky;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 3;
    box-shadow:
      0 22px 56px rgb(15 118 110 / 28%),
      0 0 0 6px rgb(255 255 255 / 72%);
  }

  body.app-ventas .mobile-pos-toast {
    position: sticky;
    top: 76px;
    z-index: 4;
    display: block;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgb(245 158 11 / 24%);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgb(255 251 235 / 96%), rgb(236 253 245 / 92%));
    color: #7c4f00;
    font-size: 0.84rem;
    font-weight: 950;
    box-shadow: 0 16px 36px rgb(8 30 26 / 10%);
  }

  body.app-ventas .cart-item-name,
  body.app-ventas .cart-line-controls,
  body.app-ventas .cart-line-footer {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cart-item-name strong {
    white-space: normal;
  }

  body.app-ventas .cart-item-name > span {
    justify-self: start;
    white-space: normal;
  }

  body.app-ventas .cart-line-controls {
    gap: 8px;
  }

  body.app-ventas .cart-line-footer {
    align-items: stretch;
  }

  body.app-ventas .cart-line-footer > strong,
  body.app-ventas .cart-line-footer .danger-action {
    width: 100%;
  }
}

@media (max-width: 430px) {
  body.app-ventas .touch-product-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .mobile-pos-summary {
    grid-template-columns: 1fr 1fr;
  }

  body.app-ventas .mobile-pos-summary button {
    min-height: 48px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  body.app-ventas .mobile-pos-toast {
    top: 74px;
  }

  body.app-ventas .pos-more-results {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .pos-more-results button {
    width: 100%;
  }

  body.app-ventas .pos-quick-cash-open {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.app-ventas .mobile-pos-summary > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] {
    padding: 8px;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 8px;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-pos-shell {
    display: block;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-workspace {
    display: block;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-panel,
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel {
    overflow: visible;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .touch-pos-head {
    display: none;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row {
    position: sticky;
    top: 64px;
    z-index: 20;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: -2px -2px 4px;
    padding: 8px;
    border: 1px solid rgb(15 118 110 / 14%);
    border-radius: 14px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 14px 34px rgb(8 30 26 / 10%);
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row .touch-search {
    grid-column: 1;
    min-width: 0;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row input {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row .touch-action {
    min-height: 48px;
    width: 100%;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .scanner-status {
    display: none;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block .touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane {
    margin-top: 10px;
    max-height: none;
  }
}

@media (max-width: 430px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block .touch-product-grid {
    grid-template-columns: 1fr;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row {
    top: 58px;
  }
}

/* SYSTEM ZOW production polish */
body.system-zow-site {
  scroll-behavior: smooth;
}

body.system-zow-site .site-section {
  scroll-margin-top: 112px;
}

body.system-zow-site .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  border-radius: 999px;
  padding: 10px 14px;
  background: #07111f;
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

body.system-zow-site .skip-link:focus {
  transform: translateY(0);
}

body.system-zow-site .product-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 760px;
  margin: 10px 0 22px;
  font-size: clamp(3rem, 5.7vw, 5.8rem);
  line-height: 0.95;
}

body.system-zow-site .trust-seals-section {
  padding-top: clamp(22px, 4vw, 52px);
}

body.system-zow-site .trust-seals,
body.system-zow-site .system-snapshot {
  display: grid;
  gap: 16px;
}

body.system-zow-site .trust-seals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.system-zow-site .system-snapshot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 20px;
}

body.system-zow-site .trust-seal,
body.system-zow-site .snapshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 11%);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(238 249 255 / 68%)),
    radial-gradient(circle at 12% 0%, rgb(0 184 217 / 12%), transparent 46%);
  box-shadow: 0 22px 54px rgb(17 31 49 / 8%);
}

body.system-zow-site .trust-seal::after,
body.system-zow-site .snapshot-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--zow-blue), var(--zow-cyan), var(--zow-lime));
}

body.system-zow-site .trust-seal span,
body.system-zow-site .snapshot-card span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(0 184 217 / 8%);
  color: var(--zow-blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .trust-seal strong,
body.system-zow-site .snapshot-card strong {
  display: block;
  margin-top: 12px;
  color: var(--zow-ink);
  font-size: 1.08rem;
  line-height: 1.15;
}

body.system-zow-site .snapshot-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

body.system-zow-site .trust-seal p,
body.system-zow-site .snapshot-card p {
  margin: 8px 0 0;
  color: var(--zow-muted);
  line-height: 1.5;
}

body.system-zow-site .snapshot-card.is-building {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(241 253 247 / 72%)),
    radial-gradient(circle at 18% 0%, rgb(34 197 94 / 13%), transparent 48%);
}

body.system-zow-site .snapshot-card.is-building span {
  border-color: rgb(21 128 61 / 18%);
  background: rgb(34 197 94 / 10%);
  color: #15803d;
}

body.system-zow-site .product-card.system-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.68fr) minmax(0, 1fr);
  gap: 24px;
  min-height: 360px;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.system-zow-site .product-card.system-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.9;
}

body.system-zow-site .product-card.system-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -36%;
  z-index: -1;
  height: 190px;
  background: radial-gradient(circle, rgb(0 184 217 / 18%), transparent 64%);
  transition: transform 260ms ease, opacity 260ms ease;
}

body.system-zow-site .product-card.system-card:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 34px 86px rgb(15 33 58 / 14%);
  transform: translateY(-7px);
}

body.system-zow-site .product-card.system-card:hover::after {
  opacity: 1;
  transform: translateY(-16px) scale(1.08);
}

body.system-zow-site .product-card.is-live::before {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(235 249 255 / 76%)),
    radial-gradient(circle at 20% 0%, rgb(0 184 217 / 18%), transparent 42%),
    radial-gradient(circle at 94% 16%, rgb(37 99 235 / 14%), transparent 36%);
}

body.system-zow-site .product-card.upcoming-card {
  grid-column: 1 / -1;
  border-style: solid;
  border-color: rgb(21 128 61 / 18%);
}

body.system-zow-site .product-card.upcoming-card::before {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(238 253 246 / 72%)),
    repeating-linear-gradient(135deg, rgb(21 128 61 / 8%) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 15% 0%, rgb(34 197 94 / 18%), transparent 42%);
}

body.system-zow-site .product-visual {
  position: relative;
  min-height: 100%;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(7 17 31 / 92%), rgb(19 50 92 / 82%)),
    radial-gradient(circle at 50% 26%, rgb(0 229 255 / 22%), transparent 54%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 24px 58px rgb(17 31 49 / 14%);
}

body.system-zow-site .product-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(98 239 255 / 16%);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 47%, rgb(98 239 255 / 8%) 48% 52%, transparent 53%),
    linear-gradient(180deg, transparent 0 47%, rgb(140 255 193 / 7%) 48% 52%, transparent 53%);
  background-size: 28px 28px;
}

body.system-zow-site .product-visual img {
  position: relative;
  z-index: 2;
  width: min(230px, 88%);
  height: auto;
  filter: drop-shadow(0 18px 32px rgb(0 229 255 / 20%));
  transition: transform 260ms ease;
}

body.system-zow-site .health-card .product-visual img {
  filter: drop-shadow(0 18px 36px rgb(140 255 193 / 22%));
}

body.system-zow-site .correspondence-card .product-visual::after,
body.system-zow-site .sales-card .product-visual::after {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 1;
  color: rgb(255 255 255 / 8%);
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  font-weight: 950;
  line-height: 1;
}

body.system-zow-site .correspondence-card .product-visual::after {
  content: "DOC";
}

body.system-zow-site .sales-card .product-visual::after {
  content: "POS";
}

body.system-zow-site .sales-commercial-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(0 184 217 / 13%);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(235 252 246 / 82%)),
    radial-gradient(circle at 8% 8%, rgb(16 185 129 / 18%), transparent 34%),
    radial-gradient(circle at 92% 10%, rgb(14 165 233 / 18%), transparent 36%);
  box-shadow: 0 34px 96px rgb(15 33 58 / 10%);
  isolation: isolate;
}

body.system-zow-site .sales-commercial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 184 166 / 6%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(37 99 235 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 74%), transparent 92%);
}

body.system-zow-site .sales-commercial-head {
  max-width: 880px;
}

body.system-zow-site .sales-commercial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: stretch;
  margin-top: clamp(22px, 4vw, 36px);
}

body.system-zow-site .sales-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.system-zow-site .sales-benefit-card,
body.system-zow-site .sales-plan-strip article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 20px;
  padding: 17px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 46px rgb(15 33 58 / 7%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .sales-benefit-card::after,
body.system-zow-site .sales-plan-strip article::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgb(16 185 129 / 16%), rgb(245 158 11 / 16%));
  transform: rotate(12deg);
}

body.system-zow-site .sales-benefit-card:hover,
body.system-zow-site .sales-plan-strip article:hover {
  border-color: rgb(16 185 129 / 28%);
  box-shadow: 0 24px 62px rgb(15 33 58 / 10%);
  transform: translateY(-4px);
}

body.system-zow-site .sales-benefit-card span,
body.system-zow-site .sales-plan-strip span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(16 185 129 / 18%);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(236 253 245 / 88%);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .sales-benefit-card strong,
body.system-zow-site .sales-plan-strip strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: #10251f;
  font-size: 1.04rem;
  line-height: 1.18;
}

body.system-zow-site .sales-benefit-card p,
body.system-zow-site .sales-plan-strip p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--zow-muted);
  line-height: 1.5;
}

body.system-zow-site .sales-commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

body.system-zow-site .sales-capture-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(16 185 129 / 20%);
  border-radius: 28px;
  padding: 18px;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgb(8 47 38 / 94%), rgb(11 89 73 / 88%)),
    radial-gradient(circle at 74% 10%, rgb(245 158 11 / 24%), transparent 42%);
  box-shadow: 0 30px 84px rgb(6 78 59 / 20%);
  color: #ecfdf5;
}

body.system-zow-site .sales-capture-board::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

body.system-zow-site .sales-capture-top,
body.system-zow-site .sales-capture-main,
body.system-zow-site .sales-capture-footer {
  position: relative;
  z-index: 1;
}

body.system-zow-site .sales-capture-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  padding-bottom: 14px;
}

body.system-zow-site .sales-capture-top span {
  color: rgb(209 250 229 / 72%);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.system-zow-site .sales-capture-top strong {
  grid-column: 1;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

body.system-zow-site .sales-capture-top i {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(245 158 11 / 18%);
  color: #fef3c7;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

body.system-zow-site .sales-capture-main {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

body.system-zow-site .sales-capture-main article {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 20px;
  padding: 16px;
  background: rgb(255 255 255 / 9%);
  backdrop-filter: blur(18px);
}

body.system-zow-site .sales-pos-preview {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 7%)),
    radial-gradient(circle at 92% 18%, rgb(245 158 11 / 30%), transparent 38%) !important;
}

body.system-zow-site .sales-pos-preview div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

body.system-zow-site .sales-pos-preview span,
body.system-zow-site .sales-stock-preview span,
body.system-zow-site .sales-client-preview span {
  color: rgb(209 250 229 / 70%);
  font-size: 0.8rem;
  font-weight: 850;
}

body.system-zow-site .sales-pos-preview strong {
  color: #ffffff;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1;
  text-align: right;
}

body.system-zow-site .sales-pos-preview p,
body.system-zow-site .sales-client-preview p {
  margin: 0;
  color: rgb(236 253 245 / 76%);
}

body.system-zow-site .sales-pos-lines {
  display: grid;
  gap: 8px;
}

body.system-zow-site .sales-pos-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgb(236 253 245 / 22%);
}

body.system-zow-site .sales-pos-lines span:nth-child(1) { width: 92%; }
body.system-zow-site .sales-pos-lines span:nth-child(2) { width: 72%; }
body.system-zow-site .sales-pos-lines span:nth-child(3) { width: 84%; }

body.system-zow-site .sales-stock-preview strong,
body.system-zow-site .sales-client-preview strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.12rem;
}

body.system-zow-site .stock-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 88px;
  margin-top: 14px;
}

body.system-zow-site .stock-bars i {
  display: block;
  height: var(--bar);
  min-height: 24px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #fbbf24, #10b981);
  box-shadow: 0 12px 26px rgb(0 0 0 / 18%);
}

body.system-zow-site .sales-capture-footer,
body.system-zow-site .sales-plan-strip {
  display: grid;
  gap: 12px;
}

body.system-zow-site .sales-capture-footer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

body.system-zow-site .sales-capture-footer span {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 14px;
  padding: 10px 8px;
  background: rgb(255 255 255 / 8%);
  color: rgb(236 253 245 / 82%);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

body.system-zow-site .sales-plan-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(18px, 3vw, 28px);
}

body.system-zow-site .sales-plan-strip article {
  background: rgb(255 255 255 / 74%);
}

body.system-zow-site .sales-commercial-section .primary-button {
  box-shadow: 0 18px 40px rgb(16 185 129 / 22%);
}

@media (max-width: 1100px) {
  body.system-zow-site .sales-commercial-layout,
  body.system-zow-site .sales-benefit-grid,
  body.system-zow-site .sales-plan-strip {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .sales-capture-board {
    min-height: auto;
  }

  body.system-zow-site .sales-capture-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.system-zow-site .sales-pos-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.system-zow-site .sales-commercial-section {
    border-radius: 24px;
    padding: 22px;
  }

  body.system-zow-site .sales-commercial-actions {
    display: grid;
  }

  body.system-zow-site .sales-capture-main,
  body.system-zow-site .sales-capture-footer {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .sales-capture-top {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .sales-capture-top i {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
  }

  body.system-zow-site .sales-pos-preview div:first-child {
    display: grid;
  }

  body.system-zow-site .sales-pos-preview strong {
    text-align: left;
  }
}

body.system-zow-site .product-card:hover .product-visual img {
  transform: scale(1.045) rotate(-1deg);
}

body.system-zow-site .screen-line,
body.system-zow-site .screen-dot {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(98 239 255 / 62%), transparent);
}

body.system-zow-site .screen-line {
  width: 58%;
  height: 2px;
}

body.system-zow-site .line-a {
  top: 26%;
  left: 12%;
}

body.system-zow-site .line-b {
  right: 12%;
  bottom: 23%;
}

body.system-zow-site .screen-dot {
  width: 12px;
  height: 12px;
  right: 20%;
  top: 20%;
  background: var(--zow-lime);
  box-shadow: 0 0 24px rgb(140 255 193 / 60%);
}

body.system-zow-site .health-visual {
  background:
    linear-gradient(145deg, rgb(5 37 25 / 92%), rgb(13 92 69 / 78%)),
    radial-gradient(circle at 45% 24%, rgb(140 255 193 / 24%), transparent 54%);
}

body.system-zow-site .health-cross {
  position: relative;
  z-index: 2;
  width: 104px;
  aspect-ratio: 1;
  filter: drop-shadow(0 22px 38px rgb(34 197 94 / 28%));
}

body.system-zow-site .health-cross::before,
body.system-zow-site .health-cross::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfff6, #8cffc1);
}

body.system-zow-site .health-cross::before {
  width: 34px;
  height: 100%;
}

body.system-zow-site .health-cross::after {
  width: 100%;
  height: 34px;
}

body.system-zow-site .pulse-ring {
  position: absolute;
  z-index: 1;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgb(140 255 193 / 24%);
  border-radius: 999px;
  animation: zowHealthPulse 3.8s ease-in-out infinite;
}

body.system-zow-site .pulse-ring.ring-b {
  width: 210px;
  animation-delay: 900ms;
}

body.system-zow-site .product-content {
  display: grid;
  align-content: start;
  gap: 12px;
}

body.system-zow-site .product-card.system-card .status-pill {
  width: fit-content;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgb(0 184 217 / 9%);
  color: #126b86;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .product-card.upcoming-card .status-pill {
  border-color: rgb(21 128 61 / 18%);
  background: rgb(34 197 94 / 11%);
  color: #15803d;
}

body.system-zow-site .product-card.system-card h3 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.02;
}

body.system-zow-site .product-card.system-card p {
  margin: 0;
  line-height: 1.58;
}

body.system-zow-site .product-points {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

body.system-zow-site .product-points li {
  position: relative;
  padding-left: 24px;
  color: var(--zow-muted);
  font-size: 0.9rem;
  font-weight: 820;
}

body.system-zow-site .product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--zow-blue), var(--zow-cyan));
  box-shadow: 0 0 18px rgb(0 184 217 / 30%);
}

body.system-zow-site .upcoming-card .product-points li::before {
  background: linear-gradient(135deg, #15803d, #35d07f);
}

body.system-zow-site .product-link {
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgb(37 99 235 / 16%);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgb(37 99 235 / 10%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.system-zow-site .product-link:hover {
  border-color: rgb(0 184 217 / 34%);
  box-shadow: 0 20px 44px rgb(37 99 235 / 15%);
  transform: translateY(-2px);
}

body.system-zow-site .product-link.soft-link {
  border-color: rgb(21 128 61 / 18%);
  background: rgb(255 255 255 / 82%);
  box-shadow: none;
}

body.system-zow-site .comparison-section {
  position: relative;
  padding-top: clamp(34px, 6vw, 74px);
}

body.system-zow-site .comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.system-zow-site .comparison-card {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(237 249 255 / 70%)),
    radial-gradient(circle at 16% 0%, rgb(0 184 217 / 12%), transparent 48%);
  box-shadow: 0 24px 62px rgb(17 31 49 / 8%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

body.system-zow-site .comparison-card::after {
  content: "";
  position: absolute;
  inset: auto -24% -38%;
  height: 128px;
  background: radial-gradient(circle, rgb(0 184 217 / 15%), transparent 66%);
  opacity: 0.78;
}

body.system-zow-site .comparison-card:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 32px 76px rgb(15 33 58 / 13%);
  transform: translateY(-6px);
}

body.system-zow-site .comparison-card.is-building {
  border-color: rgb(21 128 61 / 15%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 93%), rgb(239 253 246 / 74%)),
    radial-gradient(circle at 16% 0%, rgb(34 197 94 / 12%), transparent 48%);
}

body.system-zow-site .comparison-card.is-custom {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 93%), rgb(244 247 252 / 76%)),
    radial-gradient(circle at 16% 0%, rgb(37 99 235 / 10%), transparent 48%);
}

body.system-zow-site .comparison-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.system-zow-site .comparison-top img,
body.system-zow-site .comparison-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgb(0 184 217 / 16%);
  border-radius: 18px;
  object-fit: contain;
  background:
    linear-gradient(145deg, rgb(7 17 31 / 94%), rgb(14 45 78 / 84%)),
    radial-gradient(circle at 50% 24%, rgb(0 229 255 / 20%), transparent 54%);
  box-shadow: 0 16px 34px rgb(17 31 49 / 12%);
}

body.system-zow-site .comparison-icon {
  display: grid;
  place-items: center;
  color: var(--zow-cyan);
  font-size: 1.8rem;
  font-weight: 950;
}

body.system-zow-site .comparison-top span:last-child {
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgb(0 184 217 / 8%);
  color: #126b86;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

body.system-zow-site .comparison-card.is-building .comparison-top span:last-child {
  border-color: rgb(21 128 61 / 18%);
  background: rgb(34 197 94 / 10%);
  color: #15803d;
}

body.system-zow-site .comparison-card h3 {
  margin: 0;
  color: var(--zow-ink);
  font-size: 1.2rem;
  line-height: 1.08;
}

body.system-zow-site .comparison-card p {
  margin: 0;
  color: var(--zow-muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

body.system-zow-site .comparison-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.system-zow-site .comparison-card li {
  position: relative;
  padding-left: 22px;
  color: #41566d;
  font-size: 0.87rem;
  font-weight: 820;
  line-height: 1.32;
}

body.system-zow-site .comparison-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.33rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--zow-blue), var(--zow-cyan));
  box-shadow: 0 0 16px rgb(0 184 217 / 28%);
}

body.system-zow-site .comparison-card.is-building li::before {
  background: linear-gradient(135deg, #15803d, #35d07f);
}

body.system-zow-site .comparison-card a {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(37 99 235 / 15%);
  border-radius: 999px;
  padding: 9px 13px;
  background: #ffffff;
  color: var(--zow-blue);
  box-shadow: 0 13px 30px rgb(37 99 235 / 9%);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.system-zow-site .comparison-card a:hover {
  border-color: rgb(0 184 217 / 32%);
  box-shadow: 0 18px 42px rgb(37 99 235 / 14%);
  transform: translateY(-2px);
}

body.system-zow-site .use-cases-section {
  position: relative;
}

body.system-zow-site .use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.system-zow-site .use-case-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 91%), rgb(238 249 255 / 66%)),
    radial-gradient(circle at 16% 0%, rgb(0 184 217 / 13%), transparent 48%);
  box-shadow: 0 24px 62px rgb(17 31 49 / 8%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .use-case-card::before {
  content: "";
  width: 46px;
  height: 46px;
  border: 1px solid rgb(0 184 217 / 22%);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(37 99 235 / 12%), rgb(0 184 217 / 10%)),
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 78%) 0 3px, transparent 4px);
  box-shadow: 0 14px 32px rgb(37 99 235 / 10%);
}

body.system-zow-site .use-case-card::after {
  content: "";
  position: absolute;
  inset: auto -22% -34%;
  height: 120px;
  background: radial-gradient(circle, rgb(0 184 217 / 15%), transparent 66%);
}

body.system-zow-site .use-case-card:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 32px 76px rgb(0 184 217 / 12%);
  transform: translateY(-6px);
}

body.system-zow-site .use-case-card span {
  color: var(--zow-blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .use-case-card strong {
  color: var(--zow-ink);
  font-size: 1.14rem;
  line-height: 1.18;
}

body.system-zow-site .use-case-card p {
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.55;
}

body.system-zow-site .system-finder-section {
  position: relative;
}

body.system-zow-site .system-finder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.system-zow-site .system-finder-card {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(238 249 255 / 68%)),
    radial-gradient(circle at 16% 0%, rgb(37 99 235 / 13%), transparent 48%);
  box-shadow: 0 24px 62px rgb(17 31 49 / 8%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .system-finder-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--zow-blue), var(--zow-cyan), var(--zow-lime));
}

body.system-zow-site .system-finder-card:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 32px 76px rgb(0 184 217 / 12%);
  transform: translateY(-6px);
}

body.system-zow-site .system-finder-card.is-building {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 91%), rgb(241 253 247 / 68%)),
    radial-gradient(circle at 16% 0%, rgb(34 197 94 / 13%), transparent 48%);
}

body.system-zow-site .system-finder-card span {
  width: fit-content;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(0 184 217 / 8%);
  color: var(--zow-blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .system-finder-card.is-building span {
  border-color: rgb(21 128 61 / 18%);
  background: rgb(34 197 94 / 10%);
  color: #15803d;
}

body.system-zow-site .system-finder-card strong {
  color: var(--zow-ink);
  font-size: 1.16rem;
  line-height: 1.18;
}

body.system-zow-site .system-finder-card p {
  margin: 0;
  color: var(--zow-muted);
  line-height: 1.55;
}

body.system-zow-site .system-finder-card a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgb(37 99 235 / 16%);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--zow-blue);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 34px rgb(37 99 235 / 10%);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

body.system-zow-site .system-finder-card a:hover {
  border-color: rgb(0 184 217 / 34%);
  box-shadow: 0 20px 44px rgb(37 99 235 / 15%);
  transform: translateY(-2px);
}

body.system-zow-site .contact-section {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(24px, 4vw, 44px);
}

body.system-zow-site .contact-hub {
  display: grid;
  gap: 14px;
}

body.system-zow-site .contact-card,
body.system-zow-site .location-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(237 249 255 / 68%)),
    radial-gradient(circle at 12% 0%, rgb(0 184 217 / 12%), transparent 48%);
  box-shadow: 0 22px 54px rgb(17 31 49 / 8%);
}

body.system-zow-site .contact-card::after,
body.system-zow-site .location-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--zow-blue), var(--zow-cyan), var(--zow-lime));
}

body.system-zow-site .contact-card span,
body.system-zow-site .location-card span {
  color: var(--zow-blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .contact-card strong,
body.system-zow-site .location-card strong {
  color: var(--zow-ink);
  font-size: 1.08rem;
}

body.system-zow-site .contact-card p,
body.system-zow-site .location-card p {
  margin: 6px 0 0;
  color: var(--zow-muted);
  line-height: 1.55;
}

body.system-zow-site .channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.system-zow-site .channel-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 16px;
  padding: 12px;
  background: rgb(255 255 255 / 72%);
  color: var(--zow-ink);
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

body.system-zow-site .channel-list a:hover {
  border-color: rgb(0 184 217 / 28%);
  box-shadow: 0 14px 30px rgb(37 99 235 / 10%);
  transform: translateY(-2px);
}

body.system-zow-site .channel-list b {
  color: var(--zow-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

body.system-zow-site .channel-list strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

body.system-zow-site .location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.system-zow-site .location-card {
  min-height: 126px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(241 253 247 / 72%)),
    radial-gradient(circle at 18% 0%, rgb(34 197 94 / 13%), transparent 48%);
}

body.system-zow-site .contact-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.system-zow-site .contact-assurance article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(237 249 255 / 62%)),
    radial-gradient(circle at 18% 0%, rgb(0 184 217 / 10%), transparent 46%);
}

body.system-zow-site .contact-assurance article::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgb(0 184 217 / 14%), rgb(140 255 193 / 12%)),
    radial-gradient(circle at 50% 50%, var(--zow-cyan) 0 3px, transparent 4px);
  box-shadow: 0 12px 24px rgb(37 99 235 / 9%);
}

body.system-zow-site .contact-assurance span {
  display: block;
  color: var(--zow-blue);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .contact-assurance strong {
  display: block;
  margin-top: 6px;
  color: var(--zow-ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

body.system-zow-site .request-form {
  position: sticky;
  top: 92px;
  border-radius: 30px;
  box-shadow: 0 34px 86px rgb(17 31 49 / 12%);
}

body.system-zow-site .request-form::before {
  content: "Respuesta comercial";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(0 184 217 / 9%);
  color: var(--zow-blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

body.system-zow-site .request-form input:focus,
body.system-zow-site .request-form select:focus,
body.system-zow-site .request-form textarea:focus {
  border-color: rgb(0 184 217 / 44%);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgb(0 184 217 / 10%);
  outline: 0;
}

body.system-zow-site .quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}

body.system-zow-site .quick-contact a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(37 99 235 / 13%);
  border-radius: 999px;
  padding: 9px 11px;
  background: rgb(255 255 255 / 74%);
  color: var(--zow-blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

body.system-zow-site .quick-contact a:hover {
  border-color: rgb(0 184 217 / 30%);
  box-shadow: 0 14px 30px rgb(37 99 235 / 10%);
  transform: translateY(-2px);
}

body.system-zow-site .form-note {
  align-self: center;
  color: var(--zow-muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

body.system-zow-site .floating-whatsapp {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(34 197 94 / 28%);
  border-radius: 999px;
  padding: 0 18px 0 50px;
  background:
    radial-gradient(circle at 24px 50%, #ffffff 0 7px, transparent 8px),
    linear-gradient(135deg, #16a34a, #00b8d9);
  color: #ffffff;
  box-shadow: 0 22px 54px rgb(22 163 74 / 28%);
  font-weight: 950;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.system-zow-site .floating-whatsapp::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 22%);
}

body.system-zow-site .floating-whatsapp:hover {
  box-shadow: 0 28px 64px rgb(22 163 74 / 36%);
  transform: translateY(-3px);
}

body.system-zow-site .final-cta-section {
  padding-top: clamp(34px, 5vw, 72px);
}

body.system-zow-site .final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(0 184 217 / 18%);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgb(7 17 31 / 94%), rgb(13 36 68 / 88%)),
    radial-gradient(circle at 10% 0%, rgb(0 229 255 / 28%), transparent 42%),
    radial-gradient(circle at 88% 22%, rgb(140 255 193 / 18%), transparent 38%);
  box-shadow: 0 34px 88px rgb(7 17 31 / 18%);
}

body.system-zow-site .final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 47%, rgb(98 239 255 / 7%) 48% 52%, transparent 53%),
    linear-gradient(180deg, transparent 0 47%, rgb(140 255 193 / 6%) 48% 52%, transparent 53%);
  background-size: 42px 42px;
  opacity: 0.48;
}

body.system-zow-site .final-cta > * {
  position: relative;
  z-index: 1;
}

body.system-zow-site .final-cta span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(140 255 193 / 24%);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(140 255 193 / 9%);
  color: var(--zow-lime);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.system-zow-site .final-cta strong {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(1.65rem, 3.8vw, 3.3rem);
  line-height: 1;
}

body.system-zow-site .final-cta p {
  max-width: 700px;
  margin: 14px 0 0;
  color: #c4d7e6;
  line-height: 1.6;
}

body.system-zow-site .final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

body.system-zow-site .final-cta .ghost-button {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

@keyframes zowHealthPulse {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  body.system-zow-site .product-showcase,
  body.system-zow-site .trust-seals,
  body.system-zow-site .comparison-grid,
  body.system-zow-site .use-case-grid,
  body.system-zow-site .system-finder-grid,
  body.system-zow-site .contact-section {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .system-snapshot {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .product-card.upcoming-card {
    grid-column: auto;
  }

  body.system-zow-site .request-form {
    position: static;
  }

  body.system-zow-site .final-cta {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .final-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body.system-zow-site .site-section {
    scroll-margin-top: 86px;
  }

  body.system-zow-site .site-brand-logo {
    width: clamp(136px, 48vw, 174px);
  }

  body.system-zow-site .site-hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
    line-height: 1;
  }

  body.system-zow-site .product-card.system-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
    padding: 18px;
  }

  body.system-zow-site .product-visual {
    min-height: 210px;
  }

  body.system-zow-site .channel-list,
  body.system-zow-site .contact-assurance,
  body.system-zow-site .location-grid {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .floating-whatsapp {
    left: auto;
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 0 14px 0 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.system-zow-site *,
  body.system-zow-site *::before,
  body.system-zow-site *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Zow Ventas-Almacen commercial finish pass. */
body.app-ventas {
  --ventas-card: rgb(255 255 255 / 94%);
  --ventas-card-soft: rgb(247 253 250 / 92%);
  --ventas-border: rgb(15 118 110 / 14%);
  --ventas-border-strong: rgb(15 118 110 / 24%);
  --ventas-shadow: 0 18px 48px rgb(8 30 26 / 9%);
  --ventas-shadow-soft: 0 10px 26px rgb(8 30 26 / 7%);
  --ventas-focus: 0 0 0 3px rgb(16 185 129 / 22%);
}

body.app-ventas .admin-panel,
body.app-ventas .workflow-panel,
body.app-ventas .document-list,
body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel,
body.app-ventas .report-export-card,
body.app-ventas .module-window-nav,
body.app-ventas .settings-window-nav,
body.app-ventas .pos-section-block,
body.app-ventas .sale-total-card,
body.app-ventas .payment-breakdown-grid article,
body.app-ventas .report-grid article,
body.app-ventas .setup-overview article,
body.app-ventas .admin-row,
body.app-ventas .touch-product-card,
body.app-ventas .touch-cart-line,
body.app-ventas .empty-state {
  border: 1px solid var(--ventas-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--ventas-card), var(--ventas-card-soft));
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .admin-panel,
body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel,
body.app-ventas .document-list {
  box-shadow: var(--ventas-shadow);
}

body.app-ventas .admin-panel-head,
body.app-ventas .pos-section-title,
body.app-ventas .touch-pos-head,
body.app-ventas .touch-cart-head,
body.app-ventas .report-decision-head,
body.app-ventas .backup-control-head {
  margin-bottom: 12px;
  border-bottom: 1px solid rgb(15 118 110 / 12%);
  padding-bottom: 12px;
}

body.app-ventas .admin-panel-head h3,
body.app-ventas .pos-section-title strong,
body.app-ventas .touch-pos-head h3,
body.app-ventas .touch-cart-head h3 {
  color: #10251f;
  letter-spacing: 0;
}

body.app-ventas .eyebrow,
body.app-ventas .admin-panel-head span,
body.app-ventas .pos-section-title span,
body.app-ventas .admin-row span,
body.app-ventas .empty-state p,
body.app-ventas .empty-state span {
  color: #64746f;
}

body.app-ventas .primary-button,
body.app-ventas .ghost-button,
body.app-ventas .secondary-button,
body.app-ventas .icon-button,
body.app-ventas .ventas-tabs button,
body.app-ventas .module-window-nav button,
body.app-ventas .settings-window-nav button,
body.app-ventas .pos-category-rail button,
body.app-ventas .touch-product-card {
  border-radius: 8px;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

body.app-ventas .primary-button {
  background:
    linear-gradient(135deg, #10b981, #0f766e 72%, #0b5d57);
  box-shadow: 0 14px 30px rgb(15 118 110 / 22%);
}

body.app-ventas .primary-button:hover:not(:disabled),
body.app-ventas .ghost-button:hover:not(:disabled),
body.app-ventas .secondary-button:hover:not(:disabled),
body.app-ventas .module-window-nav button:hover,
body.app-ventas .settings-window-nav button:hover,
body.app-ventas .touch-product-card:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(8 30 26 / 12%);
}

body.app-ventas button:focus-visible,
body.app-ventas input:focus,
body.app-ventas select:focus,
body.app-ventas textarea:focus {
  outline: 0;
  border-color: #10b981 !important;
  box-shadow: var(--ventas-focus) !important;
}

body.app-ventas button:disabled,
body.app-ventas input:disabled,
body.app-ventas select:disabled {
  cursor: not-allowed;
  filter: saturate(0.72);
  opacity: 0.58;
}

body.app-ventas .danger-action {
  border-color: rgb(185 28 28 / 18%);
  background: linear-gradient(180deg, #fff7f7, #fffafa);
  color: #a62222;
}

body.app-ventas .ok-text,
body.app-ventas .is-ok strong,
body.app-ventas .is-ok b {
  color: #0f7a44;
}

body.app-ventas .warn-text,
body.app-ventas .is-warning strong,
body.app-ventas .is-warning b {
  color: #a15c07;
}

body.app-ventas .danger-text,
body.app-ventas .is-danger strong,
body.app-ventas .is-danger b {
  color: #a62222;
}

body.app-ventas .is-ok {
  border-color: rgb(16 185 129 / 24%) !important;
}

body.app-ventas .is-warning {
  border-color: rgb(245 158 11 / 26%) !important;
}

body.app-ventas .is-danger {
  border-color: rgb(239 68 68 / 26%) !important;
}

body.app-ventas .module-window-nav,
body.app-ventas .settings-window-nav {
  gap: 8px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(236 253 245 / 74%));
}

body.app-ventas .module-window-nav button,
body.app-ventas .settings-window-nav button {
  border: 1px solid transparent;
  background: rgb(255 255 255 / 64%);
}

body.app-ventas .module-window-nav button.is-active,
body.app-ventas .settings-window-nav button.is-active {
  border-color: var(--ventas-border-strong);
  background:
    linear-gradient(135deg, rgb(15 118 110 / 12%), rgb(16 185 129 / 10%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 74%);
}

body.app-ventas .touch-product-card,
body.app-ventas .touch-cart-line,
body.app-ventas .admin-row {
  box-shadow: none;
}

body.app-ventas .touch-product-card.is-recently-added {
  border-color: rgb(245 158 11 / 44%);
  background:
    radial-gradient(circle at 92% 16%, rgb(245 158 11 / 18%), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5fffb);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 12%), var(--ventas-shadow-soft);
}

body.app-ventas .touch-cart-line + .touch-cart-line,
body.app-ventas .admin-row + .admin-row {
  margin-top: 8px;
}

body.app-ventas .pos-section-block {
  padding: 14px;
}

body.app-ventas .sale-total-card {
  border-color: rgb(15 118 110 / 20%);
  background:
    radial-gradient(circle at 94% 10%, rgb(245 158 11 / 14%), transparent 34%),
    linear-gradient(135deg, #0f3d34, #0f766e);
  color: white;
}

body.app-ventas .sale-total-card span,
body.app-ventas .sale-total-card strong {
  color: white;
}

body.app-ventas .role-workflow-hint {
  display: block;
  margin-top: 5px;
  max-width: 70ch;
  color: #64746f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

body.app-ventas .role-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.app-ventas .role-workflow-actions .ghost-button {
  min-height: 38px;
  border-color: rgb(15 118 110 / 16%);
  background: rgb(255 255 255 / 72%);
  white-space: nowrap;
}

body.app-ventas .role-workflow-actions .ghost-button.is-current {
  border-color: rgb(16 185 129 / 36%);
  background: linear-gradient(135deg, rgb(16 185 129 / 16%), rgb(245 158 11 / 12%));
  color: #0f3d34;
}

body.app-ventas .ventas-touch-shell[data-role="cajero"] .metrics {
  display: none;
}

body.app-ventas .ventas-touch-shell[data-role="cajero"] .workflow-panel {
  margin-bottom: 10px;
}

body.app-ventas .ventas-touch-shell[data-role="almacen"] .metrics article:nth-child(3),
body.app-ventas .ventas-touch-shell[data-role="vendedor"] .metrics article:nth-child(2) {
  display: none;
}

body.app-ventas .stock-chip,
body.app-ventas .product-badge,
body.app-ventas .product-code,
body.app-ventas .ui-ico {
  border: 1px solid rgb(15 118 110 / 12%);
  background: rgb(255 255 255 / 74%);
}

body.app-ventas .form-error,
body.app-ventas .cloud-safe-note,
body.app-ventas .pos-stock-note,
body.app-ventas .pos-toast,
body.app-ventas .mobile-pos-toast {
  border-radius: 8px;
  border: 1px solid rgb(245 158 11 / 24%);
}

body.app-ventas .empty-state {
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, rgb(15 118 110 / 4%) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(247 253 250 / 84%));
}

body.app-ventas .role-visual-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.9fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--ventas-border);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgb(16 185 129 / 14%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(247 253 250 / 88%));
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .role-visual-panel.is-cashier {
  background:
    radial-gradient(circle at 92% 8%, rgb(245 158 11 / 16%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 251 235 / 86%));
}

body.app-ventas .role-visual-panel.is-warehouse {
  background:
    radial-gradient(circle at 92% 8%, rgb(14 165 233 / 13%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(240 249 255 / 86%));
}

body.app-ventas .role-visual-panel.is-supervisor {
  background:
    radial-gradient(circle at 92% 8%, rgb(99 102 241 / 13%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(245 243 255 / 86%));
}

body.app-ventas .role-visual-panel.is-seller {
  background:
    radial-gradient(circle at 92% 8%, rgb(236 72 153 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(253 242 248 / 82%));
}

body.app-ventas .role-visual-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

body.app-ventas .role-visual-copy h3 {
  margin: 0;
  color: #10251f;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

body.app-ventas .role-visual-copy span {
  max-width: 680px;
  color: #64746f;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

body.app-ventas .role-visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.app-ventas .role-visual-metrics article {
  min-width: 0;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .role-visual-metrics span,
body.app-ventas .role-visual-metrics small {
  display: block;
  overflow: hidden;
  color: #64746f;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .role-visual-metrics strong {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  color: #10251f;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ventas .role-visual-actions {
  display: grid;
  align-content: center;
  gap: 8px;
}

body.app-ventas .role-visual-actions button {
  min-width: 132px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.app-ventas .admin-panel,
  body.app-ventas .touch-panel,
  body.app-ventas .touch-cart-panel,
  body.app-ventas .document-list,
  body.app-ventas .pos-section-block,
  body.app-ventas .touch-product-card,
  body.app-ventas .touch-cart-line {
    border-radius: 8px;
  }

  body.app-ventas .module-window-nav,
  body.app-ventas .settings-window-nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.app-ventas .role-visual-panel {
    grid-template-columns: 1fr;
  }

  body.app-ventas .role-visual-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-ventas .role-visual-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-ventas .role-visual-actions button {
    min-width: 0;
    width: 100%;
  }

  body.app-ventas .security-notice,
  .membership-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  body.app-ventas .role-visual-metrics,
  body.app-ventas .role-visual-actions {
    grid-template-columns: 1fr;
  }
}

/* Login experience redesign v2: different product compositions, not shared split-card templates. */
body.app-ventas .ventas-login-screen {
  align-items: stretch;
  padding: 0;
  background:
    linear-gradient(120deg, rgb(2 6 23 / 72%), rgb(3 23 19 / 56%) 48%, rgb(15 23 42 / 92%)),
    url("assets/brand/login-ventas-background.svg") center / cover no-repeat !important;
}

body.app-ventas .ventas-login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 14%, rgb(52 211 153 / 22%), transparent 24rem),
    radial-gradient(circle at 72% 80%, rgb(245 158 11 / 20%), transparent 28rem),
    linear-gradient(90deg, rgb(16 185 129 / 10%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
}

body.app-ventas .ventas-login-screen .login-layout {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  min-height: min(760px, calc(100dvh - 40px));
  max-height: none;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(18px, 3vw, 30px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.app-ventas .ventas-login-screen .login-intro {
  order: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgb(209 250 229 / 14%);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  clip-path: none;
  background:
    linear-gradient(145deg, rgb(2 6 23 / 72%), rgb(6 78 59 / 48%)),
    radial-gradient(circle at 62% 44%, rgb(16 185 129 / 18%), transparent 34%);
  box-shadow: 0 38px 120px rgb(0 0 0 / 34%);
}

body.app-ventas .ventas-login-screen .login-intro::before {
  background:
    linear-gradient(90deg, rgb(209 250 229 / 7%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(209 250 229 / 6%) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 36px, rgb(245 158 11 / 8%) 36px 38px, transparent 38px 78px);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(135deg, black, transparent 86%);
}

body.app-ventas .ventas-login-screen .login-copy {
  max-width: 700px;
  align-self: start;
}

body.app-ventas .ventas-login-screen .login-copy h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(3.2rem, 7.2vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

body.app-ventas .ventas-login-screen .login-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgb(236 253 245 / 82%);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}

body.app-ventas .ventas-login-screen .ventas-login-scene {
  min-height: clamp(260px, 42vh, 430px);
  align-self: center;
  transform: translateX(-2%);
}

body.app-ventas .ventas-login-screen .pos-terminal-3d {
  right: 11%;
  top: 20%;
  width: min(340px, 42vw);
  height: 210px;
  border-radius: 28px 28px 36px 36px;
  transform: rotateY(18deg) rotateX(10deg) translateZ(100px);
}

body.app-ventas .ventas-login-screen .warehouse-rack-3d {
  left: 6%;
  top: 30%;
  width: min(260px, 34vw);
  height: 160px;
  border-radius: 20px;
  transform: rotateY(-24deg) rotateX(8deg) translateZ(84px);
}

body.app-ventas .ventas-login-screen .sales-login-window {
  right: clamp(30px, 6vw, 86px);
  top: clamp(26px, 7vh, 78px);
  width: min(300px, 38%);
  border-radius: 28px;
  padding: 24px;
  background: rgb(2 6 23 / 64%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 30%);
}

body.app-ventas .ventas-login-screen .login-highlights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
}

body.app-ventas .ventas-login-screen .login-highlights div {
  min-height: 104px;
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

body.app-ventas .ventas-login-screen .login-card {
  order: 2;
  align-self: center;
  border: 1px solid rgb(209 250 229 / 16%);
  border-radius: 34px;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgb(3 23 19 / 88%), rgb(2 6 23 / 86%)),
    radial-gradient(circle at 88% 8%, rgb(16 185 129 / 22%), transparent 36%);
  color: #ecfdf5;
  box-shadow: 0 34px 100px rgb(0 0 0 / 36%);
  backdrop-filter: blur(18px);
}

body.app-ventas .ventas-login-screen .login-card h2,
body.app-ventas .ventas-login-screen .login-card label,
body.app-ventas .ventas-login-screen .login-notice strong {
  color: #ffffff;
}

body.app-ventas .ventas-login-screen .login-card .eyebrow,
body.app-ventas .ventas-login-screen .login-notice p,
body.app-ventas .ventas-login-screen .copyright-line {
  color: rgb(209 250 229 / 68%);
}

body.app-ventas .ventas-login-screen .login-notice {
  border-color: rgb(16 185 129 / 22%);
  background: rgb(255 255 255 / 7%);
}

body.app-ventas .ventas-login-screen .sales-access-points,
body.app-ventas .ventas-login-screen .sales-login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.app-ventas .ventas-login-screen .sales-access-points span,
body.app-ventas .ventas-login-screen .sales-login-benefits span {
  border: 1px solid rgb(209 250 229 / 16%);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(16 185 129 / 10%);
  color: rgb(236 253 245 / 86%);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

body.app-ventas .ventas-login-screen .sales-login-benefits {
  margin-top: -2px;
}

body.app-ventas .ventas-login-screen .sales-login-benefits span {
  background: linear-gradient(135deg, rgb(245 158 11 / 20%), rgb(16 185 129 / 16%));
  color: #ffffff;
}

body.app-ventas .ventas-login-screen .login-card input {
  border-color: rgb(209 250 229 / 18%);
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

body.app-ventas .ventas-login-screen .login-card input::placeholder {
  color: rgb(209 250 229 / 50%);
}

body.app-ventas .ventas-login-screen .login-card .primary-button {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #052e2b;
}

body.app-correspondencia .correspondence-login-screen {
  align-items: center;
  padding: clamp(16px, 3vw, 34px);
  background:
    linear-gradient(115deg, rgb(2 8 23 / 88%), rgb(8 23 53 / 46%) 52%, rgb(239 246 255 / 92%)),
    url("assets/brand/login-correspondencia-background.svg") center / cover no-repeat !important;
}

body.app-correspondencia .correspondence-login-screen .login-layout {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - 42px));
  max-height: none;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.app-correspondencia .correspondence-login-screen .login-intro {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 100%;
  border: 1px solid rgb(191 219 254 / 17%);
  border-radius: 42px 0 0 42px;
  padding: clamp(24px, 4vw, 46px);
  clip-path: none;
  background:
    linear-gradient(160deg, rgb(2 8 23 / 84%), rgb(29 78 216 / 34%)),
    radial-gradient(circle at 52% 40%, rgb(96 165 250 / 22%), transparent 34%);
  box-shadow: 0 36px 120px rgb(2 8 23 / 30%);
}

body.app-correspondencia .correspondence-login-screen .correspondence-login-scene {
  min-height: clamp(300px, 46vh, 430px);
  align-self: center;
  transform: translateY(-2%);
}

body.app-correspondencia .correspondence-login-screen .login-copy {
  max-width: 650px;
}

body.app-correspondencia .correspondence-login-screen .login-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.65rem, 5.4vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

body.app-correspondencia .correspondence-login-screen .login-copy p:not(.eyebrow) {
  max-width: 580px;
  color: rgb(219 234 254 / 84%);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

body.app-correspondencia .correspondence-login-screen .login-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-correspondencia .correspondence-login-screen .login-highlights div {
  min-height: 102px;
  border-radius: 18px;
  background: rgb(255 255 255 / 8%);
}

body.app-correspondencia .correspondence-login-screen .login-card {
  position: relative;
  align-self: center;
  min-height: min(620px, 100%);
  border: 1px solid rgb(37 99 235 / 14%);
  border-left: 0;
  border-radius: 0 42px 42px 0;
  padding: clamp(28px, 4.4vw, 54px);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 95%), rgb(248 251 255 / 90%)),
    radial-gradient(circle at 92% 8%, rgb(59 130 246 / 10%), transparent 30%);
  box-shadow: 0 36px 120px rgb(15 23 42 / 16%);
}

body.app-correspondencia .correspondence-login-screen .login-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(28px, 5vw, 56px);
  bottom: clamp(28px, 5vw, 56px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgb(37 99 235 / 28%), transparent);
}

body.app-zow-panel-login .correspondence-login-screen .login-layout {
  width: min(1220px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

body.app-zow-panel-login .correspondence-login-screen .login-intro {
  order: 1;
  border-radius: 34px;
  clip-path: none;
}

body.app-zow-panel-login .correspondence-login-screen .login-card {
  order: 2;
  border: 1px solid rgb(99 102 241 / 16%);
  border-radius: 34px;
}

/* SYSTEM ZOW owner login: distinct SaaS command-center identity. */
body.app-zow-panel-login .correspondence-login-screen {
  background:
    radial-gradient(circle at 14% 18%, rgb(34 211 238 / 18%), transparent 28%),
    radial-gradient(circle at 88% 14%, rgb(99 102 241 / 20%), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07111f 48%, #0f172a 100%) !important;
}

body.app-zow-panel-login .correspondence-login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgb(125 211 252 / 10%) 49.8% 50%, transparent 50% 100%),
    linear-gradient(0deg, transparent 0 49.8%, rgb(129 140 248 / 8%) 49.8% 50%, transparent 50% 100%);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
  opacity: 0.48;
}

body.app-zow-panel-login .correspondence-login-screen .login-layout {
  width: min(1180px, calc(100vw - 48px));
  min-height: min(720px, calc(100dvh - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
  gap: 0;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 34px;
  background: rgb(2 6 23 / 58%);
  box-shadow:
    0 34px 120px rgb(0 0 0 / 48%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  backdrop-filter: blur(22px);
}

body.app-zow-panel-login .correspondence-login-screen .login-intro {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 34px 0 0 34px;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(circle at 52% 42%, rgb(34 211 238 / 22%), transparent 28%),
    radial-gradient(circle at 84% 74%, rgb(79 70 229 / 24%), transparent 34%),
    linear-gradient(145deg, rgb(2 6 23 / 96%), rgb(15 23 42 / 92%) 56%, rgb(30 41 59 / 88%));
}

body.app-zow-panel-login .correspondence-login-screen .login-intro::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(125 211 252 / 12%);
  border-radius: 26px;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent, rgb(255 255 255 / 6%), transparent 44%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgb(125 211 252 / 4%) 38px 39px);
}

body.app-zow-panel-login .correspondence-login-screen .login-intro::after {
  content: "PRODUCCION SEGURA";
  position: absolute;
  right: clamp(22px, 4vw, 44px);
  top: clamp(22px, 4vw, 42px);
  border: 1px solid rgb(34 211 238 / 22%);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgb(15 23 42 / 72%);
  color: #a5f3fc;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
}

body.app-zow-panel-login .correspondence-login-screen .panel-login-scene {
  min-height: clamp(250px, 34vh, 360px);
  margin: 12px 0 22px;
}

body.app-zow-panel-login .panel-network-grid {
  inset: 4% 2%;
  transform: rotateX(64deg) rotateZ(-18deg) translateZ(-44px);
}

body.app-zow-panel-login .panel-network-grid span {
  border-color: rgb(125 211 252 / 16%);
  box-shadow: 0 0 32px rgb(34 211 238 / 6%);
}

body.app-zow-panel-login .panel-core-orb {
  width: 164px;
  height: 164px;
  border-color: rgb(125 211 252 / 40%);
  background:
    radial-gradient(circle at 30% 22%, rgb(255 255 255 / 34%), transparent 23%),
    conic-gradient(from 110deg, #67e8f9, #2563eb, #818cf8, #22c55e, #67e8f9);
  box-shadow:
    0 0 78px rgb(34 211 238 / 28%),
    0 24px 80px rgb(37 99 235 / 24%),
    inset 0 0 30px rgb(255 255 255 / 18%);
}

body.app-zow-panel-login .panel-core-orb span {
  width: 110px;
  height: 110px;
  background:
    radial-gradient(circle at 50% 0%, rgb(34 211 238 / 18%), transparent 45%),
    #020617;
  box-shadow: inset 0 0 22px rgb(34 211 238 / 14%);
}

body.app-zow-panel-login .panel-system-card {
  width: 130px;
  border-color: rgb(148 163 184 / 18%);
  background:
    linear-gradient(145deg, rgb(15 23 42 / 74%), rgb(30 41 59 / 52%));
  box-shadow:
    0 22px 70px rgb(0 0 0 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
}

body.app-zow-panel-login .card-correspondence::before,
body.app-zow-panel-login .card-sales::before,
body.app-zow-panel-login .card-health::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  box-shadow: 0 0 22px rgb(34 211 238 / 22%);
}

body.app-zow-panel-login .card-sales::before {
  background: linear-gradient(135deg, #34d399, #f59e0b);
}

body.app-zow-panel-login .card-health::before {
  background: linear-gradient(135deg, #a7f3d0, #22c55e);
}

body.app-zow-panel-login .correspondence-login-screen .login-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

body.app-zow-panel-login .correspondence-login-screen .login-copy h1 {
  max-width: 12ch;
  color: white;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

body.app-zow-panel-login .correspondence-login-screen .login-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: rgb(226 232 240 / 86%);
  font-size: 1rem;
}

body.app-zow-panel-login .correspondence-login-screen .login-highlights {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
}

body.app-zow-panel-login .correspondence-login-screen .login-highlights div {
  border: 1px solid rgb(125 211 252 / 14%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(15 23 42 / 72%), rgb(30 41 59 / 42%));
}

body.app-zow-panel-login .correspondence-login-screen .login-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgb(148 163 184 / 14%);
  border-radius: 0 34px 34px 0;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 14% 8%, rgb(34 211 238 / 12%), transparent 28%),
    linear-gradient(180deg, rgb(248 250 252 / 98%), rgb(226 232 240 / 94%));
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 72%);
}

body.app-zow-panel-login .correspondence-login-screen .login-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #67e8f9, #2563eb 54%, #4f46e5);
  box-shadow: 0 18px 44px rgb(37 99 235 / 24%);
}

body.app-zow-panel-login .correspondence-login-screen .login-card h2 {
  max-width: 11ch;
  color: #020617;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 0.98;
}

body.app-zow-panel-login .correspondence-login-screen .login-notice {
  border-color: rgb(37 99 235 / 14%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(219 234 254 / 62%));
}

body.app-zow-panel-login .correspondence-login-screen .login-card input {
  min-height: 50px;
  border-color: rgb(15 23 42 / 12%);
  border-radius: 14px;
  background: white;
}

body.app-zow-panel-login .correspondence-login-screen .login-card .primary-button {
  min-height: 54px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #020617, #1d4ed8 62%, #06b6d4);
  box-shadow: 0 18px 44px rgb(37 99 235 / 28%);
}

body.app-zow-panel-login .correspondence-login-screen .copyright-line {
  color: #64748b;
}

@media (max-width: 980px) {
  body.app-zow-panel-login .correspondence-login-screen {
    min-height: 100dvh;
    padding: 12px !important;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-layout {
    width: min(100%, 720px);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-intro,
  body.app-zow-panel-login .correspondence-login-screen .login-card {
    border-radius: 26px;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-intro {
    padding: 24px;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-card {
    padding: 24px;
  }

  body.app-zow-panel-login .correspondence-login-screen .panel-login-scene {
    min-height: 190px;
    margin: -4px 0 10px;
    transform: scale(0.86);
  }

  body.app-zow-panel-login .correspondence-login-screen .login-copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 13vw, 4rem);
    line-height: 0.94;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-highlights {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 560px) {
  body.app-zow-panel-login .correspondence-login-screen .login-intro::after {
    position: static;
    display: inline-flex;
    width: max-content;
    margin-bottom: 12px;
  }

  body.app-zow-panel-login .correspondence-login-screen .panel-login-scene {
    min-height: 155px;
    transform: scale(0.74);
  }

  body.app-zow-panel-login .panel-system-card {
    width: 112px;
    padding: 10px;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-highlights {
    grid-template-columns: 1fr;
  }

  body.app-zow-panel-login .correspondence-login-screen .login-card h2 {
    max-width: 100%;
    font-size: 2rem;
  }
}

@media (max-width: 980px) {
  body.app-ventas .ventas-login-screen,
  body.app-correspondencia .correspondence-login-screen {
    align-items: flex-start;
    padding: 10px;
  }

  body.app-ventas .ventas-login-screen .login-layout,
  body.app-correspondencia .correspondence-login-screen .login-layout,
  body.app-zow-panel-login .correspondence-login-screen .login-layout {
    width: min(100%, 680px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.app-ventas .ventas-login-screen .login-intro,
  body.app-correspondencia .correspondence-login-screen .login-intro,
  body.app-zow-panel-login .correspondence-login-screen .login-intro {
    border-radius: 26px;
  }

  body.app-ventas .ventas-login-screen .login-card,
  body.app-correspondencia .correspondence-login-screen .login-card,
  body.app-zow-panel-login .correspondence-login-screen .login-card {
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 26px;
    min-height: 0;
  }

  body.app-ventas .ventas-login-screen .login-copy h1,
  body.app-correspondencia .correspondence-login-screen .login-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.35rem);
  }

  body.app-ventas .ventas-login-screen .ventas-login-scene,
  body.app-correspondencia .correspondence-login-screen .correspondence-login-scene {
    min-height: 190px;
    transform: scale(0.82);
    margin: -16px 0;
  }

  body.app-ventas .ventas-login-screen .sales-login-window {
    display: none;
  }
}

@media (max-width: 640px) {
  body.app-ventas .ventas-login-screen .login-intro,
  body.app-correspondencia .correspondence-login-screen .login-intro,
  body.app-zow-panel-login .correspondence-login-screen .login-intro {
    padding: 20px;
  }

  body.app-ventas .ventas-login-screen .login-card,
  body.app-correspondencia .correspondence-login-screen .login-card,
  body.app-zow-panel-login .correspondence-login-screen .login-card {
    padding: 20px;
  }

  body.app-ventas .ventas-login-screen .login-highlights,
  body.app-correspondencia .correspondence-login-screen .login-highlights {
    grid-template-columns: 1fr;
  }
}

/* Login composition corrections: prevent overlap and keep authentication UI fast. */
.login-card.is-loading {
  pointer-events: none;
}

.login-card.is-loading .primary-button {
  position: relative;
  opacity: 0.92;
}

.login-card.is-loading .primary-button::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -3px;
  animation: loginButtonSpin 720ms linear infinite;
}

@keyframes loginButtonSpin {
  to { transform: rotate(360deg); }
}

body.app-correspondencia .correspondence-login-screen .login-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.98fr);
  width: min(1100px, calc(100vw - 72px));
  overflow: hidden;
  border-radius: 36px;
  background: rgb(255 255 255 / 4%);
}

body.app-correspondencia .correspondence-login-screen .login-intro {
  overflow: hidden;
  border-radius: 36px 0 0 36px;
}

body.app-correspondencia .correspondence-login-screen .login-copy {
  position: relative;
  z-index: 4;
  max-width: min(520px, 100%);
}

body.app-correspondencia .correspondence-login-screen .login-copy h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
  line-height: 0.95;
}

body.app-correspondencia .correspondence-login-screen .login-copy p:not(.eyebrow) {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.app-correspondencia .correspondence-login-screen .login-highlights {
  position: relative;
  z-index: 4;
}

body.app-correspondencia .correspondence-login-screen .login-card {
  z-index: 6;
  border-left: 1px solid rgb(37 99 235 / 10%);
  border-radius: 0 36px 36px 0;
}

body.app-correspondencia .correspondence-login-screen .correspondence-login-scene {
  z-index: 1;
  max-width: 100%;
  min-height: clamp(230px, 36vh, 330px);
  transform: translateY(-3%) scale(0.9);
}

body.app-ventas .ventas-login-screen .login-layout {
  width: min(1180px, calc(100vw - 56px));
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
}

body.app-ventas .ventas-login-screen .login-intro {
  overflow: hidden;
}

body.app-ventas .ventas-login-screen .login-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.7rem);
}

body.app-ventas .ventas-login-screen .ventas-login-scene {
  min-height: clamp(230px, 36vh, 340px);
}

@media (max-width: 980px) {
  body.app-correspondencia .correspondence-login-screen .login-layout,
  body.app-ventas .ventas-login-screen .login-layout {
    width: min(100%, 680px);
    overflow: visible;
    border-radius: 0;
  }

  body.app-correspondencia .correspondence-login-screen .login-intro,
  body.app-correspondencia .correspondence-login-screen .login-card,
  body.app-ventas .ventas-login-screen .login-intro,
  body.app-ventas .ventas-login-screen .login-card {
    border-radius: 24px;
  }
}

/* Correspondencia login: institutional document-control identity. */
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen {
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.4vw, 28px);
  overflow: auto;
  background:
    radial-gradient(circle at 18% 18%, rgb(56 189 248 / 24%), transparent 26rem),
    radial-gradient(circle at 78% 12%, rgb(99 102 241 / 18%), transparent 24rem),
    linear-gradient(135deg, #071327 0%, #0c2447 44%, #eef6ff 100%) !important;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgb(15 23 42 / 26%) 74%);
  background-size: 54px 54px, 54px 54px, auto;
  mask-image: linear-gradient(135deg, black, transparent 88%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(239 246 255 / 74%), transparent);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1140px, calc(100vw - clamp(24px, 5vw, 72px)));
  min-height: min(690px, calc(100svh - clamp(24px, 5vw, 72px)));
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(191 219 254 / 26%);
  border-radius: 34px;
  background: rgb(241 247 255 / 8%);
  box-shadow:
    0 34px 110px rgb(2 8 23 / 34%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
  backdrop-filter: blur(18px);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
  position: relative;
  display: grid;
  min-height: 100%;
  grid-template-rows: minmax(250px, 1fr) auto auto;
  overflow: hidden;
  border: 0;
  border-radius: 34px 0 0 34px;
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(circle at 48% 22%, rgb(147 197 253 / 24%), transparent 25%),
    linear-gradient(150deg, rgb(5 19 47 / 96%), rgb(30 64 175 / 76%) 58%, rgb(14 116 144 / 48%));
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgb(191 219 254 / 14%);
  border-radius: 26px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent, rgb(255 255 255 / 7%), transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgb(219 234 254 / 5%) 42px 43px);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro::after {
  content: "CONTROL DE RUTA DOCUMENTAL";
  position: absolute;
  right: clamp(22px, 4vw, 44px);
  top: clamp(22px, 4vw, 42px);
  z-index: 4;
  border: 1px solid rgb(147 197 253 / 24%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(15 23 42 / 48%);
  color: #dbeafe;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
  position: relative;
  z-index: 2;
  min-height: clamp(250px, 38vh, 350px);
  max-width: 100%;
  align-self: center;
  transform: perspective(900px) rotateX(var(--doc-tilt-x, 0deg)) rotateY(var(--doc-tilt-y, 0deg)) scale(0.88);
  transform-origin: center;
  transition: transform 160ms ease;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .document-folder-3d {
  filter: drop-shadow(0 32px 54px rgb(0 0 0 / 24%));
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .route-path {
  stroke-dasharray: 12 10;
  animation: correspondenceRouteFlow 4.8s linear infinite;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .route-packet {
  box-shadow: 0 0 26px rgb(125 211 252 / 38%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights {
  position: relative;
  z-index: 4;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
  max-width: 12ch;
  margin: 8px 0 12px;
  color: white;
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
  line-height: 0.92;
  text-wrap: balance;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy p:not(.eyebrow) {
  display: block;
  max-width: 56ch;
  color: rgb(219 234 254 / 86%);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.55;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(18px, 3vw, 30px);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights div {
  min-height: 92px;
  border: 1px solid rgb(191 219 254 / 16%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 5%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
  position: relative;
  z-index: 5;
  display: grid;
  align-self: stretch;
  align-content: center;
  min-height: 100%;
  border: 0;
  border-radius: 0 34px 34px 0;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 92% 8%, rgb(59 130 246 / 11%), transparent 30%),
    linear-gradient(180deg, rgb(255 255 255 / 97%), rgb(235 244 255 / 94%));
  color: #142033;
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 68%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #dbeafe, #38bdf8 52%, #2563eb);
  box-shadow: 0 18px 44px rgb(37 99 235 / 22%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card h2 {
  max-width: 12ch;
  color: #0f172a;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  line-height: 1;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-notice {
  border-color: rgb(37 99 235 / 14%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(219 234 254 / 70%));
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card input {
  min-height: 50px;
  border-color: rgb(30 64 175 / 14%);
  border-radius: 14px;
  background: white;
  color: #0f172a;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card input:focus {
  border-color: rgb(37 99 235 / 52%);
  box-shadow: 0 0 0 4px rgb(59 130 246 / 13%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card .primary-button {
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  color: white;
  box-shadow: 0 18px 44px rgb(37 99 235 / 28%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .copyright-line {
  color: #64748b;
}

@keyframes correspondenceRouteFlow {
  to { stroke-dashoffset: -44; }
}

@media (max-height: 760px) and (min-width: 981px) {
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout {
    min-height: calc(100svh - 28px);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    padding: 24px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
    min-height: 220px;
    margin: -18px 0;
    transform: perspective(900px) rotateX(var(--doc-tilt-x, 0deg)) rotateY(var(--doc-tilt-y, 0deg)) scale(0.76);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
    font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights div {
    min-height: 78px;
  }
}

@media (max-width: 980px) {
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen {
    align-items: flex-start;
    padding: 12px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout {
    width: min(100%, 720px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    border-radius: 26px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
    min-height: auto;
    grid-template-rows: auto auto auto;
    padding: 22px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro::after {
    position: static;
    width: max-content;
    margin-bottom: 12px;
    order: -2;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
    min-height: 170px;
    margin: -22px 0 -4px;
    transform: scale(0.68);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    min-height: 0;
    padding: 22px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card::before {
    display: none;
  }
}

@media (max-width: 560px) {
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
    padding: 18px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
    min-height: 132px;
    margin: -28px 0 -10px;
    transform: scale(0.52);
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights {
    grid-template-columns: 1fr;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights div {
    min-height: 64px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card h2 {
    max-width: 100%;
    font-size: 2rem;
  }
}

/* SYSTEM ZOW cinematic landing experience inspired by high-end SaaS motion sites. */
body.system-zow-site {
  --zow-pointer-x: 0px;
  --zow-pointer-y: 0px;
  --zow-scroll-depth: 0;
  background:
    radial-gradient(circle at calc(50% + var(--zow-pointer-x) * 0.04) calc(8% + var(--zow-pointer-y) * 0.03), rgb(111 66 255 / 22%), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgb(0 229 255 / 13%), transparent 30rem),
    linear-gradient(180deg, #03030a 0%, #070814 48%, #f7fbff 78%, #f7fbff 100%);
}

body.system-zow-site .site-ambient {
  opacity: 0.4;
  filter: saturate(1.35);
}

body.system-zow-site .site-header {
  width: min(1380px, calc(100% - 34px));
  border-color: rgb(167 139 250 / 16%);
  background: rgb(2 6 23 / 60%);
  box-shadow: 0 18px 70px rgb(0 0 0 / 26%), inset 0 1px 0 rgb(255 255 255 / 8%);
}

body.system-zow-site .site-header.is-scrolled {
  background: rgb(2 6 23 / 76%);
}

body.system-zow-site .site-nav a {
  color: rgb(226 232 240 / 78%);
}

body.system-zow-site .site-nav a:hover,
body.system-zow-site .site-nav a.is-active {
  color: #ffffff;
  background: rgb(139 92 246 / 15%);
}

body.system-zow-site .site-hero {
  width: min(1380px, calc(100% - 32px));
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: clamp(86px, 10vh, 130px) 0 clamp(42px, 7vh, 82px);
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(22px, 4vw, 54px);
  perspective: 1400px;
}

body.system-zow-site .site-hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(20px, 4vw, 42px) 0;
}

body.system-zow-site .hero-badge {
  border-color: rgb(167 139 250 / 22%);
  background: rgb(15 23 42 / 72%);
  color: rgb(237 233 254 / 86%);
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(3rem, 6.1vw, 6.9rem);
  text-shadow: 0 28px 90px rgb(139 92 246 / 26%);
}

body.system-zow-site .site-hero-copy p {
  color: rgb(226 232 240 / 74%);
}

body.system-zow-site .hero-metrics article {
  border-color: rgb(167 139 250 / 16%);
  background: rgb(15 23 42 / 60%);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

body.system-zow-site .hero-metrics span {
  color: rgb(226 232 240 / 62%);
}

body.system-zow-site .primary-button {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  box-shadow: 0 18px 52px rgb(139 92 246 / 28%);
}

body.system-zow-site .ghost-button {
  border-color: rgb(167 139 250 / 22%);
  background: rgb(15 23 42 / 52%);
  color: #ffffff;
}

body.system-zow-site .site-hero-visual {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  transform:
    rotateX(calc(var(--zow-pointer-y, 0px) * -0.006deg))
    rotateY(calc(var(--zow-pointer-x, 0px) * 0.006deg))
    translateY(calc(var(--zow-scroll-depth, 0) * -20px));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
}

body.system-zow-site .site-hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 4%;
  border-radius: 34px;
  background: radial-gradient(circle, rgb(139 92 246 / 24%), transparent 62%);
  filter: blur(42px);
  opacity: 0.92;
}

body.system-zow-site .zow-cinematic-frame {
  position: relative;
  z-index: 4;
  width: min(920px, 100%);
  min-height: clamp(440px, 62vh, 650px);
  overflow: hidden;
  border: 1px solid rgb(167 139 250 / 22%);
  border-radius: 24px;
  background:
    radial-gradient(circle at calc(22% + var(--zow-pointer-x) * 0.02) calc(34% + var(--zow-pointer-y) * 0.02), rgb(139 92 246 / 30%), transparent 24rem),
    linear-gradient(180deg, rgb(3 3 10 / 96%), rgb(1 2 10 / 94%));
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 4%) inset,
    0 0 58px rgb(139 92 246 / 32%),
    0 44px 130px rgb(0 0 0 / 44%);
  transform: translateZ(86px);
}

body.system-zow-site .zow-cinematic-frame::before,
body.system-zow-site .zow-cinematic-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.system-zow-site .zow-cinematic-frame::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgb(167 139 250 / 12%) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 78%);
}

body.system-zow-site .zow-cinematic-frame::after {
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgb(139 92 246 / 58%), rgb(34 211 238 / 48%), transparent);
  opacity: 0.26;
  filter: blur(12px);
  animation: zowFrameGlow 4.6s ease-in-out infinite;
}

body.system-zow-site #zowFiberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.system-zow-site .zow-fiber-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgb(0 0 0 / 54%) 86%),
    linear-gradient(90deg, rgb(0 0 0 / 22%), transparent 24%, transparent 76%, rgb(0 0 0 / 32%));
}

body.system-zow-site .zow-cinematic-nav {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgb(226 232 240 / 62%);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.system-zow-site .zow-cinematic-nav strong {
  margin-right: auto;
  color: #ffffff;
  letter-spacing: 0;
}

body.system-zow-site .zow-cinematic-nav i {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
  font-style: normal;
}

body.system-zow-site .zow-cinematic-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 7%, 72px);
  bottom: clamp(34px, 9%, 78px);
  width: min(430px, 62%);
  color: #ffffff;
}

body.system-zow-site .zow-cinematic-copy span {
  display: block;
  margin-bottom: 12px;
  color: rgb(196 181 253 / 86%);
  font-size: 0.76rem;
  font-weight: 950;
}

body.system-zow-site .zow-cinematic-copy strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 0.96;
  text-wrap: balance;
}

body.system-zow-site .zow-cinematic-copy p {
  margin: 14px 0 0;
  color: rgb(226 232 240 / 68%);
  line-height: 1.5;
}

body.system-zow-site .zow-cinematic-dashboard {
  position: absolute;
  z-index: 4;
  right: clamp(26px, 6%, 68px);
  bottom: clamp(26px, 8%, 72px);
  width: min(500px, 58%);
  min-height: 250px;
  border: 1px solid rgb(226 232 240 / 14%);
  border-radius: 20px;
  padding: 18px 18px 18px 82px;
  background: rgb(8 10 20 / 72%);
  box-shadow: 0 30px 90px rgb(0 0 0 / 42%);
  backdrop-filter: blur(18px);
  transform: translate3d(calc(var(--zow-pointer-x) * -0.018), calc(var(--zow-pointer-y) * -0.014), 120px);
}

body.system-zow-site .cinematic-sidebar {
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 46px;
  border-right: 1px solid rgb(255 255 255 / 8%);
  display: grid;
  align-content: start;
  gap: 12px;
}

body.system-zow-site .cinematic-sidebar span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgb(255 255 255 / 10%);
}

body.system-zow-site .cinematic-sidebar span:first-child {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
}

body.system-zow-site .cinematic-panel-head,
body.system-zow-site .cinematic-metrics {
  display: flex;
  gap: 12px;
  align-items: center;
}

body.system-zow-site .cinematic-panel-head {
  justify-content: space-between;
  color: white;
}

body.system-zow-site .cinematic-panel-head i {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(34 197 94 / 16%);
  color: #86efac;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

body.system-zow-site .cinematic-metrics {
  margin: 20px 0;
}

body.system-zow-site .cinematic-metrics article {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 7%);
}

body.system-zow-site .cinematic-metrics span,
body.system-zow-site .cinematic-metrics strong {
  display: block;
}

body.system-zow-site .cinematic-metrics span {
  color: rgb(226 232 240 / 50%);
  font-size: 0.72rem;
  font-weight: 850;
}

body.system-zow-site .cinematic-metrics strong {
  margin-top: 5px;
  color: white;
  font-size: 1rem;
}

body.system-zow-site .cinematic-chart {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.55fr;
  gap: 10px;
  align-items: end;
  min-height: 88px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

body.system-zow-site .cinematic-chart span {
  display: block;
  border-radius: 13px 13px 5px 5px;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  box-shadow: 0 18px 45px rgb(139 92 246 / 26%);
}

body.system-zow-site .cinematic-chart span:nth-child(1) { height: 82px; }
body.system-zow-site .cinematic-chart span:nth-child(2) { height: 62px; }
body.system-zow-site .cinematic-chart span:nth-child(3) { height: 48px; }
body.system-zow-site .cinematic-chart span:nth-child(4) { height: 34px; }

body.system-zow-site #zowHeroCanvas,
body.system-zow-site .tech-orbit-stack {
  opacity: 0.12;
}

body.system-zow-site .holo-panel.tech-command-panel {
  position: absolute;
  z-index: 5;
  left: 5%;
  top: 11%;
  width: min(310px, 42%);
  min-height: 0;
  padding: 14px;
  opacity: 0.78;
  transform: translateZ(150px) translate3d(calc(var(--zow-pointer-x) * 0.014), calc(var(--zow-pointer-y) * 0.01), 0);
}

body.system-zow-site .holo-main,
body.system-zow-site .holo-grid {
  display: none;
}

body.system-zow-site .floating-tech-card {
  z-index: 6;
  border-color: rgb(167 139 250 / 18%);
  background: rgb(9 12 28 / 74%);
  color: white;
  backdrop-filter: blur(16px);
}

body.system-zow-site .floating-tech-card.card-a {
  right: 8%;
  top: 9%;
}

body.system-zow-site .floating-tech-card.card-b {
  left: 8%;
  bottom: 9%;
}

body.system-zow-site .floating-tech-card.card-c {
  right: 16%;
  bottom: 4%;
}

@keyframes zowFrameGlow {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.46; }
}

@media (max-width: 1100px) {
  body.system-zow-site .site-hero {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .site-hero-visual {
    min-height: clamp(500px, 68vh, 680px);
  }

  body.system-zow-site .zow-cinematic-frame {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.system-zow-site .site-hero {
    width: min(100% - 22px, 640px);
    padding-top: 104px;
  }

  body.system-zow-site .site-hero-visual {
    min-height: 520px;
  }

  body.system-zow-site .zow-cinematic-frame {
    min-height: 440px;
    border-radius: 18px;
  }

  body.system-zow-site .zow-cinematic-nav {
    left: 16px;
    right: 16px;
    gap: 10px;
  }

  body.system-zow-site .zow-cinematic-nav span {
    display: none;
  }

  body.system-zow-site .zow-cinematic-copy {
    left: 18px;
    right: 18px;
    bottom: 198px;
    width: auto;
  }

  body.system-zow-site .zow-cinematic-dashboard {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    min-height: 164px;
    padding: 14px 14px 14px 62px;
  }

  body.system-zow-site .cinematic-metrics {
    display: none;
  }

  body.system-zow-site .holo-panel.tech-command-panel,
  body.system-zow-site .floating-tech-card {
    display: none;
  }
}

/* SYSTEM ZOW clean commercial landing override. */
body.system-zow-site {
  --zow-clean-bg: #07111f;
  --zow-clean-surface: #ffffff;
  --zow-clean-muted: #5b6472;
  --zow-clean-ink: #132033;
  --zow-clean-line: rgb(20 38 63 / 12%);
  --zow-clean-blue: #1769ff;
  --zow-clean-cyan: #00c2d8;
  --zow-clean-green: #12a978;
  overflow-x: hidden;
  color: var(--zow-clean-ink);
  background:
    radial-gradient(circle at 18% 8%, rgb(23 105 255 / 22%), transparent 34rem),
    radial-gradient(circle at 84% 4%, rgb(0 194 216 / 16%), transparent 30rem),
    linear-gradient(180deg, #07111f 0%, #0a1728 34%, #f4f8fb 34%, #f7fbfd 100%);
}

body.system-zow-site .trust-seals-section,
body.system-zow-site .capability-section,
body.system-zow-site .sales-commercial-section,
body.system-zow-site .comparison-section,
body.system-zow-site .use-cases-section,
body.system-zow-site .system-finder-section,
body.system-zow-site .trust-section,
body.system-zow-site .final-cta-section {
  display: none !important;
}

body.system-zow-site .site-ambient {
  opacity: 0.34;
  filter: saturate(0.85);
}

body.system-zow-site .site-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(6 16 31 / 78%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 18%);
}

body.system-zow-site .site-header.is-scrolled {
  background: rgb(6 16 31 / 88%);
}

body.system-zow-site .site-brand-logo {
  width: clamp(138px, 16vw, 190px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgb(0 194 216 / 16%));
}

body.system-zow-site .site-nav {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 10%);
  box-shadow: none;
}

body.system-zow-site .site-nav a {
  color: rgb(244 248 255 / 78%);
}

body.system-zow-site .site-nav a:hover,
body.system-zow-site .site-nav a.is-active {
  color: #ffffff;
  background: rgb(255 255 255 / 10%);
}

body.system-zow-site .site-login-link {
  color: #07111f !important;
  background: linear-gradient(135deg, #ffffff, #c9f7ff) !important;
  box-shadow: 0 14px 30px rgb(0 194 216 / 20%);
}

body.system-zow-site .site-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: auto;
  padding: clamp(118px, 13vh, 154px) 0 clamp(56px, 8vh, 82px);
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

body.system-zow-site .site-hero::before {
  display: none;
}

body.system-zow-site .site-hero-copy {
  max-width: 690px;
  color: #ffffff;
}

body.system-zow-site .hero-badge {
  width: fit-content;
  color: #dffaff;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: none;
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: #ffffff;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

body.system-zow-site .site-hero-copy p {
  max-width: 650px;
  color: rgb(237 246 255 / 84%);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

body.system-zow-site .site-hero-actions {
  margin-top: 26px;
}

body.system-zow-site .primary-button,
body.system-zow-site .ghost-button,
body.system-zow-site .plan-cta,
body.system-zow-site .product-link {
  min-height: 48px;
  border-radius: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.system-zow-site .primary-button {
  color: #06111f;
  background: linear-gradient(135deg, #ffffff, #a6f6ff 45%, #66e4cd);
  box-shadow: 0 18px 42px rgb(0 194 216 / 24%);
}

body.system-zow-site .ghost-button {
  color: #ffffff;
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
}

body.system-zow-site .primary-button:hover,
body.system-zow-site .ghost-button:hover,
body.system-zow-site .plan-cta:hover,
body.system-zow-site .product-link:hover {
  transform: translateY(-2px);
}

body.system-zow-site .hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

body.system-zow-site .hero-metrics article {
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 8%);
  box-shadow: none;
}

body.system-zow-site .hero-metrics strong {
  color: #ffffff;
}

body.system-zow-site .hero-metrics span {
  color: rgb(229 244 255 / 76%);
}

body.system-zow-site .site-hero-visual {
  min-height: clamp(390px, 46vw, 560px);
  perspective: 1100px;
}

body.system-zow-site .site-hero-visual::before,
body.system-zow-site #zowHeroCanvas,
body.system-zow-site .tech-orbit-stack,
body.system-zow-site .holo-panel.tech-command-panel,
body.system-zow-site .floating-tech-card,
body.system-zow-site .zow-cinematic-dashboard,
body.system-zow-site .zow-cinematic-nav {
  display: none !important;
}

body.system-zow-site .zow-cinematic-frame {
  width: min(520px, 100%);
  min-height: clamp(380px, 44vw, 540px);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgb(12 33 62 / 94%), rgb(15 126 155 / 54%)),
    radial-gradient(circle at 30% 18%, rgb(255 255 255 / 18%), transparent 18rem);
  box-shadow: 0 32px 80px rgb(0 0 0 / 30%);
  transform: rotateY(-7deg) rotateX(4deg);
}

body.system-zow-site .zow-cinematic-frame::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body.system-zow-site .zow-cinematic-frame::after {
  content: "";
  position: absolute;
  inset: auto 54px 54px 54px;
  height: 150px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 5%)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 20%) 0 22px, transparent 22px 46px);
  box-shadow: 0 22px 60px rgb(0 0 0 / 18%);
}

body.system-zow-site #zowFiberCanvas {
  opacity: 0.34;
  mix-blend-mode: screen;
}

body.system-zow-site .zow-fiber-vignette {
  background: radial-gradient(circle at 45% 30%, transparent 0 44%, rgb(5 14 28 / 58%) 100%);
}

body.system-zow-site .zow-cinematic-copy {
  left: 42px;
  right: 42px;
  bottom: auto;
  top: 54px;
  width: auto;
  text-shadow: 0 16px 38px rgb(0 0 0 / 42%);
}

body.system-zow-site .zow-cinematic-copy span {
  color: #b8fbff;
}

body.system-zow-site .zow-cinematic-copy strong {
  max-width: 410px;
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

body.system-zow-site .zow-cinematic-copy p {
  max-width: 390px;
  color: rgb(241 250 255 / 82%);
}

body.system-zow-site .site-section {
  width: min(1180px, calc(100% - 32px));
  padding: clamp(54px, 8vw, 84px) 0;
  color: var(--zow-clean-ink);
}

body.system-zow-site .site-section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

body.system-zow-site .site-section-head h2 {
  color: var(--zow-clean-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
  text-wrap: balance;
}

body.system-zow-site .site-section-head p,
body.system-zow-site .product-card p,
body.system-zow-site .pricing-card small,
body.system-zow-site .service-card p,
body.system-zow-site .contact-card p,
body.system-zow-site .location-card p {
  color: var(--zow-clean-muted);
  line-height: 1.6;
}

body.system-zow-site .eyebrow,
body.system-zow-site .status-pill,
body.system-zow-site .pricing-card span,
body.system-zow-site .contact-card span,
body.system-zow-site .location-card span {
  color: var(--zow-clean-blue);
  letter-spacing: 0;
}

body.system-zow-site .system-snapshot,
body.system-zow-site .product-points,
body.system-zow-site .contact-assurance {
  display: none !important;
}

body.system-zow-site .product-grid,
body.system-zow-site .services-grid,
body.system-zow-site .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.system-zow-site .services-grid,
body.system-zow-site .pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form {
  overflow: hidden;
  border: 1px solid var(--zow-clean-line);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 20px 60px rgb(15 36 62 / 8%);
  backdrop-filter: blur(16px);
}

body.system-zow-site .product-card,
body.system-zow-site .service-card,
body.system-zow-site .pricing-card {
  min-height: auto;
  padding: 22px;
}

body.system-zow-site .product-card.system-card {
  grid-template-rows: auto 1fr;
}

body.system-zow-site .product-visual {
  min-height: 178px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef8ff, #ffffff);
}

body.system-zow-site .product-visual img {
  max-width: 68%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgb(20 39 69 / 12%));
}

body.system-zow-site .product-card h3,
body.system-zow-site .pricing-card strong,
body.system-zow-site .service-card strong,
body.system-zow-site .contact-card strong,
body.system-zow-site .location-card strong {
  color: var(--zow-clean-ink);
}

body.system-zow-site .product-content {
  padding: 18px 0 0;
}

body.system-zow-site .product-link,
body.system-zow-site .plan-cta {
  width: 100%;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--zow-clean-blue), var(--zow-clean-cyan));
  box-shadow: 0 14px 30px rgb(23 105 255 / 18%);
}

body.system-zow-site .site-band {
  width: 100%;
  max-width: none;
  padding: clamp(60px, 8vw, 92px) max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #edf7ff, #ffffff 46%, #effcf9);
}

body.system-zow-site .pricing-card.is-featured {
  border-color: rgb(23 105 255 / 28%);
  box-shadow: 0 24px 70px rgb(23 105 255 / 12%);
}

body.system-zow-site .pricing-features {
  margin: 18px 0;
  color: var(--zow-clean-muted);
}

body.system-zow-site .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: 22px;
  align-items: start;
}

body.system-zow-site .contact-hub {
  display: grid;
  gap: 16px;
}

body.system-zow-site .channel-list,
body.system-zow-site .location-grid,
body.system-zow-site .contact-actions {
  display: grid;
  gap: 10px;
}

body.system-zow-site .channel-list a,
body.system-zow-site .contact-actions a,
body.system-zow-site .quick-contact a {
  border: 1px solid rgb(23 105 255 / 13%);
  border-radius: 14px;
  background: #f5faff;
  color: var(--zow-clean-ink);
}

body.system-zow-site .contact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.system-zow-site .request-form {
  padding: 22px;
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  color: var(--zow-clean-ink);
  background: #f8fbff;
  border-color: rgb(20 38 63 / 16%);
}

body.system-zow-site .site-footer {
  border-top: 1px solid rgb(20 38 63 / 10%);
  color: #5b6472;
  background: #ffffff;
}

body.system-zow-site .floating-whatsapp {
  background: linear-gradient(135deg, #14b87f, #00c2d8);
}

@media (max-width: 1100px) {
  body.system-zow-site .site-hero,
  body.system-zow-site .contact-section {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .zow-cinematic-frame {
    margin: 0;
    transform: none;
  }

  body.system-zow-site .product-grid,
  body.system-zow-site .services-grid,
  body.system-zow-site .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.system-zow-site {
    background:
      radial-gradient(circle at 30% 0%, rgb(23 105 255 / 24%), transparent 18rem),
      linear-gradient(180deg, #07111f 0%, #0a1728 48%, #f7fbfd 48%, #f7fbfd 100%);
  }

  body.system-zow-site .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 10px 12px;
  }

  body.system-zow-site .site-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  body.system-zow-site .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 20px;
    background: rgb(6 16 31 / 95%);
  }

  body.system-zow-site.site-menu-open .site-nav,
  body.system-zow-site .site-menu-open .site-nav,
  body.site-menu-open.system-zow-site .site-nav {
    display: grid;
  }

  body.system-zow-site .site-nav a,
  body.system-zow-site .site-nav .site-login-link {
    min-height: 44px;
    justify-content: center;
  }

  body.system-zow-site .site-hero {
    width: calc(100% - 22px);
    padding-top: 104px;
    gap: 28px;
  }

  body.system-zow-site .site-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  body.system-zow-site .site-hero-actions,
  body.system-zow-site .hero-metrics,
  body.system-zow-site .contact-actions {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .site-hero-visual {
    min-height: 340px;
  }

  body.system-zow-site .zow-cinematic-frame {
    width: 100%;
    min-height: 340px;
    border-radius: 24px;
  }

  body.system-zow-site .zow-cinematic-copy {
    top: 32px;
    left: 26px;
    right: 26px;
  }

  body.system-zow-site .zow-cinematic-copy strong {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  body.system-zow-site .site-section {
    width: calc(100% - 22px);
    padding: 48px 0;
  }

  body.system-zow-site .product-grid,
  body.system-zow-site .services-grid,
  body.system-zow-site .pricing-grid {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .site-band {
    padding-left: 11px;
    padding-right: 11px;
  }

  body.system-zow-site .product-visual {
    min-height: 148px;
  }
}

/* SYSTEM ZOW responsive polish: stronger large-screen layout and richer mobile presentation. */
body.system-zow-site {
  background:
    radial-gradient(circle at 10% 4%, rgb(23 105 255 / 28%), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgb(0 194 216 / 24%), transparent 36rem),
    radial-gradient(circle at 58% 22%, rgb(18 169 120 / 14%), transparent 28rem),
    linear-gradient(180deg, #06101d 0 820px, #f4f8fb 820px 100%);
}

body.system-zow-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(115deg, transparent 0 18%, rgb(255 255 255 / 7%) 18.2% 18.6%, transparent 18.8% 48%, rgb(0 194 216 / 10%) 48.2% 48.55%, transparent 48.8%),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(180deg, #000 0 58%, transparent 92%);
}

body.system-zow-site main,
body.system-zow-site .site-header,
body.system-zow-site .site-footer,
body.system-zow-site .floating-whatsapp {
  position: relative;
  z-index: 1;
}

body.system-zow-site .site-header {
  width: min(1440px, calc(100% - clamp(28px, 4vw, 76px)));
}

body.system-zow-site .site-hero {
  width: min(1440px, calc(100% - clamp(28px, 4vw, 76px)));
  min-height: min(860px, calc(100vh - 32px));
  padding-top: clamp(112px, 11vh, 150px);
  padding-bottom: clamp(64px, 8vh, 104px);
  grid-template-columns: minmax(520px, 0.92fr) minmax(440px, 0.88fr);
}

body.system-zow-site .site-hero-copy h1 {
  max-width: 840px;
}

body.system-zow-site .site-hero-copy p {
  max-width: 720px;
}

body.system-zow-site .site-hero-visual {
  min-height: clamp(460px, 42vw, 680px);
}

body.system-zow-site .zow-cinematic-frame {
  width: min(680px, 100%);
  min-height: clamp(460px, 42vw, 660px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 78% 20%, rgb(125 255 229 / 25%), transparent 15rem),
    radial-gradient(circle at 22% 78%, rgb(61 133 255 / 30%), transparent 18rem),
    linear-gradient(135deg, rgb(8 25 49 / 98%), rgb(12 89 113 / 70%));
}

body.system-zow-site .zow-cinematic-frame::before {
  inset: clamp(20px, 4vw, 38px);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
    radial-gradient(circle at 44% 42%, rgb(255 255 255 / 12%), transparent 8rem);
  background-size: 46px 46px, 46px 46px, auto;
}

body.system-zow-site .zow-cinematic-frame::after {
  right: clamp(34px, 6vw, 82px);
  bottom: clamp(36px, 6vw, 78px);
  left: clamp(34px, 6vw, 82px);
  height: clamp(132px, 15vw, 210px);
  border: 1px solid rgb(255 255 255 / 16%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 7%)),
    linear-gradient(90deg, rgb(255 255 255 / 24%) 0 20%, transparent 20% 28%, rgb(255 255 255 / 18%) 28% 54%, transparent 54% 62%, rgb(255 255 255 / 18%) 62% 100%);
  background-size: auto, 100% 18px;
  background-repeat: no-repeat, repeat-y;
  background-position: center, 0 28px;
}

body.system-zow-site .zow-cinematic-copy {
  top: clamp(44px, 6vw, 78px);
  left: clamp(32px, 5vw, 70px);
  right: clamp(28px, 5vw, 66px);
}

body.system-zow-site .zow-cinematic-copy strong {
  max-width: 520px;
}

body.system-zow-site .site-section {
  width: min(1320px, calc(100% - clamp(28px, 4vw, 76px)));
}

body.system-zow-site .product-grid {
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

body.system-zow-site .services-grid,
body.system-zow-site .pricing-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body.system-zow-site .product-card:hover,
body.system-zow-site .pricing-card:hover,
body.system-zow-site .service-card:hover {
  border-color: rgb(23 105 255 / 22%);
  box-shadow: 0 30px 80px rgb(15 36 62 / 13%);
}

body.system-zow-site .contact-section {
  width: min(1320px, calc(100% - clamp(28px, 4vw, 76px)));
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.72fr);
}

@media (min-width: 1700px) {
  body.system-zow-site {
    background:
      radial-gradient(circle at 14% 6%, rgb(23 105 255 / 26%), transparent 42rem),
      radial-gradient(circle at 86% 10%, rgb(0 194 216 / 24%), transparent 42rem),
      radial-gradient(circle at 58% 26%, rgb(18 169 120 / 16%), transparent 34rem),
      linear-gradient(180deg, #06101d 0 900px, #f4f8fb 900px 100%);
  }

  body.system-zow-site .site-hero {
    width: min(1540px, calc(100% - 120px));
    grid-template-columns: minmax(620px, 1fr) minmax(560px, 0.88fr);
  }

  body.system-zow-site .site-hero-copy h1 {
    font-size: clamp(4.2rem, 5.4vw, 7.4rem);
  }

  body.system-zow-site .site-hero-copy p {
    font-size: 1.32rem;
  }

  body.system-zow-site .zow-cinematic-frame {
    width: min(760px, 100%);
    min-height: 700px;
  }
}

@media (max-width: 1280px) {
  body.system-zow-site .site-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  body.system-zow-site .services-grid,
  body.system-zow-site .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.system-zow-site {
    background:
      radial-gradient(circle at 30% 0%, rgb(23 105 255 / 24%), transparent 28rem),
      radial-gradient(circle at 100% 16%, rgb(0 194 216 / 18%), transparent 24rem),
      linear-gradient(180deg, #06101d 0 930px, #f7fbfd 930px 100%);
  }

  body.system-zow-site .site-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.system-zow-site .site-hero-visual {
    order: -1;
    min-height: 380px;
  }

  body.system-zow-site .zow-cinematic-frame {
    margin: 0 auto;
    transform: none;
  }

  body.system-zow-site .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.system-zow-site {
    background:
      radial-gradient(circle at 20% 0%, rgb(23 105 255 / 34%), transparent 17rem),
      radial-gradient(circle at 100% 10%, rgb(0 194 216 / 24%), transparent 17rem),
      linear-gradient(180deg, #06101d 0 770px, #f7fbfd 770px 100%);
  }

  body.system-zow-site::after {
    opacity: 0.14;
    background-size: auto, 42px 42px, 42px 42px;
  }

  body.system-zow-site .site-header {
    width: calc(100% - 18px);
    border-radius: 20px;
  }

  body.system-zow-site .site-brand-logo {
    width: 132px;
  }

  body.system-zow-site .site-nav {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 13%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 28%);
  }

  body.system-zow-site .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background:
      radial-gradient(circle at 14% 0%, rgb(0 194 216 / 34%), transparent 12rem),
      radial-gradient(circle at 100% 80%, rgb(23 105 255 / 32%), transparent 12rem);
  }

  body.system-zow-site .site-nav a {
    position: relative;
    z-index: 1;
  }

  body.system-zow-site .site-hero {
    width: calc(100% - 20px);
    padding-top: 92px;
    gap: 22px;
  }

  body.system-zow-site .site-hero-visual {
    min-height: 300px;
  }

  body.system-zow-site .zow-cinematic-frame {
    min-height: 300px;
    border-radius: 26px;
    transform: translateZ(0);
  }

  body.system-zow-site .zow-cinematic-frame::before {
    inset: 16px;
    background-size: 32px 32px, 32px 32px, auto;
  }

  body.system-zow-site .zow-cinematic-frame::after {
    left: 22px;
    right: 22px;
    bottom: 22px;
    height: 94px;
    border-radius: 18px;
    background-size: auto, 100% 13px;
    background-position: center, 0 18px;
  }

  body.system-zow-site .zow-cinematic-copy {
    top: 28px;
    left: 24px;
    right: 24px;
  }

  body.system-zow-site .zow-cinematic-copy span {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  body.system-zow-site .zow-cinematic-copy p {
    max-width: 270px;
    font-size: 0.94rem;
  }

  body.system-zow-site .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.system-zow-site .site-section,
  body.system-zow-site .contact-section {
    width: calc(100% - 20px);
  }

  body.system-zow-site .product-card,
  body.system-zow-site .pricing-card,
  body.system-zow-site .service-card,
  body.system-zow-site .contact-card,
  body.system-zow-site .location-card,
  body.system-zow-site .request-form {
    border-radius: 20px;
  }

  body.system-zow-site .product-visual {
    min-height: 132px;
  }

  body.system-zow-site .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 0 14px;
  }
}

/* SYSTEM ZOW expert UI pass: tighter hierarchy, calmer surfaces, and more intentional motion. */
body.system-zow-site {
  --zow-clean-ink: #111b2d;
  --zow-clean-muted: #647084;
  --zow-clean-line: rgb(17 27 45 / 10%);
  --zow-section-gap: clamp(66px, 8vw, 108px);
  background:
    radial-gradient(circle at 12% 2%, rgb(30 117 255 / 24%), transparent 36rem),
    radial-gradient(circle at 82% 5%, rgb(0 202 220 / 18%), transparent 34rem),
    linear-gradient(180deg, #060f1b 0 790px, #f6f9fc 790px 100%);
  font-synthesis-weight: none;
}

body.system-zow-site .site-header {
  min-height: 66px;
  padding: 9px 12px 9px 18px;
  border-radius: 999px;
  background: rgb(7 17 31 / 76%);
  backdrop-filter: blur(22px) saturate(1.25);
}

body.system-zow-site .site-brand {
  min-width: 0;
}

body.system-zow-site .site-brand-logo {
  width: clamp(132px, 13vw, 178px);
}

body.system-zow-site .site-nav {
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}

body.system-zow-site .site-nav a {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

body.system-zow-site .site-login-link {
  padding-inline: 18px !important;
}

body.system-zow-site .site-hero {
  align-items: center;
}

body.system-zow-site .hero-badge {
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: none;
}

body.system-zow-site .hero-badge span {
  box-shadow: 0 0 0 6px rgb(0 194 216 / 12%);
}

body.system-zow-site .site-hero-copy h1 {
  margin-top: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.system-zow-site .site-hero-copy p {
  margin-top: 22px;
}

body.system-zow-site .site-hero-actions {
  gap: 12px;
}

body.system-zow-site .primary-button,
body.system-zow-site .ghost-button,
body.system-zow-site .plan-cta,
body.system-zow-site .product-link {
  font-weight: 850;
  letter-spacing: 0;
}

body.system-zow-site .primary-button {
  background: linear-gradient(135deg, #ffffff 0%, #baf8ff 52%, #58dcc6 100%);
}

body.system-zow-site .ghost-button {
  background: rgb(255 255 255 / 6%);
}

body.system-zow-site .hero-metrics {
  width: min(100%, 720px);
}

body.system-zow-site .hero-metrics article {
  padding: 16px;
  border-radius: 18px;
}

body.system-zow-site .hero-metrics strong {
  font-size: 0.96rem;
}

body.system-zow-site .hero-metrics span {
  font-size: 0.82rem;
}

body.system-zow-site .zow-cinematic-frame {
  isolation: isolate;
  border-radius: clamp(28px, 3vw, 44px);
  box-shadow:
    0 34px 90px rgb(0 0 0 / 32%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
}

body.system-zow-site .zow-cinematic-frame::before {
  opacity: 0.9;
}

body.system-zow-site .zow-cinematic-frame::after {
  box-shadow:
    0 24px 66px rgb(0 0 0 / 20%),
    inset 0 1px 0 rgb(255 255 255 / 20%);
}

body.system-zow-site .zow-cinematic-copy strong {
  letter-spacing: -0.01em;
}

body.system-zow-site .site-section {
  padding: var(--zow-section-gap) 0;
}

body.system-zow-site .site-section-head {
  max-width: 820px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

body.system-zow-site .site-section-head h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.55rem);
  letter-spacing: -0.018em;
}

body.system-zow-site .site-section-head p {
  max-width: 680px;
  font-size: 1.02rem;
}

body.system-zow-site .eyebrow {
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 950;
}

body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form {
  border-radius: 26px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 18px 54px rgb(17 27 45 / 7%);
}

body.system-zow-site .product-card.system-card {
  padding: 14px;
  display: grid;
  gap: 0;
}

body.system-zow-site .product-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  border: 1px solid rgb(17 27 45 / 7%);
}

body.system-zow-site .product-card.correspondence-card .product-visual {
  background:
    radial-gradient(circle at 28% 20%, rgb(74 144 255 / 18%), transparent 11rem),
    linear-gradient(135deg, #eff7ff, #ffffff);
}

body.system-zow-site .product-card.sales-card .product-visual {
  background:
    radial-gradient(circle at 74% 18%, rgb(18 169 120 / 18%), transparent 11rem),
    linear-gradient(135deg, #f0fff9, #ffffff);
}

body.system-zow-site .product-card.health-card .product-visual {
  background:
    radial-gradient(circle at 50% 22%, rgb(43 180 255 / 15%), transparent 11rem),
    linear-gradient(135deg, #f2fbff, #ffffff);
}

body.system-zow-site .product-visual img {
  max-width: 62%;
}

body.system-zow-site .product-content {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 22px 10px 8px;
}

body.system-zow-site .status-pill {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgb(23 105 255 / 8%);
  font-size: 0.72rem;
}

body.system-zow-site .product-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

body.system-zow-site .product-card p {
  margin: 0;
  font-size: 0.94rem;
}

body.system-zow-site .product-link {
  align-self: end;
  margin-top: 24px;
}

body.system-zow-site .service-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
}

body.system-zow-site .service-card span[aria-hidden="true"] {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgb(23 105 255 / 16%), rgb(0 194 216 / 14%)),
    #f6fbff;
}

body.system-zow-site .service-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

body.system-zow-site .service-card p {
  margin: 0;
  font-size: 0.92rem;
}

body.system-zow-site .site-band {
  padding-top: var(--zow-section-gap);
  padding-bottom: var(--zow-section-gap);
  background:
    radial-gradient(circle at 12% 0%, rgb(23 105 255 / 10%), transparent 26rem),
    radial-gradient(circle at 86% 32%, rgb(18 169 120 / 12%), transparent 24rem),
    linear-gradient(135deg, #edf6ff, #ffffff 52%, #effcf8);
}

body.system-zow-site .pricing-card {
  display: grid;
  min-height: 360px;
  padding: 25px;
}

body.system-zow-site .pricing-card > i {
  width: fit-content;
  margin-bottom: 12px;
}

body.system-zow-site .pricing-card span {
  margin-bottom: 10px;
}

body.system-zow-site .pricing-card strong {
  font-size: 1.24rem;
}

body.system-zow-site .pricing-card > b {
  margin-top: 18px;
  font-size: 1.02rem;
}

body.system-zow-site .pricing-features {
  margin-top: 18px;
}

body.system-zow-site .plan-cta {
  align-self: end;
  margin-top: 22px;
}

body.system-zow-site .contact-section {
  padding-top: var(--zow-section-gap);
}

body.system-zow-site .contact-hub {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

body.system-zow-site .contact-owner,
body.system-zow-site .contact-channels,
body.system-zow-site .location-grid,
body.system-zow-site .contact-actions {
  min-width: 0;
}

body.system-zow-site .contact-owner {
  grid-column: 1 / -1;
}

body.system-zow-site .contact-card,
body.system-zow-site .location-card {
  padding: 22px;
}

body.system-zow-site .location-grid {
  grid-template-columns: 1fr;
}

body.system-zow-site .contact-actions {
  grid-template-columns: 1fr;
}

body.system-zow-site .request-form {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

body.system-zow-site .request-form label {
  gap: 7px;
  color: #233049;
  font-size: 0.82rem;
  font-weight: 850;
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  min-height: 46px;
  border-radius: 13px;
  font-size: 0.94rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.system-zow-site .request-form textarea {
  min-height: 108px;
}

body.system-zow-site .request-form input:focus,
body.system-zow-site .request-form select:focus,
body.system-zow-site .request-form textarea:focus {
  border-color: rgb(23 105 255 / 50%);
  box-shadow: 0 0 0 4px rgb(23 105 255 / 10%);
  background: #ffffff;
}

body.system-zow-site .quick-contact {
  grid-template-columns: 1fr;
}

body.system-zow-site .quick-contact a {
  min-height: 40px;
  justify-content: center;
  font-size: 0.83rem;
}

body.system-zow-site .form-note {
  color: var(--zow-clean-muted);
}

body.system-zow-site .site-footer {
  padding: 24px max(18px, calc((100% - 1320px) / 2));
}

body.system-zow-site .floating-whatsapp {
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 18px 46px rgb(18 169 120 / 24%);
}

@media (min-width: 1281px) {
  body.system-zow-site .product-card:hover,
  body.system-zow-site .pricing-card:hover,
  body.system-zow-site .service-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 1100px) {
  body.system-zow-site .contact-hub {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .request-form {
    position: static;
  }
}

@media (max-width: 760px) {
  body.system-zow-site {
    --zow-section-gap: 52px;
  }

  body.system-zow-site .site-header {
    padding: 9px 10px 9px 13px;
  }

  body.system-zow-site .site-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgb(255 255 255 / 9%);
  }

  body.system-zow-site .site-hero-copy h1 {
    letter-spacing: -0.01em;
  }

  body.system-zow-site .site-hero-actions .primary-button,
  body.system-zow-site .site-hero-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  body.system-zow-site .hero-metrics article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.system-zow-site .product-content {
    min-height: auto;
  }

  body.system-zow-site .product-link,
  body.system-zow-site .plan-cta {
    margin-top: 18px;
  }

  body.system-zow-site .service-card,
  body.system-zow-site .pricing-card {
    min-height: auto;
  }

  body.system-zow-site .request-form {
    padding: 18px;
  }
}

/* SYSTEM ZOW card layout fix: keep system cards clean at every viewport. */
body.system-zow-site .product-showcase {
  align-items: stretch;
}

body.system-zow-site .product-grid.product-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.system-zow-site .product-card.system-card,
body.system-zow-site .product-card.upcoming-card {
  grid-column: auto !important;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  padding: 14px;
}

body.system-zow-site .product-card.system-card::before,
body.system-zow-site .product-card.system-card::after {
  pointer-events: none;
}

body.system-zow-site .product-card.system-card .product-visual {
  flex: 0 0 190px;
  min-height: 190px;
  width: 100%;
}

body.system-zow-site .product-card.system-card .product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px 12px 10px;
}

body.system-zow-site .product-card.system-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.system-zow-site .product-card.system-card p {
  max-width: 100%;
  overflow-wrap: break-word;
}

body.system-zow-site .product-card.system-card .product-link {
  margin-top: auto;
  color: #ffffff !important;
  text-align: center;
  white-space: normal;
}

body.system-zow-site .product-card.system-card .product-link.soft-link {
  color: #0f513f !important;
  background: #e9fff6;
}

body.system-zow-site .product-card.system-card .status-pill {
  max-width: 100%;
  white-space: normal;
}

body.system-zow-site .product-card.system-card .product-visual img {
  max-width: min(190px, 72%);
  max-height: 138px;
}

@media (max-width: 1180px) {
  body.system-zow-site .product-grid.product-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.system-zow-site .product-grid.product-showcase {
    grid-template-columns: 1fr;
  }

  body.system-zow-site .product-card.system-card,
  body.system-zow-site .product-card.upcoming-card {
    min-height: auto;
  }

  body.system-zow-site .product-card.system-card .product-visual {
    flex-basis: 150px;
    min-height: 150px;
  }

  body.system-zow-site .product-card.system-card .product-content {
    padding: 18px 8px 8px;
  }
}

/* SYSTEM ZOW scroll-controlled video background. */
body.system-zow-site .site-scroll-video,
body.system-zow-site .site-scroll-video-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.system-zow-site .site-scroll-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.18) contrast(1.08) brightness(0.92);
  transform:
    translate3d(calc(var(--zow-scroll-depth, 0) * -2vw), calc(var(--zow-scroll-depth, 0) * -3vh), 0)
    scale(1.1);
  transition: opacity 180ms ease;
}

body.system-zow-site .site-scroll-video-shade {
  z-index: 0;
  background:
    linear-gradient(180deg, rgb(6 15 27 / 66%) 0 31%, rgb(246 249 252 / 42%) 58%, rgb(246 249 252 / 70%) 100%),
    radial-gradient(circle at 18% 8%, rgb(30 117 255 / 14%), transparent 34rem),
    radial-gradient(circle at 84% 10%, rgb(0 202 220 / 12%), transparent 34rem);
  mix-blend-mode: normal;
}

body.system-zow-site .site-ambient {
  z-index: 0;
}

body.system-zow-site main,
body.system-zow-site .site-header,
body.system-zow-site .site-footer,
body.system-zow-site .floating-whatsapp {
  z-index: 2;
}

body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form {
  background: rgb(255 255 255 / 88%);
}

@media (min-width: 1281px) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.54;
  }
}

@media (max-width: 760px) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.32;
    filter: saturate(1.08) contrast(1.04) brightness(0.82);
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -3vw), calc(var(--zow-scroll-depth, 0) * -2vh), 0)
      scale(1.14);
  }

  body.system-zow-site .site-scroll-video-shade {
    background:
      linear-gradient(180deg, rgb(6 15 27 / 78%) 0 42%, rgb(246 249 252 / 58%) 62%, rgb(246 249 252 / 86%) 100%),
      radial-gradient(circle at 22% 0%, rgb(30 117 255 / 16%), transparent 18rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.12;
  }
}

/* SYSTEM ZOW PixVerse scroll film: stronger crop to hide upper-corner watermark. */
body.system-zow-site .site-scroll-video {
  opacity: 0.58;
  object-position: center center;
  filter: saturate(1.22) contrast(1.12) brightness(0.9);
  transform:
    translate3d(calc(var(--zow-scroll-depth, 0) * -2vw), calc((var(--zow-scroll-depth, 0) * -4vh) - 6vh), 0)
    scale(1.36);
  transform-origin: center center;
}

body.system-zow-site .site-scroll-video-shade {
  background:
    linear-gradient(180deg, rgb(6 15 27 / 58%) 0 30%, rgb(246 249 252 / 34%) 56%, rgb(246 249 252 / 66%) 100%),
    radial-gradient(circle at 20% 8%, rgb(30 117 255 / 12%), transparent 32rem),
    radial-gradient(circle at 84% 10%, rgb(0 202 220 / 10%), transparent 32rem);
}

body.system-zow-site .reveal-item {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 680ms cubic-bezier(.2, .8, .2, 1),
    filter 680ms cubic-bezier(.2, .8, .2, 1),
    transform 680ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.system-zow-site .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

body.system-zow-site .product-card:nth-child(2),
body.system-zow-site .service-card:nth-child(2),
body.system-zow-site .pricing-card:nth-child(2) {
  --reveal-delay: 70ms;
}

body.system-zow-site .product-card:nth-child(3),
body.system-zow-site .service-card:nth-child(3),
body.system-zow-site .pricing-card:nth-child(3) {
  --reveal-delay: 140ms;
}

body.system-zow-site .service-card:nth-child(4),
body.system-zow-site .pricing-card:nth-child(4) {
  --reveal-delay: 210ms;
}

@media (min-width: 1281px) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.64;
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -2.5vw), calc((var(--zow-scroll-depth, 0) * -4.5vh) - 7vh), 0)
      scale(1.4);
  }
}

@media (max-width: 760px) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.4;
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -3vw), calc((var(--zow-scroll-depth, 0) * -2.5vh) - 5vh), 0)
      scale(1.46);
  }

  body.system-zow-site .reveal-item {
    transform: translateY(24px);
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.system-zow-site .reveal-item,
  body.system-zow-site .reveal-item.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* SYSTEM ZOW scroll story mode: one cinematic background, sections reveal over it. */
html:has(body.system-zow-site) {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body.system-zow-site {
  min-height: 100%;
  background: #050b14 !important;
}

body.system-zow-site::after,
body.system-zow-site .site-ambient {
  opacity: 0.08 !important;
}

body.system-zow-site .site-scroll-video {
  opacity: 0.92 !important;
  filter: saturate(1.18) contrast(1.12) brightness(0.78) !important;
  transform:
    translate3d(calc(var(--zow-scroll-depth, 0) * -2vw), calc((var(--zow-scroll-depth, 0) * -6vh) - 8vh), 0)
    scale(1.52) !important;
}

body.system-zow-site .site-scroll-video-shade {
  background:
    linear-gradient(90deg, rgb(3 8 16 / 82%) 0%, rgb(3 8 16 / 58%) 36%, rgb(3 8 16 / 24%) 68%, rgb(3 8 16 / 70%) 100%),
    linear-gradient(180deg, rgb(3 8 16 / 70%) 0%, rgb(3 8 16 / 20%) 44%, rgb(3 8 16 / 76%) 100%) !important;
}

body.system-zow-site .site-hero,
body.system-zow-site .site-section,
body.system-zow-site .contact-section {
  scroll-snap-align: start;
  width: min(1320px, calc(100% - clamp(28px, 5vw, 92px))) !important;
  min-height: 100svh;
  margin-inline: auto;
  padding-top: clamp(110px, 13vh, 150px) !important;
  padding-bottom: clamp(58px, 8vh, 96px) !important;
  display: grid;
  align-content: center;
  color: #f7fbff;
  background: transparent !important;
}

body.system-zow-site .site-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.5fr) !important;
  gap: clamp(28px, 5vw, 80px);
}

body.system-zow-site .site-hero-visual {
  min-height: 0 !important;
}

body.system-zow-site .zow-cinematic-frame {
  min-height: clamp(280px, 36vw, 520px) !important;
  opacity: 0.42;
  transform: rotateY(-8deg) rotateX(5deg) scale(0.92);
}

body.system-zow-site .site-hero-copy,
body.system-zow-site .site-section-head,
body.system-zow-site .contact-copy {
  max-width: 760px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: clamp(24px, 3vw, 34px);
  background: linear-gradient(135deg, rgb(4 12 24 / 70%), rgb(6 20 38 / 46%));
  box-shadow: 0 30px 90px rgb(0 0 0 / 26%);
  backdrop-filter: blur(18px) saturate(1.18);
}

body.system-zow-site .site-section-head h2,
body.system-zow-site .site-hero-copy h1,
body.system-zow-site .contact-copy h2 {
  color: #ffffff !important;
  text-shadow: 0 18px 44px rgb(0 0 0 / 40%);
}

body.system-zow-site .site-section-head p,
body.system-zow-site .site-hero-copy p,
body.system-zow-site .contact-copy > p {
  color: rgb(232 244 255 / 84%) !important;
}

body.system-zow-site .eyebrow,
body.system-zow-site .hero-badge {
  color: #9cf7ff !important;
}

body.system-zow-site .hero-metrics article,
body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form {
  border: 1px solid rgb(255 255 255 / 15%) !important;
  background: linear-gradient(145deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 8%)) !important;
  box-shadow: 0 24px 72px rgb(0 0 0 / 20%) !important;
  backdrop-filter: blur(18px) saturate(1.15);
}

body.system-zow-site .product-card h3,
body.system-zow-site .pricing-card strong,
body.system-zow-site .service-card strong,
body.system-zow-site .contact-card strong,
body.system-zow-site .location-card strong,
body.system-zow-site .pricing-card > b {
  color: #ffffff !important;
}

body.system-zow-site .product-card p,
body.system-zow-site .pricing-card small,
body.system-zow-site .service-card p,
body.system-zow-site .contact-card p,
body.system-zow-site .location-card p,
body.system-zow-site .pricing-features,
body.system-zow-site .form-note {
  color: rgb(232 244 255 / 76%) !important;
}

body.system-zow-site .product-visual {
  background: linear-gradient(135deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 8%)) !important;
  border-color: rgb(255 255 255 / 13%) !important;
}

body.system-zow-site .site-band {
  max-width: none !important;
  width: 100% !important;
  padding-left: max(28px, calc((100% - 1320px) / 2)) !important;
  padding-right: max(28px, calc((100% - 1320px) / 2)) !important;
}

body.system-zow-site .services-grid,
body.system-zow-site .pricing-grid,
body.system-zow-site .product-grid.product-showcase {
  margin-top: clamp(22px, 4vw, 40px);
}

body.system-zow-site .contact-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
  gap: clamp(20px, 4vw, 48px);
}

body.system-zow-site .request-form label {
  color: rgb(255 255 255 / 88%) !important;
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  color: #ffffff !important;
  border-color: rgb(255 255 255 / 14%) !important;
  background: rgb(255 255 255 / 10%) !important;
}

body.system-zow-site .request-form input::placeholder,
body.system-zow-site .request-form textarea::placeholder {
  color: rgb(232 244 255 / 48%);
}

body.system-zow-site .channel-list a,
body.system-zow-site .contact-actions a,
body.system-zow-site .quick-contact a {
  color: #ffffff !important;
  background: rgb(255 255 255 / 10%) !important;
  border-color: rgb(255 255 255 / 15%) !important;
}

body.system-zow-site .site-footer {
  border-top-color: rgb(255 255 255 / 12%);
  color: rgb(232 244 255 / 70%);
  background: rgb(3 8 16 / 72%);
  backdrop-filter: blur(14px);
}

body.system-zow-site .site-footer a {
  color: #9cf7ff;
}

@media (min-width: 1500px) {
  body.system-zow-site .site-hero,
  body.system-zow-site .site-section,
  body.system-zow-site .contact-section {
    width: min(1480px, calc(100% - 120px)) !important;
  }
}

@media (max-width: 980px) {
  html:has(body.system-zow-site) {
    scroll-snap-type: none;
  }

  body.system-zow-site .site-hero,
  body.system-zow-site .site-section,
  body.system-zow-site .contact-section {
    min-height: auto;
    width: calc(100% - 24px) !important;
    padding-top: 98px !important;
    padding-bottom: 54px !important;
  }

  body.system-zow-site .site-hero,
  body.system-zow-site .contact-section {
    grid-template-columns: 1fr !important;
  }

  body.system-zow-site .site-hero-visual {
    display: none;
  }

  body.system-zow-site .site-scroll-video {
    opacity: 0.74 !important;
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -3vw), calc((var(--zow-scroll-depth, 0) * -4vh) - 6vh), 0)
      scale(1.58) !important;
  }
}

@media (max-width: 760px) {
  body.system-zow-site .site-hero-copy,
  body.system-zow-site .site-section-head,
  body.system-zow-site .contact-copy {
    padding: 20px;
    border-radius: 22px;
  }

  body.system-zow-site .site-scroll-video {
    opacity: 0.62 !important;
  }
}

/* SYSTEM ZOW video front fix: make the scroll film unmistakably visible. */
body.system-zow-site {
  background: #030812 !important;
}

body.system-zow-site::before,
body.system-zow-site::after,
body.system-zow-site .site-ambient {
  display: none !important;
}

body.system-zow-site .site-scroll-video {
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal;
  filter: saturate(1.25) contrast(1.12) brightness(0.86) !important;
  transform:
    translate3d(calc(var(--zow-scroll-depth, 0) * -2vw), calc((var(--zow-scroll-depth, 0) * -6vh) - 8vh), 0)
    scale(1.55) !important;
}

body.system-zow-site .site-scroll-video-shade {
  z-index: 2 !important;
  background:
    linear-gradient(90deg, rgb(3 8 16 / 58%) 0%, rgb(3 8 16 / 34%) 42%, rgb(3 8 16 / 16%) 68%, rgb(3 8 16 / 48%) 100%),
    linear-gradient(180deg, rgb(3 8 16 / 52%) 0%, rgb(3 8 16 / 10%) 45%, rgb(3 8 16 / 58%) 100%) !important;
}

body.system-zow-site main,
body.system-zow-site .site-header,
body.system-zow-site .site-footer,
body.system-zow-site .floating-whatsapp {
  z-index: 3 !important;
}

body.system-zow-site .site-hero-copy,
body.system-zow-site .site-section-head,
body.system-zow-site .contact-copy,
body.system-zow-site .hero-metrics article,
body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form {
  background: linear-gradient(135deg, rgb(3 8 16 / 58%), rgb(10 30 52 / 32%)) !important;
  border-color: rgb(255 255 255 / 18%) !important;
}

body.system-zow-site.scroll-video-ready .site-scroll-video {
  opacity: 1 !important;
}

@media (max-width: 760px) {
  body.system-zow-site .site-scroll-video {
    opacity: 0.86 !important;
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -3vw), calc((var(--zow-scroll-depth, 0) * -3vh) - 6vh), 0)
      scale(1.65) !important;
  }

  body.system-zow-site .site-scroll-video-shade {
    background:
      linear-gradient(90deg, rgb(3 8 16 / 64%) 0%, rgb(3 8 16 / 36%) 52%, rgb(3 8 16 / 54%) 100%),
      linear-gradient(180deg, rgb(3 8 16 / 62%) 0%, rgb(3 8 16 / 20%) 46%, rgb(3 8 16 / 68%) 100%) !important;
  }
}

/* SYSTEM ZOW clean video mode: the video is the only page background. */
html:has(body.system-zow-site) {
  background: #000 !important;
}

body.system-zow-site {
  background: #000 !important;
  background-image: none !important;
}

body.system-zow-site::before,
body.system-zow-site::after,
body.system-zow-site .site-ambient,
body.system-zow-site .site-scroll-video-shade,
body.system-zow-site .site-hero::before,
body.system-zow-site .site-section::before,
body.system-zow-site .site-section::after,
body.system-zow-site .site-band::before,
body.system-zow-site .site-band::after,
body.system-zow-site .operation-section::before,
body.system-zow-site .operation-section::after,
body.system-zow-site .contact-section::before,
body.system-zow-site .contact-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

body.system-zow-site .site-scroll-video {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  mix-blend-mode: normal !important;
  filter: saturate(1.22) contrast(1.08) brightness(0.92) !important;
  transform:
    translate3d(calc(var(--zow-scroll-depth, 0) * -1.8vw), calc((var(--zow-scroll-depth, 0) * -4.8vh) - 7vh), 0)
    scale(1.5) !important;
  transform-origin: center center !important;
  will-change: transform, opacity;
}

body.system-zow-site main,
body.system-zow-site .site-header,
body.system-zow-site .site-footer,
body.system-zow-site .floating-whatsapp {
  position: relative;
  z-index: 2 !important;
}

body.system-zow-site .site-header {
  background: rgb(4 10 18 / 30%) !important;
  border-color: rgb(255 255 255 / 12%) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

body.system-zow-site .site-hero,
body.system-zow-site .site-section,
body.system-zow-site .contact-section,
body.system-zow-site .site-band,
body.system-zow-site .operation-section {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.system-zow-site .site-hero-visual {
  display: none !important;
}

body.system-zow-site .site-hero-copy,
body.system-zow-site .site-section-head,
body.system-zow-site .contact-copy,
body.system-zow-site .hero-metrics article,
body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form,
body.system-zow-site .contact-owner,
body.system-zow-site .contact-channels,
body.system-zow-site .launch-cta,
body.system-zow-site .faq-shell,
body.system-zow-site .trust-grid article {
  background: rgb(3 9 18 / 56%) !important;
  background-image: none !important;
  border: 1px solid rgb(255 255 255 / 16%) !important;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%) !important;
  backdrop-filter: blur(16px) saturate(1.08);
}

body.system-zow-site .product-visual {
  background: rgb(255 255 255 / 9%) !important;
  background-image: none !important;
}

body.system-zow-site .site-footer {
  background: rgb(0 0 0 / 45%) !important;
}

@media (min-width: 1300px) {
  body.system-zow-site .site-scroll-video {
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -1.4vw), calc((var(--zow-scroll-depth, 0) * -4vh) - 7vh), 0)
      scale(1.46) !important;
  }
}

@media (max-width: 760px) {
  body.system-zow-site .site-scroll-video {
    opacity: 1 !important;
    filter: saturate(1.15) contrast(1.04) brightness(0.82) !important;
    transform:
      translate3d(calc(var(--zow-scroll-depth, 0) * -2.2vw), calc((var(--zow-scroll-depth, 0) * -3.5vh) - 5vh), 0)
      scale(1.72) !important;
  }

  body.system-zow-site .site-header {
    background: rgb(4 10 18 / 42%) !important;
  }
}

/* SYSTEM ZOW readability pass: keep the video visible, make every text readable. */
body.system-zow-site .site-scroll-video {
  filter: saturate(1.18) contrast(1.1) brightness(0.64) !important;
}

body.system-zow-site main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 64%) 0%, rgb(0 0 0 / 32%) 48%, rgb(0 0 0 / 54%) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 14%) 44%, rgb(0 0 0 / 62%) 100%);
}

body.system-zow-site main > *,
body.system-zow-site .site-header,
body.system-zow-site .site-footer,
body.system-zow-site .floating-whatsapp {
  position: relative;
  z-index: 2 !important;
}

body.system-zow-site,
body.system-zow-site p,
body.system-zow-site span,
body.system-zow-site small,
body.system-zow-site li,
body.system-zow-site label,
body.system-zow-site summary,
body.system-zow-site input,
body.system-zow-site select,
body.system-zow-site textarea {
  color: rgb(242 248 255 / 92%) !important;
}

body.system-zow-site h1,
body.system-zow-site h2,
body.system-zow-site h3,
body.system-zow-site strong,
body.system-zow-site b,
body.system-zow-site .site-brand-copy strong,
body.system-zow-site .product-card h3,
body.system-zow-site .pricing-card strong,
body.system-zow-site .service-card strong,
body.system-zow-site .contact-card strong,
body.system-zow-site .location-card strong {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgb(0 0 0 / 66%), 0 1px 2px rgb(0 0 0 / 80%);
}

body.system-zow-site .eyebrow,
body.system-zow-site .hero-badge,
body.system-zow-site .status-pill,
body.system-zow-site .pricing-card > i,
body.system-zow-site .form-note {
  color: #9ff8ff !important;
}

body.system-zow-site .site-hero-copy,
body.system-zow-site .site-section-head,
body.system-zow-site .contact-copy,
body.system-zow-site .hero-metrics article,
body.system-zow-site .product-card,
body.system-zow-site .pricing-card,
body.system-zow-site .service-card,
body.system-zow-site .contact-card,
body.system-zow-site .location-card,
body.system-zow-site .request-form,
body.system-zow-site .contact-owner,
body.system-zow-site .contact-channels,
body.system-zow-site .launch-cta,
body.system-zow-site .faq-shell,
body.system-zow-site .trust-grid article {
  background: rgb(2 8 16 / 78%) !important;
  border-color: rgb(255 255 255 / 24%) !important;
  box-shadow: 0 28px 80px rgb(0 0 0 / 48%) !important;
}

body.system-zow-site .primary-button,
body.system-zow-site .ghost-button,
body.system-zow-site .plan-cta,
body.system-zow-site .product-link,
body.system-zow-site .site-login-link,
body.system-zow-site .request-form button {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgb(0 0 0 / 48%);
}

body.system-zow-site .request-form input,
body.system-zow-site .request-form select,
body.system-zow-site .request-form textarea {
  background: rgb(255 255 255 / 14%) !important;
  border-color: rgb(255 255 255 / 28%) !important;
}

@media (max-width: 760px) {
  body.system-zow-site .site-scroll-video {
    filter: saturate(1.1) contrast(1.05) brightness(0.54) !important;
  }

  body.system-zow-site main::before {
    background:
      linear-gradient(90deg, rgb(0 0 0 / 68%) 0%, rgb(0 0 0 / 44%) 52%, rgb(0 0 0 / 62%) 100%),
      linear-gradient(180deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 28%) 44%, rgb(0 0 0 / 70%) 100%);
  }

  body.system-zow-site .site-hero-copy,
  body.system-zow-site .site-section-head,
  body.system-zow-site .contact-copy,
  body.system-zow-site .product-card,
  body.system-zow-site .pricing-card,
  body.system-zow-site .service-card,
  body.system-zow-site .contact-card,
  body.system-zow-site .location-card,
  body.system-zow-site .request-form {
    background: rgb(2 8 16 / 84%) !important;
  }
}

/* SYSTEM ZOW 2026 scroll video redesign. */
html:has(body.zow-scroll-video-page) {
  min-height: 100%;
  background: #030712;
  scroll-behavior: smooth;
}

body.zow-scroll-video-page {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: #f8fbff;
  background: #030712;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.zow-scroll-video-page *,
body.zow-scroll-video-page *::before,
body.zow-scroll-video-page *::after {
  box-sizing: border-box;
}

body.zow-scroll-video-page .skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: #00121d;
  background: #baf6ff;
  border-radius: 999px;
  transform: translateY(-150%);
}

body.zow-scroll-video-page .skip-link:focus {
  transform: translateY(0);
}

.zow-scroll-bg,
.zow-video-readability {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.zow-scroll-bg {
  z-index: 0;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: saturate(1.18) contrast(1.1) brightness(0.78);
  transform:
    translate3d(calc(var(--zow-progress, 0) * -2.4vw), calc(var(--zow-progress, 0) * -4vh), 0)
    scale(1.08);
  transition: opacity 500ms ease;
  will-change: transform, opacity;
}

.zow-video-ready .zow-scroll-bg {
  opacity: 1;
}

.zow-video-readability {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 28%, rgb(0 225 255 / 16%), transparent 34%),
    linear-gradient(90deg, rgb(1 4 12 / 74%) 0%, rgb(1 4 12 / 36%) 48%, rgb(1 4 12 / 72%) 100%),
    linear-gradient(180deg, rgb(1 4 12 / 42%) 0%, rgb(1 4 12 / 10%) 45%, rgb(1 4 12 / 72%) 100%);
}

.zow-scroll-meter {
  position: fixed;
  z-index: 10;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 12%);
}

.zow-scroll-meter span {
  display: block;
  width: var(--zow-meter, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #29f5ff, #7c3cff, #00ffa8);
  box-shadow: 0 0 18px rgb(41 245 255 / 50%);
}

.zow-story-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 8;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(1 6 18 / 52%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 28%);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: translateX(-50%);
}

.zow-story-brand,
.zow-story-nav a,
.zow-story-actions a {
  color: #ffffff;
  text-decoration: none;
}

.zow-story-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.zow-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #04111d;
  background: linear-gradient(135deg, #7efff0, #38a5ff 48%, #ad7cff);
  box-shadow: 0 0 24px rgb(41 245 255 / 32%);
}

.zow-story-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zow-story-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  color: rgb(242 248 255 / 80%);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.zow-story-nav a:hover {
  color: #ffffff;
  background: rgb(255 255 255 / 12%);
  transform: translateY(-1px);
}

.zow-story {
  position: relative;
  z-index: 2;
}

.zow-story-scene {
  min-height: 100svh;
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(110px, 12vw, 160px) 0 clamp(82px, 9vw, 130px);
}

.zow-story-scene.align-right {
  justify-items: end;
}

.zow-story-copy {
  width: min(650px, 100%);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: clamp(26px, 4vw, 42px);
  background: linear-gradient(135deg, rgb(2 7 18 / 78%), rgb(6 22 38 / 48%));
  box-shadow: 0 34px 100px rgb(0 0 0 / 38%);
  backdrop-filter: blur(18px) saturate(1.16);
  opacity: 0.3;
  transform: translateY(34px) scale(0.985);
  transition: opacity 460ms ease, transform 460ms ease, border-color 460ms ease;
}

.zow-story-scene.is-active .zow-story-copy {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgb(127 255 240 / 34%);
}

.zow-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgb(127 255 240 / 26%);
  border-radius: 999px;
  color: #a8fff6;
  background: rgb(127 255 240 / 10%);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.zow-story-copy h1,
.zow-story-copy h2 {
  margin: 0;
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgb(0 0 0 / 72%);
}

.zow-story-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.zow-story-copy p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: rgb(238 247 255 / 88%);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.72;
  text-shadow: 0 2px 14px rgb(0 0 0 / 70%);
}

.zow-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.zow-story-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 11%);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.zow-story-actions a:first-child {
  color: #031018;
  background: linear-gradient(135deg, #91fff5, #45b7ff);
}

.zow-story-actions a:hover {
  transform: translateY(-2px);
  border-color: rgb(127 255 240 / 46%);
}

.zow-story-footer {
  position: relative;
  z-index: 2;
  padding: 28px 24px 44px;
  color: rgb(238 247 255 / 72%);
  text-align: center;
  background: rgb(0 0 0 / 34%);
}

@media (max-width: 820px) {
  .zow-story-header {
    top: 12px;
    width: calc(100% - 20px);
    align-items: flex-start;
    border-radius: 26px;
    flex-direction: column;
  }

  .zow-story-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .zow-story-nav a {
    text-align: center;
    font-size: 0.82rem;
    padding: 9px 8px;
  }

  .zow-story-scene {
    width: min(100% - 24px, 680px);
    padding-top: 165px;
  }

  .zow-story-scene.align-right {
    justify-items: start;
  }

  .zow-story-copy {
    padding: 22px;
    border-radius: 26px;
  }

  .zow-story-copy h1,
  .zow-story-copy h2 {
    max-width: 12ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.zow-scroll-video-page) {
    scroll-behavior: auto;
  }

  .zow-scroll-bg,
  .zow-story-copy,
  .zow-story-nav a,
  .zow-story-actions a {
    transition: none !important;
  }
}

/* SYSTEM ZOW fluid video + complete commercial content. */
.zow-scroll-bg {
  filter: saturate(1.12) contrast(1.05) brightness(0.68) !important;
  z-index: 0 !important;
  transform:
    translate3d(calc(var(--zow-progress, 0) * -1.4vw), calc(var(--zow-progress, 0) * -2.8vh), 0)
    scale(calc(1.06 + (var(--zow-progress, 0) * 0.035))) !important;
}

.zow-video-readability {
  z-index: 1 !important;
  background:
    radial-gradient(circle at calc(72% + (var(--zow-velocity, 0) * 10%)) 30%, rgb(31 205 255 / 14%), transparent 32%),
    linear-gradient(90deg, rgb(0 3 11 / 58%) 0%, rgb(0 3 11 / 28%) 46%, rgb(0 3 11 / 58%) 100%),
    linear-gradient(180deg, rgb(0 3 11 / 34%) 0%, rgb(0 3 11 / 8%) 42%, rgb(0 3 11 / 58%) 100%);
}

.zow-story-header,
.zow-story,
.zow-story-footer,
.zow-scroll-meter {
  position: relative;
  z-index: 10 !important;
}

.zow-story-header {
  position: fixed;
  z-index: 20 !important;
}

.zow-story-scene {
  position: relative;
  z-index: 11;
}

.zow-story-copy {
  position: relative;
  z-index: 12;
  opacity: 0.96 !important;
  overflow: visible;
  background: linear-gradient(135deg, rgb(2 7 18 / 88%), rgb(6 22 38 / 66%)) !important;
  border-color: rgb(127 255 240 / 24%) !important;
  box-shadow: 0 28px 80px rgb(0 0 0 / 42%) !important;
  backdrop-filter: none !important;
}

.zow-story-scene.is-active .zow-story-copy {
  opacity: 1 !important;
}

.zow-story-copy h1,
.zow-story-copy h2 {
  max-width: 13ch !important;
  font-size: clamp(2.8rem, 5.6vw, 5.9rem) !important;
  line-height: 0.96 !important;
  overflow-wrap: normal;
}

.zow-story-copy h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.9rem) !important;
}

.zow-story-copy p {
  max-width: 62ch !important;
}

.zow-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 16px;
  background: rgb(255 255 255 / 10%);
  cursor: pointer;
}

.zow-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.zow-menu-open .zow-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.zow-menu-open .zow-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.zow-menu-open .zow-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.zow-story-copy.wide-copy {
  width: min(860px, 100%);
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.zow-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zow-system-grid,
.zow-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zow-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zow-feature-grid,
.zow-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zow-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zow-metrics article,
.zow-system-grid article,
.zow-feature-grid article,
.zow-plan-grid article,
.zow-contact-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(255 255 255 / 8%);
}

.zow-system-grid article,
.zow-plan-grid article,
.zow-feature-grid article {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.zow-system-grid article:hover,
.zow-plan-grid article:hover,
.zow-feature-grid article:hover {
  transform: translateY(-3px);
  border-color: rgb(127 255 240 / 34%);
  background: rgb(255 255 255 / 12%);
}

.zow-metrics strong,
.zow-system-grid strong,
.zow-feature-grid strong,
.zow-plan-grid strong,
.zow-contact-grid strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.25;
}

.zow-metrics span,
.zow-system-grid span,
.zow-feature-grid span,
.zow-plan-grid span,
.zow-contact-grid span {
  display: block;
  margin-bottom: 4px;
  color: #a8fff6;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.zow-system-grid p {
  margin: 8px 0 10px;
  font-size: 0.84rem;
  line-height: 1.42;
}

.zow-system-grid small {
  display: block;
  margin-bottom: 10px;
  color: rgb(238 247 255 / 74%);
  font-size: 0.76rem;
  line-height: 1.38;
}

.zow-system-grid a,
.zow-plan-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, #91fff5, #45b7ff);
  font-weight: 900;
  text-decoration: none;
  font-size: 0.82rem;
}

.zow-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.zow-request-form label {
  display: grid;
  gap: 5px;
  color: rgb(238 247 255 / 88%);
  font-size: 0.86rem;
  font-weight: 800;
}

.zow-request-form .span-2 {
  grid-column: 1 / -1;
}

.zow-request-form input,
.zow-request-form select,
.zow-request-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgb(255 255 255 / 10%);
  outline: none;
}

.zow-request-form textarea {
  resize: vertical;
}

.zow-request-form input:focus,
.zow-request-form select:focus,
.zow-request-form textarea:focus {
  border-color: rgb(127 255 240 / 44%);
  box-shadow: 0 0 0 3px rgb(127 255 240 / 12%);
}

.zow-request-form button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, #91fff5, #45b7ff);
  font-weight: 950;
  cursor: pointer;
}

.zow-request-form #requestMessage {
  align-self: center;
  margin: 0;
  color: #a8fff6;
  font-weight: 800;
}

.zow-story-footer {
  border-top: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
  .zow-story-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 26px;
  }

  .zow-menu-toggle {
    display: inline-block;
  }

  .zow-story-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .zow-menu-open .zow-story-nav {
    display: grid;
  }

  .zow-story-nav a {
    background: rgb(255 255 255 / 9%);
    text-align: center;
  }

  .zow-metrics,
  .zow-system-grid,
  .zow-feature-grid,
  .zow-plan-grid,
  .zow-contact-grid,
  .zow-request-form {
    grid-template-columns: 1fr;
  }

  .zow-request-form .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .zow-story-scene {
    width: min(100% - 20px, 680px);
    padding-top: 126px;
    padding-bottom: 64px;
  }

  .zow-story-copy h1,
  .zow-story-copy h2 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 13vw, 4.1rem);
    line-height: 0.95;
  }

  .zow-story-copy p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .zow-story-actions a {
    width: 100%;
  }

  .zow-scroll-bg {
    filter: saturate(1.05) contrast(1.02) brightness(0.58) !important;
    transform:
      translate3d(calc(var(--zow-progress, 0) * -2vw), calc(var(--zow-progress, 0) * -2vh), 0)
      scale(1.14) !important;
  }
}

/* SYSTEM ZOW scroll timeline: video pauses when idle and moves with scroll. */
body.zow-scroll-video-page {
  --timeline-glow: 0;
}

body.zow-timeline-moving {
  --timeline-glow: 1;
}

.zow-scroll-bg {
  filter:
    saturate(calc(1.08 + (var(--timeline-glow) * 0.08)))
    contrast(calc(1.04 + (var(--timeline-glow) * 0.05)))
    brightness(0.62) !important;
  transform:
    translate3d(calc(var(--zow-progress, 0) * -1.1vw), calc(var(--zow-progress, 0) * -2.1vh), 0)
    scale(calc(1.07 + (var(--zow-progress, 0) * 0.045))) !important;
}

.zow-video-readability {
  background:
    radial-gradient(circle at calc(68% + (var(--zow-velocity, 0) * 12%)) 32%, rgb(31 205 255 / calc(12% + (var(--timeline-glow) * 10%))), transparent 35%),
    linear-gradient(90deg, rgb(0 3 11 / 64%) 0%, rgb(0 3 11 / 34%) 46%, rgb(0 3 11 / 64%) 100%),
    linear-gradient(180deg, rgb(0 3 11 / 38%) 0%, rgb(0 3 11 / 8%) 42%, rgb(0 3 11 / 66%) 100%);
  transition: background 220ms ease;
}

.zow-story-scene {
  min-height: 112svh;
  scroll-margin-top: 90px;
}

.zow-story-copy {
  transform: translate3d(calc((1 - var(--timeline-glow)) * 0px), 28px, 0) scale(0.985);
  transition: opacity 520ms ease, transform 520ms ease, border-color 520ms ease, box-shadow 520ms ease;
}

.zow-story-scene.is-active .zow-story-copy {
  box-shadow:
    0 28px 80px rgb(0 0 0 / 42%),
    0 0 calc(18px + (var(--timeline-glow) * 34px)) rgb(41 245 255 / calc(8% + (var(--timeline-glow) * 16%))) !important;
}

.zow-story-scene:nth-child(odd) .zow-story-copy {
  transform: translate3d(-26px, 28px, 0) scale(0.985);
}

.zow-story-scene:nth-child(even) .zow-story-copy {
  transform: translate3d(26px, 28px, 0) scale(0.985);
}

.zow-story-scene.is-active .zow-story-copy {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.zow-scroll-meter {
  z-index: 30 !important;
}

.zow-scroll-meter span {
  transition: width 80ms linear, box-shadow 160ms ease;
  box-shadow: 0 0 calc(12px + (var(--timeline-glow) * 18px)) rgb(41 245 255 / 58%);
}

@media (min-width: 1200px) {
  .zow-story-scene {
    min-height: 118svh;
  }
}

@media (max-width: 640px) {
  .zow-story-scene {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 74px;
  }

  .zow-story-scene:nth-child(odd) .zow-story-copy,
  .zow-story-scene:nth-child(even) .zow-story-copy {
    transform: translate3d(0, 24px, 0) scale(0.99);
  }
}

/* SYSTEM ZOW smooth video mode: video plays naturally, scroll reveals scenes. */
html:has(body.zow-scroll-video-page) {
  scroll-snap-type: y proximity;
}

.zow-story-scene {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 106svh !important;
}

.zow-scroll-bg {
  filter:
    saturate(calc(1.1 + (var(--timeline-glow) * 0.05)))
    contrast(calc(1.04 + (var(--timeline-glow) * 0.03)))
    brightness(0.64) !important;
  transform:
    translate3d(calc(var(--zow-progress, 0) * -0.8vw), calc(var(--zow-progress, 0) * -1.4vh), 0)
    scale(calc(1.08 + (var(--zow-progress, 0) * 0.025))) !important;
  transition: opacity 420ms ease, filter 260ms ease;
}

.zow-video-readability {
  background:
    radial-gradient(circle at calc(68% + (var(--zow-velocity, 0) * 10%)) 32%, rgb(31 205 255 / calc(12% + (var(--timeline-glow) * 6%))), transparent 35%),
    linear-gradient(90deg, rgb(0 3 11 / 62%) 0%, rgb(0 3 11 / 32%) 46%, rgb(0 3 11 / 62%) 100%),
    linear-gradient(180deg, rgb(0 3 11 / 38%) 0%, rgb(0 3 11 / 9%) 42%, rgb(0 3 11 / 64%) 100%);
}

.zow-story-copy {
  transition:
    opacity 680ms cubic-bezier(.2,.8,.2,1),
    transform 680ms cubic-bezier(.2,.8,.2,1),
    border-color 520ms ease,
    box-shadow 520ms ease !important;
}

.zow-story-scene:not(.is-active) .zow-story-copy {
  opacity: 0.18 !important;
}

.zow-story-scene.is-active .zow-story-copy {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.zow-story-scene:nth-child(odd):not(.is-active) .zow-story-copy {
  transform: translate3d(-34px, 34px, 0) scale(0.975) !important;
}

.zow-story-scene:nth-child(even):not(.is-active) .zow-story-copy {
  transform: translate3d(34px, 34px, 0) scale(0.975) !important;
}

@media (max-width: 760px) {
  html:has(body.zow-scroll-video-page) {
    scroll-snap-type: none;
  }

  .zow-story-scene {
    min-height: auto !important;
    scroll-snap-align: none;
  }

  .zow-story-scene:not(.is-active) .zow-story-copy {
    opacity: 0.92 !important;
  }
}

/* SYSTEM ZOW section-by-section presentation mode. */
html:has(body.zow-scroll-video-page) {
  scroll-snap-type: y mandatory;
}

body.zow-scroll-video-page {
  overscroll-behavior-y: none;
}

.zow-story {
  width: 100%;
}

.zow-story-scene {
  width: min(1440px, calc(100% - 64px)) !important;
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  padding: clamp(104px, 10vh, 132px) 0 clamp(54px, 7vh, 86px) !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.zow-story-scene.align-right {
  justify-items: center !important;
}

.zow-story-copy,
.zow-story-copy.wide-copy {
  width: min(1120px, 100%) !important;
  min-height: auto;
  max-height: calc(100svh - 176px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  padding: clamp(20px, 3vw, 38px) !important;
  overflow: hidden;
}

.zow-story-copy h1,
.zow-story-copy h2 {
  max-width: 16ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(2.7rem, 5.2vw, 5.25rem) !important;
  line-height: 0.98 !important;
}

.zow-story-copy h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.35rem) !important;
}

.zow-story-copy p {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 14px !important;
  font-size: clamp(0.94rem, 1.25vw, 1.08rem) !important;
  line-height: 1.55 !important;
}

.zow-kicker,
.zow-story-actions {
  align-self: center;
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid {
  width: 100%;
  text-align: left;
  margin-top: 16px !important;
}

.zow-request-form {
  text-align: left;
}

@media (max-width: 980px) {
  .zow-story-scene {
    width: min(100% - 24px, 760px) !important;
    min-height: auto !important;
    padding-top: 132px !important;
  }

  .zow-story-copy,
  .zow-story-copy.wide-copy {
    max-height: none;
    overflow: visible;
    min-height: auto;
    text-align: left;
  }

  .zow-story-copy h1,
  .zow-story-copy h2,
  .zow-story-copy p {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .zow-kicker,
  .zow-story-actions {
    align-self: flex-start;
  }
}

/* SYSTEM ZOW tighter full-screen fit and active navigation. */
.zow-story-header {
  top: 12px !important;
  padding: 9px 12px !important;
}

.zow-story-nav a.is-active {
  color: #06111b !important;
  background: linear-gradient(135deg, #9dfff5, #5fc3ff) !important;
  box-shadow: 0 0 22px rgb(95 195 255 / 34%);
}

.zow-story-scene {
  width: min(1260px, calc(100% - 52px)) !important;
  min-height: 100svh !important;
  padding: 88px 0 38px !important;
}

.zow-story-copy,
.zow-story-copy.wide-copy {
  width: min(1010px, 100%) !important;
  max-height: calc(100svh - 128px);
  padding: clamp(16px, 2.3vw, 28px) !important;
  border-radius: clamp(22px, 3vw, 32px) !important;
}

.zow-kicker {
  margin-bottom: 10px !important;
  padding: 7px 10px !important;
  font-size: 0.68rem !important;
}

.zow-story-copy h1,
.zow-story-copy h2 {
  max-width: 17ch !important;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem) !important;
  line-height: 0.98 !important;
}

.zow-story-copy h2 {
  font-size: clamp(2rem, 3.9vw, 3.9rem) !important;
}

.zow-story-copy p {
  max-width: 64ch !important;
  margin-top: 10px !important;
  font-size: clamp(0.86rem, 1.05vw, 0.98rem) !important;
  line-height: 1.42 !important;
}

.zow-story-actions {
  margin-top: 16px !important;
  gap: 9px !important;
}

.zow-story-actions a {
  min-height: 40px !important;
  padding: 9px 15px !important;
  font-size: 0.88rem !important;
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid {
  gap: 9px !important;
  margin-top: 13px !important;
}

.zow-metrics article,
.zow-system-grid article,
.zow-feature-grid article,
.zow-plan-grid article,
.zow-contact-grid article {
  padding: 10px !important;
  border-radius: 14px !important;
}

.zow-metrics strong,
.zow-system-grid strong,
.zow-feature-grid strong,
.zow-plan-grid strong,
.zow-contact-grid strong {
  font-size: 0.86rem !important;
}

.zow-metrics span,
.zow-system-grid span,
.zow-feature-grid span,
.zow-plan-grid span,
.zow-contact-grid span {
  font-size: 0.63rem !important;
}

.zow-system-grid p {
  margin: 6px 0 7px !important;
  font-size: 0.76rem !important;
  line-height: 1.33 !important;
}

.zow-system-grid small {
  margin-bottom: 7px !important;
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

.zow-system-grid a,
.zow-plan-grid a {
  min-height: 30px !important;
  padding: 6px 10px !important;
  font-size: 0.74rem !important;
}

.zow-request-form {
  gap: 8px !important;
  margin-top: 12px !important;
}

.zow-request-form label {
  gap: 4px !important;
  font-size: 0.76rem !important;
}

.zow-request-form input,
.zow-request-form select,
.zow-request-form textarea {
  min-height: 34px !important;
  padding: 7px 9px !important;
}

.zow-request-form textarea {
  max-height: 82px;
}

@media (max-height: 760px) and (min-width: 981px) {
  .zow-story-copy h1,
  .zow-story-copy h2 {
    font-size: clamp(2rem, 4vw, 3.8rem) !important;
  }

  .zow-story-copy h2 {
    font-size: clamp(1.85rem, 3.5vw, 3.35rem) !important;
  }

  .zow-story-copy p {
    font-size: 0.82rem !important;
    line-height: 1.34 !important;
  }

  .zow-story-copy,
  .zow-story-copy.wide-copy {
    max-height: calc(100svh - 116px);
  }
}

/* SYSTEM ZOW frameless split layout and scroll transitions. */
.zow-story-copy,
.zow-story-copy.wide-copy {
  display: grid !important;
  grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1.18fr);
  align-items: center;
  column-gap: clamp(22px, 4vw, 54px);
  text-align: left;
  max-height: calc(100svh - 116px);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: clamp(8px, 1.4vw, 18px) !important;
}

.zow-story-copy::before {
  content: "";
  position: absolute;
  inset: clamp(-10px, -1vw, -4px);
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 20%, rgb(127 255 240 / 13%), transparent 30%),
    linear-gradient(135deg, rgb(2 7 18 / 78%), rgb(6 22 38 / 40%));
  box-shadow: 0 28px 80px rgb(0 0 0 / 34%);
  opacity: 0.92;
}

.zow-kicker,
.zow-story-copy h1,
.zow-story-copy h2,
.zow-story-copy > p,
.zow-story-actions {
  grid-column: 1;
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid,
.zow-request-form {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  margin-top: 0 !important;
}

.zow-kicker,
.zow-story-actions {
  align-self: start;
}

.zow-story-copy h1,
.zow-story-copy h2,
.zow-story-copy p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.zow-story-copy h1,
.zow-story-copy h2 {
  max-width: 11ch !important;
  font-size: clamp(2.5rem, 4.6vw, 5.2rem) !important;
}

.zow-story-copy h2 {
  font-size: clamp(2.2rem, 3.7vw, 4rem) !important;
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.zow-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.zow-system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.zow-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.zow-contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.zow-request-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.zow-story-scene:not(.is-active) .zow-kicker,
.zow-story-scene:not(.is-active) .zow-story-copy h1,
.zow-story-scene:not(.is-active) .zow-story-copy h2,
.zow-story-scene:not(.is-active) .zow-story-copy > p,
.zow-story-scene:not(.is-active) .zow-story-actions {
  opacity: 0;
  transform: translateX(-24px);
}

.zow-story-scene:not(.is-active) .zow-metrics,
.zow-story-scene:not(.is-active) .zow-system-grid,
.zow-story-scene:not(.is-active) .zow-feature-grid,
.zow-story-scene:not(.is-active) .zow-plan-grid,
.zow-story-scene:not(.is-active) .zow-contact-grid,
.zow-story-scene:not(.is-active) .zow-request-form {
  opacity: 0;
  transform: translateX(28px);
}

.zow-kicker,
.zow-story-copy h1,
.zow-story-copy h2,
.zow-story-copy > p,
.zow-story-actions,
.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid,
.zow-request-form {
  transition: opacity 560ms ease, transform 620ms cubic-bezier(.2,.8,.2,1);
}

.zow-story-scene.is-active .zow-kicker,
.zow-story-scene.is-active .zow-story-copy h1,
.zow-story-scene.is-active .zow-story-copy h2,
.zow-story-scene.is-active .zow-story-copy > p,
.zow-story-scene.is-active .zow-story-actions,
.zow-story-scene.is-active .zow-metrics,
.zow-story-scene.is-active .zow-system-grid,
.zow-story-scene.is-active .zow-feature-grid,
.zow-story-scene.is-active .zow-plan-grid,
.zow-story-scene.is-active .zow-contact-grid,
.zow-story-scene.is-active .zow-request-form {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .zow-story-copy,
  .zow-story-copy.wide-copy {
    display: flex !important;
    text-align: left;
    max-height: none;
  }

  .zow-metrics,
  .zow-system-grid,
  .zow-feature-grid,
  .zow-plan-grid,
  .zow-contact-grid,
  .zow-request-form {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin-top: 14px !important;
  }

  .zow-metrics,
  .zow-system-grid,
  .zow-feature-grid,
  .zow-plan-grid,
  .zow-contact-grid,
  .zow-request-form {
    grid-template-columns: 1fr !important;
  }
}

/* SYSTEM ZOW final presentation pass: full-screen rhythm, active navigation and polished cards. */
.zow-scroll-video-page {
  --zow-cyan: #78f4ff;
  --zow-blue: #4ba7ff;
  --zow-mint: #68ffc8;
  --zow-ink: #f7fbff;
  --zow-soft: rgb(235 248 255 / 82%);
}

.zow-story-header {
  top: clamp(10px, 2svh, 18px) !important;
  width: min(1120px, calc(100% - 28px)) !important;
  min-height: 58px !important;
  padding: 8px 10px 8px 12px !important;
  border-color: rgb(139 245 255 / 22%) !important;
  background:
    linear-gradient(120deg, rgb(2 8 19 / 86%), rgb(1 13 24 / 70%)),
    radial-gradient(circle at 12% 0%, rgb(120 244 255 / 18%), transparent 30%) !important;
  box-shadow: 0 18px 60px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 8%) !important;
}

.zow-story-brand {
  gap: 10px !important;
}

.zow-mark {
  box-shadow: 0 0 28px rgb(120 244 255 / 44%), inset 0 0 18px rgb(255 255 255 / 18%) !important;
}

.zow-story-nav {
  gap: 4px !important;
}

.zow-story-nav a {
  position: relative;
  min-height: 38px !important;
  padding: 10px 12px !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

.zow-story-nav a:hover {
  transform: translateY(-1px);
}

.zow-story-nav a.is-active {
  color: #07111b !important;
  border-color: rgb(160 255 249 / 65%) !important;
  background: linear-gradient(135deg, #8cf8ff, #4fb2ff) !important;
  box-shadow: 0 12px 34px rgb(79 178 255 / 30%) !important;
}

.zow-story-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgb(2 12 23 / 52%);
}

.zow-story-scene {
  width: min(1320px, calc(100% - 40px)) !important;
  min-height: 100svh !important;
  padding: clamp(86px, 12svh, 116px) 0 clamp(28px, 5svh, 46px) !important;
  display: grid !important;
  place-items: center !important;
  overflow: clip;
}

.zow-story-scene.align-right {
  margin-left: auto !important;
  margin-right: auto !important;
}

.zow-story-copy,
.zow-story-copy.wide-copy {
  width: min(1240px, 100%) !important;
  min-height: min(690px, calc(100svh - 142px)) !important;
  max-height: calc(100svh - 118px) !important;
  display: grid !important;
  grid-template-columns: minmax(340px, 0.82fr) minmax(560px, 1.18fr) !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  align-content: center !important;
  align-items: center !important;
  gap: clamp(12px, 1.8vw, 22px) clamp(28px, 4.6vw, 70px) !important;
  padding: clamp(10px, 1.6vw, 20px) !important;
  text-align: left !important;
  isolation: isolate;
}

.zow-story-copy::before {
  inset: -8px !important;
  border: 1px solid rgb(120 244 255 / 10%);
  border-radius: clamp(24px, 3vw, 40px) !important;
  background:
    linear-gradient(90deg, rgb(2 7 18 / 78%) 0%, rgb(2 13 27 / 55%) 42%, rgb(2 16 32 / 30%) 100%),
    radial-gradient(circle at 78% 36%, rgb(104 255 200 / 11%), transparent 34%) !important;
  box-shadow: none !important;
}

.zow-story-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 -18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(120 244 255 / 56%), rgb(104 255 200 / 36%), transparent);
  opacity: 0.86;
}

.zow-kicker {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 9px 14px !important;
  border-color: rgb(120 244 255 / 36%) !important;
  background: linear-gradient(135deg, rgb(120 244 255 / 16%), rgb(104 255 200 / 9%)) !important;
  color: #bdfaff !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}

.zow-story-copy h1,
.zow-story-copy h2 {
  max-width: 9.8ch !important;
  color: var(--zow-ink) !important;
  font-size: clamp(3rem, 6.1vw, 6.75rem) !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgb(0 0 0 / 48%);
}

.zow-story-copy h2 {
  font-size: clamp(2.65rem, 5.1vw, 5.6rem) !important;
}

.zow-story-copy > p {
  max-width: 58ch !important;
  color: var(--zow-soft) !important;
  font-size: clamp(0.96rem, 1.28vw, 1.18rem) !important;
  line-height: 1.58 !important;
}

.zow-story-actions {
  gap: 10px !important;
  flex-wrap: wrap;
}

.zow-story-actions a {
  min-height: 44px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 34px rgb(79 178 255 / 22%);
}

.zow-story-actions a:hover {
  transform: translateY(-2px) scale(1.02);
}

.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid {
  grid-column: 2 !important;
  grid-row: 1 / span 5 !important;
  align-self: center !important;
  width: 100% !important;
  gap: clamp(10px, 1.35vw, 16px) !important;
  counter-reset: zow-card;
}

.zow-metrics,
.zow-feature-grid,
.zow-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.zow-system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.zow-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.zow-metrics article,
.zow-system-grid article,
.zow-feature-grid article,
.zow-plan-grid article,
.zow-contact-grid article {
  position: relative;
  min-height: 102px !important;
  padding: 16px 16px 16px 62px !important;
  overflow: hidden;
  border: 1px solid rgb(156 231 255 / 17%) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 4%)),
    linear-gradient(135deg, rgb(3 12 24 / 78%), rgb(20 43 59 / 50%)) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 18px 44px rgb(0 0 0 / 18%) !important;
  backdrop-filter: blur(15px);
}

.zow-metrics article::before,
.zow-system-grid article::before,
.zow-feature-grid article::before,
.zow-plan-grid article::before,
.zow-contact-grid article::before {
  counter-increment: zow-card;
  content: counter(zow-card, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(137 246 255 / 34%);
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(120 244 255 / 24%), rgb(104 255 200 / 14%));
  color: #dffcff;
  font-size: 0.66rem;
  font-weight: 1000;
  box-shadow: 0 0 22px rgb(120 244 255 / 18%);
}

.zow-metrics article::after,
.zow-system-grid article::after,
.zow-feature-grid article::after,
.zow-plan-grid article::after,
.zow-contact-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgb(255 255 255 / 10%) 44%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.zow-story-scene.is-active .zow-metrics article::after,
.zow-story-scene.is-active .zow-system-grid article::after,
.zow-story-scene.is-active .zow-feature-grid article::after,
.zow-story-scene.is-active .zow-plan-grid article::after,
.zow-story-scene.is-active .zow-contact-grid article::after {
  animation: zow-card-sweep 1300ms cubic-bezier(.2,.8,.2,1) both;
}

.zow-metrics strong,
.zow-system-grid strong,
.zow-feature-grid strong,
.zow-plan-grid strong,
.zow-contact-grid strong {
  display: block;
  color: #ffffff !important;
  font-size: clamp(0.96rem, 1.12vw, 1.13rem) !important;
  line-height: 1.18 !important;
  text-wrap: balance;
}

.zow-metrics span,
.zow-system-grid span,
.zow-feature-grid span,
.zow-plan-grid span,
.zow-contact-grid span,
.zow-system-grid small {
  color: rgb(217 242 250 / 78%) !important;
  font-size: clamp(0.72rem, .82vw, .86rem) !important;
  line-height: 1.42 !important;
}

.zow-system-grid article {
  min-height: 340px !important;
  display: flex !important;
  flex-direction: column;
}

.zow-system-grid article > span,
.zow-plan-grid article > span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgb(104 255 200 / 25%);
  border-radius: 999px;
  background: rgb(104 255 200 / 10%);
  color: #bfffe9 !important;
  font-weight: 1000 !important;
  text-transform: uppercase;
}

.zow-system-grid p {
  color: rgb(235 248 255 / 88%) !important;
  font-size: clamp(0.84rem, .94vw, .98rem) !important;
  line-height: 1.48 !important;
}

.zow-system-grid small {
  display: block;
  margin-top: auto !important;
}

.zow-system-grid a,
.zow-plan-grid a,
.zow-request-form button {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #89f9ff, #35a7ff) !important;
  color: #06131d !important;
  box-shadow: 0 12px 34px rgb(53 167 255 / 24%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.zow-system-grid a:hover,
.zow-plan-grid a:hover,
.zow-request-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgb(53 167 255 / 34%);
}

.zow-story-scene:not(.is-active) .zow-kicker,
.zow-story-scene:not(.is-active) .zow-story-copy h1,
.zow-story-scene:not(.is-active) .zow-story-copy h2,
.zow-story-scene:not(.is-active) .zow-story-copy > p,
.zow-story-scene:not(.is-active) .zow-story-actions {
  opacity: 0;
  transform: translate3d(-42px, 18px, 0) scale(.98);
}

.zow-story-scene:not(.is-active) .zow-metrics,
.zow-story-scene:not(.is-active) .zow-system-grid,
.zow-story-scene:not(.is-active) .zow-feature-grid,
.zow-story-scene:not(.is-active) .zow-plan-grid,
.zow-story-scene:not(.is-active) .zow-contact-grid,
.zow-story-scene:not(.is-active) .zow-request-form {
  opacity: 0;
  transform: translate3d(48px, 20px, 0) scale(.985);
}

.zow-kicker,
.zow-story-copy h1,
.zow-story-copy h2,
.zow-story-copy > p,
.zow-story-actions,
.zow-metrics,
.zow-system-grid,
.zow-feature-grid,
.zow-plan-grid,
.zow-contact-grid,
.zow-request-form {
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(.18,.82,.22,1) !important;
}

.zow-story-scene.is-active article {
  animation: zow-card-rise 560ms cubic-bezier(.2,.8,.2,1) both;
}

.zow-story-scene.is-active article:nth-child(2) { animation-delay: 45ms; }
.zow-story-scene.is-active article:nth-child(3) { animation-delay: 90ms; }
.zow-story-scene.is-active article:nth-child(4) { animation-delay: 135ms; }
.zow-story-scene.is-active article:nth-child(5) { animation-delay: 180ms; }
.zow-story-scene.is-active article:nth-child(6) { animation-delay: 225ms; }

.contact-scene .zow-story-copy {
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr) !important;
}

.contact-scene .zow-contact-grid {
  grid-column: 1 !important;
  grid-row: auto !important;
  align-self: start !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: 4px !important;
}

.contact-scene .zow-contact-grid article {
  min-height: 74px !important;
  padding: 13px 13px 13px 52px !important;
}

.contact-scene .zow-story-actions {
  grid-column: 1 !important;
}

.contact-scene .zow-request-form {
  grid-column: 2 !important;
  grid-row: 1 / span 5 !important;
  align-self: center !important;
  margin-top: 0 !important;
  padding: clamp(14px, 1.7vw, 22px) !important;
  border: 1px solid rgb(156 231 255 / 18%);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 4%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 22px 56px rgb(0 0 0 / 20%);
}

.contact-scene .zow-request-form input,
.contact-scene .zow-request-form select,
.contact-scene .zow-request-form textarea {
  background: rgb(255 255 255 / 10%) !important;
  color: #fff !important;
}

.contact-scene .zow-request-form input::placeholder,
.contact-scene .zow-request-form textarea::placeholder {
  color: rgb(236 248 255 / 54%) !important;
}

.contact-scene .zow-request-form .span-2,
.contact-scene .zow-request-form button,
.contact-scene .zow-request-form p {
  grid-column: 1 / -1 !important;
}

@keyframes zow-card-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zow-card-sweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@media (max-height: 780px) and (min-width: 1101px) {
  .zow-story-scene {
    padding-top: 82px !important;
    padding-bottom: 24px !important;
  }

  .zow-story-copy,
  .zow-story-copy.wide-copy {
    min-height: calc(100svh - 124px) !important;
    max-height: calc(100svh - 104px) !important;
    gap: 9px clamp(22px, 3.4vw, 48px) !important;
  }

  .zow-story-copy h1,
  .zow-story-copy h2 {
    font-size: clamp(2.55rem, 5.2vw, 5.3rem) !important;
  }

  .zow-story-copy h2 {
    font-size: clamp(2.25rem, 4.45vw, 4.65rem) !important;
  }

  .zow-story-copy > p {
    font-size: .92rem !important;
    line-height: 1.42 !important;
  }

  .zow-metrics article,
  .zow-feature-grid article,
  .zow-plan-grid article,
  .zow-contact-grid article {
    min-height: 82px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .zow-system-grid article {
    min-height: 286px !important;
  }

  .zow-request-form textarea {
    max-height: 76px !important;
  }
}

@media (max-width: 1180px) {
  .zow-story-nav a {
    padding-inline: 9px !important;
    font-size: .78rem !important;
  }

  .zow-story-copy,
  .zow-story-copy.wide-copy {
    grid-template-columns: minmax(300px, .78fr) minmax(480px, 1.22fr) !important;
  }
}

@media (max-width: 1100px) {
  .zow-story-scene {
    min-height: auto !important;
    padding: 96px 0 34px !important;
    overflow: visible;
  }

  .zow-story-copy,
  .zow-story-copy.wide-copy,
  .contact-scene .zow-story-copy {
    display: flex !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 18px !important;
  }

  .zow-story-copy h1,
  .zow-story-copy h2 {
    max-width: 11ch !important;
    font-size: clamp(2.45rem, 11vw, 4.4rem) !important;
  }

  .zow-metrics,
  .zow-system-grid,
  .zow-feature-grid,
  .zow-plan-grid,
  .zow-contact-grid,
  .zow-request-form,
  .contact-scene .zow-contact-grid,
  .contact-scene .zow-request-form {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .zow-system-grid,
  .zow-plan-grid {
    grid-template-columns: 1fr !important;
  }

  .zow-system-grid article {
    min-height: auto !important;
  }
}

@media (max-width: 720px) {
  .zow-story-header {
    width: min(100% - 18px, 620px) !important;
  }

  .zow-story-copy h1,
  .zow-story-copy h2 {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 14vw, 3.55rem) !important;
  }

  .zow-metrics,
  .zow-system-grid,
  .zow-feature-grid,
  .zow-plan-grid,
  .zow-contact-grid,
  .zow-request-form,
  .contact-scene .zow-contact-grid,
  .contact-scene .zow-request-form {
    grid-template-columns: 1fr !important;
  }

  .zow-metrics article,
  .zow-system-grid article,
  .zow-feature-grid article,
  .zow-plan-grid article,
  .zow-contact-grid article {
    min-height: auto !important;
  }
}
/* UI por rubro - acabado comercial 2026 */
body.app-correspondencia,
body.app-ventas {
  --ui-radius: 8px;
  --ui-shadow: 0 18px 52px rgb(15 23 42 / 9%);
  --ui-shadow-strong: 0 26px 76px rgb(15 23 42 / 14%);
}

body.app-correspondencia .app-shell,
body.app-ventas .ventas-touch-shell {
  transition: background-color 180ms ease, color 180ms ease;
}

body.app-correspondencia button,
body.app-ventas button,
body.app-correspondencia input,
body.app-ventas input,
body.app-correspondencia select,
body.app-ventas select,
body.app-correspondencia textarea,
body.app-ventas textarea {
  border-radius: var(--ui-radius);
}

body.app-correspondencia button,
body.app-ventas button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

body.app-correspondencia button:not(:disabled):active,
body.app-ventas button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}

body.app-correspondencia input:focus,
body.app-correspondencia select:focus,
body.app-correspondencia textarea:focus,
body.app-ventas input:focus,
body.app-ventas select:focus,
body.app-ventas textarea:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

body.app-correspondencia {
  background:
    linear-gradient(90deg, rgb(15 23 42 / 4%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(37 99 235 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 84% 12%, rgb(37 99 235 / 11%), transparent 28rem),
    radial-gradient(circle at 16% 92%, rgb(14 165 233 / 10%), transparent 30rem),
    #eef4fb;
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body.app-correspondencia .sidebar {
  min-height: 100dvh;
  padding: 18px;
  gap: 20px;
  border-right: 1px solid rgb(148 163 184 / 18%);
}

body.app-correspondencia .sidebar-brand {
  padding-bottom: 14px;
}

body.app-correspondencia .sidebar-brand img {
  width: min(188px, 100%);
  border-radius: var(--ui-radius);
}

body.app-correspondencia .nav {
  gap: 10px;
}

body.app-correspondencia .nav-group {
  border-radius: var(--ui-radius);
  padding: 7px;
}

body.app-correspondencia .nav-group-toggle {
  min-height: 32px;
}

body.app-correspondencia .nav-item {
  min-height: 39px;
  padding: 9px 10px;
}

body.app-correspondencia .app-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.3vw, 30px);
}

body.app-correspondencia .topbar {
  align-items: flex-start;
  border-radius: var(--ui-radius);
  padding: clamp(14px, 2vw, 20px);
}

body.app-correspondencia .topbar h1 {
  margin: 3px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
}

body.app-correspondencia .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-correspondencia .metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

body.app-correspondencia .metrics article,
body.app-correspondencia .document-list,
body.app-correspondencia .detail-panel,
body.app-correspondencia .filter-panel,
body.app-correspondencia .workflow-panel,
body.app-correspondencia .admin-panel {
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

body.app-correspondencia .content-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 16px;
}

body.app-correspondencia .document-list,
body.app-correspondencia .detail-panel {
  min-width: 0;
}

body.app-correspondencia .doc-card {
  border-radius: var(--ui-radius);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.app-correspondencia .doc-card:hover,
body.app-correspondencia .doc-card.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgb(37 99 235 / 12%);
}

body.app-correspondencia .workflow-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(239 246 255 / 88%));
}

body.app-correspondencia .login-layout {
  border-radius: var(--ui-radius);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights div {
  border-radius: var(--ui-radius);
}

body.app-ventas {
  --accent: #0d9f72;
  --accent-dark: #096044;
  --accent-soft: #dcfce7;
  --accent-tint: #f4fbf7;
  background:
    linear-gradient(90deg, rgb(15 118 110 / 5%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(245 158 11 / 5%) 1px, transparent 1px),
    radial-gradient(circle at 86% 12%, rgb(245 158 11 / 13%), transparent 26rem),
    radial-gradient(circle at 12% 82%, rgb(16 185 129 / 13%), transparent 30rem),
    #edf4f0;
  background-size: 76px 76px, 76px 76px, auto, auto, auto;
}

body.app-ventas .ventas-touch-shell {
  width: min(1720px, 100%) !important;
  padding: clamp(12px, 1.6vw, 22px);
}

body.app-ventas .ventas-touch-shell .topbar {
  border-radius: var(--ui-radius);
  padding: clamp(12px, 1.8vw, 18px);
  box-shadow: var(--ui-shadow-strong);
}

body.app-ventas .topbar-actions {
  flex-wrap: wrap;
  gap: 8px;
}

body.app-ventas .ventas-touch-shell .metrics {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
}

body.app-ventas .ventas-touch-shell .metrics article,
body.app-ventas .ventas-workspace .document-list,
body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel,
body.app-ventas .ventas-tabs,
body.app-ventas .ventas-workspace .workflow-panel {
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

body.app-ventas .ventas-workspace {
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 16px;
}

body.app-ventas .ventas-tabs {
  max-height: calc(100dvh - 36px);
  scrollbar-width: thin;
}

body.app-ventas .ventas-tabs button {
  min-height: 48px;
  border-radius: var(--ui-radius);
}

body.app-ventas .ventas-tabs button.is-active::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 28px;
  height: 2px;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
}

body.app-ventas .touch-pos-shell {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 14px;
  min-height: calc(100dvh - 112px);
  overflow: hidden;
}

body.app-ventas .touch-panel,
body.app-ventas .touch-cart-panel {
  min-height: 0;
  max-height: calc(100dvh - 118px);
  overflow: auto;
}

body.app-ventas .touch-cart-panel {
  position: sticky;
  top: 10px;
}

body.app-ventas .touch-pos-head,
body.app-ventas .touch-cart-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -2px -2px 12px;
  padding: 2px 2px 10px;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(255 255 255 / 78%));
  backdrop-filter: blur(10px);
}

body.app-ventas .touch-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  align-items: stretch;
}

body.app-ventas .touch-product-card,
body.app-ventas .pos-product-card {
  min-width: 0;
  border-radius: var(--ui-radius);
  contain: layout paint;
}

body.app-ventas .touch-product-card strong,
body.app-ventas .pos-product-card strong,
body.app-ventas .cart-line strong {
  overflow-wrap: anywhere;
  line-height: 1.16;
}

body.app-ventas .cart-line {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: var(--ui-radius);
}

body.app-ventas .cart-line input {
  min-width: 72px;
}

body.app-ventas .touch-charge-button {
  border-radius: var(--ui-radius);
  box-shadow: 0 16px 36px rgb(15 159 110 / 20%);
}

body.app-ventas .login-layout,
body.app-ventas .login-intro,
body.app-ventas .login-card,
body.app-ventas .login-highlights div,
body.app-ventas .sales-login-window {
  border-radius: var(--ui-radius);
}

body.app-ventas .login-card {
  box-shadow: 0 26px 80px rgb(8 30 26 / 14%);
}

@media (min-width: 1500px) {
  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  body.app-ventas .touch-pos-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  }

  body.app-correspondencia .content-grid {
    grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  }
}

@media (max-width: 1180px) {
  body.app-correspondencia {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.app-correspondencia .content-grid,
  body.app-ventas .touch-pos-shell {
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-cart-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  body.app-correspondencia {
    display: block;
  }

  body.app-correspondencia .sidebar {
    position: sticky;
    top: 0;
    min-height: auto;
    z-index: 8;
    padding: 10px 12px;
    gap: 10px;
  }

  body.app-correspondencia .sidebar-brand,
  body.app-correspondencia .sidebar-footer {
    display: none;
  }

  body.app-correspondencia .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.app-correspondencia .nav-group {
    min-width: max-content;
  }

  body.app-correspondencia .nav-group-items {
    display: flex !important;
  }

  body.app-correspondencia .topbar,
  body.app-correspondencia .workflow-panel {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-correspondencia .metrics,
  body.app-ventas .ventas-touch-shell .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .ventas-workspace {
    display: block;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex;
    position: sticky;
    top: 8px;
    z-index: 10;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  body.app-ventas .ventas-tabs {
    display: none;
    position: sticky;
    top: 58px;
    z-index: 10;
    max-height: 54dvh;
    margin-bottom: 10px;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs {
    display: grid;
  }

  body.app-ventas .ventas-workspace .workflow-panel,
  body.app-ventas .ventas-workspace .content-grid {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.app-correspondencia .app-shell,
  body.app-ventas .ventas-touch-shell {
    padding: 10px;
  }

  body.app-correspondencia .metrics,
  body.app-ventas .ventas-touch-shell .metrics {
    grid-template-columns: 1fr;
  }

  body.app-correspondencia .topbar-actions > *,
  body.app-ventas .topbar-actions > * {
    min-width: 0;
  }

  body.app-ventas .touch-panel,
  body.app-ventas .touch-cart-panel {
    max-height: none;
  }

  body.app-ventas .touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .touch-product-card {
    min-height: 140px;
    padding: 12px;
  }

  body.app-ventas .cart-line {
    grid-template-columns: 1fr;
  }

  body.app-ventas .cart-line-actions,
  body.app-ventas .sale-actions-grid {
    grid-template-columns: 1fr;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen,
  body.app-ventas .ventas-login-screen {
    padding: 10px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout,
  body.app-ventas .login-layout {
    max-height: none;
    min-height: auto;
  }
}

/* Ajuste final de logins: sin desbordes en celular y sin texto tapado */
body.app-ventas .login-copy h1,
body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.app-ventas .sales-login-window {
  right: clamp(18px, 5vw, 54px);
  top: clamp(188px, 28vh, 230px);
  max-width: min(280px, 34%);
}

body.app-ventas .ventas-login-screen .sales-login-window {
  top: clamp(188px, 28vh, 230px) !important;
}

body.app-ventas .login-copy {
  max-width: min(420px, 48%);
}

body.app-ventas .login-copy h1 {
  font-size: clamp(3rem, 5.3vw, 5.6rem);
  line-height: 0.96;
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy {
  max-width: min(620px, 82%);
}

body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
  font-size: clamp(3rem, 5.1vw, 5.1rem);
  line-height: 0.98;
}

@media (max-width: 980px) {
  body.app-ventas,
  body.app-correspondencia {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.app-ventas .ventas-login-screen,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen {
    display: block;
    padding: 10px;
    overflow-x: hidden;
  }

  body.app-ventas .login-layout,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: none;
    overflow: hidden;
  }

  body.app-ventas .login-intro,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
    min-width: 0;
    min-height: auto;
    padding: 18px;
  }

  body.app-ventas .login-copy,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy {
    width: 100%;
    max-width: 100%;
  }

  body.app-ventas .login-copy h1,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 4rem);
    line-height: 0.98;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  body.app-ventas .login-copy p:not(.eyebrow),
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  body.app-ventas .sales-login-window {
    position: relative;
    inset: auto;
    max-width: 100%;
    width: 100%;
    margin: 12px 0;
  }

  body.app-ventas .ventas-login-screen .sales-login-window {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.app-ventas .advanced-sales-scene {
    min-height: 190px;
    transform: scale(0.82);
    transform-origin: center;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
    min-height: 190px;
    transform: scale(0.82);
    transform-origin: center;
  }

  body.app-ventas .login-card,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    order: -1;
    grid-row: 1;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
    overflow: hidden;
  }

  body.app-ventas .ventas-login-screen .login-card,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    grid-row: 1 !important;
  }

  body.app-ventas .ventas-login-screen .login-intro,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
    grid-row: 2 !important;
  }
}

@media (max-width: 560px) {
  body.app-ventas .login-intro,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-intro {
    overflow: hidden;
    min-height: auto;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  body.app-ventas .advanced-sales-scene,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .correspondence-login-scene {
    display: none;
  }

  body.app-ventas .login-highlights,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights {
    grid-template-columns: 1fr;
  }

  body.app-ventas .login-card,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card {
    padding: 18px;
  }

  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card h2,
  body.app-ventas .login-card h2 {
    font-size: clamp(1.65rem, 9vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  body.app-ventas .login-notice p,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-notice p,
  body.app-ventas .login-card label,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card label {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  body.app-ventas .login-notice,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-notice {
    max-width: 100%;
    overflow: hidden;
  }

  body.app-ventas .login-card input,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card input,
  body.app-ventas .login-card button,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-card button {
    max-width: 100%;
  }

  body.app-ventas .login-copy h1,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    word-break: break-word;
  }

  body.app-ventas .ventas-login-screen .login-copy h1,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy h1 {
    font-size: clamp(2rem, 10vw, 2.9rem) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.app-ventas .login-copy p:not(.eyebrow),
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-copy p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  body.app-ventas .login-highlights div,
  body.app-correspondencia:not(.app-zow-panel-login) .correspondence-login-screen .login-highlights div {
    min-height: 64px;
  }
}

/* Autoridad final del Panel ZOW: evita que los overrides de Correspondencia recorten el dashboard admin. */
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .app-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .main-content,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .document-list,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(14px, 1.4vw, 20px) !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .document-list {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
  align-content: start;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode .detail-panel {
  display: none !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .detail-panel.hidden {
  display: none !important;
}

/* Panel ZOW final shell: /panel logueado debe ser una consola propia, no Correspondencia recortada. */
body.app-zow-panel:not(.app-zow-panel-login) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgb(37 99 235 / 14%), transparent 30%),
    radial-gradient(circle at 86% 12%, rgb(20 184 166 / 14%), transparent 30%),
    linear-gradient(135deg, #eef4fb, #f8fbfc);
}

body.app-zow-panel:not(.app-zow-panel-login) .sidebar,
body.app-zow-panel:not(.app-zow-panel-login) .topbar,
body.app-zow-panel:not(.app-zow-panel-login) .metrics,
body.app-zow-panel:not(.app-zow-panel-login) .filter-panel,
body.app-zow-panel:not(.app-zow-panel-login) .workflow-panel,
body.app-zow-panel:not(.app-zow-panel-login) .section-heading,
body.app-zow-panel:not(.app-zow-panel-login) .detail-panel {
  display: none !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .app-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: clamp(14px, 2vw, 28px) !important;
  background: transparent !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .main-content,
body.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-zow-panel:not(.app-zow-panel-login) .document-list {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .workspace {
  padding: 0 !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-zow-panel:not(.app-zow-panel-login) .content-grid.admin-mode {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .document-list {
  display: grid !important;
  gap: clamp(14px, 1.5vw, 22px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-saas-command-center {
  width: min(100%, 1680px);
  margin: 0 auto;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard {
  border-radius: 28px;
  padding: clamp(18px, 2vw, 30px);
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero {
  min-height: 150px;
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 34px);
  background:
    linear-gradient(135deg, #071b34, #123b72 52%, #0ea5e9);
  color: #ffffff;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero h3,
body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero .eyebrow {
  color: #ffffff;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero span {
  color: rgb(255 255 255 / 82%);
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .admin-panel,
body.app-zow-panel:not(.app-zow-panel-login) .renewal-panel,
body.app-zow-panel:not(.app-zow-panel-login) .zow-production-review,
body.app-zow-panel:not(.app-zow-panel-login) .cloud-safe-note {
  border-radius: 22px;
}

@media (min-width: 1420px) {
  body.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1020px) {
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace,
  body.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail {
    position: static;
  }
}

@media (max-width: 720px) {
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs,
  body.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
  body.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics {
    grid-template-columns: 1fr !important;
  }
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr)) !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-command-shell {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
  width: 100%;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid rgb(20 34 38 / 9%);
  border-radius: 18px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 16px 34px rgb(20 34 38 / 6%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  justify-items: start;
  border-radius: 14px;
  padding: 11px 12px;
  text-align: left;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs button strong {
  color: inherit;
  font-size: 0.92rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs button span {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  align-items: start;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-main-flow {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
  min-width: 0;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-board,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-card,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps article,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block {
  border: 1px solid rgb(20 34 38 / 9%);
  background:
    radial-gradient(circle at 100% 0%, rgb(36 117 109 / 9%), transparent 34%),
    linear-gradient(145deg, #ffffff, #f7fbfb);
  box-shadow: 0 18px 44px rgb(20 34 38 / 7%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  border-radius: 20px;
  padding: 16px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail h4 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.05rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail span,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-metrics span,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-title span,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics small,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps small,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-metrics article {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 10px;
  background: rgb(36 117 109 / 7%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-metrics article.is-danger {
  background: #fff1f1;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-rail-actions {
  display: grid;
  gap: 8px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-board {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  padding: 14px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgb(20 34 38 / 8%);
  border-radius: 16px;
  padding: 13px;
  background: rgb(255 255 255 / 78%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid article div,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid span,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics span,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block-head span {
  color: #52676d;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid strong {
  color: #123b36;
  font-size: 1.45rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid small,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-state-pill,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-system-chips span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(36 117 109 / 10%);
  color: #17695f;
  font-size: 0.72rem;
  font-weight: 950;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border-radius: 20px;
  padding: 16px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-title strong {
  display: block;
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 1.08rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-state-pill.is-danger,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-system-chips span.is-danger {
  background: #fff1f1;
  color: #b42318;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-state-pill.is-ok {
  background: #ecfdf5;
  color: #166534;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics article {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 10px;
  background: rgb(255 255 255 / 82%);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics strong {
  color: var(--ink);
  font-size: 0.96rem;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-system-chips,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-guidance {
  display: grid;
  gap: 10px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-actions {
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgb(20 34 38 / 8%);
  padding-top: 12px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps article {
  display: grid;
  gap: 5px;
  border-radius: 16px;
  padding: 13px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps span {
  color: #17695f;
  font-size: 0.75rem;
  font-weight: 950;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps strong,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block-head strong {
  color: var(--ink);
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  border-radius: 18px;
  padding: 15px;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block-head,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block .span-2,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block fieldset,
body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block > div:not(.company-create-block-head) {
  grid-column: 1 / -1;
}

body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 920px) {
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-hero,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-form .form-grid {
    grid-template-columns: 1fr !important;
  }

  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-action-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .zow-panel-tabs,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-card-metrics,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-steps,
  body.app-correspondencia.app-zow-panel:not(.app-zow-panel-login) .company-create-block {
    grid-template-columns: 1fr !important;
  }
}

/* Ventas-Almacen warm operational redesign */
body.app-ventas {
  --ventas-primary: #0f766e;
  --ventas-primary-strong: #115e59;
  --ventas-primary-soft: #ccfbf1;
  --ventas-accent: #14b8a6;
  --ventas-warning: #d97706;
  --ventas-warning-soft: #fff7ed;
  --ventas-danger: #dc2626;
  --ventas-danger-soft: #fef2f2;
  --ventas-ok: #16a34a;
  --ventas-info: #2563eb;
  --ventas-ink: #14201f;
  --ventas-muted: #61706b;
  --ventas-surface: #fbfaf7;
  --ventas-panel: #ffffff;
  --ventas-panel-soft: #f5fbf8;
  --ventas-border: rgb(15 118 110 / 16%);
  --ventas-border-strong: rgb(15 118 110 / 28%);
  --ventas-radius: 8px;
  --ventas-shadow: 0 18px 46px rgb(20 32 31 / 10%);
  --ventas-shadow-soft: 0 10px 24px rgb(20 32 31 / 7%);
  --ventas-focus: 0 0 0 3px rgb(20 184 166 / 24%);
  background: var(--ventas-surface);
  color: var(--ventas-ink);
}

body.app-ventas .ventas-operational-shell {
  background:
    linear-gradient(180deg, rgb(245 251 248 / 96%), rgb(251 250 247 / 98%)),
    radial-gradient(circle at top left, rgb(204 251 241 / 42%), transparent 34%);
}

body.app-ventas .operation-panel,
body.app-ventas .metric-card,
body.app-ventas .data-row,
body.app-ventas .filter-bar,
body.app-ventas .notice-panel,
body.app-ventas .cart-summary,
body.app-ventas .form-modal {
  border: 1px solid var(--ventas-border);
  border-radius: var(--ventas-radius);
  background: var(--ventas-panel);
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .workflow-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

body.app-ventas .action-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem;
}

body.app-ventas .data-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.app-ventas .data-row:hover {
  border-color: var(--ventas-border-strong);
  box-shadow: var(--ventas-shadow);
}

body.app-ventas .result-count-text {
  color: var(--ventas-muted);
  font-weight: 700;
}

body.app-ventas .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--ventas-border);
  background: var(--ventas-panel-soft);
  color: var(--ventas-primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

body.app-ventas .status-pill.is-ok {
  border-color: rgb(22 163 74 / 28%);
  background: #ecfdf5;
  color: #166534;
}

body.app-ventas .status-pill.is-warning {
  border-color: rgb(217 119 6 / 30%);
  background: var(--ventas-warning-soft);
  color: #92400e;
}

body.app-ventas .status-pill.is-danger {
  border-color: rgb(220 38 38 / 26%);
  background: var(--ventas-danger-soft);
  color: #991b1b;
}

body.app-ventas .status-pill.is-info {
  border-color: rgb(37 99 235 / 24%);
  background: #eff6ff;
  color: #1d4ed8;
}

body.app-ventas button:focus-visible,
body.app-ventas input:focus-visible,
body.app-ventas select:focus-visible,
body.app-ventas textarea:focus-visible {
  outline: none;
  box-shadow: var(--ventas-focus);
}

@media (prefers-reduced-motion: reduce) {
  body.app-ventas *,
  body.app-ventas *::before,
  body.app-ventas *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.app-ventas .cart-summary {
  position: relative;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f7fffc);
}

body.app-ventas .touch-product-card {
  min-height: 132px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

body.app-ventas .touch-product-card strong,
body.app-ventas .cart-summary strong {
  color: var(--ventas-ink);
}

body.app-ventas .touch-product-card b {
  color: var(--ventas-primary-strong);
  font-size: 1.1rem;
}

body.app-ventas .form-modal.is-submitting {
  cursor: progress;
}

body.app-ventas .form-modal.is-submitting .primary-button {
  opacity: 0.72;
}

body.app-ventas dialog::backdrop {
  background: rgb(20 32 31 / 46%);
  backdrop-filter: blur(8px);
}

body.app-ventas .form-modal {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(86vh, 820px);
  overflow: auto;
}

/* POS cart production fix: keep the right column compact and stable. */
body.app-ventas .touch-cart-panel .pos-cart-list {
  max-height: none;
  overflow: visible;
}

body.app-ventas .touch-cart-line {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}

body.app-ventas .cart-item-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

body.app-ventas .cart-item-name strong,
body.app-ventas .cart-item-name span,
body.app-ventas .cart-item-name small {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.app-ventas .cart-item-name > span {
  width: fit-content;
}

body.app-ventas .cart-line-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

body.app-ventas .touch-qty {
  display: grid;
  grid-template-columns: 42px minmax(44px, 1fr) 42px;
  gap: 6px;
}

body.app-ventas .touch-qty .ghost-button,
body.app-ventas .touch-qty strong {
  min-height: 40px;
}

body.app-ventas .cart-discount-field {
  min-width: 0;
}

body.app-ventas .cart-discount-field input {
  width: 100%;
  min-height: 40px;
}

body.app-ventas .cart-line-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

body.app-ventas .form-modal .modal-header,
body.app-ventas .form-modal .modal-actions {
  position: sticky;
  background: var(--ventas-panel);
  z-index: 2;
}

body.app-ventas .form-modal .modal-header {
  top: 0;
}

body.app-ventas .form-modal .modal-actions {
  bottom: 0;
  border-top: 1px solid var(--ventas-border);
}

body.app-ventas .filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem;
}

body.app-ventas .filter-bar input,
body.app-ventas .filter-bar select {
  min-height: 42px;
}

body.app-ventas .notice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
}

body.app-ventas .notice-panel strong,
body.app-ventas .notice-panel span {
  display: block;
}

body.app-ventas .sale-readiness-panel.notice-panel {
  display: grid;
  align-items: stretch;
  justify-content: initial;
}

@media (max-width: 768px) {
  body.app-ventas .ventas-operational-shell {
    overflow-x: hidden;
  }

  body.app-ventas .workflow-summary,
  body.app-ventas .notice-panel,
  body.app-ventas .action-footer {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .sale-readiness-panel.notice-panel {
    display: grid;
  }

  body.app-ventas .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-product-card {
    min-height: 118px;
  }

  body.app-ventas .form-modal {
    width: calc(100vw - 1rem);
    max-height: 90vh;
  }
}

/* Final payment modal width override: keep checkout wide on desktop after form-modal rules. */
body.app-ventas #paymentModal {
  width: min(1180px, calc(100vw - 32px));
}

body.app-ventas #paymentModal .payment-modal-body.form-modal {
  width: 100%;
  max-width: none;
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  padding: 14px 20px;
}

body.app-ventas #paymentModal .modal-header {
  display: none;
  position: static;
  margin: 0 0 10px;
  border-radius: 18px;
}

body.app-ventas #paymentModal #paymentModalContent {
  min-height: 0;
  overflow: hidden;
}

body.app-ventas #paymentModal .payment-fit-layout {
  height: 100%;
  max-height: none;
  gap: 14px;
}

body.app-ventas #paymentModal .payment-fit-entry {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(148px, 1fr) auto auto;
  gap: 8px;
  overflow: hidden;
}

body.app-ventas #paymentModal .touch-payment-methods,
body.app-ventas #paymentModal .quick-cash-grid {
  gap: 6px;
}

body.app-ventas #paymentModal .touch-payment-methods button,
body.app-ventas #paymentModal .quick-cash-grid button {
  min-height: 48px;
  border-radius: 10px;
}

body.app-ventas #paymentModal .touch-payment-fields input {
  min-height: 46px;
  font-size: 1.08rem;
}

body.app-ventas #paymentModal .payment-keypad {
  min-height: 0;
  gap: 6px;
}

body.app-ventas #paymentModal .payment-keypad button {
  min-height: 42px;
  border-radius: 10px;
  font-size: 1rem;
}

body.app-ventas #paymentModal .payment-sticky-actions {
  padding-top: 6px;
}

body.app-ventas #paymentModal .payment-sticky-actions button {
  min-height: 50px;
}

@media (max-width: 760px) {
  body.app-ventas #paymentModal {
    width: calc(100vw - 12px);
  }

  body.app-ventas #paymentModal .payment-modal-body.form-modal {
    height: calc(100dvh - 12px);
    padding: 12px;
  }

  body.app-ventas #paymentModal .payment-fit-entry {
    grid-template-rows: auto;
    overflow: auto;
  }
}

/* POS mobile cart and checkout repair: keep touch flows visible and readable. */
body.app-ventas .touch-product-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #064e3b;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgb(8 30 26 / 16%);
}

@media (max-width: 640px) {
  body.app-ventas #paymentModal {
    width: calc(100vw - 10px);
    margin: 0;
  }

  body.app-ventas #paymentModal .payment-modal-body.form-modal {
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    padding: 10px;
    overflow: hidden;
  }

  body.app-ventas #paymentModal #paymentModalContent {
    height: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 0;
  }

  body.app-ventas #paymentModal .payment-fit-layout {
    height: auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.app-ventas #paymentModal .payment-fit-summary,
  body.app-ventas #paymentModal .payment-fit-entry {
    display: grid;
    min-height: 0;
    gap: 10px;
  }

  body.app-ventas #paymentModal .payment-fit-summary {
    grid-template-rows: auto auto auto;
  }

  body.app-ventas #paymentModal .touch-payment-total {
    min-height: 108px;
    padding: 16px;
    border-radius: 16px;
  }

  body.app-ventas #paymentModal .touch-payment-total::after {
    width: 82px;
    right: 12px;
    bottom: 12px;
  }

  body.app-ventas #paymentModal .touch-payment-total strong {
    max-width: calc(100% - 76px);
    font-size: clamp(2.1rem, 12vw, 3rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  body.app-ventas #paymentModal .payment-flow-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.app-ventas #paymentModal .payment-flow-summary article {
    padding: 8px;
  }

  body.app-ventas #paymentModal .payment-flow-summary strong {
    font-size: 0.95rem;
  }

  body.app-ventas #paymentModal .touch-payment-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.app-ventas #paymentModal .quick-cash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.app-ventas #paymentModal .touch-payment-methods button,
  body.app-ventas #paymentModal .quick-cash-grid button,
  body.app-ventas #paymentModal .payment-keypad button {
    min-height: 54px;
    padding: 8px;
  }

  body.app-ventas #paymentModal .touch-payment-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.app-ventas #paymentModal .touch-payment-fields input {
    min-height: 52px;
    font-size: 1.12rem;
  }

  body.app-ventas #paymentModal .payment-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.app-ventas #paymentModal .payment-keypad button {
    font-size: 1.08rem;
  }

  body.app-ventas #paymentModal .payment-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 4px -2px 0;
    padding: 8px 2px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(255 255 255 / 72%), #ffffff 32%);
  }

  body.app-ventas #paymentModal .payment-sticky-actions button {
    min-height: 54px;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  body.app-ventas #paymentModal .payment-sticky-actions .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.app-ventas .cart-review-modal {
    width: calc(100vw - 10px);
  }

  body.app-ventas .cart-review-modal .form-modal {
    max-height: calc(100dvh - 10px);
    padding: 12px;
    overflow: auto;
  }

  body.app-ventas .cart-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.app-ventas .cart-review-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.app-ventas .cart-review-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  body.app-ventas .cart-review-row > div:first-child strong {
    white-space: normal;
  }

  body.app-ventas .cart-review-qty {
    grid-template-columns: 48px minmax(44px, 1fr) 48px;
  }

  body.app-ventas .cart-review-qty button,
  body.app-ventas .cart-review-row .danger-action {
    min-height: 46px;
  }

  body.app-ventas .cart-review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ZOW Ventas Premium UI 2026: retail POS, clean command center and tactile checkout. */
body.app-ventas {
  --ventas-primary: #0b6b57;
  --ventas-primary-strong: #083f36;
  --ventas-primary-soft: #dff8ef;
  --ventas-accent: #d9a441;
  --ventas-accent-strong: #a46b13;
  --ventas-ink: #111817;
  --ventas-muted: #60706b;
  --ventas-surface: #f4f7f3;
  --ventas-panel: rgb(255 255 255 / 86%);
  --ventas-panel-solid: #ffffff;
  --ventas-panel-soft: rgb(238 248 243 / 86%);
  --ventas-border: rgb(8 63 54 / 12%);
  --ventas-border-strong: rgb(8 63 54 / 22%);
  --ventas-radius: 22px;
  --ventas-radius-sm: 14px;
  --ventas-shadow: 0 26px 70px rgb(13 30 26 / 14%);
  --ventas-shadow-soft: 0 16px 38px rgb(13 30 26 / 9%);
  --ventas-focus: 0 0 0 4px rgb(217 164 65 / 22%);
  min-height: 100dvh;
  background:
    radial-gradient(circle at 8% 0%, rgb(25 130 102 / 20%), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgb(217 164 65 / 18%), transparent 28rem),
    linear-gradient(135deg, #f6fbf6 0%, #edf5f2 42%, #f8f4ea 100%);
  color: var(--ventas-ink);
  font-family: "DM Sans", "Inter", "Segoe UI", system-ui, sans-serif;
}

body.app-ventas::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(8 63 54 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 63 54 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 84%), transparent 82%);
}

body.app-ventas .ventas-login-screen {
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 18% 18%, rgb(47 214 149 / 24%), transparent 24rem),
    radial-gradient(circle at 82% 26%, rgb(217 164 65 / 20%), transparent 23rem),
    linear-gradient(135deg, #071716 0%, #0b3f35 48%, #eef8f1 48%, #f9f5ea 100%) !important;
}

body.app-ventas .login-layout {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100dvh - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: stretch;
  gap: 28px;
}

body.app-ventas .login-intro,
body.app-ventas .login-card {
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 34px;
  box-shadow: 0 34px 95px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px);
}

body.app-ventas .login-intro {
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(145deg, rgb(5 26 25 / 92%), rgb(8 63 54 / 90)),
    radial-gradient(circle at 70% 42%, rgb(47 214 149 / 24%), transparent 20rem);
}

body.app-ventas .login-copy h1 {
  max-width: 720px;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  letter-spacing: -0.08em;
  line-height: 0.86;
}

body.app-ventas .login-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgb(232 255 247 / 82%);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

body.app-ventas .login-card {
  align-self: center;
  padding: clamp(26px, 4vw, 42px);
  background: rgb(255 255 255 / 86%);
  color: var(--ventas-ink);
}

body.app-ventas .login-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

body.app-ventas .login-card label {
  color: var(--ventas-ink);
  font-weight: 900;
}

body.app-ventas input,
body.app-ventas select,
body.app-ventas textarea {
  border: 1px solid var(--ventas-border-strong);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  color: var(--ventas-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.app-ventas input:focus,
body.app-ventas select:focus,
body.app-ventas textarea:focus {
  border-color: rgb(217 164 65 / 70%);
  background: #ffffff;
}

body.app-ventas .primary-button,
body.app-ventas .ghost-button,
body.app-ventas .secondary-button,
body.app-ventas .notification-button,
body.app-ventas .icon-button {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.app-ventas .primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--ventas-accent), #25c28d 52%, var(--ventas-primary));
  color: #061815;
  box-shadow: 0 15px 32px rgb(8 63 54 / 20%);
}

body.app-ventas .primary-button:hover:not(:disabled),
body.app-ventas .ghost-button:hover:not(:disabled),
body.app-ventas .secondary-button:hover:not(:disabled),
body.app-ventas .notification-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgb(8 63 54 / 16%);
}

body.app-ventas .ghost-button,
body.app-ventas .secondary-button,
body.app-ventas .notification-button {
  border: 1px solid var(--ventas-border);
  background: rgb(255 255 255 / 74%);
  color: var(--ventas-primary-strong);
}

body.app-ventas .ventas-operational-shell {
  width: min(1680px, calc(100vw - clamp(18px, 3vw, 52px)));
  max-width: none;
  margin: clamp(12px, 2vw, 28px) auto;
  padding: 0;
  background: transparent;
}

body.app-ventas .topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  min-height: 92px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgb(5 24 23 / 94%), rgb(10 91 72 / 92) 58%, rgb(20 164 121 / 90)),
    radial-gradient(circle at 84% 50%, rgb(217 164 65 / 20%), transparent 18rem);
  color: #ffffff;
  box-shadow: var(--ventas-shadow);
  backdrop-filter: blur(20px);
}

body.app-ventas .topbar h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  letter-spacing: -0.055em;
}

body.app-ventas .topbar .eyebrow,
body.app-ventas .topbar .user-badge,
body.app-ventas .topbar .ghost-button,
body.app-ventas .topbar .notification-button {
  color: rgb(255 255 255 / 88%);
}

body.app-ventas .topbar .user-badge,
body.app-ventas .topbar .ghost-button,
body.app-ventas .topbar .notification-button {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 11%);
}

body.app-ventas .operation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

body.app-ventas .operation-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(242 250 245 / 78%));
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .operation-metrics article::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(217 164 65 / 22%), rgb(37 194 141 / 18%)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgb(8 63 54 / 8%) 7px 8px);
  border: 1px solid rgb(8 63 54 / 8%);
}

body.app-ventas .operation-metrics span {
  color: var(--ventas-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.app-ventas .operation-metrics strong {
  display: block;
  margin-top: 10px;
  color: var(--ventas-ink);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  letter-spacing: -0.07em;
}

body.app-ventas .ventas-workspace {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.app-ventas .ventas-menu-toggle {
  display: none;
}

body.app-ventas .ventas-tabs.module-tabs {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 8px;
  max-height: calc(100dvh - 150px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / 86%), rgb(240 249 245 / 74%));
  box-shadow: var(--ventas-shadow-soft);
  backdrop-filter: blur(18px);
}

body.app-ventas .ventas-tabs.module-tabs button {
  width: 100%;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ventas-muted);
  font-weight: 950;
}

body.app-ventas .ventas-tabs.module-tabs button:hover {
  border-color: var(--ventas-border);
  background: rgb(255 255 255 / 72%);
  color: var(--ventas-primary-strong);
}

body.app-ventas .ventas-tabs.module-tabs button.is-active {
  border-color: rgb(217 164 65 / 40%);
  background: linear-gradient(135deg, #09231f, #0f735f);
  color: #ffffff;
  box-shadow: 0 14px 26px rgb(8 63 54 / 18%);
}

body.app-ventas .ventas-workspace .content-grid.admin-mode {
  width: 100%;
  max-width: none;
  display: block;
  margin: 0;
}

body.app-ventas .ventas-workspace .document-list {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(248 251 248 / 78%));
  box-shadow: var(--ventas-shadow-soft);
  backdrop-filter: blur(16px);
}

body.app-ventas .section-heading {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--ventas-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgb(217 164 65 / 14%), transparent 16rem),
    linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(240 249 245 / 72%));
}

body.app-ventas .section-heading h2 {
  margin: 0;
  color: var(--ventas-ink);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  letter-spacing: -0.06em;
}

body.app-ventas .section-heading > span,
body.app-ventas #resultCount {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--ventas-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ventas-primary-strong);
  font-weight: 950;
}

body.app-ventas .pos-shell.touch-pos-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 20px;
  align-items: start;
}

body.app-ventas .pos-products.touch-panel,
body.app-ventas .pos-cart.touch-cart-panel,
body.app-ventas .admin-panel,
body.app-ventas .operation-panel,
body.app-ventas .filter-bar,
body.app-ventas .notice-panel,
body.app-ventas .cart-summary,
body.app-ventas .form-modal,
body.app-ventas .data-row {
  border: 1px solid var(--ventas-border);
  border-radius: var(--ventas-radius);
  background: var(--ventas-panel);
  box-shadow: var(--ventas-shadow-soft);
  backdrop-filter: blur(14px);
}

body.app-ventas .pos-products.touch-panel,
body.app-ventas .pos-cart.touch-cart-panel {
  padding: 16px;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky;
  top: 124px;
  max-height: calc(100dvh - 150px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(244 250 246 / 90%)),
    radial-gradient(circle at 100% 0%, rgb(217 164 65 / 14%), transparent 16rem);
}

body.app-ventas .pos-cart.touch-cart-panel,
body.app-ventas .pos-cart.touch-cart-panel * {
  min-width: 0;
}

body.app-ventas .touch-pos-head,
body.app-ventas .touch-cart-head,
body.app-ventas .pos-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-ventas .touch-cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.app-ventas .touch-cart-head > div,
body.app-ventas .touch-cart-head h3,
body.app-ventas .touch-cart-head .eyebrow {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.app-ventas .touch-cart-head > strong {
  justify-self: end;
  max-width: 190px;
  text-align: right;
  white-space: normal;
}

body.app-ventas .touch-pos-head h3,
body.app-ventas .touch-cart-head h3,
body.app-ventas .pos-section-title strong {
  color: var(--ventas-ink);
  letter-spacing: -0.04em;
}

body.app-ventas .touch-shortcuts,
body.app-ventas .pos-result-hint,
body.app-ventas .pos-input-hint {
  color: var(--ventas-muted);
}

body.app-ventas .touch-shortcuts span {
  border: 1px solid var(--ventas-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: var(--ventas-primary-strong);
  font-weight: 900;
}

body.app-ventas .pos-toast,
body.app-ventas .mobile-pos-toast {
  border: 1px solid rgb(217 164 65 / 32%);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e6, #f3fff8);
  color: #7a4a0c;
  font-weight: 950;
}

body.app-ventas .pos-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

body.app-ventas .touch-search input {
  min-height: 58px;
  padding-inline: 18px;
  border-radius: 18px;
  font-size: 1.06rem;
  font-weight: 800;
}

body.app-ventas .pos-category-rail {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
}

body.app-ventas .pos-category-rail button {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--ventas-border);
  background: #ffffff;
  color: var(--ventas-primary-strong);
  font-weight: 950;
}

body.app-ventas .pos-category-rail button.is-active {
  border-color: rgb(217 164 65 / 44%);
  background: linear-gradient(135deg, #09231f, #0f735f);
  color: #ffffff;
}

body.app-ventas .product-suggestion-grid.touch-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

body.app-ventas .touch-product-card {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--ventas-border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(240 249 245 / 82%)),
    radial-gradient(circle at 100% 100%, rgb(217 164 65 / 16%), transparent 8rem);
  box-shadow: 0 14px 30px rgb(13 30 26 / 8%);
  transform: translateZ(0);
}

body.app-ventas .touch-product-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: -1;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgb(217 164 65 / 46%), rgb(37 194 141 / 30%));
  transform: rotate(7deg);
}

body.app-ventas .touch-product-card:hover {
  border-color: rgb(217 164 65 / 42%);
  box-shadow: 0 22px 44px rgb(13 30 26 / 13%);
  transform: translateY(-2px);
}

body.app-ventas .touch-product-card span,
body.app-ventas .touch-product-card small {
  color: var(--ventas-muted);
  font-weight: 850;
}

body.app-ventas .touch-product-card strong {
  color: var(--ventas-ink);
  font-size: 1rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

body.app-ventas .touch-product-card b {
  margin-top: auto;
  border: 1px solid rgb(255 255 255 / 28%);
  background: #064e3b;
  color: #ffffff;
  box-shadow: 0 14px 26px rgb(8 63 54 / 18%);
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .mobile-pos-summary {
  border: 1px solid var(--ventas-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #07322d, #0e7a62);
  color: #ffffff;
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .cashier-checkout-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

body.app-ventas .cashier-checkout-bar > div {
  min-width: 0;
}

body.app-ventas .cashier-checkout-bar span,
body.app-ventas .cashier-checkout-bar small {
  display: block;
  color: rgb(255 255 255 / 78%);
  font-weight: 850;
}

body.app-ventas .cashier-checkout-bar strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

body.app-ventas .cashier-checkout-bar .primary-button,
body.app-ventas .cashier-checkout-bar .ghost-button {
  min-height: 48px;
  background: rgb(255 255 255 / 90%);
  color: var(--ventas-primary-strong);
}

body.app-ventas .cashier-checkout-bar .primary-button {
  background: linear-gradient(135deg, var(--ventas-accent), #38d899);
  color: #06211d;
}

body.app-ventas .cashier-checkout-bar strong,
body.app-ventas .mobile-pos-summary strong {
  color: #ffffff;
}

body.app-ventas .touch-cart-list {
  display: grid;
  gap: 10px;
}

body.app-ventas .touch-cart-line {
  border: 1px solid var(--ventas-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgb(13 30 26 / 7%);
}

body.app-ventas .cart-item-name > span {
  background: var(--ventas-primary-soft);
  color: var(--ventas-primary-strong);
}

body.app-ventas .sale-total-card {
  border: 0;
  background:
    radial-gradient(circle at 92% 18%, rgb(217 164 65 / 18%), transparent 10rem),
    linear-gradient(145deg, #08221f, #0b6b57);
  color: #ffffff;
}

body.app-ventas .sale-total-card span,
body.app-ventas .sale-total-card small,
body.app-ventas .sale-total-card strong {
  color: #ffffff;
}

body.app-ventas .touch-charge-button {
  min-height: 58px;
  border-radius: 18px;
  font-size: 1.04rem;
  width: 100%;
}

body.app-ventas .pos-actions-block .touch-charge-button {
  position: sticky;
  bottom: 0;
  z-index: 7;
  margin-top: 8px;
  box-shadow: 0 18px 36px rgb(8 63 54 / 22%);
}

body.app-ventas .ui-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border-radius: 9px;
  background: rgb(255 255 255 / 36%);
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 950;
}

body.app-ventas .icon-text-button .ui-ico:first-child {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%);
}

body.app-ventas .ventas-workflow-footer {
  grid-column: 2;
  margin-top: 18px;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 24px;
  background: linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(240 249 245 / 74%));
  box-shadow: var(--ventas-shadow-soft);
}

body.app-ventas .ventas-footer {
  margin: 18px 0 8px;
  color: var(--ventas-muted);
  text-align: center;
}

body.app-ventas .payment-modal-body.form-modal,
body.app-ventas .cart-review-modal .form-modal {
  border-radius: 26px;
  background: rgb(255 255 255 / 94%);
}

body.app-ventas #paymentModal .touch-payment-total {
  background:
    radial-gradient(circle at 88% 20%, rgb(217 164 65 / 24%), transparent 11rem),
    linear-gradient(145deg, #071716, #0b6b57);
  color: #ffffff;
}

body.app-ventas #paymentModal .touch-payment-total strong,
body.app-ventas #paymentModal .touch-payment-total span {
  color: #ffffff;
}

@media (min-width: 1280px) {
  body.app-ventas .ventas-operational-shell.pos-focus-mode {
    width: min(1760px, calc(100vw - 24px));
  }

  body.app-ventas .ventas-operational-shell.pos-focus-mode .operation-metrics,
  body.app-ventas .ventas-operational-shell.pos-focus-mode .ventas-footer {
    display: none;
  }

  body.app-ventas .ventas-operational-shell.pos-focus-mode .ventas-workspace {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  body.app-ventas .ventas-operational-shell.pos-focus-mode .ventas-tabs.module-tabs button {
    min-height: 50px;
    justify-content: center;
    padding: 0 8px;
    font-size: 0;
  }

  body.app-ventas .ventas-operational-shell.pos-focus-mode .ventas-tabs.module-tabs button::first-letter {
    font-size: 0.9rem;
  }
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-workspace {
    grid-template-columns: 1fr;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    max-height: none;
    padding: 10px;
  }

  body.app-ventas .ventas-tabs.module-tabs button {
    flex: 0 0 auto;
    width: auto;
  }

  body.app-ventas .ventas-workspace .content-grid.admin-mode,
  body.app-ventas .ventas-workflow-footer {
    grid-column: 1;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr;
  }

  body.app-ventas .pos-cart.touch-cart-panel {
    position: static;
    max-height: none;
  }

  body.app-ventas .cashier-checkout-bar {
    position: static;
  }
}

@media (max-width: 900px) {
  body.app-ventas .login-layout {
    grid-template-columns: 1fr;
  }

  body.app-ventas .login-intro {
    min-height: 440px;
  }

  body.app-ventas .ventas-operational-shell {
    width: calc(100vw - 20px);
    margin-top: 10px;
  }

  body.app-ventas .topbar {
    position: static;
    align-items: stretch;
    border-radius: 22px;
  }

  body.app-ventas .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.app-ventas .topbar-actions > * {
    width: 100%;
  }

  body.app-ventas .operation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-ventas .pos-search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.app-ventas .ventas-login-screen {
    padding: 10px;
  }

  body.app-ventas .login-intro,
  body.app-ventas .login-card,
  body.app-ventas .ventas-workspace .document-list,
  body.app-ventas .pos-products.touch-panel,
  body.app-ventas .pos-cart.touch-cart-panel {
    border-radius: 20px;
  }

  body.app-ventas .login-copy h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  body.app-ventas .operation-metrics {
    grid-template-columns: 1fr;
  }

  body.app-ventas .operation-metrics article {
    min-height: 96px;
  }

  body.app-ventas .ventas-workspace .document-list,
  body.app-ventas .pos-products.touch-panel,
  body.app-ventas .pos-cart.touch-cart-panel {
    padding: 10px;
  }

  body.app-ventas .section-heading,
  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .touch-cart-head {
    grid-template-columns: 1fr;
  }

  body.app-ventas .touch-cart-head > strong {
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  body.app-ventas .cashier-checkout-bar {
    grid-template-columns: 1fr;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.app-ventas .touch-product-card {
    min-height: 138px;
    padding: 12px;
  }
}

/* Ultima regla del archivo para /panel: consola ZOW a pantalla completa. */
body.app-zow-panel:not(.app-zow-panel-login) #appShell,
body.app-zow-panel:not(.app-zow-panel-login) .workspace,
body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
body.app-zow-panel:not(.app-zow-panel-login) .document-list,
body.app-zow-panel:not(.app-zow-panel-login) #documentList,
body.app-zow-panel:not(.app-zow-panel-login) .zow-saas-command-center,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-command-shell {
  width: calc(100vw - clamp(28px, 4vw, 56px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.app-zow-panel:not(.app-zow-panel-login) #appShell {
  display: block !important;
  padding: clamp(14px, 2vw, 28px) 0 !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-dashboard,
body.app-zow-panel:not(.app-zow-panel-login) .system-plan-board,
body.app-zow-panel:not(.app-zow-panel-login) .admin-tabs,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-main-flow,
body.app-zow-panel:not(.app-zow-panel-login) .admin-panel,
body.app-zow-panel:not(.app-zow-panel-login) .renewal-panel,
body.app-zow-panel:not(.app-zow-panel-login) .zow-production-review,
body.app-zow-panel:not(.app-zow-panel-login) .cloud-safe-note {
  width: 100% !important;
  max-width: none !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-kpis,
body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-action-grid,
body.app-zow-panel:not(.app-zow-panel-login) .system-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) !important;
}

body.app-zow-panel:not(.app-zow-panel-login) .company-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
}

@media (max-width: 900px) {
  body.app-zow-panel:not(.app-zow-panel-login) #appShell,
  body.app-zow-panel:not(.app-zow-panel-login) .workspace,
  body.app-zow-panel:not(.app-zow-panel-login) .content-grid,
  body.app-zow-panel:not(.app-zow-panel-login) .document-list,
  body.app-zow-panel:not(.app-zow-panel-login) #documentList,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-saas-command-center,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-command-shell {
    width: calc(100vw - 20px) !important;
  }

  body.app-zow-panel:not(.app-zow-panel-login) .zow-owner-split,
  body.app-zow-panel:not(.app-zow-panel-login) .zow-panel-workspace {
    grid-template-columns: 1fr !important;
  }
}

/* TRUE EOF ZOW Ventas POS override: last rule in file, wins over all duplicated legacy CSS. */
body.app-ventas {
  background:
    radial-gradient(circle at 12% 12%, rgb(16 185 129 / 18%), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgb(217 164 65 / 18%), transparent 24rem),
    linear-gradient(135deg, #f7fbf8 0%, #e9f7f2 48%, #f8f2df 100%) !important;
}

body.app-ventas .ventas-operational-shell { width: min(1780px, calc(100vw - 18px)) !important; margin: 8px auto 22px !important; }
body.app-ventas .ventas-workspace { grid-template-columns: minmax(154px, 178px) minmax(0, 1fr) !important; gap: 14px !important; align-items: start !important; }
body.app-ventas .ventas-tabs.module-tabs { top: 116px !important; z-index: 60 !important; max-height: calc(100dvh - 128px) !important; overflow-x: hidden !important; overflow-y: auto !important; }
body.app-ventas .ventas-tabs.module-tabs button { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) !important; gap: 9px !important; min-height: 48px !important; padding: 6px 8px !important; text-align: left !important; white-space: normal !important; }
body.app-ventas .ventas-tabs.module-tabs .module-tab-label { min-width: 0 !important; overflow: hidden !important; font-size: 0.82rem !important; text-overflow: ellipsis !important; }
body.app-ventas .ventas-workspace .document-list { overflow: visible !important; }
body.app-ventas .section-heading { display: none !important; }
body.app-ventas .pos-shell.touch-pos-shell { display: grid !important; grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px) !important; gap: 14px !important; align-items: start !important; overflow: visible !important; }
body.app-ventas .pos-products.touch-panel { overflow: visible !important; }
body.app-ventas .touch-pos-head { position: sticky !important; top: 116px !important; z-index: 35 !important; padding: 12px 14px !important; border: 1px solid rgb(9 78 65 / 13%) !important; border-radius: 18px !important; background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 252 246 / 92%)) !important; box-shadow: 0 14px 28px rgb(6 32 28 / 8%) !important; }
body.app-ventas .pos-search-row { position: sticky !important; top: 186px !important; z-index: 34 !important; display: grid !important; grid-template-columns: minmax(280px, 1fr) auto auto auto !important; gap: 8px !important; padding: 10px !important; border: 1px solid rgb(9 78 65 / 13%) !important; border-radius: 18px !important; background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(241 252 247 / 92%)) !important; box-shadow: 0 14px 30px rgb(6 32 28 / 8%) !important; }
body.app-ventas .scanner-status, body.app-ventas .pos-input-hint, body.app-ventas .pos-result-hint { display: none !important; }
body.app-ventas .product-suggestion-grid.touch-product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 12px !important; max-height: none !important; overflow: visible !important; }
body.app-ventas .touch-product-card { min-height: 184px !important; padding: 14px !important; }
body.app-ventas .pos-cart.touch-cart-panel { position: sticky !important; top: 116px !important; z-index: 32 !important; display: grid !important; grid-template-rows: auto auto minmax(0, 1fr) !important; max-height: calc(100dvh - 128px) !important; overflow: hidden !important; }
body.app-ventas .cashier-checkout-bar, body.app-ventas .pos-visible-checkout-bar { position: sticky !important; top: 0 !important; z-index: 40 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; gap: 9px !important; }
body.app-ventas .touch-cart-head { display: none !important; }
body.app-ventas .touch-cart-panel form, body.app-ventas .cashier-cart-form { min-height: 0 !important; display: grid !important; grid-template-rows: auto auto minmax(120px, 1fr) auto auto !important; overflow: hidden !important; }
body.app-ventas .pos-cart-list, body.app-ventas .cashier-cart-items { min-height: 120px !important; overflow: auto !important; scrollbar-gutter: stable !important; }

@media (max-width: 1180px) {
  body.app-ventas .ventas-workspace { display: block !important; }
  body.app-ventas .ventas-menu-toggle { display: flex !important; position: sticky !important; top: 92px !important; z-index: 75 !important; width: 100% !important; margin-bottom: 8px !important; }
  body.app-ventas .ventas-tabs.module-tabs { display: none !important; }
  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs { display: grid !important; max-height: 48dvh !important; }
  body.app-ventas .pos-shell.touch-pos-shell { grid-template-columns: 1fr !important; }
  body.app-ventas .pos-cart.touch-cart-panel { position: relative !important; top: auto !important; max-height: none !important; overflow: visible !important; }
}

@media (max-width: 720px) {
  body.app-ventas .touch-pos-head, body.app-ventas .pos-search-row { position: relative !important; top: auto !important; }
  body.app-ventas .product-suggestion-grid.touch-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.app-ventas .cashier-checkout-bar, body.app-ventas .pos-visible-checkout-bar { grid-template-columns: 1fr !important; }
}

/* ZOW Ventas clean POS recovery: clear navigation, two-column POS, no visual overlap. */
body.app-ventas {
  background:
    linear-gradient(90deg, rgb(3 45 40 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(3 45 40 / 5%) 1px, transparent 1px),
    radial-gradient(circle at 14% 8%, rgb(32 201 151 / 18%), transparent 24rem),
    radial-gradient(circle at 90% 14%, rgb(217 164 65 / 14%), transparent 22rem),
    linear-gradient(135deg, #f7fbf8 0%, #eaf8f3 50%, #f8f1df 100%) !important;
  background-size: 56px 56px, 56px 56px, auto, auto, auto !important;
}

body.app-ventas .ventas-operational-shell {
  width: min(1720px, calc(100vw - 32px)) !important;
  margin: 12px auto 26px !important;
}

body.app-ventas .topbar {
  position: sticky !important;
  top: 8px !important;
  z-index: 90 !important;
  min-height: 76px !important;
  padding: 14px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgb(5 41 35 / 14%) !important;
}

body.app-ventas .ventas-workspace {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body.app-ventas .ventas-tabs.module-tabs {
  position: sticky !important;
  top: 100px !important;
  z-index: 70 !important;
  width: 100% !important;
  max-height: calc(100dvh - 112px) !important;
  padding: 12px !important;
  overflow: auto !important;
  border-radius: 22px !important;
}

body.app-ventas .ventas-tabs.module-tabs button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  white-space: nowrap !important;
  text-align: left !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-icon {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
}

body.app-ventas .ventas-tabs.module-tabs .module-tab-label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.9rem !important;
  line-height: 1.1 !important;
}

body.app-ventas .ventas-tabs.module-tabs button[hidden],
body.app-ventas .ventas-tabs.module-tabs button[aria-hidden="true"],
body.app-ventas .ventas-tabs.module-tabs button[data-permission-hidden],
body.app-ventas [data-view][hidden],
body.app-ventas [data-view][data-permission-hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.app-ventas .ventas-touch-shell[data-active-view="sell"] .operation-metrics,
body.app-ventas .ventas-touch-shell[data-active-view="sell"] .role-visual-panel,
body.app-ventas .ventas-touch-shell[data-active-view="sell"] .context-help-dock,
body.app-ventas .ventas-touch-shell[data-active-view="sell"] .section-heading {
  display: none !important;
}

body.app-ventas .ventas-touch-shell[data-active-view="sell"] .document-list,
body.app-ventas .ventas-workspace .document-list {
  min-width: 0 !important;
  overflow: visible !important;
}

body.app-ventas .pos-shell.touch-pos-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.app-ventas .pos-products.touch-panel {
  min-width: 0 !important;
  overflow: visible !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

body.app-ventas .touch-pos-head {
  position: sticky !important;
  top: 100px !important;
  z-index: 50 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgb(7 94 76 / 14%) !important;
  border-radius: 18px !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 10px 24px rgb(5 41 35 / 8%) !important;
}

body.app-ventas .touch-pos-head h2 {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  line-height: 1.05 !important;
}

body.app-ventas .pos-search-row {
  position: sticky !important;
  top: 166px !important;
  z-index: 49 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgb(7 94 76 / 14%) !important;
  border-radius: 18px !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 10px 24px rgb(5 41 35 / 8%) !important;
}

body.app-ventas .pos-search-row input {
  min-width: 0 !important;
}

body.app-ventas .scanner-status,
body.app-ventas .pos-input-hint,
body.app-ventas .pos-result-hint {
  display: none !important;
}

body.app-ventas .product-suggestion-grid.touch-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-ventas .touch-product-card {
  min-width: 0 !important;
  min-height: 176px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

body.app-ventas .pos-cart.touch-cart-panel {
  position: sticky !important;
  top: 100px !important;
  z-index: 45 !important;
  min-width: 0 !important;
  max-height: calc(100dvh - 118px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  padding: 14px !important;
  border-radius: 22px !important;
  background: rgb(255 255 255 / 94%) !important;
}

body.app-ventas .cashier-checkout-bar,
body.app-ventas .pos-visible-checkout-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 55 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 9px !important;
  align-items: center !important;
  margin: 0 0 12px !important;
  border-radius: 18px !important;
}

body.app-ventas .touch-cart-head {
  display: none !important;
}

body.app-ventas .touch-cart-panel form,
body.app-ventas .cashier-cart-form {
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(130px, 1fr) auto auto !important;
  gap: 10px !important;
}

body.app-ventas .pos-cart-list,
body.app-ventas .cashier-cart-items {
  min-height: 130px !important;
  overflow: auto !important;
  scrollbar-gutter: stable !important;
}

body.app-ventas .cart-form-grid,
body.app-ventas .cart-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

@media (max-width: 1180px) {
  body.app-ventas .ventas-operational-shell {
    width: calc(100vw - 20px) !important;
  }

  body.app-ventas .ventas-workspace {
    display: block !important;
  }

  body.app-ventas .ventas-menu-toggle {
    display: flex !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 95 !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  body.app-ventas .ventas-tabs.module-tabs {
    display: none !important;
    position: relative !important;
    top: auto !important;
    max-height: 52dvh !important;
    margin-bottom: 12px !important;
  }

  body.app-ventas .ventas-touch-shell.ventas-menu-open .ventas-tabs.module-tabs {
    display: grid !important;
  }

  body.app-ventas .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row,
  body.app-ventas .pos-cart.touch-cart-panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 720px) {
  body.app-ventas .topbar,
  body.app-ventas .topbar-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .touch-pos-head,
  body.app-ventas .pos-search-row,
  body.app-ventas .cashier-checkout-bar,
  body.app-ventas .pos-visible-checkout-bar,
  body.app-ventas .cart-form-grid,
  body.app-ventas .cart-meta-grid {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .product-suggestion-grid.touch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ZOW Ventas normal POS layout recovery: full page mode without sticky overlap. */
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-shell.touch-pos-shell {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.42fr) !important;
  align-items: start !important;
  gap: 18px !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-products.touch-panel,
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-cart.touch-cart-panel {
  align-self: start !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .touch-pos-head,
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-search-row {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  transform: none !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .touch-pos-head {
  margin-bottom: 10px !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-search-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  margin: 12px 0 !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-cart.touch-cart-panel {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  min-width: 0 !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cashier-checkout-bar,
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-visible-checkout-bar {
  position: static !important;
  top: auto !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  margin-bottom: 14px !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .touch-cart-panel form,
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cashier-cart-form {
  display: block !important;
  min-height: auto !important;
  overflow: visible !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-customer-row,
body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-sale-options {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-cart-list {
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  gap: 10px !important;
  margin: 12px 0 !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .touch-cart-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 12px !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-line-controls {
  display: grid !important;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: end !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-line-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-summary .is-total {
  grid-column: 1 / -1 !important;
}

@media (max-width: 1320px) {
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
  }

  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-cart.touch-cart-panel {
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-search-row,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-customer-row,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-sale-options,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cashier-checkout-bar,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .pos-visible-checkout-bar,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-line-controls,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-line-footer,
  body.app-ventas .ventas-touch-shell:not(.pos-focus-mode)[data-active-view="sell"] .cart-summary {
    grid-template-columns: 1fr !important;
  }
}

/* ZOW Ventas cashier focus recovery: mode caja owns the full workspace. */
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] {
  width: min(1760px, calc(100vw - 18px)) !important;
  margin: 8px auto 18px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .topbar {
  position: sticky !important;
  top: 6px !important;
  z-index: 120 !important;
  min-height: 60px !important;
  margin-bottom: 10px !important;
  padding: 10px 14px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-workspace {
  display: block !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-tabs.module-tabs,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-menu-toggle,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .workflow-panel,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .ventas-footer,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .section-heading,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .role-visual-panel,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .context-help-dock {
  display: none !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .content-grid,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .document-list,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] #mainList {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-shell.touch-pos-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px) !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  height: calc(100dvh - 92px) !important;
  min-height: 620px !important;
  overflow: hidden !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-ambient-strip,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-mobile-switch,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .mobile-pos-summary,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .mobile-pos-toast {
  display: none !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .touch-pos-head {
  position: static !important;
  display: flex !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-toast,
body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .scanner-status {
  display: none !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-search-row {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  margin: 0 0 10px !important;
  padding: 8px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block .touch-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  align-content: start !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 2px 6px 4px 0 !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .touch-product-card {
  min-height: 150px !important;
  padding: 12px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane {
  position: static !important;
  top: auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-checkout-bar {
  position: static !important;
  top: auto !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  margin: 0 0 10px !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-form {
  display: grid !important;
  grid-template-rows: auto auto minmax(150px, 1fr) auto auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-items {
  min-height: 150px !important;
  max-height: none !important;
  overflow: auto !important;
}

@media (max-width: 980px) {
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-shell.touch-pos-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane,
  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-cart-pane {
    overflow: visible !important;
  }

  body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .cashier-products-pane .pos-products-block .touch-product-grid {
    max-height: none !important;
    overflow: visible !important;
  }
}
