/* ============================================================
   Cabeçalho padrão — mesma faixa, mesma logo, mesmas ações.
   Carregado por todas as páginas. Usa #hordely-ui para vencer o DS.
   ============================================================ */
#hordely-ui .header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
}

#hordely-ui .header-top {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#hordely-ui .header-brand {
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

/* A logo identifica a loja: sem repetir o nome no cabeçalho. */
#hordely-ui .header-brand .brand-header-text {
  display: none !important;
}

#hordely-ui[data-page="pedido"] .logo .brand-copy {
  display: none !important;
}

#hordely-ui .header-brand .brand-header-logo,
#hordely-ui .header .logo img.logo-image,
#hordely-ui .header .logo-image {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 2px !important;
  flex: 0 0 auto !important;
}

#hordely-ui .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#hordely-ui .header .btn,
#hordely-ui .header .btn-sm,
#hordely-ui .header .logout-btn {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}

@media (max-width: 640px) {
  #hordely-ui .header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 12px !important;
  }

  #hordely-ui .header-brand .brand-header-logo,
  #hordely-ui .header .logo-image {
    height: 34px !important;
    max-width: 110px !important;
  }
}
