/* InvestCar Gestão — vidro sobre o caminhão */
:root {
  --vidro: rgba(24, 24, 28, .30);
  --vidro-forte: rgba(18, 18, 22, .52);
  --vidro-claro: rgba(255, 255, 255, .10);
  --borda: rgba(255, 255, 255, .16);
  --borda-forte: rgba(255, 255, 255, .28);
  --texto: #fff;
  --texto-2: rgba(255, 255, 255, .72);
  --texto-3: rgba(255, 255, 255, .50);
  --vermelho: #CC2B32;
  --verm-claro: #FF6B6F;
  --verde: #6BE3A4;
  --ambar: #FFC36E;
  --azul: #8FC2FF;
  --grafite: #363435;
  --raio: 26px;
  --raio-p: 16px;
  --mola: cubic-bezier(.34, 1.4, .5, 1);
  --suave: cubic-bezier(.2, .8, .2, 1);
  --sombra: 0 20px 50px -20px rgba(0, 0, 0, .55), 0 2px 8px -2px rgba(0, 0, 0, .25);
  --trilho: 84px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #1a1a1e; color: var(--texto);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 2px; }

/* ---------- cena de fundo ---------- */
.cena { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.cena__quadro {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 177.6vh); height: max(100vh, 56.3vw);
  transform: translate(-50%, -50%) translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1.04));
  transition: transform 1.2s var(--suave), filter 1.1s var(--suave);
  will-change: transform;
}
.cena__img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter 1.1s var(--suave); }
body:not([data-vista="geral"]) .cena__quadro { --zoom: 1.14; }
body:not([data-vista="geral"]) .cena__img { filter: blur(26px) saturate(1.25) brightness(.72); }
.veu {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 14, .62) 0%, rgba(10, 10, 14, .25) 34%, rgba(10, 10, 14, 0) 55%),
    linear-gradient(0deg, rgba(10, 10, 14, .55) 0%, rgba(10, 10, 14, 0) 42%),
    linear-gradient(180deg, rgba(10, 10, 14, .35) 0%, rgba(10, 10, 14, 0) 18%);
  transition: background 1s var(--suave);
}
body:not([data-vista="geral"]) .veu { background: rgba(10, 10, 14, .28); }

