/* Noto Sans (Google Fonts, licença SIL OFL): igual em todos os aparelhos */
@font-face { font-family: 'Noto Sans'; src: url('fontes/noto-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pri:    #14213D;   /* navy escuro — sidebar, textos principais */
  --pri-cl: #1e2f57;
  --ac:     #A5BF13;   /* verde lima — destaques, receitas */
  --vm:     #D7263D;   /* vermelho — despesas */
  --am:     #E3B025;   /* amarelo — transferências */
  --cz:     #4a5568;
  --cz-cl:  #8a94a6;
  --bg:     #E5E5E5;
  --brd:    #d9d9d9;
  --br:     #ffffff;
  --sombra: 0 2px 8px rgba(20,33,61,.10);
}

body { font-family: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--pri); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
.oculto { display: none !important; }

/* ── BOTÕES ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px; font-size: .82rem; font-weight: 700;
  border: none; cursor: pointer; transition: filter .15s; white-space: nowrap; color: #fff;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-vm  { background: var(--vm); }
.btn-vd  { background: var(--ac); }
.btn-az  { background: var(--am); }
.btn-pri { background: var(--pri); }
.btn-sec { background: #fff; color: var(--pri); border: 1px solid var(--brd); }
.btn-full { width: 100%; }
.btn-mini { padding: 4px 9px; font-size: .74rem; }
.lnk { background: none; border: none; color: var(--cz); cursor: pointer; font-size: .8rem; padding: 2px 4px; border-radius: 4px; }
.lnk:hover { background: var(--bg); color: var(--pri); }
.lnk.perigo:hover { color: var(--vm); }

/* ── LOGIN ──────────────────────────────────────────── */
#tela-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--pri); }
.login-card { background: #fff; border-radius: 16px; padding: 32px 28px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.login-logo { width: 56px; height: 56px; align-self: center; }
.login-card h1 { text-align: center; font-size: 1.4rem; }
.login-sub { text-align: center; color: var(--cz); font-size: .85rem; margin-top: -8px; }
.erro { color: var(--vm); font-size: .8rem; min-height: 1em; text-align: center; }

/* ── FORMULÁRIOS ────────────────────────────────────── */
label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--cz); }
input, select, textarea { padding: 9px 10px; border: 1px solid var(--brd); border-radius: 7px; background: #fff; font-size: .9rem; font-weight: 400; color: var(--pri); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ac); outline-offset: -1px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { border: none; background: none; padding: 6px 12px; border-radius: 6px; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--cz); }
.seg button.ativo { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.check { flex-direction: row; align-items: center; gap: 8px; }
.check input { width: auto; }
.dica { font-size: .74rem; color: var(--cz-cl); font-weight: 400; }

/* ── SIDEBAR ────────────────────────────────────────── */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 68px;
  background: var(--pri); display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 4px; z-index: 150;
}
.sb-logo { color: var(--ac); font-weight: 900; font-size: 1.05rem; margin-bottom: 14px; }
.sb-item {
  width: 68px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.5); border: none; background: transparent; position: relative;
  transition: background .15s, color .15s;
}
.sb-item span { display: none; }
.sb-item:hover { background: rgba(165,191,19,.15); color: rgba(255,255,255,.9); }
.sb-item.ativo { background: rgba(165,191,19,.22); color: var(--ac); }
.sb-item svg { width: 20px; height: 20px; }
.sb-item::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: #000; color: #fff; padding: 5px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 300;
}
.sb-item:hover::after { opacity: 1; }
.sb-sep { width: 32px; height: 1px; background: rgba(255,255,255,.12); margin: 6px 0; }

/* ── CONTEÚDO ───────────────────────────────────────── */
#conteudo { margin-left: 68px; padding: 22px 24px 48px; max-width: 1240px; }
.topo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topo-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mes-sel { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.1); overflow: hidden; }
.mes-sel button { border: none; background: none; cursor: pointer; padding: 8px 15px; font-size: 1rem; color: var(--cz); }
.mes-sel button:hover { background: var(--bg); }
.mes-label { padding: 8px 10px; font-size: .9rem; font-weight: 700; min-width: 130px; text-align: center; }

