/* Painel Nippobraz — complementos ao v2.css (mesmo visual do Dashboard v2 do anacondabio) */
.nb-logo { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2C4F7C, #4A6A91); box-shadow: 0 0 0 3px rgba(95,211,160,.18); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.nb-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mudo); cursor: pointer; user-select: none; }
.nb-chk input { width: 15px; height: 15px; accent-color: var(--azul); }
.nb-alvo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mudo); }
.nb-alvo input { width: 62px; border: 1px solid var(--borda); border-radius: 8px; padding: 6px 8px; text-align: right; font: inherit; }
#kpis_s, #kpis_t { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { #kpis_s, #kpis_t { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t td.txt .sub2 { display: block; font-size: 11.5px; color: var(--mudo-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.t td.desc { text-align: left; white-space: normal; min-width: 220px; }
.t tr.tot td { font-weight: 700; border-top: 1px solid var(--borda); background: #F9FAFB; }
.mg { display: inline-block; min-width: 54px; padding: 1px 7px; border-radius: 20px; font-weight: 600; font-size: 12px; }
.mg.neg { color: #B42318; background: #FEF3F2; } .mg.baixa { color: #8A5D00; background: #FEF4DC; } .mg.media { color: #1F3A5F; background: #E8EEF5; } .mg.boa { color: #067647; background: #ECFDF3; } .mg.nd { color: var(--mudo-2); background: #F2F4F7; }
.tag-int { font-size: 10.5px; font-weight: 600; color: #8A5D00; background: #FEF4DC; border-radius: 20px; padding: 1px 7px; margin-left: 6px; }
.carregando { color: var(--mudo-2); font-size: 13px; padding: 18px 0; text-align: center; }
.sug-alta { color: var(--verde); font-weight: 600; } .sug-baixa { color: var(--vermelho); font-weight: 600; }

/* v2 do painel: produtos clicáveis, códigos, curva ABC, giro, parâmetros */
.nb-prod { color: var(--texto); text-decoration: none; font-weight: 500; } .nb-prod:hover { color: var(--azul-2); text-decoration: underline; text-underline-offset: 2px; }
.nb-cod { color: var(--mudo-2); font-size: 11.5px; font-weight: 400; }
.nb-sub { display: block; font-size: 11px; color: var(--mudo-2); font-weight: 400; }
.nb-cl { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; font-weight: 700; font-size: 11.5px; }
.nb-cl.cl-A { background: #ECFDF3; color: #067647; } .nb-cl.cl-B { background: #FEF4DC; color: #8A5D00; } .nb-cl.cl-C { background: #E8EEF5; color: #1F3A5F; } .nb-cl.cl- { background: #F2F4F7; color: var(--mudo-2); }
.nb-giro { display: inline-block; min-width: 46px; padding: 1px 7px; border-radius: 20px; font-weight: 600; font-size: 12px; background: #F2F4F7; }
.nb-giro.alto { background: #ECFDF3; color: #067647; } .nb-giro.baixo { background: #FEF3F2; color: #B42318; }
.nb-cor { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.nb-params { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; font-size: 13px; color: var(--mudo); }
.nb-params label { display: inline-flex; align-items: center; gap: 6px; }
.nb-params input[type=number] { width: 70px; border: 1px solid var(--borda); border-radius: 8px; padding: 6px 8px; text-align: right; font: inherit; }
.nb-params select, .nb-params input[type=search] { border: 1px solid var(--borda); border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 13px; color: var(--texto); }
.nb-params input[type=search] { width: 220px; }
.nb-classes { display: inline-flex; gap: 10px; align-items: center; }
.nb-nota-filtro { font-size: 12px; color: var(--mudo-2); }
.nb-segs3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights li a { color: var(--azul-2); font-weight: 500; }
.gav .t td.desc { min-width: 0; }
#t_heat td { min-width: 40px; height: 30px; font-size: 11px; }

/* logomarca no topo do menu (cartão branco: a marca tem partes pretas) */
.nb-marca { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 16px 14px; }
.nb-logo-card { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nb-logo-card img { width: 100%; max-width: 168px; height: auto; display: block; border-radius: 0; background: none; object-fit: contain; }
.nb-marca-sub { font-size: 11px; color: #9FB2CA; text-align: center; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.nb-logo-impr { height: 34px; width: auto; margin-right: 12px; vertical-align: middle; }
@media print { .impr-cab { display: flex !important; align-items: center; gap: 10px; } }

/* tela de acesso (nippobraz/login.php) */
body.nb-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(160deg, #1F3A5F 0%, #2C4F7C 55%, #4A6A91 100%); }
.nbl-caixa { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(10,25,45,.35); padding: 30px 30px 22px; }
.nbl-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.nbl-logo img { width: 190px; max-width: 70%; height: auto; }
.nbl-caixa h1 { font-size: 19px; font-weight: 700; color: var(--azul); text-align: center; margin: 0; }
.nbl-sub { font-size: 13px; color: var(--mudo); text-align: center; margin: 4px 0 20px; }
.nbl-msg { font-size: 13px; padding: 9px 12px; border-radius: 9px; background: #FEF4DC; color: #8A5D00; margin-bottom: 14px; }
.nbl-msg.erro { background: #FEF3F2; color: #B42318; }
#frm label, #frm_troca label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--mudo); margin-bottom: 14px; }
#frm input, #frm_troca input { border: 1px solid var(--borda); border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 14px; font-weight: 400; color: var(--texto); }
#frm input:focus, #frm_troca input:focus { outline: none; border-color: var(--azul-3); box-shadow: 0 0 0 3px rgba(74,106,145,.18); }
#frm button, #frm_troca button { width: 100%; border: 0; border-radius: 9px; padding: 12px; background: #C41E26; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; margin-top: 4px; }
#frm button:hover, #frm_troca button:hover { background: #A5171E; }
.nbl-pe { font-size: 11.5px; color: var(--mudo-2); text-align: center; margin-top: 18px; }

/* indicadores com duas comparações (período anterior e ano anterior) */
#kpis_l .kpi:first-child .k-pe, #kpis .kpi:nth-child(-n+3) .k-pe { flex-wrap: wrap; row-gap: 2px; }

/* tooltip em HTML (gráfico de 12 meses) */
.nb-tip { position: fixed; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .12s; background: #fff; color: var(--texto);
  border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 24, 40, .14); padding: 12px 14px; font-size: 12px; min-width: 300px; font-variant-numeric: tabular-nums; }
.nb-tip-tit { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.nb-tip-tit small { font-weight: 400; font-size: 11px; color: var(--ambar); }
.nb-tip-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 10px; background: var(--azul-claro); border-radius: 8px; margin-bottom: 6px; }
.nb-tip-tot span { color: var(--mudo); } .nb-tip-tot b { font-size: 15px; color: var(--azul); }
.nb-tip table { width: 100%; border-collapse: collapse; }
.nb-tip td, .nb-tip th { padding: 3px 0 3px 12px; text-align: right; white-space: nowrap; }
.nb-tip td:first-child, .nb-tip th:first-child { padding-left: 0; text-align: left; }
.nb-tip-res td:first-child { color: var(--mudo); }
.nb-tip-lojas { margin-top: 8px; border-top: 1px solid var(--borda); }
.nb-tip-lojas th { font-weight: 500; font-size: 10.5px; color: var(--mudo-2); text-transform: uppercase; letter-spacing: .03em; padding-top: 8px; }
.nb-tip-lojas tbody tr + tr td { border-top: 1px solid #F1F3F7; }
.nb-tip-lojas td i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.nb-tip .d { font-weight: 600; } .nb-tip .d.up { color: var(--verde); } .nb-tip .d.down { color: var(--vermelho); } .nb-tip .d.nd { color: var(--mudo-2); font-weight: 400; }
@media print { .nb-tip { display: none; } }
.nb-tip-res tr.med td:first-child { color: var(--ambar); }
/* Resumo por loja: rola na horizontal dentro do cartão em vez de vazar; cabeçalho numa linha */
#t_lojas { min-width: 100%; } .tabela-rol.sem-rol:has(#t_lojas) { overflow-x: auto; }
.t-lojas th, .t-lojas td { white-space: nowrap; }
.nb-proj-k { flex-basis: 100%; color: var(--ambar); } .nb-proj-k b { color: var(--ambar); }
.legenda .legenda[hidden] { display: none; }
/* lista de lojas da visão geral: variação vs anterior e vs ano anterior, compactas */
.nb-dm { font-weight: 600; } .nb-dm.up { color: var(--verde); } .nb-dm.down { color: var(--vermelho); }
/* login: dica do primeiro acesso e link Voltar da troca de senha */
.nbl-dica { font-size: 12px; color: var(--mudo); text-align: center; margin-top: 12px; }
.nbl-pe a { color: var(--azul-3); }
#top_lojas .top-l .nome small { white-space: normal; }
.nb-tip-res tr.med-ant td:first-child { color: #7A5AA6; }
