/* Placar comercial (TV) · identidade Master Diagnóstica: #005177 dominante, #0094c8, verde #a6ca3e, texto #003f60/branco; Dosis nos títulos e números.
   Palco de 1080 de altura lógica (ou 1920 de largura) escalado para a tela, com a largura e a altura esticadas até as bordas: sem faixas vazias nas laterais
   em telas mais largas que 16:9 (as colunas são proporcionais). Cores sólidas (sem gradiente na interface). */
:root {
  --fundo: #003f60; --painel: #005177; --painel-2: #0a4d6e; --azul: #0094c8; --verde: #a6ca3e; --verde-txt: #99c85b; --branco: #fff;
  --suave: rgba(255, 255, 255, .72); --fraco: rgba(255, 255, 255, .45); --linha: rgba(255, 255, 255, .12);
  --ouro: #f2c14e; --prata: #d4dde2; --bronze: #d39a62; --raio: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fundo); overflow: hidden; color: var(--branco); }
body { font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.dosis, .titulo, .num, h2, .festa-tit, .festa-nome { font-family: Dosis, system-ui, sans-serif; }
#palco { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; padding: 20px 26px 0; display: grid; grid-template-rows: 104px 326px 1fr 62px; gap: 18px; }

/* ---------- cabeçalho ---------- */
.cab { display: grid; grid-template-columns: minmax(430px, .9fr) 1.6fr minmax(380px, .8fr); align-items: center; gap: 40px; }
.asa { width: 54px; height: 54px; flex: none; }
.marca { display: flex; align-items: center; gap: 18px; }
.titulo { font-size: 58px; font-weight: 800; letter-spacing: -.02em; line-height: .95; }
.sub { font-size: 21px; color: var(--suave); margin-top: 6px; }
.mesbox .mesnome { font-family: Dosis, system-ui, sans-serif; font-size: 34px; font-weight: 700; text-transform: capitalize; display: flex; justify-content: space-between; align-items: baseline; }
.mesbox .mesnome small { font-size: 22px; font-weight: 600; color: var(--suave); text-transform: none; }
.trilho { position: relative; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin: 10px 0 0; overflow: hidden; }
.trilho i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--azul); border-radius: 99px; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.trilho b { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .35); }
.relogio { text-align: right; }
.relogio .hora { font-family: Dosis, system-ui, sans-serif; font-size: 66px; font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }
.relogio .dia { font-size: 21px; color: var(--suave); margin-top: 6px; }
.relogio .dados { font-size: 17px; color: var(--fraco); margin-top: 2px; }

