/* SouPrimeiroAC V22.2.66 / build 2287 — logos oficiais + B&H leitura */
/* Marca oficial: site dark usa somente aplicações fornecidas para fundo preto. */
.official-auth-brand{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.official-auth-logo{display:block;width:min(520px,88%);max-height:210px;object-fit:contain;object-position:left center}
.official-logo-preset-grid button{min-height:112px!important;padding:10px!important;display:grid!important;grid-template-rows:72px auto!important;gap:7px!important;align-items:center!important}
.official-logo-preset-grid button>img{display:block;width:100%!important;height:72px!important;object-fit:contain!important;filter:none!important;mix-blend-mode:normal!important}
.official-logo-preset-grid button>span{font-size:.72rem;line-height:1.15}
.identity-preview-logo{background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important}
.identity-preview-logo #identityPreviewBrandMark{display:none!important}
.brand-mark.brand-mark-logo img{object-fit:contain!important;filter:none!important}
/* B&H: depois da escolha, a ficha vira a área prioritária e rola dentro do modal. */
#bhImportDialog .bh-catalog-card{height:min(94dvh,920px);max-height:94dvh;overflow:auto;overscroll-behavior:contain}
#bhImportDialog .bh-lookup-layout{min-height:0}
#bhImportDialog .bh-preview-pane{min-height:310px;overflow:hidden}
#bhImportDialog .bh-selected-details{min-height:0;max-height:52dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:18px}
#bhImportDialog.has-selected-product .bh-result-summary{margin-block:8px}
#bhImportDialog.has-selected-product .bh-result-summary.selection-collapsed .bh-lookup-results{max-height:68px;padding:6px 9px}
#bhImportDialog.has-selected-product .bh-result-summary.selection-collapsed .bh-result-card.active{padding:8px 10px;min-height:48px}
#bhImportDialog.has-selected-product .bh-preview-pane{border-color:rgba(255,212,0,.62);box-shadow:0 0 0 1px rgba(255,212,0,.08) inset}
#bhImportDialog.has-selected-product .bh-pane-head{position:sticky;top:0;z-index:4;background:#111419;border-bottom:1px solid #2f3238}
#bhImportDialog .bh-product-visual{align-items:start}
#bhImportDialog .bh-dialog-footer{position:sticky;bottom:0;z-index:8;background:linear-gradient(180deg,rgba(10,11,13,.94),#0a0b0d 22%);padding-top:10px}
@media(max-width:820px){
  .official-auth-logo{width:min(360px,94%);max-height:150px}
  .official-logo-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #bhImportDialog .bh-catalog-card{height:95dvh;max-height:95dvh}
  #bhImportDialog .bh-selected-details{max-height:54dvh}
  #bhImportDialog.has-selected-product .bh-result-summary-head{padding:8px 11px}
  #bhImportDialog.has-selected-product .bh-result-summary.selection-collapsed .bh-lookup-results{max-height:62px}
}

/* Aplicações secundárias aprovadas por ambiente. */
.section-brand-logo{display:block;width:min(220px,56vw);height:54px;object-fit:contain;object-position:left center;margin:0 0 8px;filter:none!important}
.dashboard-brand-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px}
.dashboard-section-logo{width:min(190px,28vw);height:72px;order:2;margin:0;object-position:right center;opacity:.96}
@media(max-width:720px){.section-brand-logo{width:min(170px,52vw);height:46px}.dashboard-brand-hero{grid-template-columns:1fr}.dashboard-section-logo{display:none}}
