[hidden] { display: none !important; }
:root {
    --verde: #15803d; --verde-esc: #14532d; --verde-cl: #dcfce7;
    --vermelho: #dc2626; --vermelho-cl: #fee2e2;
    --laranja: #d97706; --laranja-cl: #fef3c7;
    --azul: #2563eb; --azul-cl: #dbeafe;
    --texto: #1f2937; --suave: #6b7280; --borda: #e5e7eb; --fundo: #f3f4f6; --branco: #fff;
    --raio: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--fundo); padding-bottom: 80px; }
a { color: var(--verde); }
h1 { font-size: 1.45rem; margin: .2em 0 .6em; }
h2 { font-size: 1.1rem; margin: 1.4em 0 .6em; }
small, .meta { color: var(--suave); font-size: .85rem; }
.meta { display: block; }

/* ---------- topo e menu */
.topo { position: sticky; top: 0; z-index: 10; background: var(--verde-esc); color: #fff; display: flex; align-items: center; flex-wrap: wrap; padding: .6rem 1rem; gap: .5rem; }
.marca { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; margin-right: auto; }
.hamb { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 0 .3rem; }
.menu { display: none; width: 100%; flex-direction: column; }
.menu a { color: #fff; text-decoration: none; padding: .65rem .3rem; border-top: 1px solid rgba(255,255,255,.12); }
.menu a.ativo { font-weight: 700; }
.menu-aberto .menu { display: flex; }

.barra { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--branco); border-top: 1px solid var(--borda); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.barra a { flex: 1; text-align: center; text-decoration: none; color: var(--suave); font-size: .72rem; padding: .45rem 0 .5rem; }
.barra a span { display: block; font-size: 1.25rem; line-height: 1.3; }
.barra a.mais span { background: var(--verde); color: #fff; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; margin: -18px auto 2px; font-size: 1.6rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .hamb, .barra { display: none; }
    .menu { display: flex; flex-direction: row; width: auto; gap: .2rem; }
    .menu a { border: 0; padding: .35rem .6rem; border-radius: 8px; }
    .menu a.ativo, .menu a:hover { background: rgba(255,255,255,.15); }
}

/* ---------- layout */
.conteudo { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.caixa { background: var(--branco); border-radius: var(--raio); padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.caixa > h2:first-child { margin-top: 0; }
.estreita { max-width: 420px; margin: 1rem auto; }
.login { margin-top: 12vh; }
.cabeca { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.grade2 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grade2 { grid-template-columns: 1fr 1fr; } .grade2 .caixa { margin: 0; } }
.vazio { color: var(--suave); text-align: center; padding: 1rem; background: var(--branco); border-radius: var(--raio); }

/* ---------- cards do painel */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--branco); border-radius: var(--raio); padding: .8rem; text-decoration: none; color: var(--texto); border-left: 4px solid var(--suave); display: flex; flex-direction: column; }
.card span { font-size: .8rem; color: var(--suave); }
.card b { font-size: 1.15rem; }
.card.vermelho { border-color: var(--vermelho); } .card.vermelho b { color: var(--vermelho); }
.card.laranja { border-color: var(--laranja); }
.card.azul { border-color: var(--azul); }
.card.verde { border-color: var(--verde); } .card.verde b { color: var(--verde); }
.atalhos { display: grid; gap: .6rem; }
@media (min-width: 600px) { .atalhos { grid-template-columns: 1fr 1fr; } }

/* ---------- itens (contas) */
.item { background: var(--branco); border-radius: var(--raio); padding: .75rem .9rem; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; border-left: 4px solid var(--borda); align-items: center; }
.item.s-vencido { border-color: var(--vermelho); }
.item.s-hoje { border-color: var(--laranja); }
.item.s-aberto { border-color: var(--azul); }
.item.s-pago { border-color: var(--verde); }
.item.inativo { opacity: .55; }
.item-txt { flex: 1 1 200px; min-width: 0; }
.item-txt strong { display: block; overflow-wrap: anywhere; }
.item-lado { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.valor { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.selo { font-size: .72rem; padding: .1rem .5rem; border-radius: 99px; font-weight: 600; }
.selo.pago { background: var(--verde-cl); color: var(--verde-esc); }
.selo.vencido { background: var(--vermelho-cl); color: var(--vermelho); }
.selo.hoje { background: var(--laranja-cl); color: #92400e; }
.selo.aberto { background: var(--azul-cl); color: #1e40af; }
.item-acoes { flex-basis: 100%; display: flex; gap: .4rem; flex-wrap: wrap; }
.mini-acoes { margin: -.4rem 0 .6rem .9rem; display: flex; gap: 1rem; }
.item.form.inline input { flex: 1 1 180px; }

/* ---------- formulários */
.form { display: flex; flex-direction: column; gap: .8rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 600; }
.form label small { font-weight: 400; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.linha { display: grid; gap: .8rem; }
@media (min-width: 600px) { .linha { grid-template-columns: 1fr 1fr; } }
input, select, textarea { font: inherit; font-weight: 400; padding: .65rem .7rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; width: 100%; min-height: 44px; color: var(--texto); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--verde); border-color: transparent; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.form label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.form label.check input { width: 22px; height: 22px; }
.valor-grande { font-size: 1.8rem; font-weight: 700; text-align: center; }
.botoes { display: flex; gap: .6rem; flex-wrap: wrap; }
.botoes .btn { flex: 1; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips legend { font-size: .9rem; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.form .chip { display: inline-block; font-weight: 400; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55rem .85rem; border: 1px solid #d1d5db; border-radius: 99px; background: #fff; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--verde-esc); }

.foto-area { text-align: center; background: var(--fundo); border: 2px dashed #d1d5db; border-radius: var(--raio); padding: .8rem; }
.foto-area img { max-width: 100%; max-height: 260px; border-radius: 8px; margin-bottom: .6rem; }
.foto-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .3rem; }
.form .foto-botoes label.btn { flex-direction: row; justify-content: center; font-size: .95rem; }

/* ---------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; background: var(--verde); color: #fff; border: 1px solid var(--verde); border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 42px; }
.btn:hover { background: var(--verde-esc); }
.btn.sec { background: #fff; color: var(--verde-esc); border-color: #d1d5db; }
.btn.sec:hover { background: var(--fundo); }
.btn.perigo { background: #fff; color: var(--vermelho); border-color: #fca5a5; }
.btn.grande { padding: .8rem 1rem; font-size: 1.05rem; min-height: 50px; width: 100%; }
.btn.pq { padding: .3rem .7rem; font-size: .85rem; min-height: 34px; }
button.link { background: none; border: 0; padding: 0; color: var(--suave); text-decoration: underline; font-size: .82rem; cursor: pointer; }
button.link.perigo { color: var(--vermelho); }

/* ---------- avisos e filtros */
.aviso { padding: .75rem 1rem; border-radius: 10px; margin-bottom: .8rem; background: var(--azul-cl); color: #1e3a8a; }
.aviso.ok { background: var(--verde-cl); color: var(--verde-esc); }
.aviso.erro { background: var(--vermelho-cl); color: #991b1b; }
.filtros { display: grid; gap: .5rem; margin-bottom: .8rem; }
@media (min-width: 760px) { .filtros { grid-template-columns: 1fr 1fr 1fr 2fr auto; } .filtros .nav-mes { grid-column: 1 / -1; } }
.nav-mes { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.nav-mes strong { min-width: 170px; text-align: center; }
.resumo { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; background: var(--branco); padding: .6rem .9rem; border-radius: var(--raio); margin-bottom: .6rem; font-size: .92rem; }
.t-vermelho { color: var(--vermelho); } .t-verde { color: var(--verde); }

/* ---------- relatórios */
.barra-linha { margin-bottom: .55rem; }
.barra-rot { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.barra-trilho { background: var(--fundo); height: 8px; border-radius: 99px; overflow: hidden; margin-top: .15rem; }
.barra-cheia { background: var(--verde); height: 100%; border-radius: 99px; }
.colunas { display: flex; align-items: flex-end; gap: .5rem; height: 180px; }
.coluna { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none; color: var(--suave); font-size: .75rem; }
.col-barra { width: 100%; max-width: 46px; background: #86efac; border-radius: 6px 6px 0 0; min-height: 2px; }
.col-barra.atual { background: var(--verde); }

/* ---------- seletor de loja (topo) */
.seletor-loja { margin: 0; }
.seletor-loja select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); min-height: 36px; padding: .3rem .5rem; max-width: 200px; font-size: .88rem; }
.seletor-loja option { color: var(--texto); }
@media (min-width: 900px) { .marca { margin-right: 0; } .seletor-loja { margin-right: auto; } }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th, .tabela td { padding: .5rem .4rem; border-bottom: 1px solid var(--borda); text-align: right; }
.tabela td { white-space: nowrap; }
.tabela th:first-child, .tabela td:first-child { text-align: left; white-space: normal; }
.tabela th { color: var(--suave); font-weight: 600; font-size: .8rem; }
.tabela tr.total td { font-weight: 700; border-bottom: 0; }
.marca { display: inline-flex; align-items: center; gap: .5rem; }
.login { text-align: center; margin-top: 8vh; }
.login .form { text-align: left; }
.carimbo { display: block; margin: 0 auto 1.2rem; }
@media (max-width: 899px) { .seletor-loja select { max-width: 150px; font-size: .8rem; } }

/* ---------- lista de compras */
.limite { background: var(--verde-cl); color: var(--verde-esc); border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; }
.limite b { font-size: 1.15rem; }
.compra-acoes { align-items: center; }
.compra-acoes .preco-achado { flex: 1 1 140px; min-height: 40px; padding: .45rem .6rem; }
.veredito { flex-basis: 100%; font-size: .88rem; font-weight: 700; }
.veredito.ok { color: var(--verde); }
.veredito.caro { color: var(--vermelho); }
.compra .comprei { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .7rem; font-weight: 600; color: var(--suave); cursor: pointer; }
.compra .comprei input { width: 28px; height: 28px; accent-color: var(--verde); margin: 0; }
.compra-acoes label.mini { display: flex; flex-direction: column; font-size: .72rem; font-weight: 600; color: var(--suave); flex: 1 1 90px; }
.compra-acoes label.mini input { min-height: 40px; padding: .4rem .55rem; }
.compra-acoes label.mini:first-child { flex: 0 1 70px; }
.compra-acoes { align-items: flex-end; }
.sugestao { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--borda); font-size: .92rem; }
details.mais-campos summary { cursor: pointer; color: var(--verde-esc); font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.compra-acoes label.mini .preco-achado { flex: none; }
.compra .item-txt { flex: 1 1 140px; }

/* ---------- lista: compra no mercado */
.add-item > summary { cursor: pointer; font-weight: 700; color: var(--verde-esc); font-size: 1.05rem; list-style: none; }
.add-item > summary::-webkit-details-marker { display: none; }
.add-item[open] > summary { margin-bottom: .8rem; }
.compra .comprei { align-self: flex-start; padding-top: .1rem; }
.compra .item-lado { gap: .1rem; }
.preco-venda { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.ate { font-size: .85rem; font-weight: 700; color: var(--verde); white-space: nowrap; }
.fcompra { padding-bottom: .5rem; }
.barra-compra { position: sticky; bottom: 70px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    background: var(--verde-esc); color: #fff; border-radius: var(--raio); padding: .7rem .9rem; margin-top: .8rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.barra-compra .bc-info { display: flex; flex-direction: column; line-height: 1.25; }
.barra-compra .bc-info b { font-size: 1.15rem; }
.barra-compra small { color: #d1fae5; font-size: .78rem; }
.barra-compra .btn { background: #F97316; border-color: #F97316; white-space: nowrap; }
.barra-compra .btn:hover { background: #ea580c; }
@media (min-width: 900px) { .barra-compra { bottom: 12px; } }

/* ---------- histórico de compras do item */
details.hist { flex-basis: 100%; }
details.hist > summary { cursor: pointer; display: inline-block; font-size: .82rem; font-weight: 600; color: var(--verde-esc); background: var(--verde-cl); padding: .25rem .65rem; border-radius: 99px; list-style: none; }
details.hist > summary::-webkit-details-marker { display: none; }
.hist-corpo { margin-top: .45rem; background: var(--fundo); border-radius: 10px; padding: .5rem .7rem; font-size: .85rem; }
.hist-resumo { margin-bottom: .35rem; color: var(--texto); }
.hist-linha { display: grid; grid-template-columns: 5.6rem 5.4rem 1fr; gap: .4rem; padding: .25rem 0; border-top: 1px solid var(--borda); }
.hist-linha span:last-child { color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lancado { display: flex; justify-content: space-between; gap: .5rem; align-items: center; background: var(--verde-cl); color: var(--verde-esc); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .5rem; }
.item-lado .selo + .selo { margin-top: .2rem; }
/* ---------- copiar / renomear lista */
details.copiar > summary { list-style: none; }
details.copiar > summary::-webkit-details-marker { display: none; }
details.copiar[open] > summary { background: var(--verde-cl); }
.copiar-form { background: var(--fundo); border-radius: 10px; padding: .7rem; margin-top: .5rem; gap: .6rem; }
.item > details.copiar { flex-basis: 100%; }
details.copiar.no-topo[open] { flex-basis: 100%; order: 3; }
details.renomear { display: inline-block; vertical-align: middle; }
details.renomear > summary { list-style: none; cursor: pointer; font-size: 1rem; padding: 0 .3rem; }
details.renomear > summary::-webkit-details-marker { display: none; }
details.renomear[open] { display: block; margin: .4rem 0; }
details.renomear .form.inline input { flex: 1 1 180px; font-size: 1rem; }
.item-acoes details.copiar[open] { flex-basis: 100%; order: 5; }
.hist-linha.caro b, .hist-linha.caro span:last-child { color: var(--vermelho); }
details.hist > summary.tem-caro { background: var(--vermelho-cl); color: #991b1b; }

/* =====================================================================
   VISUAL v2 — módulos Financeiro / Compras, interface mais limpa
   ===================================================================== */
:root { --fundo: #f5f6f8; --borda: #e7e9ee; --texto: #111827; --suave: #6b7280; --raio: 14px; --acento: #14532d; --acento-cl: #e7f5ec; }
body.mod-financeiro { --acento: #15803d; --acento-cl: #dcfce7; }
body.mod-compras { --acento: #ea580c; --acento-cl: #ffedd5; }
body { background: var(--fundo); color: var(--texto); }
h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.ic { flex: none; }

/* topo */
.topo { background: #fff; color: var(--texto); border-bottom: 1px solid var(--borda); padding: .55rem 1rem; gap: .75rem; flex-wrap: nowrap; }
.topo .marca { color: var(--texto); font-size: 1rem; margin-right: 0; gap: .45rem; }
.topo .marca span { font-weight: 800; letter-spacing: -.01em; }
.modulos { display: flex; margin: 0 auto; background: var(--fundo); border-radius: 99px; padding: 3px; gap: 2px; }
.modulos a { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .9rem; border-radius: 99px; color: var(--suave); text-decoration: none; font-weight: 600; font-size: .9rem; }
.modulos a.ativo { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.modulos a.m-fin.ativo { color: #15803d; }
.modulos a.m-com.ativo { color: #ea580c; }
.engrenagem { color: var(--suave); display: inline-flex; padding: .4rem; border-radius: 10px; }
.engrenagem:hover, .engrenagem.ativo { color: var(--texto); background: var(--fundo); }
@media (max-width: 520px) { .topo .marca span { display: none; } .modulos a { padding: .42rem .75rem; } }

/* sub-barra: abas do módulo (computador) e seletor de loja */
.subbarra { background: #fff; border-bottom: 1px solid var(--borda); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; min-height: 42px; }
.abas { display: flex; gap: .2rem; overflow-x: auto; }
.abas a { padding: .7rem .75rem; color: var(--suave); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.abas a:hover { color: var(--texto); }
.abas a.ativo { color: var(--acento); border-bottom-color: var(--acento); }
@media (max-width: 899px) { .abas { display: none; } .subbarra { justify-content: flex-end; min-height: 38px; } }
.seletor-loja { display: inline-flex; align-items: center; gap: .3rem; color: var(--suave); margin: 0 0 0 auto; }
.seletor-loja select { background: transparent; color: var(--texto); border: 0; min-height: 34px; padding: .2rem .3rem; width: auto; max-width: 220px; font-size: .86rem; font-weight: 600; }
.seletor-loja select:focus { outline: 2px solid var(--acento); }

/* barra inferior (celular) */
.barra { background: #fff; border-top: 1px solid var(--borda); }
.barra a { color: #9ca3af; font-size: .7rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0 .55rem; }
.barra a span { display: flex; font-size: inherit; line-height: 1; }
.barra a.ativo { color: var(--acento); }
.barra a.mais { color: var(--texto); }
.barra a.mais span { background: var(--acento); color: #fff; width: 48px; height: 48px; border-radius: 16px; margin: -22px auto 2px; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); line-height: 1; }

/* superfícies mais leves */
.caixa, .item, .card, .resumo, .vazio { box-shadow: none; border: 1px solid var(--borda); }
.item { border-left-width: 3px; }
.card { border-left-width: 3px; }
.btn { background: var(--acento); border-color: var(--acento); border-radius: 11px; }
.btn:hover { background: var(--acento); filter: brightness(.92); }
.btn.sec { background: #fff; color: var(--texto); border-color: var(--borda); }
.btn.sec:hover { background: var(--fundo); filter: none; }
.btn.perigo { background: #fff; color: var(--vermelho); border-color: #f5c2c2; }
input, select, textarea { border-color: #dfe2e7; }
input:focus, select:focus, textarea:focus { outline-color: var(--acento); }
.chip input:checked + span { background: var(--acento); border-color: var(--acento); }
details.mais-campos summary, .add-item > summary { color: var(--acento); }
.mod-compras .barra-compra { background: #7c2d12; }
.mod-compras .barra-compra .btn { background: #fff; color: #7c2d12; border-color: #fff; }

/* tela inicial */
.saudacao { margin: .3rem 0 1.1rem; }
.saudacao h1 { margin: 0; }
.modulos-home { display: grid; gap: .9rem; }
@media (min-width: 760px) { .modulos-home { grid-template-columns: 1fr 1fr; } }
.mod-card { background: #fff; border: 1px solid var(--borda); border-radius: 18px; padding: 1.1rem; text-decoration: none; color: var(--texto); display: flex; flex-direction: column; gap: .95rem; transition: border-color .15s, transform .15s; }
.mod-card:hover { transform: translateY(-1px); }
.mod-card.fin:hover { border-color: #86efac; }
.mod-card.com:hover { border-color: #fdba74; }
.mod-topo { display: flex; align-items: center; gap: .75rem; color: var(--suave); }
.mod-nome { flex: 1; font-weight: 800; font-size: 1.15rem; color: var(--texto); }
.mod-ic { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.mod-card.fin .mod-ic { background: #dcfce7; color: #15803d; }
.mod-card.com .mod-ic { background: #ffedd5; color: #ea580c; }
.mod-dados { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mod-dados small { display: block; color: var(--suave); font-size: .8rem; }
.mod-dados b { font-size: 1.12rem; overflow-wrap: anywhere; }
.mod-alerta, .mod-ok { border-radius: 10px; padding: .5rem .75rem; font-size: .85rem; font-weight: 600; }
.mod-alerta { background: var(--vermelho-cl); color: #991b1b; }
.mod-ok { background: var(--fundo); color: var(--suave); }
h2.secao { font-size: .78rem; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; margin: 1.6rem 0 .6rem; }

/* atalhos e listas de links */
.atalhos { display: grid; gap: .6rem; }
@media (min-width: 760px) { .atalhos { grid-template-columns: repeat(3, 1fr); } }
.atalho { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem 1rem; color: var(--texto); text-decoration: none; font-weight: 600; }
.atalho .ic { color: var(--acento); width: 38px; height: 38px; padding: 8px; background: var(--acento-cl); border-radius: 11px; box-sizing: border-box; }
.atalho span, .lista-links span { display: flex; flex-direction: column; }
.atalho small, .lista-links small { color: var(--suave); font-weight: 400; font-size: .8rem; }
.lista-links { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.lista-links a { display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-bottom: 1px solid var(--borda); color: var(--texto); text-decoration: none; font-weight: 600; }
.lista-links a:last-child { border-bottom: 0; }
.lista-links a:hover { background: var(--fundo); }
.lista-links a > span { flex: 1; }
.lista-links a > .ic:first-child { color: var(--acento); }
.lista-links a > .ic:last-child { color: #c0c4cc; }
.lista-links a.sair, .lista-links a.sair .ic { color: var(--vermelho); }
.card, .card.vermelho, .card.laranja, .card.azul, .card.verde { border-color: var(--borda); }
.card.vermelho { border-left-color: var(--vermelho); }
.card.laranja { border-left-color: var(--laranja); }
.card.azul { border-left-color: var(--azul); }
.card.verde { border-left-color: var(--verde); }
.atalho.com .ic { color: #ea580c; background: #ffedd5; }
.cabeca .botoes { flex-wrap: nowrap; }
.cabeca .botoes .btn { flex: none; }
.item.s-vencido, .item.s-hoje, .item.s-aberto, .item.s-pago { border-color: var(--borda); }
.item.s-vencido { border-left-color: var(--vermelho); }
.item.s-hoje { border-left-color: var(--laranja); }
.item.s-aberto { border-left-color: #93c5fd; }
.item.s-pago { border-left-color: #22c55e; }
details.filtros-box { margin-bottom: .8rem; }
details.filtros-box > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--acento); padding: .3rem 0; }
details.filtros-box > summary::-webkit-details-marker { display: none; }
details.filtros-box .filtros { margin-top: .5rem; }
/* ---------- estoque importado */
.item-rodape { flex-basis: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.item-rodape details.hist { flex: 1 1 auto; flex-basis: auto; min-width: 0; }
.item-rodape details.hist[open] { flex-basis: 100%; order: 2; }
.estoque { margin-left: auto; font-size: .8rem; color: var(--suave); background: var(--fundo); border-radius: 99px; padding: .22rem .65rem; white-space: nowrap; }
.estoque b { color: var(--texto); }
.estoque.baixo { background: var(--vermelho-cl); color: #991b1b; }
.estoque.baixo b { color: #991b1b; }
.estoque.sem { background: transparent; color: #b0b5bd; font-size: .74rem; }
.estoques-lojas { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; color: var(--suave); }
.estoques-lojas .estoque { margin-left: .2rem; }

/* módulo único (usuário só de Compras ou só de Financeiro) */
.modulo-unico { margin-left: auto; margin-right: .5rem; font-weight: 600; font-size: .95rem; color: var(--acento, #374151); }

/* ---------- leitor de código de barras */
.com-leitor { display: flex; gap: .4rem; }
.com-leitor input { flex: 1; min-width: 0; }
.btn-leitor { flex: none; width: 48px; border: 1px solid var(--borda); border-radius: 8px; background: var(--verde-cl); font-size: 1.35rem; cursor: pointer; padding: 0; }
.btn-leitor:active { background: var(--verde); }
html.leitor-aberto, html.leitor-aberto body { overflow: hidden; }
.leitor { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
.leitor video { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
.leitor-mira { position: absolute; left: 6%; right: 6%; top: 50%; height: 26%; transform: translateY(-60%); border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); pointer-events: none; }
.leitor-mira span { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: leitor-pisca 1.2s ease-in-out infinite; }
@keyframes leitor-pisca { 50% { opacity: .35; } }
.leitor-msg { z-index: 2; position: absolute; left: 1rem; right: 1rem; top: calc(env(safe-area-inset-top) + 1rem); color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 3px #000; }
.leitor-botoes { position: relative; z-index: 2; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; padding: .8rem 1rem calc(env(safe-area-inset-bottom) + .8rem); background: #111; }
.leitor-botoes .btn { margin: 0; }

/* ---------- salvar item por item */
.btn-salvar-item { flex: none; min-height: 40px; background: var(--verde-cl); color: var(--verde-esc); border-color: var(--verde-cl); }
.item-salvo { flex-basis: 100%; font-size: .78rem; font-weight: 600; color: var(--suave); }
.item-salvo.ok { color: var(--verde); }
.item-salvo.pendente, .item-salvo.salvando { color: #b45309; }
.item-salvo.erro { color: var(--vermelho); }

/* ---------- compra por pacote */
.compra-acoes label.mini.emb { flex: 0 1 62px; }
.item-lado .ate-emb { font-size: .78rem; color: var(--verde); }

/* ---------- celular mais limpo: menu ⋯, detalhes do item e comprados no fim */
details.menu-mais { position: relative; display: inline-block; }
details.menu-mais > summary { list-style: none; cursor: pointer; min-width: 2.6rem; text-align: center; font-weight: 800; letter-spacing: .05em; }
details.menu-mais > summary::-webkit-details-marker { display: none; }
details.menu-mais .menu-itens { position: absolute; left: 0; max-width: calc(100vw - 2rem); top: calc(100% + .35rem); z-index: 20; min-width: 220px; display: flex; flex-direction: column; gap: .45rem;
    padding: .6rem; background: var(--branco); border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
details.menu-mais .menu-itens > *, details.menu-mais .menu-itens .btn, details.menu-mais .menu-itens summary.btn { width: 100%; margin: 0; text-align: left; justify-content: flex-start; }
details.menu-mais .menu-itens form { display: flex; flex-direction: column; gap: .45rem; }
details.menu-mais .copiar-form { margin-top: .4rem; }
.item-acoes:has(details.menu-mais[open]) { z-index: 21; position: relative; }

.est-curto { font-weight: 600; }
.est-curto.baixo { color: var(--vermelho); }
details.item-mais { flex-basis: 100%; }
details.item-mais > summary { list-style: none; cursor: pointer; font-size: .8rem; color: var(--suave); padding: .15rem 0; }
details.item-mais > summary::-webkit-details-marker { display: none; }
details.item-mais[open] > summary { color: var(--texto); font-weight: 600; }
.item-mais-corpo { display: flex; flex-direction: column; gap: .5rem; padding: .5rem .6rem .6rem; margin-top: .2rem; background: var(--fundo); border-radius: 10px; }
.item-mais-corpo label.mini.emb { flex: none; max-width: 220px; }
.item-mais-corpo .btn.perigo { align-self: flex-start; }
.item-mais-corpo details.hist { flex-basis: auto; }

details.grupo-comprados { margin-top: .8rem; }
details.grupo-comprados > summary { list-style: none; cursor: pointer; padding: .7rem .9rem; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 700; }
details.grupo-comprados > summary::-webkit-details-marker { display: none; }
details.grupo-comprados > summary small { font-weight: 500; opacity: .8; margin-left: .3rem; }
details.grupo-comprados[open] > summary small { display: none; }
details.grupo-comprados[open] > summary { margin-bottom: .6rem; }

/* ---------- compras simplificadas: Falta, Comprando, Comprados, Preço */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.abas-loja { display: flex; gap: .35rem; background: var(--branco); border-radius: 12px; padding: .3rem; margin-bottom: .7rem; overflow-x: auto; }
.abas-loja a { flex: 1; text-align: center; white-space: nowrap; padding: .6rem .7rem; min-height: 44px; box-sizing: border-box; border-radius: 9px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: .9rem; }
.abas-loja a.ativo { background: var(--texto); color: #fff; }

.falta-add { background: var(--branco); border-radius: var(--raio); padding: .7rem; margin-bottom: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.falta-add-linha { display: flex; gap: .45rem; }
.falta-add-linha .falta-prod { flex: 1; min-width: 0; }
.falta-add-linha .btn-leitor { width: 50px; }
.falta-add-mais { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.falta-add-mais label { flex: 1 1 110px; display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--suave); }
.falta-add-mais .btn { flex: 1 1 120px; min-height: 46px; }
.falta-add-mais[hidden], .falta-add .meta[hidden] { display: none; }

.falta-lista { display: flex; flex-direction: column; gap: .45rem; }
.falta-item { background: var(--branco); border-radius: 14px; padding: .65rem .75rem; display: flex; align-items: center; gap: .6rem; transition: opacity .2s; }
.falta-item.saindo { opacity: .35; }
.falta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.falta-nome { font-weight: 700; color: var(--texto); text-decoration: none; overflow-wrap: anywhere; }
.falta-qtd { display: flex; align-items: center; gap: .3rem; margin: 0; flex: none; }
.btn-qtd { width: 38px; height: 38px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: 700 1.15rem/1 system-ui, sans-serif; color: var(--texto); cursor: pointer; padding: 0; }
.falta-q { min-width: 3.4rem; text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.15; }
.btn-tirar { width: 34px; height: 38px; border: 0; background: none; color: var(--suave); font-size: 1rem; cursor: pointer; padding: 0; }
.falta-ir { position: sticky; bottom: 74px; padding-top: .7rem; }

.cp-topo { background: var(--branco); border-radius: var(--raio); padding: .7rem; margin-bottom: .7rem; display: flex; flex-direction: column; gap: .55rem; }
.cp-topo .abas-loja { background: var(--fundo); margin: 0; }
.cp-mercado, .cp-outro { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--suave); }
.cp-mercado select { font-weight: 700; font-size: 1.02rem; min-height: 48px; }
.cp-outro[hidden] { display: none; }
.cp-lista { display: flex; flex-direction: column; gap: .45rem; }
details.cp-item { background: var(--branco); border-radius: 14px; }
details.cp-item[open] { box-shadow: 0 0 0 2px var(--laranja); }
details.cp-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .8rem; min-height: 60px; box-sizing: border-box; }
details.cp-item > summary::-webkit-details-marker { display: none; }
.cp-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cp-txt b { overflow-wrap: anywhere; }
.cp-ate { text-align: right; font-size: .75rem; color: var(--suave); display: flex; flex-direction: column; flex: none; }
.cp-ate b { font-size: 1rem; color: var(--verde); }
.cp-corpo { padding: 0 .8rem .8rem; display: flex; flex-direction: column; gap: .6rem; }
.cp-barato { background: var(--azul-cl); color: #1e3a8a; border-radius: 10px; padding: .5rem .65rem; font-size: .85rem; text-decoration: none; }
.cp-campos { display: flex; gap: .5rem; }
.cp-campos label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--suave); }
.cp-preco { flex: 1; } .cp-qtd { width: 90px; flex: none; }
.cp-campos input { min-height: 52px; font-size: 1.25rem; font-weight: 700; }
.cp-qtd input { text-align: center; }
.cp-botoes { display: flex; gap: .5rem; }
.cp-botoes .btn { min-height: 52px; }
.cp-depois { flex: 1; }
.cp-comprei { flex: 1.4; font-size: 1.05rem; }
.cp-hoje { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--verde-cl); color: var(--verde-esc); font-weight: 700; text-decoration: none; font-size: .9rem; }
.cp-hoje span { flex: 1; }
.cp-hoje[hidden] { display: none; }

.cd-dica { margin: -.3rem 0 .8rem; }
.cd-compra { background: var(--branco); border-radius: 16px; padding: .85rem; margin-bottom: .8rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 0 0 2px #fed7aa; }
.cd-compra form { margin: 0; }
.cd-cabeca { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.cd-cabeca > div { display: flex; flex-direction: column; gap: .1rem; }
.selo-conferir { background: #fff7ed; color: #9a3412; border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.selo-ok { background: var(--verde-cl); color: #166534; border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.cd-itens { display: flex; flex-direction: column; }
details.cd-item { border-bottom: 1px solid var(--fundo); }
details.cd-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; font-size: .9rem; }
details.cd-item > summary::-webkit-details-marker { display: none; }
details.cd-item.caro > summary { color: var(--vermelho); }
details.cd-item small { color: var(--suave); }
details.cd-item.caro small { color: var(--vermelho); }
.cd-editar { display: flex; gap: .4rem; align-items: flex-end; flex-wrap: wrap; padding: .2rem 0 .7rem; }
.cd-editar label { flex: 1 1 90px; display: flex; flex-direction: column; gap: .15rem; font-size: .75rem; font-weight: 600; color: var(--suave); }
.cd-total { display: flex; justify-content: space-between; align-items: baseline; background: #f9fafb; border-radius: 10px; padding: .6rem .75rem; }
.cd-total b { font-size: 1.35rem; }
.cd-anteriores { display: flex; flex-direction: column; gap: .45rem; }
.cd-ant { background: var(--branco); border-radius: 14px; padding: .7rem .85rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; text-decoration: none; color: var(--texto); }
.cd-ant > span:first-child { display: flex; flex-direction: column; gap: .1rem; }
.cd-antigas { text-align: center; margin: 1.2rem 0 .5rem; }

.pr-titulo { font-size: 1.25rem; }
.pr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .6rem 0 .4rem; }
.pr-card { background: var(--branco); border-radius: 12px; padding: .65rem .75rem; display: flex; flex-direction: column; gap: .1rem; }
.pr-card.bom { background: var(--verde-cl); color: var(--verde-esc); }
.pr-card small { font-weight: 600; font-size: .75rem; }
.pr-card b { font-size: 1.15rem; }
.pr-card span { font-size: .8rem; }
.pr-linhas { background: var(--branco); border-radius: 12px; padding: .2rem .8rem; }
.pr-linha, .pr-hist { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--fundo); font-size: .9rem; }
.pr-linha:last-child, .pr-hist:last-child { border-bottom: 0; }
.pr-linha b small { font-weight: 500; color: var(--suave); }
.pr-hist { display: grid; grid-template-columns: 4.2rem 1fr auto; }
.link-produto { color: inherit; text-decoration: none; }
/* ajustes: item da Falta em duas linhas (nome em cima, quantidade embaixo) e abas sem barra de rolagem */
.falta-item { flex-wrap: wrap; row-gap: .45rem; }
.falta-txt { flex: 1 1 100%; }
.falta-qtd { margin-left: auto; }
.falta-lista { padding-bottom: 4.5rem; }
.abas-loja { overflow: hidden; }
.abas-loja a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---- v8: trocar item no mercado e itens novos a cadastrar */
.lk { background: none; border: 0; padding: .2rem 0; color: var(--verde); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.cp-trocar { align-self: flex-start; font-size: .95rem; }
.cp-troca { border: 1px dashed var(--laranja, #c2410c); border-radius: 10px; padding: .6rem; display: flex; flex-direction: column; gap: .5rem; background: #fff7ed; }
.cp-troca-cab { display: flex; justify-content: space-between; align-items: center; color: #9a3412; }
.cp-troca-cab .lk { color: #9a3412; font-size: .85rem; }
.cp-troca-linha { display: flex; gap: .4rem; }
.cp-troca-linha input { flex: 1; min-width: 0; min-height: 48px; font-size: 1.1rem; }
.cp-troca label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--suave); }
.cp-troca label input { min-height: 46px; font-size: 1rem; }
.cp-troca-emb input { max-width: 8rem; }
.cp-troca-info:empty { display: none; }
.cp-troca-selo { display: block; color: #9a3412; font-size: .82rem; font-weight: 600; }
.cp-hoje-barra { display: flex; gap: .4rem; align-items: stretch; margin-top: .8rem; }
.cp-hoje-barra[hidden] { display: none; }
.cp-hoje-barra .cp-hoje { flex: 1; margin: 0; }
.cp-hoje-pdf { display: flex; align-items: center; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--borda); background: #fff; font-weight: 600; text-decoration: none; color: inherit; white-space: nowrap; }
.cd-troca { display: block; color: #9a3412; }
.cd-novo, .selo-novo { display: inline-block; margin-top: .15rem; padding: .05rem .4rem; border-radius: 6px; background: #ffedd5; color: #9a3412; font-size: .72rem; font-weight: 700; }
.cd-pdf { align-self: flex-start; margin: .2rem 0 .5rem; }
.aviso-novos { margin: .2rem 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; }
.aviso-novos a { color: #9a3412; font-weight: 600; text-decoration: none; }
.cp-troca[hidden], .cp-barato[hidden], .lk[hidden], .cp-troca label[hidden], .cp-troca-selo[hidden] { display: none; }

/* ---- v9: vendidos (repor pelo vendido) */
.vd-atalho { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; text-decoration: none; font-weight: 600; }
.vd-atalho small { display: block; font-weight: 400; color: #1e40af; font-size: .82rem; }
.vd-periodo { display: flex; flex-direction: column; gap: .15rem; margin: 0 0 .7rem; padding: .7rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--borda); }
.vd-importar { margin: 0 0 .8rem; padding: .6rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--borda); }
.vd-importar summary { font-weight: 600; cursor: pointer; color: var(--verde); }
.vd-form { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.vd-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.vd-datas { display: flex; gap: .5rem; }
.vd-datas label { flex: 1; min-width: 0; }
.vd-barra { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .4rem; }
.vd-todos { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.vd-cat { margin: .9rem 0 .3rem; font-size: .78rem; letter-spacing: .04em; color: var(--suave); text-transform: uppercase; }
.vd-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; margin-bottom: .35rem; border-radius: 10px; background: #fff; border: 1px solid var(--borda); }
.vd-item input[type=checkbox] { width: 1.3rem; height: 1.3rem; flex: none; }
.vd-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vd-txt small { color: var(--suave); }
.vd-repor { flex: none; font-weight: 700; color: var(--verde); white-space: nowrap; }
.vd-item:has(input:not(:checked)) { opacity: .55; }
.vd-enviar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); margin-top: .8rem; padding: .5rem; border-radius: 12px; background: #f9fafb; border: 1px solid var(--borda); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
.vd-enviar .btn { width: 100%; }
.vd-fora { margin-top: 1.2rem; }
.vd-fora h3 { font-size: 1rem; margin: 0 0 .2rem; color: #9a3412; }
.vd-item.fora { background: #fff7ed; border-color: #fed7aa; }
.vd-nota { margin: .5rem .2rem 0; }
.vd-dias { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .3rem; font-size: .85rem; color: var(--suave); }
.btn-editar { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--borda); background: #fff; font-size: 1rem; cursor: pointer; flex: none; }
.falta-editar { flex-basis: 100%; display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; padding-top: .5rem; margin-top: .3rem; border-top: 1px dashed var(--borda); }
.falta-editar[hidden] { display: none; }
.falta-editar label { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; font-weight: 600; color: var(--suave); flex: 1; min-width: 6rem; }
.falta-editar input { min-height: 44px; font-size: 1.05rem; }
.falta-editar .btn { min-height: 44px; }

/* ---- v11: produtos novos (fila de cadastro no TouchPay) */
.nv-form { display: flex; flex-direction: column; gap: .6rem; padding: .9rem; margin: .4rem 0 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--borda); }
.nv-form h2 { margin: 0; font-size: 1.05rem; }
.nv-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 600; color: var(--suave); }
.nv-form input:not([type=radio]):not([type=file]), .nv-form select { min-height: 46px; font-size: 1.05rem; }
.nv-linha { display: flex; gap: .5rem; }
.nv-linha > label { flex: 1; min-width: 0; }
.nv-tipo { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .9rem; }
.nv-tipo label { flex-direction: row !important; align-items: center; gap: .3rem !important; font-weight: 500 !important; color: inherit !important; }
.nv-info:empty { display: none; }
.nv-info { margin: 0; padding: .4rem .6rem; border-radius: 8px; background: #f3f4f6; }
.nv-info.ok { background: #ecfdf5; color: #065f46; }
.nv-foto { display: flex; align-items: center; gap: .7rem; }
.nv-foto img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; border: 1px solid var(--borda); background: #fff; }
.nv-foto img[hidden] { display: none; }
.nv-foto .btn { flex-direction: row; color: inherit; }
.nv-botoes { display: flex; gap: .5rem; justify-content: flex-end; }
.nv-botoes .btn { flex: 1; }
.nv-titulo { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.nv-item { display: flex; gap: .7rem; padding: .7rem; margin-bottom: .5rem; border-radius: 12px; background: #fff; border: 1px solid var(--borda); }
.nv-thumb { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 8px; border: 1px solid var(--borda); background: #fff; }
.nv-thumb.vazio-f { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--suave); text-align: center; }
.nv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nv-preco { font-size: .92rem; }
.nv-preco b { color: var(--verde); }
.nv-loja { font-size: .82rem; font-weight: 600; color: #1e40af; }
.nv-acoes { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .3rem; }
.nv-acoes form { margin: 0; }
.lk.perigo { color: #b91c1c; }
.nv-feitos { margin-top: 1rem; }
.nv-feitos summary { font-weight: 600; cursor: pointer; padding: .4rem 0; }
.nv-item.feito { opacity: .75; }
.mk-loja { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; white-space: nowrap; } .mk-loja input { width: 4.5rem; }
.nv-vendas { display: flex; gap: .5rem; } .nv-vendas > label { flex: 1; min-width: 0; } .nv-vendas > label[hidden] { display: none; }
.cp-ate.sem-preco b { color: #b91c1c; font-size: .9rem; }

/* ---------- recebimento (NF-e) */
body.mod-recebimento { --acento: #2563eb; --acento-cl: #dbeafe; }
.modulos a.m-rec.ativo { color: #2563eb; }
@media (max-width: 420px) { .modulos a span { display: none; } .modulos a.ativo span { display: inline; } }
.mod-card.rec:hover { border-color: #93c5fd; }
.mod-card.rec .mod-ic { background: #dbeafe; color: #2563eb; }
.atalho.rec .ic { color: #2563eb; background: #dbeafe; }
.aviso.info { background: var(--azul-cl); color: #1e3a8a; }
.texto-alerta { color: #b45309; font-weight: 600; }
.texto-ok { color: var(--verde); font-weight: 600; }
.mt { margin-top: .8rem; }
.cab-pagina { margin-bottom: .6rem; }
.cab-pagina h1 { margin-bottom: .1em; }
.campo-leitor { display: flex; gap: .5rem; }
.campo-leitor input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.receber label { display: block; font-weight: 600; margin-bottom: .3rem; }
.receber .btn.grande { margin-top: .6rem; width: 100%; }
.filtro-linha { display: flex; gap: .4rem; margin: 1rem 0 .6rem; }
.chip-link { padding: .35rem .85rem; border-radius: 99px; border: 1px solid var(--borda); background: #fff; color: var(--suave); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip-link.ativo { background: var(--acento-cl); border-color: transparent; color: var(--acento); }
.lista-notas { display: flex; flex-direction: column; gap: .5rem; }
.nota-item { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .75rem .9rem; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); color: var(--texto); text-decoration: none; }
.nota-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota-valor { font-weight: 700; text-align: right; }
.selo-nota { justify-self: end; align-self: center; font-size: .75rem; font-weight: 700; padding: .12rem .55rem; border-radius: 99px; background: var(--fundo); color: var(--suave); }
.selo-nota.ok { background: var(--azul-cl); color: #1e40af; }
.selo-nota.aguardando { background: var(--laranja-cl); color: #92400e; }
.selo-nota.erro { background: var(--vermelho-cl); color: #991b1b; }
.selo-nota.conferida { background: var(--verde-cl); color: var(--verde-esc); }
.nota-cab .nota-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.nota-cab .nota-total b { font-size: 1.5rem; }
.nota-cab .botoes { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .4rem; }
.nota-cab .botoes form { margin: 0; }
.chave-nfe { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; letter-spacing: .03em; word-break: break-word; margin: .5rem 0 0; color: var(--texto); }
.itens-nota { display: flex; flex-direction: column; gap: .45rem; }
.item-nota { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: .65rem .8rem; }
.item-nota.acima { border-color: #fcd34d; background: #fffbeb; }
.in-nome { font-weight: 600; font-size: .95rem; }
.in-linha { display: flex; justify-content: space-between; gap: .5rem; font-size: .92rem; margin: .15rem 0; }
.in-prod { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed var(--borda); font-size: .88rem; }
.totais-nota > div { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; font-size: .95rem; }
.totais-nota > div.total { border-top: 1px solid var(--borda); margin-top: .3rem; padding-top: .5rem; font-size: 1.05rem; }
.info-nota { white-space: normal; word-break: break-word; }
.cert h2 { margin-top: 0; }
.cert p { margin: .2rem 0; }
.leitor-chave .leitor-mira { left: 3%; right: 3%; height: 22%; }
