/* Grupo RF B2B — catálogo do representante, produto, barra de totais, leitor. CELULAR PRIMEIRO; cores só por token --ui-*. */
#tab-catalogo { margin: -14px -12px 0; }
.cat-topo { position: sticky; top: var(--topo-h); z-index: 200; background: var(--bg); padding: 10px 12px 6px; border-bottom: 1px solid var(--border); }
.cat-busca { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 6px 0 12px; min-height: 48px; }
.cat-busca:focus-within { border-color: var(--accent); box-shadow: var(--ui-focus); }
.cat-busca .svg { color: var(--muted); }
.cat-busca input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; padding: 10px 0; outline: none; }
.cat-scan { border: 0; background: var(--ui-accent-soft); color: var(--accent); width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rapidos { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rapidos::-webkit-scrollbar { display: none; }
.rapidos button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 14px; min-height: 40px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--text); white-space: nowrap; }
.rapidos button b { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 1px 7px; }
.rapidos button.on { background: var(--ui-accent-solid); border-color: var(--ui-accent-solid); color: var(--ui-accent-text); }
.rapidos button.on b { background: var(--ui-accent-soft-2); color: var(--ui-accent-text); }
.cat-barra { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.cat-barra button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 8px; min-height: 40px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ui-text-2, var(--text)); position: relative; }
.cat-barra button:hover { background: var(--surface2); }
.cat-barra .uf-chip span { font-weight: 800; color: var(--accent); }
.cat-barra .cat-n { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cont-filtro { position: absolute; top: 2px; left: 18px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ui-accent-2); color: var(--ui-on-status); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

.lista-prod { padding: 10px 12px; display: grid; gap: 10px; }
.pc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: grid; position: relative; }
.pc.no-carrinho { border-color: var(--ui-accent-soft-2); box-shadow: 0 0 0 1px var(--ui-accent-soft-2); }
.pc-foto { position: relative; background: #fff; overflow: hidden; cursor: pointer; }
.pc-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-foto .foto-vazia { width: 100%; height: 100%; }
.pc-info { cursor: pointer; min-width: 0; }
.pc-info h3 { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11.5px; color: var(--muted); }
.pc-selos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.selo { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--ui-neutro-soft); color: var(--ui-neutro); text-transform: uppercase; letter-spacing: .02em; }
.selo.prog { background: var(--ui-info-soft); color: var(--ui-info); }
.selo.esp { background: var(--ui-danger-soft); color: var(--ui-danger); }
.selo.ok { background: var(--ui-ok-soft); color: var(--ui-ok); }
.selo.warn { background: var(--ui-warn-soft); color: var(--ui-warn); }
.pc-compra { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pc-preco { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pc-preco s { font-size: 12px; color: var(--muted); }
.pc-preco b { font-size: 19px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.pc-preco small { font-size: 11px; color: var(--muted); }
.pc-preco em { font-style: normal; font-size: 11.5px; color: var(--ui-info); font-weight: 700; margin-top: 2px; }
/* lista: foto à esquerda */
.lista-prod.lista .pc { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: 'foto info' 'foto compra'; column-gap: 12px; padding: 10px 12px 10px 10px; }
.lista-prod.lista .pc-foto { grid-area: foto; width: 104px; height: 104px; border-radius: 12px; align-self: start; }
.lista-prod.lista .pc-info { grid-area: info; }
.lista-prod.lista .pc-compra { grid-area: compra; margin-top: 8px; }
/* grade: 2 colunas no celular */
.lista-prod.grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lista-prod.grade .pc { grid-template-rows: auto 1fr auto; }
.lista-prod.grade .pc-foto { aspect-ratio: 1; }
.lista-prod.grade .pc-info { padding: 10px 10px 0; }
.lista-prod.grade .pc-compra { padding: 8px 10px 10px; flex-direction: column; align-items: stretch; }
.lista-prod.grade .stepper { width: 100%; }
.lista-prod.grade .stepper input { flex: 1; width: auto; }

/* faixa diagonal no canto da foto */
.faixa { position: absolute; top: 14px; left: -34px; width: 130px; transform: rotate(-45deg); text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 0; color: var(--ui-on-status); background: var(--ui-neutro); box-shadow: 0 2px 6px rgba(0,0,0,.18); pointer-events: none; }
.faixa.promo { background: var(--ui-danger); } .faixa.especial { background: var(--ui-accent-2); } .faixa.lanc { background: var(--ui-info); } .faixa.dest { background: var(--ui-warn); }
.selo.faixa-selo { position: static; transform: none; width: auto; padding: 2px 8px; border-radius: 6px; box-shadow: none; font-size: 10.5px; color: var(--ui-on-status); }

/* stepper − 0 + */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); flex: none; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--surface2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.stepper button:last-child { background: var(--ui-accent-solid); color: var(--ui-accent-text); }
.stepper input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 800; font-size: 15px; background: none; outline: none; min-width: 0; }
.stepper.grande button { width: 50px; height: 50px; } .stepper.grande input { width: 64px; height: 50px; font-size: 17px; }

/* barra de totais (acima da navegação inferior) */
.barra-total { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 390; background: var(--ui-tooltip-bg); color: var(--ui-tooltip-text);
  border-radius: 16px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); }
