/* Connect Live — 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; }
