/* FINANCEIRO V2 — Joana Assessoria (16/11/2026, porte da Micarla c0096dc + fretes/API da giliane).
   Neutros vêm dos tokens da página (os mesmos do app.css: rosé + cobre no claro, ardósia no escuro).
   Cores das formas: Sicredi = VERDE do ícone do Sicredi (#62C632 nos dois temas, 19/11/2026; era o cobre da marca),
   Manual = azul, Crédito = âmbar, Fretes = azul-petróleo (era verde; mudou em 19/11/2026 pra não confundir com o Sicredi).
   Seleção (dia/mês) = --fill. A Joana só tem Sicredi. */
.fv2 {
  --fs: #62C632; --fm: #7db4e6; --fc: #e3c48d; --ff: #45C1C9; --fok: #4ade80; --fbad: #f87171;
  --fill: #DCBB9E; --fill-ink: #1C1517;
  --fgrid: rgba(148, 163, 184, .16); --fraised: rgba(220, 187, 158, .08); --ftip: #1e293b;
  --ftxt: #e2e8f0; --fmut: #94a3b8;
  padding: 20px 24px 64px; width: 100%; box-sizing: border-box; max-width: 1400px; margin: 0 auto;
  color: var(--ftxt); font-size: 14px; line-height: 1.5; font-family: var(--font-ui);
}
[data-theme="light"] .fv2 {
  --fs: #62C632; --fm: #2c5f86; --fc: #b8892f; --ff: #17767D; --fok: #0e662e; --fbad: #9d2e23;
  --fill: #8E5B40; --fill-ink: #FFFFFF;
  --fgrid: #E6D3D0; --fraised: rgba(176, 122, 91, .08); --ftip: #FFFBFA;
  --ftxt: #2A1F22; --fmut: #675054;
}
.fv2 [hidden] { display: none !important; }
.fv2 *, .fv2 *::before, .fv2 *::after { box-sizing: border-box; }
.fv2 .n { font-variant-numeric: tabular-nums; }
.fv2 button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.fv2 :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.fv2-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 18px; }
.fv2-bar h1 { font-size: 1.375rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.fv2-beta { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--accent); border: 1px solid currentColor; }
.fv2-bar p { color: var(--fmut); font-size: 0.8125rem; margin: 2px 0 0; max-width: 70ch; }

.fv2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.fv2-main, .fv2-rail { min-width: 0; display: grid; gap: 20px; align-content: start; }

/* gráfico do mês */
.fv2-mes { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 12px; }
.fv2-mes__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; margin-bottom: 14px; }
.fv2-mes h2 { font-size: 0.9375rem; font-weight: 800; margin: 0; }
.fv2-mes__res { color: var(--fmut); margin: 3px 0 0; font-size: 0.8125rem; }
.fv2-mes__res strong { color: var(--ftxt); font-weight: 700; }
.fv2-mes__ctl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fv2-leg { display: flex; gap: 14px; flex-wrap: wrap; }
.fv2-leg span { display: inline-flex; align-items: center; gap: 6px; color: var(--fmut); font-size: 0.8125rem; }
.fv2-sw { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; display: inline-block; }
.fv2-link { color: var(--fmut); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; }
.fv2-link:hover { color: var(--ftxt); }
.fv2-plot { position: relative; min-height: 200px; }
.fv2-plot svg { display: block; width: 100%; overflow: visible; }
.fv2-plot text { font-family: inherit; }
.fv2-col { cursor: pointer; outline: none; }
.fv2-col .segs { transition: opacity 140ms ease-out; }
.fv2-plot.hovering .fv2-col .segs { opacity: .38; }
.fv2-plot.hovering .fv2-col.hot .segs { opacity: 1; }
.fv2-col:focus-visible .hit { stroke: var(--accent); stroke-width: 1.5; }
.fv2-tip { position: absolute; top: 0; pointer-events: none; background: var(--ftip); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; min-width: 220px; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 0.8125rem; z-index: 3; }
.fv2-tip b { display: block; margin-bottom: 6px; font-weight: 800; }
.fv2-tip .r { display: flex; justify-content: space-between; gap: 18px; padding: 2px 0; color: var(--fmut); }
.fv2-tip .r span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.fv2-tip .r span:last-child { color: var(--ftxt); }
.fv2-tip .t { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 5px; font-weight: 700; }
.fv2-tip .pct { color: var(--fmut); font-size: 0.75rem; margin-top: 4px; }
.fv2-nota { color: var(--fmut); font-size: 0.75rem; margin: 8px 0 0; }
.fv2-tabmes { overflow-x: auto; }
.fv2-tabmes table { min-width: 560px; }
.fv2-tabmes tr.sel td { background: var(--fraised); font-weight: 700; }

