/* ============================================================================
 * Folha de Estilos Oficial Vendra — Identidade Visual, Login/Registo e Painel
 * Mobile-first, responsivo e com proporções de navegação calibradas.
 * ============================================================================ */
:root {
  --vendra-bg-dark: #0B221A;
  --vendra-bg-sidebar: linear-gradient(180deg, #0A2018 0%, #102B20 100%);
  --vendra-emerald: #0B6B4B;
  --vendra-emerald-hover: #09593E;
  --vendra-mint: #00D285;
  --vendra-mint-soft: #7FD1A8;
  --vendra-surface: #F4F3EE;
  --vendra-card: #FFFFFF;
  --vendra-border: #E4E2DA;
  --vendra-text: #17231D;
  --vendra-muted: #5D6A63;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vendra-surface);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--vendra-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, background-color 0.15s ease;
}

button:hover {
  filter: brightness(1.04);
}

button:active {
  transform: translateY(1px);
}

input, select, textarea {
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ============================================================================
 * LAYOUT DO PAINEL E PROPORÇÕES DA BARRA LATERAL (.sb) E CONTEÚDO (.mn)
 * ============================================================================ */
@keyframes vendraScreenIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout único do painel: uma só Sidebar e a área do ecrã atual ao lado */
.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--vendra-surface);
}

.ecra {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  outline: none;
  transition: opacity 0.12s ease;
}

.area-principal {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.comunicados {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 36px 0;
}

.comunicado {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.comunicado form {
  margin: 0;
}

.comunicado button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  font-size: 16px;
}

.ecra.is-loading {
  opacity: 0.55;
}

.ecra.sem-animacao .mn {
  animation: none;
}

/* Barra de progresso da navegação */
.vendra-progresso {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 100%;
  background: var(--vendra-mint);
  box-shadow: 0 0 8px rgba(0, 210, 133, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}

.vendra-progresso.is-active {
  opacity: 1;
  transform: scaleX(0.85);
  transition: transform 1.6s cubic-bezier(0.1, 0.7, 0.2, 1);
}

form[aria-busy="true"] button[type="submit"] {
  opacity: 0.6;
  cursor: progress;
}

/* Barra Lateral (Sidebar) proporcional e fixa no ecrã durante o scroll */
.sb {
  flex: 0 0 264px !important;
  width: 264px !important;
  min-width: 264px !important;
  max-width: 264px !important;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--vendra-bg-sidebar);
  color: #D3E2D9;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 209, 168, 0.25) transparent;
  transition: width 0.18s ease, min-width 0.18s ease, max-width 0.18s ease, flex-basis 0.18s ease;
}

.sb::-webkit-scrollbar {
  width: 5px;
}

.sb::-webkit-scrollbar-thumb {
  background: rgba(127, 209, 168, 0.25);
  border-radius: 6px;
}

/* Cabeçalho da marca na Sidebar */
.sb-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #D3E2D9;
}

.sb-toggle:hover {
  background: rgba(127, 209, 168, 0.16);
  color: #FFFFFF;
}

.sb-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.sb-brand:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sb-logo-wrap {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sb-logo-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

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

.sb-brand-title {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.15;
}

.sb-brand-tagline {
  font-size: 11px;
  line-height: 1.25;
  color: #9CC0AF;
  font-weight: 500;
}

/* Cartão da loja ativa na Sidebar */
.sb-store-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(127, 209, 168, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sb-store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sb-store-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8FB5A2;
  font-weight: 700;
}

.sb-role-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 210, 133, 0.16);
  color: #7FD1A8;
}

.sb-store-name {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-store-meta {
  font-size: 11.5px;
  color: #A9C2B5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu de navegação proporcional */
.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.sb-section-label {
  padding: 10px 10px 3px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7AA38F;
}

.sb-section-label:first-child {
  padding-top: 2px;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 0 11px;
  border-radius: 9px;
  color: #C5D8CE;
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.14s ease, color 0.14s ease, transform 0.1s ease;
  position: relative;
}

.sb-link:hover {
  background: rgba(127, 209, 168, 0.1);
  color: #FFFFFF;
}

.sb-link.is-active {
  background: linear-gradient(90deg, rgba(0, 210, 133, 0.22) 0%, rgba(28, 66, 51, 0.75) 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--vendra-mint);
}

.sb-link-icon {
  flex: 0 0 20px;
  opacity: 0.88;
}

.sb-link.is-active .sb-link-icon {
  color: var(--vendra-mint);
  opacity: 1;
}

.sb-link-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #E3F1EA;
}

.sb-badge-accent {
  background: var(--vendra-mint);
  color: #08241C;
}

/* Rodapé da Sidebar */
.sb-footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sb-wa-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sb-wa-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.sb-wa-dot.is-online {
  background: var(--vendra-mint);
  box-shadow: 0 0 0 3px rgba(0, 210, 133, 0.2);
}

.sb-wa-dot.is-pending {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.sb-wa-info {
  min-width: 0;
}

.sb-wa-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.sb-wa-phone {
  font-size: 11.5px;
  color: #9CC0AF;
  margin-top: 1px;
}

.sb-logout-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(127, 209, 168, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #D3E2D9;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sb-logout-btn:hover {
  background: rgba(250, 221, 221, 0.12);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FECACA;
}

/* Sidebar recolhida no desktop: fica uma coluna de ícones, com o hambúrguer sempre acessível */
@media (min-width: 861px) {
  .sb-recolhido .sb {
    flex-basis: 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 14px 10px;
  }

  .sb-recolhido .sb-head {
    flex-direction: column;
    gap: 10px;
  }

  .sb-recolhido .sb-brand {
    flex: 0 0 auto;
    padding: 2px;
    justify-content: center;
  }

  .sb-recolhido .sb-brand-text,
  .sb-recolhido .sb-store-card,
  .sb-recolhido .sb-link-text,
  .sb-recolhido .sb-wa-info,
  .sb-recolhido .sb-logout-btn span {
    display: none;
  }

  .sb-recolhido .sb-section-label {
    height: 1px;
    margin: 7px 8px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
  }

  .sb-recolhido .sb-section-label:first-child {
    display: none;
  }

  .sb-recolhido .sb-link {
    justify-content: center;
    padding: 0;
  }

  .sb-recolhido .sb-badge {
    position: absolute;
    top: 1px;
    right: 3px;
    padding: 0 5px;
    font-size: 9.5px;
  }

  .sb-recolhido .sb-footer {
    padding: 10px 6px;
    align-items: center;
  }

  .sb-recolhido .sb-wa-status {
    justify-content: center;
  }
}

.sb-wa-dot.is-offline {
  background: #F87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.sb-wa-dot.is-unknown {
  background: #9CC0AF;
  box-shadow: 0 0 0 3px rgba(156, 192, 175, 0.2);
}

.sb-cookies {
  color: #9CC0AF;
  font-size: 11.5px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-cookies:hover {
  color: #FFFFFF;
}

.sb-recolhido .sb-cookies {
  display: none;
}

/* Área Principal de Conteúdo (.mn) */
.mn {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px 36px 52px !important;
  animation: vendraScreenIn 0.16s ease-out;
}

/* Banner de feedback superior (Aviso / Erro) */
.vendra-toast-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vendra-toast-banner.is-success {
  background: #0B6B4B;
  color: #FFFFFF;
}

.vendra-toast-banner.is-error {
  background: #A12A2A;
  color: #FFFFFF;
}

.vendra-toast-close {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Topbar mobile */
.topbar, .scrim {
  display: none;
}

/* ============================================================================
 * TELAS DE LOGIN E REGISTO (IDENTIDADE VENDRA)
 * ============================================================================ */
.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 88px 24px 56px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 210, 133, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(11, 107, 75, 0.28) 0%, transparent 50%),
    linear-gradient(135deg, #071913 0%, #0D291F 55%, #0A2018 100%);
  color: var(--vendra-text);
}

.auth-shell {
  width: 100%;
  max-width: 980px;
  background: #0C271D;
  border: 1px solid rgba(127, 209, 168, 0.2);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.auth-shell-wide {
  max-width: 1080px;
  grid-template-columns: 0.92fr 1.25fr;
}

.auth-brand-panel {
  padding: 40px 36px;
  background: linear-gradient(165deg, #10422F 0%, #0B2A1F 100%);
  color: #F1F8F4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border-right: 1px solid rgba(127, 209, 168, 0.14);
}

.auth-logo-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo-hero img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.auth-brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.1;
}

.auth-brand-motto {
  font-size: 13px;
  color: #8DE0B9;
  font-weight: 600;
  margin-top: 2px;
}

.auth-pitch-title {
  margin: 24px 0 10px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.auth-pitch-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: #D3E6DC;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #133F2F;
  border: 1px solid rgba(127, 209, 168, 0.24);
  padding: 14px 16px;
  border-radius: 14px;
}

.auth-feature-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--vendra-mint);
  color: #072219;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-feature-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-feature-item strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.auth-feature-item span {
  font-size: 13.5px;
  color: #D3E6DC;
  line-height: 1.45;
}

.auth-feature-item .auth-feature-badge svg {
  display: block;
}

.auth-logo-hero {
  color: inherit;
  text-decoration: none;
}

/* Barra do topo das páginas de entrada: marca e regresso ao site */
.auth-topo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  box-sizing: border-box;
}

.auth-topo-marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.auth-topo-marca img {
  padding: 3px;
  border-radius: 9px;
  background: #FFFFFF;
}

.auth-topo-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #E7F3ED;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-topo-voltar:hover {
  border-color: var(--vendra-mint);
  color: #FFFFFF;
}

.auth-brand-footer {
  font-size: 12px;
  color: #85A897;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.auth-card {
  background: #FFFFFF;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.auth-card-register {
  padding: 32px 34px;
  gap: 16px;
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #E4E2DA;
  padding: 3px;
  object-fit: contain;
  background: #FFFFFF;
}

.auth-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10231B;
}

.auth-card-subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: #5D6A63;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.auth-alert-error {
  background: #FBE6E4;
  color: #A12A2A;
  border: 1px solid #F3C4C0;
}

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

.auth-section-divider {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0B6B4B;
  padding-bottom: 4px;
  border-bottom: 1px solid #ECEAE2;
  margin-top: 2px;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #25332C;
}

.auth-field input,
.auth-field select {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid #CFCCC1;
  background: #FAF9F6;
  font-size: 14px;
  color: #17231D;
}

.auth-field input:focus,
.auth-field select:focus {
  background: #FFFFFF;
  border-color: #0B6B4B;
}

.auth-btn-primary {
  margin-top: 4px;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #0B6B4B 0%, #09583D 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(11, 107, 75, 0.25);
}

.auth-switch-link {
  text-align: center;
  font-size: 13px;
  color: #5D6A63;
  padding-top: 10px;
  border-top: 1px solid #ECEAE2;
}

/* Assistente de registo. Sem JavaScript todos os passos ficam visíveis */
.reg-passos,
.reg-estado,
.reg-navegacao [data-seguinte],
.reg-voltar,
.reg-resumo {
  display: none;
}

.js .reg-passos {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg-passos li {
  flex: 1 1 0;
  min-width: 0;
}

.reg-marcador {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 3px solid #E4E2DA;
  background: none;
  color: var(--vendra-muted);
  font-size: 13px;
  font-weight: 700;
}

.reg-marcador:disabled {
  cursor: default;
  opacity: 1;
}

.reg-numero {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ECEAE2;
  font-size: 12px;
  font-weight: 800;
}

.reg-marcador[aria-current="step"],
.reg-marcador.is-feito {
  border-bottom-color: var(--vendra-emerald);
  color: var(--vendra-emerald);
}

.reg-marcador[aria-current="step"] .reg-numero,
.reg-marcador.is-feito .reg-numero {
  background: var(--vendra-emerald);
  color: #FFFFFF;
}

.js .reg-estado {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  display: block;
}

.reg-legenda {
  margin: 0;
  font-size: 12.5px;
  color: var(--vendra-muted);
}

.reg-obrigatorio {
  color: #B3261E;
  font-weight: 800;
}

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

.js .reg-passo:not(.is-ativo) {
  display: none;
}

.reg-passo h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--vendra-text);
  outline: none;
}

.reg-campo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--vendra-text);
}

.reg-campo input,
.reg-campo select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #CFCCC1;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--vendra-text);
  font-size: 14px;
}

.reg-campo input:focus,
.reg-campo select:focus {
  border-color: var(--vendra-emerald);
  outline: 2px solid rgba(11, 107, 75, 0.15);
}

.reg-campo.tem-erro input,
.reg-campo.tem-erro select {
  border-color: #B3261E;
}

.reg-ajuda {
  font-size: 12px;
  font-weight: 500;
  color: var(--vendra-muted);
}

.reg-erro {
  font-size: 12px;
  font-weight: 600;
  color: #B3261E;
}

.reg-erro:empty {
  display: none;
}

.reg-senha {
  position: relative;
}

.reg-senha input {
  padding-right: 80px;
}

.reg-senha button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #F4F3EE;
  color: var(--vendra-text);
  font-size: 12px;
  font-weight: 700;
}

.js .reg-resumo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F4F3EE;
}

.reg-resumo dt {
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reg-resumo dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--vendra-muted);
  overflow-wrap: anywhere;
}

.reg-editar {
  padding: 0;
  border: 0;
  background: none;
  color: var(--vendra-emerald);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
}

.reg-navegacao {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reg-navegacao .auth-btn-primary {
  flex: 1 1 auto;
}

.js .reg-navegacao [data-seguinte] {
  display: block;
}

.js .reg-voltar {
  display: block;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #CFCCC1;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--vendra-text);
  font-size: 14px;
  font-weight: 700;
}

/* Sem JavaScript só o último passo precisa de botão */
.reg-passo:not([data-passo="3"]) .reg-navegacao {
  display: none;
}

.js .reg-passo .reg-navegacao {
  display: flex;
}

@media (max-width: 480px) {
  .reg-marcador {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
}

.auth-aceitacao {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--vendra-muted);
}

.auth-aceitacao a {
  color: #0B6B4B;
  font-weight: 700;
  text-decoration: underline;
}

.auth-legal {
  margin: 0;
  font-size: 12.5px;
  color: #9CC0AF;
  text-align: center;
}

.auth-legal a {
  color: inherit;
}

.auth-switch-link a {
  color: #0B6B4B;
  font-weight: 800;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================================
 * RESPONSIVIDADE MOBILE E TABLET (<= 860px)
 * ============================================================================ */
@media (max-width: 860px) {
  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-card,
  .auth-card-register {
    padding: 28px 22px;
  }

  .auth-grid-2,
  .auth-grid-3 {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 12px;
    background: #0B221A;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .topbar button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border-radius: 10px;
  }

  .tb-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 17px;
  }

  .tb-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #FFFFFF;
    padding: 2px;
  }

  .tb-title {
    margin-left: auto;
    padding-right: 4px;
    font-size: 13px;
    color: #A9C2B5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sb {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(288px, 86vw) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100vh;
    z-index: 50;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
  }

  body.menu-open .sb {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 32, 24, 0.6);
    backdrop-filter: blur(2px);
  }

  body.menu-open .scrim {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .comunicados {
    padding: 12px 16px 0;
  }

  .mn {
    padding: 20px 16px 40px !important;
    gap: 16px !important;
  }

  .mn h1 {
    font-size: 24px !important;
  }

  .mn > header {
    align-items: stretch !important;
  }

  .mn > header > div {
    flex: 1 1 100%;
  }

  .mn > header button {
    flex: 1 1 auto;
  }

  .mn > header label {
    flex: 1 1 100% !important;
  }

  .mn > header input[type="search"] {
    width: 100% !important;
    min-width: 0;
  }

  [role="tab"] {
    min-height: 44px !important;
  }

  .twrap {
    min-width: 0 !important;
  }

  .trow-head {
    display: none !important;
  }

  .trow {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 16px !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
  }

  .trow > * {
    flex: 1 1 120px;
    min-width: 0;
  }

  .trow > *:first-child {
    flex-basis: 100%;
  }

  .trow > *::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #5D6A63;
  }

  .trow > *:first-child::before {
    display: none;
  }

  .mn > section[aria-label] > [style*="flex: 1 1 200px"] {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0;
    padding: 14px !important;
  }

  .mn > section[aria-label] > [style*="flex: 1 1 200px"] > div:nth-child(2) {
    font-size: 19px !important;
  }

  .mn > section[aria-label] > [style*="flex: 1 1 200px"] > div:nth-child(3) {
    font-size: 12px !important;
  }

  [style*="height: 240px"] {
    gap: 4px !important;
  }

  [style*="height: 240px"] div {
    font-size: 10px !important;
  }

  [style*="max-width: 78%"] {
    max-width: 92% !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0B6B4B;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #FFFFFF;
}

/* ============================================================================
 * 1. PRELOADER OFICIAL VENDRA (#vendraPreloader)
 * ============================================================================ */
.vendra-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 32, 24, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #FFFFFF;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.vendra-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vendra-preloader-box {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendra-preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(127, 209, 168, 0.18);
  border-top-color: #00D285;
  border-right-color: #0B6B4B;
  animation: vendraSpin 0.85s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

.vendra-preloader-logo {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #FFFFFF;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.vendra-preloader-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #E7F3ED;
}

.vendra-preloader-sub {
  font-size: 12px;
  color: #8FB5A2;
  margin-top: -10px;
}

@keyframes vendraSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
 * 2. TOASTBOX — NOTIFICAÇÕES FLUTUANTES DE AÇÃO (#vendraToastContainer)
 * ============================================================================ */
.vendra-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100vw - 32px);
  pointer-events: none;
}

.vendra-toast {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E4E2DA;
  box-shadow: 0 16px 36px rgba(10, 32, 24, 0.18);
  padding: 14px 16px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  animation: vendraToastSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vendra-toast.is-leaving {
  opacity: 0;
  transform: translateX(24px);
}

@keyframes vendraToastSlideIn {
  from {
    opacity: 0;
    transform: translateX(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.vendra-toast-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.vendra-toast.is-success .vendra-toast-icon {
  background: #E3F1EA;
  color: #0B6B4B;
}

.vendra-toast.is-error .vendra-toast-icon {
  background: #FBE6E4;
  color: #A12A2A;
}

.vendra-toast.is-info .vendra-toast-icon {
  background: #E4ECFA;
  color: #1F4E9E;
}

.vendra-toast.is-warning .vendra-toast-icon {
  background: #FCEFD9;
  color: #8A4300;
}

.vendra-toast-body {
  flex: 1 1 auto;
  min-width: 0;
}

.vendra-toast-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #17231D;
  line-height: 1.25;
}

.vendra-toast-msg {
  margin-top: 2px;
  font-size: 12.5px;
  color: #4A5750;
  line-height: 1.4;
  word-break: break-word;
}

.vendra-toast-dismiss {
  background: transparent;
  border: 0;
  color: #7C867F;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendra-toast-dismiss:hover {
  background: #F4F3EE;
  color: #17231D;
}

.vendra-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: vendraToastProgress 4.8s linear forwards;
}

.vendra-toast:hover .vendra-toast-progress {
  animation-play-state: paused;
}

.vendra-toast.is-success .vendra-toast-progress {
  background: #00D285;
}

.vendra-toast.is-error .vendra-toast-progress {
  background: #DC2626;
}

.vendra-toast.is-info .vendra-toast-progress {
  background: #2563EB;
}

.vendra-toast.is-warning .vendra-toast-progress {
  background: #D97706;
}

@keyframes vendraToastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ============================================================================
 * 3. PAGINAÇÃO DE LISTAGENS (.vendra-pagination)
 * ============================================================================ */
.vendra-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #E4E2DA;
  background: #FAF9F5;
  font-size: 12.5px;
  color: #5D6A63;
}

.vendra-page-info {
  font-weight: 600;
}

.vendra-page-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vendra-page-size {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #CFCCC1;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: #17231D;
  margin-right: 4px;
}

.vendra-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #CFCCC1;
  background: #FFFFFF;
  color: #17231D;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vendra-page-btn:hover:not(:disabled) {
  border-color: #0B6B4B;
  color: #0B6B4B;
  background: #F0F7F3;
}

.vendra-page-btn.is-active {
  background: #0B6B4B;
  border-color: #0B6B4B;
  color: #FFFFFF;
}

.vendra-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ============================================================================
 * 4. MODAL UNIVERSAL DE CRUD (#vendraCrudModal) & BOTÕES DE AÇÃO
 * ============================================================================ */
.vendra-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 32, 24, 0.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vendra-modal-backdrop.is-open {
  display: flex;
}

.vendra-modal-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E4E2DA;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: vendraScreenIn 0.16s ease-out;
}

.vendra-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EFEDE6;
}

.vendra-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #17231D;
}

.vendra-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E4E2DA;
  background: #FAF9F5;
  color: #17231D;
  font-size: 16px;
  font-weight: 800;
}

.crud-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-crud {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #CFCCC1;
  background: #FFFFFF;
  color: #17231D;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-crud:hover {
  border-color: #0B6B4B;
  color: #0B6B4B;
  background: #F0F7F3;
}

.btn-crud-danger {
  border-color: #F3C4C0;
  color: #A12A2A;
  background: #FFFBFB;
}

.btn-crud-danger:hover {
  background: #FBE6E4;
  border-color: #A12A2A;
  color: #A12A2A;
}

/* ============================================================================
 * COMPONENTES DAS PÁGINAS DE CONFIGURAÇÃO: TABS, CARTÕES, FORMULÁRIOS E ASSISTENTE
 * ============================================================================ */
.vd-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--vendra-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.vd-tabs::-webkit-scrollbar {
  display: none;
}

.vd-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--vendra-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* O contorno de foco fica por dentro (a barra tem overflow e cortava-o) */
.vd-tab:focus { outline: none; }
.vd-tab:focus-visible { outline: 2px solid var(--vendra-emerald); outline-offset: -3px; }

.vd-tab:hover {
  background: rgba(11, 107, 75, 0.06);
  color: var(--vendra-text);
}

.vd-tab[aria-selected="true"] {
  border-bottom-color: var(--vendra-emerald);
  color: var(--vendra-emerald);
}

.vd-tab-contagem {
  padding: 1px 7px;
  border-radius: 999px;
  background: #ECEAE2;
  color: var(--vendra-muted);
  font-size: 11px;
  font-weight: 800;
}

.vd-painel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vd-painel[hidden],
.vd-card[hidden] {
  display: none;
}

.vd-grid-principal {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}

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

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

.vd-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  background: var(--vendra-card);
  border: 1px solid var(--vendra-border);
  border-radius: 16px;
}

.vd-card-cabecalho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vd-card-titulo {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.vd-card-sub {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vendra-muted);
}

.vd-metrica {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 20px;
  background: var(--vendra-card);
  border: 1px solid var(--vendra-border);
  border-radius: 16px;
}

.vd-metrica-rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vendra-muted);
}

