/* Financeiro Click Grow — identidade 3.0: índigo noite, branco e cinza, fonte Jost.
   Carrega depois de base.css (componentes herdados do CRM da Mowa) e só troca cores e acrescenta o que é do financeiro.
   Verde e vermelho aparecem apenas com significado: entrou e saiu. */
:root {
  --ink: #14093F;
  --graphite: #14093F;
  --graphite-2: #221556;
  --graphite-3: #3A2E70;
  --paper: #F5F5F8;
  --paper-2: #ECECF2;
  --surface: #ffffff;
  --line: #E3E4EC;
  --line-2: #D3D5E0;
  --text: #1D1638;
  --muted: #6E7183;
  --muted-2: #A3A7B5;
  --brass: #3A2E70;
  --brass-2: #221556;
  --brass-soft: #ECEAF5;
  --sage: #24815F;
  --sage-soft: #E4F2EC;
  --clay: #B4483F;
  --clay-soft: #F8E9E7;
  --steel: #3A2E70;
  --steel-soft: #ECEAF5;
  --amber: #A9741A;
  --amber-soft: #FAF0DB;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Jost', system-ui, sans-serif;
}
body { font-size: 14.5px; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: 0; }
::selection { background: #DAD6EE; }

.side { background-image: none; background: var(--graphite); }
.side-logo img { width: 176px; }
.side-logo small { color: var(--muted-2); font-weight: 500; letter-spacing: .26em; }
.side .grupo { color: #7F7AA6; font-weight: 500; }
.side a.item { color: #C9C6E0; font-size: 14.5px; font-weight: 400; }
.side a.item.on { background: var(--graphite-2); box-shadow: inset 0 0 0 1px var(--graphite-3); }
.side a.item.on::before { background: #fff; }
.side .badge { background: #fff; color: var(--ink); }
.cg { color: #7F7AA6; }
.top { background: rgba(245, 245, 248, .9); }
.top h1 { font-weight: 400; font-size: 21px; }
.tabela tbody tr:hover { background: #F8F8FB; }
.tabela th { font-weight: 500; }
.modal-p { background: #FAFAFC; }
.btn { font-weight: 500; }
.btn.pri:hover { background: var(--graphite-2); }
.rotulo { font-weight: 500; }
.kpi .v { font-weight: 400; font-size: 29px; }
.kpi.destaque .rotulo { color: var(--muted-2); }
.kpi.destaque .d { color: #B9B6D3; }
.mini-kpi .v { font-weight: 400; }
.login-arte { background: var(--graphite); }
.login-arte::after { border-color: rgba(163, 167, 181, .28); }
.login-arte img { width: 250px; }
.login-arte blockquote { font-weight: 300; color: var(--muted-2); font-size: 34px; }
.login-arte blockquote span { color: #fff; }
.login-form h1 { font-weight: 400; }
.campo.check input, .tabela input[type=checkbox] { accent-color: var(--graphite); }

/* ── mês e país (barra de cima) ───────────────────────────────────────────── */
.mes { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); height: 36px; }
.mes button { border: 0; background: none; width: 32px; height: 34px; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 8px; }
.mes button:hover { color: var(--ink); background: var(--paper); }
.mes b { min-width: 118px; text-align: center; font-weight: 500; color: var(--ink); text-transform: capitalize; }
.grupo-btn button { font-weight: 400; }

/* ── valores ──────────────────────────────────────────────────────────────── */
.v-e { color: var(--sage); }
.v-s { color: var(--clay); }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela td.num b { font-weight: 500; }
.usd { font-size: 11.5px; color: var(--muted); display: block; }
.chip.prev { background: var(--paper-2); color: var(--muted); }
.chip.real { background: var(--sage-soft); color: var(--sage); }
.chip.atraso { background: var(--clay-soft); color: var(--clay); }
.chip.conf { background: var(--amber-soft); color: var(--amber); }
.chip.br, .chip.us { background: var(--brass-soft); color: var(--graphite-3); }
.tabela tr.cancel td { opacity: .45; text-decoration: line-through; }
.tabela tfoot td { padding: 12px 14px; border-top: 1px solid var(--line-2); background: #FAFAFC; font-weight: 500; }
.acoes { display: flex; gap: 4px; justify-content: flex-end; opacity: .35; transition: opacity .12s; }
tr:hover .acoes { opacity: 1; }
.tabela tbody tr.semclique { cursor: default; }

/* ── painel ───────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi .v.v-e { color: var(--sage); } .kpi .v.v-s { color: var(--clay); }
.kpi .linha2 { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.kpi.destaque .linha2 { border-top-color: var(--graphite-3); color: #B9B6D3; }
.kpi .linha2 b { font-weight: 500; color: var(--text); }
.kpi.destaque .linha2 b { color: #fff; }
.paises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pais-card { padding: 18px 20px; }
.pais-card h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.pais-card table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.pais-card td { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pais-card tr:last-child td { border-bottom: 0; font-weight: 500; }
.pais-card td:first-child { color: var(--muted); }
.barras { display: flex; flex-direction: column; gap: 10px; }
.barras .b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 13.5px; }
.barras .b .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barras .b .t { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; display: flex; }
.barras .b .t i { display: block; height: 100%; background: var(--graphite-3); }
.barras .b .t i.r { background: var(--sage); }
.barras .b .t i.s { background: var(--clay); opacity: .75; }
.aviso { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: #6D4A0C; font-size: 13.5px; }
.aviso.neutro { background: var(--brass-soft); color: var(--graphite-3); }
.aviso svg { flex: none; }
.aviso .esp { flex: 1; }
.lista-ab { display: flex; flex-direction: column; }
.lista-ab .it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lista-ab .it:last-child { border-bottom: 0; }
.lista-ab .dt { width: 54px; color: var(--muted); font-size: 12.5px; flex: none; }
.lista-ab .dt.atr { color: var(--clay); font-weight: 500; }
.lista-ab .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.graf .ent { fill: var(--sage); } .graf .ent.p { opacity: .32; }
.graf .sai { fill: var(--clay); } .graf .sai.p { opacity: .3; }
.graf .atual { fill: var(--paper-2); }

/* ── time ─────────────────────────────────────────────────────────────────── */
.time-area { font: 500 11px var(--brand); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.pessoa { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(110px, 1fr)) auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pessoa:last-child { border-bottom: 0; }
.pessoa .nm b { font-weight: 500; color: var(--ink); display: block; }
.pessoa .nm span { font-size: 12.5px; color: var(--muted); }
.pessoa .c small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.pessoa .c b { font-weight: 500; }
.pessoa.inativa { opacity: .5; }
.hist { margin-top: 6px; }
.hist .it { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hist .it:last-child { border-bottom: 0; }

/* ── extrato ──────────────────────────────────────────────────────────────── */
.solta { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 30px 24px; text-align: center; color: var(--muted); background: var(--surface); transition: border-color .15s, background .15s; }
.solta.sobre { border-color: var(--graphite-3); background: var(--brass-soft); }
.solta h3 { font-size: 16px; margin-bottom: 4px; }
.solta .row { justify-content: center; margin-top: 16px; }

/* ── contratos ────────────────────────────────────────────────────────────── */
.modelos-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.modelo-op { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--surface); text-align: left; }
.modelo-op b { display: block; font-weight: 500; color: var(--ink); }
.modelo-op span { font-size: 12.5px; color: var(--muted); }
.modelo-op.on { border-color: var(--graphite); box-shadow: 0 0 0 1px var(--graphite); background: var(--brass-soft); }
.previa { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px 40px; font: 13.5px/1.6 Georgia, 'Times New Roman', serif; color: #111; white-space: pre-wrap; max-height: 62vh; overflow-y: auto; }
.previa mark { background: #FFF0B3; padding: 0 2px; border-radius: 2px; }
.modal.xl { width: min(1040px, calc(100vw - 32px)); top: 4vh; max-height: 92vh; }
textarea.mono { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 52vh; }
.kanban { padding: 4px 0 24px; height: 100%; }
.content.full .kanban { padding: 20px 28px 24px; }
.cartao .area { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.coluna.alvo { border-color: var(--graphite-3); background: var(--brass-soft); }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pessoa { grid-template-columns: 1fr 1fr; } .modelos-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { display: none; } .paises, .g2, .g3 { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; } .login-arte { display: none; } }
