/* ============================================================
   EuPedi — Logos oficiais (assets/img)
   Usar SOMENTE em fundos brancos ou claros (#fff, #f5f7fa, etc.)
   ============================================================ */

.brand-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Bloqueio: nunca exibir logo em painéis escuros/coloridos */
.auth-brand .brand-img,
.cta-band .brand-img,
.top-banner .brand-img {
  display: none !important;
}

/* Envoltório opcional para áreas claras */
.brand-on-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}

/* logo.png — marca completa (vertical) */
.brand-img--full { height: 52px; width: auto; max-width: 160px; }
.brand-img--full-md { height: 64px; max-width: 200px; }
.brand-img--full-lg { height: 80px; max-width: 240px; }

/* logo-nome.png — só texto (horizontal) */
.brand-img--name { height: 24px; width: auto; max-width: 160px; }
.brand-img--name-md { height: 28px; max-width: 180px; }
.brand-img--name-lg { height: 34px; max-width: 220px; }

/* logo-logo.png — símbolo */
.brand-img--mark { height: 36px; width: auto; }
.brand-img--mark-sm { height: 28px; width: auto; }
.brand-img--mark-md { height: 44px; width: auto; }
.brand-img--mark-lg { height: 52px; width: auto; }

/* logo-bot.png — mascote (uso pontual em chatbot) */
.brand-img--bot { height: 56px; width: auto; }
.brand-img--bot-md { height: 72px; width: auto; }
.brand-img--bot-lg { height: 96px; width: auto; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-lockup--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.brand-lockup--center {
  align-items: center;
  text-align: center;
}

/* Sidebar painel */
.sidebar-brand .brand-lockup { width: 100%; }
.brand-img--sidebar-full {
  height: 72px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.brand-img--regional {
  height: 72px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.brand-regional-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #0f172a);
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding: 4px 2px;
}
.sidebar-brand-rest .brand-regional-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-brand-rest .brand-lockup--stack {
  align-items: center;
  width: 100%;
}

/* Formulário mobile (login/cadastro) — fundo claro */
.auth-panel-brand {
  display: none;
  justify-content: center;
  margin-bottom: 22px;
}

.brand-img--panel-full {
  height: 56px;
  width: auto;
  max-width: 180px;
}

/* Site institucional */
.site-logo { display: flex; align-items: center; }
.brand-img--nav-full {
  height: 48px;
  width: auto;
  max-width: 140px;
}

.brand-img--footer-full {
  height: 56px;
  width: auto;
  max-width: 160px;
  opacity: .92;
}

/* Chatbot — mascote flutuante (só logo-bot) */
.chatbot-brand-float {
  position: absolute;
  top: -24px;
  right: -8px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(220, 38, 38, .22));
}

.chatbot-brand-float .brand-img--bot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Staff login — powered by */
.staff-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 11px;
  color: var(--muted, #64748b);
}

.staff-powered-by .brand-img--powered {
  height: 36px;
  width: auto;
  max-width: 120px;
  opacity: .85;
}

/* WhatsApp / chatbot painel */
.wa-chatbot-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-img--wa-full {
  height: 64px;
  width: auto;
  max-width: 140px;
  flex-shrink: 0;
}

.brand-img--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Preview mock dashboard (site) — só símbolo */
.dash-sidebar-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-img--sidebar-full { height: 60px; }
  .brand-img--nav-full { height: 42px; max-width: 120px; }
  .brand-img--panel-full { height: 48px; }
  .chatbot-brand-float { width: 64px; height: 64px; top: -16px; right: -4px; }
}
