/* BRAIT Live · SUPERMERCADO TOP PREMIUM — TV. Tudo em rem: o JS ajusta o tamanho da fonte raiz à largura da tela (Full HD e 4K ficam iguais). Sem rolagem. Sem recursos externos. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #0b0d10; color: #f2f4f7; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; cursor: none; }
#raiz { width: 100vw; height: 100vh; overflow: hidden; position: relative; }
.mini { font-size: .8rem; color: #9aa4b2; }
.pill { display: inline-block; padding: .12rem .6rem; border-radius: 1rem; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; background: #2b313b; color: #cbd2dc; }
.pill.ok { background: #12391f; color: #5be08a; } .pill.warn { background: #473410; color: #ffc457; } .pill.bad { background: #4a1616; color: #ff7b7b; } .pill.off { background: #2b313b; color: #8a94a3; }
.pos { color: #5be08a; } .neg { color: #ff6b6b; } .amb { color: #ffc457; } .mut { color: #8a94a3; }

/* ---- telas de apoio (pareamento, iniciar, erro) ---- */
.centro { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem; }
.marca { font-size: 1.6rem; font-weight: 800; letter-spacing: .28em; color: #f5c400; margin-bottom: 2rem; }
.codigo-tv { font-size: 7rem; font-weight: 800; letter-spacing: .12em; font-family: Consolas, "Courier New", monospace; color: #fff; background: #151a21; border: .25rem solid #f5c400; border-radius: 1.2rem; padding: 1.2rem 3rem; margin: 1.5rem 0; }
.passos { font-size: 1.5rem; line-height: 1.7; color: #cbd2dc; max-width: 62rem; }
.btn-grande { font-size: 3rem; font-weight: 800; padding: 1.2rem 4rem; border-radius: 1.2rem; border: .3rem solid #f5c400; background: #f5c400; color: #111; cursor: pointer; margin: 2rem 0 1rem; outline: none; }
.btn-grande:focus { box-shadow: 0 0 0 .5rem rgba(245, 196, 0, .45); }
.grande-txt { font-size: 2.4rem; font-weight: 700; }
.erro-txt { color: #ff7b7b; font-size: 1.6rem; margin-top: 1rem; max-width: 60rem; }

/* ---- painel ---- */
.painel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; }
.lateral { width: 27%; height: 100%; background: #10141a; border-right: .15rem solid #222a34; padding: 1rem 1.1rem; display: flex; flex-direction: column; overflow: hidden; }
.central { width: 73%; height: 100%; display: flex; flex-direction: column; padding: 1rem 1.6rem .6rem; overflow: hidden; }

.cab-lat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.logo { font-weight: 800; letter-spacing: .22em; color: #f5c400; font-size: 1.15rem; }
.relogio { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bloco-cons { background: #161c24; border-radius: .9rem; padding: .8rem 1rem; margin-bottom: .6rem; }
.rot { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #8a94a3; font-weight: 600; }
.valor-gg { font-size: 3.1rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.linha-kpi { display: flex; justify-content: space-between; align-items: baseline; margin-top: .35rem; font-size: 1.15rem; gap: .5rem; }
.linha-kpi b { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.lojas-lat { flex: 0 0 auto; overflow: hidden; }
.loja-lat { display: flex; justify-content: space-between; align-items: center; padding: .38rem .2rem; border-bottom: .06rem solid #222a34; font-size: 1.05rem; }
.loja-lat .cod { font-weight: 800; width: 3.4rem; }
.loja-lat .fat { font-weight: 700; font-variant-numeric: tabular-nums; flex: 1; text-align: right; padding-right: .7rem; }
.loja-lat .mg { width: 4.4rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.lat-rod { margin-top: auto; padding-top: .5rem; display: flex; gap: .5rem; }
.mini-bloco { flex: 1; background: #161c24; border-radius: .8rem; padding: .55rem .8rem; }
.rot.sep { margin-top: .4rem; }
.bloco-mes { background: #161c24; border-radius: .9rem; padding: .6rem 1rem; margin-top: .5rem; }
.mini-bloco .n { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.cab-cen { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.titulo-tela { font-size: 2.3rem; font-weight: 800; letter-spacing: -.01em; }
.sub-tela { font-size: 1rem; color: #8a94a3; }
.pontos { display: flex; gap: .4rem; margin-top: .3rem; }
.ponto { width: .7rem; height: .7rem; border-radius: 50%; background: #2b313b; }
.ponto.at { background: #f5c400; }
.estado { text-align: right; }
.estado .linha { font-size: .95rem; color: #9aa4b2; margin-top: .25rem; }
.corpo-tela { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
.rodape { margin-top: .5rem; height: 2.3rem; display: flex; align-items: center; gap: 1rem; overflow: hidden; }
.ticker { flex: 1; overflow: hidden; white-space: nowrap; font-size: 1.1rem; position: relative; }
.ticker-in { display: inline-block; padding-left: 100%; animation: rola 40s linear infinite; }
.ticker-in.parado { animation: none; padding-left: 0; }
@keyframes rola { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.sem-som { font-weight: 800; color: #ffc457; background: #473410; border-radius: .6rem; padding: .2rem .8rem; font-size: 1rem; white-space: nowrap; }

/* faixa de aviso (desconexão/atraso) */
.faixa { background: #473410; color: #ffc457; border-radius: .6rem; padding: .35rem .9rem; font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.faixa.bad { background: #4a1616; color: #ff9a9a; }

/* ---- telas ---- */
.grade-lojas { display: flex; flex-wrap: wrap; gap: .8rem; align-content: flex-start; height: 100%; }
.grade-lojas { align-content: stretch; }
.card-loja { background: #161c24; border-radius: 1rem; padding: 1rem 1.2rem; width: calc(50% - .4rem); height: calc(50% - .4rem); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.grade-lojas.n1 .card-loja, .grade-lojas.n2 .card-loja, .grade-lojas.n3 .card-loja { justify-content: center; gap: 1.2rem; }
.grade-lojas.n1 .card-loja .fat, .grade-lojas.n2 .card-loja .fat, .grade-lojas.n3 .card-loja .fat { font-size: 4.6rem; margin: .8rem 0; }
.grade-lojas.n1 .card-loja .ln, .grade-lojas.n2 .card-loja .ln, .grade-lojas.n3 .card-loja .ln { padding: .7rem 0; font-size: 1.5rem; }
.grade-lojas.n1 .card-loja, .grade-lojas.n2 .card-loja { height: 100%; } .grade-lojas.n1 .card-loja { width: 100%; } .grade-lojas.n2 .card-loja { width: calc(50% - .4rem); }
.grade-lojas.n3 .card-loja { width: calc(33.33% - .55rem); height: 100%; }
.grade-lojas.n5 .card-loja, .grade-lojas.n6 .card-loja { width: calc(33.33% - .55rem); }
.grade-lojas.n7 .card-loja, .grade-lojas.n8 .card-loja { width: calc(25% - .6rem); }
.card-loja h3 { margin: 0; font-size: 2rem; display: flex; justify-content: space-between; align-items: baseline; }
.card-loja .nome { font-size: 1.1rem; color: #8a94a3; font-weight: 500; }
.card-loja .fat { font-size: 3.3rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.grade-lojas.n7 .card-loja .fat, .grade-lojas.n8 .card-loja .fat { font-size: 2.5rem; }
.card-loja .ln { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.35rem; padding: .25rem 0; border-top: .06rem solid #222a34; }
.card-loja .ln b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.barra { height: .5rem; background: #232b35; border-radius: .3rem; overflow: hidden; margin: .25rem 0 .5rem; }
.barra i { display: block; height: 100%; background: #f5c400; }

.dois-col { display: flex; gap: 1.2rem; height: 100%; }
.dois-col > div { flex: 1 1 50%; min-width: 0; background: #161c24; border-radius: 1rem; padding: .9rem 1.1rem; overflow: hidden; }
.dois-col h4, .tit-bloco { margin: 0 0 .9rem; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; color: #8a94a3; }
.barra-h { margin-bottom: 1rem; }
.barra-h .barra { height: .7rem; }
.barra-h .t { display: flex; justify-content: space-between; font-size: 1.55rem; }
.barra-h .t b { font-variant-numeric: tabular-nums; }
.tipo-linha { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: .06rem solid #222a34; font-size: 1.5rem; }
.tipo-linha .n { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; background: #f5c400; color: #111; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tipo-linha .nm { width: 9rem; font-weight: 700; flex: none; }
.tipo-linha .vals { flex: 1; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

table.tab { width: 100%; border-collapse: collapse; font-size: 1.6rem; }
table.tab th { text-align: right; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #8a94a3; padding: .35rem .6rem; border-bottom: .12rem solid #2b313b; }
table.tab td { padding: .85rem .6rem; text-align: right; border-bottom: .06rem solid #222a34; font-variant-numeric: tabular-nums; }
table.tab th.l, table.tab td.l { text-align: left; }
table.tab td.prod { font-weight: 600; max-width: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk { display: inline-block; width: 1.7rem; height: 1.7rem; line-height: 1.7rem; border-radius: 50%; background: #2b313b; text-align: center; font-weight: 800; font-size: 1rem; margin-right: .6rem; }

.kpis { display: flex; gap: .9rem; margin-bottom: .9rem; }
.kpi { flex: 1; background: #161c24; border-radius: 1rem; padding: .8rem 1.1rem; }
.kpi .v { font-size: 3.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.clima-grade { display: flex; flex-wrap: wrap; gap: .9rem; height: 100%; align-content: stretch; }
.clima-card { background: #161c24; border-radius: 1rem; padding: 1.2rem 1.4rem; width: calc(33.33% - .6rem); height: calc(100% - 2rem); display: flex; flex-direction: column; justify-content: center; }
.clima-grade.c4 .clima-card { width: calc(50% - .5rem); height: calc(50% - 1.3rem); }
.clima-card .temp { font-size: 8rem; font-weight: 800; line-height: 1; }
.clima-card .grande-txt { font-size: 2.8rem; } .clima-card .mini { font-size: 1.2rem; margin-top: .6rem; }
.clima-grade > .mini { width: 100%; }
.noticia { background: #161c24; border-radius: 1rem; padding: 1.1rem 1.4rem; margin-bottom: .9rem; }
.noticia .tt { font-size: 2.1rem; font-weight: 700; line-height: 1.25; }
.vazio-tela { color: #9aa4b2; font-size: 1.6rem; padding: 2rem; }

/* alerta em tela cheia (faixa grande sobre o painel) */
.alerta-ov { position: absolute; left: 0; right: 0; top: 0; z-index: 20; padding: 1.1rem 2rem; display: flex; align-items: center; gap: 1.4rem; font-weight: 800; animation: pisca 1s linear infinite; }
.alerta-ov.alta { background: #b3141b; color: #fff; } .alerta-ov.media { background: #c47a00; color: #fff; }
.alerta-ov .ic { font-size: 3rem; } .alerta-ov .tx { font-size: 2.1rem; line-height: 1.15; } .alerta-ov .dt { font-size: 1.25rem; font-weight: 500; opacity: .95; margin-top: .2rem; }
@keyframes pisca { 0% { filter: brightness(1); } 50% { filter: brightness(1.25); } 100% { filter: brightness(1); } }

/* ======================= VISUAL "VIDEO WALL" (widescreen) ======================= */
html, body { background: #05080d; }
#raiz { background: radial-gradient(120% 90% at 15% 0%, #0f2038 0%, #070b12 55%, #04060a 100%); }
#raiz::before { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(80,140,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(80,140,255,.05) 1px, transparent 1px); background-size: 4rem 4rem; }
.painel { z-index: 1; }
.lateral { width: 25%; background: linear-gradient(180deg, rgba(14,24,40,.92), rgba(8,12,20,.92)); border-right: .08rem solid rgba(90,150,255,.25); box-shadow: .4rem 0 2rem rgba(0,0,0,.5); }
.central { width: 75%; padding: 1rem 1.8rem .6rem; }
@media (min-aspect-ratio: 21/10) { .lateral { width: 21%; } .central { width: 79%; } }
.logo { font-size: 1.25rem; text-shadow: 0 0 1rem rgba(245,196,0,.6); }
.relogio { font-size: 2.2rem; letter-spacing: .02em; text-shadow: 0 0 1rem rgba(120,180,255,.5); }
.bloco-cons, .mini-bloco, .bloco-mes, .card-loja, .dois-col > div, .kpi, .clima-card, .noticia { background: linear-gradient(145deg, rgba(24,38,62,.85), rgba(13,20,33,.9)); border: .06rem solid rgba(110,165,255,.22); box-shadow: 0 .4rem 1.6rem rgba(0,0,0,.45), inset 0 .06rem 0 rgba(255,255,255,.05); }
.bloco-cons { border-color: rgba(245,196,0,.45); box-shadow: 0 0 2rem rgba(245,196,0,.12), 0 .4rem 1.6rem rgba(0,0,0,.5); }
.valor-gg { font-size: 3.6rem; background: linear-gradient(180deg, #fff 30%, #9fc4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.titulo-tela { font-size: 2.8rem; letter-spacing: -.02em; text-shadow: 0 0 1.4rem rgba(120,180,255,.35); }
.ponto.at { background: #f5c400; box-shadow: 0 0 .8rem #f5c400; width: 1.6rem; border-radius: .4rem; }
.ponto { transition: width .3s; }
.pill.ok { box-shadow: 0 0 .9rem rgba(91,224,138,.35); }
.barra { background: rgba(120,160,230,.15); } .barra i { background: linear-gradient(90deg, #f5c400, #ffdf6a); box-shadow: 0 0 .8rem rgba(245,196,0,.6); }
.pos { color: #4be27f; text-shadow: 0 0 .8rem rgba(75,226,127,.25); } .neg { color: #ff5c5c; text-shadow: 0 0 .8rem rgba(255,92,92,.3); } .amb { color: #ffc03a; }
table.tab th { border-bottom: .12rem solid rgba(110,165,255,.35); } table.tab tr:nth-child(even) td { background: rgba(120,160,230,.05); }
.ticker { border-top: .06rem solid rgba(110,165,255,.2); padding-top: .2rem; }
.card-loja .fat { background: linear-gradient(180deg, #fff 35%, #a9c9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grafico { display: flex; align-items: center; gap: 1.6rem; } .grafico svg { flex: none; filter: drop-shadow(0 0 .8rem rgba(80,150,255,.35)); }
.anel-txt { font-weight: 800; fill: #fff; font-family: inherit; }
.legenda { flex: 1; min-width: 0; }
.alerta-ov { box-shadow: 0 0 3rem rgba(255,0,0,.55); border-bottom: .2rem solid rgba(255,255,255,.7); }

/* ---- faixas rolantes (temperatura no topo, notícias no rodapé) ---- */
.painel { top: 2.5rem; }
.topo { position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; z-index: 2; overflow: hidden; white-space: nowrap; display: flex; align-items: center; background: linear-gradient(180deg, rgba(8,14,26,.98), rgba(12,22,40,.95)); border-bottom: .08rem solid rgba(110,165,255,.3); font-size: 1.15rem; }
.ticker { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 1.1rem; position: relative; }
.marq-in { display: inline-block; white-space: nowrap; will-change: transform; -webkit-animation: marq 60s linear infinite; animation: marq 60s linear infinite; }
@-webkit-keyframes marq { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-cod { color: #ffd23a; font-weight: 800; } .mq-cid { color: #cfd9ea; } .mq-temp { color: #fff; font-weight: 800; } .mq-det { color: #8ea3c4; } .mq-sep { color: #3d5a8a; }
.mq-rot { color: #0b1220; background: #ffd23a; font-weight: 800; padding: 0 .5rem; border-radius: .2rem; } .mq-not { color: #e9f0ff; }
.mq-alerta { color: #ff6b6b; font-weight: 700; } .mq-aviso { color: #ffc03a; font-weight: 700; }
.clima-grade.multi .clima-card .temp { font-size: 5rem; } .clima-grade.multi .clima-card .grande-txt { font-size: 1.9rem; } .clima-grade.multi .clima-card .mini { font-size: 1.05rem; }

/* ---- telas SDG Mensal e Gestão de estoques ---- */
.sdg { display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.sdg-sub { font-size: 1.15rem; color: #9fb4d6; }
.sdg-grade { display: flex; gap: .8rem; }
.sdg-card { flex: 1; min-width: 0; border-radius: 1rem; padding: .8rem 1rem; background: linear-gradient(145deg, rgba(24,38,62,.85), rgba(13,20,33,.9)); border: .06rem solid rgba(110,165,255,.22); }
.sdg-v { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin: .2rem 0 .5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sdg-card.est .sdg-v { margin-bottom: .2rem; }
.sdg-cmp { display: flex; justify-content: space-between; font-size: 1.05rem; padding: .12rem 0; border-top: .05rem solid rgba(110,165,255,.12); }
.sdg-baixo { display: flex; gap: .8rem; flex: 1; min-height: 0; }
.sdg-bloco { flex: 1; min-width: 0; border-radius: 1rem; padding: .8rem 1.1rem; background: linear-gradient(145deg, rgba(24,38,62,.85), rgba(13,20,33,.9)); border: .06rem solid rgba(110,165,255,.22); display: flex; flex-direction: column; overflow: hidden; }
.sdg-bloco.largo { flex: 1; }
.sdg-meta-v { font-size: 1.7rem; font-weight: 700; margin: .5rem 0; }
.sdg-cols { flex: 1; min-height: 0; display: flex; gap: .6rem; align-items: stretch; }
.sdg-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sdg-bar { width: 70%; min-height: .15rem; border-radius: .3rem .3rem 0 0; background: linear-gradient(180deg, #f5c400, #b58a00); flex: none; }
.sdg-bar.tend { background: repeating-linear-gradient(45deg, #39a0ff, #39a0ff .5rem, #2b6fb0 .5rem, #2b6fb0 1rem); }
.sdg-bv { font-size: .95rem; margin-bottom: .2rem; color: #cfd9ea; }
.sdg-area { flex: 1; min-height: 3rem; width: 100%; display: flex; align-items: flex-end; justify-content: center; }

/* margem de loja: 6–10% amarelo forte */
.amarelo { color: #ffe600; text-shadow: 0 0 .9rem rgba(255,230,0,.55); font-weight: 800; }

/* ---- faixas rolantes em letras grandes (leitura à distância na TV) ---- */
.painel { top: 4.4rem; }
.topo { height: 4.4rem; font-size: 2.95rem; line-height: 1; font-weight: 600; }
.rodape { height: 4rem; margin-top: .3rem; }
.ticker { font-size: 2.65rem; line-height: 1.2; border-top-width: .12rem; padding-top: .3rem; display: flex; align-items: center; }
.rodape .sem-som { font-size: 1.3rem; }
.mq-rot { padding: 0 1rem; border-radius: .4rem; margin-right: .6rem; }

/* ---- margens negativas (topo), cotações (lateral), anéis de margem sempre inteiros ---- */
.mq-neg { color: #ff5c5c; font-weight: 800; } .mq-ok { color: #4be27f; font-weight: 800; }
.mq-rot.neg-rot { background: #ff3b3b; color: #fff; }
.bloco-cot { margin-top: .5rem; border-radius: .9rem; padding: .6rem 1rem; background: linear-gradient(145deg, rgba(24,38,62,.85), rgba(13,20,33,.9)); border: .06rem solid rgba(110,165,255,.22); }
.cot-linha { display: flex; align-items: baseline; gap: .6rem; padding: .22rem 0; border-top: .05rem solid rgba(110,165,255,.12); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cot-nm { flex: 1; min-width: 0; color: #cfd9ea; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cot-pr { color: #fff; font-weight: 700; } .cot-v { min-width: 6.2rem; text-align: right; font-weight: 800; }
.aneis-loja { display: flex; gap: .6rem; } .aneis-loja > div { flex: 1; min-width: 0; } .aneis-loja svg { width: 100%; height: auto; max-height: 11rem; }
.bloco-cot { margin-top: .35rem; padding: .35rem .9rem .3rem; } .bloco-cot .rot { font-size: .85rem; margin-bottom: .1rem; } .cot-linha { font-size: 1.12rem; padding: .08rem 0; } .cot-v { min-width: 5.4rem; }
/* barra lateral compacta: tudo cabe também em janelas baixas (navegador de TV com barra de endereço) */
.lateral { padding-top: .55rem; padding-bottom: .5rem; }
.bloco-mes { padding-top: .4rem; padding-bottom: .4rem; margin-top: .35rem; }
.mini-bloco { padding: .35rem .8rem; } .mini-bloco .n { font-size: 1.55rem; }
.cot-linha { padding: .02rem 0; } .bloco-cot { margin-top: .25rem; padding-top: .25rem; padding-bottom: .2rem; } .bloco-mes { margin-top: .25rem; } .lateral { padding-top: .45rem; padding-bottom: .35rem; }

/* ---- melhorias: tela Margem cheia, alertas em tela cheia, espelhamento anti-marca ---- */
.margem-cheia { height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; }
.margem-cheia .aneis-loja svg { max-height: 17rem; } .margem-cheia .barra-h .t { font-size: 2rem; } .margem-cheia h4 { font-size: 1.8rem; }
.alerta-full { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem; }
.alerta-full .af-c { max-width: 90%; } .alerta-full .af-ic { font-size: 9rem; line-height: 1; } .alerta-full .af-t { font-size: 6.2rem; font-weight: 900; letter-spacing: .1rem; line-height: 1.05; }
.alerta-full .af-p { font-size: 4rem; font-weight: 800; margin-top: 1rem; line-height: 1.15; } .alerta-full .af-l { font-size: 2.6rem; font-weight: 700; margin-top: .8rem; }
.alerta-full .af-m { font-size: 4.2rem; font-weight: 900; margin-top: 1.2rem; } .alerta-full .af-d { font-size: 1.6rem; margin-top: 1.4rem; opacity: .85; }
.alerta-full.amarelo { color: #1a1300; background: #ffd800; -webkit-animation: pisca-am .7s steps(1) infinite; animation: pisca-am .7s steps(1) infinite; }
@-webkit-keyframes pisca-am { 0% { background: #ffd800; } 50% { background: #fff6a8; } 100% { background: #ffd800; } }
@keyframes pisca-am { 0% { background: #ffd800; } 50% { background: #fff6a8; } 100% { background: #ffd800; } }
.alerta-full.vermelho { color: #fff; background: #b3141b; -webkit-animation: pisca-vm .9s steps(1) infinite; animation: pisca-vm .9s steps(1) infinite; }
@-webkit-keyframes pisca-vm { 0% { background: #b3141b; } 50% { background: #ff3b3b; } 100% { background: #b3141b; } }
@keyframes pisca-vm { 0% { background: #b3141b; } 50% { background: #ff3b3b; } 100% { background: #b3141b; } }
.alerta-full.verde { color: #fff; background: #0b8f3c; -webkit-animation: pulsa-vd 1.6s ease-in-out infinite; animation: pulsa-vd 1.6s ease-in-out infinite; }
@-webkit-keyframes pulsa-vd { 0% { background: #0b8f3c; } 50% { background: #14c257; } 100% { background: #0b8f3c; } }
@keyframes pulsa-vd { 0% { background: #0b8f3c; } 50% { background: #14c257; } 100% { background: #0b8f3c; } }
.espelho .painel { flex-direction: row-reverse; top: 0; bottom: 4.4rem; }
.espelho .topo { top: auto; bottom: 0; border-bottom: 0; border-top: .08rem solid rgba(110,165,255,.3); }
.espelho .lateral { border-right: 0; border-left: .08rem solid rgba(90,150,255,.25); box-shadow: -.4rem 0 2rem rgba(0,0,0,.5); }
.espelho .rodape { order: -1; margin-top: 0; margin-bottom: .4rem; }

.alerta-full .af-mudo { margin-top: 2rem; font-size: 2rem; font-weight: 800; background: #000; color: #ffd800; display: inline-block; padding: .6rem 1.4rem; border-radius: .6rem; }
.rodape .sem-som { font-size: 1.7rem; -webkit-animation: pisca-sem 1.2s steps(1) infinite; animation: pisca-sem 1.2s steps(1) infinite; }
@-webkit-keyframes pisca-sem { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }
@keyframes pisca-sem { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }

/* barra lateral: fontes +10% (leitura à distância) e bloco de mercado idêntico ao "Mês até agora" */
.lateral .rot { font-size: .94rem; } .lateral .valor-gg { font-size: 3.55rem; } .lateral .linha-kpi { font-size: 1.27rem; } .lateral .linha-kpi b { font-size: 1.6rem; }
.lateral .loja-lat { font-size: 1.16rem; } .lateral .logo { font-size: 1.27rem; } .lateral .relogio { font-size: 1.76rem; } .lateral .mini-bloco .n { font-size: 1.7rem; } .lateral .mini { font-size: .94rem; }
.lateral .bloco-mes { margin-top: .5rem; padding: .6rem 1rem; }

/* totalizador das rupturas por loja */
.tot-rup { display: flex; gap: .8rem; margin-bottom: .6rem; }
.tot-card { flex: 1; border-radius: 1rem; padding: .5rem 1rem; background: linear-gradient(145deg, rgba(24,38,62,.85), rgba(13,20,33,.9)); border: .06rem solid rgba(110,165,255,.22); }
.tot-v { font-size: 2.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
tr.tr-total td { border-top: .12rem solid rgba(245,196,0,.6); font-weight: 800; font-size: 1.15em; padding-top: .35rem; }
/* barra lateral compacta */
.lateral .linha-kpi { margin-top: .18rem; } .lateral .bloco-cons { padding: .5rem .9rem; margin-bottom: .35rem; } .lateral .loja-lat { padding: .18rem .2rem; } .lateral .bloco-mes { padding: .4rem .9rem; margin-top: .35rem; }
.lateral .rot.sep { margin-top: .25rem; } .lateral .cab-lat { margin-bottom: .3rem; } .lateral .lat-rod { padding-top: .35rem; }

/* Categorias e Tipos de venda: uma tela para cada, ocupando a tela inteira */
.col-cheia { height: 100%; display: flex; flex-direction: column; } .col-cheia > div { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.col-cheia h4 { font-size: 1.9rem; } .col-cheia .barra-h .t { font-size: 2rem; } .col-cheia .tipo-linha { font-size: 2.1rem; } .col-cheia .tipo-linha .n { width: 3rem; height: 3rem; line-height: 3rem; }
.col-cheia .grafico { justify-content: center; } .col-cheia .mini { font-size: 1.15rem; }
/* ajustes de encaixe (medidos no navegador) */
.lateral .valor-gg { font-size: 3.41rem; }
.col-cheia .barra-h { margin: .1rem 0; } .col-cheia .barra-h .t { font-size: 1.6rem; } .col-cheia h4 { font-size: 1.7rem; } .col-cheia > div { justify-content: flex-start; gap: .5rem; }
.tot-v { font-size: 2.1rem; } .tot-card { padding: .3rem 1rem; } .tot-rup { margin-bottom: .4rem; }
.lateral .lat-rod .mini { display: none; }
.mq-hora { color: #8fd3ff; font-weight: 800; }
.banner-som { position: fixed; left: 50%; bottom: 7rem; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 40; background: #ffd800; color: #1a1300; font-size: 2.6rem; font-weight: 900; padding: .8rem 2rem; border-radius: 1rem; box-shadow: 0 0 3rem rgba(0,0,0,.7); white-space: nowrap; -webkit-animation: pisca-sem 1.2s steps(1) infinite; animation: pisca-sem 1.2s steps(1) infinite; }
.azul { color: #5ab4ff; } .tot-v.azul { color: #5ab4ff; }
.mq-rot.rot-valor { background: #ff7a00; color: #fff; }
.tab-custo td { white-space: nowrap; } .tab-custo td.prod { max-width: 36rem; overflow: hidden; text-overflow: ellipsis; }
.tot-custo .tot-v { font-size: 1.75rem; } .tot-custo .tot-card { padding: .25rem .8rem; } .tot-custo .rot { white-space: nowrap; font-size: .8rem; } .tab-custo td { padding-top: .22rem; padding-bottom: .22rem; }
table.tab.tab-custo td { padding-top: .4rem; padding-bottom: .4rem; }

/* clima: nome da cidade 5× maior (era .85rem); nomes longos encolhem um pouco para caber em duas linhas */
.clima-card .clima-cidade { font-size: 4.25rem; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: #fff; margin: .1rem 0 .35rem; overflow: hidden; }
.clima-grade.multi .clima-card .temp { font-size: 4.2rem; } .clima-grade.multi .clima-card { overflow: hidden; }

/* metas do mês */
.metas-tab td { font-size: 1.7rem; } .metas-tab th { font-size: 1.05rem; } .metas-tab td.ating { font-size: 2.5rem; font-weight: 800; } .metas-tab td b { font-size: 2.2rem; } .metas-tab td.pos, .metas-tab td.pos b { color: #5be08a; } .metas-tab td.amb, .metas-tab td.amb b { color: #ffd23a; } .metas-tab td.neg, .metas-tab td.neg b { color: #ff7b7b; }
.metas-tab .barra-td { width: 18%; } .barra-meta { height: .9rem; background: #1b2735; border-radius: .5rem; overflow: hidden; } .barra-meta i { display: block; height: 100%; border-radius: .5rem; background: #8a94a3; } .barra-meta i.pos { background: #2fbf6b; } .barra-meta i.amb { background: #f5c400; } .barra-meta i.neg { background: #ff4d4d; }
.metas-tab tr.sit td { font-size: .95rem; color: #9aa4b2; padding-top: 0; } .metas-tab tr.tot-lin td { border-top: .15rem solid #3b5a8a; font-weight: 800; } .metas-tab td .mini { font-size: .95rem; font-weight: 500; color: #9aa4b2; }
.metas-tab td.real-ate { font-size: 1.5rem; color: #cfd6e0; } .metas-tab td.real-ate b { font-size: 1.5rem; color: #cfd6e0; } .metas-tab td.real-ate .mini { font-size: .95rem; }
/* mesmo dia nas últimas semanas */
.semanas-tab td, .semanas-tab th { font-size: 1.45rem; } .semanas-tab td.hoje-col, .semanas-tab th.hoje-col { background: rgba(255,210,58,.08); font-weight: 800; } .semanas-tab td.pos { color: #5be08a; font-weight: 800; } .semanas-tab td.neg { color: #ff7b7b; font-weight: 800; } .semanas-tab tr.tot-lin td { border-top: .15rem solid #3b5a8a; font-weight: 800; }
/* forma de pagamento */
.barra-formas { display: flex; height: .95rem; border-radius: .5rem; overflow: hidden; background: #1b2735; min-width: 9rem; } .barra-formas.alta { height: 1.25rem; margin-top: .35rem; } .barra-formas i { display: block; height: 100%; }
.leg-formas { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 1.05rem; color: #cfd6e0; margin: .2rem 0 .5rem; } .leg-formas b { display: inline-block; width: .9rem; height: .9rem; border-radius: .25rem; margin-right: .35rem; vertical-align: -.1rem; }
.pag-tab td, .pag-tab th { font-size: 1.25rem; } .pag-tab td .mini { font-size: .9rem; font-weight: 500; color: #9aa4b2; } .pag-tab td.neg, .cartao-tab td.neg { color: #ff7b7b; font-weight: 800; } .pag-tab td.amb { color: #ffd23a; font-weight: 800; } .pag-tab .barra-td { width: 14%; } .pag-tab tr.tot-lin td { border-top: .15rem solid #3b5a8a; font-weight: 800; }
.cartao-tab td, .cartao-tab th { font-size: 1.35rem; } .cartao-tab td.pos { color: #5be08a; font-weight: 800; }
.tipo-pg { margin: .1rem 0 .6rem 2.2rem; } .tipo-pg .mini { font-size: .95rem; color: #9aa4b2; margin-top: .2rem; }
/* margem % diária */
.md-tv { display: flex; flex-direction: column; gap: .5rem; height: 100%; } .md-tv-faixa { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; } .md-tv-kpi { background: #101b2d; border: 1px solid #243752; border-radius: .7rem; padding: .35rem .8rem; }
.md-tv-kpi .rot { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: #9fb4d6; } .md-tv-kpi .v { font-size: 2.1rem; font-weight: 800; line-height: 1.1; } .md-tv-kpi .v.pos { color: #5be08a; } .md-tv-kpi .v.neg { color: #ff7b7b; } .md-tv-kpi .mini { font-size: .95rem; color: #9aa4b2; }
.md-tv-main { background: #0d1626; border: 1px solid #243752; border-radius: .7rem; padding: .3rem .6rem; } .md-tv-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.md-tv-cat { background: #0d1626; border: 1px solid #243752; border-radius: .7rem; padding: .25rem .5rem .1rem; } .md-tv-cat .t { display: flex; justify-content: space-between; gap: .5rem; font-size: 1.1rem; } .md-tv-cat .t span { color: #cfd6e0; }

/* Mensagem avulsa: celebração de cinco segundos, sem interferir no painel. */
.mensagem-festa{position:fixed;inset:0;top:0;left:0;width:100vw;height:100vh;z-index:100000;background:radial-gradient(ellipse at center,#173258 0%,#06101e 75%);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff}
.fogos-decor{position:absolute;inset:0;top:0;left:0;width:100%;height:100%;pointer-events:none}
.fogo-grupo{position:absolute}.fogo-particula{position:absolute;width:9px;height:9px;border-radius:50%;box-shadow:0 0 14px currentColor;animation:fogo-expandir 1.5s ease-out 5 both}
@keyframes fogo-expandir{0%{transform:translate(0,0) scale(.4);opacity:0}12%{opacity:1}85%{opacity:.8}100%{transform:translate(var(--fx),var(--fy)) scale(.3);opacity:0}}
.festa-conteudo{position:relative;z-index:1;text-align:center;max-width:84%;padding:3rem;background:rgba(6,16,30,.72);border-radius:2rem;text-shadow:0 2px 10px #000}
.festa-marca{font-size:1.5rem;letter-spacing:.22em;color:#a8dcff;margin-bottom:2rem}.festa-texto{font-size:4.2rem;line-height:1.2;font-weight:900;white-space:normal;overflow-wrap:break-word}.festa-som{font-size:1.2rem;color:#ffe187;margin-top:2rem}
@media(prefers-reduced-motion:reduce){.fogo-particula{animation:none;transform:translate(var(--fx),var(--fy));opacity:.65}}

.festa-gestores{font-size:2.4rem;font-weight:900;letter-spacing:.08em;color:#ffe16a}

.alerta-full.roxo{background:#471177;color:#fff;border-color:#c9a1ff}.alerta-full.roxo .af-t,.alerta-full.roxo .af-p,.alerta-full.roxo .af-m,.alerta-full.roxo .af-d,.alerta-full.roxo .af-l{color:#fff}

/* Tendência diária: preservar leitura e todos os blocos na lateral fixa. */
.lateral .linha-kpi { line-height: 1.12; }
.lateral .linha-kpi b { font-size: 1.45rem; }

/* Margem realizada do dia, à direita do atingimento projetado. */
.lateral .loja-lat .margem-dia { width: 4.6rem; flex-shrink: 0; margin-left: .45rem; padding-left: .35rem; border-left: 1px solid #334155; }

/* Cestas: seis categorias e nota sempre acima do rodapé da TV. */
.cesta-tv{display:grid;grid-template-rows:auto minmax(0,1.45fr) minmax(0,1fr) auto;min-height:0;--cesta-cor:#4da3ff}
.cesta-carrinho{--cesta-cor:#48d9bc}.cesta-atacarejo{--cesta-cor:#c3a0ff}
.cesta-tv .md-tv-main,.cesta-tv .md-tv-cats,.cesta-tv .md-tv-cat{min-height:0}
.cesta-tv .md-tv-cats{grid-template-rows:repeat(2,minmax(0,1fr))}
.cesta-tv .md-tv-cat{display:flex;flex-direction:column}
.cesta-tv .md-tv-cat .t{flex:none;font-size:1rem}
.cesta-tv svg{height:100%!important;min-height:0}
.cesta-tv .md-tv-cat svg{flex:1}
.cesta-tv [stroke="#4da3ff"]{stroke:var(--cesta-cor)}.cesta-tv [fill="#4da3ff"]{fill:var(--cesta-cor)}
.cesta-tv .cesta-nota{font-size:.82rem;color:#b7c9e2;line-height:1.15}

/* Comparação por loja: três telas de segmento, seis lojas em cada tela. */
.cesta-lojas{grid-template-rows:auto minmax(0,1fr) auto;gap:.7rem;height:100%;min-height:0}
.cesta-lojas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:.8rem;min-height:0}
.cesta-loja{background:#0d1626;border:1px solid #30435e;border-radius:.7rem;padding:.65rem;display:grid;grid-template-rows:auto auto minmax(0,1fr);min-height:0;gap:.3rem}
.cesta-loja-cab{display:flex;justify-content:space-between;gap:.3rem;font-size:1.1rem;align-items:baseline}
.cesta-loja-cab span{font-size:.95rem}
.cesta-loja-numeros{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap}
.cesta-loja-numeros strong{font-size:2.2rem}.cesta-loja-numeros span{font-size:.95rem;color:#b7c9e2}.cesta-loja-numeros b{font-size:1.15rem}
.cesta-lojas .md-tv-kpi .v{font-size:1.8rem}

/* Decomposição por categoria: uma lâmina por loja, sem ultrapassar o ticker. */
.cesta-categorias{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:.6rem}
.cesta-cat-tabela{min-height:0;display:flex;flex-direction:column;border:1px solid #30435e;border-radius:.7rem;overflow:hidden;background:#101b2d}
.cesta-cat-linha{display:grid;grid-template-columns:1.4fr .85fr 1fr 1fr 1fr;gap:1rem;align-items:center;padding:.45rem .8rem;flex:1;min-height:0;border-bottom:1px solid #243752;font-size:1.15rem}
.cesta-cat-linha.cab{flex:0 0 auto;font-size:.95rem;color:#b7c9e2;background:#19283f;padding:.7rem .8rem}.cesta-cat-linha>span{text-align:center}
.cesta-cat-linha>b{font-size:1.05rem;line-height:1.15;overflow-wrap:anywhere}.cesta-cat-impacto b{font-size:1.3rem}
.cesta-cat-track{position:relative;height:.7rem;background:#23364b;margin-top:.15rem;border-radius:.3rem}
.cesta-cat-track:after{content:"";position:absolute;left:50%;height:100%;border-left:1px solid #b7c9e2}
.cesta-cat-track i{position:absolute;top:0;height:100%;border-radius:.3rem}.cesta-cat-track i.pos{background:#5be08a}.cesta-cat-track i.neg{background:#ff7b7b}
.cesta-cat-insights{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.cesta-cat-insights .v{font-size:1.45rem}
.cesta-cat-base{padding:.5rem .8rem;border:1px solid #665632;background:#292518;color:#ffe6a1;font-size:1rem;line-height:1.25;border-radius:.6rem}
.cesta-cat-nota{font-size:.8rem;color:#b7c9e2;line-height:1.2}

/* Presença por SKU no Atacarejo: 5 perdas e 5 ganhos por loja. */
.cesta-skus{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:.55rem}
.cesta-skus-cats{font-size:.95rem;color:#c6d7ed;line-height:1.2}
.cesta-skus-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;min-height:0}
.cesta-skus-col{display:flex;flex-direction:column;min-height:0;background:#101b2d;border:1px solid #30435e;border-radius:.7rem;overflow:hidden}
.cesta-skus-col h3{margin:0;padding:.5rem .8rem;font-size:1.05rem;background:#19283f}
.cesta-sku-item{flex:1;min-height:0;padding:.4rem .8rem;border-bottom:1px solid #30435e;color:#edf4ff;display:flex;flex-direction:column;justify-content:center;gap:.18rem}
.cesta-sku-top{display:flex;justify-content:space-between;gap:.65rem;align-items:center}
.cesta-sku-top>b{font-size:1.15rem;line-height:1.13;overflow-wrap:anywhere}.cesta-sku-top strong{font-size:1.22rem;white-space:nowrap}
.cesta-sku-ident{font-size:.82rem;color:#b7c9e2;line-height:1.1}.cesta-sku-valores{font-size:1.02rem;line-height:1.15}
.cesta-sku-vazio{padding:2rem 1rem;color:#b7c9e2;font-size:1.2rem}
/* Cancelamentos: cinco itens por pagina, com troca automatica. */
.alerta-full.cancelamento .af-c{width:92%;max-width:92%}
.alerta-full.cancelamento .af-ic{display:none}
.alerta-full.cancelamento .af-t{font-size:3rem}
.alerta-full.cancelamento .af-p,.alerta-full.cancelamento .af-m{font-size:2.4rem;margin-top:.5rem}
.alerta-full.cancelamento .af-l{font-size:1.8rem;margin-top:.4rem}
.alerta-full.cancelamento .af-d{font-size:1.1rem;margin-top:.5rem}
.alerta-full.cancelamento .af-pg{font-size:1.5rem;margin:.8rem 0;overflow-wrap:anywhere}
.alerta-full.cancelamento .af-itens{text-align:left;max-width:90%;margin:auto}
.alerta-full.cancelamento .af-item{font-size:1.5rem;padding:.3rem 0;border-bottom:1px solid #ffffff40;overflow-wrap:anywhere}
.alerta-full.cancelamento .af-mudo{font-size:1rem;margin-top:.5rem}

.pricing-opp-tv .tab{table-layout:fixed;width:100%}.pricing-opp-tv .tab th:first-child{width:24%}.pricing-opp-tv .tab th:last-child{width:23%}.pricing-opp-tv .tab td{white-space:normal;padding:14px 10px;vertical-align:top}.pricing-opp-tv .mini{font-size:clamp(12px,1.05vw,19px);line-height:1.35}.pricing-opp-tv .opp-change{color:#a7d4ff;font-weight:800;font-size:clamp(15px,1.3vw,24px)}.pricing-opp-tv .opp-warning{color:#ffd179;font-size:clamp(12px,1vw,18px)}.pricing-opp-tv .opp-baixar td:first-child{border-left:5px solid #72b7ff}.pricing-opp-tv .opp-aumentar td:first-child{border-left:5px solid #70d9ae}.pricing-opp-tv .opp-custo td:first-child{border-left:5px solid #ffd179}

/* Estoque fixo: reaproveita cotações e rodapé, preservando fontes dos demais KPIs. */
.lateral .estoque-lat { margin-top:.4rem; padding:.45rem .65rem; flex:0 0 auto; }
.estoque-lat-tab { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; font-size:1.16rem; line-height:1.25; }
.estoque-lat-tab th,.estoque-lat-tab td { padding:.18rem .15rem; text-align:right; white-space:nowrap; border-bottom:1px solid #293b50; }
.estoque-lat-tab th:first-child { text-align:left; }
.estoque-lat-tab thead { color:#afc5df; font-size:.98rem; }
.estoque-lat-tab .estoque-total { background:#22354c; font-weight:800; }
.estoque-lat-tab .estoque-total th,.estoque-lat-tab .estoque-total td { border-top:2px solid #91bbef; }
.estoque-nota { font-size:.85rem; line-height:1.25; color:#b8cbe1; margin-top:.16rem; }
.estoque-nota.amb { color:#ffc457; }

/* Seis lojas e totalizador sempre visíveis, sem encolher os números. */
.lateral .cab-lat { line-height:1.05; margin-bottom:.15rem; }
.lateral .rot,.lateral .mini { line-height:1.1; }
.lateral .linha-kpi { margin-top:.08rem; line-height:1.04; }
.lateral .bloco-cons { padding:.35rem .9rem; margin-bottom:.2rem; }
.lateral .loja-lat { line-height:1.08; padding:.1rem .2rem; }
.lateral .bloco-mes { padding:.3rem .9rem; margin-top:.25rem; }
.lateral .estoque-lat { padding:.3rem .65rem; }
.estoque-lat-tab { line-height:1.08; }
.estoque-lat-tab th,.estoque-lat-tab td { padding:.1rem .15rem; }
.estoque-nota { line-height:1.1; margin-top:.12rem; }
.estoque-seta { display:inline-block; margin-left:.14rem; font-weight:900; font-size:1.16rem; line-height:1; }

/* Evolução semanal na própria fonte; espaço destinado ao estoque sem venda. */
.estoque-lat-tab { font-size:1.16rem; }
.estoque-lat-tab th,.estoque-lat-tab td { padding-left:.08rem; padding-right:.08rem; }
.estoque-lat-tab thead th:last-child { white-space:normal; max-width:5.4rem; line-height:1.05; }
.estoque-evolucao { font-weight:700; }
.estoque-evolucao.sem-base { color:#edf4ff; }
/* Cinco colunas com os mesmos números legíveis: dois pontos percentuais a mais na lateral. */
.painel .lateral { width:27%; flex-shrink:0; }
.painel .central { width:73%; }

/* Quinze itens simultâneos por loja, sem sobrepor o rodapé. */
.inventario15-tv{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.4rem}
.inventario15-info{display:flex;justify-content:space-between;gap:1rem;padding:.4rem .6rem;background:#14243a;font-size:1.16rem}.inventario15-info span{color:#afc5df}
.inventario15-list{min-height:0;display:flex;flex-direction:column;border:1px solid #30435e;border-radius:.5rem;overflow:hidden}
.inventario15-linha{flex:1;min-height:0;display:grid;grid-template-columns:1.8rem 5.4rem minmax(0,1fr) 8rem 6rem 12rem;gap:.65rem;align-items:center;padding:.16rem .65rem;border-bottom:1px solid #26364c;font-size:1.15rem;line-height:1.1}
.inventario15-linha.cab{flex:0 0 auto;font-size:1rem;background:#1c2c43;color:#bad0ed;padding:.4rem .65rem}
.inventario15-linha:nth-child(odd){background:#111e30}.inventario15-linha>span:nth-child(n+4),.inventario15-linha>b:nth-child(4),.inventario15-valor{text-align:right}
.inventario15-prod{min-width:0}.inventario15-prod strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.2rem}.inventario15-prod small,.inventario15-valor small{display:block;color:#b6c9e2;font-size:.82rem;line-height:1.1;margin-top:.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventario15-valor b{font-size:1.25rem;color:#ffda7a}.inventario15-nota{font-size:.9rem;line-height:1.15;color:#b6c9e2}

.inventario15-saldo{text-align:right}.inventario15-saldo small{display:block;font-size:.82rem;color:#b6c9e2;margin-top:.12rem}
.pricing-daily-tv{height:100%;display:flex;flex-direction:column;gap:.45rem;min-height:0}.pricing-daily-tv h2{font-size:2rem;letter-spacing:.02em;margin:0}.pd-tv-sub{font-size:1.1rem;color:#c3d7f1}.pd-tv-pending{font-size:.92rem;color:#f2d19a}.pd-tv-table{width:100%;table-layout:fixed;margin-top:.45rem;flex:1}.pd-tv-table th{font-size:.9rem;line-height:1.2;padding:.65rem .45rem;color:#c4d7ed;white-space:normal}.pd-tv-table th:first-child{width:29%;text-align:left}.pd-tv-table td{vertical-align:middle;padding:.6rem .45rem;font-size:1.5rem;border-bottom:1px solid #293c56}.pd-tv-table small{display:block;font-size:.86rem;line-height:1.2;color:#b8cbe1;margin-top:.4rem;overflow-wrap:anywhere}.pd-tv-table .pd-tv-product strong{font-size:1.26rem;line-height:1.2;display:block}.pd-tv-table .pd-tv-product small{font-size:.9rem}.pd-tv-proposal{background:rgba(70,153,220,.12)}.pd-tv-proposal strong{font-size:1.8rem;color:#8fceff;white-space:nowrap}.pd-tv-table .pd-tv-warning{color:#ffd38c}.pd-tv-foot{font-size:.85rem;color:#b8cbe1;line-height:1.25;margin-top:auto}.pd-tv-table tr:last-child td{border-bottom:0}


/* Daily task completion beside daily revenue, with aligned store headers. */
.fat-dia-tarefas{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.fat-dia-valor{min-width:0}.lateral .fat-dia-valor .valor-gg{font-size:3.05rem;white-space:nowrap}
.tarefa-total{flex:0 0 auto;text-align:right;border-left:1px solid #334155;padding-left:.55rem}
.tarefa-total .rot{font-size:.85rem;letter-spacing:0}.tarefa-total-pct{font-size:1.9rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.lateral .loja-lat{display:grid;grid-template-columns:2.7rem minmax(5.8rem,1fr) 4.1rem 5.5rem 4.3rem;gap:.28rem;align-items:center}
.lateral .loja-lat .cod,.lateral .loja-lat .fat,.lateral .loja-lat .mg,.lateral .loja-lat .margem-dia{width:auto;min-width:0;margin:0;padding:0;border:0;white-space:nowrap}
.lateral .loja-lat-cab{font-size:.82rem;color:#b8cbe1;padding-bottom:.25rem}
.loja-lat-cab>span:not(:first-child),.tarefas-pct{text-align:right}.tarefas-pct{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}

/* TP: two fixed category tables, six rows each, readable within the TV sidebar. */
.lateral .linha-kpi{font-size:1rem;line-height:1.1;margin-top:.12rem}
.lateral .linha-kpi b{font-size:1.12rem}
.lateral .valor-gg{font-size:2.7rem}
.lateral .bloco-mes{padding:.3rem .6rem}
.lateral .estoque-lat{margin-top:.35rem;min-height:0}
.lateral .estoque-lat-tab{width:100%;table-layout:fixed;font-size:.875rem}
.lateral .estoque-lat-tab th:first-child{width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lateral .estoque-lat-tab td{padding:.18rem .06rem;font-size:.875rem;white-space:nowrap}
.lateral .estoque-nota{font-size:.75rem;line-height:1.12}
.md-tv>div{min-height:0}

/* TP v2: fixed overview and rankings side by side; native Precito content styles. */
.painel .lateral,.lateral{width:43%;padding:.6rem .8rem;display:flex;flex-direction:column;gap:.35rem}
.painel .central,.central{width:57%;padding:.7rem 1rem .4rem}
.lateral .cab-lat{margin:0}.lateral .logo{font-size:1rem}
.tp-lat-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.7rem;flex:1;min-height:0}
.tp-lat-main,.tp-lat-ranks{min-width:0;display:flex;flex-direction:column;gap:.45rem}
.tp-lat-ranks{border-left:1px solid #334155;padding-left:.65rem}
.lateral .bloco-cons{display:grid;grid-template-columns:1fr 1fr;gap:.1rem .9rem;margin:0;padding:.5rem .7rem}
.lateral .bloco-cons .fat-dia-tarefas{grid-row:span 3;align-items:start}
.lateral .tarefa-total{display:none}
.lateral .linha-kpi{font-size:.9rem}.lateral .linha-kpi b{font-size:1.05rem}
.lateral .bloco-cons .fat-dia-valor .valor-gg{font-size:2.5rem}
.lateral .estoque-lat-tab{font-size:.9rem;table-layout:fixed}
.lateral .estoque-lat-tab th,.lateral .estoque-lat-tab td{font-size:.9rem;line-height:1.15;padding:.3rem .1rem}
.lateral .estoque-lat-tab th:first-child{width:43%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.lateral .estoque-lat-tab th:not(:first-child){width:auto;white-space:normal}
.lateral .estoque-lat-tab td{white-space:nowrap}
.lateral .rot{font-size:.92rem;letter-spacing:.02em}
.lateral .estoque-nota{font-size:.78rem;line-height:1.2;margin-top:.2rem}
.lateral .bloco-mes{padding:.35rem .5rem;margin:0}
.tp-ranking{min-width:0;flex:1}
.tp-rank-row{display:flex;align-items:center;justify-content:space-between;gap:.3rem;border-bottom:1px solid #23334b;padding:.3rem 0}
.tp-rank-name{min-width:0;flex:1}.tp-rank-name b{display:block;font-size:1rem;font-weight:600;line-height:1.15;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tp-rank-name small,.tp-rank-value small{display:block;font-size:.78rem;color:#9fb4d6;line-height:1.1;margin-top:.15rem}
.tp-rank-value{text-align:right;white-space:nowrap;font-size:1rem;font-variant-numeric:tabular-nums}
.tp-market{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:.15rem .6rem;border-top:1px solid #385174;padding-top:.4rem;flex:none}
.tp-market>div{display:flex;gap:.4rem;align-items:baseline;justify-content:space-between}
.tp-market b{font-size:1.2rem}.tp-market-source{grid-column:1/-1;color:#9fb4d6;font-size:.75rem}
.tp-table-page{height:100%;display:flex;flex-direction:column;gap:.6rem}
.tp-table-page .tp-source{margin-top:auto;line-height:1.35;font-size:.95rem}
table.tp-table{table-layout:fixed;font-size:1.35rem}
table.tp-table th{font-size:.95rem;padding:.5rem .35rem}
table.tp-table td{padding:.55rem .35rem;white-space:normal;line-height:1.15;vertical-align:middle}
table.tp-table td:first-child,table.tp-table th:first-child{width:39%}
table.tp-table td.prod{white-space:normal;font-size:1.2rem;font-weight:600}
.tp-product{overflow-wrap:anywhere}.tp-sku{display:block;color:#9fb4d6;font-size:.8rem;margin:.2rem 0 0 2rem}
.tp-chart-panels{display:flex;flex-direction:column;flex:1;min-height:0;gap:.5rem}
.tp-chart-panels .md-tv-main{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.tp-chart-panels svg{max-height:100%}
.tp-charts .md-tv-faixa{grid-template-columns:repeat(auto-fit,minmax(8rem,1fr))}
.tp-charts .tp-source{font-size:.85rem;line-height:1.2}
.tp-charts .md-tv-cat .t{font-size:1rem}

/* Clear visual sections and explicit category comparison. */
.tp-lat-ranks{gap:.75rem;border-left:0;padding-left:0}
.tp-ranking{background:#101c2d;border:1px solid #354b68;border-left:4px solid #68b7fa;border-radius:.55rem;padding:.5rem .6rem;box-shadow:0 .2rem .5rem #0003}
.tp-ranking.tp-rank-quedas{border-left-color:#d6a3ff;background:#171d30}
.tp-ranking.tp-rank-margens{border-left-color:#ffc36b;background:#211f2b}
.tp-ranking>.rot{font-size:1rem;font-weight:800;line-height:1.2;color:#d9edff;padding-bottom:.35rem;margin-bottom:.3rem;border-bottom:1px solid #47617e}
.tp-ranking.tp-rank-quedas>.rot{color:#e2caff}.tp-ranking.tp-rank-margens>.rot{color:#ffe1af}
.tp-rank-columns{display:flex;justify-content:space-between;font-size:.75rem;color:#b7c9df;text-transform:uppercase;letter-spacing:.04em;padding-bottom:.15rem}
.tp-rank-row{padding:.28rem 0;border-bottom-color:#2e4058}
.tp-rank-row:last-of-type{border-bottom:0}
.tp-ranking>.estoque-nota{border-top:1px solid #354b68;padding-top:.35rem;margin-top:.2rem;color:#abc0db}
.tp-rank-name b{font-size:.97rem}.tp-rank-value{font-size:1rem}
.lateral .estoque-lat{background:#101c2d;border:1px solid #354b68;border-radius:.55rem;padding:.5rem .6rem}
.lateral .estoque-lat>.rot{color:#d9edff;font-weight:800;padding-bottom:.3rem}
.lateral .estoque-lat-tab th:first-child{width:37%}
.lateral .estoque-lat-tab th:not(:first-child){text-align:right;font-size:.82rem}
.lateral .estoque-lat-tab th span{display:block}
.lateral .estoque-lat-tab th small{display:block;font-size:.78rem;color:#abc0db;font-weight:500;margin-top:.2rem}
.lateral .estoque-lat-tab td{font-size:.86rem;padding:.32rem .15rem}
.tp-category-context{font-size:.8rem;color:#b9cde7;line-height:1.3;margin:0 0 .4rem}
.histogramas-hora{height:100%;display:flex;flex-direction:column;gap:.75rem;overflow:hidden!important}
.histogramas-hora>.md-tv-main{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.histogramas-hora svg{min-width:0!important;max-height:28vh!important}
.histogramas-hora>.mini{margin-top:auto;line-height:1.4}

/* Measured in the live browser: keep all three ranking sections inside the sidebar. */
.tp-lat-main,.tp-lat-ranks{min-height:0}
.tp-rank-row{line-height:1.1;padding:.2rem 0}
.tp-rank-value b{display:block;line-height:1.1}
.tp-rank-name small,.tp-rank-value small{line-height:1.1;margin-top:.1rem}
.tp-ranking>.rot{line-height:1.1;padding-bottom:.25rem;margin-bottom:.2rem}
.tp-rank-columns{line-height:1.1;padding-bottom:.1rem}
.tp-ranking>.estoque-nota{line-height:1.1;padding-top:.25rem}

/* Measured in the live browser: keep all three ranking sections inside the sidebar. */
.tp-lat-main,.tp-lat-ranks{min-height:0}
.tp-rank-row{line-height:1.1;padding:.12rem 0}
.tp-rank-value b{display:block;line-height:1.1}
.tp-rank-name small,.tp-rank-value small{line-height:1.1;margin-top:.1rem}
.tp-ranking>.rot{line-height:1.1;padding-bottom:.25rem;margin-bottom:.2rem}
.tp-rank-columns{line-height:1.1;padding-bottom:.1rem}
.tp-ranking>.estoque-nota{line-height:1.1;padding-top:.25rem}

/* SDG: meta compacta e gráfico combinado com escalas explícitas. */
.sdg-baixo { flex-direction: column; }
.sdg-meta-compacta { flex: 0 0 auto; padding: .45rem 1rem; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sdg-meta-compacta .sdg-meta-v { font-size: 1rem; margin: 0; }
.sdg-meta-compacta .barra { width: 8rem; }
.sdg-combinado { flex: 1 1 0; min-height: 0; }
.sdg-legenda { color: #fff2a6; font-size: .85rem; margin: .2rem 0; }
.sdg-chart { width: 100%; flex: 1 1 0; min-height: 0; }

/* Comparativos gerenciais: até dez linhas por página. */
.tp-analysis-table .tp-table { font-size: .88rem; table-layout: fixed; width:100%; }
.tp-analysis-table .tp-table th,.tp-analysis-table .tp-table td { padding:.28rem .35rem; overflow-wrap:anywhere; }
.tp-analysis-table .tp-table th:first-child,.tp-analysis-table .tp-table td:first-child { width:27%; }
.tp-analysis-table .tp-table .rk { display:none; }
.tp-analysis-table .tp-source { font-size:.72rem; line-height:1.25; }
.tp-over { font-weight:800; background:rgba(255,80,80,.08); }
.tp-stat { display:flex; flex-wrap:wrap; gap:.15rem .7rem; font-size:.68rem; color:#adbed3; line-height:1.15; }
.tp-stat span { white-space:normal; }
.tp-graph-legend { font-size:.65rem; color:#9da8b8; line-height:1.1; margin:.12rem 0; }
.tp-stock-total { border-top:.09rem solid #7186a2; font-weight:800; }
.tp-stock-total td:last-child { font-size:.65rem; white-space:normal; }
.md-tv-cat .tp-stat { font-size:.6rem; }

/* ABC: resumo acima, quatro rankings completos abaixo. */
.tp-abc-page { gap:.45rem; }
.tp-abc-page>.tp-table { font-size:.85rem; flex:0 0 auto; }
.tp-abc-page>.tp-table td,.tp-abc-page>.tp-table th { padding:.2rem .4rem; }
.tp-abc-page>.tp-table .rk { display:none; }
.tp-abc-top { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:.45rem; flex:1; min-height:0; }
.tp-abc-card { background:#101c2d; border:1px solid #2c405b; border-radius:.6rem; padding:.45rem .55rem; min-width:0; min-height:0; }
.tp-abc-card>.rot { font-size:.8rem; margin-bottom:.2rem; color:#b8cce6; }
.tp-abc-items { width:100%; table-layout:fixed; border-collapse:collapse; font-size:.72rem; }
.tp-abc-items th,.tp-abc-items td { padding:.16rem .25rem; text-align:right; border-bottom:1px solid #2a384d; }
.tp-abc-items th { color:#9fb4d6; font-size:.62rem; }
.tp-abc-items th:first-child,.tp-abc-items td:first-child { width:46%; text-align:left; }
.tp-abc-name b { display:block; overflow-wrap:anywhere; line-height:1.15; }
.tp-abc-name small { display:block; font-size:.6rem; color:#9fb4d6; }
.tp-abc-page>.tp-source { font-size:.65rem; line-height:1.15; }

/* ABC mensal: comparações em duas linhas, preservando os quatro rankings. */
.tp-abc-items { font-size:.68rem; }
.tp-abc-items th:first-child,.tp-abc-items td:first-child { width:34%; }
.tp-abc-items th:last-child,.tp-abc-items td:last-child { width:12%; }
.tp-abc-items td>small { display:block; font-size:.57rem; line-height:1.15; margin-top:.08rem; }
.tp-abc-name b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tp-abc-page>.tp-source { font-size:.61rem; }

.tp-weather { height:100%; display:flex; flex-direction:column; gap:.65rem; min-height:0; }
.tp-weather-title { font-size:1.8rem; font-weight:800; }
.tp-weather-context { color:#a4bfdc; font-size:.8rem; }
.tp-weather-today { display:flex; gap:.7rem; flex:1; min-height:0; }
.tp-weather-now { width:27%; border:1px solid #345171; border-radius:.7rem; padding:1rem; background:#112139; display:flex; flex-direction:column; justify-content:center; }
.tp-weather-temp { font-size:3.4rem; font-weight:800; color:#f5c400; }
.tp-weather-metrics { flex:1; display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; }
.tp-weather-metric { padding:.65rem; background:#101c2d; border:1px solid #2a405b; border-radius:.6rem; display:flex; flex-direction:column; justify-content:center; gap:.4rem; }
.tp-weather-metric .rot { font-size:.7rem; }
.tp-weather-metric b { font-size:1.25rem; }
.tp-weather-week { display:grid; grid-template-columns:repeat(7,1fr); gap:.45rem; flex:1; min-height:0; }
.tp-weather-day { background:#101c2d; border:1px solid #2a405b; border-radius:.6rem; padding:.7rem .5rem; display:flex; flex-direction:column; justify-content:space-around; gap:.3rem; font-size:.85rem; }
.tp-weather-condition { color:#a4bfdc; min-height:2em; font-size:.75rem; }
.tp-weather-range { font-size:1.1rem; font-weight:800; }
.tp-weather-rain { color:#82bdff; font-size:1.2rem; }
.tp-weather-day small { font-size:.65rem; color:#a4bfdc; }

/* Mensal: proporção preservada e valores alinhados fora da área de traçado. */
.sdg-combinado { padding:.65rem 1rem; background:linear-gradient(145deg,#111e32,#0b1422); }
.sdg-combinado>.rot { font-size:.8rem; letter-spacing:.05em; }
.sdg-legenda { font-size:.7rem; color:#aebbd0; margin:.15rem 0 .3rem; }
.sdg-chart { width:100%; height:auto; max-height:100%; flex:1 1 0; min-height:0; }
.sdg-combinado>.mini { font-size:.65rem; color:#899bb4; }

/* Histórico: linhas leves, valores fora do traçado, proporção preservada. */
.tp-refined-chart { font-family:Arial,sans-serif; max-height:100%; }
.md-tv-cat { min-width:0; }
.md-tv-cat .t { line-height:1.2; overflow-wrap:anywhere; }

.centro .marca::before,.cab-lat .logo::before{content:"";display:block;width:8rem;height:2.4rem;background:url("/brait.png") left center/contain no-repeat;}