/* abas com total */
.fv2-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(42, 7, 25, .06); }
.fv2 .fv2-tab { text-align: left; padding: 14px 16px 13px; display: grid; gap: 2px; border-right: 1px solid var(--border); border-bottom: 2px solid transparent; min-width: 0; transition: background-color 160ms ease-out; }
.fv2 .fv2-tab:last-child { border-right: 0; }
.fv2 .fv2-tab:hover { background: var(--fraised); }
.fv2 .fv2-tab[aria-selected="true"] { background: var(--fraised); border-bottom-color: var(--accent); }
.fv2-tab__nome { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fmut); font-size: 0.8125rem; }
.fv2 .fv2-tab[aria-selected="true"] .fv2-tab__nome { color: var(--ftxt); }
.fv2-tab__valor { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.fv2-tab__det { color: var(--fmut); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv2-busca { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 12px 12px 0 0; padding: 10px 16px; }
.fv2-busca input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--border); background: transparent; color: var(--ftxt); border-radius: 8px; padding: 7px 10px; font: inherit; }
.fv2-busca span { color: var(--fmut); font-size: 0.8125rem; }

/* extrato */
.fv2-extrato { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; overflow-x: auto; margin-top: -20px; }
.fv2 table { width: 100%; border-collapse: collapse; min-width: 700px; }
.fv2 th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--fmut); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fv2 td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fv2 .d { text-align: right; white-space: nowrap; }
.fv2 tr.op { transition: background-color 160ms ease-out; }
.fv2 tr.op:hover, .fv2 tr.op.aberta { background: var(--fraised); }
.fv2 tr.op.aberta td { border-bottom-color: transparent; }
.fv2-hora { color: var(--fmut); white-space: nowrap; }
.fv2-cli { font-weight: 700; }
.fv2-cli small { display: block; color: var(--fmut); font-weight: 400; font-size: 0.75rem; }
.fv2-enq { color: var(--fmut); font-size: 0.8125rem; max-width: 34ch; }
.fv2-enq b { color: var(--accent); font-weight: 700; }
.fv2-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fv2-pay img { height: 18px; width: auto; display: block; }
.fv2-pay img.l2 { height: 20px; }
.fv2-pay .v { color: var(--fmut); font-size: 0.75rem; }
.fv2-sec { color: var(--fmut); font-size: 0.75rem; }
.fv2-tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: var(--fbad); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.fv2-seta { color: var(--fmut); transition: transform 180ms ease-out; }
.fv2 tr.op[aria-expanded="true"] .fv2-seta { transform: rotate(90deg); color: var(--ftxt); }
.fv2 tr.det td { background: var(--fraised); padding: 0 16px 18px; }
/* corrente (portal da cliente) + comprovante, no fim de cada linha */
.fv2-acoes { display: inline-flex; gap: 6px; justify-content: flex-end; }
.fv2 .fv2-acao { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--fmut); background: transparent; transition: color 150ms ease-out, border-color 150ms ease-out; }
.fv2 .fv2-acao:hover { color: var(--accent); border-color: var(--accent); }
.fv2 .fv2-acao--rec[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); background: var(--fraised); }
.fv2 .fv2-portal { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--ftxt); }
.fv2 .fv2-portal:hover { border-color: var(--accent); color: var(--accent); }
.fv2-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--surface); color: var(--ftxt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 50; font-size: 0.875rem; }