.barra-total > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.barra-total span { font-size: 11.5px; opacity: .8; white-space: nowrap; overflow: hidden; }
.barra-total b { font-size: 18px; }
.barra-total .btn { min-height: 44px; }

/* folhas: chips */
.folha-tit { font-size: 13px; font-weight: 800; margin: 14px 4px 8px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 12px; min-height: 36px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.chip small { color: var(--muted); font-weight: 600; }
.chip.on { background: var(--ui-accent-soft); border-color: var(--accent); color: var(--accent); }
.chip.tag { background: var(--ui-info-soft); border-color: transparent; color: var(--ui-info); }
span.chip { cursor: default; }
.linha-check { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 14px; }
.linha-check input { width: 20px; height: 20px; }
.folha-rodape { position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--surface); display: flex; gap: 8px; padding: 12px 0 calc(4px + var(--safe-b)); margin-top: 14px; }
.folha-rodape .btn { flex: 1; min-height: 48px; }

/* produto */
.modal.produto .modal-corpo { padding: 0; }
.pd-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #fff; scrollbar-width: none; }
.pd-fotos::-webkit-scrollbar { display: none; }
.pd-foto { flex: none; width: 100%; aspect-ratio: 1; max-height: 52vh; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.pd-foto img { width: 100%; height: 100%; object-fit: contain; }
.pd-pontos { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; min-height: 14px; }
.pd-pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); } .pd-pontos i.on { background: var(--accent); }
.pd-corpo { padding: 10px 16px 20px; }
.pd-nome { font-size: 19px; line-height: 1.3; margin-bottom: 10px; overflow-wrap: anywhere; }
.pd-codigos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 13.5px; font-weight: 600; }
.pd-codigos span { min-width: 0; overflow-wrap: anywhere; } .pd-codigos small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.pd-ctx { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0 0; font-size: 13px; }
.pd-desc { display: flex; align-items: center; gap: 10px; }
.pd-desc input[type=range] { flex: 1; accent-color: var(--ui-accent-solid); height: 30px; }
.pd-desc .inp { width: 84px; text-align: right; }
.pd-esp { background: var(--ui-danger-soft); color: var(--ui-danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.pd-tabela { width: 100%; border-collapse: collapse; margin-top: 4px; }
.pd-tabela td { padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pd-tabela td.num { text-align: right; }
.pd-tabela tr.atual td { background: var(--ui-accent-soft); }
.pd-rodape { display: flex; gap: 10px; width: 100%; align-items: center; }
.pd-rodape .btn.grande { flex: 1; width: auto; min-height: 52px; }

/* leitor de código de barras */
.leitor { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; max-height: 70vh; }
.leitor video { width: 100%; height: 100%; object-fit: cover; }
.leitor .mira { position: absolute; left: 10%; right: 10%; top: 40%; height: 20%; border: 3px solid var(--ui-ok); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

@media (min-width: 640px) {
  .lista-prod.grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lista-prod.lista { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
}
@media (min-width: 1024px) {
  #tab-catalogo { margin: -20px -24px 0; }
  .cat-topo { padding: 12px 24px 6px; }
  .lista-prod { padding: 14px 24px; }
  .lista-prod.grade { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .barra-total { left: auto; right: 24px; bottom: 20px; width: 420px; }
  .modal.produto .modal-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* carrinho / orçamento */
.orc-bloco { margin-bottom: 10px; }
.cli-card { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.cli-card b { display: block; } .cli-card small { display: block; color: var(--muted); font-size: 12px; }
.cli-busca #cliRes { margin-top: 6px; display: grid; gap: 6px; }
.cli-op { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.cli-op:hover { border-color: var(--accent); } .cli-op b { display: block; font-size: 14px; } .cli-op small { color: var(--muted); font-size: 12px; }
.orc-ctx { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.orc-desc-geral { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.orc-desc-geral .inp { width: 90px; min-height: 38px; }
.orc-grupo { margin-bottom: 10px; padding: 12px; }
.orc-grupo-cab { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 6px; }
.orc-min { font-size: 12.5px; border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.orc-min.falta { background: var(--ui-warn-soft); color: var(--ui-warn); } .orc-min.ok { background: var(--ui-ok-soft); color: var(--ui-ok); }
.orc-linha { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.orc-linha.leve { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
.orc-foto { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.orc-info { min-width: 0; } .orc-info > b { display: block; font-size: 13.5px; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.orc-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.orc-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.orc-acoes .stepper button { width: 38px; height: 38px; } .orc-acoes .stepper input { width: 48px; height: 38px; }
.orc-desc { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; height: 40px; background: var(--surface); }
.orc-desc input { width: 46px; border: 0; background: none; text-align: right; font-weight: 700; outline: none; }
.orc-desc span { font-size: 12px; font-weight: 700; } .orc-desc small { color: var(--muted); font-weight: 600; }
.orc-tot { margin-left: auto; font-size: 15px; }
.orc-total { display: grid; gap: 8px; margin-bottom: 10px; }
.orc-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.orc-total span { color: var(--muted); font-size: 13px; } .orc-total b { font-size: 22px; }
.orc-lista { display: grid; gap: 8px; }
.orc-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit; }
.orc-item:hover { border-color: var(--accent); } .orc-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.orc-v { font-size: 16px; white-space: nowrap; }
@media (min-width: 1024px) { #tab-carrinho, #tab-orcamentos { max-width: 920px; } }
/* preço longo não encosta no − 0 + : quebra a linha e o seletor vai para a direita */
.pc-compra { flex-wrap: wrap; }
.pc-compra .stepper { margin-left: auto; }
.pc-preco b { white-space: nowrap; }
@media (max-width: 420px) {
  .lista-prod.lista .pc { grid-template-columns: 88px minmax(0, 1fr); column-gap: 10px; }
  .lista-prod.lista .pc-foto { width: 88px; height: 88px; }
  .lista-prod.lista .stepper button { width: 38px; height: 38px; }
  .lista-prod.lista .stepper input { width: 44px; height: 38px; }
  .pc-preco b { font-size: 18px; }
}
.cat-barra { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cat-barra::-webkit-scrollbar { display: none; }
.cat-barra button { flex: none; }
@media (max-width: 420px) { .cat-barra .cat-n { display: none; } .cat-barra #btModo { margin-left: auto; } .cat-barra button { padding: 8px 7px; } }
.pd-add span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.pd-add small { font-size: 12px; font-weight: 600; opacity: .85; } .pd-add b { font-size: 17px; }
@media (max-width: 420px) { .stepper.grande button { width: 44px; } .stepper.grande input { width: 52px; } }
/* logo da marca (arquivo original do AutoPedido, sem reduzir: o navegador só desenha menor) */
.pc-logo { position: absolute; bottom: 6px; right: 6px; max-width: 46%; max-height: 24%; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; box-shadow: 0 1px 3px rgba(0,0,0,.18); pointer-events: none; }
.lista-prod.lista .pc-logo { bottom: 4px; right: 4px; padding: 1px 3px; border-radius: 4px; }
.pd-marca .pd-logo { display: block; max-width: 120px; max-height: 40px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; margin: 2px 0 4px; border: 1px solid var(--border); }
.pc-meta .pc-cx { color: var(--ui-warn); font-weight: 700; }

/* ---------- tela inicial (cards) ---------- */
#tab-inicio { margin: -16px -16px 0; }
.ini-topo { background: var(--ui-topbar-bg, var(--accent)); color: var(--ui-topbar-text, #fff); padding: 18px 18px 64px; }
.ini-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ini-cab small { display: block; opacity: .8; font-size: 14px; } .ini-cab b { font-size: 22px; font-weight: 800; }
.ini-avatar { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: inherit; font-size: 22px; font-weight: 800; cursor: pointer; flex: none; }
.ini-resumo { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 14px; }
.ini-resumo::-webkit-scrollbar { display: none; }
.ini-slide { flex: 0 0 100%; scroll-snap-align: start; cursor: pointer; }
.ini-slide span { display: block; font-size: 14px; opacity: .85; }
.ini-slide b { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0; }
.ini-slide small { opacity: .8; font-size: 13px; }
.ini-olho { border: 0; background: transparent; color: inherit; opacity: .85; cursor: pointer; padding: 4px; display: inline-flex; }
.ini-olho .svg { width: 24px; height: 24px; }
.ini-pontos { display: flex; gap: 8px; margin-top: 12px; } .ini-pontos i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.ini-pontos i.on { background: #fff; }
.ini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px; margin-top: -48px; }
.ini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 4px 14px rgba(15,30,50,.08); padding: 16px 8px 14px; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: var(--text); font-weight: 600; font-size: 13.5px; text-align: center; line-height: 1.2; }
.ini-card:active { transform: scale(.97); }
.ini-card small { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: -6px; }
.ini-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ui-accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ini-ic .svg { width: 26px; height: 26px; }
.ini-rodape { padding: 22px 16px 10px; }
.ini-sync { display: flex; align-items: center; gap: 12px; background: var(--surface2); border-radius: 14px; padding: 12px 14px; }
.ini-sync > .svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.ini-sync div { flex: 1; min-width: 0; } .ini-sync b { display: block; color: var(--accent); } .ini-sync span { font-size: 12.5px; color: var(--muted); }
.ini-versao { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
@media (min-width: 700px) { .ini-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { #tab-inicio { margin: -24px -24px 0; } .ini-topo { border-radius: 0 0 22px 22px; } .ini-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1100px; margin-left: auto; margin-right: auto; } }
@media (max-width: 360px) { .ini-cards { gap: 8px; padding: 0 10px; } .ini-card { min-height: 104px; font-size: 12.5px; } .ini-ic { width: 44px; height: 44px; } }

/* administrador: cards */
.cards-ed { display: grid; gap: 10px; } .card-ed.off { opacity: .55; }
.card-ed-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .card-ed-topo .inp { flex: 1; min-width: 0; font-weight: 700; }
.card-ed-perfis, .card-ed-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.card-ed-pe { justify-content: space-between; }
.cards-ed-pe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 14px 0 80px; }

/* ---------- pedido / lista de pedidos / clientes ---------- */
.ped-topo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; } .ped-topo h2 { margin: 0; }
.salvo { margin-left: auto; font-size: 12px; color: var(--muted); }
.ped-acoes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.ped-lista-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.selo.st-info { background: var(--ui-info-soft); color: var(--ui-info); } .selo.st-warn { background: var(--ui-warn-soft); color: var(--ui-warn); }
.selo.st-ok { background: var(--ui-ok-soft); color: var(--ui-ok); } .selo.st-neutro { background: var(--ui-neutro-soft); color: var(--ui-neutro); }
.orc-item.atual { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 380; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--ui-accent-solid, var(--accent)); color: #fff; box-shadow: var(--shadow-lg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fab .svg { width: 28px; height: 28px; }
.so-desktop { display: none; }
@media (min-width: 1024px) { .fab { display: none; } .so-desktop { display: inline-flex; } }
.perigo-txt { color: var(--ui-danger) !important; }
.muted-b { color: var(--ui-tooltip-text); opacity: .7; font-size: 14px !important; }
.np-aviso { font-size: 13px; display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; }
.np-uf { margin-top: 8px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.np-botoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cli-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; cursor: pointer; }
.cli-item > div { min-width: 0; } .cli-item b { display: block; } .cli-item small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cli-faixa { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.cli-faixa.f-ativo { background: var(--ui-ok-soft); color: var(--ui-ok); } .cli-faixa.f-31-60 { background: var(--ui-warn-soft); color: var(--ui-warn); }
.cli-faixa.f-61-90, .cli-faixa.f-90mais { background: var(--ui-danger-soft); color: var(--ui-danger); } .cli-faixa.f-nunca { background: var(--ui-neutro-soft); color: var(--ui-neutro); }

/* ---------- dashboard ---------- */
.dash-tit { margin: 18px 0 8px; font-size: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; } .kpi b { display: block; font-size: 22px; font-weight: 800; margin: 2px 0; }
.kpi small { color: var(--muted); font-size: 12px; } .kpi.destaque { grid-column: 1 / -1; } .kpi.destaque b { font-size: 28px; }
@media (min-width: 900px) { .dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpi.destaque { grid-column: span 2; } }
.meta-barra { height: 10px; border-radius: 5px; background: var(--surface2); overflow: hidden; margin: 8px 0 4px; }
.meta-barra i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.dash-graf h4, .card h4 { margin: 0 0 10px; font-size: 14px; } .card h4 .muted { font-weight: 500; }
.barras { display: flex; align-items: stretch; gap: 4px; height: 170px; }
.barra-col { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.barra-area { position: relative; flex: 1; border-bottom: 1px solid var(--border); }
.barra { position: absolute; left: 12%; right: 12%; bottom: 0; background: var(--ui-accent-soft-2, var(--ui-accent-soft)); border-radius: 4px 4px 0 0; min-height: 2px; }
.barra.atual { background: var(--accent); }
.barra-meta { position: absolute; left: 0; right: 0; height: 2px; background: var(--text); opacity: .55; }
.barra-rot { position: absolute; left: 50%; transform: translate(-50%, -4px); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.barra-col small { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.empilhada { display: flex; gap: 2px; height: 16px; border-radius: 6px; overflow: hidden; }
.empilhada i { display: block; min-width: 3px; }
.st-ok { background: var(--ui-ok); } .st-warn { background: var(--ui-warn); } .st-serio { background: color-mix(in srgb, var(--ui-warn) 45%, var(--ui-danger)); }
.st-danger { background: var(--ui-danger); } .st-neutro { background: var(--ui-neutro); }
.empilhada-leg { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.empilhada-leg span { display: flex; align-items: center; gap: 8px; } .empilhada-leg i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.empilhada-leg b { margin-left: auto; } .empilhada-leg small { color: var(--muted); width: 36px; text-align: right; }
.dash-linha { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.dash-linha small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