.vd-metrica-valor {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.vd-metrica-valor.is-pequeno {
  font-size: 20px;
}

.vd-metrica-nota {
  font-size: 13px;
  color: var(--vendra-muted);
  overflow-wrap: anywhere;
}

.vd-ponto {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.vd-ponto.is-ok {
  background: #2F8A66;
}

.vd-ponto.is-pendente {
  background: #F59E0B;
}

.vd-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vendra-emerald);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vd-etiqueta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

.vd-etiqueta.is-verde { background: #E3F1EA; color: #0B6B4B; }
.vd-etiqueta.is-ambar { background: #FCEFD9; color: #8A4300; }
.vd-etiqueta.is-azul { background: #E4ECFA; color: #1F4E9E; }
.vd-etiqueta.is-roxo { background: #ECE6F8; color: #5B3FA0; }
.vd-etiqueta.is-cinza { background: #EFEDE6; color: #5D6A63; }

.vd-aviso {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.vd-aviso.is-verde { background: #E3F1EA; color: #0B4F37; }
.vd-aviso.is-ambar { background: #FCEFD9; color: #6B3600; }
.vd-aviso.is-azul { background: #E4ECFA; color: #173C7A; }
.vd-aviso.is-vermelho { background: #FBE6E4; color: #A12A2A; }

.vd-vazio {
  padding: 16px 0;
  border-top: 1px solid #EFEDE6;
  font-size: 13px;
  color: var(--vendra-muted);
}

.vd-linhas {
  display: grid;
  column-gap: 32px;
}

.vd-linhas-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.vd-linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid #EFEDE6;
  font-size: 14px;
}

.vd-linha-rotulo {
  color: var(--vendra-muted);
}

.vd-linha-valor {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vd-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.vd-campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.vd-campos-par {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vd-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.vd-campo input,
.vd-campo select,
.vd-campo textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #CFCCC1;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--vendra-text);
  font-size: 14px;
}

.vd-campo textarea {
  padding: 10px 12px;
  resize: vertical;
}

.vd-campo input:focus,
.vd-campo select:focus,
.vd-campo textarea:focus {
  border-color: var(--vendra-emerald);
  outline: 2px solid rgba(11, 107, 75, 0.15);
}

.vd-ajuda {
  font-size: 12px;
  font-weight: 500;
  color: var(--vendra-muted);
}

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

.vd-acoes-fim {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #EFEDE6;
}

.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #CFCCC1;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--vendra-text);
  font-size: 13.5px;
  font-weight: 700;
}

.vd-btn-primario {
  border-color: var(--vendra-emerald);
  background: var(--vendra-emerald);
  color: #FFFFFF;
}

.vd-btn-facebook {
  border-color: #1877F2;
  background: #1877F2;
  color: #FFFFFF;
}

.vd-btn-facebook:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vd-btn-discreto {
  margin-right: auto;
  border-color: transparent;
  background: transparent;
  color: var(--vendra-muted);
}

.vd-btn-pequeno {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.vd-instrucoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.vd-copiar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--vendra-border);
  border-radius: 12px;
  background: #FAF9F5;
}

.vd-copiar-rotulo {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
  color: var(--vendra-muted);
}

.vd-copiar code {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vd-detalhes {
  font-size: 13px;
  color: var(--vendra-muted);
}

.vd-detalhes summary {
  color: var(--vendra-text);
  font-weight: 700;
  cursor: pointer;
}

.vd-detalhes-corpo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.vd-wizard {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.vd-wizard-corpo {
  min-width: 0;
}

.vd-passos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--vendra-card);
  border: 1px solid var(--vendra-border);
  border-radius: 16px;
}

.vd-passo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vendra-text);
  text-align: left;
}

.vd-passo:hover {
  background: #F4F3EE;
}

.vd-passo[aria-selected="true"] {
  background: #F0F7F3;
  box-shadow: inset 3px 0 0 var(--vendra-emerald);
}

.vd-passo-numero {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ECEAE2;
  color: var(--vendra-muted);
  font-size: 13px;
  font-weight: 800;
}

.vd-passo[aria-selected="true"] .vd-passo-numero {
  background: var(--vendra-emerald);
  color: #FFFFFF;
}

.vd-passo.is-feito .vd-passo-numero {
  background: #E3F1EA;
  color: var(--vendra-emerald);
}

.vd-passo-texto {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.vd-passo-titulo {
  font-size: 13.5px;
  font-weight: 700;
}

.vd-passo-resumo {
  font-size: 12px;
  color: var(--vendra-muted);
}

.vd-passo-indice {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vendra-muted);
}

@media (max-width: 1280px) {
  .vd-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .vd-grid-principal,
  .vd-wizard {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-passos {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .vd-passo {
    flex: 1 0 auto;
    width: auto;
    justify-content: center;
  }

  .vd-passo-resumo {
    display: none;
  }

  .vd-passo[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--vendra-emerald);
  }
}

@media (max-width: 560px) {
  .vd-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .vd-card {
    padding: 18px;
  }

  .vd-passo-texto {
    display: none;
  }

  .vd-passo[aria-selected="true"] .vd-passo-texto {
    display: flex;
  }

  .vd-acoes-fim .vd-btn {
    flex: 1 1 auto;
  }

  .vd-btn-discreto {
    margin-right: 0;
  }
}

/* ---------------------------------------------------------------- Código QR (dois passos) */
.vd-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.vd-qr-imagem {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  padding: 8px;
  border: 1px solid var(--vendra-border);
  border-radius: 12px;
  background: #FFFFFF;
}

.vd-qr-imagem svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vd-qr-opcoes {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
}

/* ---------------------------------------------------------------- Opções com caixa de seleção */
.vd-opcoes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vd-opcao {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.vd-opcao:hover {
  background: #F4F7F5;
}

.vd-opcao input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0B6B4B;
}

.vd-opcao > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.vd-opcao input:disabled + span {
  opacity: 0.75;
}

/* ---------------------------------------------------------------- Notificações (lista e página dedicada) */
.vd-notif-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.vd-notif-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.vd-notif-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #E4E2DA; border-radius: 999px; background: #FFFFFF; color: #3F4A44; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vd-notif-chip:hover { border-color: #0B6B4B; color: #0B6B4B; }
.vd-notif-chip.is-ativo { border-color: #0B6B4B; background: #E3F1EA; color: #0B6B4B; }
.vd-notif-chip span { padding: 0 7px; border-radius: 999px; background: #0B6B4B; color: #FFFFFF; font-size: 11px; line-height: 18px; }
.vd-notif-sep { width: 1px; height: 22px; background: #E4E2DA; }
.vd-notif-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-notif-acoes form { margin: 0; }
.vd-notif-lista { padding: 0; overflow: hidden; gap: 0; }
.vd-notif-grupo { margin: 0; padding: 14px 18px 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5D6A63; background: #FBFAF7; border-top: 1px solid #EFEDE6; }
.vd-notif-grupo:first-child { border-top: 0; }
.vd-notif { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-top: 1px solid #EFEDE6; background: #FFFFFF; transition: background .12s; }
.vd-notif-grupo + .vd-notif { border-top: 0; }
.vd-notif:hover { background: #F6F8F7; }
.vd-notif.is-nova { background: #F3F9F6; }
.vd-notif.is-nova:hover { background: #EAF5EF; }
.vd-notif-ligacao { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.vd-notif-ligacao:focus-visible { outline: 2px solid #0B6B4B; outline-offset: -2px; }
.vd-notif-icone { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ECEAE2; color: #3F4A44; }
.vd-notif-icone.is-encomendas { background: #E3F1EA; color: #0B6B4B; }
.vd-notif-icone.is-pagamentos { background: #FFF1DB; color: #B26A00; }
.vd-notif-icone.is-mensagens { background: #E4ECFA; color: #1F4E9E; }
.vd-notif-icone.is-stock { background: #FBE6E4; color: #A12A2A; }
.vd-notif-icone.is-lojas { background: #ECE6F8; color: #5B3FA0; }
.vd-notif-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-notif-titulo { font-size: 14.5px; font-weight: 600; color: #3F4A44; overflow-wrap: anywhere; }
.vd-notif.is-nova .vd-notif-titulo { font-weight: 800; color: #111B21; }
.vd-notif-mensagem { font-size: 13.5px; line-height: 1.45; color: #5D6A63; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.vd-notif-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #8A958F; }
.vd-notif.is-nova .vd-notif-meta time { color: #0B6B4B; font-weight: 700; }
.vd-notif-ponto { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: transparent; }
.vd-notif.is-nova .vd-notif-ponto { background: #0B6B4B; }
.vd-notif-remover { position: relative; z-index: 2; margin: 0; opacity: 0; transition: opacity .12s; }
.vd-notif:hover .vd-notif-remover, .vd-notif-remover:focus-within { opacity: 1; }
@media (hover: none) { .vd-notif-remover { opacity: 1; } }
.vd-notif-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.vd-notif-nav a { text-decoration: none; }
.vd-notif-nav-setas { display: flex; gap: 8px; }
.vd-notif-ler { max-width: 760px; width: 100%; gap: 18px; }
.vd-notif-ler-topo { display: flex; gap: 14px; align-items: flex-start; }
.vd-notif-ler-topo .vd-notif-icone { width: 48px; height: 48px; }
.vd-notif-ler-tipo { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0B6B4B; }
.vd-notif-ler-topo h2 { margin: 2px 0 4px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.vd-notif-ler-topo time { font-size: 13px; color: #5D6A63; }
.vd-notif-ler-mensagem { margin: 0; font-size: 15px; line-height: 1.6; color: #2B3631; white-space: pre-wrap; overflow-wrap: anywhere; }
.vd-notif-ler-detalhes { margin: 0; border: 1px solid #E4E2DA; border-radius: 12px; overflow: hidden; }
.vd-notif-ler-detalhes div { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 12px; padding: 10px 14px; }
.vd-notif-ler-detalhes div + div { border-top: 1px solid #EFEDE6; }
.vd-notif-ler-detalhes dt { font-size: 13px; color: #5D6A63; }
.vd-notif-ler-detalhes dd { margin: 0; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.vd-notif-ler-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vd-notif-ler-acoes form { margin: 0; }
.vd-notif-ler-acoes a.vd-btn { display: inline-flex; align-items: center; text-decoration: none; }
.vd-notif-ler-eliminar { color: #A12A2A; margin-right: 0; }
@media (max-width: 600px) {
  .vd-notif { padding: 12px 14px; gap: 10px; }
  .vd-notif-icone { width: 34px; height: 34px; }
  .vd-notif-sep { display: none; }
  .vd-notif-ler-detalhes div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.vd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Sino na barra de topo (só aparece com a barra, em ecrãs pequenos) */
.tb-sino {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: inherit;
}

.tb-sino-contagem {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #E2574C;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

/* ---------------------------------------------------------------- Recuperação de palavra-passe */
.auth-simples {
  width: min(460px, calc(100% - 32px));
  margin: 48px auto 16px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(14, 42, 32, 0.08);
}

.auth-alert-sucesso {
  background: #E3F1EA;
  color: #0B4F37;
  border: 1px solid #BFE0CE;
}

.auth-ajuda {
  font-size: 12px;
  color: #6B776F;
}

.auth-btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-esqueci {
  align-self: flex-end;
  margin-top: -6px;
  font-size: 13px;
  font-weight: 600;
  color: #0B6B4B;
}

/* ---------------------------------------------------------------- Listas em linhas (painel da loja) */
.vd-lista {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vendra-border);
  border-radius: 16px;
  background: #FFFFFF;
}

.vd-lista-titulo {
  padding: 18px 20px 6px;
}

.vd-lista .vd-linhas {
  padding: 0 20px 14px;
}

.vd-lista-cabecalho {
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--vendra-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--vendra-muted);
}

.vd-lista-linha {
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #EFEDE6;
  font-size: 14px;
}

.vd-lista-linha form {
  margin: 0;
}

.vd-lista-vazio {
  padding: 24px 20px;
  color: var(--vendra-muted);
  font-size: 14px;
  text-align: center;
}

.vd-etiqueta.is-vermelho { background: #FBE6E4; color: #A12A2A; }

/* ---------------------------------------------------------------- Pagamento pelo GPO (EMIS) */
.vd-pagamento {
  min-width: 0;
}

/* A EMIS indica 562 x 816 px como tamanho mínimo suportado da webframe */
.vd-gpo-frame {
  overflow-x: auto;
  border: 1px solid var(--vendra-border);
  border-radius: 12px;
  background: #FFFFFF;
}

.vd-gpo-frame iframe {
  display: block;
  width: 100%;
  min-width: 562px;
  height: 816px;
  border: 0;
}

.vd-passos-pagamento {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #2B3631;
}

/* ---------------------------------------------------------------- Logótipo do Multicaixa Express */
.mcx-logo {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  border-radius: 22%;
}

.mcx-rotulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------- Contagem do prazo de pagamento */
.vd-contagem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #BFE0CE;
  border-radius: 12px;
  background: #F2F8F5;
}

.vd-contagem-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0B4F37;
}

.vd-contagem-relogio {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #0B6B4B;
}

.vd-contagem-barra {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #D6EBDF;
}

.vd-contagem-barra span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #0B6B4B;
  transition: width 1s linear;
}

.vd-contagem.is-urgente {
  border-color: #F2C98B;
  background: #FCEFD9;
}

.vd-contagem.is-urgente .vd-contagem-topo,
.vd-contagem.is-urgente .vd-contagem-relogio {
  color: #8A4300;
}

.vd-contagem.is-urgente .vd-contagem-barra {
  background: #F6DDB4;
}

.vd-contagem.is-urgente .vd-contagem-barra span {
  background: #C26A00;
}

@media (prefers-reduced-motion: reduce) {
  .vd-contagem-barra span {
    transition: none;
  }
}

.vd-passos-curtos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vd-passos-curtos li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--vendra-border);
  border-radius: 12px;
  background: #FFFFFF;
}

.vd-passos-curtos li > span {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E3F1EA;
  color: #0B6B4B;
  font-size: 13px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

.vd-passos-curtos strong {
  display: block;
  font-size: 13.5px;
}

.vd-passos-curtos small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--vendra-muted);
}

@media (max-width: 640px) {
  .vd-passos-curtos {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- Prazo para aceitar e meios de pagamento */
.vd-prazo-aceitar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #FFF4E5;
  border: 1px solid #F6D3A0;
  color: #6B3600;
}

.vd-prazo-segundos {
  flex: 0 0 auto;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #C26A00;
  font-variant-numeric: tabular-nums;
}

.vd-prazo-segundos small {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 700;
}

.vd-prazo-aceitar strong {
  display: block;
  font-size: 15px;
}

.vd-prazo-aceitar span:not(.vd-prazo-segundos) {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
}

/* A validade do pedido é informação secundária */
.vd-contagem .vd-contagem-relogio {
  font-size: 18px;
}

.vd-meios-pagamento {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.vd-meio {
  gap: 10px;
}

.vd-meio-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.vd-meio-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #E3F1EA;
  color: #0B6B4B;
}

/* Registo do número na Cloud API (PIN de 6 algarismos), dentro do passo 2 */
.vd-pin-bloco {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #EFEDE6;
}
.vd-pin-bloco input[name="pin"],
.vd-pin-bloco input[name="pin_confirmar"] {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
}

/* Perfil WhatsApp: foto atual */
.vd-perfil-foto { display: flex; justify-content: center; margin: 6px 0 16px; }
.vd-perfil-foto img,
.vd-perfil-foto-vazia { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.vd-perfil-foto-vazia { display: grid; place-items: center; background: #EEF2F0; color: #5D6A63; font-size: 13px; }

/* Perfil WhatsApp: formulário à esquerda, telemóvel com a pré-visualização à direita
   (imita o ecrã «Detalhes da empresa» do WhatsApp, em claro ou escuro) */
.vd-perfil-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.vd-perfil-editar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vd-perfil-pre { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vd-perfil-pre-titulo { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: #16211B; }
.vd-perfil-pre-titulo > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.vd-perfil-pre-tema { display: inline-flex; padding: 2px; border-radius: 999px; background: #ECEAE2; }
.vd-perfil-pre-tema button { border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; color: #5D6A63; cursor: pointer; }
.vd-perfil-pre-tema button[aria-pressed="true"] { background: #FFFFFF; color: #16211B; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.vd-perfil-pre > .vd-ajuda { text-align: center; max-width: 300px; }
.vd-telemovel {
  --tel-fundo: #FFFFFF; --tel-cartao: #F4F4F5; --tel-texto: #0B141A; --tel-suave: #667781; --tel-linha: #E2E5E7;
  --tel-verde: #1A8F4E; --tel-botao: #F4F4F5;
  width: 300px; padding: 10px; border-radius: 42px; background: #1B1F1D; box-shadow: 0 18px 40px rgba(16, 24, 20, 0.18);
}
.vd-telemovel.is-escuro {
  --tel-fundo: #000000; --tel-cartao: #1C1C1E; --tel-texto: #FFFFFF; --tel-suave: #8E8E93; --tel-linha: #38383A;
  --tel-verde: #21C063; --tel-botao: #1C1C1E;
}
.vd-telemovel-ecra { height: 600px; overflow-y: auto; border-radius: 32px; background: var(--tel-fundo); color: var(--tel-texto); font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; scrollbar-width: none; padding-bottom: 18px; }
.vd-telemovel-ecra::-webkit-scrollbar { display: none; }
.vd-tel-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 22px 4px; font-size: 13px; font-weight: 600; }
.vd-tel-camara { width: 74px; height: 20px; border-radius: 12px; background: #1B1F1D; }
.vd-tel-topo { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 8px 12px 4px; font-size: 15px; font-weight: 700; text-align: center; }
.vd-tel-voltar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tel-cartao); }
.vd-tel-cabeca { display: flex; flex-direction: column; align-items: center; padding: 14px 12px 6px; text-align: center; }
.vd-tel-foto { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; background: #DFE5E7; display: grid; place-items: center; color: #FFFFFF; font-size: 34px; font-weight: 600; }
.vd-tel-foto span { display: grid; place-items: center; width: 100%; height: 100%; background: #8696A0; }
.vd-tel-foto img { width: 100%; height: 100%; object-fit: cover; }
.vd-tel-nome { margin-top: 12px; font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.vd-tel-acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 16px; }
.vd-tel-acoes span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; background: var(--tel-botao); font-size: 12px; }
.vd-tel-cartao { margin: 10px 10px 0; padding: 4px 14px; border-radius: 16px; background: var(--tel-cartao); font-size: 14px; }
.vd-tel-cartao-topo { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 8px; font-size: 15px; }
.vd-tel-cartao-topo span { color: var(--tel-suave); }
.vd-tel-catalogo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 12px; }
.vd-tel-catalogo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #FFFFFF; }
.vd-tel-linha { padding: 11px 0; line-height: 1.35; overflow-wrap: anywhere; border-bottom: 1px solid var(--tel-linha); }
.vd-tel-info > .vd-tel-linha:last-child { border-bottom: 0; }
.vd-tel-texto span { white-space: pre-line; }
.vd-tel-texto small { display: block; margin-top: 4px; font-size: 11px; color: var(--tel-suave); }
.vd-tel-sobre:empty::before { content: 'Sobre (obrigatório)'; color: var(--tel-suave); }
.vd-tel-ligacao { color: var(--tel-verde); }
.vd-tel-verde { padding: 12px 14px; color: var(--tel-verde); font-size: 15px; }
.vd-tel-comercial { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.vd-tel-comercial svg { flex: 0 0 auto; }
.vd-tel-comercial span { display: flex; flex-direction: column; }
.vd-tel-comercial small { color: var(--tel-suave); font-size: 11px; }
@media (max-width: 1100px) {
  .vd-perfil-layout { grid-template-columns: minmax(0, 1fr); }
  .vd-perfil-pre { position: static; }
}
@media (max-width: 360px) {
  .vd-telemovel { width: 100%; }
}

/* Produtos: quadrado da foto (clicar escolhe o ficheiro) */
.vd-produto-foto { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: #ECEAE2; color: #5D6A63; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.vd-produto-foto img { width: 100%; height: 100%; object-fit: cover; }
.vd-produto-foto input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vd-produto-foto:focus-within { outline: 2px solid #0B6B4B; outline-offset: 2px; }

/* Conversas: fotos, vídeos, áudios e documentos recebidos */
.vd-msg-anexo { display: flex; flex-direction: column; gap: 6px; }
.vd-msg-imagem { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; background: #ECEAE2; }
.vd-msg-autocolante { width: 120px; height: 120px; object-fit: contain; }
.vd-msg-anexo audio { width: 260px; max-width: 100%; }
.vd-msg-rotulo { font-size: 12px; font-weight: 700; color: #5D6A63; }
.vd-msg-documento { font-weight: 700; color: #0B6B4B; word-break: break-all; }

/* ===================== Conversas no estilo do WhatsApp ===================== */
.vd-ic { flex: 0 0 auto; vertical-align: -3px; }
.vd-previa { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #3F4A44; overflow-wrap: anywhere; }
.vd-previa .vd-ic { color: #8696A0; }

.vd-chat-mensagens { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; background: #EFEAE2; max-height: 62vh; overflow-y: auto; }
.vd-chat-evento { align-self: center; margin: 8px 0; padding: 5px 12px; border-radius: 8px; background: #FFF5C4; color: #54656F; font-size: 12px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }

.vd-msg { position: relative; display: flex; align-items: center; gap: 6px; max-width: 80%; margin-top: 2px; }
.vd-msg.is-cliente { align-self: flex-start; }
.vd-msg.is-minha { align-self: flex-end; flex-direction: row-reverse; }
.vd-msg.tem-reacao { margin-bottom: 16px; }
.vd-msg-bolha { position: relative; min-width: 72px; box-sizing: border-box; padding: 6px 8px 8px 9px; border-radius: 8px; font-size: 14.2px; line-height: 1.4; color: #111B21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); display: flex; flex-direction: column; gap: 4px; }
.vd-msg.is-cliente .vd-msg-bolha { background: #FFFFFF; border-top-left-radius: 0; }
.vd-msg.is-minha .vd-msg-bolha { background: #D9FDD3; border-top-right-radius: 0; }
.vd-msg-texto { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 44px; }
.vd-msg-ic { color: #8696A0; margin-right: 4px; }
.vd-msg-rodape { align-self: flex-end; display: flex; align-items: center; gap: 4px; margin-top: -16px; font-size: 11px; color: #667781; line-height: 1; }
.vd-msg-imagem + .vd-msg-rodape, .vd-msg-autocolante + .vd-msg-rodape, .vd-msg-audio + .vd-msg-rodape, .vd-msg-documento + .vd-msg-rodape, .vd-msg-botoes + .vd-msg-rodape, a + .vd-msg-rodape { margin-top: 0; }
.vd-msg-bot { color: #8696A0; display: inline-flex; }
.vd-msg-imagem { display: block; max-width: 100%; max-height: 330px; border-radius: 6px; background: #D1D7DB; }
.vd-msg-autocolante { width: 130px; height: 130px; object-fit: contain; }
.vd-msg-audio { display: flex; align-items: center; gap: 8px; }
.vd-msg-audio audio { width: 250px; max-width: 100%; height: 36px; }
.vd-msg-audio-ic { width: 34px; height: 34px; border-radius: 50%; background: #00A884; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.vd-msg-documento { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; background: rgba(11, 20, 26, .05); color: #111B21; text-decoration: none; overflow-wrap: anywhere; }
.vd-msg-documento .vd-ic { color: #54656F; }
.vd-msg-documento small { color: #667781; }
.vd-msg-botoes { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-msg-botoes span { flex: 1; text-align: center; padding: 7px 10px; border-radius: 6px; background: rgba(255, 255, 255, .8); color: #027EB5; font-weight: 600; font-size: 13.5px; }
.vd-msg-reencaminhada { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: #667781; }

.vd-msg-citacao { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 6px; border-left: 4px solid #06CF9C; background: rgba(11, 20, 26, .05); color: #54656F; font-size: 13px; text-decoration: none; overflow: hidden; }
.vd-msg-citacao.is-cliente { border-left-color: #53BDEB; }
.vd-msg-citacao strong { color: #06CF9C; font-size: 12.5px; }
.vd-msg-citacao.is-cliente strong { color: #53BDEB; }
.vd-msg-citacao span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.vd-msg-reacoes { position: absolute; bottom: -15px; display: inline-flex; align-items: center; gap: 1px; padding: 2px 6px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(11, 20, 26, .2); font-size: 14px; line-height: 1.2; }
.vd-msg.is-cliente .vd-msg-reacoes { left: 8px; }
.vd-msg.is-minha .vd-msg-reacoes { right: 8px; }
.vd-msg-reacoes small { margin-left: 3px; font-size: 11px; color: #667781; }

.vd-msg-acoes { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .12s; }
.vd-msg:hover .vd-msg-acoes, .vd-msg:focus-within .vd-msg-acoes { opacity: 1; }
.vd-msg-acao { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #54656F; cursor: pointer; }
.vd-msg-acao:hover { background: rgba(11, 20, 26, .08); }
.vd-msg-acao[disabled], .vd-msg-acao[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.vd-msg-reagir { position: relative; }
.vd-msg-reacoes-rapidas { position: absolute; bottom: 38px; z-index: 5; display: flex; gap: 2px; margin: 0; padding: 6px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 2px 8px rgba(11, 20, 26, .2); }
.vd-msg.is-cliente .vd-msg-reacoes-rapidas { left: -8px; }
.vd-msg.is-minha .vd-msg-reacoes-rapidas { right: -8px; }
.vd-msg-reacoes-rapidas[hidden] { display: none; }
.vd-msg-reacoes-rapidas button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #54656F; }
.vd-msg-reacoes-rapidas button:hover, .vd-msg-reacoes-rapidas button.is-ativa { background: #E9EDEF; }
.vd-msg.is-destacada .vd-msg-bolha { box-shadow: 0 0 0 3px rgba(6, 207, 156, .45); }

.vd-compositor { padding: 10px 16px 14px; border-top: 1px solid #E4E2DA; background: #F0F2F5; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 16px 16px; }
.vd-compositor-citacao, .vd-compositor-ficheiro { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #FFFFFF; border-left: 4px solid #06CF9C; font-size: 13px; color: #54656F; }
.vd-compositor-citacao[hidden], .vd-compositor-ficheiro[hidden] { display: none; }
.vd-compositor-citacao > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vd-compositor-citacao strong { color: #06CF9C; font-size: 12.5px; }
.vd-compositor-citacao span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-compositor-ficheiro { border-left-color: #00A884; }
.vd-compositor-ficheiro [data-ficheiro-nome] { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: #111B21; }
.vd-compositor-linha { display: flex; align-items: center; gap: 6px; margin: 0; }
.vd-compositor-linha input[type=text] { flex: 1 1 200px; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 8px; border: 0; background: #FFFFFF; font-size: 15px; color: #111B21; }
.vd-compositor-linha input[type=text]:focus { outline: 2px solid #00A884; }
.vd-compositor-enviar { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #00A884; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.vd-compositor-enviar[disabled] { background: #AEBAC1; cursor: not-allowed; }
.vd-anexar { position: relative; overflow: hidden; }
.vd-anexar input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vd-emoji { position: relative; }
.vd-emoji-painel { position: absolute; bottom: 46px; left: 0; z-index: 6; box-sizing: border-box; width: 304px; max-width: 80vw; max-height: 220px; overflow-x: hidden; overflow-y: auto; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; padding: 8px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 2px 10px rgba(11, 20, 26, .22); }
.vd-emoji-painel[hidden] { display: none; }
.vd-emoji-painel button { height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 21px; cursor: pointer; }
.vd-emoji-painel button:hover { background: #F0F2F5; }

@media (max-width: 640px) {
  .vd-msg { max-width: 92%; }
  .vd-chat-mensagens { padding: 12px; max-height: 70vh; }
}

/* ===================== Conversas: disposição do WhatsApp Web ===================== */
.mn[data-wa-main] { padding: 16px; gap: 0; }
.vd-wa { position: relative; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: calc(100dvh - 32px); min-height: 520px; background: #FFFFFF; border: 1px solid #E4E2DA; border-radius: 14px; overflow: hidden; }
/* Com espaço, os dados do contacto ficam numa 3.ª coluna; sem espaço, abrem por cima do chat */
@media (min-width: 1600px) { .vd-wa.tem-perfil { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) 360px; } }
@media (max-width: 1599px) { .vd-wa-perfil { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(380px, 100%); box-shadow: -4px 0 18px rgba(11, 20, 26, .14); } }

.vd-wa-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #E9EDEF; background: #FFFFFF; }
.vd-wa-lista-topo { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #F0F2F5; }
.vd-wa-lista-topo h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.vd-wa-pesquisa { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; background: #F0F2F5; color: #54656F; }
.vd-wa-pesquisa input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: #111B21; }
.vd-wa-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.vd-wa-chips button { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 0; border-radius: 16px; background: #F0F2F5; color: #54656F; font-size: 13px; font-weight: 600; cursor: pointer; }
.vd-wa-chips button[aria-selected="true"] { background: #D9FDD3; color: #008069; }
.vd-wa-lista-itens { flex: 1; min-height: 0; overflow-y: auto; }
.vd-wa-lista .vendra-pagination, .vd-wa-lista [data-pagination-bar] { padding: 8px 12px; border-top: 1px solid #F0F2F5; font-size: 12px; }

.vd-wa-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid #F0F2F5; }
.vd-wa-item:hover { background: #F5F6F6; }
.vd-wa-item.is-ativa { background: #F0F2F5; }
.vd-wa-item-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-wa-item-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.vd-wa-item-linha strong { font-size: 15px; font-weight: 600; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-wa-item-linha small { flex: 0 0 auto; font-size: 12px; color: #667781; }
.vd-wa-item .vd-previa { flex: 1; min-width: 0; color: #667781; font-size: 13.5px; overflow: hidden; }
.vd-wa-item .vd-previa > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-wa-selo { flex: 0 0 auto; padding: 2px 8px; border-radius: 10px; background: #F0F2F5; color: #54656F; font-size: 11px; font-weight: 700; }
.vd-wa-selo.is-humano { background: #25D366; color: #FFFFFF; }

.vd-wa-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #DFE5E7; color: #54656F; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.vd-wa-avatar.is-grande { width: 120px; height: 120px; font-size: 40px; }

.vd-wa-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: #F0F2F5; border-bottom: 6px solid #25D366; color: #54656F; }
.vd-wa-vazio h2 { margin: 8px 0 0; font-size: 26px; font-weight: 300; color: #41525D; }
.vd-wa-vazio p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.5; }

.vd-wa-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 0; border-radius: 0; }
.vd-wa-chat-topo { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 12px; background: #F0F2F5; border-bottom: 1px solid #E9EDEF; }
.vd-wa-contacto { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 4px; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
.vd-wa-contacto .vd-wa-avatar { width: 40px; height: 40px; font-size: 14px; }
.vd-wa-contacto > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.vd-wa-contacto strong { font-size: 16px; font-weight: 600; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-wa-contacto small { font-size: 12.5px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-wa-modo { margin: 0; }
.vd-wa-modo .btn-crud { min-height: 34px; padding: 0 12px; white-space: nowrap; }
.vd-wa-voltar { display: none; }

.vd-wa .vd-chat-mensagens { flex: 1; min-height: 0; max-height: none; padding: 14px 6% 18px; gap: 3px; background-color: #EFEAE2; background-image: radial-gradient(rgba(11, 20, 26, .035) 1px, transparent 1px); background-size: 18px 18px; }
.vd-chat-dia { display: flex; justify-content: center; margin: 10px 0 6px; }
.vd-chat-dia span { padding: 5px 12px; border-radius: 8px; background: #FFFFFF; color: #54656F; font-size: 12.5px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.vd-wa .vd-msg { max-width: 72%; }
.vd-wa .vd-compositor { border-radius: 0; padding: 8px 14px; }
.vd-compositor-linha textarea { flex: 1 1 200px; min-width: 0; min-height: 42px; max-height: 140px; padding: 11px 14px; border-radius: 8px; border: 0; background: #FFFFFF; font: inherit; font-size: 15px; line-height: 1.35; color: #111B21; resize: none; overflow-y: auto; box-sizing: border-box; }
.vd-compositor-linha textarea:focus { outline: none; }

/* Vistos */
.vd-visto { display: inline-flex; align-items: center; color: #8696A0; }
.vd-visto.is-lida { color: #53BDEB; }
.vd-visto.is-falhada { color: #EA0038; }
.vd-msg.is-pendente .vd-msg-bolha { opacity: .92; }
.vd-msg.is-falhada .vd-msg-bolha { box-shadow: 0 0 0 1px rgba(234, 0, 56, .35); }
.vd-msg-falha { align-self: center; border: 0; background: transparent; color: #EA0038; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.vd-msg.is-minha .vd-msg-falha { order: -1; }
.vd-msg-progresso { height: 4px; border-radius: 4px; background: rgba(11, 20, 26, .1); overflow: hidden; }
.vd-msg-progresso span { display: block; height: 100%; width: 0; background: #00A884; transition: width .2s; }

/* Menu de cada mensagem (seta no canto, como no WhatsApp Web) */
.vd-msg-menu-abrir { position: absolute; top: 2px; right: 2px; z-index: 2; width: 26px; height: 22px; padding: 0; border: 0; border-radius: 0 6px 0 12px; background: inherit; color: #8696A0; cursor: pointer; opacity: 0; transition: opacity .12s; display: inline-flex; align-items: center; justify-content: center; }
.vd-msg:hover .vd-msg-menu-abrir, .vd-msg-menu-abrir:focus-visible { opacity: 1; }
.vd-msg.is-cliente .vd-msg-menu-abrir { background: linear-gradient(to left, #FFFFFF 70%, rgba(255, 255, 255, 0)); }
.vd-msg.is-minha .vd-msg-menu-abrir { background: linear-gradient(to left, #D9FDD3 70%, rgba(217, 253, 211, 0)); }
.vd-msg-menu { position: fixed; z-index: 40; min-width: 200px; padding: 6px 0; border-radius: 10px; background: #FFFFFF; box-shadow: 0 2px 12px rgba(11, 20, 26, .22); }
.vd-msg-menu[hidden] { display: none; }
.vd-msg-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border: 0; background: transparent; color: #3B4A54; font-size: 14.5px; text-align: left; cursor: pointer; }
.vd-msg-menu button:hover { background: #F5F6F6; }
.vd-msg-menu button[disabled] { opacity: .45; cursor: not-allowed; }

/* Dados do contacto */
.vd-wa-perfil { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #E9EDEF; background: #F0F2F5; }
.vd-wa-perfil[hidden] { display: none; }
.vd-wa-perfil-topo { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 14px; background: #FFFFFF; border-bottom: 1px solid #E9EDEF; font-size: 16px; font-weight: 600; }
.vd-wa-perfil-corpo { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.vd-wa-perfil-cartao { padding: 16px 20px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(11, 20, 26, .06); }
.vd-wa-perfil-cartao.is-centro { align-items: center; text-align: center; padding: 26px 20px; }
.vd-wa-perfil-cartao h2 { margin: 6px 0 0; font-size: 21px; font-weight: 600; color: #111B21; }
.vd-wa-perfil-numero { font-size: 15px; color: #667781; }
.vd-wa-perfil-rotulo { font-size: 13.5px; color: #667781; }
.vd-wa-perfil-ligacao { font-size: 14px; font-weight: 600; color: #008069; text-decoration: none; }
.vd-wa-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vd-wa-galeria a { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #F0F2F5; display: flex; align-items: center; justify-content: center; color: #54656F; }
.vd-wa-galeria img { width: 100%; height: 100%; object-fit: cover; }
.vd-wa-perfil-acoes form { margin: 0; }
.vd-wa-perfil-acoes button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 0; border: 0; background: transparent; color: #EA0038; font-size: 15px; text-align: left; cursor: pointer; }
.vd-wa-perfil-acoes form:first-child button { color: #008069; }

/* Diálogo dos dados da mensagem */
.vd-wa-dialogo { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 8px 30px rgba(11, 20, 26, .3); }
.vd-wa-dialogo::backdrop { background: rgba(11, 20, 26, .4); }
.vd-wa-dialogo header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid #E9EDEF; font-size: 16px; }
.vd-wa-dialogo [data-detalhes-corpo] { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #3B4A54; }
.vd-wa-dialogo dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.vd-wa-dialogo dt { color: #667781; display: flex; align-items: center; gap: 6px; }
.vd-wa-dialogo dd { margin: 0; text-align: right; }
.vd-wa-dialogo .is-erro { padding: 10px 12px; border-radius: 8px; background: #FDECEF; color: #A0002A; }

/* Ecrãs pequenos: uma coluna de cada vez, como na aplicação do telemóvel */
@media (max-width: 900px) {
  .vd-wa-perfil { width: 100%; box-shadow: none; }
}
@media (max-width: 860px) {
  .mn[data-wa-main] { padding: 0; }
  .vd-wa { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 56px); border: 0; border-radius: 0; }
  .vd-wa.tem-conversa .vd-wa-lista { display: none; }
  .vd-wa:not(.tem-conversa) .vd-wa-vazio { display: none; }
  .vd-wa-voltar { display: inline-flex; }
  .vd-wa .vd-chat-mensagens { padding: 10px 10px 14px; }
  .vd-wa .vd-msg { max-width: 88%; }
  .vd-wa-modo .btn-crud { padding: 0 10px; font-size: 12px; }
}

/* Ecrãs táteis: sem passar o rato, a seta de opções fica sempre à vista e substitui os botões ao lado */
@media (hover: none) {
  .vd-msg-menu-abrir { opacity: .85; }
  .vd-msg-acoes { display: none; }
  .vd-msg-acoes.is-aberta { display: flex; opacity: 1; width: 0; }
  .vd-msg-acoes.is-aberta [data-msg-reagir-abrir] { visibility: hidden; }
}

/* ===================== Perfil, explorador, pesquisa e visualizador (WhatsApp Web) ===================== */
.vd-wa-perfil-corpo.is-branco { background: #FFFFFF; gap: 0; padding: 0 0 16px; }
.vd-wa-perfil-nick { font-size: 14px; color: #667781; }
.vd-wa-perfil-atalhos { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.vd-wa-perfil-atalhos a, .vd-wa-perfil-atalhos button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 82px; padding: 12px 10px; border: 1px solid #E9EDEF; border-radius: 10px; background: #FFFFFF; color: #008069; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vd-wa-perfil-atalhos a:hover, .vd-wa-perfil-atalhos button:hover { background: #F5F6F6; }
.vd-wa-perfil-atalhos span { color: #111B21; font-weight: 500; }
.vd-wa-perfil-multimedia { width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vd-wa-perfil-multimedia:hover { background: #F5F6F6; }
.vd-wa-perfil-linha-titulo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: #667781; }
.vd-wa-perfil-linha-titulo > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.vd-wa-galeria.is-linha { grid-template-columns: repeat(3, 1fr); }
.vd-wa-galeria-item { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #F0F2F5; display: flex; align-items: center; justify-content: center; color: #54656F; cursor: pointer; }
.vd-wa-galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.vd-wa-perfil-nota { padding: 4px 20px; font-size: 12px; color: #8696A0; text-align: center; }

.vd-wa-separadores { display: flex; background: #FFFFFF; border-bottom: 1px solid #E9EDEF; }
.vd-wa-separadores button { flex: 1; padding: 14px 6px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #667781; font-size: 15px; cursor: pointer; }
.vd-wa-separadores button[aria-selected="true"] { color: #111B21; font-weight: 600; border-bottom-color: #00A884; }
.vd-wa-mes { padding: 18px 20px 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #667781; }
[data-separador-painel="ficheiros"] .vd-wa-galeria { padding: 0 20px; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.vd-wa-explorador-vazio { padding: 32px 24px; text-align: center; font-size: 14px; color: #667781; }
.vd-wa-explorador-linha { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #F0F2F5; }
.vd-wa-explorador-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; background: #F0F2F5; color: #54656F; display: inline-flex; align-items: center; justify-content: center; }
.vd-wa-explorador-ic.is-ligacao { background: #E7F8F2; color: #008069; }
.vd-wa-explorador-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: #111B21; text-decoration: none; }
.vd-wa-explorador-texto strong { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.vd-wa-explorador-texto small { font-size: 12.5px; color: #667781; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-wa-explorador-texto small.is-url { color: #027EB5; }

.vd-wa-pesquisa-caixa { padding: 10px 14px; background: #FFFFFF; border-bottom: 1px solid #E9EDEF; }
.vd-wa-resultado { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 20px; border: 0; border-bottom: 1px solid #F0F2F5; background: #FFFFFF; text-align: left; cursor: pointer; font: inherit; }
.vd-wa-resultado:hover { background: #F5F6F6; }
.vd-wa-resultado small { font-size: 12.5px; color: #667781; }
.vd-wa-resultado span { font-size: 14px; color: #3B4A54; overflow-wrap: anywhere; }
.vd-wa-resultado mark { background: transparent; color: #00A884; font-weight: 700; }

/* Formatação do WhatsApp nas mensagens */
.vd-fmt-link { color: #027EB5; text-decoration: none; overflow-wrap: anywhere; }
.vd-fmt-link:hover { text-decoration: underline; }
.vd-fmt-mono, .vd-fmt-codigo { font-family: Consolas, 'Courier New', monospace; font-size: 13.5px; }
.vd-fmt-codigo { padding: 1px 4px; border-radius: 4px; background: rgba(11, 20, 26, .07); }

/* Visualizador de fotos e vídeos */
.vd-wa-visualizador { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgba(233, 237, 239, .97); }
.vd-wa-visualizador[hidden] { display: none; }
.vd-wa-visualizador header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(11, 20, 26, .08); }
.vd-wa-visualizador [data-vis-info] { display: flex; flex-direction: column; min-width: 0; }
.vd-wa-visualizador [data-vis-info] strong { font-size: 15px; color: #111B21; }
.vd-wa-visualizador [data-vis-info] small { font-size: 12.5px; color: #667781; }
.vd-wa-visualizador-acoes { display: flex; gap: 6px; }
.vd-wa-visualizador-acoes > * { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #54656F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vd-wa-visualizador-acoes > *:hover { background: rgba(11, 20, 26, .07); }
.vd-wa-visualizador-palco { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.vd-wa-visualizador-palco [data-vis-conteudo] { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.vd-wa-visualizador-palco img, .vd-wa-visualizador-palco video { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 2px 16px rgba(11, 20, 26, .2); }
.vd-wa-visualizador-seta { flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #FFFFFF; color: #54656F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(11, 20, 26, .15); }
.vd-wa-visualizador-seta[disabled] { visibility: hidden; }
.vd-wa-visualizador-legenda { padding: 10px 20px 22px; text-align: center; font-size: 14px; color: #3B4A54; min-height: 18px; }
@media (max-width: 640px) {
  .vd-wa-visualizador-seta { position: absolute; z-index: 2; width: 38px; height: 38px; }
  .vd-wa-visualizador-seta[data-vis-anterior] { left: 8px; }
  .vd-wa-visualizador-seta[data-vis-seguinte] { right: 8px; }
  .vd-wa-visualizador-palco { padding: 8px; }
}

/* ===================== Documentos e pré-visualizações (como no WhatsApp) ===================== */
.vd-doc { display: flex; flex-direction: column; width: 300px; max-width: 100%; border-radius: 6px; overflow: hidden; background: rgba(11, 20, 26, .05); }
.vd-doc-previa { display: block; height: 150px; overflow: hidden; background: #FFFFFF; border-bottom: 1px solid rgba(11, 20, 26, .06); }
.vd-doc-previa img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.vd-doc-previa-carregar { display: block; height: 100%; background: linear-gradient(90deg, #F0F2F5 25%, #E9EDEF 50%, #F0F2F5 75%); background-size: 200% 100%; animation: vd-doc-brilho 1.4s infinite linear; }
@keyframes vd-doc-brilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.vd-doc-linha { display: flex; align-items: center; gap: 10px; padding: 10px; color: #111B21; text-decoration: none; }
.vd-doc-linha:hover .vd-doc-baixar { color: #00A884; }
.vd-doc-ic { position: relative; flex: 0 0 auto; width: 30px; height: 38px; border-radius: 3px; background: var(--doc-cor, #5F6B73); display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; box-sizing: border-box; }
.vd-doc-ic::before { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent rgba(255, 255, 255, .9) rgba(0, 0, 0, .22) transparent; }
.vd-doc-ic span { color: #FFFFFF; font-size: 8.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.vd-doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-doc-info strong { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-doc-info small { font-size: 12px; color: #667781; }
.vd-doc-baixar { flex: 0 0 auto; color: #8696A0; display: inline-flex; }
.vd-msg.is-minha .vd-doc { background: rgba(0, 0, 0, .05); }

.vd-wa-explorador-doc { padding: 10px 20px; border-bottom: 1px solid #F0F2F5; display: flex; flex-direction: column; gap: 6px; }
.vd-wa-explorador-doc .vd-doc { width: 100%; }
.vd-wa-explorador-doc-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vd-wa-explorador-doc-rodape small { font-size: 12.5px; color: #667781; }

.vd-wa-galeria-item { position: relative; }
.vd-wa-galeria-item video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vd-wa-galeria-play { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(11, 20, 26, .55); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }

/* Ficheiro escolhido, antes de enviar */
.vd-compositor-ficheiro { align-items: center; padding: 10px; }
.vd-compositor-ficheiro-previa { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: #F0F2F5; display: flex; align-items: center; justify-content: center; }
.vd-compositor-ficheiro-previa img, .vd-compositor-ficheiro-previa video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vd-compositor-ficheiro-previa .vd-doc-ic { width: 38px; height: 48px; }
.vd-compositor-ficheiro-previa .vd-doc-ic span { font-size: 10px; }
.vd-compositor-ficheiro-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-compositor-ficheiro-info strong { font-size: 14px; font-weight: 600; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-compositor-ficheiro-info small { font-size: 12.5px; color: #667781; }
.vd-msg-documento .vd-doc-ic { width: 26px; height: 33px; }

/* Toque longo numa mensagem (ecrãs táteis): sem o menu nativo nem seleção de texto, como na aplicação */
.vd-msg.is-premida .vd-msg-bolha { filter: brightness(.93); transition: filter .15s; }
@media (hover: none) {
  .vd-chat-mensagens .vd-msg-bolha, .vd-chat-mensagens .vd-msg-bolha img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ===================== Organizar conversas (menu da lista, pastas, por ler) ===================== */
.vd-wa-item { position: relative; }
.vd-wa-item.is-por-ler .vd-wa-item-linha strong { font-weight: 700; }
.vd-wa-item-linha small.is-por-ler { color: #1DAA61; font-weight: 600; }
.vd-wa-item-icones { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: #8696A0; }
.vd-wa-item-icones > span { display: inline-flex; }
.vd-wa-por-ler { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #1DAA61; color: #FFFFFF; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.vd-wa-por-ler.is-ponto { min-width: 12px; width: 12px; height: 12px; padding: 0; }
.vd-wa-estado { color: #EA0038; font-weight: 700; }
.vd-wa-item-menu { position: absolute; right: 10px; bottom: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #F0F2F5; color: #54656F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.vd-wa-item:hover .vd-wa-item-menu, .vd-wa-item-menu:focus-visible { opacity: 1; }
.vd-wa-item:hover .vd-wa-selo { visibility: hidden; }

.vd-wa-pasta { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: #111B21; text-decoration: none; border-bottom: 1px solid #F0F2F5; font-size: 15px; }
.vd-wa-pasta:hover { background: #F5F6F6; }
.vd-wa-pasta-ic { width: 46px; display: inline-flex; justify-content: center; color: #1DAA61; }
.vd-wa-pasta span:nth-child(2) { flex: 1; }
.vd-wa-pasta small { font-size: 12.5px; color: #1DAA61; font-weight: 600; }
.vd-wa-lista-voltar { display: flex; align-items: center; gap: 8px; }
.vd-wa-lista-voltar a { color: #54656F; }

.vd-conversa-menu { min-width: 250px; max-height: calc(100vh - 16px); overflow-y: auto; }
.vd-conversa-menu > button, .vd-conversa-submenu > button { display: flex; align-items: center; gap: 14px; }
.vd-conversa-menu svg { flex: 0 0 auto; color: #54656F; }
.vd-conversa-menu span { flex: 1; }
.vd-conversa-menu-seta { font-style: normal; color: #8696A0; }
.vd-conversa-menu hr { margin: 6px 0; border: 0; border-top: 1px solid #E9EDEF; }
.vd-conversa-menu .is-perigo, .vd-conversa-menu .is-perigo svg { color: #EA0038; }
.vd-conversa-submenu { margin: 0 10px 6px 46px; padding: 4px 0; border-left: 2px solid #E9EDEF; }
.vd-conversa-submenu[hidden] { display: none; }
.vd-conversa-submenu > button { padding: 8px 14px; font-size: 14px; }
.vd-conversa-submenu [data-c-marca] { flex: 0 0 auto; width: 14px; color: #1DAA61; font-weight: 700; }
.vd-conversa-nova-lista { display: flex; gap: 6px; padding: 6px 14px; margin: 0; }
.vd-conversa-nova-lista input { flex: 1; min-width: 0; min-height: 32px; padding: 0 8px; border: 1px solid #D1D7DB; border-radius: 6px; font: inherit; font-size: 13.5px; }
.vd-conversa-nova-lista button { width: auto; padding: 0 10px; border: 0; border-radius: 6px; background: #00A884; color: #FFFFFF; font-weight: 600; font-size: 13px; cursor: pointer; }
.vd-wa-bloqueado { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (hover: none) {
  .vd-wa-item-menu { opacity: .8; background: transparent; }
  .vd-wa-item .vd-wa-selo { display: none; }
  .vd-wa-lista .vd-wa-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ===================== Conversas trancadas e avisos de mensagens ===================== */
.vd-wa-cofre { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px; text-align: center; color: #54656F; }
.vd-wa-cofre-ic { width: 72px; height: 72px; border-radius: 50%; background: #E7F8F2; color: #008069; display: inline-flex; align-items: center; justify-content: center; }
.vd-wa-cofre p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.5; }
.vd-wa-cofre-form { display: flex; gap: 8px; width: 100%; max-width: 300px; margin: 0; }
.vd-wa-cofre-form.is-coluna { flex-direction: column; max-width: none; }
.vd-wa-cofre-form input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid #D1D7DB; border-radius: 8px; font: inherit; font-size: 15px; }
.vd-wa-cofre .vd-aviso { width: 100%; max-width: 300px; margin: 0; }
.vd-wa-cofre-opcoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid #F0F2F5; background: #F7F8FA; }
.vd-wa-cofre-opcoes .btn-crud { min-height: 32px; padding: 0 12px; }
.vd-wa-cofre-opcoes small { flex: 1 1 100%; font-size: 12px; color: #667781; }
.vd-wa-cofre-ocultar { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #3B4A54; cursor: pointer; }

.vd-wa-avisos { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: #D9FDD3; color: #111B21; font-size: 13.5px; }
.vd-wa-avisos[hidden] { display: none; }
.vd-wa-avisos-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #FFFFFF; color: #00A884; display: inline-flex; align-items: center; justify-content: center; }
.vd-wa-avisos button { margin-top: 2px; padding: 0; border: 0; background: transparent; color: #027EB5; font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.vd-wa-som { flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #54656F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vd-wa-som:hover { background: rgba(11, 20, 26, .07); }
.vd-wa-som[aria-pressed="true"] .vd-som-mudo { display: none; }
.vd-wa-som[aria-pressed="false"] .vd-som-ondas { display: none; }
.vd-wa-som[aria-pressed="false"] { color: #EA0038; }

/* Contacto sem nome: avatar com a silhueta, como no WhatsApp */
.vd-wa-avatar:empty { background: #DFE5E7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='4' fill='%23FFFFFF'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7' fill='%23FFFFFF'/%3E%3C/svg%3E") center 60% / 70% no-repeat; }

/* Conversas trancadas abertas pelo código */
.vd-wa-pasta.is-aberta { background: #F0FAF5; }
.vd-wa-pasta.is-aberta span:nth-child(2) { font-weight: 600; }
.vd-wa-pasta.is-destaque { animation: vd-pasta-destaque 1.6s ease-out; }
@keyframes vd-pasta-destaque { 0% { background: #C8F2DB; } 100% { background: #F0FAF5; } }

/* Ícones Material Symbols nas conversas (cheios, como os do WhatsApp Web) */
.vd-conversa-menu .vd-ic, .vd-msg-menu .vd-ic { color: #54656F; }
.vd-conversa-menu .is-perigo .vd-ic { color: #EA0038; }
.vd-ic-alt { display: none; }
.is-invertido .vd-ic-base { display: none; }
.is-invertido .vd-ic-alt { display: inline-flex; }
.vd-ic-base, .vd-ic-alt { flex: 0 0 auto; align-items: center; }
.vd-ic-base { display: inline-flex; }
.vd-wa-som .vd-som-ondas, .vd-wa-som .vd-som-mudo { display: inline-flex; }
.vd-visto .vd-ic { vertical-align: middle; }
.vd-conversa-menu span.vd-ic-base, .vd-conversa-menu span.vd-ic-alt { flex: 0 0 auto; }

/* ===================== Catálogo: disposição do WhatsApp Web ===================== */
.vd-cat { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
.vd-cat-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #E9EDEF; background: #FFFFFF; }
.vd-cat-detalhe { display: flex; flex-direction: column; min-height: 0; background: #F7F8FA; }
.vd-cat-topo { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 16px; background: #FFFFFF; border-bottom: 1px solid #F0F2F5; }
.vd-cat-topo h1, .vd-cat-topo h2 { flex: 1; min-width: 0; margin: 0; font-size: 19px; font-weight: 600; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-cat-topo form { margin: 0; }
.vd-cat-icone-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; color: #54656F; cursor: pointer; list-style: none; text-decoration: none; }
.vd-cat-icone-btn::-webkit-details-marker { display: none; }
.vd-cat-icone-btn:hover, .vd-cat-menu[open] > .vd-cat-icone-btn { background: #F0F2F5; }
.vd-cat-icone-btn.is-perigo:hover { color: #C0392B; }
.vd-cat-menu { position: relative; }
.vd-cat-menu-itens { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 240px; padding: 8px 0; background: #FFFFFF; border-radius: 12px; box-shadow: 0 6px 24px rgba(11, 20, 26, .16), 0 0 0 1px rgba(11, 20, 26, .04); }
.vd-cat-menu-itens form { margin: 0; }
.vd-cat-menu-itens a, .vd-cat-menu-itens button { box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; padding: 0 20px; border: 0; background: transparent; color: #111B21; font: inherit; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.vd-cat-menu-itens a:hover, .vd-cat-menu-itens button:hover { background: #F5F6F6; }
.vd-cat-menu-itens svg { color: #54656F; flex: 0 0 auto; }

.vd-cat-pesquisa-caixa { padding: 8px 12px; border-bottom: 1px solid #F0F2F5; }
.vd-cat-rolar { flex: 1; min-height: 0; overflow-y: auto; }

.vd-cat-acao { display: flex; align-items: center; gap: 16px; padding: 12px 16px; color: #111B21; font-size: 15.5px; text-decoration: none; }
.vd-cat-acao:hover, .vd-cat-acao.is-ativo { background: #F5F6F6; }
.vd-cat-acao-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 auto; box-sizing: border-box; border: 1px solid #D1D7DB; border-radius: 6px; color: #3B4A54; background: #FFFFFF; }

.vd-cat-bloco { padding-top: 6px; }
.vd-cat-bloco + .vd-cat-bloco, .vd-cat-acao + .vd-cat-bloco { border-top: 8px solid #F7F8FA; }
.vd-cat-bloco-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; font-size: 15px; color: #111B21; }
.vd-cat-bloco-titulo a { color: #008069; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.vd-cat-bloco-titulo a:hover { text-decoration: underline; }

.vd-cat-item { display: flex; align-items: center; gap: 16px; padding: 10px 16px; color: inherit; text-decoration: none; }
.vd-cat-item:hover { background: #F5F6F6; }
.vd-cat-item.is-ativo { background: #F0F2F5; }
.vd-cat-miniatura { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: #F0F2F5; color: #8696A0; }
.vd-cat-miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-cat-miniatura.is-pequena { width: 44px; height: 44px; }
.vd-cat-item-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-cat-item-corpo strong { font-size: 15.5px; font-weight: 400; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-cat-item-corpo small { font-size: 14px; color: #667781; }
.vd-cat-seta { color: #8696A0; display: inline-flex; }
.vd-cat-estado { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.vd-cat-estado.is-erro { color: #C0392B; }
.vd-cat-estado.is-oculto { color: #667781; }
.vd-cat-estado.is-pendente { color: #8A6100; }
.vd-cat-vazio-pequeno { padding: 12px 16px 18px; font-size: 14px; color: #667781; line-height: 1.5; }

/* Detalhe: formulário de item e de coleção */
.vd-cat-form { box-sizing: border-box; max-width: 640px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.vd-cat-fotos { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vd-cat-foto { position: relative; display: flex; align-items: center; justify-content: center; width: 220px; height: 220px; border-radius: 10px; overflow: hidden; background: #FFFFFF; border: 1px dashed #AEBAC1; color: #54656F; cursor: pointer; }
.vd-cat-foto.tem-foto, .vd-cat-foto.tem-previa { border-style: solid; border-color: #E9EDEF; }
.vd-cat-foto img { width: 100%; height: 100%; object-fit: cover; }
.vd-cat-foto input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vd-cat-foto-vazia { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.vd-cat-foto.tem-previa .vd-cat-foto-vazia { display: none; }
.vd-cat-foto-trocar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: rgba(11, 20, 26, .55); color: #FFFFFF; font-size: 13px; opacity: 0; transition: opacity .15s; }
.vd-cat-foto:hover .vd-cat-foto-trocar, .vd-cat-foto:focus-within .vd-cat-foto-trocar { opacity: 1; }
.vd-cat-nota { margin: 0; max-width: 360px; text-align: center; font-size: 12.5px; color: #667781; }

.vd-cat-aviso { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.vd-cat-aviso div { display: flex; flex-direction: column; gap: 2px; }
.vd-cat-aviso svg { flex: 0 0 auto; margin-top: 1px; }
.vd-cat-aviso.is-ok { background: #E7F8EE; color: #0B6B4B; }
.vd-cat-aviso.is-erro { background: #FDECEA; color: #A12A2A; }
.vd-cat-aviso.is-oculto { background: #EEF0F2; color: #3B4A54; }
.vd-cat-aviso.is-pendente { background: #FFF6DD; color: #7A5600; }

.vd-cat-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: #008069; font-weight: 600; }
.vd-cat-campo em { font-style: normal; font-weight: 400; color: #8696A0; }
.vd-cat-campo input:not([type="checkbox"]):not([type="search"]), .vd-cat-campo select, .vd-cat-campo textarea { box-sizing: border-box; width: 100%; padding: 8px 2px; border: 0; border-bottom: 2px solid #E9EDEF; border-radius: 0; background: transparent; color: #111B21; font: inherit; font-size: 15.5px; font-weight: 400; outline: 0; }
.vd-cat-campo textarea { resize: vertical; min-height: 44px; }
.vd-cat-campo input:focus, .vd-cat-campo select:focus, .vd-cat-campo textarea:focus { border-bottom-color: #00A884; }
.vd-cat-campo small { font-weight: 400; color: #667781; font-size: 12.5px; }
.vd-cat-duas { display: flex; flex-wrap: wrap; gap: 18px; }
.vd-cat-duas > * { flex: 1 1 200px; }

.vd-cat-interruptor { position: relative; display: flex; align-items: center; gap: 16px; padding: 4px 0; cursor: pointer; }
.vd-cat-interruptor > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vd-cat-interruptor strong { font-size: 15px; font-weight: 500; color: #111B21; }
.vd-cat-interruptor small { font-size: 13px; color: #667781; }
.vd-cat-interruptor input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vd-cat-interruptor-trilho { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 11px; background: #AEBAC1; transition: background .15s; }
.vd-cat-interruptor-trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.vd-cat-interruptor input:checked + .vd-cat-interruptor-trilho { background: #00A884; }
.vd-cat-interruptor input:checked + .vd-cat-interruptor-trilho::after { transform: translateX(16px); }
.vd-cat-interruptor input:focus-visible + .vd-cat-interruptor-trilho { outline: 2px solid #00A884; outline-offset: 2px; }

.vd-cat-botoes { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.vd-cat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px; border: 1px solid #D1D7DB; border-radius: 20px; background: #FFFFFF; color: #008069; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vd-cat-btn.is-primario { border-color: #008069; background: #008069; color: #FFFFFF; }
.vd-cat-btn.is-primario:hover { background: #017561; }

.vd-cat-pesquisa-itens { margin-top: 4px; }
.vd-cat-escolha { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid #E9EDEF; border-radius: 10px; background: #FFFFFF; }
.vd-cat-escolha-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; font-weight: 400; }
.vd-cat-escolha-item + .vd-cat-escolha-item { border-top: 1px solid #F0F2F5; }
.vd-cat-escolha-item:hover { background: #F5F6F6; }
.vd-cat-escolha-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vd-cat-escolha-item .vd-cat-item-corpo strong { font-size: 14.5px; }
.vd-cat-escolha-item .vd-cat-item-corpo small { font-size: 12.5px; font-weight: 400; }
.vd-cat-visto { display: inline-flex; color: #D1D7DB; }
.vd-cat-escolha-item input:checked ~ .vd-cat-visto { color: #00A884; }
.vd-cat-escolha-item input:focus-visible ~ .vd-cat-visto { outline: 2px solid #00A884; border-radius: 50%; }

/* Início do detalhe: estado do catálogo */
.vd-cat-inicio { padding: 32px 24px 40px; }
.vd-cat-boas-vindas { max-width: 560px; margin: 8px auto 24px; text-align: center; color: #667781; }
.vd-cat-boas-vindas-ic { display: inline-flex; color: #AEBAC1; }
.vd-cat-boas-vindas h2 { margin: 12px 0 8px; font-size: 28px; font-weight: 300; color: #41525D; }
.vd-cat-boas-vindas p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.vd-cat-cartao { box-sizing: border-box; max-width: 640px; margin: 0 auto; padding: 20px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E9EDEF; display: flex; flex-direction: column; gap: 12px; }
.vd-cat-cartao-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vd-cat-cartao h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111B21; }
.vd-cat-cartao-topo p { margin: 4px 0 0; font-size: 13.5px; color: #667781; line-height: 1.5; }
.vd-cat-numeros { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-cat-numeros div { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: #F7F8FA; }
.vd-cat-numeros strong { font-size: 22px; color: #111B21; }
.vd-cat-numeros span { font-size: 12.5px; color: #667781; }
.vd-cat-link { padding: 0; border: 0; background: transparent; color: #008069; font: inherit; font-weight: 600; cursor: pointer; }
.vd-cat-link:hover { text-decoration: underline; }
.vd-cat-sincronizar { margin: 0; display: flex; justify-content: flex-end; }
.vd-cat-problemas h4 { margin: 4px 0 6px; font-size: 13px; color: #111B21; }
.vd-cat-problema { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: #FDECEA; color: #A12A2A; font-size: 13px; text-decoration: none; }
.vd-cat-problema + .vd-cat-problema { margin-top: 6px; }
.vd-cat-problema strong { color: #111B21; }

/* Ecrãs pequenos: uma coluna de cada vez, como no telemóvel */
@media (max-width: 860px) {
  .vd-cat { grid-template-columns: minmax(0, 1fr); }
  .vd-cat.tem-detalhe .vd-cat-lista { display: none; }
  .vd-cat:not(.tem-detalhe) .vd-cat-detalhe { display: none; }
  .vd-cat-form { padding: 16px 16px 32px; }
  .vd-cat-foto { width: 180px; height: 180px; }
  .vd-cat-inicio { padding: 20px 16px 32px; }
}
@media (min-width: 861px) { .vd-cat-so-movel { display: none; } }
.vd-cat [hidden] { display: none !important; }
.vd-cat-mais { border: 1px solid #E9EDEF; border-radius: 10px; background: #FFFFFF; }
.vd-cat-mais > summary { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: #111B21; list-style: none; }
.vd-cat-mais > summary::-webkit-details-marker { display: none; }
.vd-cat-mais > summary::after { content: "▾"; margin-left: auto; color: #8696A0; }
.vd-cat-mais[open] > summary::after { content: "▴"; }
.vd-cat-mais > summary small { font-weight: 400; color: #667781; font-size: 12.5px; }
.vd-cat-mais-corpo { display: flex; flex-direction: column; gap: 16px; padding: 4px 14px 16px; margin: 0; }
.vd-cat-grupo { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.vd-cat-subtitulo { margin: 8px 0 0; font-size: 13px; color: #111B21; }
.vd-cat-passo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 14px; border-radius: 10px; background: #F7F8FA; font-size: 13.5px; color: #667781; line-height: 1.5; }
.vd-cat-passo strong { color: #111B21; font-size: 14.5px; }
.vd-cat-passo form { margin: 6px 0 0; }
.vd-cat-passo > .vd-cat-btn { margin-top: 6px; }
.vd-cat-nota-esq { font-size: 12.5px; color: #667781; }

/* ===================== Stock: só as quantidades ===================== */
.vd-stock-cartao { flex: 1 1 200px; box-sizing: border-box; background: #FFFFFF; border: 1px solid #E4E2DA; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.vd-stock-cartao span { font-size: 13px; font-weight: 600; color: #5D6A63; }
.vd-stock-cartao strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.vd-stock-cartao small { font-size: 12px; color: #5D6A63; }
.vd-stock { background: #FFFFFF; border: 1px solid #E4E2DA; border-radius: 16px; overflow: hidden; }
.vd-stock-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EFEDE6; }
.vd-stock-pesquisa { flex: 1 1 240px; margin: 0; }
.vd-stock-filtros { flex: 0 1 auto; }
.vd-stock-filtros a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 16px; background: #F0F2F5; color: #54656F; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vd-stock-filtros a[aria-current="true"] { background: #D9FDD3; color: #008069; }
.vd-stock-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; border-bottom: 1px solid #F0F2F5; }
.vd-stock-linha:last-child { border-bottom: 0; }
.vd-stock-item { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.vd-stock-item:hover strong { text-decoration: underline; }
.vd-stock-estado { flex: 0 0 150px; display: flex; flex-direction: column; gap: 3px; }
.vd-stock-estado small { font-size: 12px; color: #667781; }
.vd-stock-etiqueta { align-self: flex-start; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.vd-stock-etiqueta.is-ok { background: #E3F1EA; color: #0B6B4B; }
.vd-stock-etiqueta.is-aviso { background: #FCEFD9; color: #8A4300; }
.vd-stock-etiqueta.is-erro { background: #FBE6E4; color: #A12A2A; }
.vd-stock-etiqueta.is-neutra { background: #EEF0F2; color: #3B4A54; }
.vd-stock-form { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.vd-stock-form label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; font-weight: 600; color: #667781; }
.vd-stock-form input { width: 96px; box-sizing: border-box; min-height: 38px; padding: 0 10px; border: 1px solid #D1D7DB; border-radius: 8px; font: inherit; font-size: 15px; color: #111B21; }
.vd-stock-form input:focus { outline: 2px solid #00A884; outline-offset: -1px; border-color: transparent; }
.vd-stock-controlar { flex: 0 0 auto; color: #008069; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.vd-stock-controlar:hover { text-decoration: underline; }
.vd-stock-vazio { padding: 28px 16px; text-align: center; color: #667781; font-size: 14px; }
.vd-stock-ajuda { display: flex; flex-wrap: wrap; gap: 12px; }
.vd-stock-ajuda div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E4E2DA; font-size: 13px; color: #5D6A63; }
.vd-stock-ajuda strong { font-size: 14px; color: #17231D; }
@media (max-width: 640px) {
  .mn .vd-stock-linha { gap: 10px; }
  .vd-stock-estado { flex: 1 1 auto; }
}
.vd-obrigatorio { color: #C0392B; font-weight: 700; }
.vd-cat-legenda { margin: 0; font-size: 12.5px; color: #667781; }
.vd-cat-item-corpo small s { color: #8696A0; }
.vd-cat-promo { color: #008069; font-weight: 600; }
.vd-cat-diagnostico { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid #E9EDEF; }
.vd-cat-diagnostico .vd-cat-subtitulo { margin: 0; }
.vd-cat-diagnostico ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-cat-diagnostico li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.vd-cat-diagnostico li div { display: flex; flex-direction: column; gap: 2px; }
.vd-cat-diagnostico li span { color: #667781; }
.vd-cat-diagnostico li.is-ok svg { color: #00A884; }
.vd-cat-diagnostico li.is-erro svg { color: #C0392B; }
.vd-cat-diagnostico li.is-erro strong { color: #A12A2A; }
.vd-cat-diagnostico form { margin: 0; }
.vd-cat-diagnostico li.is-info svg { color: #8696A0; }
.vd-cat-diagnostico li.is-info strong { color: #3B4A54; }

/* Conexões: conta que paga o número sem acesso (duas vias de correção) */
.vd-conta-paga { border-color: #F2B8B5; }
.vd-conta-paga-vias { display: flex; flex-wrap: wrap; gap: 12px; }
.vd-conta-paga-vias > div { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; background: #FBF9F4; border: 1px solid #EFEDE6; }
.vd-conta-paga-vias p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3F4A44; }

/* Carrinho enviado pelo cliente (mensagem "order"), como no WhatsApp */
.vd-carrinho { display: flex; align-items: stretch; min-width: 240px; max-width: 320px; border-radius: 8px; overflow: hidden; background: rgba(11, 20, 26, .05); }
.vd-carrinho-capa { flex: 0 0 auto; width: 84px; min-height: 84px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; color: #8696A0; }
.vd-carrinho-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-carrinho-resumo { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; }
.vd-carrinho-resumo strong { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: #111B21; }
.vd-carrinho-resumo small { font-size: 13px; color: #667781; }
.vd-carrinho-ver { display: block; width: 100%; margin-top: 6px; padding: 10px 0 4px; border: 0; border-top: 1px solid rgba(11, 20, 26, .1); background: transparent; color: #008069; font: inherit; font-size: 14.5px; font-weight: 600; text-align: center; cursor: pointer; }
.vd-carrinho-ver:hover { text-decoration: underline; }
.vd-carrinho-painel { width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: #FFFFFF; box-shadow: -4px 0 18px rgba(11, 20, 26, .14); }
.vd-carrinho-painel::backdrop { background: rgba(11, 20, 26, .25); }
.vd-carrinho-painel header { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-bottom: 1px solid #F0F2F5; }
.vd-carrinho-painel h3 { margin: 0; font-size: 17px; font-weight: 500; color: #111B21; }
.vd-carrinho-painel-corpo { padding: 12px 0 24px; }
.vd-carrinho-total { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 20px 14px; }
.vd-carrinho-total strong { font-size: 16px; font-weight: 500; color: #111B21; }
.vd-carrinho-total span { font-size: 14px; color: #667781; }
.vd-carrinho-item { display: flex; align-items: center; gap: 16px; padding: 10px 20px; color: inherit; text-decoration: none; }
a.vd-carrinho-item:hover { background: #F5F6F6; }
.vd-carrinho-quando { margin: 16px 20px 0; font-size: 13px; color: #667781; }

/* Detalhes da Encomenda (painel do carrinho) */
.vd-encomenda-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 12px; padding: 12px 14px; border-radius: 10px; background: #F7F8FA; }
.vd-encomenda-cabecalho div { display: flex; flex-direction: column; gap: 2px; }
.vd-encomenda-cabecalho small { font-size: 12px; color: #667781; }
.vd-encomenda-cabecalho strong { font-size: 16px; color: #111B21; }
.vd-encomenda-estado { padding: 5px 10px; border-radius: 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vd-encomenda-estado.is-pendente { background: #FCEFD9; color: #8A4300; }
.vd-encomenda-nota { margin: 0 20px 12px; font-size: 13px; line-height: 1.5; color: #667781; }
.vd-encomenda-gerir { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 16px 20px 0; padding: 0 16px; box-sizing: border-box; text-decoration: none; }
.vd-encomenda-acao { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.vd-encomenda-acao .vd-encomenda-gerir { margin-top: 0; width: calc(100% - 40px); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.vd-encomenda-acao small { margin: 0 20px; font-size: 12.5px; line-height: 1.45; color: #667781; }

/* Configurações › Pagamentos */
.vd-pag-form, .vd-pag-lado { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vd-pag .vd-card { gap: 14px; }
.vd-pag-metodos { display: flex; flex-direction: column; border: 1px solid #E4E2DA; border-radius: 14px; overflow: hidden; }
.vd-pag-metodo { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; background: #FFFFFF; }
.vd-pag-metodo + .vd-pag-metodo { border-top: 1px solid #EFEDE6; }
.vd-pag-metodo:hover { background: #FBF9F4; }
.vd-pag-metodo input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vd-pag-metodo input:checked + .vd-cat-interruptor-trilho { background: #00A884; }
.vd-pag-metodo input:checked + .vd-cat-interruptor-trilho::after { transform: translateX(16px); }
.vd-pag-metodo input:focus-visible + .vd-cat-interruptor-trilho { outline: 2px solid #0B6B4B; outline-offset: 2px; }
.vd-pag-metodo-icone { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #F1EFE8; color: #2B3631; }
.vd-pag-metodo-icone svg { display: block; }
.vd-pag-metodo-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.vd-pag-metodo-texto strong { font-size: 15px; color: #111B21; }
.vd-pag-metodo-texto small { font-size: 13px; line-height: 1.45; color: #667781; }
.vd-pag-metodo-texto .vd-etiqueta { margin-top: 4px; }
.vd-pag-bloco { margin: 0; padding: 14px 16px 16px; border: 1px solid #E4E2DA; border-radius: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vd-pag-bloco legend { padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5D6A63; }
.vd-pag-modos { display: flex; flex-direction: column; gap: 8px; }
.vd-pag-modo { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid #E4E2DA; border-radius: 12px; background: #FFFFFF; cursor: pointer; transition: border-color .15s, background .15s; }
.vd-pag-modo:hover { border-color: #B9C7BF; }
.vd-pag-modo:has(input:checked) { border-color: #0B6B4B; background: #F0F8F4; }
.vd-pag-modo input { flex: 0 0 auto; margin-top: 3px; accent-color: #0B6B4B; }
.vd-pag-modo > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vd-pag-modo strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.vd-pag-modo em.vd-etiqueta { font-style: normal; font-size: 11px; padding: 2px 7px; }
.vd-pag-modo small { font-size: 12.5px; line-height: 1.45; color: #5D6A63; }
.vd-pag-rotulo { display: block; }
.vd-opcional { font-style: normal; font-weight: 500; color: #667781; }
.vd-pag-meios { display: flex; flex-direction: column; gap: 8px; }
.vd-pag-meio { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #F6F8F7; }
.vd-pag-meio > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-pag-meio strong { font-size: 14px; }
.vd-pag-meio small { font-size: 12.5px; line-height: 1.45; color: #5D6A63; }
.vd-pag-meio-icone { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FFFFFF; color: #2B3631; }
.vd-pag-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vd-pag-acoes .vd-ajuda { flex: 1; min-width: 200px; }
.vd-pag-resultado { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.vd-pag-resultado small { font-size: 12px; font-weight: 700; opacity: .8; }
.vd-pag-resultado.is-ok { background: #E3F1EA; color: #0B4F38; }
.vd-pag-resultado.is-erro { background: #FBE6E4; color: #7E1F1F; }
.vd-pag [hidden] { display: none !important; }

/* Preferências de notificação: "Também por e-mail" por tipo (proprietário) */
.vd-pref { display: flex; flex-direction: column; }
.vd-pref-email { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 6px 42px; font-size: 13px; color: #3F4A44; cursor: pointer; }
.vd-pref-email input { width: 16px; height: 16px; accent-color: #0B6B4B; }

/* ---------------------------------------------------------------- Relatórios */
.mn[data-rel] { flex: 999 1 560px; min-width: 0; box-sizing: border-box; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.vd-rel-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.vd-rel-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.vd-rel-sub { margin-top: 4px; font-size: 14px; color: #5D6A63; }
.vd-rel-exportar { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.vd-rel-periodos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vd-rel-periodo { padding: 8px 14px; border: 1px solid #E4E2DA; border-radius: 999px; background: #FFFFFF; color: #3F4A44; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vd-rel-periodo:hover { border-color: #0B6B4B; color: #0B6B4B; }
.vd-rel-periodo.is-ativo { border-color: #0B6B4B; background: #E3F1EA; color: #0B6B4B; }
.vd-rel-intervalo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-left: auto; }
.vd-rel-intervalo label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 700; color: #5D6A63; }
.vd-rel-intervalo input { height: 38px; padding: 0 10px; border: 1px solid #CFCCC1; border-radius: 10px; background: #FFFFFF; font: inherit; font-size: 13px; color: #17231D; }
.vd-rel-intervalo .vd-btn { min-height: 38px; }
.vd-rel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.vd-rel-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid #E4E2DA; border-radius: 16px; background: #FFFFFF; min-width: 0; }
.vd-rel-kpi small { font-size: 13px; font-weight: 600; color: #5D6A63; }
.vd-rel-kpi strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.vd-rel-kpi span { font-size: 12.5px; color: #5D6A63; }
.vd-rel-kpi.is-destaque { border-color: #A8D5BE; background: #F0F8F4; }
.vd-rel-kpi.is-destaque strong { color: #0B4F38; }
.vd-rel-grafico { display: flex; align-items: stretch; gap: 6px; height: 200px; padding-top: 8px; overflow-x: auto; }
.vd-rel-barra { flex: 1 0 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 28px; }
.vd-rel-barra-valor { display: block; width: 100%; max-width: 40px; border-radius: 6px 6px 2px 2px; background: #0B6B4B; transition: background .15s; }
.vd-rel-barra:hover .vd-rel-barra-valor { background: #09593E; }
.vd-rel-barra small { font-size: 10.5px; color: #5D6A63; white-space: nowrap; }
.vd-rel-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vd-rel-artigos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.vd-rel-artigo-linha { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.vd-rel-artigo-linha span { min-width: 0; overflow-wrap: anywhere; }
.vd-rel-artigo-barra { height: 6px; margin: 6px 0 4px; border-radius: 3px; background: #EFEDE6; overflow: hidden; }
.vd-rel-artigo-barra span { display: block; height: 100%; border-radius: 3px; background: #00A884; }
.vd-rel-artigos small { font-size: 12px; color: #5D6A63; }
.vd-rel-pct { margin-left: 6px; font-size: 12px; font-weight: 600; color: #5D6A63; }
.vd-rel-tabela { display: flex; flex-direction: column; border: 1px solid #E4E2DA; border-radius: 12px; overflow: hidden; }
.vd-rel-tr { display: grid; grid-template-columns: 110px 150px minmax(120px, 1fr) minmax(120px, 0.8fr) 120px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid #EFEDE6; font-size: 13.5px; color: #17231D; text-decoration: none; }
.vd-rel-tr:first-child { border-top: 0; }
a.vd-rel-tr:hover { background: #F6F8F7; }
.vd-rel-tr.is-cabecalho { background: #F6F8F7; font-size: 12px; font-weight: 700; color: #5D6A63; }
.vd-rel-tr .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.vd-rel-tr span { min-width: 0; overflow-wrap: anywhere; }
.vd-rel-vazio { padding: 24px; border-radius: 12px; background: #F6F8F7; text-align: center; font-size: 14px; color: #5D6A63; }
@media (max-width: 900px) {
  .mn[data-rel] { padding: 20px 16px 40px; }
  .vd-rel-duas { grid-template-columns: minmax(0, 1fr); }
  .vd-rel-intervalo { margin-left: 0; }
  .vd-rel-tr { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .vd-rel-tr.is-cabecalho { display: none; }
  .vd-rel-tr span:nth-child(2), .vd-rel-tr span:nth-child(3), .vd-rel-tr span:nth-child(4) { grid-column: 1; font-size: 12.5px; color: #5D6A63; }
  .vd-rel-tr span:nth-child(5) { grid-column: 2; grid-row: 1; }
}
.vd-rel-barra.is-vazio .vd-rel-barra-valor { background: #E4E2DA; }
.vd-rel-grafico .vd-rel-barra:nth-child(n) small { overflow: hidden; }

/* ---------------------------------------------------------------- Visão geral: vendas e funil */
.vg-graficos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.vg-cartao { min-width: 0; box-sizing: border-box; background: #FFFFFF; border: 1px solid #E4E2DA; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.vg-cartao h2 { margin: 0; font-size: 16px; font-weight: 800; }
.vg-cartao-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.vg-cartao-topo span { font-size: 13px; color: #5D6A63; }
.vg-barras { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, 1.5vw, 14px); height: 220px; }
.vg-barra { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vg-barra-valor { min-height: 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; line-height: 1.1; font-size: 11.5px; color: #17231D; white-space: nowrap; max-width: 100%; }
.vg-barra-valor b { font-weight: 800; }
.vg-barra-valor small { font-size: 10px; color: #5D6A63; }
.vg-barra-trilho { flex: 1; width: 100%; max-width: 52px; display: flex; align-items: flex-end; border-radius: 8px 8px 0 0; background: #F4F2EC; }
.vg-barra-cheia { display: block; width: 100%; border-radius: 8px 8px 0 0; background: #A9CDBB; transition: height .2s ease; }
.vg-barra.is-hoje .vg-barra-cheia { background: #0B6B4B; }
.vg-barra-dia { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #5D6A63; line-height: 1.2; }
.vg-barra-dia small { font-size: 10.5px; color: #8A958F; }
.vg-barra.is-hoje .vg-barra-dia { color: #0B6B4B; font-weight: 800; }
.vg-passo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vg-passo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.vg-passo-rotulo { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.vg-passo-valor { flex: 0 0 auto; font-weight: 800; }
.vg-passo-valor small { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: #5D6A63; }
.vg-passo-trilho { height: 10px; border-radius: 6px; background: #ECEAE2; overflow: hidden; }
.vg-passo-trilho span { display: block; height: 100%; max-width: 100%; border-radius: 6px; }
.vg-nota { font-size: 12px; color: #5D6A63; }
@media (max-width: 900px) {
  .vg-graficos { grid-template-columns: minmax(0, 1fr); }
  .vg-barras { height: 180px; }
  .vg-cartao { padding: 18px 16px; }
}
@media (max-width: 420px) {
  .vg-barra-valor { font-size: 10px; }
}
.comunicado-link { font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* Páginas de entrada no telemóvel */
@media (max-width: 520px) {
  .auth-body { padding: 76px 14px 28px; gap: 16px; }
  .auth-topo { padding: 14px 16px; }
  .auth-topo-marca span { display: none; }
  .auth-topo-voltar { font-size: 13px; padding: 0 12px; }
}

/* ---------------------------------------------------------------- Painel lateral de notificações */
.ntf-fundo { position: fixed; inset: 0; z-index: 900; background: rgba(9, 22, 17, 0.42); opacity: 0; transition: opacity .18s ease; }
.ntf-fundo.is-aberto { opacity: 1; }
.ntf-painel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 901; width: min(400px, 100vw); display: flex; flex-direction: column; background: linear-gradient(180deg, #FBFAF7 0%, #F3F6F9 100%); border-right: 1px solid #E4E2DA; box-shadow: 18px 0 40px rgba(9, 22, 17, 0.18); transform: translateX(-16px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.ntf-painel.is-aberto { transform: none; opacity: 1; }
.ntf-painel[hidden], .ntf-fundo[hidden] { display: none; }
.ntf-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px 14px; }
.ntf-topo h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: #111B21; }
.ntf-acoes { display: flex; gap: 6px; }
.ntf-botao { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #CFCCC1; border-radius: 9px; background: #FFFFFF; color: #2B3631; cursor: pointer; text-decoration: none; }
.ntf-botao:hover { border-color: #0B6B4B; color: #0B6B4B; }
.ntf-botao.is-ativo { border-color: #0B6B4B; background: #E3F1EA; color: #0B6B4B; }
.ntf-botao:disabled { opacity: .5; cursor: wait; }
.ntf-conteudo { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 16px; display: flex; flex-direction: column; }
.ntf-painel.is-a-carregar .ntf-conteudo { opacity: .6; }
.ntf-a-carregar { padding: 32px; text-align: center; color: #5D6A63; font-size: 14px; }
.ntf-filtro { display: flex; gap: 6px; padding: 0 8px 10px; }
.ntf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #E4E2DA; border-radius: 999px; background: #FFFFFF; color: #3F4A44; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ntf-chip.is-ativo { border-color: #0B6B4B; background: #E3F1EA; color: #0B6B4B; }
.ntf-chip span { padding: 0 6px; border-radius: 999px; background: #0B6B4B; color: #FFFFFF; font-size: 11px; line-height: 17px; }
.ntf-vazio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 22px 28px; text-align: center; }
.ntf-vazio-sino { margin-bottom: 6px; }
.ntf-vazio strong { font-size: 16px; color: #111B21; }
.ntf-vazio span { font-size: 13.5px; line-height: 1.5; color: #5D6A63; }
.ntf-vazio .vd-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.ntf-lista { display: flex; flex-direction: column; }
.ntf-grupo { padding: 12px 8px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5D6A63; }
.ntf-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.ntf-item:hover { background: #FFFFFF; box-shadow: 0 1px 0 #EFEDE6; }
.ntf-item.is-nova { background: rgba(0, 168, 132, 0.08); }
.ntf-item.is-nova:hover { background: rgba(0, 168, 132, 0.13); }
.ntf-icone { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ECEAE2; color: #3F4A44; }
.ntf-icone.is-encomendas { background: #E3F1EA; color: #0B6B4B; }
.ntf-icone.is-pagamentos { background: #FFF1DB; color: #B26A00; }
.ntf-icone.is-mensagens { background: #E4ECFA; color: #1F4E9E; }
.ntf-icone.is-stock { background: #FBE6E4; color: #A12A2A; }
.ntf-icone.is-lojas { background: #ECE6F8; color: #5B3FA0; }
.ntf-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-titulo { font-size: 13.5px; font-weight: 600; color: #2B3631; overflow-wrap: anywhere; }
.ntf-item.is-nova .ntf-titulo { font-weight: 800; color: #111B21; }
.ntf-mensagem { font-size: 12.5px; line-height: 1.4; color: #5D6A63; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ntf-meta { font-size: 11.5px; color: #8A958F; }
.ntf-item.is-nova .ntf-meta time { color: #0B6B4B; font-weight: 700; }
.ntf-ponto { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #0B6B4B; }
.ntf-ver-todas { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 8px 0; padding: 10px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E4E2DA; color: #0B6B4B; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.ntf-ver-todas:hover { border-color: #0B6B4B; }
html.ntf-aberto { overflow: hidden; }
@media (max-width: 860px) {
  .ntf-painel { width: 100vw; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ntf-painel, .ntf-fundo { transition: none; }
}

/* Ícones do menu: traço uniforme, um pouco mais claros quando inativos */
.sb-link-icon { stroke-width: 1.8; }
.sb-link:hover .sb-link-icon { opacity: 1; }

/* ============================================================================
 * MODELOS DE MENSAGEM E WHATSAPP FLOWS
 * ============================================================================ */
.mn[data-mdl] {
  flex: 999 1 560px;
  min-width: 0;
  box-sizing: border-box;
  padding: 32px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mdl-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.mdl-topo p { margin: 4px 0 0; font-size: 14px; color: var(--vendra-muted); max-width: 720px; line-height: 1.5; }
.mn[data-mdl] .vd-aviso { display: flex; gap: 10px; align-items: flex-start; }
.mn[data-mdl] .vd-aviso svg { flex: 0 0 auto; margin-top: 1px; }
.mdl-rec-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mdl-rec-lista li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px dashed var(--vendra-border); border-radius: 12px; font-size: 13px; }
.mdl-rec-lista span { color: var(--vendra-muted); }
.mdl-rec-lista code, .mdl-item-meta code { font-size: 12px; color: #3F4A44; background: #F1F0EA; padding: 1px 6px; border-radius: 6px; width: fit-content; }
.mdl-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.mdl-barra > form { margin: 0; }
.mdl-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.mdl-item, .mdl-flow { gap: 12px; padding: 20px; }
.mdl-item-topo { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.mdl-item-nome { flex: 1 1 auto; min-width: 0; }
.mdl-item-nome h3 { margin: 0; font-size: 16px; font-weight: 800; }
.mdl-item-meta { margin-top: 4px; font-size: 12px; color: var(--vendra-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mdl-item-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--vendra-muted); }
.mdl-bolha { position: relative; padding: 10px 12px 8px; background: #E7F8DF; border-radius: 4px 12px 12px 12px; font-size: 14px; line-height: 1.45; color: #111B21; box-shadow: 0 1px 0 rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.mdl-bolha-corpo { white-space: pre-wrap; overflow-wrap: anywhere; }
.mdl-bolha-cab:empty, .mdl-bolha-rod:empty { display: none; }
.mdl-bolha-rod { color: #667781; font-size: 12px; }
.mdl-bolha-botoes { display: flex; flex-direction: column; margin: 6px -12px -8px; border-top: 1px solid rgba(0,0,0,.08); }
.mdl-bolha-botoes span { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 8px; color: #027EB5; font-weight: 600; font-size: 13px; }
.mdl-bolha-botoes span + span { border-top: 1px solid rgba(0,0,0,.08); }
.mdl-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mdl-acoes > form { margin: 0; }
.mdl-previa-rotulo { font-size: 12px; font-weight: 700; color: var(--vendra-muted); }
.mdl-exemplos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mdl-exemplos [hidden] { display: none; }
.mdl-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.mdl-flow-icone { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #E3F1EA; color: var(--vendra-emerald); }
.mdl-flow-desc { margin: 0; font-size: 13px; line-height: 1.5; color: #3F4A44; }
.mdl-flow-enviar { display: flex; gap: 8px; align-items: flex-end; margin: 0; padding-top: 12px; border-top: 1px solid var(--vendra-border); }
.mdl-flow-enviar .vd-campo { flex: 1 1 auto; min-width: 0; }
.mdl-respostas { display: flex; flex-direction: column; }
.mdl-resposta { padding: 12px 0; border-top: 1px solid #EFEDE6; display: flex; flex-direction: column; gap: 8px; }
.mdl-resposta:first-child { border-top: 0; padding-top: 0; }
.mdl-resposta-topo { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.mdl-resposta-topo span { font-size: 12px; color: var(--vendra-muted); }
.mdl-resposta dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.mdl-resposta dt { font-size: 11px; font-weight: 700; color: var(--vendra-muted); text-transform: uppercase; letter-spacing: .04em; }
.mdl-resposta dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .mn[data-mdl] { padding: 20px 16px 40px; }
  .mdl-topo h1 { font-size: 23px; }
}

/* ---- Assistentes passo a passo (modelos e Flows) ---- */
.ast-voltar { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 700; }
.ast-seta-voltar { transform: rotate(180deg); }
.ast { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.ast-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ast-passo-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--vendra-border); border-radius: 12px; background: var(--vendra-card); color: var(--vendra-muted); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.ast-num { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ECEAE2; color: var(--vendra-muted); font-size: 12px; }
.ast-passo-btn[aria-current="step"] { border-color: var(--vendra-emerald); color: var(--vendra-text); box-shadow: 0 0 0 3px rgba(11, 107, 75, .12); }
.ast-passo-btn[aria-current="step"] .ast-num { background: var(--vendra-emerald); color: #fff; }
.ast-passo-btn.is-feito .ast-num { background: #E3F1EA; color: var(--vendra-emerald); }
.ast-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ast-grelha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ast-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ast-passo { gap: 14px; }
.ast-passo[hidden] { display: none; }
small[data-ast-contar] { float: right; font-weight: 600; color: var(--vendra-muted); }
small[data-ast-contar].is-excesso { color: #A12A2A; }
.ast-cartoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ast-cartao { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 40px; border: 1px solid var(--vendra-border); border-radius: 12px; cursor: pointer; font-size: 13px; line-height: 1.45; }
.ast-cartao input { position: absolute; left: 14px; top: 16px; accent-color: var(--vendra-emerald); }
.ast-cartao span { color: var(--vendra-muted); }
.ast-cartao:has(input:checked) { border-color: var(--vendra-emerald); background: #F3FAF6; }
.ast-cartao.is-desligado { opacity: .55; cursor: not-allowed; }
.ast-barra-texto { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ast-vazio { padding: 14px; border: 1px dashed var(--vendra-border); border-radius: 12px; font-size: 13px; color: var(--vendra-muted); }
.ast-vazio[hidden], .ast-erros[hidden], .ast-aviso[hidden], .ast-nav [hidden], .ast-botao [hidden], .mdl-exemplos [hidden] { display: none; }
.ast-botoes { display: flex; flex-direction: column; gap: 8px; }
.ast-botao { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; }
.ast-botao [data-b-remover] { grid-column: 4; justify-self: end; }
.ast-botao select, .ast-botao input { min-height: 42px; padding: 0 10px; border: 1px solid var(--vendra-border); border-radius: 10px; font: inherit; font-size: 13px; background: #fff; min-width: 0; }
.ast-erros { margin: 0; padding: 12px 12px 12px 32px; border-radius: 12px; background: #FBE6E4; color: #A12A2A; font-size: 13px; line-height: 1.5; }
.ast-json { border: 1px solid var(--vendra-border); border-radius: 12px; overflow: hidden; }
.ast-json summary { padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 700; background: #F7F6F1; }
.ast-json summary code, .ast-campo-topo code, .vd-card-sub code { font-size: 12px; background: #EFEDE6; padding: 1px 6px; border-radius: 6px; }
.ast-json pre { margin: 0; padding: 12px 14px; max-height: 360px; overflow: auto; font-size: 12px; line-height: 1.5; background: #0F1D17; color: #CFE8DC; white-space: pre; }
.ast-nav { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; background: linear-gradient(180deg, rgba(244, 243, 238, 0), var(--vendra-surface) 30%); }
.ast-nav-espaco { flex: 1 1 auto; }
.ast-grupo { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.ast-grupo legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ast-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.ast-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--vendra-border); border-radius: 999px; font-size: 13px; cursor: pointer; }
.ast-chip:has(input:checked) { border-color: var(--vendra-emerald); background: #F3FAF6; color: var(--vendra-emerald); font-weight: 700; }
.ast-chip input { accent-color: var(--vendra-emerald); }
.ast-campos { display: flex; flex-direction: column; gap: 10px; }
.ast-campo { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--vendra-border); border-radius: 12px; }
.ast-campo.is-desligado { background: #F7F6F1; }
.ast-campo.is-desligado > :not(.ast-campo-topo) { opacity: .5; }
.ast-campo-topo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.ast-campo-topo .ast-interruptor { margin-left: auto; }
.ast-interruptor { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; width: fit-content; }
.ast-interruptor input { accent-color: var(--vendra-emerald); width: 16px; height: 16px; }
/* Pré-visualização: telemóvel */
.ast-previa { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ast-telefone { border-radius: 26px; border: 8px solid #1B1F1D; background: #EFEAE2; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.ast-telefone[hidden] { display: none; }
.ast-tel-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075E54; color: #fff; font-size: 14px; }
.ast-tel-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-weight: 800; }
.ast-tel-conversa { flex: 1 1 auto; padding: 16px 12px; background-color: #EFEAE2; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; }
.ast-tel-conversa .mdl-bolha { max-width: 100%; background: #fff; border-radius: 0 10px 10px 10px; }
.ast-hora { align-self: flex-end; font-size: 11px; color: #667781; margin-top: -2px; }
.ast-p-mais { color: #027EB5; }
.mdl-bolha-botoes:empty { display: none; }
[data-p-cta-abrir] { cursor: pointer; }
.ast-previa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #ECEAE2; }
.ast-previa-tabs button { min-height: 34px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--vendra-muted); cursor: pointer; }
.ast-previa-tabs button[aria-selected="true"] { background: #fff; color: var(--vendra-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ast-tel-flow { background: #fff; }
.ast-flow-topo { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid #EEE; font-size: 15px; }
.ast-flow-topo strong { flex: 1 1 auto; text-align: center; }
.ast-flow-corpo { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow: auto; max-height: 460px; }
.ast-f-sub { margin: 0; font-size: 16px; font-weight: 700; color: #111B21; }
.ast-f-texto { margin: 0; font-size: 14px; color: #3B4A54; line-height: 1.45; white-space: pre-wrap; }
.ast-f-campo { display: flex; flex-direction: column; gap: 6px; }
.ast-f-entrada { padding: 14px 12px; border: 1px solid #C8CDD0; border-radius: 8px; font-size: 14px; color: #667781; }
.ast-f-entrada.is-area { min-height: 64px; }
.ast-f-entrada.is-lista { position: relative; }
.ast-f-entrada.is-lista::after { content: '▾'; position: absolute; right: 12px; }
.ast-f-ajuda { font-size: 12px; color: #667781; padding-left: 2px; }
.ast-f-grupo { font-size: 14px; font-weight: 700; color: #111B21; }
.ast-f-opcao { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #111B21; padding: 4px 0; }
.ast-f-opcao.is-optin { align-items: flex-start; }
.ast-f-radio, .ast-f-check { flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid #8696A0; border-radius: 50%; }
.ast-f-check { border-radius: 4px; }
.ast-flow-rodape { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 12px 16px 16px; border-top: 1px solid #EEE; }
.ast-flow-botao { width: 100%; padding: 12px; border-radius: 22px; background: #008069; color: #fff; text-align: center; font-weight: 700; font-size: 14px; }
.ast-flow-rodape small { font-size: 11px; color: #667781; }
@media (max-width: 1100px) {
  .ast-grelha { grid-template-columns: 1fr; }
  .ast-previa { position: static; order: -1; max-width: 380px; width: 100%; margin: 0 auto; }
  .ast-telefone { min-height: 0; }
}
@media (max-width: 860px) {
  .ast-passos { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .ast-passo-btn { padding: 8px; }
  .ast-passo-btn:not([aria-current="step"]) .ast-nome { display: none; }
  .ast-cartoes { grid-template-columns: 1fr; }
  .ast-botao { grid-template-columns: minmax(0, 1fr) auto; }
  .ast-botao select[data-b-tipo] { grid-column: 1 / -1; }
  .ast-botao [data-b-texto], .ast-botao [data-b-valor], .ast-botao [data-b-flow] { grid-column: 1; }
  .ast-botao [data-b-remover] { grid-column: 2; grid-row: 2; }
}
/* Pré-visualização real: teste no WhatsApp e pré-visualização oficial da Meta */
.ast-previa-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ast-real { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--vendra-border); border-radius: 14px; background: #FAFAF7; }
.ast-real-topo { display: flex; gap: 12px; align-items: flex-start; }
.ast-real-topo p { margin: 2px 0 0; }
.ast-real-envio { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ast-real-envio .vd-campo { flex: 1 1 220px; min-width: 0; }
[data-ast-teste-estado][hidden], .ast-meta[hidden], [data-meta-moldura][hidden], [data-meta-abrir][hidden], [data-meta-erros][hidden] { display: none; }
.ast-meta { display: flex; flex-direction: column; gap: 10px; }
.ast-meta-moldura { border-radius: 26px; border: 8px solid #1B1F1D; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.ast-meta-moldura iframe { display: block; width: 100%; height: 640px; border: 0; }
.ast-meta-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
/* Pré-visualização de um modelo ou Flow guardado */
.pv-topo { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.pv-topo h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pv-topo .mdl-acoes > form { margin: 0; }
.pv-grelha { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.pv-coluna { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-dados { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.pv-dados dt { font-size: 11px; font-weight: 700; color: var(--vendra-muted); text-transform: uppercase; letter-spacing: .04em; }
.pv-dados dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.pv-sub { margin: 6px 0 0; font-size: 14px; font-weight: 800; }
.pv-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.pv-tabela th { text-align: left; font-size: 12px; color: var(--vendra-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--vendra-border); }
.pv-tabela td { padding: 9px 10px; border-bottom: 1px solid #EFEDE6; vertical-align: top; overflow-wrap: anywhere; }
.pv-tabela code { font-size: 12px; background: #EFEDE6; padding: 1px 6px; border-radius: 6px; }
.pv-dia { align-self: center; width: fit-content; margin: 0 auto 10px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .9); font-size: 11px; color: #54656F; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.pv-previa .mdl-bolha-corpo code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
[data-pv-painel][hidden] { display: none; }
[data-pv-ir] { cursor: pointer; }
@media (max-width: 1100px) {
  .pv-grelha { grid-template-columns: 1fr; }
  .pv-previa { position: static; order: -1; max-width: 380px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) { .pv-tabela { display: block; overflow-x: auto; } }
/* ---- Anúncios Click-to-WhatsApp ---- */
.an-permissoes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; font-size: 13px; }
.an-permissoes li { display: flex; gap: 8px; align-items: baseline; }
.an-permissoes li > span { font-weight: 800; width: 14px; }
.an-permissoes .is-ok > span { color: var(--vendra-emerald); }
.an-permissoes .is-falta > span { color: #A12A2A; }
.an-permissoes .is-opcional > span { color: var(--vendra-muted); }
.an-permissoes code { font-size: 12px; background: #EFEDE6; padding: 1px 6px; border-radius: 6px; }
.an-resumo { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.an-mini { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #F7F6F1; font-size: 13px; }
.an-mini img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.an-mini div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-mini span { color: var(--vendra-muted); }
.an-objetivo { grid-template-columns: 1fr; }
.an-locais { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.an-local { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #E3F1EA; color: var(--vendra-emerald); font-size: 13px; font-weight: 700; }
.an-local small { font-weight: 500; color: #3F6B58; }
.an-local select { border: 0; background: transparent; font: inherit; font-size: 12px; color: inherit; }
.an-local button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; }
.an-locais-vazio { font-size: 13px; color: var(--vendra-muted); padding: 6px 0; }
.an-locais-vazio[hidden], .an-resultados[hidden] { display: none; }
.an-resultados { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--vendra-border); border-radius: 12px; background: #fff; max-height: 240px; overflow: auto; }
.an-resultados button { width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.an-resultados button:hover { background: #F3FAF6; }
.an-resultados-erro { padding: 8px 10px; font-size: 13px; color: var(--vendra-muted); }
.an-imagens { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.an-imagem { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #F1F0EA; cursor: pointer; display: grid; place-items: center; color: var(--vendra-muted); }
.an-imagem img { width: 100%; height: 100%; object-fit: cover; }
.an-imagem.is-escolhida { border-color: var(--vendra-emerald); box-shadow: 0 0 0 3px rgba(11, 107, 75, .15); }
.an-carregar { border: 2px dashed var(--vendra-border); display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; font-size: 12px; }
.an-orcamento { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.an-orcamento .vd-campo { flex: 1 1 200px; }
/* Anúncio no feed (pré-visualização local) */
.an-feed { border: 1px solid #DADDE1; border-radius: 12px; background: #fff; overflow: hidden; font-family: Helvetica, Arial, sans-serif; color: #050505; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.an-feed[hidden] { display: none; }
.an-feed-topo { display: flex; gap: 10px; align-items: center; padding: 12px; }
.an-avatar { background: var(--vendra-emerald); color: #fff; }
.an-feed-topo div { display: flex; flex-direction: column; }
.an-feed-topo strong { font-size: 14px; }
.an-feed-topo small { font-size: 12px; color: #65676B; }
.an-feed-texto { padding: 0 12px 10px; font-size: 14px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.an-feed-imagem { aspect-ratio: 1; background: #F0F2F5; display: grid; place-items: center; color: #65676B; font-size: 13px; }
.an-feed-imagem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-feed-rodape { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; background: #F0F2F5; }
.an-feed-rodape div { display: flex; flex-direction: column; min-width: 0; }
.an-feed-rodape small { font-size: 11px; color: #65676B; }
.an-feed-rodape strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-feed-rodape span { font-size: 13px; color: #65676B; }
.an-feed-cta { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 6px; background: #E4E6EB; color: #050505 !important; font-weight: 700; font-size: 14px !important; }
/* Conversa que o anúncio abre */
.an-wa { display: flex; flex-direction: column; gap: 10px; }
.an-wa-anuncio { align-self: flex-end; max-width: 85%; padding: 8px 10px; border-radius: 10px; background: #D9FDD3; font-size: 13px; display: flex; flex-direction: column; border-left: 3px solid #06CF9C; }
.an-wa-anuncio small { color: #667781; font-size: 11px; }
.an-wa-boas[hidden] { display: none; }
.an-wa-escrever { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 22px; background: #fff; font-size: 14px; }
.an-wa-escrever span:first-child { flex: 1 1 auto; }
.an-wa-enviar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #00A884; color: #fff; }
.an-meta-moldura iframe { height: 560px; }
/* ---- Copiloto de anúncios: assistente */
.an-objetivos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.an-obj { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px; border: 1px solid var(--vendra-border); border-radius: 14px; cursor: pointer; background: #fff; }
.an-obj input { position: absolute; opacity: 0; pointer-events: none; }
.an-obj-icone { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F1F0EA; color: var(--vendra-emerald); }
.an-obj strong { font-size: 14px; }
.an-obj small { font-size: 12.5px; color: var(--vendra-muted); line-height: 1.4; }
.an-obj:has(input:checked) { border-color: var(--vendra-emerald); background: #F3FAF6; box-shadow: 0 0 0 3px rgba(11, 107, 75, .12); }
.an-obj:has(input:checked) .an-obj-icone { background: var(--vendra-emerald); color: #fff; }
.an-obj:has(input:focus-visible) { outline: 2px solid var(--vendra-emerald); outline-offset: 2px; }
.an-porque { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: #F7F6F1; font-size: 13px; }
.an-porque ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.an-porque li { display: flex; gap: 8px; align-items: flex-start; color: var(--vendra-muted); }
.an-porque li svg { flex: 0 0 auto; color: var(--vendra-emerald); margin-top: 1px; }
.an-filtro { width: 100%; margin-bottom: 10px; }
.an-filtro[hidden], .an-produtos[hidden] { display: none; }
.an-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.an-prod { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 2px solid var(--vendra-border); border-radius: 14px; background: #fff; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.an-prod[hidden] { display: none; }
.an-prod:disabled { opacity: .5; cursor: not-allowed; }
.an-prod.is-escolhido { border-color: var(--vendra-emerald); box-shadow: 0 0 0 3px rgba(11, 107, 75, .15); }
.an-prod-foto { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F1F0EA; display: grid; place-items: center; color: var(--vendra-muted); }
.an-prod-foto img { width: 100%; height: 100%; object-fit: cover; }
.an-prod-nome { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-prod-preco { font-size: 13px; color: var(--vendra-emerald); font-weight: 800; }
.an-prod-preco s { color: var(--vendra-muted); font-weight: 500; font-size: 12px; }
.an-prod small { font-size: 11.5px; color: var(--vendra-muted); }
.an-selos { display: flex; flex-wrap: wrap; gap: 4px; }
.an-selos .vd-etiqueta { font-size: 10.5px; padding: 2px 7px; }
.an-sugestoes-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-sugestoes-topo strong { display: inline-flex; gap: 6px; align-items: center; }
.an-sugestoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 18px; }
.an-sugestoes > .vd-vazio { grid-column: 1 / -1; }
.an-sug { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--vendra-border); border-radius: 12px; background: #FCFBF8; }
.an-sug-topo { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.an-sug-topo small { color: var(--vendra-muted); font-size: 11.5px; }
.an-sug-texto { margin: 0; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.an-sug-titulo { font-size: 12.5px; color: var(--vendra-muted); }
.an-sug-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.an-sug-acoes .vd-btn { padding: 6px 10px; font-size: 12.5px; }
.an-sub { margin: 18px 0 8px; font-size: 14px; }
.an-variacoes { display: grid; gap: 10px; margin: 10px 0; }
.an-variacao { margin: 0; padding: 12px 14px; border: 1px dashed var(--vendra-border); border-radius: 12px; }
.an-variacao legend { padding: 0 6px; font-weight: 800; font-size: 13px; }
.an-variacao legend .vd-link { margin-left: 8px; font-size: 12px; font-weight: 600; border: 0; background: none; cursor: pointer; }
[data-an-nova-variacao][hidden] { display: none; }
.an-sugeridos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.an-sugeridos > span { display: inline-flex; gap: 6px; align-items: center; color: var(--vendra-muted); width: 100%; }
.an-sugeridos .ast-chip { background: #fff; font: inherit; font-size: 13px; }
.an-sugeridos .ast-chip[hidden] { display: none; }
[data-an-aviso-zonas] { margin-top: 8px; }
[data-an-aviso-zonas][hidden], [data-an-prev-minimo][hidden] { display: none; }
.an-propostas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.an-proposta { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--vendra-border); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.an-proposta strong { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.an-proposta small { font-size: 12px; color: var(--vendra-muted); line-height: 1.4; }
.an-proposta-valor { font-weight: 800; color: var(--vendra-emerald); font-size: 13px; }
.an-proposta.is-destaque { border-color: #B9DCCB; }
.an-proposta.is-escolhida { border-color: var(--vendra-emerald); background: #F3FAF6; box-shadow: 0 0 0 3px rgba(11, 107, 75, .12); }
.an-previsao { margin-top: 16px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #F3FAF6, #fff); border: 1px solid #CFE6DA; }
.an-previsao-topo { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.an-previsao-topo small { color: var(--vendra-muted); }
.an-previsao-grelha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.an-previsao-grelha div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--vendra-border); min-width: 0; }
.an-previsao-grelha span { font-size: 12px; color: var(--vendra-muted); }
.an-previsao-grelha strong { font-size: 15px; overflow-wrap: anywhere; }
.an-guarda { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #F7F6F1; font-size: 13px; }
.an-guarda > strong { display: inline-flex; gap: 6px; align-items: center; }
.an-nota-bloco { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.an-nota { --cor: var(--vendra-emerald); flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--cor) calc(var(--nota) * 1%), #ECEAE3 0); }
.an-nota strong { font-size: 28px; line-height: 1; }
.an-nota small { font-size: 11px; color: var(--vendra-muted); }
.an-nota.is-ambar, .an-nota-mini.is-ambar { --cor: #C27700; }
.an-nota.is-vermelho, .an-nota-mini.is-vermelho { --cor: #C0392B; }
.an-nota-nivel { font-size: 18px; }
.an-nota-bloco p { margin: 4px 0 0; }
.an-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.an-checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #F7F6F1; font-size: 13px; }
.an-checklist li div { display: flex; flex-direction: column; gap: 2px; }
.an-checklist small { color: var(--vendra-muted); line-height: 1.4; }
.an-check-marca { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: var(--vendra-emerald); }
.an-checklist .is-parcial .an-check-marca { background: #C27700; }
.an-checklist .is-falta .an-check-marca { background: #C0392B; }
.an-checklist .is-falta { background: #FBEFEE; }
.an-tecnico > summary { font-weight: 700; }
.an-tecnico .ast-json { margin-left: 8px; }
.an-nota-mini { --cor: var(--vendra-emerald); display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--vendra-border); background: #fff; font-size: 13px; }
.an-nota-mini[hidden] { display: none; }
.an-nota-mini strong { font-size: 20px; color: var(--cor); }
.an-nota-mini small { color: var(--cor); font-weight: 700; }
.an-versoes { display: flex; gap: 6px; margin-bottom: 8px; }
.an-versoes[hidden] { display: none; }
.an-versoes .ast-chip { background: #fff; font: inherit; font-size: 12.5px; padding: 6px 10px; }
.an-versoes .ast-chip.is-ativa { border-color: var(--vendra-emerald); background: #F3FAF6; color: var(--vendra-emerald); font-weight: 700; }
.an-wa-produto { display: flex; flex-direction: column; gap: 4px; max-width: 75%; }
.an-wa-produto[hidden] { display: none; }
.an-wa-produto-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.an-wa-produto small { color: #667781; font-size: 11px; }
/* ---- Copiloto de anúncios: campanha publicada */
.an-recos { display: grid; gap: 8px; }
.an-reco { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border-left: 4px solid #8FA39A; background: #F7F6F1; font-size: 13px; }
.an-reco > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.an-reco p { margin: 0; color: var(--vendra-muted); line-height: 1.45; }
.an-reco form { flex: 0 0 auto; }
.an-reco.is-bom { border-left-color: var(--vendra-emerald); background: #F3FAF6; }
.an-reco.is-atencao { border-left-color: #C27700; background: #FDF6EA; }
.an-reco.is-mau { border-left-color: #C0392B; background: #FBEFEE; }
.an-reco.is-info { border-left-color: #1F4E9E; background: #EEF3FC; }
.an-variantes td small { display: block; color: var(--vendra-muted); }
@media (max-width: 900px) {
  .an-objetivos, .an-sugestoes, .an-propostas { grid-template-columns: 1fr; }
  .an-previsao-grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-reco { flex-direction: column; }
}
.an-etiquetas { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Novidades: tutorial passo a passo */
.nov-fundo { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(11, 34, 26, .55); }
.nov-caixa { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); outline: none; }
.nov-fechar { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F1F0EA; color: var(--vendra-text); cursor: pointer; }
.nov-topo h2 { margin: 10px 0 4px; font-size: 21px; padding-right: 36px; }
.nov-topo p { margin: 0 0 18px; color: var(--vendra-muted); font-size: 14px; line-height: 1.5; }
.nov-passo { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #F3FAF6; min-height: 150px; }
.nov-passo[hidden] { display: none; }
.nov-icone { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--vendra-emerald); color: #fff; }
.nov-passo small { color: var(--vendra-emerald); font-weight: 700; font-size: 12px; }
.nov-passo h3 { margin: 2px 0 6px; font-size: 16px; }
.nov-passo p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--vendra-text); }
.nov-pontos { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.nov-pontos span { width: 8px; height: 8px; border-radius: 50%; background: #DAD8CF; transition: width .2s; }
.nov-pontos span.is-atual { width: 22px; border-radius: 999px; background: var(--vendra-emerald); }
.nov-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.nov-acoes .vd-link { font-size: 13px; }
.nov-espaco { flex: 1 1 auto; }
.nov-acoes [hidden] { display: none; }
@media (max-width: 560px) {
  .nov-caixa { padding: 20px 16px; }
  .nov-passo { flex-direction: column; }
  .nov-acoes .vd-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Anúncios: otimização, horário inteligente e travão */
.an-avancado { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--vendra-border); }
.an-otimizar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an-otimizar .ast-cartao strong { display: flex; gap: 6px; align-items: center; }
.an-horario { margin: 8px 0 4px; display: grid; gap: 10px; }
.an-horario[hidden], [data-an-travao][hidden] { display: none; }
.an-horas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.an-hora { --atividade: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 44px; border-radius: 8px; border: 1px solid var(--vendra-border); cursor: pointer; font-size: 12px; font-weight: 700; background: rgba(11, 107, 75, calc(var(--atividade) * .18)); color: var(--vendra-muted); }
.an-hora input { position: absolute; opacity: 0; pointer-events: none; }
.an-hora small { font-size: 9.5px; font-weight: 600; color: #7A8580; line-height: 1; }
.an-hora:has(input:checked) { background: var(--vendra-emerald); border-color: var(--vendra-emerald); color: #fff; }
.an-hora:has(input:checked) small { color: #CDE7DB; }
.an-hora:has(input:focus-visible) { outline: 2px solid var(--vendra-emerald); outline-offset: 2px; }
.an-hora.is-dormir:not(:has(input:checked)) { background: #EEEDE8; }
.an-zz { display: inline-block; padding: 0 4px; border-radius: 4px; background: #EEEDE8; font-size: 11px; font-weight: 700; }
.an-horario-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-horario-acoes small { color: var(--vendra-muted); }
@media (max-width: 900px) {
  .an-otimizar { grid-template-columns: 1fr; }
  .an-horas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- Anúncios: zonas de entrega no público */
.an-entregas { display: grid; gap: 8px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #F3FAF6; border: 1px solid #CFE6DA; }
.an-entregas-topo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; }
.an-entregas-topo span { display: inline-flex; gap: 6px; align-items: center; }
.an-entregas-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.an-entregas-lista small { color: var(--vendra-muted); }
.an-entregas-lista .ast-chip { background: #fff; font: inherit; font-size: 13px; }
.an-entregas-lista .ast-chip.is-sem-local { border-style: dashed; color: var(--vendra-muted); }
.an-local.is-fora { background: #FBE6E4; color: #A12A2A; }
.an-local.is-fora small { color: #A12A2A; }
.an-local-fora { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #A12A2A; color: #fff; }
.an-resultados button.is-fora { color: #A12A2A; }
.an-foto-melhor { align-items: flex-start; margin-top: 10px; }
.an-foto-melhor[hidden], .an-preco-catalogo[hidden] { display: none; }
.an-foto-melhor > div { display: grid; gap: 6px; }
.an-foto-melhor-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.an-preco-catalogo { display: grid; gap: 4px; margin: 4px 0 12px; }

/* ---- Configurações › Entrega: locais da zona no mapa */
.zm-zona { flex: 1 1 320px; min-width: 0; }
.zm-mapa { display: grid; gap: 6px; margin-top: 8px; }
.zm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #E3F1EA; color: var(--vendra-emerald); font-size: 12.5px; font-weight: 700; }
.zm-chip small { font-weight: 500; color: #3F6B58; }
.zm-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; }
.zm-pesquisa input { width: 100%; max-width: 420px; }
.zm-pesquisa .an-resultados { max-width: 420px; }
.zm-estado { color: var(--vendra-muted); font-size: 12px; }
.an-publico { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #F7F6F1; font-size: 13px; font-weight: 600; }
.an-publico[hidden] { display: none; }
.an-publico.is-verde { background: #E3F1EA; color: #0B4F37; }
.an-publico.is-ambar { background: #FCEFD9; color: #8A4300; }
.an-publico.is-vermelho { background: #FBE6E4; color: #A12A2A; }

/* Confirmação de uma ação (não eliminação): verde */
#vendraConfirmModal.is-acao #vendraConfirmTitle { color: var(--vendra-emerald) !important; }
#vendraConfirmModal.is-acao .vendra-modal-head span { background: #E3F1EA !important; color: var(--vendra-emerald) !important; }
#vendraConfirmModal.is-acao #vendraConfirmAccept { background: var(--vendra-emerald) !important; }

/* ---- Casos de sucesso (Configurações › Loja) */
.cs-previa { display: grid; gap: 8px; margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: #F3FAF6; border: 1px solid #CFE6DA; font-size: 13px; }
.cs-previa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cs-previa li { display: flex; justify-content: space-between; gap: 12px; }
.cs-previa li span { color: var(--vendra-muted); }
.vd-pag-modo.is-em-breve { opacity: .6; cursor: not-allowed; }

/* ---- Entrar com o Facebook */
.auth-ou { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--vendra-muted); font-size: 13px; }
.auth-ou::before, .auth-ou::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--vendra-border); }
.auth-btn-facebook { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #1877F2; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; }
.auth-btn-facebook:hover { background: #166FE5; }
.auth-btn-facebook:focus-visible { outline: 3px solid #A9C9FB; outline-offset: 2px; }
.auth-nota-facebook { margin: 8px 0 0; font-size: 12.5px; color: var(--vendra-muted); text-align: center; }
.reg-facebook { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #EEF4FE; border: 1px solid #C9DCFB; font-size: 13.5px; }
.reg-facebook img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.reg-facebook strong { display: block; }
.reg-facebook-email { padding: 10px 12px; border-radius: 10px; background: #F7F6F1; font-weight: 700; }
.fb-onboarding { display: grid; gap: 10px; justify-items: start; border: 2px solid #C9DCFB; background: linear-gradient(180deg, #F4F8FF, #fff); }
.fb-onboarding p { margin: 0; color: var(--vendra-muted); line-height: 1.5; }

/* Logótipos oficiais (Facebook, Meta) junto ao texto */
.vd-marca { display: inline-block; vertical-align: -0.2em; flex: 0 0 auto; }
.vd-card-titulo .vd-marca, h3 .vd-marca { margin-right: 4px; }
.vd-btn-facebook, .auth-btn-facebook { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.auth-btn-facebook { display: flex; }
[data-p-vista] .vd-marca { vertical-align: -1px; }

/* Entrar com o Google: botão branco com o «G» nas cores oficiais (regras de marca do Google) */
.auth-btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 10px; padding: 0 18px; border-radius: 12px; background: #fff; color: #1F1F1F; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid #747775; }
.auth-btn-google:hover { background: #F7F8F8; }
.auth-btn-google:focus-visible { outline: 3px solid #A8C7FA; outline-offset: 2px; }
.vd-btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #1F1F1F; border: 1px solid #747775; }
.vd-btn-google:hover { background: #F7F8F8; }

/* Integrações: cada solução com a sua identidade (logótipo oficial num quadrado, nome, frase, estado) */
.vd-integracao-cabecalho { display: flex; align-items: flex-start; gap: 14px; }
.vd-integracao-texto { flex: 1 1 auto; min-width: 0; }
.vd-integracao-texto .vd-card-titulo { margin: 0; }
.vd-integracao-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--vendra-border); }
.vd-integracao-logo-whatsapp { background: #E9FBF0; border-color: #BDEFD0; }
.vd-integracao-logo-facebook { background: #EAF2FE; border-color: #C9DCFB; }
.vd-integracao-logo-meta { background: #E8F3FF; border-color: #C5E0FF; }
.vd-integracao-logo-google { background: #fff; border-color: #DADCE0; }
.vd-integracao { border-top: 3px solid var(--vendra-border); }
.vd-integracao-whatsapp { border-top-color: #25D366; }
.vd-integracao-facebook { border-top-color: #1877F2; }
.vd-integracao-meta { border-top-color: #0081FB; }
.vd-integracao-google { border-top-color: #4285F4; }
.vd-integracoes-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 4px; }
.vd-integracao-mosaico { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--vendra-border); color: inherit; text-decoration: none; }
.vd-integracao-mosaico:hover { border-color: #9DB3A8; }
.vd-integracao-mosaico:focus-visible { outline: 3px solid #A9C9FB; outline-offset: 2px; }
.vd-integracao-mosaico-texto { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-integracao-mosaico-texto strong { font-size: 14px; }
.vd-integracao-mosaico-texto span { font-size: 12.5px; color: var(--vendra-muted); }
.vd-integracao .vd-linha-valor code { word-break: break-all; }
.vd-integracao-cabecalho > .vd-etiqueta, .vd-integracao-mosaico > .vd-etiqueta { flex: 0 0 auto; white-space: nowrap; }

/* Assinatura (painel do lojista) */
.vd-assinatura-estado.is-sem { border-top: 3px solid #C2410C; }
.vd-assinatura-escolha { display: flex; flex-direction: column; gap: 20px; }
.vd-plano-opcao, .vd-duracao { position: relative; display: block; cursor: pointer; }
.vd-plano-opcao input, .vd-duracao input { position: absolute; opacity: 0; pointer-events: none; }
.vd-planos-opcoes { display: grid; grid-template-columns: repeat(var(--pl-n, 4), minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.vd-plano-corpo { display: flex; flex-direction: column; height: 100%; padding: 20px 18px 16px; border-radius: 18px; border: 1.5px solid #E4E2DA; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vd-plano-opcao:hover .vd-plano-corpo { border-color: #C9D3CE; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 32, 24, .07); }
.vd-plano-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 24px; }
.vd-plano-selos { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-plano-selo { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.vd-plano-selo.is-atual { background: #17231D; color: #fff; }
.vd-plano-selo.is-recomendado { background: #00D285; color: #062218; }
.vd-plano-selo.is-comeco { background: #FFF1E1; color: #9A4A00; }
.vd-plano-marca { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D5D1C5; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.vd-plano-nome { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.vd-plano-desc { margin-top: 4px; min-height: 4.2em; font-size: 13px; line-height: 1.4; color: var(--vendra-muted); }
.vd-plano-preco { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; white-space: nowrap; }
.vd-plano-preco b { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.vd-plano-preco small { padding-bottom: 2px; font-size: 11.5px; line-height: 1.15; font-weight: 600; color: var(--vendra-muted); }
.vd-plano-ano { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--vendra-muted); }
.vd-plano-ano em { padding: 2px 7px; border-radius: 999px; background: #E3F1EA; color: #0B6B4B; font-style: normal; font-weight: 800; font-size: 11px; }
.vd-plano-inclui { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEEBE3; }
.vd-plano-inclui > b { font-size: 12.5px; }
.vd-plano-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: #33413A; }
.vd-plano-item svg { flex: none; margin-top: 1px; padding: 3px; width: 18px; height: 18px; border-radius: 50%; background: #E3F1EA; color: #0B6B4B; }
.vd-plano-rodape { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #E4E2DA; font-size: 12px; color: var(--vendra-muted); }
.vd-plano-opcao.is-recomendado .vd-plano-corpo { border-color: #9ED8BE; background: linear-gradient(180deg, #F2FBF6, #fff 140px); }
.vd-plano-opcao input:checked + .vd-plano-corpo { border-color: #0B6B4B; box-shadow: 0 0 0 3px #CDEBDD; }
.vd-plano-opcao input:checked + .vd-plano-corpo .vd-plano-marca { background: #0B6B4B; border-color: #0B6B4B; color: #fff; }
.vd-duracao input:checked + span { border-color: #0B6B4B; box-shadow: 0 0 0 3px #CDEBDD; }
@media (max-width: 1200px) { .vd-planos-opcoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vd-planos-opcoes { grid-template-columns: minmax(0, 1fr); } .vd-plano-desc { min-height: 0; } }
.vd-plano-opcao input:focus-visible + .vd-plano-corpo, .vd-duracao input:focus-visible + span { outline: 3px solid #A9C9FB; outline-offset: 2px; }
.vd-duracoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vd-duracao > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--vendra-border); background: #fff; }
.vd-duracao > span small { color: #0B6B4B; font-weight: 600; }
.vd-cupao-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.vd-linha-total { border-top: 1px solid var(--vendra-border); padding-top: 10px; font-size: 16px; }
.vd-assinatura-resumo form { margin-top: 6px; }

/* Formulários por passos (administração: cupões e planos) */
.vd-passos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.vd-passos-form { gap: 18px; }
.vd-passos-barra { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 14px; list-style: none; border-bottom: 1px solid var(--vendra-border); }
.vd-passos-barra button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--vendra-border); background: #fff; color: var(--vendra-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.vd-passos-barra button[aria-current="step"] { border-color: #0B6B4B; color: #0B6B4B; background: #E3F1EA; }
.vd-passos-barra button.is-feito { color: #17231D; }
.vd-passos-barra button:focus-visible { outline: 3px solid #A9C9FB; outline-offset: 2px; }
.vd-passos-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #EEF0EC; font-size: 12px; }
.vd-passos-barra button[aria-current="step"] .vd-passos-num { background: #0B6B4B; color: #fff; }
.vd-passos-barra button.is-feito .vd-passos-num { background: #CDEBDD; color: #0B6B4B; }
.vd-passos-form section { display: flex; flex-direction: column; gap: 14px; }
.vd-passos-form section[hidden] { display: none; }
.vd-passos-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--vendra-border); }
.vd-passos-form [hidden] { display: none !important; }
.vd-passos-espaco { flex: 1 1 auto; }
.vd-passos-resumo { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.vd-escolhas, .vd-escolhas-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.vd-escolhas legend, .vd-escolhas-lista legend { margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.vd-escolhas legend small, .vd-escolhas-lista legend small { font-weight: 500; color: var(--vendra-muted); }
.vd-escolha { position: relative; cursor: pointer; }
.vd-escolha input { position: absolute; opacity: 0; pointer-events: none; }
.vd-escolha > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--vendra-border); background: #fff; }
.vd-escolha > span small { color: var(--vendra-muted); }
.vd-escolha input:checked + span { border-color: #0B6B4B; box-shadow: 0 0 0 3px #CDEBDD; }
.vd-escolha input:focus-visible + span { outline: 3px solid #A9C9FB; outline-offset: 2px; }
.vd-com-sufixo { display: flex; align-items: stretch; }
.vd-com-sufixo input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.vd-com-sufixo > span { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #CFCCC1; border-left: 0; border-radius: 0 10px 10px 0; background: #F6F5F1; font-weight: 700; color: var(--vendra-muted); }
.vd-cupao-codigo { display: flex; gap: 8px; }
.vd-cupao-codigo input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.vd-cupao-bilhete { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 2px dashed #0B6B4B; background: #E3F1EA; color: #0B6B4B; }
.vd-cupao-bilhete strong { font-size: 18px; letter-spacing: 0.06em; word-break: break-all; }
.vd-passos-oferta { margin: 0; font-size: 20px; font-weight: 800; }
.vd-revisao { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--vendra-border); border-radius: 12px; }
.vd-revisao li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--vendra-border); }
.vd-revisao li:first-child { border-top: 0; }
.vd-revisao li span { color: var(--vendra-muted); }
.vd-revisao li strong { text-align: right; }
.vd-duracoes-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.vd-duracao-admin { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vendra-border); background: #fff; }
.vd-duracao-admin [data-preco-duracao] { font-size: 13px; font-weight: 700; color: #0B6B4B; }
.vd-plano-preview-nome { font-size: 18px; }
.vd-plano-preview-preco { font-size: 22px; font-weight: 800; }
.vd-plano-preview-lista { margin: 0; padding-left: 18px; font-size: 13px; color: var(--vendra-muted); }
@media (max-width: 900px) {
  .vd-passos-layout { grid-template-columns: 1fr; }
  .vd-passos-resumo { position: static; order: -1; }
  .vd-passos-barra button > span:last-child { display: none; }
  .vd-passos-barra button[aria-current="step"] > span:last-child { display: inline; }
}
.vd-com-sufixo input { min-height: 44px; padding: 0 12px; border: 1px solid #CFCCC1; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: inherit; }
.vd-com-sufixo input:focus-visible { outline: 3px solid #A9C9FB; outline-offset: 1px; }

/* Sem assinatura ativa: nada do painel, só a página para pagar */
.sem-assinatura .topbar { display: none; }
.app-shell.is-sem-assinatura { display: block; }
.app-shell.is-sem-assinatura .area-principal { max-width: 1080px; margin: 0 auto; padding: 0 16px 32px; }
.sem-assinatura-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 16px; }
.sem-assinatura-marca { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.sem-assinatura-marca span { color: var(--vendra-muted); font-size: 15px; }
.sem-acesso-cartao { max-width: 480px; margin: 10vh auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* Página de pagamento: um só cartão, um só relógio, a janela da EMIS logo a seguir */
.vd-pagamento-unico { max-width: 760px; width: 100%; gap: 16px; }
.vd-pagamento-topo { display: flex; align-items: center; gap: 14px; }
.vd-pagamento-marca { flex: 0 0 auto; display: inline-flex; }
.vd-pagamento-valor { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-pagamento-valor strong { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.vd-pagamento-valor span { font-size: 13px; color: var(--vendra-muted); }
.vd-pagamento-topo .vd-etiqueta { flex: 0 0 auto; white-space: nowrap; }
.vd-pagamento-ajuda { border-top: 1px solid var(--vendra-border); padding-top: 12px; }
.vd-pagamento-ajuda summary { cursor: pointer; font-weight: 700; }
.vd-pagamento-ajuda ul { margin: 10px 0 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ===== Pré-visualizações no telemóvel: o mais perto possível do WhatsApp real (iOS, claro) =====
   Usado nos assistentes e nas pré-visualizações de modelos, Flows e anúncios (partials wa_cabecalho e wa_escrever). */
.ast-telefone {
  --wa-texto: #111B21; --wa-suave: #667781; --wa-verde: #008069; --wa-barra: #F7F5F3;
  position: relative; min-height: 560px; border: 10px solid #0B110E; border-radius: 42px; background: #EFE7DE;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif; color: var(--wa-texto);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 18px 40px rgba(16, 24, 20, .18);
}
.ast-tel-estado { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 20px 4px; background: var(--wa-barra); font-size: 13px; font-weight: 600; }
.ast-tel-ilha { width: 80px; height: 22px; border-radius: 12px; background: #0B110E; }
.ast-tel-estado-icones { display: flex; justify-content: flex-end; gap: 5px; align-items: center; fill: currentColor; }
.ast-tel-topo { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px 4px; background: var(--wa-barra); color: var(--wa-texto); border-bottom: 1px solid #E3E1DE; font-size: 14px; }
.ast-tel-voltar { display: flex; color: var(--wa-texto); }
.ast-tel-topo .ast-tel-avatar { flex: 0 0 32px; width: 32px; height: 32px; background: linear-gradient(135deg, #25D366, #0B6B4B); color: #fff; font-size: 14px; }
.ast-tel-contacto { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.ast-tel-contacto strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ast-tel-contacto small { color: var(--wa-suave); font-size: 11.5px; }
.ast-tel-acoes { display: flex; gap: 14px; color: var(--wa-texto); }
.ast-tel-conversa {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px 14px;
  background-color: #EFE7DE;
  background-image: radial-gradient(circle at 12px 12px, rgba(0, 0, 0, .035) 2px, transparent 2.5px), radial-gradient(circle at 36px 30px, rgba(0, 0, 0, .03) 3px, transparent 3.5px);
  background-size: 48px 48px;
}
.ast-tel-conversa .pv-dia { margin: 0 auto 6px; padding: 3px 10px; border-radius: 8px; background: #fff; color: var(--wa-suave); font-size: 11.5px; letter-spacing: 0; text-transform: none; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
/* Mensagem da loja: à esquerda, branca, com a ponta no canto de cima */
.ast-tel-conversa .mdl-bolha { position: relative; align-self: flex-start; max-width: 88%; min-width: 46%; gap: 3px; padding: 7px 9px 6px; background: #fff; border-radius: 0 9px 9px 9px; font-size: 14px; line-height: 1.38; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ast-tel-conversa .mdl-bolha::before { content: ''; position: absolute; top: 0; left: -7px; width: 8px; height: 10px; background: linear-gradient(to bottom right, #fff 50%, transparent 50%); }
.ast-tel-conversa .mdl-bolha-cab { font-size: 14.5px; }
.ast-tel-conversa .mdl-bolha-rod { color: var(--wa-suave); font-size: 12px; }
.ast-tel-conversa .ast-hora { align-self: flex-end; margin: -2px -2px -1px 0; font-size: 11px; color: var(--wa-suave); }
/* Botões de modelo e de mensagem interativa: por baixo do texto, separados por linhas, como no WhatsApp */
.ast-tel-conversa .mdl-bolha-botoes { margin: 4px -9px -6px; border-top: 1px solid #E9EDEF; }
.ast-tel-conversa .mdl-bolha-botoes span { padding: 10px 8px; color: var(--wa-verde); font-weight: 500; font-size: 14px; }
.ast-tel-conversa .mdl-bolha-botoes span + span { border-top: 1px solid #E9EDEF; }
.ast-tel-conversa .mdl-bolha-botoes svg { color: var(--wa-verde); }
.ast-tel-escrever { display: flex; align-items: center; gap: 12px; padding: 8px 12px 16px; background: var(--wa-barra); color: var(--wa-texto); border-top: 1px solid #E3E1DE; }
.ast-tel-campo { flex: 1 1 auto; height: 32px; border: 1px solid #E3E1DE; border-radius: 18px; background: #fff; }
/* Flow: abre como uma folha sobre a conversa escurecida */
.ast-tel-flow { background: #EFE7DE; }
.ast-tel-flow::before { content: ''; position: absolute; inset: 0; border-radius: 32px; background: rgba(0, 0, 0, .45); pointer-events: none; }
.ast-flow-folha { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 10px; border-radius: 14px 14px 0 0; background: #fff; overflow: hidden; }
.ast-flow-topo { padding: 14px 16px; border-bottom: 1px solid #E9EDEF; font-size: 16px; color: var(--wa-texto); }
.ast-flow-topo span { color: var(--wa-suave); }
.ast-flow-corpo { max-height: 420px; }
.ast-f-entrada { border-color: #8696A0; border-radius: 6px; }
.ast-flow-botao { background: var(--wa-verde); border-radius: 24px; font-weight: 600; }
.ast-flow-rodape { border-top: 0; }
@media (max-width: 900px) {
  .ast-telefone { min-height: 0; }
}

/* Flows: interruptor «Usar automaticamente» no cartão */
.mdl-flow-auto { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F4F7F5; }
.mdl-flow-auto > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mdl-flow-auto strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mdl-flow-auto small { color: var(--vendra-muted); font-size: 12px; line-height: 1.35; }

/* Configurações › Loja: a página pública da loja */
.lp-cartao { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; border: 1px solid #CFE8DB; background: linear-gradient(180deg, #F3FBF6 0%, #FFFFFF 70%); }
.lp-cartao-topo { display: flex; align-items: center; gap: 14px; }
.lp-cartao-topo > div { flex: 1 1 auto; min-width: 0; }
.lp-cartao-logo { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #25D366, #0B6B4B); color: #fff; font-size: 24px; font-weight: 800; }
.lp-cartao-logo img { width: 100%; height: 100%; object-fit: cover; }
.lp-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed #9FD3B7; }
.lp-link-url { font-weight: 800; font-size: 16px; color: #0B6B4B; overflow-wrap: anywhere; text-decoration: none; }
.lp-link-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-cartao-grelha { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.lp-slug { display: flex; align-items: center; border: 1px solid var(--vendra-border, #D9DED8); border-radius: 10px; overflow: hidden; background: #fff; }
.lp-slug > span { padding: 0 4px 0 12px; color: var(--vendra-muted); font-size: 14px; white-space: nowrap; }
.lp-slug input { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.lp-exposicao { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid #E4E2DA; border-radius: 12px; }
.lp-exposicao legend { padding: 0 6px; font-weight: 800; font-size: 13px; }
.lp-exposicao .vd-check { display: flex; align-items: flex-start; gap: 10px; }
.lp-exposicao .vd-check input { margin-top: 3px; }
.lp-exposicao .vd-check span { display: flex; flex-direction: column; gap: 2px; }
.lp-exposicao .vd-check small { color: var(--vendra-muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 900px) { .lp-cartao-grelha { grid-template-columns: minmax(0, 1fr); } .lp-cartao-topo { flex-wrap: wrap; } }
.lp-origem { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #E4E2DA; font-size: 13.5px; }
.lp-origem strong { display: inline-flex; align-items: center; gap: 6px; }
.lp-origem p { margin: 0; }

/* ---------------------------------------------------------------- Encomendas: entrega e rastreio */
.pd-entrega { margin: 0 0 10px; border: 1px solid #E4E2DA; border-radius: 12px; background: #FAFAF7; }
.pd-entrega > summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 700; color: #17231D; }
.pd-entrega[open] > summary { border-bottom: 1px solid #E4E2DA; }
.pd-entrega-campos { display: grid; gap: 10px; padding: 12px 14px 14px; }
.pd-rastreio { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #EEF4F0; }
.pd-rastreio-texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: #5D6A63; }
.pd-rastreio-texto strong { color: #17231D; font-size: 14px; }
.pd-rastreio-texto code { display: block; padding: 8px 10px; border-radius: 8px; background: #FFFFFF; color: #17231D; font-size: 12px; overflow-wrap: anywhere; }
.pd-rastreio-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-rastreio-acoes .vd-btn { flex: 1 1 auto; justify-content: center; }
.pd-entrega-dados { margin: 0; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #E4E2DA; border-radius: 12px; font-size: 13px; }
.pd-entrega-dados div { display: flex; justify-content: space-between; gap: 12px; }
.pd-entrega-dados dt { color: #5D6A63; }
.pd-entrega-dados dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }

/* ---------------------------------------------------------------- Conversas: modelos, botões e Flows como no WhatsApp */
.vd-msg-wa-cab { font-size: 14.5px; font-weight: 700; color: #111B21; overflow-wrap: anywhere; }
.vd-msg-wa-rod { color: #667781; font-size: 12.5px; line-height: 1.35; padding-right: 44px; overflow-wrap: anywhere; }
.vd-msg-wa-rod + .vd-msg-rodape { margin-top: -14px; }
.vd-msg-wa-botoes { display: flex; flex-direction: column; margin: 2px -8px -8px -9px; border-top: 1px solid rgba(11, 20, 26, .1); }
.vd-msg-wa-botoes > a, .vd-msg-wa-botoes > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; color: #008069; font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; }
.vd-msg-wa-botoes > * + * { border-top: 1px solid rgba(11, 20, 26, .1); }
.vd-msg-wa-botoes > a:hover { background: rgba(11, 20, 26, .04); }
.vd-msg-wa-botoes .vd-ic, .vd-msg-wa-botoes svg { flex: 0 0 auto; }
.vd-msg-flow { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.vd-msg-flow-topo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: rgba(11, 20, 26, .05); }
.vd-msg-flow-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #00A884; color: #FFFFFF; flex: 0 0 auto; }
.vd-msg-flow-topo strong { display: block; font-size: 14px; }
.vd-msg-flow-topo small { color: #667781; font-size: 12px; }
.vd-msg-flow dl { margin: 0 44px 0 0; display: grid; gap: 6px; }
.vd-msg-flow dl div { display: grid; gap: 1px; }
.vd-msg-flow dt { font-size: 12px; color: #667781; }
.vd-msg-flow dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Modelos e Flows: respostas dos clientes */
.mdl-respostas-atalho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mdl-respostas-atalho p { margin: 4px 0 0; }
.mdl-resp-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; }
.mdl-resp-filtros .vd-campo { flex: 1 1 200px; margin: 0; }
.mdl-resp-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
#painel-respostas .mdl-respostas { padding: 4px 16px; border: 1px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; }
#painel-respostas .mdl-resposta:first-child { border-top: 0; }
.mdl-resp-paginas { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---------------------------------------------------------------- Suporte e denúncias */
.sup { display: flex; flex-direction: column; gap: 16px; }
.sup-topo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sup-topo h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sup-meta { margin-top: 4px; font-size: 14px; color: #5D6A63; }
.sup-form { display: flex; flex-direction: column; gap: 14px; }
.sup-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
.sup-form .vd-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sup-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sup-resolver { margin-top: 10px; display: flex; justify-content: flex-start; }
.sup-lista { padding: 0; overflow: hidden; }
.sup-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: inherit; text-decoration: none; }
.sup-linha + .sup-linha { border-top: 1px solid #EFEDE6; }
.sup-linha:hover { background: #FAFAF7; }
.sup-linha-corpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sup-linha-corpo strong { font-size: 15px; overflow-wrap: anywhere; }
.sup-linha-corpo small { color: #5D6A63; font-size: 13px; }
.sup-linha.is-por-ler strong { color: #0B6B4B; }
.sup-conversa { display: flex; flex-direction: column; gap: 12px; }
.sup-msg { max-width: 760px; padding: 12px 14px; border-radius: 12px; background: #F4F3EE; }
.sup-msg.is-vendra { background: #E3F1EA; align-self: flex-end; }
.sup-msg-autor { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.sup-msg-autor span { color: #5D6A63; }
.sup-msg-texto { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.sup-evento { align-self: center; font-size: 12.5px; color: #5D6A63; padding: 4px 10px; border-radius: 999px; background: #F4F3EE; }
.sup-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.sup-filtros .vd-campo { margin: 0; flex: 1 1 200px; }
.den-grelha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .den-grelha { grid-template-columns: 1fr; } }
.den-texto { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; padding: 12px 14px; border-radius: 10px; background: #F4F3EE; }
.den-acoes { display: flex; flex-direction: column; gap: 12px; }
.den-acoes form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #E4E2DA; border-radius: 12px; }
.den-acoes textarea, .den-acoes input[type="text"] { width: 100%; box-sizing: border-box; font: inherit; }

/* ---------------------------------------------------------------- Menu lateral agrupado */
.sb-grupo { display: flex; flex-direction: column; gap: 2px; }
.sb-grupo-botao {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 37px; padding: 0 11px; border: 0; border-radius: 9px;
  background: transparent; color: #C5D8CE; font: inherit; font-weight: 600; font-size: 13.5px; text-align: left; cursor: pointer;
  position: relative; transition: background 0.14s ease, color 0.14s ease;
}
.sb-grupo-botao:hover { background: rgba(127, 209, 168, 0.1); color: #FFFFFF; }
.sb-grupo-botao:focus-visible { outline: 2px solid var(--vendra-mint); outline-offset: 1px; }
.sb-grupo-botao.tem-ativo { color: #FFFFFF; }
.sb-grupo-botao.tem-ativo .sb-link-icon { color: var(--vendra-mint); opacity: 1; }
.sb-grupo-seta { flex: 0 0 16px; opacity: 0.7; transition: transform 0.15s ease; }
.sb-grupo.is-aberto .sb-grupo-seta { transform: rotate(180deg); }
.sb-grupo-itens { display: none; flex-direction: column; gap: 2px; margin-left: 14px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.sb-grupo.is-aberto .sb-grupo-itens { display: flex; }
.sb-sublink { min-height: 34px; font-size: 13px; }

@media (min-width: 861px) {
  /* Menu recolhido (só ícones): sem cabeçalhos de grupo, todos os ícones à vista */
  .sb-recolhido .sb-grupo-botao { display: none; }
  .sb-recolhido .sb-grupo-itens { display: flex; margin-left: 0; padding-left: 0; border-left: 0; }
  .sb-recolhido .sb-grupo + .sb-grupo, .sb-recolhido .sb-link + .sb-grupo { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .sb-recolhido .sb-sublink { min-height: 37px; }
}

/* Menu agrupado (13/11/2026): versão nova para não usar uma cópia antiga guardada em cache */

/* ---------------------------------------------------------------- Cabeçalho do painel: conta e ajuda */
.cab {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 8px 28px; background: rgba(244, 243, 238, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E4E2DA;
}
.cab-loja { font-size: 14px; font-weight: 700; color: #5D6A63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cab-acoes { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cab-icone { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #33433B; text-decoration: none; }
.cab-icone:hover { background: rgba(11, 107, 75, 0.08); color: #0B6B4B; }
.cab-icone .tb-sino-contagem { top: 2px; right: 1px; }
.cab-conta { position: relative; }
.cab-conta > summary { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer; list-style: none; user-select: none; color: #17231D; }
.cab-conta > summary::-webkit-details-marker { display: none; }
.cab-conta > summary:hover, .cab-conta[open] > summary { background: rgba(11, 107, 75, 0.08); }
.cab-conta > summary:focus-visible { outline: 2px solid #0B6B4B; outline-offset: 2px; }
.cab-avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: #0B6B4B; color: #FFFFFF; font-size: 13.5px; font-weight: 800; letter-spacing: 0.02em;
}
.cab-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab-avatar.is-grande { flex-basis: 48px; width: 48px; height: 48px; font-size: 17px; }
.cab-conta-nome { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cab-conta-nome strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.cab-conta-nome small { font-size: 12px; color: #5D6A63; }
.cab-conta-seta { flex: 0 0 auto; opacity: 0.6; transition: transform 0.15s ease; }
.cab-conta[open] .cab-conta-seta { transform: rotate(180deg); }
.cab-conta-ponto { position: absolute; top: 3px; left: 31px; width: 10px; height: 10px; border-radius: 50%; background: #E2574C; box-shadow: 0 0 0 2px #F4F3EE; }
.cab-conta-painel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 300px; max-width: calc(100vw - 24px); padding: 8px;
  display: flex; flex-direction: column; gap: 2px; border-radius: 16px; background: #FFFFFF; border: 1px solid #E4E2DA;
  box-shadow: 0 18px 44px rgba(10, 32, 24, 0.18);
}
.cab-conta-quem { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid #EFEDE6; }
.cab-conta-quem > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cab-conta-quem strong { font-size: 15px; color: #17231D; overflow-wrap: anywhere; }
.cab-conta-quem small { font-size: 12.5px; color: #5D6A63; overflow-wrap: anywhere; }
.cab-conta-painel a, .cab-conta-painel button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: #17231D; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.cab-conta-painel a:hover, .cab-conta-painel button:hover { background: #EEF4F0; }
.cab-conta-painel .sb-badge { margin-left: auto; }
.cab-conta-painel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #EFEDE6; }
.cab-conta-painel form button { color: #A12A2A; }
@media (max-width: 860px) {
  .cab { display: none; }
  .topbar .cab-conta { margin-left: 2px; }
  .topbar .cab-conta > summary { padding: 2px; color: #FFFFFF; }
  .topbar .cab-conta.is-compacto .cab-conta-nome, .topbar .cab-conta.is-compacto .cab-conta-seta { display: none; }
  .topbar .cab-avatar { flex-basis: 34px; width: 34px; height: 34px; background: #1C4233; }
  .topbar .cab-conta-ponto { top: 0; left: 26px; box-shadow: 0 0 0 2px #0B221A; }
  .topbar .cab-conta-painel { position: fixed; top: 62px; right: 10px; }
}
/* Menu da conta: fotografia na página A minha conta */
.conta-foto { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.conta-foto .cab-avatar { flex-basis: 88px; width: 88px; height: 88px; font-size: 30px; }
.conta-foto-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.conta-foto-acoes label.vd-btn { cursor: pointer; }
.conta-foto-acoes input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Lista de conversas: o visto da última mensagem usa a cor do estado (✓✓ azul quando lida) */
.vd-previa .vd-visto .vd-ic, .vd-wa-item .vd-previa .vd-visto .vd-ic { color: inherit; }

/* Registo vindo do Google/Facebook: o e-mail dessa conta e a saída para quem já tem conta */
.reg-facebook div > span { display: block; }
.reg-facebook span strong { display: inline; }
.reg-ja-tenho { margin: -6px 0 16px; padding: 10px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F2DDB0; font-size: 13.5px; line-height: 1.45; color: #5B4A1E; }
.reg-ja-tenho a { color: #0B6B4B; font-weight: 700; }

/* ---------------------------------------------------------------- Preloader leve
   Sem desfocagem (pesada para o computador e o telemóvel) e só aparece se a espera passar de
   ~0,35 s: nas ações rápidas nunca chega a ver-se. Esconder é imediato. */
.vendra-preloader {
  background: rgba(10, 32, 24, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 10px;
  animation: vendraAparecer 0.18s ease 0.35s both;
  transition: none;
}
.vendra-preloader.is-hidden { animation: none; opacity: 0; visibility: hidden; transition: opacity 0.12s ease, visibility 0s linear 0.12s; }
@keyframes vendraAparecer { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
.vendra-preloader-box { width: 60px; height: 60px; }
.vendra-preloader-ring { border-width: 2.5px; }
.vendra-preloader-logo { width: 38px; height: 38px; border-radius: 10px; padding: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.vendra-preloader-text { padding: 6px 12px; border-radius: 999px; background: rgba(10, 32, 24, 0.82); font-size: 13px; }
.vendra-preloader-sub { display: none; }
@media (prefers-reduced-motion: reduce) {
  .vendra-preloader-ring { animation-duration: 2.4s; }
  .vendra-preloader { animation-duration: 0s; }
}

/* Gaveta das notificações: abre do lado direito, junto ao sino (não por cima do menu) */
.ntf-painel { left: auto; right: 0; border-right: 0; border-left: 1px solid #E4E2DA; box-shadow: -18px 0 40px rgba(9, 22, 17, 0.18); transform: translateX(16px); }
.ntf-painel.is-aberto { transform: none; }
@media (max-width: 760px) { .ntf-painel { border-left: 0; } }

/* Anel da assinatura à volta da foto: fechado no início, vai abrindo com os dias que passam */
.cab-anel { position: relative; flex: 0 0 46px; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin: -5px; }
.cab-anel.is-grande { flex-basis: 60px; width: 60px; height: 60px; margin: -6px; }
.cab-anel.is-sem { flex-basis: auto; width: auto; height: auto; margin: 0; }
.cab-anel-svg { position: absolute; inset: 0; transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.cab-anel-svg circle { fill: none; stroke-width: 3; }
.cab-anel-fundo { stroke: rgba(11, 107, 75, 0.14); }
.cab-anel-resto { stroke: #12A36D; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.cab-anel.is-aviso .cab-anel-resto { stroke: #E0A100; }
.cab-anel.is-urgente .cab-anel-resto { stroke: #D64545; }
.cab-anel.is-aviso .cab-anel-fundo { stroke: rgba(224, 161, 0, 0.18); }
.cab-anel.is-urgente .cab-anel-fundo { stroke: rgba(214, 69, 69, 0.18); }
.topbar .cab-anel-fundo { stroke: rgba(255, 255, 255, 0.18); }
.cab-anel-dias { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #0B6B4B; text-decoration: none; }
.cab-conta-painel a.cab-anel-dias { display: inline-block; width: auto; padding: 0; margin-top: 4px; gap: 0; border-radius: 0; background: none; font-size: 12px; font-weight: 700; color: #0B6B4B; }
.cab-conta-painel a.cab-anel-dias:hover { background: none; text-decoration: underline; }
.cab-conta-painel a.cab-anel-dias.is-aviso { color: #9A6B00; }
.cab-conta-painel a.cab-anel-dias.is-urgente { color: #B42318; }
.cab-anel-dias.is-aviso { color: #9A6B00; }
.cab-anel-dias.is-urgente { color: #B42318; }

/* Cartão da loja no menu lateral, simples: inicial, nome e província numa linha */
.sb-store-card.is-simples { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; background: transparent; border-color: rgba(127, 209, 168, 0.1); }
.sb-store-inicial { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 210, 133, 0.16); color: #7FD1A8; font-weight: 800; font-size: 14px; }
.sb-store-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sb-store-card.is-simples .sb-store-name { font-size: 13.5px; }
.sb-store-card.is-simples .sb-store-meta { font-size: 11.5px; color: #8FB5A2; }

/* Avaliações de produtos (painel e administração) */
.av { display: flex; flex-direction: column; gap: 16px; }
.av-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.av-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.av-sub { margin: 4px 0 0; font-size: 14px; color: #5D6A63; max-width: 62ch; }
.av-resumo { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E4E2DA; }
.av-resumo strong { font-size: 30px; font-weight: 800; }
.av-resumo span { display: flex; flex-direction: column; }
.av-resumo b, .av-estrelas { color: #E0A100; letter-spacing: 1px; font-weight: 400; }
.av-resumo small { color: #5D6A63; font-size: 12.5px; }
a.vd-tab { text-decoration: none; }
.av-item { display: flex; flex-direction: column; gap: 8px; }
.av-item.is-escondida { opacity: 0.75; }
.av-item-topo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.av-produto { font-size: 15px; }
.av-meta { font-size: 13px; color: #5D6A63; }
.av-texto { margin: 0; font-size: 14.5px; white-space: pre-line; }
.av-sem-texto { color: #8A958F; font-style: italic; }
.av-moderacao { margin: 0; font-size: 13px; color: #5D6A63; padding-left: 10px; border-left: 3px solid #E4E2DA; }
.av-responder { display: grid; gap: 8px; }
.av-acoes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.av-acoes input[type="text"] { flex: 1 1 260px; min-height: 38px; padding: 0 12px; border: 1px solid #D6D3C8; border-radius: 10px; font: inherit; }
.av-revisao > summary { list-style: none; cursor: pointer; }
.av-revisao > summary::-webkit-details-marker { display: none; }
.av-revisao-corpo { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid #E4E2DA; border-radius: 12px; background: #FAFAF7; min-width: min(320px, 80vw); }
.dv-form { display: grid; gap: 12px; }
.dv-opcoes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dv-opcoes label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.dv-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* ---- Conversas como no WhatsApp: «+», emojis por categorias, estrela, respostas rápidas ---- */
.vd-wa-lista-titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vd-wa-mais { position: relative; }
.vd-wa-mais-menu { position: absolute; top: 40px; right: 0; left: auto; }
.vd-msg-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: #3B4A54; font-size: 14.5px; text-decoration: none; }
.vd-msg-menu a:hover { background: #F5F6F6; }
.vd-msg-menu hr { margin: 6px 0; border: 0; border-top: 1px solid #E9EDEF; }
.vd-anexos { position: relative; }
.vd-anexos-menu { position: absolute; bottom: 48px; left: 0; top: auto; min-width: 230px; }
.vd-anexo-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.vd-anexo-ic.is-doc { color: #7F66FF; }
.vd-anexo-ic.is-foto { color: #007BFC; }
.vd-anexo-ic.is-audio { color: #FA6533; }
.vd-anexo-ic.is-contacto { color: #009DE2; }
.vd-anexo-ic.is-pergunta { color: #FFBC38; }
.vd-anexo-ic.is-catalogo { color: #3B4A54; }
.vd-anexo-ic.is-rapidas { color: #FFBC38; }
.vd-anexar[disabled] { opacity: .45; cursor: not-allowed; }

.vd-emoji-painel.is-completo { display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); max-height: 380px; padding: 0; overflow: hidden; gap: 0; }
.vd-emoji-painel.is-completo[hidden] { display: none; }
.vd-emoji-tabs { display: flex; justify-content: space-between; padding: 6px 8px 0; border-bottom: 1px solid #E9EDEF; }
.vd-emoji-tabs button { flex: 1; height: 36px; font-size: 18px; border-radius: 8px 8px 0 0; filter: grayscale(.4); }
.vd-emoji-tabs button:hover { filter: none; }
.vd-emoji-pesquisa { margin: 8px 10px; padding: 8px 14px; border: 1px solid #D1D7DB; border-radius: 999px; font: inherit; font-size: 14px; outline: none; }
.vd-emoji-pesquisa:focus { border-color: #00A884; }
.vd-emoji-corpo { overflow-y: auto; padding: 0 8px 8px; position: relative; }
.vd-emoji-corpo h4 { margin: 8px 4px 4px; font-size: 12.5px; font-weight: 600; color: #667781; }
.vd-emoji-grelha { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; }
.vd-emoji-grelha button[hidden], .vd-emoji-corpo section[hidden] { display: none; }
.vd-emoji-vazio { margin: 16px; text-align: center; color: #667781; font-size: 13.5px; }

.vd-msg-estrela { color: #8696A0; font-size: 12px; margin-right: 2px; }
.vd-msg.is-minha .vd-msg-estrela { color: #6E8F7F; }

.vd-rr-sugestoes { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; margin: 0 0 6px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 2px 12px rgba(11, 20, 26, .18); }
.vd-rr-sugestoes[hidden] { display: none; }
.vd-rr-sugestoes button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 14px; border: 0; border-bottom: 1px solid #F0F2F5; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.vd-rr-sugestoes button strong { font-size: 13.5px; color: #00A884; }
.vd-rr-sugestoes button span { font-size: 13.5px; color: #3B4A54; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vd-rr-sugestoes button:hover, .vd-rr-sugestoes button.is-ativa { background: #F5F6F6; }

.vd-wa-dialogo.is-largo { width: min(560px, calc(100vw - 32px)); }
.vd-wa-dlg-form { display: grid; gap: 12px; padding: 16px 20px 20px; max-height: min(70vh, 640px); overflow-y: auto; }
.vd-wa-dlg-form .vd-ajuda { margin: 0; }
.vd-wa-dlg-pesquisa { padding: 9px 14px; border: 1px solid #D1D7DB; border-radius: 999px; font: inherit; }
.vd-wa-dlg-lista { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.vd-wa-dlg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.vd-wa-dlg-item:hover { background: #F5F6F6; }
.vd-wa-dlg-item[hidden] { display: none; }
.vd-wa-dlg-item span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vd-wa-dlg-item small { color: #667781; }
.vd-wa-dlg-item.is-indisponivel { opacity: .55; cursor: not-allowed; }
.vd-wa-dlg-item:has(input:checked) { background: #E7F8F2; }
.vd-com-prefixo { display: flex; align-items: center; border: 1px solid #D1D7DB; border-radius: 10px; overflow: hidden; }
.vd-com-prefixo span { padding: 0 4px 0 12px; color: #667781; font-weight: 700; }
.vd-com-prefixo input { flex: 1; border: 0; outline: none; padding: 10px 12px 10px 0; font: inherit; }
.vd-rr-lista { display: grid; gap: 8px; }
.vd-rr-item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #E9EDEF; border-radius: 10px; }
.vd-rr-item > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.vd-rr-item strong { color: #00A884; font-size: 13.5px; }
.vd-rr-item span { font-size: 13.5px; color: #3B4A54; white-space: pre-line; }
.vd-rr-item-acoes { display: flex; gap: 6px; }
.vd-rr-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #E9EDEF; }
.vd-rr-form-acoes { display: flex; gap: 8px; }
.vd-estrelas-lista { display: grid; gap: 6px; }
.vd-estrela-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #F7F8FA; color: #111B21; text-decoration: none; }
.vd-estrela-item:hover { background: #EEF1F4; }
.vd-estrela-item small { color: #667781; font-size: 12.5px; }
.vd-estrela-item span { font-size: 14px; white-space: pre-line; }
/* No computador, o ecrã das conversas desconta o cabeçalho com a foto (61 px) para caber na janela */
@media (min-width: 861px) {
  .vd-wa { height: calc(100dvh - 32px - 61px); }
}
/* Espaço para a hora no fim do texto: nas mensagens da loja há também os vistos (✓✓) e, às vezes, a estrela */
.vd-msg.is-minha .vd-msg-texto { padding-right: 68px; }
.vd-msg:has(.vd-msg-rodape [data-msg-estrela]:not([hidden])) .vd-msg-texto { padding-right: 82px; }
.vd-msg.is-cliente:has(.vd-msg-rodape [data-msg-estrela]:not([hidden])) .vd-msg-texto { padding-right: 58px; }
/* Pré-visualização grande da foto ou do vídeo antes de enviar */
.vd-compositor-ficheiro-previa.is-grande { width: auto; height: auto; max-width: min(260px, 50vw); max-height: 200px; background: #E9EDEF; }
.vd-compositor-ficheiro-previa.is-grande img, .vd-compositor-ficheiro-previa.is-grande video { width: auto; height: auto; max-width: min(260px, 50vw); max-height: 200px; object-fit: contain; object-position: center; display: block; }

/* Escolher contactos (um ou vários) */
.vd-wa-avatar.is-pequeno { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
.vd-wa-dlg-item input[type=checkbox] { width: 18px; height: 18px; accent-color: #00A884; flex: 0 0 auto; }
.vd-wa-dlg-outro > summary { cursor: pointer; font-weight: 600; color: #00A884; font-size: 14px; }
.vd-wa-dlg-outro[open] { display: grid; gap: 10px; }

/* ---- Respostas rápidas como no WhatsApp: painel com lista e janela de adicionar/editar ---- */
.vd-rr-topo { display: flex; align-items: center; gap: 14px; }
.vd-rr-topo > span, .vd-rr-topo > strong { flex: 1; font-size: 16px; font-weight: 500; color: #111B21; }
.vd-rr-janela { width: min(440px, calc(100vw - 32px)); }
.vd-rr-janela .vd-rr-topo { padding: 10px 12px; border-bottom: 1px solid #E9EDEF; }
.vd-rr-lista { display: flex; flex-direction: column; gap: 0; }
.vd-rr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #E9EDEF; background: #FFFFFF; text-align: left; cursor: pointer; font: inherit; }
.vd-rr-item:hover { background: #F5F6F6; }
.vd-rr-item strong { font-size: 16px; font-weight: 400; color: #111B21; }
.vd-rr-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #667781; }
.vd-rr-explicacao { margin: 0; padding: 16px; font-size: 14px; line-height: 1.5; color: #667781; }
.vd-rr-explicacao a { color: #008069; font-weight: 600; }

.vd-rr-modal { width: min(500px, calc(100vw - 32px)); border-radius: 24px; }
.vd-rr-modal-form { display: flex; flex-direction: column; gap: 28px; padding: 18px 28px 22px; }
.vd-rr-modal-topo { display: flex; align-items: center; gap: 14px; margin: 0 -8px; padding: 0; border: 0; font-size: 17px; }
.vd-rr-modal-topo strong { font-weight: 400; color: #111B21; }
.vd-rr-linha { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 22px; border-bottom: 2px solid #8696A0; }
.vd-rr-linha:focus-within { border-bottom-color: #111B21; }
.vd-rr-rotulo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: #8696A0; font-size: 16px; pointer-events: none; transition: all .15s; }
.vd-rr-linha:focus-within .vd-rr-rotulo, .vd-rr-linha.tem-valor .vd-rr-rotulo { top: -6px; transform: translateY(-100%); font-size: 12.5px; }
.vd-rr-linha input, .vd-rr-linha textarea { flex: 1; min-width: 0; padding: 10px 0 8px; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: #111B21; resize: none; }
.vd-rr-contador { padding-bottom: 10px; font-size: 13px; color: #8696A0; }
.vd-rr-emoji-abrir { padding: 0 0 6px; border: 0; background: transparent; color: #54656F; cursor: pointer; }
.vd-rr-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin: -16px 22px 0; padding: 6px; border-radius: 12px; background: #F0F2F5; }
.vd-rr-emojis[hidden] { display: none; }
.vd-rr-emojis button { height: 34px; border: 0; border-radius: 6px; background: transparent; font-size: 20px; cursor: pointer; }
.vd-rr-emojis button:hover { background: #FFFFFF; }
.vd-rr-modal-acoes { display: flex; align-items: center; gap: 10px; margin: 0 22px; }
.vd-rr-modal-acoes > span { flex: 1; }
.vd-rr-cancelar, .vd-rr-guardar { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.vd-rr-cancelar { background: #D9FDD3; color: #008069; }
.vd-rr-cancelar:hover { background: #C7F5C0; }
.vd-rr-guardar { background: #008069; color: #FFFFFF; }
.vd-rr-guardar:hover { background: #017561; }
.vd-rr-guardar[disabled] { background: #F0F2F5; color: #8696A0; cursor: default; }
.vd-rr-eliminar { padding: 0; border: 0; background: transparent; color: #EA0038; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.vd-wa-dialogo header.vd-rr-modal-topo { justify-content: flex-start; padding: 0; border-bottom: 0; }
.vd-wa-dialogo header.vd-rr-topo { justify-content: flex-start; }
.vd-rr-linha textarea { overflow-y: hidden; line-height: 1.4; }

/* Resposta rápida ligada ao assistente */
.vd-rr-bot { display: grid; gap: 14px; margin: -8px 22px 0; }
.vd-rr-bot .vd-rr-linha { margin: 6px 0 0; }
.vd-rr-bot-ligar { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.vd-rr-bot-ligar input { width: 18px; height: 18px; margin-top: 2px; accent-color: #008069; flex: 0 0 auto; }
.vd-rr-bot-ligar span { display: flex; flex-direction: column; gap: 2px; }
.vd-rr-bot-ligar strong { font-size: 14.5px; font-weight: 600; color: #111B21; }
.vd-rr-bot-ligar small, .vd-rr-dica { font-size: 12.5px; color: #667781; }
.vd-rr-dica { margin-top: -8px; }
.vd-rr-linha[hidden], .vd-rr-dica[hidden] { display: none; }
.vd-rr-selo-bot { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #D9FDD3; color: #008069; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Agente de IA (Conexões) */
.vd-integracao-logo-openai { background: #F2F2F2; border-color: #DDDDDD; }
.vd-integracao-openai { border-top-color: #000000; }
.vd-integracao-logo-anthropic { background: #F5F0E8; border-color: #E5DCCB; }
.vd-integracao-anthropic { border-top-color: #D97757; }
.vd-integracao-logo-googlegemini { background: #F1EDF8; border-color: #DCD3EC; }
.vd-integracao-googlegemini { border-top-color: #8E75B2; }
.ia-como { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: #3B4A44; }
.ia-form { display: grid; gap: 14px; margin-top: 6px; }
.ia-fornecedores { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ia-fornecedores legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #3B4A44; }
.ia-fornecedor { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #E4E2DA; border-radius: 12px; cursor: pointer; background: #FFFFFF; }
.ia-fornecedor:has(input:checked) { border-color: #0B6B4B; background: #F2FAF6; }
.ia-fornecedor input { accent-color: #0B6B4B; }
.ia-fornecedor .vd-integracao-logo { width: 36px; height: 36px; flex: 0 0 36px; }
.ia-ligar { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ia-ligar input { width: 18px; height: 18px; accent-color: #0B6B4B; }
.ia-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.ia-apagar { margin-top: 4px; }
.vd-link-perigo { padding: 0; border: 0; background: none; color: #A12A2A; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.ia-experimentar { display: grid; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid #EFEDE6; }
.ia-experimentar h3 { margin: 0; font-size: 15px; }
.ia-experimentar-form { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-experimentar-form input { flex: 1 1 260px; min-height: 40px; padding: 0 12px; border: 1px solid #D6D3C8; border-radius: 10px; font: inherit; }
.ia-resposta { padding: 12px 14px; border-radius: 12px; background: #D9FDD3; color: #111B21; font-size: 14px; white-space: pre-line; display: grid; gap: 6px; }
.ia-resposta small { color: #3B4A44; font-size: 12.5px; }
.ia-resposta.is-a-pensar { background: #F0F2F5; color: #667781; }
.ia-resposta.is-erro { background: #FBE7E7; color: #A12A2A; }

/* Agente de IA: ligação rápida */
.ia-rapida { display: grid; gap: 6px; margin-top: 6px; }
.ia-rapida h3, .ia-manual-titulo { margin: 0; font-size: 16px; }
.ia-manual-titulo { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EFEDE6; }
.ia-rapida .vd-ajuda, .ia-manual-titulo + .vd-ajuda { margin: 0; }
.ia-rapida-botoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.ia-rapida-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; font: inherit; text-align: left; cursor: pointer; color: #1F2A26; }
.ia-rapida-btn:hover { border-color: #0B6B4B; background: #F7FBF9; }
.ia-rapida-btn.is-ligado { border-color: #0B6B4B; background: #F2FAF6; }
.ia-rapida-btn .vd-integracao-logo { width: 40px; height: 40px; flex: 0 0 40px; }
.ia-rapida-btn > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ia-rapida-btn small { color: #667781; font-size: 12.5px; }
.ia-rapida-btn.is-ligado small { color: #0B6B4B; font-weight: 600; }
.ia-rapida-dlg { width: min(480px, calc(100vw - 32px)); }
.ia-rapida-topo { display: inline-flex; align-items: center; gap: 10px; }
.ia-rapida-topo .vd-integracao-logo { width: 34px; height: 34px; flex: 0 0 34px; }
.ia-rapida-passos { margin: 0; padding: 16px 20px 4px 40px; display: grid; gap: 16px; font-size: 14px; color: #3B4A44; max-height: min(64vh, 560px); overflow-y: auto; }
.ia-rapida-passos > li > strong { display: block; margin-bottom: 6px; color: #1F2A26; }
.ia-rapida-passos ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 3px; }
.ia-rapida-passos .vd-btn { display: inline-flex; align-items: center; gap: 6px; }
.ia-rapida-passos .vd-ajuda { display: block; margin-top: 6px; }
.ia-rapida-colar { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-rapida-colar input { flex: 1 1 180px; min-height: 40px; padding: 0 12px; border: 1px solid #D6D3C8; border-radius: 10px; font: inherit; }
.ia-rapida-estado { margin: 8px 20px 0; padding: 10px 12px; border-radius: 10px; background: #F0F2F5; color: #3B4A54; font-size: 13.5px; }
.ia-rapida-estado.is-erro { background: #FBE7E7; color: #A12A2A; }
.ia-rapida-estado.is-ok { background: #D9FDD3; color: #0B6B4B; font-weight: 600; }
.ia-rapida-estado.is-a-pensar { color: #667781; }
.ia-rapida-acoes { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }

/* Conversas: transcrição da nota de voz (agente de IA) */
.vd-msg-transcricao { margin-top: 6px; padding: 6px 8px; border-left: 3px solid #25D366; border-radius: 6px; background: rgba(0, 0, 0, .04); font-size: 13.5px; color: #3B4A54; white-space: pre-line; }
.vd-msg-transcricao small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: #667781; }

/* Agente de IA: IA incluída da Vendra (fase de testes) */
.ia-incluida { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 6px; padding: 14px 16px; border: 1.5px solid #CDE7DB; border-radius: 14px; background: #F2FAF6; }
.ia-incluida.is-ativa { border-color: #0B6B4B; }
.ia-incluida-texto { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.ia-incluida-texto strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.ia-incluida-texto .vd-ajuda { margin: 0; }
.ia-incluida-texto small { color: #3B4A44; font-size: 12.5px; }
.ia-incluida-uso { height: 8px; border-radius: 999px; background: #DDEEE6; overflow: hidden; }
.ia-incluida-uso span { display: block; height: 100%; border-radius: inherit; background: #0B6B4B; }
.ia-ou { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: #667781; font-size: 13px; }
.ia-ou::before, .ia-ou::after { content: ''; flex: 1; height: 1px; background: #E4E2DA; }
.vd-integracao-logo-vendra { background: #FFFFFF; border-color: #CDE7DB; }
.vd-integracao-logo-vendra img { border-radius: 6px; }

/* Agente de IA: base de conhecimento */
.ia-conhecimento { display: grid; gap: 12px; margin-top: 16px; }
.ia-conhecimento > .vd-ajuda { margin: 0; }
.ia-conh-novo > summary { list-style: none; display: inline-flex; width: max-content; cursor: pointer; }
.ia-conh-novo > summary::-webkit-details-marker { display: none; }
.ia-conh-novo[open] > summary { margin-bottom: 4px; }
.ia-conh-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ia-conh-lista details { border: 1px solid #E4E2DA; border-radius: 12px; background: #FFFFFF; }
.ia-conh-lista details[open] { border-color: #0B6B4B; }
.ia-conh-lista summary { display: grid; gap: 4px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ia-conh-lista summary::-webkit-details-marker { display: none; }
.ia-conh-lista summary > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.ia-conh-lista summary small { color: #667781; font-size: 12px; }
.ia-conh-texto { color: #3B4A44; font-size: 13.5px; }
.ia-conh-lista details[open] .ia-conh-texto { display: none; }
.ia-conh-lista .ia-form, .ia-conh-lista .ia-apagar { padding: 0 14px 12px; }
.ia-conh-uso { color: #667781; font-size: 12.5px; }
.ia-corrigir { display: grid; gap: 8px; }

/* Alertas em tempo real: e-mail por confirmar, push e contactos de alerta */
.email-por-confirmar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 16px 0; }
.email-por-confirmar > div { flex: 1 1 320px; }
.push-cartao { display: grid; gap: 10px; }
.push-estado { margin: 0; font-weight: 600; color: #3B4A44; }
.push-estado.is-ativo { color: #0B6B4B; }
.alertas-intro { display: grid; gap: 12px; }
.alertas-como { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: #3B4A44; }
.alertas-modelo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #EFEDE6; font-size: 14px; }
.alerta-contacto { display: grid; gap: 10px; margin-top: 12px; }
.alerta-contacto-topo strong { font-size: 15px; }
.alerta-canais { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.alerta-confirmar { margin: 0; }
.alerta-editar > summary, .alerta-novo > summary { list-style: none; display: inline-flex; width: max-content; cursor: pointer; }
.alerta-editar > summary::-webkit-details-marker, .alerta-novo > summary::-webkit-details-marker { display: none; }
.alerta-editar[open] > summary, .alerta-novo[open] > summary { margin-bottom: 10px; }
.alerta-eventos { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.alerta-eventos legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #3B4A44; }
.push-cartao [hidden] { display: none !important; }

/* ---------------------------------------------------------------- Finanças (pagamentos recebidos, histórico da assinatura) */
.fin-filtros, .vd-card.fin-filtros { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; }
.fin-filtros .vd-campo { flex: 1 1 150px; margin: 0; }
.fin-filtros .fin-pesquisa { flex: 2 1 240px; }
.fin-filtros .vd-acoes { margin: 0; }
.fin-tabela-envolve { overflow-x: auto; border: 1px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; }
.fin-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-tabela th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #5D6A63; background: #FAFAF7; border-bottom: 1px solid #E4E2DA; white-space: nowrap; }
.fin-tabela td { padding: 12px 14px; border-bottom: 1px solid #EFEDE6; vertical-align: top; }
.fin-tabela tbody tr:last-child td { border-bottom: 0; }
.fin-tabela .num { text-align: right; white-space: nowrap; }
.fin-tabela code { font-size: 12.5px; }
.vd-card .fin-tabela-envolve { border-radius: 10px; }
.fin-paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 14px; color: #5D6A63; }
.fin-devolver { border: 1px solid #F1C9C4; background: #FFF8F7; }
.fin-devolver-linha { flex-wrap: wrap; }
.fin-devolver-acao { flex: 1 1 100%; }
.fin-devolver-acao[open] summary { margin-bottom: 10px; }
.fin-notas { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #3D4A43; }
@media (max-width: 720px) {
  /* Telemóvel: cada linha da tabela vira um cartão, com o nome de cada campo */
  .fin-tabela thead { display: none; }
  .fin-tabela, .fin-tabela tbody, .fin-tabela tr, .fin-tabela td { display: block; width: 100%; }
  .fin-tabela tr { padding: 10px 14px; border-bottom: 1px solid #EFEDE6; }
  .fin-tabela td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .fin-tabela td::before { content: attr(data-rotulo); color: #5D6A63; font-size: 12.5px; text-align: left; flex: 0 0 auto; }
  .fin-tabela td:not([data-rotulo])::before { content: none; }
  .fin-tabela .num { text-align: right; }
}
.vd-painel-coluna { display: flex; flex-direction: column; gap: 20px; }
.vd-painel-coluna[hidden] { display: none; }

/* ---------------------------------------------------------------- Tipo do item (físico, digital, serviço) */
.vd-cat-tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.vd-cat-tipos legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #3D4A43; }
.vd-cat-tipo { position: relative; display: block; cursor: pointer; }
.vd-cat-tipo input { position: absolute; opacity: 0; }
.vd-cat-tipo span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid #DAD7CC; border-radius: 12px; background: #FFFFFF; }
.vd-cat-tipo strong { font-size: 14px; }
.vd-cat-tipo small { font-size: 12px; color: #5D6A63; }
.vd-cat-tipo input:checked + span { border-color: #0B6B4B; background: #E3F1EA; box-shadow: 0 0 0 1px #0B6B4B inset; }
.vd-cat-tipo input:focus-visible + span { outline: 2px solid #0B6B4B; outline-offset: 2px; }
.vd-cat-ficheiro { display: flex; flex-direction: column; gap: 8px; }
.vd-cat-ficheiro-atual { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #F6F8F7; color: #0B6B4B; }
.vd-cat-ficheiro-atual b { display: block; color: #17231D; overflow-wrap: anywhere; }
.vd-cat-ficheiro-atual small { color: #5D6A63; }
.vd-cat-ficheiro-escolher { cursor: pointer; align-self: flex-start; }
.vd-cat-etiqueta-tipo { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #ECE6F8; color: #5B3FA0; font-size: 11px; font-weight: 700; vertical-align: middle; }
.pd-digital { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; }
.pd-digital > strong { display: flex; align-items: center; gap: 6px; }
.pd-digital-linha { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pd-digital-linha small { color: #5D6A63; }
@media (max-width: 480px) { .vd-cat-tipos { grid-template-columns: 1fr; } }
.vd-cat-protecao { display: flex; flex-direction: column; gap: 10px; }
.vd-cat-protecao > small { color: #5D6A63; font-size: 12px; }

/* ---------------------------------------------------------------- Bots (equipa de agentes de IA) */
.bt { display: flex; flex-direction: column; gap: 16px; }
.bt-migalha { margin: 0; font-size: 13px; color: #5D6A63; }
.bt-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bt-topo h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.bt-sub { margin: 4px 0 0; font-size: 14px; color: #5D6A63; max-width: 66ch; }
.bt-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #E3F1EA; color: #0B6B4B; }
.bt-avatar-apoio { background: #E4ECFA; color: #1F4E9E; }
.bt-avatar-recuperacao { background: #FCEFD9; color: #8A4300; }
.bt-avatar-especialista { background: #ECE6F8; color: #5B3FA0; }
.bt-plano { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bt-plano > div { flex: 1 1 280px; }
.bt-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bt-bot { display: flex; flex-direction: column; gap: 10px; }
.bt-bot.is-desligado { opacity: 0.72; }
.bt-bot-topo { display: flex; align-items: center; gap: 12px; }
.bt-bot-nome { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bt-bot-nome strong { font-size: 16px; overflow-wrap: anywhere; }
.bt-bot-nome small { font-size: 12.5px; color: #5D6A63; }
.bt-bot-desc, .bt-bot-colecoes { margin: 0; font-size: 13.5px; color: #3E4A44; }
.bt-bot-colecoes { display: flex; align-items: center; gap: 6px; color: #5B3FA0; }
.bt-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.bt-numeros > div { padding: 8px 10px; border-radius: 10px; background: #FAFAF7; border: 1px solid #EFEDE6; }
.bt-numeros dt { font-size: 11.5px; color: #5D6A63; }
.bt-numeros dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; }
.bt-numeros dd small { display: block; font-size: 11.5px; font-weight: 600; color: #0B6B4B; }
.bt-experimentar > summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--vendra-emerald); }
.bt-experimentar[open] { display: grid; gap: 8px; }
.bt-bot-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.bt-bot-acoes form { margin: 0; }
.bt-apagar { color: #A1271B; }
.bt-modelos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.bt-modelo { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; border: 1px solid #E4E2DA; border-radius: 14px; background: #FFFFFF; }
.bt-modelo-bots { margin: 0; padding-left: 18px; font-size: 13px; color: #3E4A44; }
.bt-modelo .vd-btn { align-self: flex-start; margin-top: auto; }
.bt-modelo-vazio { align-items: flex-start; justify-content: center; border-style: dashed; color: inherit; text-decoration: none; }
.bt-modelo-vazio:hover { background: #F4F3EE; }
.bt-resumo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bt-resumo strong { font-size: 18px; overflow-wrap: anywhere; }
.bt-escolhas { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) {
  .bt-topo h1 { font-size: 24px; }
  .bt-grelha, .bt-modelos-lista { grid-template-columns: 1fr; }
}
.bt-abas .vd-tab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.bt-res-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bt-res-topo .bt-sub { margin: 0; }
.bt-res-destaque { display: flex; flex-direction: row; align-items: center; gap: 16px; background: linear-gradient(135deg, #E3F1EA, #FFFFFF); }
.bt-res-destaque p { margin: 4px 0; font-size: 14.5px; }
.bt-res-grande { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #0B6B4B; }
.bt-res-numeros { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.vd-tabela-wrap { overflow-x: auto; }
.bt-res-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.bt-res-tabela th { text-align: left; font-size: 12px; font-weight: 700; color: #5D6A63; padding: 8px 10px; border-bottom: 1px solid #E4E2DA; white-space: nowrap; }
.bt-res-tabela td { padding: 10px; border-bottom: 1px solid #EFEDE6; vertical-align: top; }
.bt-res-tabela td small { color: #5D6A63; }
.bt-res-tabela tr.is-desligado { opacity: 0.65; }
.an-bot { margin-top: 12px; }
.an-bot > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.an-bot-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.an-bot-card .vd-campo { flex: 1 1 240px; margin: 0; }
.an-bot-card .vd-ajuda { flex: 1 1 100%; min-width: 0; margin: 0; overflow-wrap: anywhere; }
/* «A escrever…» do assistente ou de um bot, como no WhatsApp */
[data-chat-estado].is-a-escrever, [data-conversa-previa].is-a-escrever { color: #0B6B4B; font-weight: 700; font-style: italic; }
.bt-avatar-marketing { background: #FDE8E1; color: #A3401F; }

/* ---------------------------------------------------------------- Automações (editor em quadro, ao estilo do n8n) */
.au-mn { padding-bottom: 0; }
.au { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 120px); min-height: 560px; }
.au-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.au-voltar { white-space: nowrap; }
.au-nome { flex: 0 1 340px; min-width: 160px; height: 38px; padding: 0 12px; border: 1px solid #D6D3C8; border-radius: 10px; font: inherit; font-weight: 800; font-size: 16px; background: #fff; }
.au-guardado { font-size: 12.5px; color: #5D6A63; }
.au-espaco { flex: 1; }
.au-corpo { flex: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr) 290px; gap: 10px; min-height: 0; }
.au-paleta, .au-painel { background: #fff; border: 1px solid #E4E2DA; border-radius: 14px; padding: 10px; overflow: auto; }
.au-paleta h3 { margin: 10px 4px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5D6A63; }
.au-paleta h3:first-child { margin-top: 2px; }
.au-paleta-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; margin-bottom: 4px; border: 1px solid #EFEDE6; border-left-width: 4px; border-radius: 9px; background: #FAFAF7; font: inherit; font-size: 13px; text-align: left; cursor: grab; }
.au-paleta-item:hover:not(:disabled) { background: #F1F0EA; }
.au-paleta-item:disabled { opacity: .5; cursor: not-allowed; }
.au-paleta-item small { margin-left: auto; font-size: 10px; color: #5B3FA0; font-weight: 700; }
.au-cat-gatilho { border-left-color: #0B6B4B !important; }
.au-cat-mensagem { border-left-color: #1F4E9E !important; }
.au-cat-logica { border-left-color: #8A4300 !important; }
.au-cat-acao { border-left-color: #5B3FA0 !important; }
.au-quadro { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid #E4E2DA; background-color: #F7F6F1; background-image: radial-gradient(#D8D5CA 1px, transparent 1px); background-size: 20px 20px; touch-action: none; cursor: grab; }
.au-quadro:active { cursor: grabbing; }
.au-camada { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; }
.au-ligacoes { position: absolute; left: 0; top: 0; width: 6000px; height: 4000px; overflow: visible; pointer-events: none; }
.au-ligacao { fill: none; stroke: #6F7D76; stroke-width: 2.2; pointer-events: stroke; cursor: pointer; }
.au-ligacao:hover { stroke: #B4372E; stroke-width: 3; }
.au-ligacao.is-temporaria { stroke: #0B6B4B; stroke-dasharray: 6 4; pointer-events: none; }
.au-no { position: absolute; width: 200px; background: #fff; border: 1px solid #DAD7CC; border-top: 4px solid #6F7D76; border-radius: 12px; box-shadow: 0 6px 16px rgba(20, 30, 25, .08); font-size: 12.5px; user-select: none; cursor: move; }
.au-no.au-cat-gatilho { border-top-color: #0B6B4B; }
.au-no.au-cat-mensagem { border-top-color: #1F4E9E; }
.au-no.au-cat-logica { border-top-color: #8A4300; }
.au-no.au-cat-acao { border-top-color: #5B3FA0; }
.au-no.is-selecionado { outline: 2.5px solid #2ED39A; outline-offset: 1px; }
.au-no.tem-erro { box-shadow: 0 0 0 2px #E8A39C, 0 6px 16px rgba(20, 30, 25, .08); }
.au-no-topo { display: flex; align-items: center; gap: 7px; padding: 8px 10px 4px; }
.au-no-ic { display: inline-flex; color: #0B6B4B; }
.au-no-topo strong { font-size: 13px; }
.au-no-resumo { margin: 0; padding: 0 10px 6px; color: #5D6A63; font-size: 11.5px; overflow-wrap: anywhere; }
.au-entrada { position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #6F7D76; }
.au-saidas { list-style: none; margin: 0; padding: 4px 0 6px; border-top: 1px solid #EFEDE6; }
.au-saidas li { position: relative; padding: 3px 22px 3px 10px; text-align: right; color: #3E4A44; font-size: 11.5px; }
.au-porta { position: absolute; right: -7px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #0B6B4B; border: 2px solid #fff; box-shadow: 0 0 0 1px #0B6B4B; cursor: crosshair; }
.au-porta:hover { transform: scale(1.25); }
.au-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.au-dica { position: absolute; left: 12px; bottom: 8px; margin: 0; max-width: 60%; font-size: 11.5px; color: #8A958F; pointer-events: none; }
.au-painel { display: flex; flex-direction: column; gap: 10px; }
.au-painel-vazio, [data-au-painel-no] { display: flex; flex-direction: column; gap: 10px; }
[data-au-painel-no][hidden], .au-painel-vazio[hidden] { display: none; }
.au-painel-titulo { font-size: 15px; }
.au-painel .vd-campo textarea, .au-painel .vd-campo input, .au-painel .vd-campo select, .au-testar select { width: 100%; }
.au-erro { margin: 0; }
.au-painel-acoes { margin-top: auto; }
.au-testar { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid #EFEDE6; }
.au-baixo { max-height: 380px; overflow: auto; background: #fff; border: 1px solid #E4E2DA; border-radius: 14px; padding: 8px 12px; }
.au-contador { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: #EFEDE6; font-size: 11px; text-align: center; }
.au-problemas { margin: 6px 0; padding-left: 18px; }
.au-problemas li { margin-bottom: 4px; }
.au-ok { color: #0B6B4B; font-weight: 700; }
.au-exec { border-bottom: 1px solid #EFEDE6; padding: 6px 0; }
.au-exec summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; }
.au-exec summary small { color: #5D6A63; }
.au-passos { margin: 6px 0; padding-left: 20px; font-size: 12.5px; }
.au-passos li.is-erro { color: #A1271B; }
.au-passos li.is-saltou { color: #8A4300; }
.au-erros-lista { color: #A1271B; display: flex; align-items: center; gap: 4px; }
@media (max-width: 980px) {
  .au { height: auto; }
  .au-corpo { grid-template-columns: 1fr; }
  .au-paleta { display: flex; flex-wrap: wrap; gap: 4px; max-height: 180px; }
  .au-paleta h3 { flex-basis: 100%; }
  .au-paleta-item { width: auto; margin: 0; }
  .au-quadro { height: 460px; }
}
/* Automações a partir da conversa */
.vd-auto-botao.tem-auto { color: #0B6B4B; }
.vd-auto-seccao { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 8px; }
.vd-auto-seccao + .vd-auto-seccao { border-top: 8px solid #F0F2F5; }
.vd-auto-seccao h3 { margin: 0; font-size: 13px; font-weight: 600; color: #008069; text-transform: none; }
.vd-auto-nota { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: #667781; }
.vd-auto-item { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid #E9EDEF; border-radius: 10px; background: #FFFFFF; }
.vd-auto-item:hover { border-color: #C9D3CE; background: #FAFBFA; }
.vd-auto-texto { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-auto-texto strong { font-size: 14px; font-weight: 600; line-height: 1.3; color: #111B21; overflow-wrap: anywhere; }
.vd-auto-texto small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #667781; }
.vd-auto-ponto { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #25D366; }
.vd-auto-item.is-a-correr { border-color: #CDEBD9; background: #F3FBF6; }
.vd-auto-acao { flex: none; padding: 7px 14px; border: 1px solid #008069; border-radius: 999px; background: #FFFFFF; color: #008069; font-size: 13px; font-weight: 600; cursor: pointer; }
.vd-auto-acao:hover { background: #008069; color: #FFFFFF; }
.vd-auto-acao.is-parar { border-color: #E9EDEF; color: #B42318; }
.vd-auto-acao.is-parar:hover { background: #FDECEC; color: #B42318; }
.vd-auto-gerir { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 600; color: #008069; text-decoration: none; }
.vd-auto-gerir:hover { text-decoration: underline; }
.au-simulacao { list-style: none; margin: 6px 0; padding: 10px; border-radius: 12px; background: #ECE5DD; display: flex; flex-direction: column; gap: 6px; }
.au-simulacao li { max-width: 520px; padding: 6px 10px; border-radius: 10px; background: #fff; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.au-simulacao li.au-sim-msg { align-self: flex-end; background: #DCF8C6; }
.au-simulacao li.au-sim-acao { align-self: center; background: #FFF8E1; font-size: 12px; }
.au-simulacao small { color: #5D6A63; font-weight: 700; font-size: 11px; }
.au-sim-opcoes { display: flex; flex-wrap: wrap; gap: 4px; }
.au-sim-opcoes b { padding: 3px 8px; border-radius: 8px; background: #fff; color: #0B7AB8; font-size: 12px; }
.au-simulacao select { max-width: 260px; }

/* ============================================================================
 * Visão geral: topo, «para fazer agora», números de hoje, semana, listas e atalhos
 * ============================================================================ */
.vg { display: flex; flex-direction: column; gap: 20px; }
.vg-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.vg-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.vg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 0; font-size: 14px; color: #5D6A63; }
.vg-estado { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.vg-estado i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vg-estado.is-ativo { background: #E3F1EA; color: #0B6B4B; }
.vg-estado.is-pausa { background: #FFF1E1; color: #9A4A00; }
.vg-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-acoes form { margin: 0; }
.vg-acoes .vd-btn { display: inline-flex; align-items: center; gap: 6px; }

.vg-tarefas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vg-tarefa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #E4E2DA; color: #17231D; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vg-tarefa:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 32, 24, .07); }
.vg-tarefa-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.vg-tarefa-txt { flex: 1 1 auto; font-size: 14px; line-height: 1.3; }
.vg-tarefa-txt b { font-size: 16px; }
.vg-tarefa-seta { color: #9AA59F; }
.vg-tarefa.is-verde { border-color: #BFE3CF; } .vg-tarefa.is-verde .vg-tarefa-ic { background: #E3F1EA; color: #0B6B4B; }
.vg-tarefa.is-azul .vg-tarefa-ic { background: #E6EEFB; color: #1F4E9E; }
.vg-tarefa.is-ambar .vg-tarefa-ic { background: #FFF1E1; color: #9A4A00; }
.vg-tarefa.is-roxo .vg-tarefa-ic { background: #EFEAF9; color: #5B3FA0; }
.vg-tudo-em-dia { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #F2FAF6; border: 1px solid #CDEBD9; color: #1F3A2D; font-size: 14px; }
.vg-tudo-em-dia > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0B6B4B; color: #fff; }

.vg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vg-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border-radius: 16px; background: #fff; border: 1px solid #E4E2DA; min-width: 0; }
.vg-kpi-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.vg-kpi-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.vg-kpi-ic.is-verde { background: #E3F1EA; color: #0B6B4B; }
.vg-kpi-ic.is-azul { background: #E6EEFB; color: #1F4E9E; }
.vg-kpi-ic.is-ambar { background: #FFF1E1; color: #9A4A00; }
.vg-kpi-ic.is-roxo { background: #EFEAF9; color: #5B3FA0; }
.vg-kpi-rotulo { font-size: 13px; font-weight: 600; color: #5D6A63; }
.vg-kpi-valor { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.vg-kpi-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #5D6A63; }
.vg-delta { padding: 1px 7px; border-radius: 999px; font-weight: 800; font-size: 11.5px; }
.vg-delta.is-sobe { background: #E3F1EA; color: #0B6B4B; }
.vg-delta.is-desce { background: #FDECEC; color: #B42318; }

.vg-cartao-sub { margin: 4px 0 0; font-size: 13px; color: #5D6A63; }
.vg-cartao-sub strong { color: #17231D; }
.vg-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #0B6B4B; text-decoration: none; }
.vg-link:hover { text-decoration: underline; }

.vg-loja-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F4F2EC; color: #17231D; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.vg-loja-link svg { flex: none; color: #0B6B4B; }
.vg-loja-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-loja-acoes .vd-btn { display: inline-flex; align-items: center; gap: 6px; }
.vg-loja-numeros { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vg-loja-numeros div { padding: 12px; border-radius: 12px; border: 1px solid #ECEAE3; }
.vg-loja-numeros dt { font-size: 12px; color: #5D6A63; }
.vg-loja-numeros dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }

.vg-listas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.vg-vazio { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 12px; background: #F7F6F2; color: #5D6A63; font-size: 13.5px; }
.vg-vazio > span { color: #0B6B4B; }
.vg-encomendas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vg-encomendas li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEEBE3; }
.vg-encomendas li:first-child { border-top: 0; }
.vg-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #E3F1EA; color: #0B6B4B; font-weight: 800; }
.vg-encomenda-info { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; color: #17231D; text-decoration: none; }
.vg-encomenda-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-encomenda-info small { font-size: 12.5px; color: #5D6A63; }
.vg-encomenda-info:hover strong { color: #0B6B4B; }
.vg-encomenda-total { flex: none; font-weight: 800; font-size: 14px; }
.vg-encomendas form { margin: 0; flex: none; }
.vg-linha-tempo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vg-linha-tempo li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0 10px 4px; }
.vg-linha-tempo li::before { content: ""; position: absolute; left: 8px; top: 26px; bottom: -6px; width: 2px; background: #ECEAE3; }
.vg-linha-tempo li:last-child::before { display: none; }
.vg-ponto { position: relative; z-index: 1; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #2F8A66; box-shadow: 0 0 0 3px #fff; }
.vg-linha-tempo li.is-ambar .vg-ponto { background: #B45309; }
.vg-linha-tempo li.is-azul .vg-ponto { background: #1F4E9E; }
.vg-linha-tempo li.is-vermelho .vg-ponto { background: #A12A2A; }
.vg-linha-tempo li > div { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.vg-linha-tempo a { color: #17231D; text-decoration: none; font-size: 14px; }
.vg-linha-tempo a:hover { color: #0B6B4B; }
.vg-linha-tempo small { font-size: 12.5px; color: #5D6A63; overflow-wrap: anywhere; }
.vg-linha-tempo time { flex: none; font-size: 12px; color: #8A958F; white-space: nowrap; }

.vg-atalhos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.vg-atalhos a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #E4E2DA; color: #17231D; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: border-color .15s, transform .15s; }
.vg-atalhos a:hover { border-color: #0B6B4B; transform: translateY(-1px); }
.vg-atalhos a span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F4F2EC; color: #0B6B4B; }

@media (max-width: 1200px) {
  .vg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-atalhos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .vg-listas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vg-topo h1 { font-size: 24px; }
  .vg-acoes { width: 100%; }
  .vg-acoes .vd-btn, .vg-acoes form { flex: 1 1 auto; }
  .vg-acoes form .vd-btn { width: 100%; justify-content: center; }
  .vg-kpis { gap: 10px; }
  .vg-kpi { padding: 14px; }
  .vg-kpi-ic { width: 30px; height: 30px; }
  .vg-kpi-valor { font-size: 22px; }
  .vg-atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-encomenda-total { display: none; }
}

/* Puxar para atualizar (painel aberto como aplicação) */
html.vd-app, html.vd-app body { overscroll-behavior-y: contain; }
.vd-puxar { position: fixed; top: 6px; left: 50%; z-index: 9999; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0B6B4B; box-shadow: 0 4px 14px rgba(16, 32, 24, .22); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.vd-puxar-roda { display: grid; place-items: center; }
.vd-puxar.is-pronto { background: #0B6B4B; color: #fff; }
.vd-puxar.is-a-atualizar .vd-puxar-roda { animation: vdPuxarRodar .7s linear infinite; }
@keyframes vdPuxarRodar { to { transform: rotate(360deg); } }

/* ============================================================================
 * Verificação da loja (painel do lojista e administração)
 * ============================================================================ */
.vd-selo-verificado { flex: none; display: inline-block; vertical-align: middle; }
.vf { display: flex; flex-direction: column; gap: 18px; }
.vf-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.vf-topo p { margin: 6px 0 0; max-width: 72ch; color: #5D6A63; font-size: 14px; line-height: 1.5; }
.vf-estado { display: flex; gap: 18px; align-items: flex-start; }
.vf-estado h2 { margin: 0; font-size: 18px; }
.vf-estado p { margin: 6px 0 10px; color: #33413A; font-size: 14px; line-height: 1.5; }
.vf-estado.is-verificada { border-color: #9ED8BE; background: linear-gradient(135deg, #F2FBF6, #fff 60%); }
.vf-estado.is-analise { border-color: #F3D7A8; background: #FFFAF1; }
.vf-estado-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #FFF1E1; color: #9A4A00; }
.vf-lista-criterios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vf-lista-criterios li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEEBE3; }
.vf-lista-criterios li:first-child { border-top: 0; }
.vf-lista-criterios li > span:nth-child(2) { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.vf-lista-criterios small { color: #5D6A63; font-size: 12.5px; }
.vf-marca { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.vf-lista-criterios .is-ok .vf-marca { background: #E3F1EA; color: #0B6B4B; }
.vf-lista-criterios .is-falta .vf-marca { background: #FFF1E1; color: #9A4A00; }
.vf-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vf-opcao { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid #E4E2DA; border-radius: 14px; cursor: pointer; }
.vf-opcao:has(input:checked) { border-color: #0B6B4B; background: #F2FBF6; }
.vf-opcao input { margin-top: 3px; accent-color: #0B6B4B; }
.vf-opcao span { display: flex; flex-direction: column; }
.vf-opcao small { color: #5D6A63; font-size: 12.5px; }
.vf-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.vf-contador { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #F4F2EC; color: #5D6A63; font-size: 12px; font-weight: 800; }
.vf-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.vf-doc-envio { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #D5D1C5; border-radius: 14px; background: #FCFBF8; cursor: pointer; transition: border-color .15s, background .15s; }
.vf-doc-envio:hover { border-color: #0B6B4B; }
.vf-doc-envio.is-enviado { border-style: solid; border-color: #9ED8BE; background: #F2FBF6; }
.vf-doc-envio.is-erro { border-color: #E5A3A3; background: #FDF3F3; }
.vf-doc-envio.is-a-enviar { opacity: .6; pointer-events: none; }
.vf-doc-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F4F2EC; color: #5D6A63; }
.vf-doc-envio.is-enviado .vf-doc-ic { background: #0B6B4B; color: #fff; }
.vf-doc-txt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.vf-doc-txt small { color: #5D6A63; font-size: 12.5px; overflow-wrap: anywhere; }
.vf-declaracao { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.vf-declaracao input { margin-top: 3px; accent-color: #0B6B4B; }
.vf-form { display: flex; flex-direction: column; gap: 18px; }
.vf-form .vd-btn-primario { display: inline-flex; align-items: center; gap: 8px; }

/* Administração */
.vf-grelha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.vf-sub { margin: 16px 0 6px; font-size: 14px; }
.vf-criterios, .vf-checklist { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.vf-criterios small { display: block; color: #5D6A63; margin-left: 20px; }
.vf-criterios .is-ok b { color: #0B6B4B; }
.vf-criterios .is-falta b { color: #B42318; }
.vf-checklist li { position: relative; padding-left: 22px; color: #33413A; }
.vf-checklist li::before { content: "□"; position: absolute; left: 0; color: #0B6B4B; font-weight: 800; }
.vf-decisao { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.vf-botoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vf-documentos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vf-doc { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vf-doc figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.vf-doc img { width: 100%; height: 200px; object-fit: contain; border-radius: 12px; border: 1px solid #E4E2DA; background: #F7F6F2; }
.vf-doc-pdf { display: grid; place-items: center; height: 200px; border-radius: 12px; border: 1px dashed #D5D1C5; background: #F7F6F2; font-weight: 700; color: #0B6B4B; text-decoration: none; }
@media (max-width: 900px) { .vf-grelha { grid-template-columns: minmax(0, 1fr); } }
.vf-doc img { display: block; }
.vf-doc figcaption a { white-space: nowrap; flex-shrink: 0; }
.vd-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-tabela th { text-align: left; font-size: 12px; font-weight: 700; color: #6B746F; text-transform: uppercase; letter-spacing: .04em; padding: 0 12px 10px; border-bottom: 1px solid #E4E2DA; }
.vd-tabela td { padding: 12px; border-bottom: 1px solid #EFEDE6; vertical-align: middle; }
.vd-tabela tr:last-child td { border-bottom: 0; }
.vd-tabela td:last-child { text-align: right; }
.vd-tabela .vd-selo-verificado { vertical-align: -2px; }
@media (max-width: 700px) {
  .vd-tabela thead { display: none; }
  .vd-tabela tr { display: block; padding: 10px 0; border-bottom: 1px solid #EFEDE6; }
  .vd-tabela td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .vd-tabela td[data-rotulo]::before { content: attr(data-rotulo); color: #6B746F; font-size: 13px; text-align: left; }
  .vd-tabela td:last-child { justify-content: flex-end; padding-top: 8px; }
}
