/* Painel da Falken Digital. Claro, sóbrio, um preto só e o aço da marca. */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --text: #1c1c1f;
  --muted: #6e6e73;
  --faint: #a3a3a8;
  --line: #e8e8e4;
  --line-2: #d9d9d4;
  --steel: #a2a7ae;
  --pos: #177a4b;
  --pos-bg: #e8f4ed;
  --neg: #c03a2b;
  --neg-bg: #fbecea;
  --side: #0b0b0c;
  --side-text: #ececea;
  --side-muted: #86868b;
  --side-line: #1c1c1f;
  --side-hover: #161618;
  --raio: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { display: block; }

/* ---------- Marca ---------- */
.marca { display: flex; align-items: center; gap: 11px; color: var(--side-text); }
.marca img { width: 26px; height: 26px; }
.marca span { font: 500 14px/1 'Saira', sans-serif; letter-spacing: .26em; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--side); padding: 24px 16px; }
.login-caixa { width: 100%; max-width: 340px; display: flex; flex-direction: column; color: var(--side-text); }
.login-caixa .marca { margin-bottom: 40px; justify-content: center; }
.login-caixa .marca img { width: 34px; height: 34px; }
.login-caixa h1 { font-size: 15px; font-weight: 500; color: var(--side-muted); text-align: center; margin-bottom: 28px; }
.login-caixa label { font-size: 12.5px; color: var(--side-muted); margin-bottom: 8px; }
.login-caixa input {
  height: 42px; padding: 0 14px; border-radius: 9px; border: 1px solid #2a2a2e; background: #121214;
  color: var(--side-text); outline: none; transition: border-color .15s;
}
.login-caixa input:focus { border-color: #5a5a60; }
.login-caixa .botao-principal { margin-top: 16px; height: 42px; background: var(--side-text); color: var(--ink); }
.login-erro { margin-top: 10px; font-size: 13px; color: #ef8a7e; }

.botao-principal {
  height: 34px; padding: 0 16px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 500;
  transition: opacity .15s;
}
.botao-principal:hover { opacity: .88; }
.botao-principal:disabled { opacity: .5; cursor: default; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.menu {
  position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; padding: 22px 12px 16px;
}
.menu > .marca { padding: 2px 10px 28px; }
.menu nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.menu-grupo { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); padding: 18px 10px 8px; }
.menu-grupo:first-child { padding-top: 0; }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 8px;
  color: #c9c9c6; font-size: 13.5px; text-align: left; transition: background .15s, color .15s;
}
.menu-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a.menu-item:hover, button.menu-item:hover { background: var(--side-hover); color: #fff; }
.menu-item.ativo { background: #1d1d20; color: #fff; }
.menu-item.breve { color: #5f5f64; cursor: default; }
.menu-item em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #4f4f54; }
.fundo-menu { display: none; }
.menu-pe { border-top: 1px solid var(--side-line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }

.conteudo { min-width: 0; padding: 0 36px 48px; max-width: 1480px; width: 100%; }

/* ---------- Topo ---------- */
.topo { display: flex; align-items: center; gap: 16px; min-height: 84px; position: relative; }
.topo-titulo { flex: 1; min-width: 0; }
.topo-titulo h1 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.topo-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
.atualizado { font-size: 12.5px; color: var(--faint); margin: 0 4px 0 8px; white-space: nowrap; }

.icone-botao {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: color .15s, border-color .15s;
}
.icone-botao:hover { color: var(--ink); border-color: var(--line-2); }
.icone-botao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icone-botao:disabled { cursor: default; }
#atualizar.girando svg { animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#privado .olho-fechado { display: none; }
#privado[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); }
#privado[aria-pressed="true"] .olho-aberto { display: none; }
#privado[aria-pressed="true"] .olho-fechado { display: block; }
.so-celular { display: none; }

/* Meta do mês */
.meta-barra, .meta-definir {
  display: flex; flex-direction: column; gap: 6px; padding: 6px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); min-width: 176px; text-align: left;
}
.meta-definir { min-width: 0; color: var(--muted); font-size: 12.5px; height: 34px; justify-content: center; }
.meta-definir:hover, .meta-barra:hover { border-color: var(--line-2); }
.meta-texto { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1; }
.meta-de { color: var(--faint); font-weight: 400; }
.meta-trilho { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meta-trilho i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.meta-pop {
  position: absolute; top: 70px; right: 84px; z-index: 20; width: 300px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio);
  box-shadow: 0 12px 32px rgba(11, 11, 12, .08);
}
.meta-pop label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.meta-pop-linha { display: flex; gap: 8px; margin-bottom: 8px; }
.meta-pop input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; outline: none; }
.meta-pop input:focus { border-color: var(--ink); }

/* ---------- Filtros ---------- */
.filtros { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.segmentado { display: inline-flex; padding: 3px; border-radius: 10px; background: #ececea; gap: 2px; }
.segmentado button {
  padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.segmentado button:hover { color: var(--ink); }
.segmentado button[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(11, 11, 12, .08); }
.operacoes { background: var(--ink); }
.operacoes button { color: #a9a9ad; }
.operacoes button:hover { color: #fff; }
.operacoes button[aria-checked="true"] { background: #fff; color: var(--ink); }
.op-moeda { margin-left: 6px; font-size: 11px; opacity: .55; font-weight: 500; }
.aviso-cambio {
  margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: #ececea;
  font-size: 12.5px; color: var(--muted);
}
.meio-icone { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.3; flex: none; }
.custom { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.custom input, .filtros select {
  height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  font-size: 13px; outline: none;
}
.filtros select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%236e6e73' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
}
.filtros select:hover, .custom input:hover { border-color: var(--line-2); }
.filtros select:focus, .custom input:focus { border-color: var(--ink); }
.filtros-direita { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Cartões ---------- */
.cartoes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--raio); overflow: hidden;
}
.cartao { background: var(--surface); padding: 20px 22px 18px; min-height: 132px; display: flex; flex-direction: column; }
.cartao-rotulo { font-size: 13px; font-weight: 500; color: var(--muted); }
.cartao-valor {
  font-size: 26px; font-weight: 500; letter-spacing: -.025em; color: var(--ink); margin: 10px 0 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cartao-valor.pos { color: var(--pos); }
.cartao-valor.neg { color: var(--neg); }
.cartao-rodape { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 12px; }
.cartao-sub { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cartao-valor .til { font-size: 18px; vertical-align: 3px; }
.var { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 4px; border-radius: 999px; font-weight: 500; font-variant-numeric: tabular-nums; }
.var svg { width: 12px; height: 12px; }
.var-boa { color: var(--pos); background: var(--pos-bg); }
.var-ruim { color: var(--neg); background: var(--neg-bg); }
.var-neutra { color: var(--faint); padding: 0; }
.var-texto { color: var(--faint); }
.til { color: var(--faint); margin-right: 2px; cursor: help; }

/* ---------- Painéis ---------- */
.paineis { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); padding: 20px 22px; min-width: 0; }
.painel-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.painel h2 { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.painel-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.legenda { display: flex; gap: 14px; list-style: none; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legenda li { display: flex; align-items: center; gap: 6px; }
.g-marca { display: inline-block; width: 10px; height: 2px; border-radius: 2px; flex: none; }

/* Gráfico */
.grafico-caixa { position: relative; min-height: 260px; }
.grafico text { font-family: inherit; }
.g-grade { stroke: var(--line); stroke-width: 1; }
.g-zero { stroke: var(--line-2); }
.g-eixo { font-size: 11px; fill: var(--faint); font-variant-numeric: tabular-nums; }
.g-cursor { stroke: var(--line-2); stroke-width: 1; }
.g-area { cursor: crosshair; }
.g-dica {
  position: absolute; top: 4px; pointer-events: none; min-width: 180px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 11, 12, .08); font-size: 12px;
}
.g-dica-titulo { color: var(--muted); margin-bottom: 6px; }
.g-dica-linha { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 2px 0; }
.g-dica-linha b { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Países */
.paises { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pais { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "nome vendas valor" "barra barra pct"; column-gap: 14px; row-gap: 6px; align-items: center; }
.pais-nome { grid-area: nome; display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); min-width: 0; }
.pais-vendas { grid-area: vendas; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.pais-valor { grid-area: valor; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); text-align: right; min-width: 92px; }
.pais-barra { grid-area: barra; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pais-barra i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.pais-pct { grid-area: pct; font-size: 11.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.iso {
  width: 18px; height: 12px; border-radius: 2px; flex: none; display: inline-grid; place-items: center;
  background: #ececea; color: var(--muted); font-size: 7.5px; font-weight: 600; letter-spacing: .02em;
}
.iso-vazio { background: var(--line); }
.abas { display: flex; gap: 2px; margin: -4px 0 16px; border-bottom: 1px solid var(--line); }
.abas button {
  padding: 6px 10px 9px; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.painel-nota { margin-top: 16px; font-size: 11.5px; color: var(--faint); }
.flag { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(11, 11, 12, .06); }

.vazio { color: var(--faint); font-size: 13px; padding: 24px 0; text-align: center; }
.notas { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--faint); max-width: 900px; }
.erro-carga { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- Telas de produto ---------- */
.cartoes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cartoes-4 .cartao { min-height: 112px; }
.alerta {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 10px 14px;
  border-radius: 10px; background: var(--neg-bg); color: var(--neg); font-size: 13px; font-weight: 500; text-align: left;
}
.alerta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }
.alerta:hover { filter: brightness(.98); }
.abas-tela { margin: 24px 0 16px; }
.abas-tela button { font-size: 13.5px; padding: 8px 12px 11px; }

.painel-tabela { padding: 20px 0 8px; }
.painel-tabela > .painel-topo, .painel-tabela > .painel-nota { padding: 0 22px; }
.painel-tabela .painel-nota { margin: 12px 0 8px; }
.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tabela th {
  text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafaf8;
}
.tabela td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.tabela tr:last-child td { border-bottom: 0; }
.tabela th:first-child, .tabela td:first-child { padding-left: 22px; }
.tabela th:last-child, .tabela td:last-child { padding-right: 22px; }
.tabela td:first-child { white-space: nowrap; }
.tabela td:first-child .flag { display: inline-block; vertical-align: -1px; margin-right: 9px; }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela .taxa { display: inline-block; min-width: 46px; margin-left: 8px; color: var(--faint); font-size: 12px; }
.tabela .bom, .tabela .bom .taxa { color: var(--pos); font-weight: 500; }
.tabela .ruim, .tabela .ruim .taxa { color: var(--neg); font-weight: 500; }
.tabela tr.destaque td { background: #fafaf8; font-weight: 500; }
.tabela .apagado { color: var(--faint); }
.tabela .vazio { text-align: center; }

.paineis-iguais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linhas { list-style: none; display: flex; flex-direction: column; }
.linhas li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.linhas li:last-child { border-bottom: 0; }
.linha-valor { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.linha-valor em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 8px; }
.barras { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.barra-topo { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.barra-topo .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.barras .pais-barra { display: block; }
.traducao { color: var(--faint); font-size: 12px; margin-left: 4px; }

/* Lista de pedidos */
.pedidos-topo { padding: 0 22px; flex-wrap: wrap; align-items: center; }
.segmentado-claro { background: #ececea; }
.busca {
  flex: 1; min-width: 220px; max-width: 360px; height: 34px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); font-size: 13px; outline: none;
}
.busca:focus { border-color: var(--ink); }
.tabela-pedidos td { font-size: 12.5px; }
.tabela-pedidos .forte { font-weight: 500; color: var(--ink); }
.tabela-pedidos .fraco { color: var(--faint); font-size: 12px; margin-top: 2px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.tabela-pedidos .data { color: var(--muted); }
.tabela-pedidos .mercado { white-space: nowrap; }
.tabela-pedidos .mercado .flag { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.tabela-pedidos .mercado .iso { display: inline-grid; margin-left: 6px; vertical-align: -1px; width: auto; padding: 0 3px; }
.tag { display: inline-block; margin: 0 4px 4px 0; padding: 1px 7px; border-radius: 999px; background: #f0f0ee; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.selo { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.selo-ok { background: var(--pos-bg); color: var(--pos); }
.selo-pago { background: #eef1f5; color: #3d5a80; }
.selo-neutro { background: #f0f0ee; color: var(--muted); }
.selo-ruim { background: var(--neg-bg); color: var(--neg); }
.copiar { margin-top: 6px; font-size: 11.5px; color: var(--pos); text-decoration: underline; text-underline-offset: 2px; }
.ouvir { white-space: nowrap; }
.ouvir a { display: block; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ouvir a + a { margin-top: 4px; color: var(--muted); }
.paginacao { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 6px; font-size: 12.5px; color: var(--muted); }
.paginacao div { display: flex; gap: 8px; }
.botao-claro { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12.5px; }
.botao-claro:hover:not(:disabled) { border-color: var(--line-2); }
.botao-claro:disabled { color: var(--faint); cursor: default; }

/* Carregando */
.esqueleto { position: relative; overflow: hidden; }
.esqueleto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(11, 11, 12, .035), transparent);
  animation: brilho 1.4s ease-in-out infinite;
}
.esqueleto.alto { min-height: 340px; }
@keyframes brilho { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Modo privado: os valores em reais ficam embaçados. */
.valor { transition: filter .2s; }
body.privado .valor { filter: blur(7px); user-select: none; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 1100px) {
  .cartoes, .cartoes-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paineis, .paineis-iguais { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .menu {
    position: fixed; z-index: 40; left: 0; top: 0; width: 248px; transform: translateX(-100%);
    transition: transform .22s ease;
  }
  body.menu-aberto .menu { transform: none; }
  .fundo-menu { display: none; }
  body.menu-aberto .fundo-menu { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(11, 11, 12, .35); }
  .so-celular { display: grid; }
  .conteudo { padding: 0 16px 40px; }
  .topo { min-height: 68px; flex-wrap: wrap; padding: 12px 0; }
  .topo-acoes { width: 100%; }
  .meta { flex: 1; }
  .meta-barra { width: 100%; }
  .atualizado { display: none; }
  .meta-pop { right: 0; top: 112px; width: min(300px, 100%); }
  .filtros-direita { margin-left: 0; width: 100%; }
  .filtros-direita select { flex: 1; min-width: 0; }
  .segmentado { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 480px) {
  .cartao { padding: 14px; min-height: 116px; }
  .cartao-valor { font-size: 18px; }
  .cartao-rodape .var-texto { display: none; }
  .painel { padding: 16px; }
}

/* Resultado por mercado */
.painel-mercados { margin-top: 16px; }
.painel-mercados .tabela td { vertical-align: middle; }
.tabela tr.sem-venda td { background: var(--neg-bg); }

/* Anúncios: árvore campanha → conjunto → anúncio */
.tabela-arvore td:first-child { white-space: normal; min-width: 300px; }
.arvore { display: flex; align-items: center; gap: 6px; text-align: left; color: inherit; font: inherit; width: 100%; }
button.arvore { cursor: pointer; }
.seta { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .15s; }
.seta.aberta { transform: rotate(90deg); }
.tabela-arvore tr[data-abrir] { cursor: pointer; }
.tabela-arvore tr[data-abrir]:hover td { background: #fafaf8; }
.tabela-arvore tr.nivel-1 td { font-weight: 500; }
.tabela-arvore tr.nivel-2 td:first-child { padding-left: 40px; }
.tabela-arvore tr.nivel-2 td { background: #fcfcfb; }
.tabela-arvore tr.nivel-3 td:first-child { padding-left: 76px; color: var(--muted); }
.tabela-arvore tr.nivel-3 td { background: #fcfcfb; font-size: 12.5px; }
.tabela tr.apagado-linha td { color: var(--muted); }
.tabela .fraco { color: var(--faint); }

/* Financeiro */
.tabela-dre td:first-child { color: var(--muted); }
.tabela-dre tr.destaque td { color: var(--ink); font-weight: 600; }
.aviso-tabela { margin: 0 22px 14px; padding: 12px 14px; border-radius: 10px; background: #f0f0ee; font-size: 13px; color: var(--muted); }
.aviso-tabela code { font-size: 12px; color: var(--ink); }
.tabela-custos td { vertical-align: middle; }
.acoes { white-space: nowrap; text-align: right; }
.link { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin-left: 12px; }
.link:hover { color: var(--ink); }
.link.ruim { color: var(--neg); }
.form-custo input, .form-custo select {
  height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 12.5px; outline: none; width: 100%;
}
.form-custo input:focus, .form-custo select:focus { border-color: var(--ink); }
.form-custo input[name="nome"] { min-width: 160px; }
.campo-valor { display: flex; gap: 6px; }
.campo-valor select { width: 70px; flex: none; }
.campo-valor input { width: 100px; text-align: right; }
.erro-form { color: var(--neg); font-size: 12px; margin-top: 4px; white-space: normal; }

/* Anúncios: o mercado no topo da árvore */
.tabela-arvore tr.nivel-0 td { font-weight: 600; color: var(--ink); }
.tabela-arvore tr.nivel-0 td:first-child .flag { display: inline-block; margin-right: 8px; vertical-align: -1px; }
.tabela-arvore tr.nivel-1 td:first-child { padding-left: 40px; }
.tabela-arvore tr.nivel-1 td { background: #fdfdfc; }
.tabela-arvore tr.nivel-2 td:first-child { padding-left: 64px; }
.tabela-arvore tr.nivel-3 td:first-child { padding-left: 96px; }

/* Financeiro: passo a passo da tabela de custos */
.passo-a-passo { margin: 0 22px 16px; padding: 16px 18px; border-radius: 10px; background: #f3f3f1; font-size: 13px; color: var(--text); }
.passo-a-passo ol { margin: 8px 0 12px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.passo-a-passo em { font-style: normal; color: var(--ink); font-weight: 500; }
.sql {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font: 12px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--ink); white-space: pre; overflow-x: auto;
}
.painel-mercados .tabela th, .painel-mercados .tabela td { padding-left: 10px; padding-right: 10px; }
.painel-mercados .tabela th:first-child, .painel-mercados .tabela td:first-child { padding-left: 22px; }
.painel-mercados .tabela th:last-child, .painel-mercados .tabela td:last-child { padding-right: 22px; }
