/* Prumo Casa — celular primeiro, letra grande, botões grandes */
:root {
  --bg: #f5f1ea;
  --card: #ffffff;
  --ink: #1f2a2a;
  --muted: #5d6763;            /* 5,9:1 no branco: legível ao sol */
  --line: #e7e1d6;
  --brand: #0f6b5f;            /* verde escuro da marca: cartão destaque e botão principal */
  --brand-2: #0c5a50;
  --brand-soft: #e3f1ee;
  --brand-line: #8fbfb6;       /* contorno do botão secundário */

  /* cores com sentido fixo (versão 12) */
  --pos: #157a3c;              /* verde: dentro do limite, entrada, positivo (texto 5,6:1) */
  --pos-fill: #1f9d55;         /* verde das barras */
  --pos-soft: #e3f5ea;
  --pos-on-dark: #a7f3c4;      /* verde sobre o cartão destaque */
  --neg: #c0392b;              /* vermelho: SÓ estourou e atrasada (texto 5,4:1) */
  --neg-soft: #fbe7e6;
  --att: #d98e04;              /* âmbar: atenção (faixa e barras) */
  --att-strong: #9a5b00;       /* âmbar escuro para número/selo com texto branco (5:1) */
  --att-ink: #6e4300;          /* texto sobre o fundo âmbar claro (8:1) */
  --att-soft: #fff6e0;
  --jess: #6a4c9c;             /* lilás discreto: coisas da Jéssica (texto 6,4:1) */
  --jess-soft: #f4effb;
  --jess-line: #cbb9e6;
  --sens: #4f5753;             /* ações sensíveis: contorno cinza */
  --sens-line: #b9b3a8;

  /* nomes antigos, apontando para o sentido novo */
  --ok: var(--pos);
  --ok-soft: var(--pos-soft);
  --bad: var(--neg);
  --bad-soft: var(--neg-soft);
  --warn: var(--att-strong);
  --warn-soft: var(--att-soft);

  --radius: 18px;
  --gap: 16px;                 /* espaço entre os cartões */
  --shadow: 0 1px 2px rgba(31, 42, 42, .06), 0 4px 14px rgba(31, 42, 42, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.55rem; margin: .2rem 0 .8rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; color: var(--ink); }
h3 { font-size: 1rem; margin: .6rem 0 .4rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wide .wrap { max-width: 1100px; }

/* topo */
.top {
  position: sticky; top: 0; z-index: 10; background: rgba(245, 241, 234, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--ink); }

/* navegação de baixo */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .wrap { display: grid; grid-template-columns: repeat(5, 1fr); height: 72px; padding: 0 4px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .78rem; position: relative; }
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--brand); font-weight: 600; }
.tab .badge { position: absolute; top: 8px; left: 52%; background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.tab.plus .bubble { width: 46px; height: 46px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(15, 107, 95, .35); }
.tab.plus svg { width: 26px; height: 26px; }

/* cartões */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 12px 0; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .card { margin: 0; }
.kpi-label { font-size: .85rem; color: var(--muted); }
.kpi { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.kpi.neg { color: var(--bad); }
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.hero .kpi-label, .hero small { color: rgba(255, 255, 255, .85); }
.hero a { color: #fff; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: .85rem; color: var(--muted); }
.val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.val.in { color: var(--ok); }
.val.out { color: var(--ink); }

/* barras de limite */
.bar { height: 10px; background: #eee9df; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.bar.over > span { background: var(--bad); }
.limit-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.limit-row:last-child { border-bottom: 0; }
.limit-row .top-line { display: flex; justify-content: space-between; font-size: .95rem; }

/* etiquetas */
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.grey { background: #eee; color: #666; }

/* avisos */
.alert { border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.alert.erro { background: var(--bad-soft); color: #8e2b28; }
.alert.ok { background: var(--ok-soft); color: #14653a; }
.alert.warn { background: var(--warn-soft); color: #7a5600; }

/* botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.good { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btns .btn { flex: 1 1 auto; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
input, select, textarea {
  width: 100%; font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
input.money { font-size: 2rem; font-weight: 700; text-align: center; padding: 14px; }
input.inline { width: 110px; padding: 8px 10px; font-size: .95rem; text-align: right; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #ece6da; border-radius: 14px; padding: 4px; gap: 4px; }
.seg input { display: none; }
.seg label { margin: 0; text-align: center; padding: 10px; border-radius: 10px; font-size: 1rem; color: var(--ink); cursor: pointer; }
.seg input:checked + label { background: #fff; box-shadow: var(--shadow); color: var(--brand); }
.inline-form { display: inline; }

/* confirmar */
.tx-card .amount { font-size: 1.6rem; font-weight: 800; }
.tx-card .who { font-size: 1.1rem; font-weight: 700; }
.tx-card .meta { font-size: .85rem; color: var(--muted); }
.tx-card > .btns:last-child { display: grid; grid-template-columns: 1fr 1fr; }
.hidden { display: none !important; }

/* tabelas (menu do Daniel) */
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
table.t th, table.t td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: #faf8f4; position: sticky; top: 56px; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.scroll table.t th { top: 0; }   /* dentro de .scroll o cabeçalho gruda no topo da própria tabela */
.menu-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a span.sub { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }

/* acerto */
.big-phrase { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: .98rem; }
.sum-line.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; }
.toggle-me { border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 92px; min-height: 40px; }
.toggle-me.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.share-box input { font-size: .85rem; }
.stack-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.row .title { word-break: break-word; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 420px; }

@media (min-width: 760px) {
  body { font-size: 17px; }
  .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media print {
  .tabbar, .top, .btns, form, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* versão 3: gráficos, DRE e previsão */
.subnav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #ece6da; border-radius: 14px; padding: 4px; margin: 10px 0 4px; }
.subnav a { text-align: center; padding: 9px 4px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.subnav a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box.tall { height: 320px; }
.chart-box.small { height: 200px; }
.legend-list { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.legend-list i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cmp-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: block; color: inherit; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row .top-line { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.cmp-bar { position: relative; height: 12px; background: #eee9df; border-radius: 99px; margin-top: 6px; overflow: visible; }
.cmp-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: #4f9d8f; border-radius: 99px; }
.cmp-bar .fill.over { background: var(--bad); }
.cmp-bar .prov { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #b9dcd5, #b9dcd5 4px, #d7ece8 4px, #d7ece8 8px); border-radius: 0 99px 99px 0; }
.cmp-bar .avg { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; }
.cmp-bar .lim { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--warn); }
.prov-note { display: inline-block; font-size: .8rem; color: var(--muted); background: #f0ece4; border-radius: 999px; padding: 2px 10px; }
.sentence { font-size: 1.05rem; line-height: 1.4; }
.pill-row { display: flex; gap: 6px; margin: 6px 0 10px; }
.pill-row a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--ink); background: #fff; }
.pill-row a.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.dre-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table.dre { border-collapse: collapse; font-size: .8rem; min-width: 1100px; width: 100%; }
table.dre th, table.dre td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.dre th:first-child, table.dre td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
table.dre th { background: #faf8f4; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
table.dre tr.grp td { background: #f3efe7; font-weight: 800; color: var(--brand); text-align: left; }
table.dre tr.grp td:first-child { background: #f3efe7; }
table.dre tr.sub td { font-weight: 700; border-bottom: 2px solid #d9d2c4; }
table.dre tr.key td { font-weight: 800; font-size: .86rem; }
table.dre td.fut, table.dre th.fut { color: #9aa29f; font-style: italic; background: #fbfaf7; }
table.dre td.neg { color: #b23b37; }
table.dre td.fut.neg { color: #d7a09d; }
.mini-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-kpis .card { margin: 0; padding: 12px; }
.cal-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cal-row:last-child { border-bottom: 0; }
.cal-day { width: 46px; text-align: center; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 4px 0; font-weight: 800; line-height: 1.1; flex: 0 0 auto; }
.cal-day small { display: block; font-weight: 600; font-size: .7rem; color: var(--brand); }
.provisional { color: #9aa29f !important; }
.tab { font-size: .72rem; }
.cal-row .grow { flex: 1; min-width: 0; }

/* ===================== versão 4 ===================== */
.mais-btn { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.mais-btn svg { width: 22px; height: 22px; }
.mais-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border-radius: 999px; font-size: .68rem; padding: 1px 6px; font-weight: 800; }
.tab .badge { left: 56%; }
.mes-bar { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 16px; padding: 6px; margin: 12px 0 6px; box-shadow: var(--shadow); }
.mes-bar span { font-weight: 800; font-size: 1.05rem; }
.mes-bar a { width: 44px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.cic { display: inline-grid; place-items: center; border-radius: 12px; flex: 0 0 auto; }
.prog { position: relative; height: 10px; background: #eee9df; border-radius: 99px; margin-top: 6px; }
.prog .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ok); max-width: 100%; }
.prog.perto .fill { background: #e0a526; }
.prog.passou .fill { background: var(--bad); }
.prog .hoje { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; opacity: .55; }
.prog-txt { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.prog-txt .passou { color: var(--bad); font-weight: 700; }
.hero-prog { background: rgba(255,255,255,.25); margin-top: 10px; }
.hero-prog.ok .fill, .hero-prog .fill { background: #fff; }
.hero-prog.perto .fill { background: #ffd77a; }
.hero-prog.passou .fill { background: #ffb3ad; }
.hero-prog .hoje { background: #fff; opacity: .9; }
.totais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 14px; }
.totais .val { font-size: 1rem; }
.val.neg, .kpi.neg { color: var(--bad); }
.busca input { border-radius: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: .88rem; color: var(--ink); white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chip-n { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 6px; font-size: .72rem; }
.chip-sel { flex: 0 0 auto; margin: 0; }
.chip-sel select { width: auto; border-radius: 999px; padding: 7px 30px 7px 13px; font-size: .88rem; background-color: #fff; }
.chip-sel select.on { border-color: var(--brand); color: var(--brand); font-weight: 700; background-color: var(--brand-soft); }
.dia-head { display: flex; justify-content: space-between; margin: 16px 6px 4px; font-size: .8rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.card.lista { margin-top: 0; padding-top: 4px; padding-bottom: 4px; }
.row.tx { color: inherit; }
.row.tx .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.tx .sub .tag { margin-left: 4px; }
.row.tx .obs { font-style: italic; }
.row.tx.transf { opacity: .6; }
.cmp-tag { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.cmp-tag.up { color: var(--bad); } .cmp-tag.down { color: var(--ok); } .cmp-tag.eq { color: var(--muted); }
/* lançar rápido */
.quick .valor-box { text-align: center; }
.quick input.money { font-size: 2.4rem; border: 0; background: transparent; padding: 4px; }
.quick input.money:focus { outline: none; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.cat-grid input { display: none; }
.cat-grid label { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px 8px; text-align: center; color: var(--ink); font-weight: 600; font-size: .8rem; cursor: pointer; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cat-grid input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pick::-webkit-scrollbar { display: none; }
.pick input { display: none; }
.pick label { margin: 0; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: .88rem; color: var(--ink); background: #fff; cursor: pointer; font-weight: 600; }
.pick input:checked + label { background: var(--brand); color: #fff; border-color: var(--brand); }
details.mais-detalhes summary { cursor: pointer; color: var(--brand); font-weight: 700; padding: 10px 0 4px; }
.tx-card .who { display: flex; align-items: center; gap: 10px; }
.cmp-bar .fill { background: var(--ok); }
.cmp-bar .fill.near { background: #e0a526; }
.row.tx { align-items: flex-start; }
.row.tx .cic { margin-top: 2px; }
.tline { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tline .title { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.totais .val { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.totais > div { min-width: 0; }
.row.tx .title { font-size: .98rem; }
.cat-grid label { word-break: break-word; hyphens: auto; }
.parou-box { margin: -4px 0 6px 44px; }
.parou-box summary { list-style: none; cursor: pointer; }
.parou-box summary::-webkit-details-marker { display: none; }
details.ver-todas summary { list-style: none; margin-top: 8px; }
details.ver-todas summary::-webkit-details-marker { display: none; }
details.ver-todas[open] summary { display: none; }
.mes-bar .agora { width: auto; padding: 0 12px; font-size: .85rem; font-weight: 800; }
.mes-bar .setas { display: flex; gap: 6px; }
/* ===================== versão 6 ===================== */
.busca-linha { display: flex; gap: 8px; align-items: stretch; }
.busca-linha input { flex: 1; min-width: 0; border-radius: 14px; }
.filtros-btn { flex: 0 0 auto; min-height: 0; border-radius: 14px; }
.painel-filtros { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 10px; }
.painel-filtros.hidden { display: none !important; }
.f-grupo { margin: 0; border: 0; padding: 0; font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.f-grupo legend { padding: 0; margin-bottom: 4px; }
.f-grupo select { font-size: .95rem; padding: 9px 32px 9px 12px; }
.caixinhas { display: flex; flex-wrap: wrap; gap: 6px; }
.caixa { flex-direction: row !important; align-items: center; gap: 6px !important; margin: 0; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; }
.caixa input { width: auto; margin: 0; accent-color: var(--brand); }
.f-confirmar { align-self: flex-start; }
.f-acoes { flex-direction: row; gap: 8px; }
.f-acoes .btn { min-height: 42px; }
@media (min-width: 760px) {
  .filtros-btn { display: none; }
  .painel-filtros { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .f-contas { flex: 1 1 100%; }
  .painel-filtros > label.f-grupo { flex: 1 1 200px; }
  .f-confirmar { flex: 0 0 auto !important; align-self: flex-end; }
  .f-acoes { flex: 0 0 auto; margin-left: auto; }
}
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.comp-sug .alert { font-size: .92rem; }
.conta-link { color: inherit; display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.dia-saldo { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.wide-ok .wrap { max-width: 980px; }
input[type=checkbox], input[type=radio] { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
@media (max-width: 420px) { .totais .val { font-size: .84rem; } .totais { padding: 10px 12px; } }
/* ===================== versão 7 ===================== */
.sel-links { font-weight: 500; font-size: .82rem; margin-left: 6px; }
.sel-links a { color: var(--brand); }
.card.anot { border-left: 4px solid #e0a526; }
/* ===================== versão 8 ===================== */
.lista-export { margin: 0 0 8px; padding-left: 20px; }
.lista-export li { margin: 3px 0; }
.alert.warn { background: var(--warn-soft); color: #7a5600; }
/* ===================== versão 10: menu único e botão Claude ===================== */
.top-btns { display: flex; gap: 8px; align-items: center; }
.claude-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 13px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 2px 8px rgba(15,107,95,.25); }
.claude-btn.on { background: var(--brand-2); }
.mais-btn.on { border-color: var(--brand); color: var(--brand); }
.menu-grupos section h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 4px 6px; }
.menu-card { padding: 4px 0; margin: 0; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 52px; }
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { color: var(--brand); flex: 0 0 auto; }
.menu-nome { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-extra { color: var(--muted); font-size: .88rem; background: #f0ece4; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.menu-seta { color: var(--muted); font-size: 1.2rem; }
@media (min-width: 760px) {
  .menu-grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
}
/* ===================== versão 12: hierarquia visual ===================== */
/* Três níveis de cartão:
   destaque  = verde escuro da marca, texto branco (um por tela)
   atenção   = âmbar bem claro com faixa âmbar de 4px à esquerda
   informação = branco (.card normal)                                  */
.card { margin: var(--gap) 0; }
.grid2, .mini-kpis { gap: 14px; }
.card.hero, .card.destaque { background: linear-gradient(160deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 2px 4px rgba(15, 107, 95, .18), 0 8px 22px rgba(15, 107, 95, .18); }
.card.hero .kpi-label, .card.hero small, .card.hero .muted,
.card.destaque .kpi-label, .card.destaque small, .card.destaque .muted { color: rgba(255, 255, 255, .9); }
.card.hero a, .card.destaque a { color: #fff; }
.card.destaque .val, .card.hero .val { color: #fff; }
.card.destaque .val.in, .card.hero .val.in { color: var(--pos-on-dark); }
.card.destaque .provisional, .card.hero .provisional { color: rgba(255, 255, 255, .8) !important; }
.card.atencao { background: var(--att-soft); border-left: 4px solid var(--att); box-shadow: 0 1px 2px rgba(110, 67, 0, .06); }
.card.atencao .row, .card.atencao .limit-row { border-bottom-color: #f0dfb5; }
.card.atencao h3, .card.atencao .kpi-label { color: var(--att-ink); }
.card.atencao .kpi-label { font-weight: 700; }

/* avisos com o mesmo sentido: âmbar = atenção (vermelho fica só para estourou/atrasada) */
.alert.warn, .alert.erro { background: var(--att-soft); color: var(--att-ink); border-left: 4px solid var(--att); border-radius: 12px; }
.alert.ok { background: var(--pos-soft); color: #0f5a2c; }
.att-txt { color: var(--att-ink); font-weight: 700; }

/* números: verde = entrada/positivo; negativo comum fica na cor do texto (o sinal já diz) */
.val.in { color: var(--pos); }
.val.neg, .kpi.neg { color: var(--ink); }
.kpi.neg.att-txt, .val.att-txt { color: var(--att-ink); }
.cmp-tag.up { color: var(--att-ink); }
.cmp-tag.down { color: var(--pos); }
table.dre td.neg { color: var(--ink); }
table.dre td.fut, table.dre th.fut { color: #737b78; }
table.dre td.fut.neg { color: #737b78; }
.provisional { color: #6f7774 !important; }
.bar > span, .prog .fill, .cmp-bar .fill { background: var(--pos-fill); }
.prog.perto .fill, .cmp-bar .fill.near { background: var(--att); }
.bar.over > span, .prog.passou .fill, .cmp-bar .fill.over { background: var(--neg); }
.prog-txt .passou { color: var(--neg); }

/* contagens (a confirmar, filtros): âmbar escuro, não vermelho */
.tab .badge, .mais-btn .badge, .chip-n { background: var(--att-strong); color: #fff; }

/* coisas da Jéssica: lilás discreto */
.jess, .val.jess { color: var(--jess); }
.jess-label { color: var(--jess) !important; font-weight: 700; }
.tag.jess { background: var(--jess-soft); color: var(--jess); }
.row.perdao { background: var(--jess-soft); border-radius: 12px; padding: 10px 10px; margin: 6px -6px; border-bottom: 0; }
label.jess { color: var(--jess); }

/* botões: principal = verde cheio; secundário = só contorno; sensível = contorno cinza ou lilás, menor, com ícone */
.btn { background: transparent; border: 1.5px solid var(--brand-line); color: var(--brand); }
.card .btn:not(.primary):not(.good) { background: transparent; }
.btn.primary, .btn.good { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:active, .btn.good:active { background: var(--brand-2); }
.btn.danger, .btn.sensivel { background: transparent; border: 1.5px solid var(--sens-line); color: var(--sens);
  min-height: 40px; padding: 6px 14px; font-size: .88rem; font-weight: 600; border-radius: 12px; gap: 6px; }
.btn.small.danger, .btn.small.sensivel { min-height: 34px; padding: 5px 11px; font-size: .82rem; border-radius: 10px; }
.btn.sensivel.jess { border-color: var(--jess-line); color: var(--jess); }
.btn.danger svg, .btn.sensivel svg { flex: 0 0 auto; }
.btns .btn.danger, .btns .btn.sensivel { flex: 0 0 auto; }
.acoes-sensiveis { display: flex; justify-content: flex-end; gap: 8px; margin: 6px 0 4px; }
.mes-bar a { background: var(--brand-soft); color: var(--brand); }
.claude-btn { background: var(--brand); }
/* ===================== versão 13: ajustes de cor ===================== */
/* Início: quando os limites estouram, o cartão principal deixa de ser verde (cartão claro, valor e barra em vermelho) */
.card.estourou { background: var(--card); color: var(--ink); border-left: 4px solid var(--neg); }
.card.estourou .kpi-label { color: var(--muted); }
.card.estourou small { color: var(--muted); }
.kpi.neg-forte { color: var(--neg); }
.card.estourou .prog { background: #eee9df; }
/* Contas do mês: cartão branco; só a linha atrasada leva a marca vermelha */
.row.atrasada { box-shadow: inset 3px 0 0 var(--neg); padding-left: 10px; margin-left: -10px; }