/* pontos sobre o caminhão */
.cena__pontos { position: absolute; inset: 0; pointer-events: none; }
.ponto {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(20, 20, 24, .42); border: 1px solid var(--borda-forte);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  font-size: 13px; white-space: nowrap; box-shadow: var(--sombra);
  transition: opacity .6s var(--suave), transform .5s var(--mola), background .3s;
}
.ponto:hover { background: rgba(20, 20, 24, .62); transform: translate(-50%, -50%) scale(1.05); }
.ponto b { font-weight: 600; }
.ponto__alvo { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.ponto__alvo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ponto__alvo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #fff; animation: pulso 2.4s var(--suave) infinite; }
@keyframes pulso { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
body:not([data-vista="geral"]) .ponto { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }

/* ---------- vidro ---------- */
.vidro {
  position: relative; isolation: isolate;
  background: var(--vidro);
  border: 1px solid var(--borda);
  backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.vidro::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, .13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.vidro:hover::before { opacity: 1; }
.cartao { border-radius: var(--raio); padding: 20px; }
.cartao--escuro { background: var(--vidro-forte); }
.cartao__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cartao__titulo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.cartao__titulo .ic { width: 18px; height: 18px; opacity: .8; }
.bolinha { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
.bolinha .ic { width: 17px; height: 17px; }
.clicavel { cursor: pointer; transition: transform .45s var(--mola), background .3s, border-color .3s; }
.clicavel:hover { transform: translateY(-3px); border-color: var(--borda-forte); }
.clicavel:active { transform: translateY(0) scale(.985); transition-duration: .12s; }

/* ---------- estrutura ---------- */
.app { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: var(--trilho) 1fr; padding: 16px; gap: 16px; }
.trilho {
  z-index: 10;
  border-radius: 30px; display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 10px;
  background: rgba(20, 20, 24, .34);
}
.trilho__marca { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); margin-bottom: 10px; transition: transform .5s var(--mola); }
.trilho__marca:hover { transform: rotate(-6deg) scale(1.06); }
.trilho__marca img { width: 34px; }
.trilho__itens { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.trilho__itens a, .trilho__fim {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  color: var(--texto-2); transition: color .3s, transform .45s var(--mola);
}
.trilho__itens a:hover, .trilho__fim:hover { color: #fff; }
.trilho__itens a:active, .trilho__fim:active { transform: scale(.9); }
.trilho__itens a.ativo { color: #1a1a1e; }
.trilho__itens a span, .trilho__fim span {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  padding: 8px 13px; border-radius: 12px; background: rgba(22, 22, 26, .96); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); z-index: 60;
  transition: opacity .2s, transform .35s var(--mola); transition-delay: 0s;
}
.trilho__itens a:hover span, .trilho__fim:hover span { opacity: 1; transform: translate(0, -50%); transition-delay: .25s; }
.trilho__itens a.sem-dica span, .trilho__fim.sem-dica span { opacity: 0 !important; transition-delay: 0s !important; }
.trilho__indicador {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 18px; background: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .5); transition: transform .6s var(--mola); z-index: 0;
}

.principal { min-width: 0; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.topo { display: flex; align-items: center; gap: 16px; }
.topo__logo { height: 34px; width: auto; flex: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.busca {
  flex: 1; max-width: 520px; margin-left: auto; height: 46px; border-radius: 999px; display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 16px; color: var(--texto-2); text-align: left; transition: background .3s, transform .4s var(--mola);
}
.busca:hover { background: rgba(24, 24, 28, .42); color: #fff; }
.busca:active { transform: scale(.98); }
.busca span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
kbd { font: 500 12px/1 'Archivo', sans-serif; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .12); color: var(--texto-2); }
.topo__acoes { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.chip { height: 46px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2); }
.redondo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform .45s var(--mola); }
.redondo:hover { transform: scale(1.06); }
.redondo:active { transform: scale(.92); }
.ponto-aviso { position: absolute; top: 9px; right: 9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--vermelho); font: 600 10px/17px 'Archivo'; font-style: normal; text-align: center; box-shadow: 0 0 0 2px rgba(20, 20, 24, .6); transition: transform .4s var(--mola); }
.ponto-aviso:empty { transform: scale(0); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #f1f1f1, #b9bbbe); color: var(--grafite); font-weight: 600; font-size: 17px; box-shadow: var(--sombra); transition: transform .45s var(--mola); }
.avatar:hover { transform: scale(1.06); }

.vistas { position: relative; flex: 1; min-height: 0; outline: none; }
.vista { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 24px; scrollbar-width: none; }
.vista::-webkit-scrollbar { display: none; }
.vista.saindo { animation: sai .32s var(--suave) forwards; pointer-events: none; }
@keyframes sai { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(4px); } }
.surge { animation: entra .8s var(--mola) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes entra { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes entraCima { from { opacity: 0; transform: translateY(-26px) scale(.97); } }
@keyframes saiBaixo { to { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } }
.vistas[data-dir="cima"] .surge { animation-name: entraCima; }
.vistas[data-dir="cima"] .vista.saindo { animation-name: saiBaixo; }

/* onda de luz no toque */
.botao, .icone-btn, .pessoa, .lead, .etapas button, .paleta__item, .menu-item, .aviso, .redondo, .busca { position: relative; isolation: isolate; }
.trilho__itens a, .ponto { isolation: isolate; }
.onda { display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.onda > * { display: block; position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: currentColor; opacity: .3; transform: scale(0); animation: onda .65s var(--suave) forwards; }
@keyframes onda { to { transform: scale(var(--s, 10)); opacity: 0; } }

/* ---------- títulos de módulo ---------- */
.cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; flex-wrap: wrap; }
.cabeca h1 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.cabeca p { margin: 6px 0 0; color: var(--texto-2); }
.cabeca__acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.botao {
  height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
  background: #fff; color: #1a1a1e; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
  transition: transform .45s var(--mola), box-shadow .3s, background .3s;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
.botao:active { transform: scale(.95); transition-duration: .1s; }
.botao .ic { width: 18px; height: 18px; }
.botao--vidro { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid var(--borda); backdrop-filter: blur(16px); }
.botao--vidro:hover { background: rgba(255, 255, 255, .2); }
.botao--vermelho { background: var(--vermelho); color: #fff; }
.botao--p { height: 34px; padding: 0 13px; font-size: 13px; }
.botao[disabled] { opacity: .45; pointer-events: none; }
.icone-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: transform .4s var(--mola), background .25s; }
.icone-btn:hover { background: rgba(255, 255, 255, .2); }
.icone-btn:active { transform: scale(.88); }
.icone-btn .ic { width: 17px; height: 17px; }

/* segmentado com pílula deslizante */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--texto-2); transition: color .3s; white-space: nowrap; }
.seg button.ativo { color: #1a1a1e; }
.seg__pilula { position: absolute; top: 4px; left: 0; height: 32px; border-radius: 999px; background: #fff; transition: transform .55s var(--mola), width .55s var(--mola); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { border-radius: 22px; padding: 18px; }
.kpi__rotulo { color: var(--texto-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kpi__valor { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; margin-top: 10px; letter-spacing: -.03em; }
.kpi__delta { font-size: 12.5px; margin-top: 6px; color: var(--texto-3); }
.sobe { color: var(--verde); }
.desce { color: var(--verm-claro); }

/* ---------- visão geral ---------- */
.geral { display: grid; grid-template-columns: minmax(330px, 380px) 1fr; grid-template-rows: 1fr auto; gap: 16px; min-height: 100%; }
.geral__esq { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; }
.geral__palco { position: relative; min-height: 220px; }
.geral__baixo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-self: end; }
.saudacao { padding: 8px 4px 6px; }
.saudacao small { color: var(--texto-2); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.saudacao h1 { font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.04em; margin: 8px 0 8px; line-height: 1; }
.saudacao h1 b { font-weight: 600; }
.saudacao p { margin: 0; color: var(--texto-2); max-width: 40ch; }
.geral__esq > .cartao:last-child { flex: 1; display: flex; flex-direction: column; min-height: 300px; }
.geral__esq > .cartao:last-child .mostrador { flex: 1; width: 100%; max-width: none; aspect-ratio: auto; min-height: 170px; }
.geral__esq > .cartao:last-child .mostrador__centro { padding-top: 22px; }

.barras { display: flex; align-items: flex-end; gap: 5px; height: 92px; margin-top: 16px; }
.barras button { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.barras i { display: block; width: 100%; border-radius: 6px; background: rgba(255, 255, 255, .22); height: var(--h); transition: height .9s var(--mola), background .3s; }
.barras button:hover i, .barras button.ativo i { background: #fff; }
.barras button.hoje i { background: linear-gradient(180deg, var(--verm-claro), var(--vermelho)); }
.barras__legenda { display: flex; justify-content: space-between; color: var(--texto-3); font-size: 11.5px; margin-top: 8px; }
.dica { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: #1a1a1e; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--mola); z-index: 3; }
.barras button:hover .dica, .barras button.ativo .dica { opacity: 1; transform: translate(-50%, 0); }

/* mostrador da meta */
.mostrador { position: relative; display: grid; place-items: center; margin: 4px auto 0; width: 100%; max-width: 300px; aspect-ratio: 1 / .8; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.mostrador:active { cursor: grabbing; }
.mostrador svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mostrador__traco { stroke: rgba(255, 255, 255, .22); stroke-width: 2; stroke-linecap: round; transition: stroke .35s; }
.mostrador__traco.on { stroke: var(--verm-claro); }
.mostrador__traco.on.meta { stroke: var(--verde); }
.mostrador__pino { fill: #fff; transition: transform .5s var(--mola); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.mostrador__centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding-top: 12px; }
.mostrador__centro strong { font-size: 54px; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.mostrador__centro span { color: var(--texto-2); font-size: 13px; margin-top: 6px; }
.mostrador__ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: -26px; position: relative; z-index: 2; }
.mostrador__ctrl .icone-btn { width: 44px; height: 44px; background: rgba(0, 0, 0, .3); }

.funil-mini { display: flex; flex-direction: column; gap: 9px; }
.funil-mini div { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-2); }
.funil-mini em { font-style: normal; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.funil-mini em i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #fff; transition: width 1s var(--mola); }
.funil-mini b { font-weight: 600; color: #fff; text-align: right; }

.linha-dado { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: var(--texto-2); }
.linha-dado:first-of-type { border-top: 0; }
.linha-dado b { color: #fff; font-weight: 500; }
.linha-grande { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linha-grande .grande { margin: 0; }
.grande { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin: 2px 0 10px; }

.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 196px; overflow-y: auto; scrollbar-width: none; }
.agenda li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 12px; font-size: 13px; transition: background .25s, opacity .3s; }
.agenda li:hover { background: rgba(255, 255, 255, .07); }
.agenda li.feito { opacity: .5; }
.agenda li.feito .agenda__txt { text-decoration: line-through; }
.agenda__hora { color: var(--texto-3); width: 40px; flex: none; }
.agenda__txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marca-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s, transform .4s var(--mola); }
.marca-check .ic { width: 13px; height: 13px; stroke-width: 2.6; color: #1a1a1e; transform: scale(0); transition: transform .4s var(--mola); }
.marca-check.on { background: #fff; border-color: #fff; }
.marca-check.on .ic { transform: scale(1); }
.marca-check:active { transform: scale(.85); }

/* chave liga/desliga */
.chave { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .18); flex: none; transition: background .35s; }
.chave::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .5s var(--mola), width .3s var(--mola); }
.chave:active::after { width: 28px; }
.chave.on { background: var(--verde); }
.chave.on::after { transform: translateX(18px); }
.chave.on:active::after { transform: translateX(12px); }

.camp-mini { display: flex; flex-direction: column; gap: 10px; }
.camp-mini div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.camp-mini span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-2); }

/* popover dos pontos */
.balao { position: fixed; z-index: 40; width: 290px; border-radius: 22px; padding: 16px; background: rgba(20, 20, 24, .6); animation: balao .5s var(--mola); }
@keyframes balao { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.balao h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.balao p { margin: 0 0 12px; color: var(--texto-2); font-size: 13px; }

/* ---------- financeiro ---------- */
.fin { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 14px; }
.grafico { position: relative; height: 300px; margin-top: 8px; }
.grafico svg { width: 100%; height: 100%; overflow: visible; display: block; }
@keyframes traca { to { stroke-dashoffset: 0; } }
.grafico .linha-r { fill: none; stroke: #fff; stroke-width: 2.4; }
.grafico .linha-d { fill: none; stroke: var(--verm-claro); stroke-width: 2; stroke-dasharray: 5 6; }
.grafico .area-r { fill: url(#gradR); }
.grafico .grade { stroke: rgba(255, 255, 255, .08); }
.grafico text { fill: var(--texto-3); font-size: 11px; }
.grafico__mira { position: absolute; top: 0; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .35); pointer-events: none; opacity: 0; transition: opacity .2s; }
.grafico__dica { position: absolute; top: 6px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .2s, transform .3s var(--suave); white-space: nowrap; background: rgba(20, 20, 24, .7); }
.grafico__dica b { display: block; font-size: 14px; margin-bottom: 3px; }
.grafico:hover .grafico__mira, .grafico:hover .grafico__dica { opacity: 1; }
.legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--texto-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.fluxo { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 170px; margin-top: 6px; }
.fluxo button { position: relative; display: grid; grid-template-rows: 1fr 1fr auto; gap: 3px; align-items: stretch; }
.fluxo__ent, .fluxo__sai { display: flex; justify-content: center; }
.fluxo__ent { align-items: flex-end; }
.fluxo__sai { align-items: flex-start; }
.fluxo i { display: block; width: 70%; max-width: 22px; border-radius: 5px; height: var(--h); min-height: 2px; transition: height .9s var(--mola), opacity .25s; }
.fluxo__ent i { background: var(--verde); }
.fluxo__sai i { background: var(--verm-claro); }
.fluxo small { color: var(--texto-3); font-size: 11px; text-align: center; }
.fluxo button:hover i, .fluxo button.ativo i { opacity: 1; filter: brightness(1.15); }
.fluxo:hover button:not(:hover):not(.ativo) i { opacity: .55; }
.fluxo button:hover .dica, .fluxo button.ativo .dica { opacity: 1; transform: translate(-50%, 0); }
.fluxo .dica { bottom: auto; top: -30px; }
.cats div { grid-template-columns: 110px 1fr auto; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid rgba(255, 255, 255, .08); transition: opacity .35s, transform .45s var(--mola), max-height .45s var(--suave), padding .45s; max-height: 80px; }
.lista li:first-child { border-top: 0; }
.lista li.some { opacity: 0; transform: translateX(30px); max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.lista__txt { flex: 1; min-width: 0; }
.lista__txt b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista__txt small { color: var(--texto-3); font-size: 12.5px; }
.lista__valor { font-weight: 500; text-align: right; white-space: nowrap; }
.etiqueta { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; background: rgba(255, 255, 255, .12); color: var(--texto-2); white-space: nowrap; }
.etiqueta--verm { background: rgba(255, 107, 111, .18); color: #ffb3b5; }
.etiqueta--verde { background: rgba(107, 227, 164, .16); color: var(--verde); }
.etiqueta--ambar { background: rgba(255, 195, 110, .16); color: var(--ambar); }
.vazio { text-align: center; color: var(--texto-3); padding: 28px 0; font-size: 14px; }

/* ---------- comercial ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.coluna { border-radius: 24px; padding: 12px; min-height: 380px; display: flex; flex-direction: column; gap: 8px; transition: background .3s, border-color .3s, transform .4s var(--mola); }
.coluna.alvo { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: scale(1.012); }
.coluna__topo { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.coluna__topo b { font-weight: 500; }
.coluna__topo small { color: var(--texto-3); font-size: 12px; display: block; }
.contador { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.lead {
  border-radius: 18px; padding: 13px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .45s var(--mola), background .25s, opacity .25s, box-shadow .3s;
}
.lead:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.lead.fantasma { opacity: .25; }
.lead.pousou { animation: pousou .6s var(--mola); }
@keyframes pousou { 0% { transform: scale(1.08); box-shadow: 0 0 0 2px #fff; } 100% { transform: scale(1); } }
.lead b { display: block; font-weight: 500; font-size: 14px; }
.lead small { color: var(--texto-3); font-size: 12.5px; }
.lead__rodape { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 6px; }
.lead__valor { font-size: 13px; font-weight: 500; }
.arrastando { position: fixed; z-index: 90; pointer-events: none; margin: 0; width: 240px; background: rgba(40, 40, 46, .85); backdrop-filter: blur(18px); border-color: rgba(255, 255, 255, .4); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .7); transform: rotate(3deg) scale(1.04); transition: none; }
.ranking { display: flex; flex-direction: column; gap: 10px; }
.ranking div { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.ranking em { font-style: normal; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); grid-column: 2 / 4; overflow: hidden; }
.ranking em i { display: block; height: 100%; width: var(--w); background: #fff; border-radius: 4px; transition: width 1s var(--mola); }
.inicial { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 12px; font-weight: 600; grid-row: span 2; }
.veiculos.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.com-lado { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }

/* ---------- estoque ---------- */
.veiculos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.veiculo { border-radius: 24px; overflow: hidden; padding: 0; transform-style: preserve-3d; transition: transform .5s var(--mola), border-color .3s; }
.veiculo__foto { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e6e6e7; }
.veiculo__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--suave); }
.veiculo:hover .veiculo__foto img { transform: scale(1.06); }
.veiculo__foto .etiqueta { position: absolute; top: 10px; left: 10px; background: rgba(20, 20, 24, .55); backdrop-filter: blur(10px); color: #fff; }
.veiculo__corpo { padding: 14px 16px 16px; }
.veiculo__corpo b { font-weight: 500; display: block; }
.veiculo__corpo small { color: var(--texto-3); }
.passo { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
.passo strong { font-size: 20px; font-weight: 500; }
.passo strong small { font-size: 12px; color: var(--texto-3); font-weight: 400; margin-left: 4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; color: var(--texto-3); font-weight: 400; font-size: 12.5px; padding: 0 10px 10px; }
.tabela td { padding: 11px 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tabela tr { transition: background .25s; }
.tabela tbody tr:hover { background: rgba(255, 255, 255, .05); }
.tabela .dir { text-align: right; }
.nivel { width: 90px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.nivel i { display: block; height: 100%; width: var(--w); background: var(--c, #fff); border-radius: 4px; transition: width .8s var(--mola); }
.campo-busca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); min-width: 220px; }
.campo-busca input { background: none; border: 0; outline: none; flex: 1; font-size: 14px; min-width: 0; }
.campo-busca input::placeholder { color: var(--texto-3); }
.campo-busca:focus-within { border-color: rgba(255, 255, 255, .4); }

/* ---------- RH ---------- */
.rh { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.relogio { text-align: center; padding: 26px 20px; }
.relogio__hora { font-size: 58px; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.relogio__hora span { opacity: .45; animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: .1; } }
.relogio__estado { color: var(--texto-2); margin: 8px 0 18px; font-size: 14px; }
.anel { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.anel .fundo { stroke: rgba(255, 255, 255, .12); }
.anel .progresso { stroke: #fff; transition: stroke-dashoffset 1s var(--mola); }
.anel div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.anel b { font-size: 26px; font-weight: 500; }
.anel small { color: var(--texto-3); font-size: 12px; }
.marcas { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; font-size: 13px; color: var(--texto-2); }
.marcas li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .08); animation: entra .6s var(--mola) both; }
.pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pessoa { border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); text-align: left; width: 100%; transition: transform .45s var(--mola), background .25s; }
.pessoa:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.pessoa:active { transform: scale(.98); }
.pessoa .inicial { width: 42px; height: 42px; font-size: 14px; flex: none; position: relative; }
.pessoa .inicial::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 2px rgba(40, 40, 46, .9); }
.pessoa.ferias .inicial::after { background: var(--ambar); }
.pessoa b { display: block; font-weight: 500; font-size: 14px; }
.pessoa small { color: var(--texto-3); font-size: 12.5px; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- marketing ---------- */
.mkt { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.campanha { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 4px; border-top: 1px solid rgba(255, 255, 255, .08); transition: opacity .3s; }
.campanha:first-child { border-top: 0; }
.campanha.pausada .campanha__info, .campanha.pausada .faixa { opacity: .5; }
.campanha__info b { font-weight: 500; display: block; }
.campanha__info small { color: var(--texto-3); font-size: 12.5px; }
.faixa { grid-column: 1 / 3; display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: center; gap: 16px; font-size: 12.5px; color: var(--texto-2); transition: opacity .3s; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 50%), rgba(255, 255, 255, .16) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; margin-top: -8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); transition: transform .35s var(--mola); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 4px; background: #fff; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }
.rosca { position: relative; width: 200px; height: 200px; margin: 6px auto 16px; }
.rosca svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rosca circle { fill: none; stroke-width: 22; transition: stroke-width .4s var(--mola), opacity .3s, stroke-dasharray 1s var(--mola), stroke-dashoffset 1s var(--mola); cursor: pointer; }
.rosca circle:hover, .rosca circle.ativo { stroke-width: 30; }
.rosca.foco circle:not(.ativo):not(:hover) { opacity: .35; }
.rosca div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.rosca b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.rosca small { color: var(--texto-2); font-size: 12.5px; }
.canais { display: flex; flex-direction: column; gap: 8px; }
.canais button { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px 8px; border-radius: 12px; text-align: left; transition: background .25s; }
.canais button:hover, .canais button.ativo { background: rgba(255, 255, 255, .08); }
.canais i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.canais span { flex: 1; color: var(--texto-2); }

/* ---------- camadas: modal, gaveta, paleta ---------- */
.camada { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.camada.aberta { pointer-events: auto; }
.fundo-escuro { position: absolute; inset: 0; background: rgba(8, 8, 12, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: aparece .35s var(--suave); }
.fechando .fundo-escuro { animation: some .3s var(--suave) forwards; }
@keyframes aparece { from { opacity: 0; } }
@keyframes some { to { opacity: 0; } }
.modal { position: absolute; left: 50%; top: 50%; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 28px; padding: 24px; background: rgba(28, 28, 34, .62); transform: translate(-50%, -50%); animation: modal .6s var(--mola); }
@keyframes modal { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } }
.fechando .modal { animation: modalSai .28s var(--suave) forwards; }
@keyframes modalSai { to { opacity: 0; transform: translate(-50%, -48%) scale(.96); } }
.modal h3 { margin: 0 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.modal > p { margin: 0 0 18px; color: var(--texto-2); font-size: 14px; }
.modal__fechar { position: absolute; top: 18px; right: 18px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--texto-2); }
.form .duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form select {
  height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); color: #fff; outline: none; font-size: 15px;
  transition: border-color .25s, background .25s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 38px; }
.form select option { background: #2a2a30; }
.form input:focus, .form select:focus { border-color: rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .35); }
.form input.erro { border-color: var(--verm-claro); animation: treme .4s; }
@keyframes treme { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form__acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.gaveta { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); border-radius: 28px; padding: 24px; overflow-y: auto; background: rgba(28, 28, 34, .6); animation: gaveta .6s var(--mola); }
@keyframes gaveta { from { transform: translateX(110%); } }
.fechando .gaveta { animation: gavetaSai .32s var(--suave) forwards; }
@keyframes gavetaSai { to { transform: translateX(110%); } }
.gaveta h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.gaveta__sub { color: var(--texto-2); margin: 4px 0 18px; }
.etapas { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 18px; }
.etapas button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 14px; text-align: left; transition: background .25s, transform .4s var(--mola); }
.etapas button:hover { background: rgba(255, 255, 255, .12); }
.etapas button:active { transform: scale(.98); }
.etapas button.atual { background: #fff; color: #1a1a1e; }
.etapas button i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; }

.paleta { position: absolute; left: 50%; top: 12vh; width: min(620px, calc(100vw - 32px)); border-radius: 26px; background: rgba(28, 28, 34, .66); transform: translateX(-50%); overflow: hidden; animation: paleta .5s var(--mola); }
@keyframes paleta { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.96); } }
.fechando .paleta { animation: some .2s forwards; }
.paleta__campo { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.paleta__campo input { flex: 1; background: none; border: 0; outline: none; font-size: 18px; }
.paleta__campo input::placeholder { color: var(--texto-3); }
.paleta__lista { max-height: 50vh; overflow-y: auto; padding: 8px; scrollbar-width: none; }
.paleta__grupo { color: var(--texto-3); font-size: 12px; padding: 10px 12px 6px; }
.paleta__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 14.5px; transition: background .15s; }
.paleta__item small { margin-left: auto; color: var(--texto-3); font-size: 12.5px; }
.paleta__item.sel { background: rgba(255, 255, 255, .14); }
.paleta__item .bolinha { width: 30px; height: 30px; }

.menu-flutuante { position: fixed; z-index: 60; width: 320px; border-radius: 22px; padding: 10px; background: rgba(28, 28, 34, .66); animation: balao .45s var(--mola); max-height: calc(100vh - 100px); overflow-y: auto; }
.menu-flutuante h4 { margin: 6px 10px 8px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.menu-flutuante h4 button { font-size: 12.5px; color: var(--texto-2); font-weight: 400; }
.menu-flutuante h4 button:hover { color: #fff; }
.aviso { display: flex; gap: 12px; padding: 10px; border-radius: 14px; width: 100%; text-align: left; transition: background .2s; }
.aviso:hover { background: rgba(255, 255, 255, .08); }
.aviso .bolinha { width: 32px; height: 32px; }
.aviso b { display: block; font-weight: 500; font-size: 13.5px; }
.aviso small { color: var(--texto-3); font-size: 12.5px; }
.aviso.lido { opacity: .5; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; font-size: 14px; text-align: left; transition: background .2s; }
.menu-item:hover { background: rgba(255, 255, 255, .1); }
.menu-item .chave { margin-left: auto; }

/* toasts */
.toasts { position: fixed; z-index: 100; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 999px; background: rgba(28, 28, 34, .72); font-size: 14px; pointer-events: auto; animation: toast .55s var(--mola); white-space: nowrap; }
.toast .bolinha { width: 26px; height: 26px; background: #fff; color: #1a1a1e; }
.toast .bolinha .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.toast button { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; }
.toast.sai { animation: toastSai .3s var(--suave) forwards; }
@keyframes toast { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastSai { to { opacity: 0; transform: translateY(10px) scale(.95); } }


/* ---------- painel de tráfego + comercial ---------- */
.trilho__divisor { display: block; width: 26px; height: 1px; margin: 6px auto; background: rgba(255, 255, 255, .18); }
.trilho__itens a.bloqueado { opacity: .36; cursor: not-allowed; }
.trilho__itens a.bloqueado:hover { opacity: .6; }
.trilho__itens a.bloqueado::after { content: ''; position: absolute; right: 9px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.traco { color: var(--texto-3); }
.kpi__delta--linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.sub { display: block; color: var(--texto-3); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
.vazio-bloco { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px 12px; color: var(--texto-2); }
.vazio-bloco .bolinha { width: 46px; height: 46px; background: rgba(255, 255, 255, .1); margin-bottom: 4px; }
.vazio-bloco .bolinha .ic { width: 20px; height: 20px; }
.vazio-bloco b { color: #fff; font-weight: 500; font-size: 15px; }
.vazio-bloco p { margin: 0 0 6px; max-width: 36ch; font-size: 13px; line-height: 1.5; }
.barras--vazia span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.barras--vazia i { display: block; width: 100%; height: var(--h); border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2); }
.esqueleto { display: inline-block; width: 130px; height: 30px; border-radius: 10px; vertical-align: middle;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .08) 80%) 0 0 / 300% 100%; animation: brilho 1.3s linear infinite; }
.esqueleto--grafico { width: 100%; height: 100%; border-radius: 18px; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.grafico--vazio { display: grid; place-items: center; }
.grafico__cab { display: flex; align-items: baseline; gap: 8px; margin: -4px 0 4px; }
.grafico__cab b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.grafico__cab small { color: var(--texto-3); font-size: 13px; }
.funil-etapas { display: flex; flex-direction: column; align-items: center; }
.funil-etapas__passo { width: var(--l); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #fff; transition: transform .45s var(--mola), background .3s; }
.funil-etapas__passo:hover { transform: scale(1.02); background: rgba(255, 255, 255, .15); }
.funil-etapas__passo b { font-weight: 600; }
.funil-etapas__passo.forte { background: linear-gradient(90deg, var(--vermelho), #E5484D); border-color: transparent; box-shadow: 0 10px 26px -12px rgba(204, 43, 50, .9); }
.funil-etapas__taxa { font-size: 11.5px; color: var(--texto-3); padding: 4px 0; min-height: 10px; text-align: center; }
.funil-etapas__venda { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .38); cursor: pointer; font: inherit; }
.funil-etapas__venda[disabled] { cursor: default; opacity: .7; }
.funil-etapas__venda b { color: var(--texto-2); font-weight: 500; }
.funil-etapas__venda.ok { border-style: solid; border-color: rgba(107, 227, 164, .5); background: rgba(107, 227, 164, .14); }
.funil-etapas__venda.ok b { color: var(--verde); font-weight: 600; }
.fin--inv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vendas-num { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.vendas-num div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.vendas-num small { display: block; color: var(--texto-3); font-size: 12px; }
.vendas-num b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; }
.vendas-vazio { color: var(--texto-2); font-size: 14px; line-height: 1.55; margin: 2px 0 0; }
.vendas-vazio b { color: #fff; font-weight: 500; }
.distrib { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; }
.distrib .rosca { width: 190px; height: 190px; margin: 0; }
.canais span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canais span small { display: block; color: var(--texto-3); font-size: 11.5px; }
.ponto-cor { display: block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lista__valor b { display: block; font-weight: 500; }
.lista__valor small { display: block; color: var(--texto-3); font-size: 12px; font-weight: 400; }
.insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 195, 110, .12); color: #ffe4bf; font-size: 13.5px; line-height: 1.45; margin: 0 0 14px; }
.insight .ic { color: var(--ambar); width: 18px; height: 18px; margin-top: 1px; }
.insight b { font-weight: 600; color: #fff; }
.criativos { display: flex; flex-direction: column; gap: 12px; }
.criativo { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.criativo__rank { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; }
.criativo__txt { min-width: 0; }
.criativo__txt b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.criativo__txt small { color: var(--texto-3); font-size: 12.5px; }
.criativo__txt em { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.criativo__txt em i { display: block; height: 100%; width: var(--w); background: #fff; border-radius: 4px; transition: width 1s var(--mola); }
.gaveta .lista li { gap: 12px; }
.camp-share { display: flex; flex-direction: column; gap: 12px; }
.camp-share div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: 13px; }
.camp-share span { color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-share em { grid-column: 1 / 3; display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.camp-share em i { display: block; height: 100%; width: var(--w); background: var(--c, #fff); border-radius: 4px; transition: width 1s var(--mola); }
.destaque > b { display: block; font-size: 18px; font-weight: 500; margin-bottom: 6px; letter-spacing: -.01em; }
.ponte { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 200px; }
.ponte__passo { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; text-align: center; min-width: 0; }
.ponte__passo em { display: flex; align-items: flex-end; justify-content: center; width: 100%; flex: 1; }
.ponte__passo em i { display: block; width: 100%; max-width: 72px; height: var(--h); border-radius: 12px 12px 6px 6px; background: rgba(255, 255, 255, .85); transition: height 1s var(--mola); }
.ponte__passo.meta em i { background: linear-gradient(180deg, var(--verm-claro), var(--vermelho)); }
.ponte__passo b { font-size: 18px; font-weight: 500; }
.ponte__passo small { color: var(--texto-3); font-size: 11.5px; line-height: 1.25; }
.duplo { grid-column: span 2; }
.botao--whats { background: #1FAF5A; color: #fff; width: 100%; justify-content: center; margin-top: 16px; }
.coluna__vazia { border: 1.5px dashed rgba(255, 255, 255, .16); border-radius: 16px; padding: 22px 10px; font-size: 13px; }
body.modo-exemplo::after { content: 'Dados de exemplo'; position: fixed; right: 22px; bottom: 22px; z-index: 20; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 195, 110, .9); color: #3a2400; font: 600 12.5px/1 'Archivo', sans-serif; box-shadow: var(--sombra); pointer-events: none; }
@media (max-width: 1180px) {
  .fin--inv { grid-template-columns: minmax(0, 1fr); }
  .duplo { grid-column: auto; }
}
@media (max-width: 760px) {
  .trilho__itens a.bloqueado, .trilho__divisor { display: none; }
  .distrib { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .distrib > * { min-width: 0; max-width: 100%; }
  .distrib .canais { width: 100%; }
  .ponte { gap: 4px; height: 180px; }
  .funil-etapas__passo { width: max(var(--l), 80%); padding: 10px 13px; font-size: 13.5px; }
  .ponte__passo small { font-size: 10px; }
  .criativo { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .criativo .etiqueta { display: none; }
  body.modo-exemplo::after { content: 'Exemplo'; top: 26px; bottom: auto; left: auto; right: 176px; padding: 6px 10px; font-size: 11px; }
  .cabeca__acoes { width: 100%; }
}

/* cliques atravessam a tela até os pontos do caminhão */
.app { pointer-events: none; }
.trilho, .topo, .vistas { pointer-events: auto; }
@media (min-width: 981px) {
  body[data-vista="geral"] .vistas, body[data-vista="geral"] .vista { pointer-events: none; }
  body[data-vista="geral"] .vista .vidro, body[data-vista="geral"] .vista .saudacao { pointer-events: auto; }
}

/* ---------- responsivo ---------- */
@media (min-width: 981px) and (max-height: 1000px) {
  .app { padding: 12px; gap: 12px; }
  .principal { gap: 12px; }
  .geral, .geral__esq, .geral__baixo { gap: 12px; }
  .saudacao { padding: 2px 4px 0; }
  .saudacao h1 { font-size: 40px; margin: 6px 0; }
  .saudacao p { font-size: 13.5px; }
  .geral .cartao { padding: 15px 16px; }
  .geral .cartao__topo { margin-bottom: 10px; }
  .geral .bolinha { width: 30px; height: 30px; }
  .geral .grande { font-size: 26px; }
  .barras { height: 58px; margin-top: 12px; }
  .mostrador { max-width: 212px; }
  .mostrador__centro strong { font-size: 44px; }
  .mostrador__ctrl { margin-top: -30px; }
  .agenda { max-height: 150px; }
  .funil-mini { gap: 7px; }
  .linha-dado { padding: 7px 0; }
}
@media (max-width: 1360px) {
  .geral__baixo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .veiculos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .fin, .mkt, .com-lado, .veiculos.tres { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .busca span { display: none; }
  .busca { flex: none; width: 46px; padding: 0; justify-content: center; margin-left: auto; }
  .busca kbd { display: none; }
  .topo__acoes { margin-left: 0; }
  #chipData { display: none; }
}
@media (max-width: 980px) {
  .geral { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .geral__esq { grid-row: auto; }
  .geral__palco { min-height: 44vh; order: -1; }
  .rh { grid-template-columns: minmax(0, 1fr); }
  .rh > .cartao { grid-column: auto !important; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .app { grid-template-columns: 1fr; padding: 12px 12px 0; gap: 10px; }
  .trilho {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    flex-direction: row; justify-content: center; padding: 8px; border-radius: 26px; gap: 4px;
  }
  .trilho__marca, .trilho__fim { display: none; }
  .trilho__itens { flex-direction: row; flex: none; gap: 2px; }
  .trilho__itens a { width: 50px; height: 46px; }
  .trilho__itens a span { display: none; }
  .trilho__indicador { width: 50px; height: 46px; }
  .vista { padding-bottom: 110px; }
  .topo__logo { height: 26px; }
  .geral__baixo { grid-template-columns: minmax(0, 1fr); }
  .cartao__topo { flex-wrap: wrap; }
  .geral__palco { min-height: 34vh; }
  .veiculos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .cartao { padding: 16px; }
  .kanban { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; }
  .coluna { scroll-snap-align: start; }
  .tabela .some-cel { display: none; }
  .faixa { grid-template-columns: 1fr; gap: 4px; }
  .toasts { bottom: 96px; }
  .form .duas { grid-template-columns: 1fr; }
  .cena::before { content: ''; position: absolute; inset: -60px; background: url(../img/fundo-estrada-1200.webp) 70% 50% / cover; filter: blur(34px) brightness(.62) saturate(1.2); }
  .cena__quadro { left: 0; top: 0; width: 190vw; height: 107vw; transform: translate3d(-90vw, 34px, 0) scale(1); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  body:not([data-vista="geral"]) .cena__quadro { transform: translate3d(-90vw, 34px, 0) scale(1.1); }
  .cena__pontos { display: none; }
  .chip { display: none; }
  .ponto span.ponto__txt { display: none; }
  .ponto { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
