﻿: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;
}

/* 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:
    radial-gradient(circle at 18% 12%, rgb(45 212 161 / 22%), transparent 28rem),
    radial-gradient(circle at 86% 84%, rgb(245 158 11 / 18%), transparent 30rem),
    linear-gradient(135deg, #06110f 0%, #10241f 48%, #ecfdf5 48%, #fff7ed 100%);
}

body.app-ventas .login-layout {
  border: 1px solid rgb(15 159 110 / 16%);
  box-shadow: 0 34px 120px rgb(6 17 15 / 30%);
}

body.app-ventas .login-intro {
  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 56%, #0f8f69);
}

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;
}

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: 190px;
  display: grid;
  align-items: center;
  isolation: isolate;
  perspective: 900px;
}

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:
    radial-gradient(circle at 13% 15%, rgb(56 189 248 / 24%), transparent 30rem),
    radial-gradient(circle at 83% 18%, rgb(99 102 241 / 18%), transparent 26rem),
    radial-gradient(circle at 72% 88%, rgb(14 165 233 / 20%), transparent 32rem),
    linear-gradient(132deg, #020817 0%, #081735 46%, #dbeafe 46.2%, #f8fbff 100%);
}

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;
  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);
}

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 .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;
}

.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;
}

.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;
}

.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 {
  border-radius: 14px;
  padding: 11px;
  background: rgb(255 255 255 / 72%);
}

.access-security-tips strong {
  margin-bottom: 4px;
  color: var(--accent-dark);
}

.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);
}

.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;
}

.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;
}

.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 .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;
}

.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 div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.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;
}

.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;
}

.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);
}

.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));
}

.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;
}

.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;
}

@media (max-width: 760px) {
  body.app-ventas .warehouse-action-strip {
    grid-template-columns: 1fr;
  }
}

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;
}

@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-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);
}

/* 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: #10251f;
  color: #ecfdf5;
  font-size: 1.08rem;
  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-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 {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.receivable-payment-card 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 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;
  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;
}

.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;
}

.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;
  }
}

.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;
}

.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,
  .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;
  }

  .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: 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,
  .user-role-coverage,
  .access-security-grid,
  .shift-command-grid,
  .shift-checklist,
  .help-guide-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%;
  }

  .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,
  .help-guide-grid,
  .help-support-grid,
  .inventory-decision-strip,
  body.app-ventas .history-control-strip,
  .report-decision-grid,
  .executive-brief-metrics,
  .executive-brief-priority,
  body.app-ventas .daily-operation-track,
  .settings-overview-grid,
  .store-launch-grid,
  .settings-preset-row,
  body.app-ventas .commercial-alerts-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,
  .commercial-readiness-head,
  .demo-guide-head,
  body.app-ventas .training-mode-banner,
  body.app-ventas .training-lab-panel {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-ventas .commercial-alert-card button,
  body.app-ventas .training-mode-banner 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;
  }

  .sales-certification-head > strong {
    text-align: left;
  }

  .route-card-head,
  .route-stats,
  .access-security-head,
  .price-row,
  .cart-row .cart-actions,
  .purchase-assist-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-assist-card .primary-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,
  .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-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(920px, calc(100vw - 24px));
  max-height: min(92dvh, 860px);
}

body.app-ventas .touch-payment-layout {
  gap: 16px;
}

body.app-ventas .touch-payment-total {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  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(118px, 1fr));
  gap: 10px;
}

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: 78px;
  border-radius: 18px;
  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 {
  gap: 10px;
}

body.app-ventas .payment-keypad {
  gap: 10px;
}

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: 16px;
  padding: 12px;
  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: 18px;
  padding: 13px 14px;
  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: 64px;
  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: 70px;
  font-size: 1.04rem;
}

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 .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-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-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-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 .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 .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 .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-workflow-strip,
  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-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: linear-gradient(135deg, #10251f, #0f766e);
  color: white;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
  white-space: normal;
  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 .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;
}

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;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .pos-products-block .touch-product-grid {
  max-height: clamp(420px, 62dvh, 720px);
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-product-card {
  min-height: 150px;
}

body.app-ventas .ventas-touch-shell.pos-focus-mode[data-active-view="sell"] .touch-cart-panel {
  max-height: calc(100dvh - 84px);
}

@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 {
  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 > 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;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10251f, #0f766e);
  color: white;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

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;
}

@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(112px + 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: 35;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(96px, auto);
    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 span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
  }

  body.app-ventas .mobile-pos-summary strong {
    color: #10251f;
    font-size: 0.92rem;
  }

  body.app-ventas .mobile-pos-summary button {
    min-height: 50px;
    border-radius: 14px;
    padding: 0 10px;
    white-space: nowrap;
  }

  body.app-ventas .mobile-pos-summary .primary-button {
    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: 8px;
    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;
  }
}

@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-toast {
    top: 74px;
  }

  body.app-ventas .mobile-pos-summary > div {
    grid-column: 1 / -1;
  }
}

/* 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 .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;
  }
}