/* ---------- cartões ---------- */
.herois { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 18px; min-width: 0; }
.cartao { background: var(--painel); border-radius: var(--raio); padding: 20px 24px; position: relative; overflow: hidden; border: 1px solid var(--linha); min-width: 0; }
.rotulo { font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heroi { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: center; }
.heroi .rotulo { grid-column: 1 / -1; margin-bottom: -10px; }
.anel { width: 172px; height: 172px; position: relative; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.anel .arco { transition: stroke-dashoffset 2.2s cubic-bezier(.2, .8, .2, 1); }
.anel .centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anel .centro .num { font-size: 52px; font-weight: 800; line-height: .9; letter-spacing: -.02em; }
.anel .centro small { font-size: 15px; color: var(--suave); margin-top: 4px; }
.kpis { display: flex; flex-direction: column; gap: 12px; }
.kpi .v { font-family: Dosis, system-ui, sans-serif; font-size: 34px; font-weight: 800; line-height: 1; white-space: nowrap; }
.kpi .v.medio { font-size: 26px; }
.kpi .l { font-size: 16px; color: var(--suave); margin-top: 3px; }
.selo { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: 15px; font-weight: 700; background: rgba(255, 255, 255, .12); }
.selo.ok { background: var(--verde); color: #003f60; }
.selo.ritmo { background: var(--azul); }
.verde { color: var(--verde-txt); }

/* ---------- pódio ---------- */
.podio { padding: 20px 22px 0; display: flex; flex-direction: column; }
.podio .topo-p { display: flex; justify-content: space-between; align-items: baseline; }
.podio .topo-p .dica { white-space: nowrap; font-size: 16px; color: var(--fraco); }
.degraus { flex: 1; display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 18px; margin-top: 4px; }
.lugar { display: flex; flex-direction: column; align-items: center; text-align: center; animation: sobe 1.2s cubic-bezier(.2, .9, .3, 1.2) both; }
.lugar.p1 { animation-delay: .5s; } .lugar.p2 { animation-delay: .2s; } .lugar.p3 { animation-delay: .8s; }
@keyframes sobe { from { transform: translateY(140px); opacity: 0; } to { transform: none; opacity: 1; } }
.avatar { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Dosis, system-ui, sans-serif; font-weight: 800; font-size: 28px; color: #003f60; position: relative; box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); }
.p1 .avatar { width: 74px; height: 74px; font-size: 30px; }
.avatar.ouro { background: var(--ouro); } .avatar.prata { background: var(--prata); } .avatar.bronze { background: var(--bronze); }
.p1 .avatar::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--ouro); animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.lugar .nome { font-family: Dosis, system-ui, sans-serif; font-size: 28px; font-weight: 800; margin-top: 6px; line-height: 1; white-space: nowrap; }
.lugar .pct { font-family: Dosis, system-ui, sans-serif; font-size: 36px; font-weight: 800; line-height: 1.05; }
.lugar .falta { font-size: 16px; color: var(--suave); }
.degrau { width: 100%; margin-top: 6px; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: center; font-family: Dosis, system-ui, sans-serif; font-size: 34px; line-height: 1; font-weight: 800; padding-top: 4px; color: rgba(255, 255, 255, .9); }
.p1 .degrau { height: 56px; background: var(--azul); } .p2 .degrau { height: 40px; background: #0a6f9c; font-size: 28px; } .p3 .degrau { height: 28px; background: #0a5f86; font-size: 22px; }
.vazio-p { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--suave); text-align: center; }

/* ---------- ranking ---------- */
.baixo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; min-height: 0; }
.ranking { display: flex; flex-direction: column; min-height: 0; padding: 20px 26px 14px; }
.cab-painel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cab-painel .leg { display: flex; gap: 18px; font-size: 15px; color: var(--suave); align-items: center; }
.leg i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.leg i.m { width: 3px; height: 18px; background: #fff; border-radius: 0; }
.linhas-r { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lr { flex: 1; display: grid; grid-template-columns: 40px 40px minmax(140px, 190px) 1fr 84px minmax(240px, 300px); align-items: center; gap: 12px; border-top: 1px solid var(--linha); min-height: 0; animation: entra .7s both; }
.lr:first-child { border-top: 0; }
@keyframes entra { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.lr .pos { font-family: Dosis, system-ui, sans-serif; font-size: 26px; font-weight: 800; color: var(--suave); text-align: center; }
.lr .mini { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-family: Dosis, system-ui, sans-serif; font-weight: 800; font-size: 16px; }
.lr .mini.ouro { background: var(--ouro); color: #003f60; } .lr .mini.prata { background: var(--prata); color: #003f60; } .lr .mini.bronze { background: var(--bronze); color: #003f60; } .lr .mini.bateu { background: var(--verde); color: #003f60; }
.lr .quem { line-height: 1.05; overflow: hidden; }
.lr .quem b { font-family: Dosis, system-ui, sans-serif; font-size: 25px; font-weight: 800; white-space: nowrap; }
.lr .quem small { display: block; font-size: 13px; color: var(--fraco); text-transform: lowercase; white-space: nowrap; }
.barra { position: relative; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 0; transition: width 1.8s cubic-bezier(.2, .8, .2, 1); }
.barra i.abaixo { background: #3c8fb8; } .barra i.ritmo { background: var(--azul); } .barra i.bateu { background: var(--verde); }
.barra b { position: absolute; top: -5px; bottom: -5px; width: 3px; background: #fff; border-radius: 2px; }
.lr .pc { font-family: Dosis, system-ui, sans-serif; font-size: 30px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.lr .vl { font-size: 17px; color: var(--suave); text-align: right; white-space: nowrap; }
.lr .vl b { color: #fff; font-size: 20px; font-weight: 700; }
.estrela { width: 22px; height: 22px; vertical-align: -3px; }

/* ---------- painel rotativo ---------- */
.rotativo { padding: 20px 26px 14px; display: flex; flex-direction: column; min-height: 0; }
.cena { flex: 1; display: flex; flex-direction: column; min-height: 0; animation: cena .8s both; }
@keyframes cena { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pontos { display: flex; gap: 10px; align-items: center; }
.pontos span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pontos span.on { background: var(--verde); width: 34px; border-radius: 99px; }
.tempo { height: 4px; background: rgba(255, 255, 255, .1); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.tempo i { display: block; height: 100%; background: rgba(255, 255, 255, .45); width: 0; }
.ll { flex: 1; display: grid; grid-template-columns: minmax(150px, 220px) 1fr 74px minmax(130px, 165px); align-items: center; gap: 12px; border-top: 1px solid var(--linha); min-height: 0; }
.ll:first-child { border-top: 0; }
.ll .n { font-family: Dosis, system-ui, sans-serif; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll .pc { font-family: Dosis, system-ui, sans-serif; font-size: 26px; font-weight: 800; text-align: right; }
.ll .vl { font-size: 15px; color: var(--suave); text-align: right; white-space: nowrap; }
.ll .barra { height: 18px; }
.mural { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 18px; }
.trofeu-card { width: 200px; padding: 18px 10px; border-radius: 16px; background: rgba(166, 202, 62, .16); border: 2px solid var(--verde); text-align: center; animation: brilha 2.6s ease-in-out infinite; }
@keyframes brilha { 50% { box-shadow: 0 0 34px rgba(166, 202, 62, .45); } }
.trofeu-card .nome { font-family: Dosis, system-ui, sans-serif; font-size: 28px; font-weight: 800; }
.trofeu-card .pct { font-family: Dosis, system-ui, sans-serif; font-size: 40px; font-weight: 800; color: var(--verde-txt); }
.desafio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.desafio .grande { font-family: Dosis, system-ui, sans-serif; font-size: 50px; font-weight: 800; line-height: 1; }
.desafio p { font-size: 24px; color: var(--suave); margin: 0; max-width: 620px; }

/* ---------- rodapé (faixa de notícias) ---------- */
.rodape { display: grid; grid-template-columns: 210px 1fr; align-items: stretch; margin: 0 -44px; background: #002e47; border-top: 3px solid var(--verde); }
.rodape .selo-r { background: var(--verde); color: #003f60; font-family: Dosis, system-ui, sans-serif; font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; letter-spacing: .04em; text-transform: uppercase; }
.ticker { overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-trilho { display: inline-flex; white-space: nowrap; will-change: transform; font-size: 26px; }
.ticker-trilho span { padding: 0 34px; }
.ticker-trilho span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); margin-right: 22px; vertical-align: 4px; }

/* ---------- comemoração ---------- */
#festa { position: fixed; inset: 0; z-index: 50; background: #00263a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#festa[hidden] { display: none; }
#festa .raios { position: absolute; width: 2600px; height: 2600px; left: 50%; top: 50%; margin: -1300px 0 0 -1300px; animation: gira 24s linear infinite; opacity: .5; }
@keyframes gira { to { transform: rotate(360deg); } }
.festa-cx { position: relative; text-align: center; animation: explode 1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes explode { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.festa-trofeu { width: 220px; height: 220px; animation: balanca 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes balanca { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.04); } }
.festa-tag { font-size: 30px; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); margin-top: 6px; }
.festa-tit { font-size: 150px; font-weight: 800; line-height: .95; color: var(--verde); letter-spacing: -.02em; text-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.festa-nome { font-size: 120px; font-weight: 800; line-height: 1; margin-top: 8px; animation: pisca 1.2s ease-in-out infinite alternate; }
@keyframes pisca { to { color: var(--ouro); } }
.festa-num { font-size: 36px; color: var(--suave); margin-top: 18px; }
.festa-num b { color: #fff; }
#baloes { position: absolute; inset: 0; pointer-events: none; }
.balao { position: absolute; bottom: -260px; width: 120px; animation: voa linear forwards; }
.balao svg { width: 100%; overflow: visible; animation: mexe 2.6s ease-in-out infinite alternate; }
@keyframes voa { to { transform: translateY(-1650px); } }
@keyframes mexe { from { transform: translateX(-26px) rotate(-5deg); } to { transform: translateX(26px) rotate(5deg); } }
#confete { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#som { position: fixed; right: 18px; bottom: 84px; z-index: 70; font: 700 18px system-ui, sans-serif; background: var(--verde); color: #003f60; border: 0; border-radius: 99px; padding: 12px 22px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
#som[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- rentabilidade e frete (cartão do topo) ---------- */
.rf { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rf-bloco { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 6px; column-gap: 12px; }
.rf-tit { grid-column: 1 / -1; font-size: 16px; color: var(--suave); font-weight: 600; }
.rf-v { font-family: Dosis, system-ui, sans-serif; font-size: 46px; font-weight: 800; line-height: .9; }
.rf-meta { font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.rf-meta.ok { background: var(--verde); color: #003f60; } .rf-meta.fora { background: var(--ouro); color: #003f60; } .rf-meta.nd { background: rgba(255, 255, 255, .14); }
.bullet { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.bullet i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 0; transition: width 1.8s cubic-bezier(.2, .8, .2, 1); }
.bullet i.ok { background: var(--verde); } .bullet i.fora { background: var(--ouro); } .bullet i.nd { background: var(--azul); }
.bullet b { position: absolute; top: -5px; bottom: -5px; width: 3px; background: #fff; border-radius: 2px; }
.rf-ano { grid-column: 1 / -1; font-size: 15px; color: var(--suave); }
.rf-ano b { color: #fff; }

/* ---------- tabelas das cenas (rentabilidade e frete por vendedor, clientes novos) ---------- */
.tt { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tt-l { flex: 1; display: grid; align-items: center; gap: 10px; border-top: 1px solid var(--linha); min-height: 0; font-size: 20px; }
.tt-l:first-child { border-top: 0; }
.tt-l.cab-t { flex: 0 0 34px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fraco); font-weight: 700; }
.tt-l .n { font-family: Dosis, system-ui, sans-serif; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-l .c { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-l .c small { color: var(--fraco); font-size: 14px; margin-left: 4px; }
.tt-rf { grid-template-columns: minmax(130px, 1.2fr) 1fr 1fr 1fr 1fr; }
.tt-cn { grid-template-columns: 36px minmax(130px, 1.4fr) 1fr 1fr 1fr; }
.pt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pt.ok { background: var(--verde); } .pt.fora { background: var(--ouro); } .pt.nd { background: rgba(255, 255, 255, .25); }
.grande-n { font-family: Dosis, system-ui, sans-serif; font-weight: 800; font-size: 30px; }
.resumo-cn { display: flex; gap: 14px; margin-bottom: 8px; }
.resumo-cn div { flex: 1; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 8px 14px; }
.resumo-cn b { font-family: Dosis, system-ui, sans-serif; font-size: 34px; font-weight: 800; display: block; line-height: 1; }
.resumo-cn span { font-size: 14px; color: var(--suave); }
.lider-cn { color: var(--verde-txt); }

/* ---------- botão "Ver comemoração" ---------- */
.ferramentas { position: fixed; right: 18px; bottom: 84px; z-index: 70; display: flex; gap: 10px; align-items: flex-end; transition: opacity .6s; }
.ferramentas.oculto { opacity: 0; pointer-events: none; }
.ferramentas button { font: 700 18px system-ui, sans-serif; border: 0; border-radius: 99px; padding: 12px 22px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
#btDemo { background: #fff; color: #003f60; }
#som { position: static; background: var(--verde); color: #003f60; }
#menuDemo { position: fixed; right: 18px; bottom: 140px; z-index: 71; background: #fff; color: #003f60; border-radius: 16px; padding: 14px; width: 330px; max-height: 70vh; overflow: auto; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
#menuDemo[hidden] { display: none; }
#menuDemo h3 { margin: 0 0 8px; font: 800 20px Dosis, system-ui, sans-serif; }
#menuDemo p { margin: 0 0 10px; font-size: 13px; color: #4b6a7a; }
#menuDemo button { display: block; width: 100%; text-align: left; border: 0; background: #edf3f7; color: #003f60; font: 700 17px system-ui, sans-serif; padding: 10px 14px; border-radius: 10px; margin-bottom: 6px; cursor: pointer; box-shadow: none; }
#menuDemo button:hover, #menuDemo button:focus { background: #a6ca3e; outline: none; }
#menuDemo button small { font-weight: 500; color: #4b6a7a; margin-left: 6px; }

/* ---------- festa da LINHA: "Na mosca!" (alvo, flecha, ondas, fogos) ---------- */
#festa.festa-linha { background: #003f60; }
.alvo-cx .ondas { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; }
.alvo-cx .ondas i { position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; border: 6px solid rgba(166, 202, 62, .5); animation: onda 3.2s ease-out 1.1s infinite; opacity: 0; }
.alvo-cx .ondas i:nth-child(2) { animation-delay: 1.9s; border-color: rgba(0, 148, 200, .5); } .alvo-cx .ondas i:nth-child(3) { animation-delay: 2.7s; } .alvo-cx .ondas i:nth-child(4) { animation-delay: 3.5s; border-color: rgba(255, 255, 255, .35); }
@keyframes onda { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.alvo-cx { position: relative; z-index: 0; width: 250px; height: 250px; margin: 0 auto 8px; }
.alvo { width: 250px; height: 250px; animation: impacto .55s 1.08s ease-out; }
@keyframes impacto { 0% { transform: scale(1); } 25% { transform: scale(1.12) rotate(-4deg); } 55% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
.flecha { position: absolute; left: calc(50% - 300px); top: calc(50% - 15px); width: 300px; height: 30px; transform-origin: 100% 50%; animation: voo 1.08s cubic-bezier(.35, .1, .7, 1) both; }
@keyframes voo { from { transform: translate(-1250px, -410px) rotate(18deg); } to { transform: translate(0, 0) rotate(18deg); } }
.festa-linha .festa-tag, .festa-linha .festa-tit, .festa-linha .festa-sub, .festa-linha .festa-nome, .festa-linha .festa-num, .festa-linha .festa-dest { animation: aparece .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: 1.15s; }
.festa-linha .festa-tit { font-size: 160px; animation-delay: 1.15s; }
.festa-linha .festa-sub { font-size: 34px; color: var(--suave); animation-delay: 1.35s; }
.festa-linha .festa-nome { font-size: 110px; animation: aparece .7s cubic-bezier(.2, 1.4, .4, 1) 1.5s both, pisca 1.2s ease-in-out 2.2s infinite alternate; }
.festa-linha .festa-num { animation-delay: 1.7s; }
.festa-dest { margin-top: 22px; font-size: 30px; color: var(--suave); animation-delay: 2s; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.festa-dest .medalha { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; font: 800 22px Dosis, system-ui, sans-serif; color: #003f60; margin: 0 8px 0 14px; }
.medalha.m1 { background: var(--ouro); } .medalha.m2 { background: var(--prata); } .medalha.m3 { background: var(--bronze); }
@keyframes aparece { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.festa-linha .festa-cx { animation: none; }

/* ---------- festa da EQUIPE: meta do mês (holofotes, flash, contador dourado, créditos) ---------- */
#festa.festa-equipe { background: #001f30; }
.holofote { position: absolute; bottom: -10%; width: 900px; height: 140%; left: 50%; margin-left: -450px; background: rgba(255, 255, 255, .09); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); transform-origin: 50% 100%; }
.holofote.h1 { animation: varre 4.5s ease-in-out infinite alternate; }
.holofote.h2 { animation: varre 3.6s ease-in-out -1.5s infinite alternate-reverse; background: rgba(166, 202, 62, .1); }
.holofote.h3 { animation: varre 5.2s ease-in-out -.8s infinite alternate; background: rgba(242, 193, 78, .1); }
@keyframes varre { from { transform: rotate(-38deg); } to { transform: rotate(38deg); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 1.1s 2s ease-out both; pointer-events: none; z-index: 2; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
.festa-equipe .festa-cx { animation: surge .9s 2s cubic-bezier(.2, 1.5, .4, 1) both, tremor .5s 2s; z-index: 3; }
@keyframes surge { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tremor { 0%, 100% { translate: 0 0; } 20% { translate: -14px 6px; } 40% { translate: 12px -8px; } 60% { translate: -8px 4px; } 80% { translate: 6px -3px; } }
.contador { font-family: Dosis, system-ui, sans-serif; font-size: 260px; font-weight: 800; line-height: .9; color: var(--ouro); letter-spacing: -.03em; text-shadow: 0 0 60px rgba(242, 193, 78, .45); font-variant-numeric: tabular-nums; }
.festa-equipe .festa-tag { color: var(--ouro); }
.festa-equipe .festa-tit { font-size: 120px; }
.creditos { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: rgba(0, 0, 0, .35); border-top: 3px solid var(--ouro); overflow: hidden; display: flex; align-items: center; z-index: 3; animation: aparece-b .8s 3s both; }
@keyframes aparece-b { from { transform: translateY(100%); } to { transform: none; } }
.creditos-trilho { display: inline-flex; white-space: nowrap; animation: creditos 26s linear infinite; font: 700 38px Dosis, system-ui, sans-serif; }
.creditos-trilho span { padding-right: 60px; } .creditos-trilho i { color: var(--ouro); font-style: normal; padding: 0 14px; }
@keyframes creditos { to { transform: translateX(-50%); } }
#menuDemo h4 { margin: 12px 0 6px; font: 800 13px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #4b6a7a; }

/* ---------- fotos dos vendedores (fotos/<código>.jpg); sem foto, ficam as iniciais por baixo ---------- */
.com-foto { position: relative; }
.com-foto .foto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border-radius: 50%; opacity: 0; transition: opacity .4s; }
.com-foto .foto-img.ok { opacity: 1; }
.avatar .foto-img { border: 4px solid rgba(255, 255, 255, .5); }
.avatar.ouro .foto-img { border-color: var(--ouro); } .avatar.prata .foto-img { border-color: var(--prata); } .avatar.bronze .foto-img { border-color: var(--bronze); }
.mini .foto-img { border: 2px solid rgba(255, 255, 255, .35); }
.mini.ouro .foto-img { border: 3px solid var(--ouro); } .mini.prata .foto-img { border: 3px solid var(--prata); } .mini.bronze .foto-img { border: 3px solid var(--bronze); } .mini.bateu .foto-img { border: 3px solid var(--verde); }
.mini-s { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-right: 10px; vertical-align: middle; }
.foto-mural { display: flex; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; align-items: center; justify-content: center; }
.foto-mural .foto-img { border: 4px solid var(--verde); }
.festa-foto-cx { position: relative; width: 250px; height: 250px; margin: 0 auto 40px; animation: balanca 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.festa-foto { display: block; width: 250px; height: 250px; border-radius: 50%; box-shadow: 0 0 0 10px var(--ouro), 0 0 60px rgba(242, 193, 78, .6); }
.festa-foto .foto-img { opacity: 1; }
.selo-trofeu { position: absolute; right: -36px; bottom: -22px; width: 120px; height: 120px; border-radius: 50%; background: #003f60; box-shadow: 0 0 0 5px var(--ouro); display: flex; align-items: center; justify-content: center; }
.selo-trofeu .festa-trofeu { width: 90px; height: 90px; animation: none; }
.dest-p { display: inline-flex; align-items: center; color: #fff; }
.festa-dest .medalha { width: 64px; height: 64px; font-size: 26px; margin: 0 12px 0 18px; }
.medalha .foto-img { border: 4px solid transparent; } .medalha.m1 .foto-img { border-color: var(--ouro); } .medalha.m2 .foto-img { border-color: var(--prata); } .medalha.m3 .foto-img { border-color: var(--bronze); }
.creditos-trilho em { font-style: normal; display: inline-flex; align-items: center; }
.cred-foto { display: inline-flex; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .15); align-items: center; justify-content: center; font-size: 22px; margin-right: 12px; }
.cred-foto .foto-img { border: 3px solid var(--ouro); }

/* ---------- quadro da esquerda em carrossel: ranking do mês ↔ logística agora (dados do Painel de Separação e Despacho) ---------- */
.ranking .pontos { margin-left: 6px; }
.ranking .tempo { flex: none; margin-top: 8px; }
.lconsulta { font-size: 15px; color: var(--suave); white-space: nowrap; }
.lconsulta.velho { color: var(--ouro); }
.lconsulta.falha, .lconsulta.sem { color: #ffb4a8; }
.logi { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); column-gap: 10px; padding-top: 6px; animation: cena .8s both; }
.lseta { width: 16px; height: 40px; color: rgba(255, 255, 255, .28); margin-top: 24px; }
.lcol { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.c-separar { --cor: #7fd3f2; } .c-despachar { --cor: var(--azul); } .c-despachadas { --cor: var(--verde); }
.lcab { flex: none; display: flex; align-items: center; gap: 14px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 3px solid var(--cor); }
.lnum { font-family: Dosis, system-ui, sans-serif; font-size: 64px; font-weight: 800; line-height: .9; color: var(--cor); font-variant-numeric: tabular-nums; min-width: 40px; }
.ltit { display: flex; flex-direction: column; min-width: 0; font-family: Dosis, system-ui, sans-serif; font-size: 26px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.ltit small { font-family: system-ui, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 400; color: var(--suave); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.lcam { width: 34px; height: 21px; color: var(--verde); margin-left: 8px; vertical-align: -1px; }
.lnotas { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ln { flex: none; height: 54px; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 10px; border-top: 1px solid var(--linha); animation: entra .6s both; }
.ln:first-child { border-top: 0; }
.ln[hidden] { display: none; }
.placa { width: 62px; height: 34px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.placa img { max-width: 54px; max-height: 26px; object-fit: contain; }
.placa b { font-family: Dosis, system-ui, sans-serif; font-size: 17px; font-weight: 800; color: var(--painel); }
.lt { min-width: 0; line-height: 1.15; }
.lt b { display: block; font-family: Dosis, system-ui, sans-serif; font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt small { display: flex; gap: 8px; font-size: 15px; color: var(--suave); white-space: nowrap; }
.lt small span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lt em { flex: none; font-style: normal; font-weight: 700; color: #fff; }
.lt em.s-atrasada, .lt em.s-corte { color: var(--ouro); }
.lt em.s-proximo, .lt em.s-retira, .lt em.s-definir { color: var(--suave); font-weight: 600; }
.lmais { flex: none; padding-top: 8px; border-top: 1px solid var(--linha); font-size: 16px; font-weight: 600; color: var(--suave); }
.lmais[hidden] { display: none; }
.lvazio { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 10px; text-align: center; font-size: 19px; color: var(--fraco); }

/* ---------- detalhe ao clicar (mesmo padrão do Painel de Separação e Despacho: janela branca sobre o palco escurecido) ---------- */
#palco [data-det] { cursor: pointer; }
#palco [data-det]:focus-visible { outline: 4px solid var(--verde); outline-offset: 3px; }
body.mexendo #palco [data-det]:hover { outline: 3px solid rgba(166, 202, 62, .9); outline-offset: 3px; border-radius: 10px; }
body.mexendo #palco .det-fundo [data-det]:hover { outline: 0; }
.det-fundo { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0, 28, 46, .74); animation: det-aparece .25s ease; }
.det-fundo[hidden] { display: none; }
@keyframes det-aparece { from { opacity: 0; } to { opacity: 1; } }
.det-caixa { width: min(1720px, calc(100% - 120px)); height: 960px; background: #fff; color: #003f60; border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 50px 120px rgba(0, 10, 25, .6); text-align: left; }
.det-topo { display: flex; align-items: center; gap: 24px; padding: 22px 30px 20px 34px; background: #f2f7fa; border-bottom: 6px solid var(--verde); }
.det-tit { flex: 1; min-width: 0; }
.det-tit h2 { font-family: Dosis, system-ui, sans-serif; font-size: 46px; font-weight: 700; color: var(--painel); line-height: 1.05; margin: 0; }
.det-tit p { margin: 6px 0 0; font-size: 19px; color: #3d5a6e; }
.det-bt { flex: none; font: 700 22px Dosis, system-ui, sans-serif; color: #fff; background: var(--painel); border: 0; border-radius: 14px; padding: 12px 26px; cursor: pointer; }
.det-bt:hover { background: #003f60; }
.det-bt:focus-visible { outline: 4px solid var(--verde); outline-offset: 3px; }
.det-bt-2 { background: #fff; color: var(--painel); box-shadow: inset 0 0 0 2px var(--painel); }
.det-bt-2:hover { background: #e6f1f7; }
.det-topo-img { flex: none; display: flex; }
.det-foto { width: 84px; height: 84px; border-radius: 50%; background: var(--painel); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 32px Dosis, system-ui, sans-serif; }
.det-foto .foto-img { border: 4px solid var(--painel); }
.det-foto.bateu, .det-foto.bateu .foto-img { border-color: var(--verde); } .det-foto.bateu { background: var(--verde); color: #003f60; }
.det-placa .placa { width: 150px; height: 76px; border-radius: 12px; box-shadow: inset 0 0 0 2px #e3ebf0; }
.det-placa .placa img { max-width: 132px; max-height: 56px; }
.det-placa .placa b { font-size: 26px; }
.det-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 34px 26px; }
.det-secao h3 { font: 700 30px Dosis, system-ui, sans-serif; color: var(--painel); letter-spacing: -.02em; margin: 22px 0 10px; display: flex; align-items: center; gap: 12px; }
.det-n { font-size: 22px; font-weight: 800; background: var(--painel); color: #fff; border-radius: 999px; padding: 1px 14px; }
.det-nota { font-size: 16px; color: #5a7184; margin: -4px 0 8px; }
.det-vazio { font-size: 20px; color: #5a7184; margin: 22px 0; }
.det-dica { font-size: 15px; color: #5a7184; margin: 26px 0 0; }
.det-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 18px; }
.det-tab th { position: sticky; top: 0; z-index: 1; background: #fff; text-align: left; font-size: 15px; font-weight: 700; color: #5a7184; padding: 10px 12px; border-bottom: 2px solid #e3ebf0; white-space: nowrap; }
.det-tab td { padding: 9px 12px; border-bottom: 1px solid #edf2f5; vertical-align: middle; }
.det-tab .num { text-align: right; font-variant-numeric: tabular-nums; }
.det-tab td small { color: #5a7184; font-size: 14px; }
.det-tab tr.clic { cursor: pointer; }
.det-tab tr.clic:hover td { background: #eef6fa; }
.det-tab tr.clic:focus-visible { outline: 3px solid var(--verde); outline-offset: -3px; }
.det-tab tr.atual td { background: #f4f9ec; }
.det-tab tr.atual td:first-child { box-shadow: inset 6px 0 0 var(--verde); }
.det-quem { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.det-quem b { font-family: Dosis, system-ui, sans-serif; font-size: 21px; font-weight: 800; }
.det-quem small { font-size: 13px; color: #5a7184; background: #edf2f5; border-radius: 99px; padding: 1px 8px; }
.det-mini { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #dfeaf1; color: var(--painel); display: inline-flex; align-items: center; justify-content: center; font: 800 13px Dosis, system-ui, sans-serif; }
.det-mini .foto-img { border: 2px solid #dfeaf1; }
.t-nf { font: 800 24px Dosis, system-ui, sans-serif; color: var(--painel); }
.t-cli { font-weight: 700; }
.t-loc { font: 700 21px Dosis, system-ui, sans-serif; color: var(--painel); white-space: nowrap; }
.t-desc { display: inline-block; max-width: 620px; }
.t-transp { display: block; font-size: 13px; color: #5a7184; margin-top: 2px; }
.det-tab .placa { box-shadow: inset 0 0 0 1px #e3ebf0; }
.t-ok { color: #3d6b12; } .t-neg { color: #b42318; }
.t-grande { font: 800 26px Dosis, system-ui, sans-serif; }
.cap { text-transform: capitalize; }
.nada { color: #5a7184; font-size: 16px; }
.dchip { display: inline-grid; line-height: 1.15; border-radius: 10px; padding: 4px 10px; background: #edf2f5; color: #3d5a6e; text-align: left; }
.dchip b { font-size: 18px; white-space: nowrap; }
.dchip small { font-size: 13px; opacity: .9; white-space: nowrap; font-weight: 400; }
.dchip-ok { background: #eef6dc; color: #3d5a12; }
.dchip-hoje { background: #e3f3fa; color: var(--painel); }
.dchip-corte, .dchip-definir, .dchip-proximo { background: #fff4df; color: #8f5100; }
.dchip-atrasada { background: #fdecea; color: #b42318; }
.det-info { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 22px 0 6px; }
.det-info-2 { margin-top: 0; }
.det-info-i { background: #f2f7fa; border-radius: 16px; padding: 12px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.det-info-i > span { font-size: 15px; color: #5a7184; }
.det-info-i > b { font: 700 24px Dosis, system-ui, sans-serif; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; justify-items: start; }
.det-info-i small { font: 400 15px system-ui, "Segoe UI", sans-serif; color: #3d5a6e; }
.ferramentas .dica-det { align-self: center; font-size: 15px; color: var(--suave); background: rgba(0, 40, 60, .7); border-radius: 99px; padding: 8px 14px; }
body.com-det .ferramentas, body.com-det #menuDemo { opacity: 0; pointer-events: none; }
/* foto carregada: some com as iniciais de reserva (as fotos sem fundo deixariam as letras aparecendo atrás) */
.com-foto:has(.foto-img.ok) { color: transparent; }