h2.titulo { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2.titulo .acoes { margin-left: auto; display: flex; gap: 8px; }

/* ── CARDS / PAINÉIS ────────────────────────────────── */
.cards-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card { background: var(--br); border-radius: 12px; padding: 16px 18px; box-shadow: var(--sombra); }
.c-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cz-cl); margin-bottom: 6px; font-weight: 600; }
.c-val { font-size: 1.35rem; font-weight: 800; }
.c-sub { font-size: .74rem; color: var(--cz); margin-top: 4px; }
.pos { color: var(--pri); } .neg { color: var(--vm); } .rec { color: #6f8a00; } .des { color: var(--vm); } .trf { color: #b38600; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.painel { background: var(--br); border-radius: 12px; padding: 18px 20px; box-shadow: var(--sombra); min-width: 0; }
#view > .painel { margin-bottom: 18px; }
.painel h3 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.painel h3 small { font-weight: 400; color: var(--cz-cl); font-size: .74rem; }
.vazio { color: var(--cz-cl); font-size: .85rem; padding: 18px 0; text-align: center; }

/* Donut com legenda lateral */
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.donut-box { position: relative; height: 200px; }
.legenda { display: flex; flex-direction: column; gap: 13px; }
.leg-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px 10px; align-items: center; font-size: .86rem; }
.leg-cor { width: 10px; height: 10px; border-radius: 3px; }
.leg-barra { grid-column: 2 / 4; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.leg-barra div { height: 100%; }
.leg-val { font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.leg-val small { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--cz); font-size: .76rem; font-weight: 700; }
.leg-subs { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.leg-subs div { display: flex; justify-content: space-between; font-size: .74rem; color: var(--cz); }

/* Barras horizontais */
.barras { display: flex; flex-direction: column; gap: 10px; }
.barra-item { font-size: .8rem; }
.barra-top { display: flex; justify-content: space-between; margin-bottom: 4px; gap: 8px; }
.barra-top b { white-space: nowrap; }
.barra-fundo { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.barra-fundo div { height: 100%; border-radius: 4px; }

/* ── TABELA DE LANÇAMENTOS ──────────────────────────── */
.tabela { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tabela th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cz-cl); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--brd); }
.tabela td { padding: 9px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.tabela tr:last-child td { border-bottom: none; }
.tabela .num { text-align: right; white-space: nowrap; font-weight: 700; }
.tabela .acoes-cel { text-align: right; white-space: nowrap; }
.tabela .desc { font-weight: 600; }
.tabela .desc small { display: block; font-weight: 400; color: var(--cz-cl); font-size: .72rem; }
.faixa { width: 4px; padding: 0 !important; }
.faixa div { width: 4px; height: 30px; border-radius: 2px; }
.f-rec { background: var(--ac); } .f-des { background: var(--vm); } .f-trf { background: var(--am); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--bg); color: var(--pri); white-space: nowrap; }
.tab-scroll { overflow-x: auto; }
.pendente { opacity: .55; }

.abas { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--brd); flex-wrap: wrap; }
.abas button { border: none; background: none; padding: 9px 14px; font-weight: 600; font-size: .85rem; color: var(--cz); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.abas button.ativo { color: var(--pri); border-bottom-color: var(--ac); }
.filtros { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filtros input, .filtros select { width: auto; min-width: 160px; font-size: .82rem; padding: 7px 9px; }
.totais { display: flex; gap: 18px; font-size: .82rem; margin-bottom: 10px; flex-wrap: wrap; color: var(--cz); }
.totais b { color: var(--pri); }

/* ── CONTAS / CARTÕES ───────────────────────────────── */
.lista-itens { display: flex; flex-direction: column; }
.item-linha { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f0f0f0; cursor: pointer; border-radius: 8px; }
.item-linha:last-child { border-bottom: none; }
.item-linha:hover { background: #f7f7f7; }
.item-linha .nome { font-weight: 700; font-size: .9rem; }
.item-linha .sub { font-size: .74rem; color: var(--cz-cl); }
.item-linha .valor { margin-left: auto; font-weight: 800; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; overflow: hidden; box-shadow: 0 0 0 1px rgba(20,33,61,.10); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.cartoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cartao { background: linear-gradient(135deg, var(--pri), var(--pri-cl)); color: #fff; border-radius: 14px; padding: 18px; cursor: pointer; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 10px; }
.cartao:hover { filter: brightness(1.08); }
.cartao .ct-topo { display: flex; align-items: center; gap: 10px; }
.cartao .ct-nome { font-weight: 800; }
.cartao .ct-datas { font-size: .72rem; opacity: .7; }
.cartao .ct-val { font-size: 1.4rem; font-weight: 800; }
.cartao .ct-lim { height: 5px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.cartao .ct-lim div { height: 100%; background: var(--ac); }
.cartao .ct-prox { display: flex; justify-content: space-between; font-size: .72rem; opacity: .85; border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; }
.cartao .ct-prox div { text-align: center; }
.cartao .ct-prox b { display: block; font-size: .8rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; color: #fff; }
.b-paga   { background: var(--ac); }                       /* verde — paga */
.b-mal    { background: var(--vm); }                       /* vermelho — atrasada */
.b-vazia  { background: var(--am); }                       /* amarelo — sem gastos */
.b-aberta { background: #fff; color: var(--pri); box-shadow: inset 0 0 0 1px var(--brd); } /* aberta / pago em parte */

.voltar { margin-bottom: 12px; }

/* ── EMPRÉSTIMOS ────────────────────────────────────── */
.emp-resumo { background: var(--bg); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 24px; flex-wrap: wrap; }
.emp-resumo .c-label { margin-bottom: 2px; }
.emp-resumo .c-val { font-size: 1.3rem; }
.emp-resumo-dir { margin-left: auto; }
.emp { border: 1.5px solid var(--brd); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.emp.emp-mal { border-color: #fecaca; background: #fff5f5; }
.emp .emp-topo { display: flex; align-items: center; gap: 10px; }
.emp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.emp-nome { font-weight: 700; font-size: .9rem; }
.emp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: .73rem; color: var(--cz); }
.emp-nums b { display: block; color: var(--pri); font-size: .85rem; margin-top: 2px; }
.emp-nums b.des { color: var(--vm); }
.emp-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.emp-acoes { display: flex; gap: 6px; }
.emp-quitados { margin-top: 6px; }
/* ── SUPERMERCADO ─────────────────────────────────────── */
.super-compra { border: 1.5px solid var(--brd); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.super-compra summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; list-style: none; }
.super-compra summary::-webkit-details-marker { display: none; }
.super-compra summary small { display: block; font-size: .74rem; color: var(--cz-cl); font-weight: 400; }
.super-compra summary::before { content: '▸'; color: var(--cz-cl); margin-right: 2px; transition: transform .15s; }
.super-compra[open] summary::before { transform: rotate(90deg); }
.super-compra summary > span { flex: 1; }
.super-compra[open] summary { border-bottom: 1px solid var(--brd); }
.super-compra .tab-scroll, .super-compra .form-acoes { padding: 4px 12px 10px; }
.cupom-resumo { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: .84rem; }
.cupom-itens { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.cupom-item { border: 1px solid var(--brd); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.cupom-item-topo, .cupom-item-base { display: flex; align-items: center; gap: 8px; }
.cupom-item-topo input { flex: 1; padding: 6px 8px; font-weight: 600; }
.cupom-item-topo b { white-space: nowrap; }
.cupom-item-base select { width: auto; max-width: 55%; padding: 5px 8px; font-size: .8rem; }
.comp-mercados { display: flex; flex-wrap: wrap; gap: 6px 16px; }
#comp-resultado { max-height: 55vh; overflow-y: auto; }
#modal:has(.comp-form) { max-width: 760px; }
.top-linha .top-qtd { margin-left: auto; font-weight: 800; font-size: .82rem; background: var(--bg); color: var(--pri); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.top-linha .valor { margin-left: 14px; min-width: 110px; text-align: right; font-size: 1rem; }
.top-linha .valor small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 600; color: var(--cz); }
.tab-var td, .tab-var th { padding-left: 10px; padding-right: 10px; }
.evo-graf { position: relative; height: 280px; }
.rancho-qtd { width: 70px; padding: 5px 7px; text-align: right; }
.rancho-preco { width: 90px; padding: 5px 7px; text-align: right; }
.rancho-add input[name=produto] { flex: 1; min-width: 220px; }
.cod-barras { font-family: ui-monospace, Consolas, monospace; font-size: .7rem; letter-spacing: .02em; color: var(--cz); }

.emp-quitados summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--pri); padding: 10px 0; list-style-position: inside; }
.emp-quitados[open] summary { margin-bottom: 8px; }
@media (max-width: 600px) { .emp-nums { grid-template-columns: repeat(2, 1fr); } .emp-resumo-dir { margin-left: 0; } }
.progresso { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.progresso div { height: 100%; background: var(--ac); }

/* ── CATEGORIAS (gestão) ────────────────────────────── */
.cat-grupo { border-bottom: 1px solid #f0f1f4; padding: 15px 0; }
.cat-grupo:last-child { border-bottom: none; }
.cat-pai { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; }
.cat-mais { margin-left: auto; border: none; background: none; color: #b4bac6; font-size: .7rem; letter-spacing: 1px; padding: 6px 8px; margin-right: -8px; border-radius: 6px; cursor: pointer; }
.cat-mais:hover { background: #f6f7f9; color: var(--pri); }
.cat-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0 20px; }
.cat-sub { font-size: .79rem; color: #3d4659; background: #fff; border: 1px solid #e1e4ea; border-radius: 8px; padding: 5px 11px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cat-sub:hover { border-color: var(--pri); color: var(--pri); background: #f6f7f9; }
.cat-sub.nova { border-style: dashed; color: var(--cz-cl); }
.cat-form-acoes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cat-form-acoes .form-acoes { margin: 0 0 0 auto; }
.btn-excluir { background: none; color: var(--vm); padding-left: 0; }
.btn-excluir:hover { text-decoration: underline; }
.cor-ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── MODAL / TOAST ──────────────────────────────────── */
#modal-fundo { position: fixed; inset: 0; background: rgba(20,33,61,.55); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
#modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px 22px; }
.modal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-topo h3 { font-size: 1.05rem; }
#modal-fechar { border: none; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--cz); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--pri); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .85rem; z-index: 500; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
#toast.erro-t { background: var(--vm); }
#carregando { position: fixed; inset: 0; background: rgba(229,229,229,.6); z-index: 450; display: flex; align-items: center; justify-content: center; }
.spinner { width: 36px; height: 36px; border: 4px solid rgba(20,33,61,.15); border-top-color: var(--pri); border-radius: 50%; animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.boas-vindas { text-align: center; padding: 30px 20px; }
.boas-vindas h2 { margin-bottom: 8px; }
.boas-vindas p { color: var(--cz); font-size: .9rem; margin-bottom: 18px; max-width: 520px; margin-inline: auto; }
.boas-vindas .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Painéis com setinha: clique na linha mostra o detalhe */
.grid2.solta { align-items: start; }
.topo .seg { background: #fff; padding: 4px; }
.topo .seg button.ativo { background: var(--pri); color: #fff; box-shadow: none; }
.leg-nome { display: flex; align-items: center; gap: 6px; }
.leg-cab { display: contents; }
.leg-cab > * { cursor: pointer; }
.leg-seta { display: inline-flex; padding: 2px; border: none; background: none; color: #b4bac6; cursor: pointer; flex: none; transition: transform .2s, color .15s; }
.leg-cab:hover .leg-seta, .det-cab:hover .leg-seta { color: var(--pri); }
.leg-seta[aria-expanded="true"] { transform: rotate(90deg); color: var(--pri); }
.leg-detalhe { grid-column: 2 / 4; margin: 2px 0 8px; }
.det-sub { border-bottom: 1px solid #f0f1f4; }
.det-sub:last-child { border-bottom: none; }
.det-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; cursor: pointer; }
.det-cab .det-nome { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.det-cab .det-nome small { font-weight: 400; margin: 0; }
.det-itens { padding: 0 0 6px 14px; }
.det-prod { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #f0f1f4; cursor: pointer; }
.det-prod:last-child { border-bottom: none; }
.det-prod:hover .det-nome { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfd3dc; }
.det-nome { min-width: 0; font-size: .82rem; color: #3d4659; }
.det-nome small { display: block; margin-top: 1px; font-size: .72rem; color: var(--cz); }
.det-val { font-size: .82rem; font-weight: 600; color: #3d4659; white-space: nowrap; }

.g21 { grid-template-columns: 2fr 1fr; }
.so-cel, #fab, #sb-mais { display: none; }

/* ── RESPONSIVO ─────────────────────────────────────── */
@media (max-width: 1000px) {
  .cards-top { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid2.g21 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  #conteudo { margin-left: 0; padding: calc(16px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }

  /* barra de baixo: 5 itens + botão flutuante */
  #sidebar { top: auto; right: 0; width: auto; height: calc(66px + env(safe-area-inset-bottom)); flex-direction: row; padding: 0 4px env(safe-area-inset-bottom); gap: 0; }
  .sb-logo, .sb-sep, .sb-t { display: none !important; }
  .sb-item { display: none; width: auto; flex: 1 1 0; min-width: 0; height: 66px; flex-direction: column; gap: 5px; }
  .sb-item span { display: block; font-size: .68rem; font-weight: 600; white-space: nowrap; }
  .sb-item svg { width: 23px; height: 23px; }
  .sb-item::after { display: none; }
  .sb-item.ativo { background: none; }
  #fab { order: 2; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: 66px; border: none; background: none; cursor: pointer; }
  #fab span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ac); color: #fff; font-size: 1.8rem; line-height: 1; padding-bottom: 3px; }
  .modo-super .sb-item[data-aba=inicio], .modo-super .sb-item[data-aba=compras], .modo-super .sb-item[data-aba=precos], .modo-super #sb-money, .modo-super.sem-money #sb-mais, .modo-money .sb-item[data-aba=resumo], .modo-money .sb-item[data-aba=transacoes], .modo-money .sb-item[data-aba=cartoes], .modo-money #sb-mais { display: flex; }
  .modo-super.sem-money #sb-money, .modo-super:not(.sem-money) #sb-mais { display: none; }
  .sb-item[data-aba=inicio], .sb-item[data-aba=compras], .sb-item[data-aba=resumo], .sb-item[data-aba=transacoes] { order: 1; } .sb-item[data-aba=precos], .sb-item[data-aba=cartoes] { order: 3; } #sb-money { order: 4; } #sb-mais { order: 5; }
  .menu-cel { display: flex; flex-direction: column; }
  .menu-cel button { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border: none; border-bottom: 1px solid #f0f1f4; background: none; font-size: 1.05rem; font-weight: 600; text-align: left; cursor: pointer; }
  .menu-cel button:last-child { border-bottom: none; }
  .menu-cel svg { width: 24px; height: 24px; color: var(--cz); }
  .menu-cel i { width: 14px; height: 14px; border-radius: 50%; background: var(--vm); }
  .menu-cel .m-rec i { background: var(--ac); } .menu-cel .m-trf i { background: var(--am); }

  /* topo em uma linha só */
  .topo { flex-wrap: nowrap; gap: 10px; margin-bottom: 18px; }
  .topo-btns { display: none; }
  .topo .seg { flex: none; border-radius: 999px; }
  .topo .seg button { padding: 10px 14px; border-radius: 999px; font-size: .88rem; }
  .mes-sel { flex: 1; min-width: 0; justify-content: space-between; }
  .mes-sel button { padding: 11px 14px; font-size: 1.25rem; line-height: 1.1; }
  .mes-label { padding: 11px 0; min-width: 0; font-size: .95rem; white-space: nowrap; }

  /* títulos e botões de ação */
  h2.titulo { font-size: 1.4rem; margin: 4px 0 18px; }
  h2.titulo .acoes { width: 100%; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  h2.titulo .acoes .btn:only-child, h2.titulo .acoes .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .btn { min-height: 48px; font-size: .95rem; border-radius: 12px; padding: 10px 14px; white-space: normal; }
  .btn-mini { min-height: 40px; font-size: .86rem; padding: 8px 14px; border-radius: 10px; }
  .lnk { font-size: .95rem; padding: 9px 10px; }
  .acoes-cel .lnk, .c-sub .lnk { min-width: 38px; min-height: 38px; }

  /* cards e painéis com respiro */
  .cards-top { gap: 12px; margin-bottom: 16px; }
  .card { padding: 18px 16px; border-radius: 16px; min-width: 0; }
  .c-label { font-size: .72rem; line-height: 1.4; margin-bottom: 8px; }
  .c-val { font-size: 1.15rem; white-space: nowrap; letter-spacing: -.01em; }
  .c-sub { font-size: .82rem; line-height: 1.5; margin-top: 6px; }
  .cards-top .card:first-child:nth-last-child(4), .cards-top .card:first-child:nth-last-child(4) ~ .card:last-child { grid-column: 1 / -1; padding: 20px; }
  .cards-top .card:first-child:nth-last-child(4) .c-val { font-size: 1.9rem; }
  .cards-top .card:first-child:nth-last-child(4) ~ .card:last-child .c-val { font-size: 1.4rem; }
  .grid2 { gap: 16px; margin-bottom: 16px; }
  .painel { padding: 22px 18px; border-radius: 16px; }
  #view > .painel { margin-bottom: 16px; }
  .painel h3 { font-size: 1.08rem; margin-bottom: 18px; flex-wrap: wrap; gap: 6px 10px; }
  .painel h3 small { font-size: .84rem; line-height: 1.45; }
  .vazio { font-size: .95rem; padding: 26px 0; }
  .dica { font-size: .82rem; line-height: 1.5; }

  /* listas com setinha */
  .legenda { gap: 22px; }
  .leg-item { font-size: 1rem; gap: 10px 12px; grid-template-columns: 12px minmax(0, 1fr) auto; }
  .leg-cor { width: 12px; height: 12px; border-radius: 4px; }
  .leg-val { gap: 8px; }
  .leg-val small { font-size: .8rem; min-width: 48px; padding: 4px 8px; }
  .leg-barra { height: 8px; border-radius: 4px; grid-column: 1 / 4; }
  .leg-seta { padding: 8px; margin: -8px -6px; }
  .leg-detalhe, .leg-subs { grid-column: 1 / 4; }
  .leg-subs { gap: 8px; } .leg-subs div { font-size: .9rem; }
  .det-cab { padding: 14px 0; } .det-cab .det-nome { flex-wrap: wrap; gap: 4px 10px; } .det-cab .det-nome small { width: 100%; }
  .det-prod { padding: 14px 0; gap: 14px; }
  .det-nome { font-size: .98rem; line-height: 1.35; } .det-nome small { font-size: .84rem; margin-top: 4px; line-height: 1.45; }
  .det-val { font-size: .98rem; }
  .det-itens { padding-left: 12px; border-left: 2px solid #eef0f4; margin-bottom: 8px; }
  .item-linha { padding: 15px 0; gap: 14px; }
  .item-linha .nome { font-size: 1rem; line-height: 1.3; } .item-linha .sub { font-size: .84rem; margin-top: 3px; line-height: 1.4; }
  .item-linha .valor { font-size: 1rem; }
  .avatar { width: 44px; height: 44px; }
  .top-linha { flex-wrap: wrap; gap: 10px 12px; }
  .top-linha > div:nth-child(2) { flex: 1 0 calc(100% - 24px); }
  .top-linha .top-qtd { margin-left: 24px; font-size: .86rem; padding: 6px 12px; }
  .top-linha .valor { margin-left: auto; min-width: 0; font-size: 1.05rem; } .top-linha .valor small { font-size: .82rem; }

  /* campos: 16px evita o zoom automático do iPhone */
  label { font-size: .88rem; gap: 7px; }
  input, select, textarea, .filtros input, .filtros select { font-size: 16px; padding: 12px 13px; border-radius: 12px; min-width: 0; }
  .form { gap: 16px; }
  .form-linha { grid-template-columns: 1fr; gap: 16px; }
  .form-acoes { gap: 10px; margin-top: 10px; } .form-acoes .btn { flex: 1; }
  .cat-form-acoes { flex-wrap: wrap; } .cat-form-acoes .form-acoes { width: 100%; order: -1; } .btn-excluir { width: 100%; }
  .filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
  .filtros > * { grid-column: 1 / -1; width: 100%; }
  .filtros .btn:not([type=submit]) { grid-column: auto; }
  .filtros .btn-vd:not([type=submit]) { grid-column: 1 / -1; }
  .rancho-add input[name=qtd] { grid-column: auto; width: 100% !important; } .rancho-add .btn { grid-column: auto; }
  .abas { gap: 0; flex-wrap: nowrap; margin-bottom: 18px; } .abas button { flex: 1 1 auto; padding: 12px 2px; font-size: .86rem; }
  .totais { font-size: .92rem; gap: 8px 18px; margin-bottom: 8px; }
  .pill { font-size: .8rem; padding: 4px 11px; }

  /* tabelas viram blocos: nada de arrastar para o lado */
  .tabela .col-opc, .linhas .col-cat, .linhas .col-data { display: none; }
  .tab-scroll { overflow-x: visible; }
  .tabela, .tabela tbody { display: block; font-size: .98rem; }
  .tabela thead { display: none; }
  .tabela tr { display: block; padding: 16px 0; border-bottom: 1px solid #eef0f4; }
  .tabela tr:last-child { border-bottom: none; }
  .tabela td { display: block; padding: 0; border: none; min-width: 0; }
  .tabela .desc { line-height: 1.35; } .tabela .desc small { font-size: .84rem; margin-top: 4px; line-height: 1.45; }
  .linhas .so-cel { display: block; font-weight: 400; font-size: .84rem; color: var(--cz-cl); margin-top: 4px; line-height: 1.5; }
  .linhas tr { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 4px 12px; }
  .linhas .faixa { grid-row: 1 / 3; } .linhas .faixa div { height: 100%; min-height: 40px; }
  .linhas .desc { grid-column: 2; grid-row: 1 / 3; }
  .linhas .num { grid-column: 3; grid-row: 1; }
  .linhas .acoes-cel { grid-column: 3; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 110px; justify-self: end; color: var(--cz-cl); }
  .tab-var tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: 20px 0; }
  .tab-var td.desc { grid-column: 1 / 4; font-size: 1.02rem; }
  .tab-var td.preco-hoje { grid-column: 4; text-align: right; justify-self: end; }
  .tab-var td.preco-hoje b { font-size: 1.05rem; }
  .tab-var td.cel-var { text-align: center; }
  .tab-var td.cel-var::before { content: attr(data-l); display: block; font-size: .76rem; color: var(--cz-cl); margin-bottom: 6px; }
  .tab-var td.cel-var .cx-pct { width: 100%; min-width: 0; padding: 8px 2px; font-size: .82rem; }
  .tab-var td.cel-var small { font-size: .74rem; } .tab-var td.cel-var small span { display: none; }
  .tab-var td.cel-var:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; background: #f6f7f9; border-radius: 14px; padding: 12px 14px; text-align: left; }
  .tab-var td.cel-var:nth-child(3)::before { grid-column: 1; grid-row: 1; font-size: .9rem; font-weight: 600; color: var(--pri); margin: 0; align-self: end; }
  .tab-var td.cel-var:nth-child(3) small { grid-column: 1; grid-row: 2; font-size: .84rem; margin: 0; align-self: start; } .tab-var td.cel-var:nth-child(3) small span { display: inline; }
  .tab-var td.cel-var:nth-child(3) .cx-pct { grid-column: 2; grid-row: 1 / 3; width: auto; min-width: 100px; padding: 11px 14px; font-size: 1rem; }
  .tab-merc td + td { margin-top: 10px; line-height: 1.9; }
  .tab-itens tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; }
  .tab-itens .desc { grid-column: 1 / 4; }
  .tab-itens td:nth-child(3) { color: var(--cz); } .tab-itens td:nth-child(4) { text-align: left; color: var(--cz); } .tab-itens td:nth-child(4)::before { content: '× '; }
  .tab-itens .desc small { font-size: .78rem; }
  .tab-rancho tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; }
  .tab-rancho .desc { grid-column: 1 / 3; } .tab-rancho .acoes-cel { grid-column: 3; grid-row: 1; } .tab-rancho .acoes-cel .lnk { font-size: 1.4rem; }
  .rancho-qtd { width: 76px; } .rancho-preco { width: 110px; }
  .tab-rancho td:nth-child(3) { text-align: left; font-weight: 600; white-space: normal; }
  .tab-rot td:not(.desc) { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 10px; text-align: right; }
  .tab-rot td:not(.desc)::before { content: attr(data-l); font-weight: 400; color: var(--cz); font-size: .9rem; text-align: left; }
  .tab-hist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tab-hist td:nth-child(1) { font-weight: 600; } .tab-hist td:nth-child(2), .tab-hist td:nth-child(3) { grid-column: 1; color: var(--cz); font-size: .88rem; }
  .tab-hist td:nth-child(4) { grid-column: 2; grid-row: 1; } .tab-hist td:nth-child(5) { grid-column: 2; grid-row: 2; }

  /* compras, cartões, empréstimos e categorias */
  .super-compra { border-radius: 14px; margin-bottom: 12px; border-width: 1px; } .super-compra summary { padding: 18px 16px; font-size: .98rem; } .super-compra summary small { font-size: .84rem; margin-top: 4px; line-height: 1.45; }
  .super-compra .tab-scroll, .super-compra .form-acoes { padding: 4px 16px 14px; }
  .cartoes-grid { grid-template-columns: minmax(0, 1fr); } .cartao { padding: 22px; border-radius: 18px; gap: 16px; }
  .cartao .ct-nome { font-size: 1.05rem; } .cartao .ct-datas, .cartao .ct-prox { font-size: .84rem; line-height: 1.5; } .cartao .ct-prox b { font-size: .95rem; margin-top: 2px; } .cartao .ct-val { font-size: 1.7rem; } .cartao .ct-lim { height: 7px; }
  .badge { font-size: .78rem; padding: 5px 12px; }
  .barras { gap: 18px; } .barra-item { font-size: .95rem; } .barra-top { margin-bottom: 8px; }
  .emp { padding: 20px 18px; gap: 16px; border-radius: 16px; } .emp-nome { font-size: 1.05rem; } .emp-nums { gap: 16px; font-size: .86rem; } .emp-nums b { font-size: 1.02rem; }
  .emp-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 18px; border-radius: 14px; } .emp-resumo .c-val { font-size: 1.1rem; }
  .emp-acoes { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .emp-acoes .btn-vd { grid-column: 1 / -1; }
  .cat-grupo { padding: 20px 0; } .cat-pai { font-size: 1.02rem; } .cat-mais { padding: 12px; margin-right: -12px; font-size: .8rem; }
  .cat-subs { margin: 12px 0 0; gap: 10px; } .cat-sub { font-size: .92rem; padding: 10px 14px; border-radius: 10px; }
  .evo-graf { height: 300px; }

  /* janelas sobem de baixo, na largura toda */
  #modal-fundo { align-items: flex-end; padding: 0; }
  #modal, #modal:has(.comp-form) { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal-topo { margin-bottom: 18px; } .modal-topo h3 { font-size: 1.2rem; line-height: 1.3; }
  #modal-fechar { font-size: 2rem; width: 44px; height: 44px; margin-right: -10px; flex: none; }
  .seg button { padding: 10px 14px; font-size: .9rem; }
  .cupom-item { padding: 14px; gap: 10px; } .cupom-item-topo, .cupom-item-base { flex-wrap: wrap; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); font-size: .95rem; text-align: center; }
}
@media (max-width: 374px) { .topo .seg button { padding: 10px 10px; } .mes-sel button { padding: 11px 9px; } .mes-label { font-size: .86rem; } }

/* ── LARRY.IA ───────────────────────────────────────── */
body.lia-aberta { overflow: hidden; }
#larryia { position: fixed; inset: 0; z-index: 350; display: flex; justify-content: flex-end; }
.lia-veu { position: absolute; inset: 0; background: rgba(20,33,61,.45); }
.lia-painel { position: relative; width: 460px; max-width: 100%; height: 100vh; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(20,33,61,.25); }
.lia-topo { background: #fff; padding: calc(16px + env(safe-area-inset-top)) 16px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eef0f4; }
.lia-topo b { font-size: 1.05rem; } .lia-topo small { display: block; color: var(--cz-cl); font-size: .82rem; }
.lia-volta { border: none; background: none; font-size: 2rem; line-height: 1; color: var(--cz); cursor: pointer; padding: 2px 10px 8px 4px; }
.lia-av { width: 42px; height: 42px; border-radius: 50%; background: var(--pri); color: var(--ac); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: .95rem; flex: none; }
.lia-av.g { width: 76px; height: 76px; font-size: 1.6rem; }
#lia-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.lia-m { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; flex: none; }
.lia-m.l { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; } .lia-m.v { background: var(--pri); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.lia-m.largo { max-width: none; width: 100%; } .lia-m.v:has(.lia-foto) { padding: 6px; }
.lia-foto { display: block; width: 150px; max-height: 210px; object-fit: cover; border-radius: 11px; }
.lia-lendo { display: flex; align-items: center; gap: 10px; color: var(--cz); } .lia-lendo span { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #e1e4ea; border-top-color: var(--ac); animation: gira .8s linear infinite; }
.lia-card { margin-top: 12px; border: 1px solid #e8ebf0; border-radius: 14px; padding: 14px; }
.lia-cab, .lia-fim { display: flex; justify-content: space-between; gap: 12px; } .lia-cab { padding-bottom: 10px; border-bottom: 1px solid #eef0f4; } .lia-cab > b, .lia-fim > b { white-space: nowrap; } .lia-cab small, .lia-fim small { display: block; color: var(--cz-cl); font-size: .82rem; }
.lia-it { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: .92rem; line-height: 1.35; border-bottom: 1px solid #f4f5f7; } .lia-it i { width: 9px; height: 9px; border-radius: 3px; margin-top: 6px; flex: none; } .lia-it > div { flex: 1; min-width: 0; } .lia-it small { display: block; color: var(--cz-cl); font-size: .79rem; margin-top: 2px; } .lia-it > b { white-space: nowrap; }
.lia-it em { font-style: normal; font-size: .7rem; font-weight: 700; background: var(--am); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.lia-ok { color: #6f8a00; font-weight: 700; font-size: .88rem; padding-top: 11px; }
.lia-al { background: #fdf6df; border-radius: 10px; padding: 10px 12px; margin-top: 11px; font-size: .88rem; }
.lia-pg { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; border: none; background: none; padding: 13px 0; font-size: .92rem; cursor: pointer; } .lia-pg + .lia-pg { border-top: 1px solid #f4f5f7; } .lia-pg.fixo { cursor: default; } .lia-pg span { color: var(--cz); flex: none; } .lia-pg b { text-align: right; }
.lia-bts { display: flex; gap: 8px; margin-top: 4px; } .lia-bts .btn { flex: 1; min-height: 48px; border-radius: 12px; font-size: .95rem; } .lia-bts .btn-vd { flex: 1.5; }
.lia-chips { display: flex; flex-wrap: wrap; gap: 8px; } .lia-chips button { background: #fff; border: 1px solid #d6dae3; border-radius: 999px; padding: 10px 16px; font-size: .9rem; font-weight: 700; cursor: pointer; } .lia-chips button:hover { border-color: var(--pri); }
.lia-var { border-top: 1px solid #eef0f4; margin-top: 10px; padding-top: 8px; font-size: .9rem; } .lia-var div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; } .lia-var small { color: var(--cz-cl); }
.lia-vazio { margin: auto; max-width: 340px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; } .lia-vazio h2 { font-size: 1.35rem; } .lia-vazio p { color: var(--cz); line-height: 1.5; } .lia-vazio .btn { width: 100%; min-height: 54px; border-radius: 14px; font-size: 1rem; } .lia-vazio svg, .lia-cam svg { width: 22px; height: 22px; }
#lia-form { background: #fff; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; border-top: 1px solid #eef0f4; } #lia-txt { border-radius: 999px; padding: 12px 16px; font-size: 16px; min-width: 0; }
.lia-cam, .lia-env { border: none; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; } .lia-cam { width: 46px; height: 46px; background: var(--ac); color: #fff; } .lia-env { width: 42px; height: 42px; background: var(--pri); color: #fff; font-size: 1.2rem; }
#larryia.ocupado .lia-cam, #larryia.ocupado .lia-env, #larryia.ocupado .lia-bts .btn { opacity: .5; pointer-events: none; }
.lia-edl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-cel .m-lia { background: #f5f8e6; border: 1.5px solid var(--ac); border-radius: 16px; padding: 14px; margin-bottom: 6px; } .menu-cel .m-lia:last-child { border-bottom: 1.5px solid var(--ac); } .m-lia small { display: block; font-weight: 400; color: var(--cz); font-size: .86rem; margin-top: 2px; }

/* Variação de preços: porcentagem em retângulo */
.cx-pct { display: inline-block; min-width: 84px; padding: 7px 10px; border-radius: 8px; font-size: .84rem; font-weight: 800; color: #fff; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-pct.sobe { background: var(--vm); } .cx-pct.cai { background: var(--ac); } .cx-pct.igual { background: #e9ebef; color: var(--cz); } .cx-pct.sem { background: none; color: #c3c8d2; font-weight: 400; }
.tab-var .cel-var { text-align: center; } .tab-var td.cel-var small { display: block; margin-top: 5px; font-size: .74rem; color: var(--cz-cl); white-space: nowrap; }
.tab-var .preco-hoje { white-space: nowrap; } .tab-var .preco-hoje small { display: block; margin-top: 3px; font-size: .74rem; color: var(--cz-cl); }
@media (min-width: 761px) { .tab-var td { padding-top: 13px; padding-bottom: 13px; } .tab-var tbody tr:hover td { background: #f8f9fb; } .tab-var .preco-hoje b { font-size: .95rem; } }

/* Evolução de preço: filtros combináveis */
.evo-filtros { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.evo-op { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 16px; } .evo-op select { width: auto; font-size: .84rem; padding: 8px 10px; } .evo-op .seg { margin: 0; }
.combo { position: relative; min-width: 0; } .combo label { font-size: .74rem; gap: 5px; } .combo input, .filtros .combo input { font-size: .86rem; padding: 9px 30px 9px 12px; min-width: 0; width: 100%; text-overflow: ellipsis; cursor: pointer; border-radius: 9px; } .combo input:focus { cursor: text; }
.combo-v { position: absolute; right: 11px; bottom: 12px; color: #a3abb9; pointer-events: none; } .combo-x { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border: none; background: none; color: var(--cz); font-size: 1.15rem; line-height: 1; cursor: pointer; border-radius: 8px; } .combo-x:hover { background: #eef2d8; }
.super-filtros { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1fr auto; gap: 10px; margin-bottom: 18px; } .super-filtros > input { font-size: .86rem; padding: 9px 12px; border-radius: 9px; } .super-filtros .combo input, .super-filtros > input { border-color: transparent; box-shadow: 0 1px 4px rgba(20,33,61,.08); } .super-filtros .combo.cheio input { border-color: var(--ac); } .super-filtros .btn { border: none; box-shadow: 0 1px 4px rgba(20,33,61,.08); }
.var-filtros .combo { width: 240px; } .combo.cheio input { border-color: var(--ac); background: #f9fbef; font-weight: 600; }
.combo-lista { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; min-width: 100%; max-width: 330px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #e1e4ea; border-radius: 12px; box-shadow: 0 10px 28px rgba(20,33,61,.18); padding: 6px; }
.evo-filtros .combo:last-child .combo-lista { left: auto; right: 0; }
.combo-lista button { width: 100%; display: flex; align-items: center; gap: 11px; border: none; background: none; border-radius: 8px; padding: 9px 10px; text-align: left; font-size: .88rem; cursor: pointer; }
.combo-lista button > span:not(.leg-cor) { flex: 1; min-width: 0; } .combo-lista .leg-cor { flex: none; } .combo-lista small { display: block; font-size: .74rem; color: var(--cz-cl); margin-top: 1px; } .combo-lista em { font-style: normal; font-size: .78rem; color: var(--cz-cl); }
.combo-lista button:hover, .combo-lista button.foco { background: #f1f3f6; } .combo-lista button.atual { font-weight: 700; }
.evo-linhas { margin: 16px 0 10px; } .evo-linhas > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f1f4; font-size: .88rem; } .evo-linhas .leg-cor { flex: none; } .evo-nome { flex: 1; min-width: 0; font-weight: 600; } .evo-nome small { display: block; font-weight: 400; font-size: .76rem; color: var(--cz-cl); margin-top: 1px; } .evo-val { color: var(--cz); white-space: nowrap; } .evo-val b { color: var(--pri); }
@media (max-width: 1000px) { .evo-filtros { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) {
  .evo-filtros { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 10px; } .evo-filtros .combo:last-child { grid-column: 1 / -1; } .super-filtros { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .super-filtros > *:nth-child(-n+2), .super-filtros > .btn { grid-column: 1 / -1; } .super-filtros > input { font-size: 16px; padding: 13px 14px; border-radius: 12px; } .var-filtros .combo { width: 100%; } .combo-v { bottom: 17px; } .combo-x { width: 40px; height: 40px; bottom: 4px; font-size: 1.35rem; } .combo label { font-size: .84rem; gap: 6px; } .combo input, .filtros .combo input { font-size: 16px; padding: 13px 34px 13px 13px; border-radius: 12px; }
  .combo-lista { max-height: 46vh; width: calc(100vw - 68px); max-width: none; } .super-filtros .combo-lista { width: calc(100vw - 32px); } .evo-filtros .combo:nth-child(even) .combo-lista, .super-filtros .combo:nth-child(4) .combo-lista { left: auto; right: 0; } .super-filtros .combo:nth-child(1) .combo-lista, .evo-filtros .combo:last-child .combo-lista, .var-filtros .combo-lista { width: 100%; } .combo-lista button { padding: 14px 12px; font-size: 1rem; } .combo-lista small { font-size: .84rem; }
  .evo-op { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0; } .evo-op .seg { display: flex; } .evo-op .seg button { flex: 1; padding: 11px; font-size: .92rem; } .evo-op select { width: 100%; font-size: 16px; padding: 12px 13px; }
  .evo-linhas > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; font-size: .96rem; } .evo-linhas .cx-pct { grid-column: 3; grid-row: 1 / 3; } .evo-val { grid-column: 2; white-space: normal; font-size: .9rem; } .evo-nome small { font-size: .84rem; }
}

/* ── ÍCONES E CATEGORIAS ────────────────────────────── */
h2.titulo .acoes { flex-wrap: wrap; justify-content: flex-end; }
.ic { --c: #64748b; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.ic svg { width: 62%; height: 62%; } .ic.g { width: 60px; height: 60px; border-radius: 18px; } .ic.p { width: 28px; height: 28px; border-radius: 9px; } .ic.m { width: 20px; height: 20px; border-radius: 6px; background: none; } .ic.m svg { width: 100%; height: 100%; }
.leg-item.com-ic { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 13px; } .leg-item.com-ic .ic { grid-row: 1 / 3; grid-column: 1; align-self: center; } .leg-item.com-ic .leg-barra { grid-column: 2 / 4; }
.leg-item.com-ic .leg-detalhe, .leg-item.com-ic .leg-subs { grid-column: 2 / 4; }
.pill { display: inline-flex; align-items: center; gap: 6px; } .pill .ic.m { width: 17px; height: 17px; } .cat-pai .ic { width: 34px; height: 34px; border-radius: 11px; } .cat-subs { margin-left: 44px; } .cm-sem .cat-subs { margin-left: 0; }
.top-linha { align-items: center; } .prod-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.lia-it .ic.p { margin-top: -2px; }
.cs-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 26px; } .cs-item { display: flex; align-items: center; gap: 13px; padding: 12px 6px; border: none; border-bottom: 1px solid #f0f1f4; background: none; text-align: left; border-radius: 10px; cursor: pointer; } .cs-item:disabled { cursor: default; } .cs-item:not(:disabled):hover { background: #f8f9fb; } .cs-item .ic { width: 42px; height: 42px; } .cs-item > span:nth-child(2) { flex: 1; min-width: 0; } .cs-item b { font-size: .92rem; font-weight: 600; } .cs-item small { display: block; color: var(--cz-cl); font-size: .78rem; margin-top: 1px; } .cs-item em { font-style: normal; font-size: .8rem; color: var(--cz-cl); }
.sv { border: none; padding: 0; margin: 0; min-width: 0; } .sv legend { font-size: .78rem; font-weight: 600; color: var(--cz); margin-bottom: 8px; padding: 0; } .sv input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.sv-cores { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .sv-cores label { position: relative; display: block; cursor: pointer; } .sv-cores i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--c); } .sv-cores input:checked + i { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--pri); } .sv input:focus-visible + i, .sv input:focus-visible + .ic { outline: 3px solid var(--ac); outline-offset: 3px; }
.sv-busca { margin-bottom: 10px; } .sv-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; max-height: 216px; overflow-y: auto; padding: 4px; } .sv-icones label { position: relative; display: flex; justify-content: center; cursor: pointer; } .sv-icones .ic { width: 46px; height: 46px; border-radius: 14px; } .sv-icones input:checked + .ic { box-shadow: 0 0 0 2.5px var(--pri); }
.sv-previa { display: flex; align-items: center; gap: 15px; background: #f6f7f9; border-radius: 16px; padding: 14px; } .sv-previa b { font-size: 1.05rem; } .sv-previa small { display: block; color: var(--cz-cl); }
/* Comparar supermercados */
.comp-filtros { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 10px; } .comp-filtros .combo input { border-color: transparent; box-shadow: 0 1px 4px rgba(20,33,61,.08); } .comp-filtros .combo.cheio input { border-color: var(--ac); } .comp-filtros .combo:last-child .combo-lista { left: auto; right: 0; }
.comp-mk { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0; } .comp-mk button { border: none; background: #fff; border-radius: 999px; padding: 9px 15px; font-size: .84rem; font-weight: 600; color: var(--cz-cl); cursor: pointer; } .comp-mk .on { background: var(--pri); color: #fff; }
.comp-seg { background: #fff; padding: 4px; margin-bottom: 16px; } .comp-seg button.ativo { background: var(--pri); color: #fff; box-shadow: none; }
.ce { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; } .ce-c { border: 1px solid #e8ebf0; border-radius: 14px; padding: 15px; } .ce-c .cx-pct { min-width: 0; padding: 3px 9px; font-size: .74rem; margin-bottom: 8px; } .ce-c b { display: block; font-size: .9rem; font-weight: 600; } .ce-c strong { font-size: 1.35rem; } .ce-c.win { border-color: var(--ac); background: #f9fbef; } .ce-par + .ce-par { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f1f4; } .ce-par > small { display: block; color: var(--cz-cl); margin-bottom: 8px; }
.cp { padding: 16px 0; border-top: 1px solid #f0f1f4; } .cp:first-of-type { border-top: none; padding-top: 0; } .cp-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; cursor: pointer; } .cp-cab > div { flex: 1; min-width: 0; } .cp-cab b { font-size: .94rem; } .cp-cab small { display: block; color: var(--cz-cl); font-size: .78rem; } .cp-cab > span:last-child { font-size: .78rem; color: var(--cz); white-space: nowrap; }
.cp-l { display: grid; grid-template-columns: 150px 1fr 82px 100px; gap: 12px; align-items: center; font-size: .88rem; padding: 6px 0; } .cp-b { height: 10px; border-radius: 5px; background: #eef0f3; overflow: hidden; } .cp-b u { display: block; height: 100%; background: #c3c9d4; border-radius: 5px; } .cp-l em { font-style: normal; font-size: .76rem; color: var(--cz-cl); } .cp-l strong { justify-self: end; white-space: nowrap; } .cp-l.win .cp-b u { background: var(--ac); } .cp-l.win strong, .cm.win strong { background: var(--ac); color: #fff; border-radius: 8px; padding: 6px 10px; }
.cm { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f1f4; cursor: pointer; } .cm b { font-size: .92rem; font-weight: 600; } .cm small { display: block; color: var(--cz-cl); font-size: .8rem; margin-top: 2px; } .cm strong { white-space: nowrap; } .cm-t { display: inline-flex; align-items: center; gap: 10px; } .cm-mais { margin-top: 12px; } .cm-sem summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
@media (max-width: 1000px) { .cs-grade { grid-template-columns: 1fr 1fr; } .comp-filtros { grid-template-columns: 1fr 1fr; } .comp-filtros .combo:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .ic { width: 42px; height: 42px; border-radius: 13px; } .leg-item.com-ic { grid-template-columns: 42px minmax(0, 1fr) auto; } .leg-item.com-ic .leg-detalhe, .leg-item.com-ic .leg-subs { grid-column: 1 / 4; }
  .top-linha .ic { align-self: flex-start; } .top-linha > div:nth-child(2) { flex: 1 0 calc(100% - 56px); } .top-linha .top-qtd { margin-left: 54px; }
  .cs-grade { grid-template-columns: minmax(0, 1fr); } .cs-item { padding: 14px 2px; } .cs-item b { font-size: 1rem; } .cs-item small { font-size: .84rem; } .cat-subs { margin-left: 0; }
  .sv legend { font-size: .88rem; } .comp-mk button { padding: 12px 17px; font-size: .92rem; } .comp-seg { display: flex; } .comp-seg button { flex: 1; padding: 12px 4px; }
  .comp-filtros .combo-lista { width: calc(100vw - 32px); } .comp-filtros .combo:first-child .combo-lista { width: 100%; } .comp-filtros .combo:nth-child(odd):not(:first-child) .combo-lista { left: auto; right: 0; }
  .ce { grid-template-columns: minmax(0, 1fr); } .cp-cab { flex-wrap: wrap; } .cp-cab > span:last-child { width: 100%; padding-left: 40px; } .cp-l { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; font-size: .95rem; padding: 9px 0; } .cp-b { grid-column: 1 / -1; grid-row: 2; height: 8px; }
  .cm b { font-size: .98rem; } .cm small { font-size: .84rem; } #modal .combo-lista { position: static; width: 100%; max-height: 220px; margin-top: 6px; box-shadow: none; }
  h2.titulo > .btn { min-height: 42px; }
}
#modal .combo input { border-color: var(--brd); } #modal .combo-lista { max-width: 100%; }

/* Mascote e respostas da Larry.IA */
.masc { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #eef3cf; overflow: hidden; } .masc svg { width: 84%; height: 84%; } .masc.g { width: 150px; height: 150px; background: none; overflow: visible; } .masc.g svg { width: 100%; height: 100%; } .masc.p { width: 30px; height: 30px; }
.masc.lendo svg { animation: masc-lendo 1.1s ease-in-out infinite; } .masc.feliz svg { animation: masc-feliz .5s ease-out 2; } .masc.g.normal svg { animation: masc-oi 3s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes masc-lendo { 50% { transform: translateY(2px) rotate(-5deg); } } @keyframes masc-feliz { 50% { transform: translateY(-4px) rotate(6deg); } } @keyframes masc-oi { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .masc svg { animation: none !important; } }
.lia-com { display: flex; align-items: flex-end; gap: 8px; } .lia-com .lia-m { max-width: calc(100% - 48px); } .lia-com .masc.p { width: 36px; height: 36px; }
.lia-tab { border-top: 1px solid #eef0f4; margin: 9px 0 4px; padding-top: 6px; } .lia-tab div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; font-size: .9rem; line-height: 1.3; } .lia-tab span { min-width: 0; } .lia-tab b { white-space: nowrap; } .lia-nota { display: block; color: var(--cz-cl); font-size: .8rem; margin-top: 6px; } .lia-m .cx-pct { min-width: 0; padding: 3px 8px; font-size: .78rem; border-radius: 6px; }
.lia-vazio .lia-chips { justify-content: center; } .btn-lia .masc.p { width: 24px; height: 24px; background: none; } .btn-lia { gap: 7px; }
#larryia.ocupado .lia-chips button { opacity: .5; pointer-events: none; }

/* Supermercados: carrinho com iniciais ou logo */
.mk-av { display: block; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(20,33,61,.08); } .mk-av img, .mk-av svg, .mk-av canvas { display: block; width: 100%; height: 100%; object-fit: cover; } .mk-ic text { font-family: inherit; }
.mk { grid-row: 1 / 3; grid-column: 1; align-self: center; border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; } .mk:hover .mk-av { box-shadow: 0 0 0 3px rgba(165,191,19,.45); } .leg-item.com-ic:has(> .mk) { grid-template-columns: 42px minmax(0, 1fr) auto; }
.super-compra summary > .mk-av { flex: none; width: 38px; height: 38px; margin-right: 4px; } .super-compra summary .sc-nome { flex: 1; min-width: 0; }
.mk-previa .mk-av { width: 92px; height: 92px; } .mk-previa canvas { cursor: grab; touch-action: none; } .mk-bts { display: flex; gap: 10px; } .mk-bts .btn { flex: 1; justify-content: center; } #mk-zoom label { margin: 0; } #mk-zoom input[type=range] { padding: 0; width: 100%; accent-color: var(--pri); } #mk-zoom .dica { margin: 6px 0 0; }
@media (max-width: 760px) { .mk-av { width: 46px; height: 46px; } .leg-item.com-ic:has(> .mk) { grid-template-columns: 46px minmax(0, 1fr) auto; } }

/* Lançar por texto */
.ll-tit { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .ll-tit button { border: none; background: none; color: var(--cz-cl); font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 6px 0; white-space: nowrap; }
.ll-valor { display: block; width: 100%; text-align: left; border: none; background: none; padding: 0 0 12px; font-size: 1.5rem; font-weight: 800; cursor: pointer; } .ll-valor.despesa { color: var(--des, #D7263D); } .ll-valor.receita { color: #6f8700; }
.lia-pg b .ic.p { vertical-align: middle; margin-right: 8px; }
.lia-bts.tres { flex-wrap: wrap; } .lia-bts.tres .btn-vd { flex: 1 0 100%; }

/* ── SUPER LARRY ── */
#sb-money, #marca-top { display: none; } .sem-money .sb-t { display: none; } .sem-money .sb-item[data-aba=resumo], .sem-money .sb-item[data-aba=transacoes], .sem-money .sb-item[data-aba=contas], .sem-money .sb-item[data-aba=cartoes], .sem-money .sb-item[data-aba=categorias], .sem-money .sb-item[data-aba=emprestimos] { display: none !important; }
.modo-super .topo-btns [data-novo] { display: none; }
.sb-logo svg { width: 36px; height: 34px; display: block; } .sb-logo .sl-nome { display: none; } .mt-lg svg { width: 27px; height: 25px; } .sl-nome { display: block; width: auto; height: 21px; } .sb-t { display: none; }
#sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; } .login-logo { width: 236px; height: auto; margin-bottom: 4px; }
.mt-lg { width: 42px; height: 42px; border-radius: 12px; background: #1e2f57; display: grid; place-items: center; flex: none; }  .mt-money { background: var(--ac); color: var(--pri); font-weight: 900; font-size: 1rem; }
.seg-sl { display: flex; background: #fff; border-radius: 999px; padding: 4px; margin-bottom: 18px; max-width: 520px; } .seg-sl button { flex: 1; padding: 10px 8px; border-radius: 999px; font-size: .9rem; } .seg-sl button.ativo { background: var(--pri); color: #fff; box-shadow: none; }
.sl-cards { grid-template-columns: repeat(3, 1fr); } .sl-cards .cx-pct { min-width: 0; padding: 2px 8px; font-size: .74rem; }
.sl-foto, .sl-money { width: 100%; display: flex; align-items: center; gap: 16px; border: none; border-radius: 16px; padding: 16px 20px; text-align: left; cursor: pointer; margin-bottom: 18px; } .sl-foto { background: var(--ac); color: var(--pri); } .sl-foto svg { width: 30px; height: 30px; flex: none; } .sl-foto b, .sl-money b { display: block; font-size: 1.02rem; } .sl-foto small, .sl-money small { font-size: .84rem; opacity: .85; }
.sl-money { background: var(--pri); color: #fff; } .sl-money i { margin-left: auto; font-style: normal; font-size: 1.5rem; opacity: .7; } .sl-sub, .sl-prod { cursor: pointer; } .sl-sub > div, .sl-prod > div:nth-child(2) { flex: 1; min-width: 0; }
.sl-vazio { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 22px; } .sl-vazio p { max-width: 420px; color: var(--cz); } .sl-vazio .sl-foto { max-width: 420px; margin: 6px 0 0; } .sl-vazio .btn { width: 100%; max-width: 420px; }
.painel h3 .lnk { float: right; font-weight: 600; } #sl-prods .btn { margin-top: 14px; }
.lia-novos { display: flex; gap: 18px; justify-content: center; margin-top: 4px; } .lia-novos button { border: none; background: none; font-weight: 600; font-size: .88rem; color: var(--cz); cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 8px 2px; } .lia-novos i { width: 10px; height: 10px; border-radius: 50%; background: var(--vm); } .lia-novos i.r { background: var(--ac); } .lia-novos i.t { background: var(--am); }
@media (min-width: 1200px) {
  #sidebar { width: 212px; align-items: stretch; padding: 20px 12px; } #conteudo { margin-left: 212px; max-width: 1400px; }
  .sb-logo { display: flex; align-items: center; gap: 9px; padding: 0 2px 0 6px; margin-bottom: 20px; } .sb-logo .sl-nome { display: block; width: auto; height: 23px; }
  .sb-item { width: auto; height: 42px; flex: none; justify-content: flex-start; gap: 13px; padding: 0 12px; border-radius: 10px; font-size: .92rem; font-weight: 600; } .sb-item span { display: block; white-space: nowrap; } .sb-item::after { display: none; }
  .sb-t { display: block; color: var(--ac); font-size: .7rem; letter-spacing: .06em; font-weight: 800; padding: 4px 12px 6px; } .sb-sep { width: auto; margin: 12px 8px; } #sb-money, #sb-mais { display: none; }
}
@media (max-width: 760px) {
  #sidebar { overflow: visible; }
  #marca-top { display: flex; align-items: center; gap: 12px; background: var(--pri); color: #fff; margin: calc(-16px - env(safe-area-inset-top)) -16px 16px; padding: calc(13px + env(safe-area-inset-top)) 16px 13px; } #marca-top b { display: block; font-size: 1.08rem; line-height: 1.2; } #marca-top small { display: block; color: #aeb8cc; font-size: .8rem; margin-top: 3px; }
  .mt-bt { margin-left: auto; border: none; background: #1e2f57; color: #fff; border-radius: 999px; padding: 10px 15px; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; } .mt-ic { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; } .mt-ic svg { width: 21px; height: 21px; }
  #fab .fab-lia { width: 58px; height: 58px; padding: 0; margin-top: -24px; border: 4px solid var(--bg); } #fab .masc.p { background: none; width: 46px; height: 46px; }
  .menu-cel .mt-money { width: 30px; height: 30px; border-radius: 9px; font-size: .8rem; }
  .sl-cards { grid-template-columns: 1fr 1fr; } .sl-cards .card:first-child { grid-column: 1 / -1; } .seg-sl { max-width: none; } .sl-topo { display: flex; flex-direction: column; } .sl-topo .seg-sl { order: -1; } .sl-topo .sl-tit, .sl-topo .btn-lia { display: none; } .sl-topo h2.titulo { margin: 0 0 14px; } .sl-topo h2.titulo:not(:has(.acoes)) { display: none; } .sl-topo h2.titulo .acoes { margin: 0; } .sl-topo h2.titulo .acoes .btn { grid-column: auto !important; min-height: 42px; font-size: .88rem; } .seg-sl button { padding: 12px 4px; }
}
.mt-lm svg:not(.sl-nome) { width: 40px; height: 40px; display: block; } .mt-lg.mt-lm { background: none; } .sl-money .mt-lm { flex: none; } .sl-money .mt-lm svg { width: 46px; height: 46px; } .sl-money .sl-nome { height: 20px; margin-bottom: 4px; }
.sb-t { align-items: center; gap: 8px; } .sb-t > svg:first-child { width: 24px; height: 24px; flex: none; } .sb-t .sl-nome { height: 16px; }
.lm-tit { display: flex; align-items: center; gap: 10px; justify-content: flex-start !important; } .lm-tit > svg:first-child { width: 36px; height: 36px; } .lm-bv { justify-content: center !important; margin-bottom: 14px; }
.menu-cel .mt-lm { width: auto; height: auto; background: var(--pri); border-radius: 10px; padding: 4px; } .menu-cel .mt-lm svg { width: 28px; height: 28px; }
@media (min-width: 1200px) { .sb-t { display: flex; padding: 4px 8px 10px; } .sem-money .sb-t { display: none; } }

/* Importar extrato e fatura */
.arq-msg { display: flex; align-items: center; gap: 10px; } .arq-msg i { width: 34px; height: 40px; border-radius: 6px; background: #fff; color: var(--pri); font: 900 .62rem/40px inherit; text-align: center; font-style: normal; flex: none; } .arq-msg span { overflow-wrap: anywhere; }
.lia-m .prog { font-size: .76rem; color: var(--cz-cl); margin-bottom: 5px; } .imp-sub { display: block; color: var(--cz-cl); font-size: .76rem; font-weight: 400; margin-top: 2px; } .lia-imp { width: 100%; max-width: 320px; }
.imp-lista { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; } .imp-l { padding: 10px 0; border-bottom: 1px solid #f0f1f4; display: flex; flex-direction: column; gap: 6px; } .imp-l .check { align-items: flex-start; gap: 10px; font-size: .88rem; font-weight: 400; color: var(--pri); } .imp-l .check span { flex: 1; min-width: 0; } .imp-l small { display: block; color: var(--cz-cl); font-size: .76rem; } .imp-l .check > b { white-space: nowrap; } .imp-l.dup { opacity: .6; } .imp-l select { margin-left: 26px; width: calc(100% - 26px); }
.menu-cel .m-imp i { background: var(--pri); }
.ll-valor.imp-tit { color: var(--pri); cursor: default; } .lia-card .lia-pg.fixo > span { flex: 1; min-width: 0; overflow-wrap: anywhere; } .lia-card .lia-pg.fixo > b { flex: none; white-space: nowrap; }
.rs-l { align-items: flex-start; gap: 10px; padding: 8px 0; font-weight: 400; color: var(--pri); font-size: .9rem; } .rs-l small { display: block; color: var(--cz-cl); font-size: .8rem; margin-top: 2px; } .rs-l input { margin-top: 4px; }
.rs-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* Botão de foto com a Larry.IA e logo menor no menu do computador */
.sl-foto .masc { width: 54px; height: 54px; background: #fff; box-shadow: 0 2px 6px rgba(20,33,61,.15); } .sl-foto > span:not(.masc) { flex: 1; min-width: 0; } .sl-foto .masc svg { width: 92%; height: 92%; }
.sl-foto .sl-cam { display: flex; align-items: center; gap: 8px; flex: none; background: var(--pri); color: #fff; font-style: normal; font-weight: 700; font-size: .92rem; border-radius: 999px; padding: 11px 18px; box-shadow: 0 2px 8px rgba(20,33,61,.25); } .sl-foto .sl-cam svg { width: 22px; height: 22px; } .sl-foto .sl-cam em { font-style: normal; }
.sl-foto:hover .sl-cam { background: #22335a; } .sl-foto:active { transform: scale(.99); }
@media (max-width: 760px) { .sl-foto { gap: 12px; padding: 14px 14px 14px 16px; } .sl-foto .masc { width: 46px; height: 46px; } .sl-foto .sl-cam { padding: 0; width: 48px; height: 48px; justify-content: center; } .sl-foto .sl-cam em { display: none; } }
@media (min-width: 1200px) { .sb-logo { padding: 4px 4px 0 12px; margin-bottom: 24px; gap: 8px; } .sb-logo svg { width: 28px; height: 26px; } .sb-logo .sl-nome { height: 18px; } }
/* Botão de troca Super Larry ⇄ Larry Money (topo, computador) */
.btn-troca { display: inline-flex; align-items: center; gap: 7px; } .btn-troca svg { width: 20px; height: 20px; flex: none; } .btn-troca .sl-nome { width: auto; height: 14px; }
.rs-bloco { border-top: 1px solid var(--borda, #e5e8ee); padding-top: 14px; margin-top: 14px; } .rs-marca { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; } .rs-marca svg { width: 22px; height: 22px; } .rs-marca .sl-nome { width: auto; height: 16px; }