/* comprovante aberto na linha: um documento, não uma lista de campos */
.fv2-rec { max-width: 640px; margin: 4px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: default; }
.fv2-rec__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.fv2-rec__marca { display: flex; align-items: center; gap: 10px; }
.fv2-rec__rl { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--fill); color: var(--fill-ink); font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.fv2-rec__marca b { display: block; font-size: 0.875rem; font-weight: 800; }
.fv2-rec__marca small { display: block; color: var(--fmut); font-size: 0.75rem; }
.fv2-rec__no { text-align: right; font-size: 0.75rem; color: var(--fmut); }
.fv2-rec__no b { display: block; color: var(--ftxt); font-size: 0.8125rem; font-weight: 700; word-break: break-all; }
.fv2-rec__valor { padding: 16px 18px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.fv2-rec__valor span { color: var(--fmut); font-size: 0.75rem; display: block; }
.fv2-rec__valor strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fv2-rec__estado { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.8125rem; }
.fv2-rec__estado.ok { color: var(--fok); }
.fv2-rec__estado.ruim { color: var(--fbad); }
.fv2-rec__partes { margin: 0 18px; border: 1px solid var(--border); border-radius: 8px; }
.fv2-rec__parte { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; }
.fv2-rec__parte + .fv2-rec__parte { border-top: 1px solid var(--border); }
.fv2-rec__parte img { height: 18px; width: auto; display: block; }
.fv2-rec__parte img.l2 { height: 20px; }
.fv2-rec__parte b { font-weight: 700; }
.fv2-rec__itens { padding: 14px 18px 4px; }
.fv2-rec__itens h4, .fv2-rec__dados h4 { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; color: var(--fmut); }
.fv2-rec__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.fv2-rec__item:last-child { border-bottom: 0; }
.fv2-rec__item b { color: var(--accent); font-weight: 700; }
.fv2-rec__item em { font-style: normal; color: var(--fmut); display: block; font-size: 0.75rem; }
.fv2-rec__dados { padding: 10px 18px 14px; }
.fv2-rec__dados dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 16px; font-size: 0.8125rem; }
.fv2-rec__dados dt { color: var(--fmut); }
.fv2-rec__dados dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.fv2-rec__pe { padding: 10px 18px 14px; border-top: 1px dashed var(--border); color: var(--fmut); font-size: 0.75rem; margin: 0; }
.fv2 tfoot td { border-bottom: 0; font-weight: 800; padding-block: 14px; }
.fv2 tfoot td:first-child { font-weight: 400; color: var(--fmut); }
.fv2-vazio { padding: 28px 16px; color: var(--fmut); text-align: center; }

