/* Reprodução das telas do aplicativo (WinUI 3, tema claro sobre acrílico).
   A janela é desenhada em 1200 x 740 e reduzida pelo script para caber na largura disponível. */
.tela { position: relative; width: 100%; aspect-ratio: 1200 / 740; }
.janela {
  position: absolute; top: 0; left: 0; width: 1200px; height: 740px;
  transform-origin: 0 0; transform: scale(var(--escala, 1));
  border-radius: 12px; overflow: hidden;
  background: #dfe6f5 url(../img/fundo-app.jpg) center / cover;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .18);
  font: 400 13px/1.4 "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif;
  color: #1a1a1a; text-align: left; letter-spacing: 0;
}
.janela::before { content: ""; position: absolute; inset: 0; background: rgba(243, 243, 243, .62); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.janela > * { position: relative; }
.janela h1, .janela h2, .janela h3 { font-family: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, sans-serif; letter-spacing: 0; line-height: 1.25; }
.janela img { display: inline-block; }

.barra-titulo { height: 40px; display: flex; align-items: center; gap: 10px; padding-left: 16px; font-size: 12px; color: #1a1a1a; }
.barra-titulo img { width: 16px; height: 16px; border-radius: 3px; }
.controles { margin-left: auto; display: flex; height: 100%; }
.controles i { width: 46px; display: grid; place-items: center; }
.controles i::before { content: ""; width: 10px; height: 10px; }
.controles .min::before { height: 1px; background: #333; }
.controles .max::before { border: 1px solid #333; border-radius: 2px; }
.controles .fechar::before { width: 12px; height: 12px; background: linear-gradient(45deg, transparent 46%, #333 46%, #333 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #333 46%, #333 54%, transparent 54%); }

.corpo { display: flex; height: 700px; }

/* NavigationView */
.nav { width: 248px; flex: none; padding: 4px 6px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav .item { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 5px; color: #1a1a1a; position: relative; white-space: nowrap; }
.nav .item img { width: 20px; height: 20px; flex: none; }
.nav .item.sub { padding-left: 40px; }
.nav .item.grupo::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.3px solid #555; border-bottom: 1.3px solid #555; transform: rotate(45deg) translateY(-2px); }
.nav .item.grupo.fechado::after { transform: rotate(-45deg); }
.nav .item.ativo { background: rgba(0, 0, 0, .055); }
.nav .item.ativo::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: #005fb8; }
.nav .contador { margin-left: auto; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: #c42b1c; color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.nav .separador { height: 1px; background: rgba(0, 0, 0, .08); margin: 6px 8px; }
.nav .rodape-nav { margin-top: auto; }
.nav .cliente { margin: 0 4px 6px; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); display: flex; gap: 10px; align-items: center; font-size: 12px; }
.nav .cliente b { display: block; font-weight: 600; font-size: 12.5px; }
.nav .cliente small { color: #5c5c5c; }
.nav .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #3fd8ff, #2f7bff); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; }

/* Área de conteúdo */
.conteudo { flex: 1; min-width: 0; background: rgba(249, 249, 249, .72); border-top-left-radius: 8px; border: 1px solid rgba(0, 0, 0, .06); border-right: 0; border-bottom: 0; padding: 22px 26px; overflow: hidden; position: relative; }
.painel { display: none; height: 100%; }
.painel.ativo { display: flex; flex-direction: column; animation: surgir .45s ease; }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } }

.titulo-modulo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.titulo-modulo img { width: 32px; height: 32px; }
.titulo-modulo h1 { font-size: 26px; font-weight: 600; margin: 0; }
.titulo-modulo .direita { margin-left: auto; display: flex; gap: 6px; }
.btn { height: 30px; padding: 0 12px; border-radius: 4px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-bottom-color: rgba(0, 0, 0, .18); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #1a1a1a; }
.btn.acento { background: #005fb8; color: #fff; border-color: #0a64bd; }
.btn img { width: 16px; height: 16px; }

.barra-abas { display: flex; align-items: center; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.barra-abas span { padding: 8px 12px 10px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #5c5c5c; position: relative; }
.barra-abas span img { width: 18px; height: 18px; }
.barra-abas span.sel { color: #1a1a1a; font-weight: 600; }
.barra-abas span.sel::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; border-radius: 2px; background: #005fb8; }
.barra-abas .direita { margin-left: auto; display: flex; gap: 6px; padding-bottom: 6px; }

.cartao { background: rgba(255, 255, 255, .78); border: 1px solid rgba(0, 0, 0, .065); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.cartao h3 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.cartao .apoio { color: #5c5c5c; font-size: 11.5px; }
.rotulo { color: #5c5c5c; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.rotulo .i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #8a8a8a; color: #5c5c5c; font: 600 9px/12px "Segoe UI", sans-serif; text-align: center; }
.valor { font: 600 21px/1.2 "Segoe UI Variable Display", "Segoe UI", "Inter", sans-serif; margin-top: 6px; font-variant-numeric: tabular-nums; }
.var { font-size: 11.5px; margin-top: 3px; color: #5c5c5c; }
.var b { color: #0f7b0f; font-weight: 600; }

.linha-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.grade-meio { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 10px; flex: 1; min-height: 0; }
.grade-baixo { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin-top: 10px; }

/* Gráfico de barras anual */
.grafico { display: flex; align-items: flex-end; gap: 14px; height: 210px; padding: 18px 6px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); position: relative; }
.grafico .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(0, 0, 0, .07); }
.barra { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.barra i { display: block; border-radius: 3px 3px 0 0; background: #0067c0; transform-origin: bottom; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.barra i.prov { background: #10893e; border-radius: 3px 3px 0 0; }
.barra i.prov + i { border-radius: 0; }
.barra em { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: #5c5c5c; }
.barra b { position: absolute; left: -10px; right: -10px; text-align: center; font-size: 10.5px; font-weight: 600; color: #1a1a1a; }
.oculto-anim .barra i { transform: scaleY(0); }
.legenda { display: flex; gap: 14px; font-size: 11.5px; color: #5c5c5c; margin-top: 28px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* Rosca */
.rosca-area { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.rosca { width: 140px; height: 140px; border-radius: 50%; flex: none; position: relative; }
.rosca::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fbfbfb; }
.rosca span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font-size: 10.5px; color: #5c5c5c; }
.rosca span b { display: block; font-size: 15px; color: #1a1a1a; }
.lista-fatias { flex: 1; display: grid; gap: 6px; font-size: 12px; }
.lista-fatias div { display: flex; align-items: center; gap: 8px; }
.lista-fatias div::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.lista-fatias div span { margin-left: auto; color: #5c5c5c; font-variant-numeric: tabular-nums; }

.logo-ativo { width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center; font: 700 9px/1 "Segoe UI", sans-serif; color: #fff; background: var(--c, #0067c0); }
.proximo { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0, 0, 0, .05); font-size: 12px; }
.proximo:last-child { border: 0; }
.proximo div { min-width: 0; }
.proximo div small { display: block; color: #5c5c5c; font-size: 11px; }
.proximo .dir { margin-left: auto; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qualidade { display: grid; gap: 7px; margin-top: 8px; font-size: 12px; }
.qualidade div { display: flex; align-items: center; gap: 8px; }
.qualidade div span { margin-left: auto; font-weight: 600; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* Tabelas */
.tabela { background: rgba(255, 255, 255, .78); border: 1px solid rgba(0, 0, 0, .065); border-radius: 8px; overflow: hidden; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabela th { text-align: left; font-weight: 600; padding: 0 12px; height: 34px; border-bottom: 1px solid rgba(0, 0, 0, .08); background: rgba(250, 250, 250, .8); white-space: nowrap; }
.tabela td { padding: 0 12px; height: 38px; border-bottom: 1px solid rgba(0, 0, 0, .05); white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .n { text-align: right; font-variant-numeric: tabular-nums; }
.tabela tr.sel td { background: rgba(0, 95, 184, .08); }
.tabela tr.sel td:first-child { box-shadow: inset 3px 0 0 #005fb8; }
.tabela .ativo-cel { display: flex; align-items: center; gap: 9px; }
.tabela .ativo-cel small { color: #5c5c5c; display: block; font-size: 11px; }
.selo-ok, .selo-aviso, .selo-erro, .selo-neutro { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.selo-ok { background: #dff6dd; color: #0f7b0f; }
.selo-aviso { background: #fff4ce; color: #8a5300; }
.selo-erro { background: #fde7e9; color: #c42b1c; }
.selo-neutro { background: #eef0f4; color: #4a4f5c; }
.acoes-linha { display: flex; gap: 4px; justify-content: center; }
.acoes-linha i { width: 26px; height: 24px; border-radius: 4px; display: grid; place-items: center; background: rgba(0, 0, 0, .04); }
.acoes-linha i::before { content: ""; width: 10px; height: 10px; border: 1.4px solid #444; border-radius: 2px; }
.acoes-linha i.editar::before { width: 11px; height: 3px; border-radius: 1px; transform: rotate(-45deg); }

.filtros { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; }
.campo { height: 30px; padding: 0 10px; border-radius: 4px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .35); display: inline-flex; align-items: center; gap: 8px; color: #5c5c5c; font-size: 12.5px; }
.campo.busca { width: 240px; }
.campo.combo::after { content: ""; margin-left: 18px; width: 5px; height: 5px; border-right: 1.3px solid #555; border-bottom: 1.3px solid #555; transform: rotate(45deg) translateY(-2px); }
.contagem { margin-left: auto; color: #5c5c5c; font-size: 12px; }

/* Notas */
.area-arrastar { border: 2px dashed rgba(0, 95, 184, .35); border-radius: 10px; background: rgba(0, 95, 184, .04); padding: 22px; display: flex; align-items: center; gap: 18px; }
.area-arrastar .doc { width: 54px; height: 54px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.area-arrastar .doc img { width: 32px; height: 32px; }
.area-arrastar b { font-size: 15px; display: block; }
.area-arrastar small { color: #5c5c5c; font-size: 12px; }
.area-arrastar .btns { margin-left: auto; display: flex; gap: 6px; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numeros .valor { font-size: 26px; }
.andamento { height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .08); overflow: hidden; margin-top: 10px; }
.andamento i { display: block; height: 100%; width: 72%; background: #005fb8; border-radius: 2px; animation: andar 3.2s ease-in-out infinite; }
@keyframes andar { 0% { width: 8%; } 80%, 100% { width: 100%; } }

/* Proventos */
.meses { display: flex; align-items: flex-end; gap: 9px; height: 180px; padding-top: 10px; border-bottom: 1px solid rgba(0, 0, 0, .1); position: relative; }
.meses .barra em { bottom: -19px; }
.linha-ant { position: absolute; inset: 10px 0 0; pointer-events: none; }

/* Imposto de renda */
.ficha { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 12.5px; }
.ficha dt { color: #5c5c5c; }
.ficha dd { margin: 0; font-weight: 500; }
.copiar { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #005fb8; font-weight: 600; }
