:root {
  --navy: #141414;
  --navy-dark: #000000;
  --gold: #FED605;
  --bg: #f4f4f0;
  --card: #ffffff;
  --text: #17181a;
  --muted: #6b6a64;
  --border: #e5e3db;
  --grid: #efede6;
  --serie-1: #1F6FA3;
  --serie-2: #D99100;
  --ok: #1d7a46;
  --ok-bg: #e5f4ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.45;
}
a { color: var(--navy); }

/* topo */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px; background: var(--navy); border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { font-size: 13px; color: #c9c9c9; border-left: 1px solid #3a3a3a; padding-left: 12px; white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 1px solid #3a3a3a; border-radius: 8px; color: #fff;
  font-size: 20px; line-height: 1; padding: 6px 10px; cursor: pointer;
}
.topbar nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.topbar nav a { color: #d4e3ec; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.topbar nav a:hover { background: var(--navy-dark); color: #fff; }
.topbar nav a.ativo { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.topbar nav .who { color: #fff; font-weight: 600; border-left: 1px solid #3a3a3a; border-radius: 0; margin-left: 6px; }
.topbar nav .btn-add { background: var(--gold); color: var(--navy-dark); font-weight: 700; margin-left: 6px; }
.topbar nav .btn-add:hover { background: #ffe14d; color: var(--navy-dark); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .topbar { flex-wrap: wrap; padding: 10px 16px; }
  .brand span { display: none; }
  .topbar nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    order: 3; padding-top: 10px; border-top: 1px solid #3a3a3a;
  }
  .topbar nav.nav-open { display: flex; }
  .topbar nav a, .topbar nav .who { border-left: none; margin-left: 0; padding: 11px 8px; }
  .topbar nav a.ativo { box-shadow: inset 3px 0 0 var(--gold); }
  .topbar nav .btn-add { text-align: center; margin: 6px 0; border-radius: 8px; }
}

.container { max-width: 1680px; margin: 0 auto; padding: 22px 16px 80px; }
@media (min-width: 900px) { .container { padding: 26px 32px 80px; } }
.container-narrow { max-width: 680px; }

h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 4px; }
h3 { font-size: 14px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head p { margin: 2px 0 0; }

.grid-2, .grid-3, .grid-4, .grid-21 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card, .grid-21 > .card { margin-bottom: 0; }
@media (min-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
.span-full { grid-column: 1 / -1; }
.placeholder { display: flex; align-items: center; justify-content: center; min-height: 220px; text-align: center; color: var(--muted); background: #f7f9fb; border: 1px dashed var(--border); border-radius: 10px; padding: 20px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* seletor de periodo e linhas do painel */
[hidden] { display: none !important; }
.periodo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px;
}
.periodo select {
  height: 36px; padding: 0 30px 0 10px; font-size: 14px; font-family: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer;
}
.periodo select:focus, .chips-box:focus { outline: 2px solid var(--serie-1); outline-offset: -1px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 36px; }
.seg button {
  border: 0; background: #fff; color: var(--muted); padding: 0 16px; font: inherit; font-size: 12px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.chips { position: relative; flex: 1 1 280px; min-width: 0; }
.chips-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 34px 4px 6px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; position: relative;
}
.chips-caret { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px;
  background: #f1f1f1; color: var(--navy-dark); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip-x {
  width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; line-height: 18px; font-size: 13px;
  background: var(--navy); color: #fff; cursor: pointer;
}
.chip-x:hover { background: var(--navy-dark); }
.chips-menu {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 51, 79, .12);
}
.chips-menu li { padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.chips-menu li[data-linha]:hover { background: #f0f4f7; }
.chips-menu .chips-vazio { color: var(--muted); cursor: default; font-size: 13px; }
.intervalo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.intervalo label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.intervalo input[type="date"] {
  height: 36px; padding: 0 8px; font-size: 14px; font-family: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; background: #fff; min-width: 0;
}
.intervalo input[type="date"]:focus { outline: 2px solid var(--serie-1); outline-offset: -1px; }
@media (max-width: 640px) {
  .intervalo { flex: 1 1 100%; }
  .intervalo label { flex: 1 1 140px; }
  .intervalo input[type="date"] { flex: 1; width: 100%; }
}
@media (max-width: 640px) {
  .periodo select { flex: 1 1 120px; }
  .chips { flex-basis: 100%; }
}

/* tiles */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat-grid-resumo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .stat-grid-resumo { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat-destaque { border-top-color: var(--gold); background: #fffbe0; }
.card-fill { display: flex; flex-direction: column; }
.card-fill .stat-grid { margin-bottom: 0; flex: 1; align-content: start; }
/* Meta e Google lado a lado: linhas da mesma altura, para a metrica igual ficar na mesma altura nos dois cards */
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.stat-inner { background: #f7f9fb; border-color: var(--grid); }
.stat-label { display: block; font-size: 12px; color: var(--muted); }
.stat-value { display: block; font-size: 24px; font-weight: 700; color: var(--text); margin-top: 2px; overflow-wrap: anywhere; }
.stat-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-hero { border-top: 3px solid var(--navy); }

.comissao {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
@media (min-width: 900px) { .comissao { grid-template-columns: 1.1fr 2fr auto; } }
.comissao .label { font-size: 12px; color: #c9c9c9; display: block; }
.comissao .big { font-size: 32px; font-weight: 700; display: block; line-height: 1.15; }
.comissao .linha { display: flex; gap: 24px; flex-wrap: wrap; }
.comissao .linha div { min-width: 120px; }
.comissao .val { font-size: 17px; font-weight: 600; display: block; }
.barra { height: 8px; background: #3a3a3a; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.barra span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.comissao .btn { background: var(--gold); color: var(--navy-dark); }

/* avisos */
.flashes { margin-bottom: 14px; }
.flash, .aviso { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 8px; }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-info, .aviso { background: var(--warn-bg); color: var(--warn); }
.aviso a { color: var(--warn); font-weight: 600; }

/* tabelas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: none; }
table.t tfoot td { font-weight: 700; border-top: 1px solid var(--border); }
table.t .num { text-align: right; white-space: nowrap; }
table.t tr.clicavel { cursor: pointer; }
table.t tr.clicavel:hover td { background: #f4f8fb; }
details.tabela { margin-top: 10px; font-size: 13px; }
details.tabela summary { cursor: pointer; color: var(--navy); }

/* graficos */
.chart-wrap { position: relative; height: 260px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-lead { background: #e6eef5; color: #25506f; }
.b-negociacao { background: #fff1d1; color: #7a5200; }
.b-ganho { background: var(--ok-bg); color: var(--ok); }
.b-perdido { background: #eceef0; color: #5d6b77; }
.b-alerta { background: var(--warn-bg); color: var(--warn); }
.b-cancelada { background: var(--danger-bg); color: var(--danger); }
.b-neutro { background: #eef2f5; color: var(--muted); }

/* botoes e formularios */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #b8c5cf; }
.btn-danger { background: #fff; color: var(--danger); border-color: #efc7c3; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.form label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.form label.check input { width: auto; margin-top: 3px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--serie-1); outline-offset: -1px; }
.form .dica { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 0; margin: 0 0 14px; }
legend { font-size: 13px; font-weight: 600; padding: 0 6px; }

.filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 900px) { .filtros { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
.filtros input, .filtros select { width: 100%; padding: 9px 10px; font-size: 14px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-family: inherit; }
.filtros .full-mobile { grid-column: 1 / -1; }
@media (min-width: 900px) { .filtros .full-mobile { grid-column: auto; } }

/* lead */
.dados { display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin: 0; }
@media (min-width: 640px) { .dados { grid-template-columns: 1fr 1fr; } }
.dados dt { font-size: 12px; color: var(--muted); }
.dados dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--grid); }
.timeline li:last-child { border-bottom: none; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input { padding: 7px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }

pre.json { background: #f6f8fa; border: 1px solid var(--grid); border-radius: 8px; padding: 10px; font-size: 12px; overflow-x: auto; max-height: 280px; margin: 6px 0 0; white-space: pre; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--navy); }
.login-card { width: 100%; max-width: 360px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-top { background: var(--navy-dark); padding: 26px 20px; text-align: center; border-bottom: 3px solid var(--gold); }
.login-top img { height: 38px; width: auto; max-width: 100%; }
.login-body { padding: 22px; }
.login-body p { margin: 0 0 14px; text-align: center; }

@media (max-width: 480px) {
  .stat { padding: 12px; }
  .stat-value { font-size: 18px; white-space: nowrap; overflow-wrap: normal; }
  .comissao .big { font-size: 28px; }
  .chart-wrap { height: 220px; }
}

@media (max-width: 899px) {
  .placeholder { min-height: 120px; }
}
@media (min-width: 900px) { .filtros-leads { grid-template-columns: 2fr 1fr 1fr auto; } }


/* Google por linha: cards agrupados por linha de negocio (2026-10-15) */
.linhas-cards { margin-bottom: 16px; }
.linha-grupo { margin-bottom: 16px; }
.linha-grupo .grid-2 { margin-bottom: 0; }
.sub-linha { display: block; }
.stat-grid-6 { margin-bottom: 0; }
@media (min-width: 900px) { .stat-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .stat-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Cards Meta e Google por linha (visual revisto em 17/11/2026, pedido do Kallebe) */
.linha-titulo {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff;
}
.linha-titulo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.linha-gr .linha-titulo { background: var(--gold); color: var(--navy-dark); }
.linha-gr .linha-titulo::before { background: var(--navy); }

.linhas-cards .card-fill { padding: 0; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 51, 79, .06), 0 6px 18px rgba(0, 51, 79, .06); }
.linhas-cards .card-fill > .card-head { margin: 0; padding: 14px 18px 12px; border-top: 4px solid var(--navy); background: #f6f6f6; border-bottom: 1px solid var(--grid); }
.linhas-cards .card-fill > .card-head h2 { display: flex; align-items: center; gap: 10px; }
.plat-logo { width: 22px; height: 22px; flex: none; display: block; }
.linhas-cards .card-fill > :not(.card-head) { margin-left: 18px; margin-right: 18px; }
.linhas-cards .card-fill > .placeholder { margin-top: 16px; margin-bottom: 18px; }
.linhas-cards .card-fill > p.muted { margin-bottom: 14px; }

.ads-metricas { margin-bottom: 18px !important; }
.ads-metricas .stat-inner { background: #fff; border-color: var(--border); }
.ads-metricas .stat-label, .ads-resultado .stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ads-metricas .stat-value { color: var(--navy-dark); }
@media (min-width: 900px) { .linhas-cards .ads-metricas { grid-auto-rows: 1fr; } }

.ads-resultado { margin-top: 16px; margin-bottom: 16px; padding: 14px; border-radius: var(--radius); background: var(--ok-bg); border: 1px solid #c5e6d2; }
.ads-resultado-titulo { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); margin-bottom: 10px; }
.ads-resultado-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-res { background: #fff; border-color: #cfe9da; }
.stat-res .stat-value { color: var(--navy-dark); }
.stat-roas { grid-column: 1 / -1; border: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 16px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.roas-parte { min-width: 0; }
.roas-parte + .roas-parte { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 16px; }
.stat-roas .stat-label { color: var(--gold); }
.stat-roas .stat-value { color: #fff; font-size: 34px; line-height: 1.1; }
.stat-roas .stat-sub { color: #c9c9c9; }
@media (max-width: 640px) { .stat-roas .stat-value { font-size: 22px; } .stat-roas { gap: 12px; padding: 14px; } .roas-parte + .roas-parte { padding-left: 12px; } }

/* Graficos mes a mes (17/11/2026) */
.chart-baixo { height: 220px; }
.comparacao { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; }
.comparacao b { font-size: 18px; color: var(--navy-dark); }
.delta { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--grid); color: var(--text); }
.delta-bom { background: var(--ok-bg); color: var(--ok); }
.delta-ruim { background: var(--danger-bg); color: var(--danger); }
.d-block { display: block; }
.plat-logo-sm { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* --- Lojao Paraiba ------------------------------------------------------------- */
.brand img.logo-redondo { height: 34px; width: 34px; border-radius: 50%; }
.selo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.selo form { margin: 0; }
.selo .velho { color: var(--danger); font-weight: 600; }
.page-head-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.stat-formula { font-size: 12px; color: var(--muted); }
.stat-comp { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-comp b { color: var(--text); font-weight: 600; }
.stat-nota { font-size: 12px; color: var(--muted); font-style: italic; }
.bloco-titulo { margin: 22px 0 10px; font-size: 17px; }
.bloco-titulo small { font-weight: 400; color: var(--muted); font-size: 13px; }
.ciclo { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #000; font-size: 12px; font-weight: 700; }
.funil-etapas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.funil-etapas .stat-value { font-size: 26px; }
.aviso-teste { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
td .inline-form input[type="text"] { width: 110px; }
td .inline-form input[name="obs"], td .inline-form input[name="motivo"] { width: 170px; }
tr.pendente td { background: #fffbe0; }
.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .page-head-acoes { align-items: flex-start; }
  .stat-comp { white-space: normal; }
  .seg button { padding: 0 10px; letter-spacing: 0; white-space: nowrap; }
}

/* --- Visual 2.0 (24/11/2026): hierarquia, banda escura, funil, metricas agrupadas --- */
:root { --sombra: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 20px rgba(20, 20, 20, .05); --radius: 14px; }
body { -webkit-font-smoothing: antialiased; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.01em; }
.card, .stat { border-color: var(--border); box-shadow: var(--sombra); }
.card { padding: 20px 22px; }

/* topo */
.topbar { padding: 10px 24px; border-bottom-width: 2px; }
.brand span { font-weight: 600; letter-spacing: .02em; }
.topbar nav a { color: #bdbdb6; font-weight: 500; }
.topbar nav a:hover { background: #262626; }
.topbar nav a.ativo { background: rgba(254, 214, 5, .12); color: var(--gold); box-shadow: none; border-radius: 8px; }
@media (max-width: 900px) { .topbar nav a.ativo { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 8px 8px 0; } }

/* cabecalho de pagina */
.page-head { align-items: center; margin-bottom: 18px; }
.page-head .muted.small { margin-top: 6px; }
.ciclo { background: #141414; color: var(--gold); padding: 4px 11px; }
.ciclo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.selo { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 4px 4px 14px; box-shadow: var(--sombra); }
.selo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 3px rgba(47, 179, 109, .18); }
.selo .btn { border-radius: 999px; background: #141414; color: #fff; border: 0; }
.selo .btn:hover { background: #000; }

/* seletor de periodo sem caixa em volta */
.periodo { background: none; border: 0; padding: 0; margin-bottom: 18px; }
.seg { height: 38px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); padding: 3px; border-color: var(--border); }
.seg button { border-radius: 999px; background: none; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 0 16px; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: #141414; color: var(--gold); }
.aviso-teste { display: flex; gap: 10px; align-items: center; background: #fff8d6; border: 1px solid #f3e39a; color: #6b5300; border-radius: 10px; }
.aviso-teste::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #000; font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* titulo de bloco */
.bloco-titulo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 30px 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bloco-titulo::before { content: ""; align-self: center; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 0 2px #141414 inset; }
.bloco-titulo small { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* card de metrica */
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.stat-label { font-size: 12.5px; font-weight: 600; color: #3d3d39; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0; }
.stat-formula { font-size: 12px; color: #8a8981; }
.stat-comp { margin-top: 6px; color: var(--muted); }
.stat-comp b { display: inline-block; padding: 1px 7px; margin-right: 3px; border-radius: 999px; background: #f0efe8; font-weight: 700; color: var(--text); }
.stat-nota { font-style: normal; color: #8a8981; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--border); }

/* banda escura: os 4 numeros principais */
.banda {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: #2b2b2b; border-radius: 18px; margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
@media (min-width: 1000px) { .banda { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.banda .stat {
  border: 0; border-radius: 0; box-shadow: none; padding: 22px 24px; background: #141414;
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(254, 214, 5, .10) 0%, rgba(254, 214, 5, 0) 55%);
}
.banda .stat-label { color: var(--gold); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.banda .stat-value { color: #fff; font-size: 36px; margin: 6px 0 4px; }
.banda .stat-formula { color: #8f8f88; }
.banda .stat-comp { color: #a9a9a2; }
.banda .stat-comp b { background: rgba(255, 255, 255, .1); color: #fff; }
.banda .stat-nota { color: #a9a9a2; border-top-color: rgba(255, 255, 255, .12); }

/* metricas agrupadas num card so, com divisoria fina */
.grupo { padding: 0; overflow: hidden; }
.grupo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.grupo-head h2 { font-size: 15px; margin: 0; }
.grupo-head .tag { font-size: 11.5px; font-weight: 600; color: var(--muted); background: #f4f3ee; border-radius: 999px; padding: 3px 10px; }
.grupo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
@media (min-width: 1000px) { .grupo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grupo-grid .stat { border: 0; border-radius: 0; box-shadow: none; }
.grupo-grid .stat-value { font-size: 24px; }
.lado-a-lado { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.lado-a-lado > .card { margin-bottom: 0; }
@media (min-width: 1000px) { .lado-a-lado { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

/* funil do anuncio a venda */
.fx { display: flex; align-items: stretch; }
.fx-etapa { flex: 1 1 0; min-width: 0; padding: 14px 16px; border-radius: 12px; background: #f7f6f1; }
.fx-n { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.fx-l { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fx-fim { background: var(--gold); }
.fx-fim .fx-l { color: #3a3200; }
.fx-taxa { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0 6px; }
.fx-taxa::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 2px dotted #cfcdc3; }
.fx-taxa b, .fx-taxa span { position: relative; background: var(--card); padding: 0 4px; }
.fx-taxa b { font-size: 14px; }
.fx-taxa span { font-size: 11px; color: #8a8981; line-height: 1.2; }
@media (max-width: 899px) {
  .fx { flex-direction: column; }
  .fx-etapa { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 14px; }
  .fx-etapa .fx-n { order: 2; font-size: 22px; }
  .fx-taxa { flex: none; flex-direction: row; gap: 6px; padding: 6px 0; }
  .fx-taxa::before { display: none; }
  .fx-taxa b::before { content: "↓ "; color: #8a8981; }
}

/* hoje */
.hoje { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; overflow: hidden; }
@media (min-width: 900px) { .hoje { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hoje .stat { border: 0; border-radius: 0; box-shadow: none; }
@media (min-width: 900px) { .hoje .stat + .stat { border-left: 1px solid var(--border); } }
@media (max-width: 899px) { .hoje .stat:nth-child(n+3) { border-top: 1px solid var(--border); } .hoje .stat:nth-child(even) { border-left: 1px solid var(--border); } }
.ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #1d7a46; text-transform: uppercase; letter-spacing: .06em; }
.ao-vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 179, 109, .5); } 50% { box-shadow: 0 0 0 5px rgba(47, 179, 109, 0); } }

/* grafico */
.chart-wrap { height: 300px; }
.legenda { font-weight: 500; }
.legenda i { width: 12px; height: 12px; border-radius: 4px; }
details.tabela { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
details.tabela summary { font-weight: 600; }

/* tabelas */
table.t { font-size: 13.5px; }
table.t thead th { background: #faf9f5; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #77766e; padding: 10px; border-bottom: 1px solid var(--border); }
table.t thead th:first-child { border-top-left-radius: 8px; }
table.t thead th:last-child { border-top-right-radius: 8px; }
table.t td { padding: 12px 10px; }
table.t tbody tr:hover td { background: #fcfbf6; }
table.t tfoot td { background: #141414; color: #fff; border-top: 0; padding: 12px 10px; }
table.t tfoot td:first-child { border-radius: 0 0 0 8px; color: var(--gold); }
table.t tfoot td:last-child { border-radius: 0 0 8px 0; }
.nome-anuncio { font-weight: 650; }

/* barras horizontais (funil e motivos) */
.barras { display: flex; flex-direction: column; gap: 10px; }
.barra-linha { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.barra-nome { font-size: 13.5px; font-weight: 600; }
.barra-nome small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.barra-trilho { height: 28px; border-radius: 8px; background: #f4f3ee; overflow: hidden; }
.barra-trilho span { display: block; height: 100%; min-width: 4px; border-radius: 8px; background: #f2c400; }
.barra-trilho.escura span { background: #141414; }
.barra-trilho.clara span { background: #cfcdc3; }
.barra-n { font-size: 18px; font-weight: 800; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.barras-largas .barra-linha { grid-template-columns: minmax(160px, 420px) minmax(0, 1fr) auto; }
.barras-divisor { border-top: 1px dashed var(--border); margin: 6px 0 2px; padding-top: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a8981; }
@media (max-width: 640px) { .barra-linha { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; } .barra-trilho { grid-column: 1 / -1; order: 3; height: 16px; } }

/* saude: contador com estado */
.st-alerta { border-top: 3px solid #e0a100; }
.st-ok { border-top: 3px solid #2fb36d; }
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-top: 6px; }
.estado::before { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; }
.estado-alerta { color: #8a5a00; }
.estado-alerta::before { content: "!"; background: #e0a100; }
.estado-ok { color: #1d7a46; }
.estado-ok::before { content: "✓"; background: #2fb36d; }

/* login */
.login-wrap { background: #141414 radial-gradient(80% 60% at 50% 0%, rgba(254, 214, 5, .14) 0%, rgba(254, 214, 5, 0) 60%); }
.login-card { border-radius: 20px; }
.login-top { background: #0b0b0b; border-bottom-width: 2px; }
.login-body .btn-primary { background: var(--gold); color: #000; }
.login-body .btn-primary:hover { background: #ffe14d; }

@media (max-width: 480px) {
  .banda .stat { padding: 16px; }
  .banda .stat-value { font-size: 24px; }
  .stat-value, .grupo-grid .stat-value { font-size: 21px; }
  h1 { font-size: 22px; }
  .card { padding: 16px; }
}
@media (max-width: 640px) { .barras-largas .barra-linha { grid-template-columns: minmax(0, 1fr) auto; } }
.barras-divisor-topo { border-top: 0; margin: 0; padding-top: 0; }
table.t th.col-anuncio { min-width: 260px; }

/* Resumo e card Meta no padrao do painel da Inova (24/11/2026, pedido do Kallebe) */
@media (min-width: 1280px) { .stat-grid-resumo { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat-grid-resumo { margin-bottom: 22px; }
.stat-hero { border-top: 3px solid #141414; }
.stat-hero .stat-value { font-size: 25px; }
.stat-destaque { border-top-color: var(--gold); background: #fffbe0; }
.linhas-cards .card-fill > .card-head { border-top: 4px solid #141414; background: #faf9f5; }
.meta-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; align-items: start; }
@media (min-width: 1100px) { .meta-corpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .meta-corpo .ads-metricas { margin-top: 16px; } }
.stat-inner, .stat-res, .stat-roas { box-shadow: none; }
.stat-inner .stat-value, .stat-res .stat-value { font-size: 22px; }
.stat-roas .stat-value { font-size: 30px; }
@media (max-width: 480px) { .stat-hero .stat-value, .stat-inner .stat-value, .stat-res .stat-value { font-size: 19px; } .stat-roas .stat-value { font-size: 20px; } }
.stat-comp { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
.stat-comp b { white-space: nowrap; }