/* coluna da direita */
.fv2-rail { gap: 16px; }
.fv2-rail h2 { font-size: 0.9375rem; font-weight: 800; margin: 0 0 10px; }
/* cápsulas da coluna direita (dono, 15/11: "muito soltos") */
.fv2-rail section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(42, 7, 25, .06); }
.fv2-rail section.is-ok { border-color: color-mix(in srgb, var(--fok) 45%, var(--border)); }
.fv2-rail section.is-bad { border-color: color-mix(in srgb, var(--fbad) 55%, var(--border)); }
.fv2-lin { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; }
.fv2-lin > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--fmut); }
.fv2-lin.soma { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; font-weight: 800; }
.fv2-lin.soma > span:first-child { color: var(--ftxt); }
.fv2-lin.final { border-top: 3px double var(--border); font-size: 1.0625rem; }
.fv2-rail p { color: var(--fmut); font-size: 0.8125rem; margin: 8px 0 0; }
.fv2-estado { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.fv2-estado.ok { color: var(--fok); }
.fv2-estado.ruim { color: var(--fbad); }
.fv2-pend { border: 1px solid var(--fbad); border-radius: 8px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 4px; font-size: 0.8125rem; }
.fv2-pend b { color: var(--fbad); }
.fv2-pend span { color: var(--fmut); }
.fv2-pend code { font-size: 0.75rem; color: var(--fmut); }
.fv2-skel { height: 14px; border-radius: 4px; background: var(--fraised); margin: 9px 0; }

@media (max-width: 1100px) { .fv2-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fv2 { padding: 14px 12px 48px; }
  .fv2-tabs { grid-template-columns: 1fr 1fr; }
  .fv2 .fv2-tab:first-child { grid-column: 1 / -1; border-right: 0; }
  .fv2 .fv2-tab:nth-child(3), .fv2 .fv2-tab:nth-child(5) { border-right: 0; }
  .fv2 .fv2-tab:nth-child(-n+3) { border-bottom-color: var(--border); }
  .fv2 .fv2-tab:nth-child(-n+3)[aria-selected="true"] { border-bottom-color: var(--accent); }
  .fv2-rec__valor strong { font-size: 1.5rem; }
  .fv2-mes { padding: 14px 12px 10px; }
  /* extrato vira cartão por operação: nada corta pela direita */
  .fv2-extrato table { min-width: 0; }
  .fv2-extrato thead { display: none; }
  .fv2-extrato tbody, .fv2-extrato tfoot { display: block; }
  .fv2 tr.op { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .fv2 tr.op td { padding: 0; border: 0; }
  .fv2 tr.op td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .fv2 tr.op td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .fv2 tr.op td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .fv2 tr.op td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; max-width: none; }
  .fv2 tr.op td:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .fv2 tr.op td:nth-child(6) { grid-column: 3; grid-row: 2 / 4; align-self: end; }
  .fv2 tr.det { display: block; }
  .fv2 tr.det td { display: block; padding: 0 14px 16px; }
  .fv2-extrato tfoot tr { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; }
  .fv2-extrato tfoot td { padding: 0; }
  .fv2-extrato tfoot td:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fv2 .fv2-tab, .fv2 tr.op, .fv2-seta, .fv2-col .segs { transition: none; } }

.fv2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* textos pequenos: peso 500 para não sumir no rosé */
.fv2-sec, .fv2-tab__det, .fv2-cli small, .fv2-mes__res, .fv2-nota, .fv2-rail p, .fv2-rec__pe, .fv2-hora, .fv2-enq, .fv2-pay .v, .fv2-lin > span:first-child { font-weight: 500; }
/* número da enquete: link que abre a enquete em outra aba */
.fv2 .fv2-enqlink { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.fv2 .fv2-enqlink:hover { border-bottom-style: solid; }
[data-theme="light"] .fv2 .fv2-enqlink { color: #7a1c45; }

/* data escolhida, à direita do título */
.fv2-dia { font-weight: 800; font-size: 0.9375rem; color: var(--ftxt); align-self: flex-end; }
/* calendário padrão do app (mesmo desenho do Financeiro antigo) */
.fv2-cal { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(42, 7, 25, .06); }
.fv2-cal__dias { display: flex; gap: 3px; padding: 4px 0; flex: 1 1 0; min-width: 0; }
.fv2 .fv2-cal__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: 40px; background: var(--fraised); border: 1px solid var(--border); color: var(--fmut); border-radius: 7px; transition: transform 160ms ease-out, background-color 160ms ease-out; }
.fv2 .fv2-cal__dia b { font-size: 11px; font-weight: 800; line-height: 1; color: var(--ftxt); }
.fv2 .fv2-cal__dia span { font-size: 7px; font-weight: 700; text-transform: uppercase; margin-top: 2px; line-height: 1; }
.fv2 .fv2-cal__dia.tem::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--fs); margin-top: 3px; }
.fv2 .fv2-cal__dia:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.fv2 .fv2-cal__dia.vazio { opacity: .96; } /* contraste 19/11 */
.fv2 .fv2-cal__dia.futuro { opacity: .75; cursor: default; }
.fv2 .fv2-cal__dia.on { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); opacity: 1; transform: scale(1.04); box-shadow: 0 4px 10px rgba(122, 28, 69, .35); }
.fv2 .fv2-cal__dia.on b { color: var(--fill-ink); }
.fv2 .fv2-cal__dia.on::after { background: var(--fill-ink); }
@media (max-width: 900px) {
  /* faixa rola de dia em dia (snap): a borda nunca corta um dia pela metade; o esmaecido à
     direita avisa que tem mais dias */
  .fv2-cal__dias { position: relative; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; gap: 4px; padding: 4px 18px 4px 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
  .fv2-cal__dias::-webkit-scrollbar { display: none; }
  .fv2 .fv2-cal__dia { flex: 0 0 44px; min-width: 44px; height: 46px; scroll-snap-align: start; }
  .fv2 .fv2-cal__dia b { font-size: 13px; }
  .fv2 .fv2-cal__dia span { font-size: 8.5px; }
  .fv2 .fv2-cal__dia.on { transform: none; }
  .fv2 .fv2-cal__mes { height: 46px; }
}
@media (max-width: 760px) {
  .fv2-cal { padding: 8px 10px; gap: 8px; margin-bottom: 14px; }
  .fv2-toptitle .fv2-topdia { display: none; }   /* o dia escolhido já aparece no calendário */
  .fv2-toptitle b { font-size: 16px; }
  .fv2-mesmenu { width: min(276px, calc(100vw - 40px)); }
}

/* botão do mês + menu próprio de meses (no lugar do select do navegador) */
.fv2-cal__mesbox { position: relative; flex-shrink: 0; }
.fv2 .fv2-cal__mes { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; height: 42px; padding: 0 8px; background: var(--fraised); border: 1px solid var(--border); border-radius: 8px; }
.fv2 .fv2-cal__mes:hover { border-color: var(--accent); }
.fv2 .fv2-cal__mes span { font-size: 9px; font-weight: 800; color: var(--fmut); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.fv2 .fv2-cal__mes b { font-size: 13px; font-weight: 800; color: var(--ftxt); line-height: 1; margin-top: 4px; letter-spacing: .02em; }
.fv2 .fv2-cal__mes.on { background: var(--fill); border-color: var(--fill); box-shadow: 0 4px 10px rgba(122, 28, 69, .35); }
.fv2 .fv2-cal__mes.on span, .fv2 .fv2-cal__mes.on b { color: var(--fill-ink); }
.fv2-mesmenu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 276px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px rgba(42, 7, 25, .22); }
.fv2-mesmenu p { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; color: var(--fmut); }
.fv2-mesmenu__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fv2 .fv2-mesmenu__grade button { display: grid; gap: 1px; justify-items: center; padding: 8px 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--fraised); }
.fv2 .fv2-mesmenu__grade button b { font-size: 0.875rem; font-weight: 800; color: var(--ftxt); }
.fv2 .fv2-mesmenu__grade button span { font-size: 0.6875rem; font-weight: 600; color: var(--fmut); }
.fv2 .fv2-mesmenu__grade button:hover { border-color: var(--accent); }
.fv2 .fv2-mesmenu__grade button.on { background: var(--fill); border-color: var(--fill); }
.fv2 .fv2-mesmenu__grade button.on b, .fv2 .fv2-mesmenu__grade button.on span { color: var(--fill-ink); }
.fv2-mais-row td { text-align: center; padding: 14px 16px !important; }
.fv2 .fv2-mais { border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 0.8125rem; color: var(--ftxt); }
.fv2 .fv2-mais:hover { border-color: var(--accent); }

