/* HomeFix · Análises visuais (7.6.26) — Manual de Marca: vermelho #D8101A, grafite #3C3C3B, cinza #A8A8A8, branco.
   Títulos em Bebas Neue, textos em Metropolis, números na fonte de dados (Inter em teste). */
.hf-an-host { min-width: 0; margin-top: 18px; }
#screen-equipe .hf-an-host { margin-top: 0; }
.hf-an-card { position: relative; min-width: 0; padding: 20px 22px 16px; border: 1px solid #E4E4E4; border-top: 4px solid #D8101A; border-radius: 20px; background: #FFFFFF; color: #3C3C3B; }
.hf-an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hf-an-head p { margin: 0; color: #A8A8A8; font: 700 10px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .18em; text-transform: uppercase; }
.hf-an-head h3 { margin: 3px 0 4px; color: #3C3C3B; font: 400 30px/1 var(--hf-fonte-titulo, 'Bebas Neue', Impact, sans-serif); letter-spacing: .02em; text-transform: uppercase; }
.hf-an-head span { display: block; max-width: 900px; color: #6B6B6A; font-size: 12.5px; line-height: 1.45; }
.hf-an-acoes { display: flex; flex: none; gap: 8px; }
.hf-an-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid #D7D7D7; border-radius: 10px; background: #FFFFFF; color: #3C3C3B; font: 700 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.hf-an-btn svg { width: 16px; height: 16px; }
.hf-an-btn:hover { border-color: #D8101A; color: #D8101A; }
.hf-an-btn:disabled { opacity: .55; cursor: progress; }

.hf-an-filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px 12px; margin: 16px 0 6px; padding: 12px 14px; border-radius: 14px; background: #F6F6F6; }
.hf-an-campo { display: grid; gap: 4px; min-width: 0; color: #3C3C3B; font: 700 10px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .05em; text-transform: uppercase; }
.hf-an-campo[hidden] { display: none; }
.hf-an-campo select, .hf-an-campo input { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid #A8A8A8; border-radius: 10px; background: #FFFFFF; color: #3C3C3B; font: 500 12.5px var(--hf-fonte-dados, Inter, Metropolis, Arial, sans-serif); letter-spacing: 0; text-transform: none; }
.hf-an-campo select:disabled { background: #EFEFEF; color: #8A8A89; }
.hf-an-chks { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; grid-column: 1 / -1; }
.hf-an-chk { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: #3C3C3B; font: 500 12.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-an-chk input { width: 17px; height: 17px; accent-color: #D8101A; }

.hf-an-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: 12.5px; }
.hf-an-trilha[hidden] { display: none; }
.hf-an-trilha button { min-height: 32px; padding: 0 12px; border: 1px solid #D7D7D7; border-radius: 999px; background: #FFFFFF; color: #3C3C3B; font: 700 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-an-trilha button:hover { border-color: #D8101A; color: #D8101A; }
.hf-an-trilha button[aria-current="true"] { background: #3C3C3B; border-color: #3C3C3B; color: #FFFFFF; }
.hf-an-trilha span { color: #A8A8A8; }

.hf-an-resumo { margin: 8px 0 4px; padding: 10px 14px 10px 16px; border-radius: 12px; background: #FFF6F6; box-shadow: inset 4px 0 0 #D8101A; color: #3C3C3B; font-size: 13px; line-height: 1.5; }
.hf-an-resumo:empty { display: none; }
.hf-an-resumo small { color: #6B6B6A; }

.hf-an-grafico { position: relative; min-width: 0; margin-top: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hf-an-grafico svg { display: block; max-width: none; user-select: none; -webkit-user-select: none; }
.hf-an-grafico svg text { font-variant-numeric: tabular-nums; }
.hf-an-alvo { cursor: pointer; transition: opacity .12s ease; }
.hf-an-alvo:hover { opacity: .86; }
.hf-an-clicavel:hover { stroke: #3C3C3B; stroke-width: 2.5; }
.hf-an-vazio { padding: 30px 20px; border: 1px dashed #A8A8A8; border-radius: 14px; background: #FAFAFA; color: #3C3C3B; font-size: 13px; text-align: center; line-height: 1.5; }

.hf-an-detalhe { margin-top: 12px; padding: 14px 16px; border: 1px solid #E4E4E4; border-left: 4px solid #3C3C3B; border-radius: 14px; background: #FFFFFF; }
.hf-an-detalhe[hidden] { display: none; }
.hf-an-detalhe header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #3C3C3B; font: 800 14px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); text-transform: capitalize; }
.hf-an-x { width: 36px; height: 36px; border: 1px solid #D7D7D7; border-radius: 10px; background: #FFFFFF; color: #3C3C3B; font: 700 20px/1 Arial, sans-serif; cursor: pointer; }
.hf-an-x:hover { border-color: #D8101A; color: #D8101A; }
.hf-an-det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.hf-an-det-grid > div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #F6F6F6; }
.hf-an-det-grid span { color: #6B6B6A; font: 700 10.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .05em; text-transform: uppercase; }
.hf-an-det-grid b { font: 800 18px var(--hf-fonte-dados, Inter, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.hf-an-det-grid small { color: #6B6B6A; font-size: 11.5px; }
.hf-an-det-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: an; }
.hf-an-det-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #EFEFEF; font-size: 12.5px; counter-increment: an; }
.hf-an-det-lista li::before { content: counter(an); flex: none; width: 20px; color: #D8101A; font-weight: 800; }
.hf-an-det-lista li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-an-det-lista li small { color: #8A8A89; }
.hf-an-det-lista li b { font-family: var(--hf-fonte-dados, Inter, Arial, sans-serif); font-variant-numeric: tabular-nums; }

.hf-an-tabela { margin-top: 10px; }
.hf-an-tabela > summary { display: inline-flex; align-items: center; min-height: 34px; color: #3C3C3B; font: 700 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-an-tabela > summary:hover { color: #D8101A; }
.hf-an-tabela-scroll { position: relative; max-height: 380px; overflow: auto; border: 1px solid #E4E4E4; border-radius: 12px; }
.hf-an-tabela table { width: 100%; border-collapse: collapse; font: 12px var(--hf-fonte-dados, Inter, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.hf-an-tabela th { position: sticky; top: 0; padding: 9px 10px; border-bottom: 2px solid #3C3C3B; background: #FFFFFF; color: #6B6B6A; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.hf-an-tabela td { padding: 7px 10px; border-bottom: 1px solid #EFEFEF; color: #3C3C3B; white-space: nowrap; }
.hf-an-tabela .n { text-align: right; }
.hf-an-tabela tbody tr:hover td { background: #F7F7F7; }

.hf-an-tip { position: fixed; z-index: 10050; max-width: 320px; padding: 10px 12px; border-radius: 10px; background: rgba(60, 60, 59, .97); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); color: #FFFFFF; font: 12px/1.5 var(--hf-fonte-dados, Inter, Arial, sans-serif); pointer-events: none; }
.hf-an-tip[hidden] { display: none; }
.hf-an-tip b { font-weight: 700; }
.hf-an-tip i { color: #D7D7D7; font-style: normal; font-size: 11px; }
.hf-an-tip small { color: #D7D7D7; }

@media (max-width: 860px) {
  .hf-an-card { padding: 16px 14px 12px; border-radius: 18px; }
  .hf-an-head { flex-direction: column; gap: 10px; }
  .hf-an-head h3 { font-size: 26px; }
  .hf-an-acoes { width: 100%; }
  .hf-an-acoes .hf-an-btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .hf-an-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .hf-an-chks { flex-direction: column; align-items: flex-start; }
  .hf-an-chk { min-height: 40px; }
  .hf-an-campo select, .hf-an-campo input { min-height: 44px; }
  .hf-an-trilha button { min-height: 40px; }
  .hf-an-x { width: 44px; height: 44px; }
}
@media (max-width: 420px) { .hf-an-filtros { grid-template-columns: minmax(0, 1fr); } }
@media print { .hf-an-host { display: none !important; } }
/* Produtos vendidos mostra só o painel novo (web component); o mix entra logo abaixo dele */
#screen-produtos.phase4-enabled > #hfAn-mix { display: block !important; }

/* filtros recolhíveis: abertos no computador, fechados no celular */
.hf-an-filtros-box { margin: 14px 0 6px; border-radius: 14px; background: #F6F6F6; }
.hf-an-filtros-box > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; color: #3C3C3B; font: 800 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.hf-an-filtros-box > summary::-webkit-details-marker { display: none; }
.hf-an-filtros-box > summary::after { content: '▾'; margin-left: auto; color: #A8A8A8; font-size: 14px; transition: transform .15s ease; }
.hf-an-filtros-box[open] > summary::after { transform: rotate(180deg); }
.hf-an-filtros-box > summary svg { width: 16px; height: 16px; color: #D8101A; }
.hf-an-filtros-box > summary small { color: #D8101A; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hf-an-filtros-box .hf-an-filtros { margin: 0; padding-top: 2px; background: transparent; }
.hf-an-deslize { position: sticky; left: 0; margin: 6px 0 0; color: #8A8A89; font-size: 11.5px; text-align: center; }
@media (max-width: 860px) { .hf-an-filtros-box > summary { min-height: 48px; } }

/* 7.6.30 · perfil: escolher quem entra no gráfico */
.hf-an-pessoas { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid #E3E3E3; }
.hf-an-pessoas:empty { display: none; }
.hf-an-pessoas-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 12.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); color: #3C3C3B; }
.hf-an-pessoas-topo b { font: 700 12.5px var(--hf-fonte-dados, Inter, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.hf-an-pessoas-topo button { min-height: 30px; padding: 4px 10px; border: 0; background: none; color: #D8101A; font: 600 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hf-an-pessoas-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-an-pessoa { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 12px; border: 1px solid #A8A8A8; border-radius: 999px; background: #FFFFFF; color: #3C3C3B; font: 500 12.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hf-an-pessoa i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.hf-an-pessoa[aria-pressed="false"] { border-style: dashed; background: transparent; color: #8A8A8A; text-decoration: line-through; }
.hf-an-pessoa[aria-pressed="false"] i { background: #CFCFCF !important; }
.hf-an-pessoa:hover { border-color: #3C3C3B; }
.hf-an-pessoa:focus-visible, .hf-an-pessoas-topo button:focus-visible { outline: 2px solid #D8101A; outline-offset: 2px; }
@media (max-width: 640px) { .hf-an-pessoa { min-height: 40px; } }
@media print { .hf-an-pessoas { display: none; } }

/* ===================================================================== 7.6.46 · editor de imagem (popup) */
body.hf-im-aberto { overflow: hidden; }
.hf-im-fundo { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(30, 30, 29, .62); }
.hf-im { display: flex; flex-direction: column; width: min(1240px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 20px; background: #FFFFFF; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.hf-im-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #3C3C3B; color: #FFFFFF; border-top: 5px solid #D8101A; }
.hf-im-head p { margin: 0; color: rgba(255, 255, 255, .66); font: 800 10.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .14em; text-transform: uppercase; }
.hf-im-head h3 { margin: 4px 0 0; font: 400 28px/1.05 'Bebas Neue', Arial, sans-serif; letter-spacing: .01em; }
.hf-im-x { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: transparent; color: #FFFFFF; font: 400 26px/1 Arial, sans-serif; cursor: pointer; }
.hf-im-x:hover { background: #FFFFFF; color: #3C3C3B; }
.hf-im-corpo { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; min-height: 0; overflow: auto; padding: 18px 20px; }
.hf-im-ctl { display: grid; align-content: start; gap: 14px; min-width: 0; }
.hf-im-campo { display: grid; gap: 5px; color: #3C3C3B; font: 700 10.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.hf-im-campo input, .hf-im-campo select { min-height: 44px; padding: 8px 10px; border: 1px solid #CFCFCF; border-radius: 10px; background: #FFFFFF; color: #3C3C3B; font: 600 14px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: 0; text-transform: none; }
.hf-im-grupo { min-width: 0; margin: 0; padding: 0; border: 0; }
.hf-im-grupo[hidden] { display: none; }
.hf-im-grupo legend { margin-bottom: 6px; padding: 0; color: #3C3C3B; font: 700 10.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.hf-im-grupo small { display: block; margin-top: 5px; color: #6B6B6A; font: 500 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-im-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-im-seg label { position: relative; }
.hf-im-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hf-im-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid #CFCFCF; border-radius: 999px; background: #FFFFFF; color: #3C3C3B; font: 700 13px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-im-seg input:checked + span { border-color: #3C3C3B; background: #3C3C3B; color: #FFFFFF; }
.hf-im-seg input:focus-visible + span, .hf-im-chk input:focus-visible + span { outline: 3px solid #D8101A; outline-offset: 2px; }
.hf-im-chks { display: grid; gap: 6px; }
.hf-im-chk { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border: 1px solid #E2E2E2; border-radius: 10px; color: #3C3C3B; font: 600 13px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-im-chk:has(input:checked) { border-color: #3C3C3B; background: #F4F4F4; }
.hf-im-chk input { width: 18px; height: 18px; accent-color: #3C3C3B; }
.hf-im-nota { margin: 0; padding: 10px 12px; border-radius: 10px; background: #F4F4F4; color: #3C3C3B; font: 500 12.5px/1.45 var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-im-link { justify-self: start; min-height: 40px; padding: 0 2px; border: 0; background: transparent; color: #3C3C3B; font: 700 12.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hf-im-status { display: grid; gap: 6px; }
.hf-im-status:empty { display: none; }
.hf-im-status span { padding: 8px 10px; border-left: 3px solid #D8101A; border-radius: 8px; background: #FFF4F4; color: #3C3C3B; font: 600 12.5px/1.4 var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-im-previa { position: sticky; top: 0; align-self: start; margin: 0; min-width: 0; }
.hf-im-tela { position: relative; display: grid; place-items: center; max-height: calc(100vh - 260px); overflow: hidden; border: 1px solid #DADADA; border-radius: 14px; background: #F4F4F4; }
.hf-im-tela img { display: block; max-width: 100%; max-height: calc(100vh - 262px); width: auto; height: auto; }
.hf-im-tela img:not([src]) { visibility: hidden; min-height: 300px; }
.hf-im-carregando { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(244, 244, 244, .8); color: #3C3C3B; font: 600 13px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-im-carregando[hidden] { display: none; }
.hf-im-previa figcaption { margin-top: 8px; color: #6B6B6A; font: 500 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); text-align: center; }
.hf-im-pe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #EEEEEE; }
.hf-im-pe .hf-an-btn { min-height: 44px; }
.hf-im-pe .hf-an-btn[hidden] { display: none; }
.hf-im-baixar { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #D8101A; color: #FFFFFF; font: 800 13.5px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); cursor: pointer; }
.hf-im-baixar:disabled, .hf-im-pe .hf-an-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 860px) {
  .hf-im-fundo { padding: 0; }
  .hf-im { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .hf-im-corpo { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .hf-im-previa { position: static; order: -1; }
  .hf-im-tela, .hf-im-tela img { max-height: 46vh; }
  .hf-im-seg span, .hf-im-chk, .hf-im-link { min-height: 44px; }
  .hf-im-campo input, .hf-im-campo select { font-size: 16px; }
  .hf-im-pe { padding: 10px 16px; } .hf-im-pe > * { flex: 1 1 auto; }
}
.hf-im-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: #3C3C3B; font: 700 13px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-im-nav[hidden] { display: none; }
.hf-im-nav .hf-an-btn { min-width: 44px; min-height: 40px; justify-content: center; font-size: 18px; }
@media (max-width: 860px) { .hf-im-nav .hf-an-btn { min-height: 44px; } }

/* ===================================================================== 7.6.48 · aba Gráficos */
.hf-gr { display: grid; gap: 16px; }
.hf-gr #hfGraficos, .hf-gr > .card { margin: 0; }
.hf-gr-hero span { display: block; max-width: 760px; color: rgba(255, 255, 255, .78); font: 500 13px/1.5 var(--hf-fonte-marca, Metropolis, Arial, sans-serif); }
.hf-gr-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hf-gr-cel { min-width: 0; }
.hf-gr-cel > .hf-an-card { height: 100%; margin: 0; }
@media (min-width: 1180px) { .hf-gr-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hf-gr-cel.largo { grid-column: 1 / -1; } }

/* paleta de cores do editor de imagem */
.hf-im-paletas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.hf-im-pal { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid #CFCFCF; border-radius: 12px; background: #FFFFFF; cursor: pointer; }
.hf-im-pal input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hf-im-pal b { font: 700 12px var(--hf-fonte-marca, Metropolis, Arial, sans-serif); color: #3C3C3B; }
.hf-im-amostra { display: inline-flex; flex: none; }
.hf-im-amostra i { width: 14px; height: 24px; display: block; }
.hf-im-amostra i:first-child { border-radius: 6px 0 0 6px; }
.hf-im-amostra i:last-child { border-radius: 0 6px 6px 0; }
.hf-im-pal:has(input:checked) { border-color: #3C3C3B; box-shadow: 0 0 0 2px #3C3C3B; }
.hf-im-pal:has(input:focus-visible) { outline: 3px solid #D8101A; outline-offset: 2px; }