/* título na barra do topo (fora do .fv2, por isso as cores vêm do app.css) */
.fv2-toptitle { flex: 1 1 auto; max-width: 760px; }
.fv2-toptitle b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.fv2-toptitle .fv2-beta { font-style: normal; font-size: 9.5px; padding: 2px 7px; }
.fv2-toptitle .fv2-topdia { font-style: normal; font-weight: 700; font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv2-toptitle .fv2-topdia::before { content: "·"; margin: 0 6px 0 2px; }
.fv2-toptitle > span { font-size: 12px; font-weight: 500; }
.fv2 { padding-top: 16px; }

/* clientes com crédito (abre dentro da cápsula Créditos das clientes) */
.fv2 .fv2-vercred { margin-top: 12px; width: 100%; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.8125rem; color: var(--ftxt); }
.fv2 .fv2-vercred:hover, .fv2 .fv2-vercred[aria-expanded="true"] { border-color: var(--accent); }
.fv2-credlista { margin-top: 12px; display: grid; gap: 8px; }
.fv2 .fv2-credbusca { width: 100%; border: 1px solid var(--border); background: transparent; color: var(--ftxt); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 0.8125rem; }
.fv2-credrows { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; display: grid; }
.fv2-credrows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.fv2-credcli { min-width: 0; }
.fv2-credcli b { display: block; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv2-credcli small { display: block; font-size: 0.6875rem; color: var(--fmut); font-weight: 500; }
.fv2-credrows li > b { font-size: 0.8125rem; }
.fv2-credrows .fv2-acao { width: 28px; height: 28px; }
.fv2-credtot { display: flex; justify-content: space-between; font-size: 0.8125rem; padding-top: 4px; color: var(--fmut); }
.fv2-credtot b { color: var(--ftxt); }
.fv2-credvazio { color: var(--fmut); font-size: 0.8125rem; padding: 8px 2px; }

/* Joana: título no topo da página, abaixo da barra única (.mf-topbar). */
.fv2-bar h1 .fv2-topdia { font-style: normal; font-weight: 600; font-size: 0.9375rem; color: var(--fmut); }
.fv2-bar__voltar { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--ftxt); border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.fv2-bar__voltar:hover { border-color: var(--fs); }
@media (max-width: 640px) { .fv2-bar p { display: none; } .fv2 { padding: 14px 16px 56px; } }
/* selo do Sicredi (logo horizontal) */
.fv2-pay img.sic, .fv2-rec__parte img.sic { height: 16px; }
:root:not([data-theme="light"]) .fv2 img.sic { filter: brightness(1.15); }

/* giliane: aba e card de FRETES, sub-linhas por banco, etiqueta do frete na lista */
@media (min-width: 641px) and (max-width: 980px) { .fv2-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fv2 .fv2-tab { border-bottom-color: var(--border); } }
.fv2 .fv2-tab--frete .fv2-tab__nome { color: var(--fmut); }
.fv2-lin--sub { padding: 2px 0 2px 18px; font-size: 0.8125rem; }
.fv2-lin--sub > span:first-child { color: var(--fmut); }
.fv2-fretetag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--ff); border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; white-space: nowrap; }
#fvFrete { border-left: 3px solid var(--ff); }
.fv2-pay img.sic + img.sic { margin-left: 2px; }
/* ícones nunca encolhem dentro da célula */
.fv2-pay img, .fv2-rec__parte img { flex-shrink: 0; max-width: none; }
/* comprovante conferido pela API do banco (registro oficial do PIX) */
.fv2-api { margin: 12px 18px 0; border: 1px solid color-mix(in srgb, var(--fok) 40%, var(--border)); border-radius: 8px; padding: 10px 12px; }
.fv2-api h4 { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; color: var(--fmut); }
.fv2-api__dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-size: 0.8125rem; }
.fv2-api__dl dt { color: var(--fmut); }
.fv2-api__dl dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.fv2-api__dl .ok { color: var(--fok); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: -3px; }
.fv2-api__l { font-size: 0.8125rem; color: var(--fmut); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fv2-api__l.ruim { color: var(--fbad); font-weight: 700; margin-top: 6px; }
.fv2-api__l code { font-size: 0.75rem; }

/* ── CLIENTES EM DÍVIDA (19/11/2026) ─────────────────────────
   Último card. Cor própria (tijolo), fora das três formas de pagamento: é o que AINDA não entrou.
   Seleção / botão de cobrar = --fill (cobre da loja: texto escuro no escuro, branco no claro). */
.fv2 { --fd: #A63A2C; }
[data-theme="dark"] .fv2 { --fd: #EF8A76; }
.fv2-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fv2 .fv2-tab--div .fv2-tab__valor { color: var(--fd); }
@media (max-width: 1000px) {
  .fv2-tabs { grid-template-columns: 1fr 1fr; }
  .fv2 .fv2-tab, .fv2 .fv2-tab:nth-child(-n+2) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .fv2 .fv2-tab:nth-child(even) { border-right: 0; }
  .fv2 .fv2-tab--div { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .fv2 .fv2-tab[aria-selected="true"], .fv2 .fv2-tab:nth-child(-n+2)[aria-selected="true"] { border-bottom-color: var(--border); box-shadow: inset 0 -2px 0 var(--accent); }
}

.fv2-div { padding: 14px 16px 18px; }
.fv2-div__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fv2-div__todas { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8125rem; cursor: pointer; }
.fv2-div__todas input { width: 16px; height: 16px; accent-color: var(--fill); cursor: pointer; }
.fv2-div__sel { color: var(--fmut); font-size: 0.8125rem; flex: 1 1 auto; }
.fv2-div__sel b { color: var(--ftxt); }
.fv2 .fv2-div__cobrar { display: inline-flex; align-items: center; gap: 8px; background: var(--fill); color: var(--fill-ink); border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 0.875rem; transition: opacity 150ms ease-out, background-color 150ms ease-out; }
.fv2 .fv2-div__cobrar:hover:not(:disabled) { background: color-mix(in srgb, var(--fill) 86%, #000); }
.fv2 .fv2-div__cobrar:disabled { opacity: .45; cursor: not-allowed; }
.fv2-div__nota { color: var(--fmut); font-size: 0.75rem; margin: 8px 0 14px; max-width: 95ch; }
.fv2-div__prog { display: grid; gap: 6px; margin: 0 0 14px; font-size: 0.8125rem; color: var(--fmut); }
.fv2-div__progbar { height: 6px; border-radius: 99px; background: var(--fraised); overflow: hidden; }
.fv2-div__progbar i { display: block; height: 100%; background: var(--fill); transition: width 240ms ease-out; }

.fv2-dcard__enq { font-size: 0.8125rem; white-space: nowrap; color: var(--fmut); }
.fv2-dcard__prod { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fv2-dcard__val { font-size: 0.875rem; }
.fv2 .fv2-acao--ok:hover { color: var(--fok); border-color: var(--fok); }
.fv2 .fv2-acao--x:hover { color: var(--fbad); border-color: var(--fbad); }
.fv2-dcard__res { font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--fraised); }
.fv2-dcard__res.ok { color: var(--fok); }
.fv2-dcard__res.pago { color: var(--fm); }
.fv2-dcard__res.pulou { color: var(--fmut); }
.fv2-dcard__res.erro { color: var(--fbad); }

/* LISTA (dono, 18/11/2026): linha por cliente, clicar abre os pedidos. As linhas dos pedidos têm
   grid-template-areas próprias — sem as áreas declaradas, a linha embaralha. */
.fv2-dlist__head, .fv2-drow__h { display: grid; grid-template-columns: 28px minmax(170px, 1.3fr) 90px minmax(0, 1.7fr) 116px 18px; align-items: center; gap: 12px; }
.fv2-dlist__head { padding: 0 12px 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fmut); border-bottom: 1px solid var(--border); }
.fv2-dlist__head .d { text-align: right; }
.fv2-dlist { list-style: none; margin: 0; padding: 0; }
.fv2-drow { border-bottom: 1px solid var(--border); transition: background-color 150ms ease-out; }
.fv2-drow:hover, .fv2-drow.aberta { background: var(--fraised); }
.fv2-drow.sel { box-shadow: inset 3px 0 0 var(--fill); }
.fv2-drow__h { padding: 11px 12px; cursor: pointer; outline: none; border-radius: 8px; }
.fv2-drow__h:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.fv2 .fv2-drow__chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--fmut); display: grid; place-items: center; color: var(--fill-ink); }
.fv2 .fv2-drow__chk svg { width: 13px; height: 13px; }
.fv2-drow.sel .fv2-drow__chk { background: var(--fill); border-color: var(--fill); }
.fv2-drow__cli { min-width: 0; }
.fv2-drow__cli b { display: block; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv2-drow__cli small { display: block; color: var(--fmut); font-size: 0.75rem; }
.fv2-drow__ped { font-size: 0.8125rem; color: var(--fmut); white-space: nowrap; }
.fv2-drow__cob { font-size: 0.75rem; color: var(--fmut); min-width: 0; }
.fv2-drow__cob .cred { display: block; font-style: normal; font-weight: 700; color: var(--fc); }
.fv2-drow__cob .pix { display: block; font-style: normal; color: var(--accent); }
.fv2-drow__tot { text-align: right; font-weight: 800; color: var(--fd); white-space: nowrap; }
.fv2-drow__seta { color: var(--fmut); transition: transform 180ms ease-out; }
.fv2-drow.aberta .fv2-drow__seta { transform: rotate(90deg); color: var(--ftxt); }
.fv2-drow > .fv2-dcard__res { margin: 0 12px 10px 52px; }
.fv2-drow__itens { list-style: none; margin: 0 12px 0 52px; padding: 0 0 8px; }
.fv2-drow__itens li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "enq prod val acts"; align-items: center; gap: 4px 14px; padding: 8px 0; border-top: 1px dashed var(--border); }
.fv2-drow__itens .fv2-dcard__enq { grid-area: enq; } .fv2-drow__itens .fv2-dcard__prod { grid-area: prod; }
.fv2-drow__itens .fv2-dcard__val { grid-area: val; } .fv2-drow__itens .fv2-acoes { grid-area: acts; justify-self: end; }
.fv2-drow__itens .fv2-acao { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .fv2-dlist__head { display: none; }
  .fv2-drow__h { grid-template-columns: 24px minmax(0, 1fr) auto 16px; grid-template-areas: "chk cli tot seta" ". cob cob ."; gap: 4px 10px; }
  .fv2-drow__chk { grid-area: chk; } .fv2-drow__cli { grid-area: cli; } .fv2-drow__tot { grid-area: tot; } .fv2-drow__seta { grid-area: seta; }
  .fv2-drow__ped { display: none; }
  .fv2-drow__cob { grid-area: cob; }
  .fv2-drow > .fv2-dcard__res { margin-left: 46px; }
  .fv2-drow__itens { margin-left: 46px; }
  .fv2-drow__itens li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "enq prod" "val acts"; }
}
@media (max-width: 640px) {
  .fv2-div { padding: 12px 10px 14px; }
  .fv2 .fv2-div__cobrar { width: 100%; justify-content: center; }
  .fv2-drow__itens, .fv2-drow > .fv2-dcard__res { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fv2-div__progbar i, .fv2-drow, .fv2-drow__seta { transition: none; } }
.fv2-extrato table[hidden], .fv2-div[hidden] { display: none !important; }

/* Total recebido: à direita, em letra menor, quanto veio de enquetes do dia × de outros dias (18/11/2026). */
.fv2 .fv2-tab--tot { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.fv2 .fv2-tab--tot > :not(.fv2-tab__split) { grid-column: 1; }
.fv2-tab__split { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; gap: 6px; text-align: right; font-size: 0.6875rem; line-height: 1.25; color: var(--fmut); }
.fv2-tab__split b { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ftxt); }
.fv2-dcard__fech { display: block; font-size: 0.6875rem; color: var(--fmut); margin-top: 1px; }
.fv2 .fv2-tab--tot .fv2-tab__valor { white-space: nowrap; }
@media (max-width: 1600px) {
  /* card estreito: a divisão desce pra baixo do valor, numa linha só */
  .fv2 .fv2-tab--tot { grid-template-columns: minmax(0, 1fr); }
  .fv2-tab__split { grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; gap: 2px 12px; text-align: left; margin-top: 4px; }
  .fv2-tab__split b { display: inline; margin-left: 4px; font-size: 0.75rem; }
}
/* Cápsula "V2" do título na barra do topo inteira (18/11/2026): o overflow:hidden do .mf-top__title b cortava a borda. */
.mf-top__title.fv2-toptitle b { display: flex; align-items: center; gap: 8px; overflow: visible; line-height: 1.4; padding: 1px 0; }
.mf-top__title.fv2-toptitle .fv2-beta { display: inline-flex; align-items: center; line-height: 1; flex: none; }
.mf-top__title.fv2-toptitle .fv2-topdia { min-width: 0; }

/* ── 6º card "Enquetes fechadas" antes do Total recebido (dono, 19/11/2026) ──
   Seis cards numa linha: o Total recebido fica um pouco mais largo (tem a divisão à direita). */
.fv2-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
.fv2 .fv2-tab { padding: 13px 14px 12px; }
.fv2 .fv2-tab--fech { cursor: default; background: var(--fraised); }
.fv2 .fv2-tab--fech:hover { background: var(--fraised); }
.fv2-tab__nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv2-tab__valor { white-space: nowrap; }
@media (max-width: 1600px) { .fv2 .fv2-tab__valor { font-size: 1.125rem; } }
@media (max-width: 1000px) {
  .fv2-tabs { grid-template-columns: 1fr 1fr; }
  .fv2 .fv2-tab--div { grid-column: auto; border-right: 0; }
  .fv2 .fv2-tab:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 1600px) { .fv2-tab__nome { white-space: normal; line-height: 1.25; } }

/* Enquetes fechadas com a divisão à direita (dinheiro · créditos · falta receber), 19/11/2026:
   os dois primeiros cards ficam mais largos. Aqui são 7 cards (+ Fretes). */
.fv2-tab__split .fv2-falta { color: var(--fd); }
.fv2-tab__nome { white-space: normal; line-height: 1.25; }

.fv2 .fv2-tab--fech .fv2-tab__det { white-space: normal; }
/* GRADE FINAL dos cards (19/11/2026) — tem que vir por ÚLTIMO (as regras acima, sem media query, anulavam
   as do celular). Desktop: os 7 cards numa linha; ≤1000px: 2 colunas e Clientes em dívida na linha toda;
   ≤640px: Enquetes fechadas e Total recebido (têm a divisão) também na linha toda. */
@media (min-width: 1001px) { .fv2-tabs { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .fv2-tabs { grid-template-columns: 1fr 1fr; }
  .fv2 .fv2-tab--div { grid-column: 1 / -1; border-right: 0; }
  .fv2 .fv2-tab:nth-last-child(2) { border-bottom: 1px solid var(--border); }   /* Fretes não é a última linha (7 cards) */
}
@media (max-width: 640px) { .fv2 .fv2-tab--fech, .fv2 .fv2-tab--fech + .fv2-tab { grid-column: 1 / -1; border-right: 0; } }

/* A página tem no máximo 1400px e 7 cards: a divisão (Enquetes fechadas / Total recebido) fica SEMPRE
   embaixo do valor, como no card estreito — à direita ela encavalava no valor em 1920px. */
.fv2 .fv2-tab--tot { grid-template-columns: minmax(0, 1fr); }
.fv2 .fv2-tab--tot .fv2-tab__split { grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; gap: 2px 12px; text-align: left; margin-top: 4px; }
.fv2 .fv2-tab--tot .fv2-tab__split b { display: inline; margin-left: 4px; font-size: 0.75rem; }
.fv2 .fv2-tab__split > span { white-space: nowrap; }
.fv2 .fv2-tab__valor { font-size: 1.125rem; }
