/* Gestão Fazendas – visual escuro "floresta" com vidro fosco e destaque verde-limão (tema claro opcional p/ uso no sol) */
:root {
  --bg: #060d09; --bg2: #0a1710;
  --sup: rgba(22, 38, 28, .62); --sup-solida: #122019; --sup2: rgba(255, 255, 255, .04);
  --linha: rgba(255, 255, 255, .08); --linha2: rgba(255, 255, 255, .05);
  --txt: #eef5ef; --txt2: #a9bdb0; --txt3: #6f8577;
  --limao: #b6f03c; --limao-esc: #8fd12a; --verde: #3ecf6b; --verde-esc: #1e8f45; --verde-claro: rgba(62, 207, 107, .14);
  --ambar: #f5b53d; --ambar-claro: rgba(245, 181, 61, .14); --vermelho: #ff6b5e; --vermelho-claro: rgba(255, 107, 94, .14);
  --azul: #5fb4ff; --azul-claro: rgba(95, 180, 255, .14);
  --lateral: rgba(8, 18, 12, .78); --lateral-txt: #b9cdbf; --lateral-ativo: rgba(182, 240, 60, .12);
  --raio: 20px; --raio-p: 12px;
  --sombra: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --vidro: blur(18px) saturate(140%);
  --btn-pri: linear-gradient(100deg, #b6f03c 0%, #3ecf6b 100%); --btn-pri-txt: #08210f;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-tema="claro"] {
  --bg: #eef3ec; --bg2: #e5ede2;
  --sup: rgba(255, 255, 255, .86); --sup-solida: #ffffff; --sup2: #f4f8f2;
  --linha: #dbe5d7; --linha2: #ecf1ea;
  --txt: #12201a; --txt2: #4a5d50; --txt3: #7a8b7f;
  --limao: #5f9e12; --limao-esc: #4b8209; --verde: #178a3c; --verde-esc: #0e5c27; --verde-claro: #e2f3df;
  --ambar: #c27a00; --ambar-claro: #fff1d2; --vermelho: #c0392b; --vermelho-claro: #fde8e5; --azul: #1f6fc1; --azul-claro: #e3eefb;
  --lateral: #0b2214; --lateral-txt: #cfe3d2; --lateral-ativo: rgba(182, 240, 60, .14);
  --sombra: 0 1px 2px rgba(10, 36, 20, .06), 0 8px 24px rgba(10, 36, 20, .06);
  --btn-pri: linear-gradient(100deg, #6cb01e 0%, #178a3c 100%); --btn-pri-txt: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--txt); font-family: var(--fonte); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); background-image: radial-gradient(900px 600px at 85% -10%, rgba(62, 207, 107, .16), transparent 60%),
  radial-gradient(700px 500px at -10% 40%, rgba(182, 240, 60, .07), transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg)); background-attachment: fixed; min-height: 100vh; }
:root[data-tema="claro"] body { background-image: radial-gradient(900px 600px at 85% -10%, rgba(62, 207, 107, .12), transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--limao); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .95rem; }
.num { font-variant-numeric: tabular-nums; }
.mudo { color: var(--txt2); }
.fraco { color: var(--txt3); font-size: .86rem; }
.oculto { display: none !important; }
::selection { background: rgba(182, 240, 60, .3); }

/* ---------- layout ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.lateral { background: var(--lateral); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border-right: 1px solid var(--linha2); color: var(--lateral-txt);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; gap: 3px; overflow-y: auto; }
.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; color: #fff; text-decoration: none; }
.lateral .marca img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(62, 207, 107, .25); }
.lateral .marca b { display: block; font-size: 1rem; letter-spacing: .01em; }
.lateral .marca small { color: #7fa58a; font-size: .74rem; }
.lateral .grupo { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #5f7f69; padding: 16px 12px 5px; }
.lateral a.item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--lateral-txt); text-decoration: none; font-weight: 550; transition: background .15s, color .15s; }
.lateral a.item:hover { background: rgba(255,255,255,.05); color: #fff; }
.lateral a.item.ativo { background: var(--lateral-ativo); color: #e9ffc4; box-shadow: inset 0 0 0 1px rgba(182, 240, 60, .25); }
.lateral a.item.ativo svg { color: #b6f03c; }
.lateral a.item svg { width: 19px; height: 19px; flex: none; opacity: .95; }
.lateral .rodape { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .82rem; }
.lateral .rodape b { color: #fff; display: block; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { display: none; }
.conteudo { padding: 26px 30px 44px; max-width: 1400px; width: 100%; }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cab p { margin: 4px 0 0; color: var(--txt2); }
.barra-inf { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .topo { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(6, 13, 9, .82); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro);
    border-bottom: 1px solid var(--linha2); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: max(10px, env(safe-area-inset-top)); }
  .topo img { width: 36px; height: 36px; border-radius: 10px; }
  .topo b { font-size: .98rem; display: block; line-height: 1.1; }
  .topo small { color: #8fb59a; font-size: .75rem; }
  .conteudo { padding: 16px 16px 100px; }
  h1 { font-size: 1.3rem; }
  .barra-inf { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30;
    background: rgba(14, 26, 19, .88); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border: 1px solid var(--linha); border-radius: 22px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
  :root[data-tema="claro"] .barra-inf { background: rgba(255,255,255,.92); }
  .barra-inf a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; font-size: .7rem; color: var(--txt3); text-decoration: none; font-weight: 650; border-radius: 16px; }
  .barra-inf a svg { width: 22px; height: 22px; }
  .barra-inf a.ativo { color: var(--btn-pri-txt); background: var(--btn-pri); }
}

/* ---------- componentes ---------- */
.cartao { background: var(--sup); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; min-width: 0; }
.cartao > h2, .cartao > .cartao-cab { margin-bottom: 14px; }
.cartao-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cartao-cab .fraco a, a.fraco { color: var(--txt2); }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-painel { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .g3, .g-painel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .g2, .g3, .g-painel { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 13px; } .kpi .val { font-size: 1.3rem; } .kpi .chip { width: 30px; height: 30px; } }
.kpi { background: var(--sup); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; box-shadow: var(--sombra);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.kpi:hover { transform: translateY(-2px); border-color: rgba(182, 240, 60, .35); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--cor, var(--verde)) 0%, transparent 70%); opacity: .18; pointer-events: none; }
.kpi .topo-kpi { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kpi .chip { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--cor, var(--verde)); background: color-mix(in srgb, var(--cor, var(--verde)) 16%, transparent); flex: none; }
.kpi .chip svg { width: 18px; height: 18px; }
.kpi .rot { font-size: .8rem; color: var(--txt2); font-weight: 600; }
.kpi .val { font-size: 1.7rem; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .sub { font-size: .78rem; color: var(--txt3); }
.kpi .faisca { margin-top: 8px; height: 34px; }
.kpi .faisca svg { width: 100%; height: 34px; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--linha); background: var(--sup2); color: var(--txt);
  padding: 9px 16px; border-radius: 999px; font-weight: 650; cursor: pointer; text-decoration: none; min-height: 40px; white-space: nowrap; transition: border-color .15s, filter .15s, transform .1s; }
.btn:hover { border-color: rgba(182, 240, 60, .4); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: var(--btn-pri); border-color: transparent; color: var(--btn-pri-txt); box-shadow: 0 6px 20px rgba(110, 210, 80, .25); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.perigo { color: var(--vermelho); }
.btn.peq { padding: 5px 12px; min-height: 32px; font-size: .85rem; }
.btn.grande { width: 100%; min-height: 56px; font-size: 1.08rem; border-radius: 16px; }
.btn:disabled { opacity: .55; cursor: default; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pilula { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--sup2); color: var(--txt2); white-space: nowrap; border: 1px solid var(--linha2); }
.pilula.verde { background: var(--verde-claro); color: var(--verde); border-color: transparent; }
.pilula.ambar { background: var(--ambar-claro); color: var(--ambar); border-color: transparent; }
.pilula.vermelho { background: var(--vermelho-claro); color: var(--vermelho); border-color: transparent; }
.pilula.azul { background: var(--azul-claro); color: var(--azul); border-color: transparent; }

/* formulários */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.campo > span { font-size: .82rem; font-weight: 650; color: var(--txt2); }
.campo small { color: var(--txt3); font-size: .8rem; }
.campo small.aviso { color: var(--ambar); font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--linha); background: rgba(255, 255, 255, .04); border-radius: var(--raio-p); padding: 10px 13px; min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s; }
:root[data-tema="claro"] :is(input, select, textarea) { background: #fff; }
select option { background: var(--sup-solida); color: var(--txt); }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--limao); box-shadow: 0 0 0 3px rgba(182, 240, 60, .18); }
.campo.grande input { font-size: 1.7rem; font-weight: 750; min-height: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.linha-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--limao); }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filtros .campo { margin: 0; min-width: 140px; flex: 1 1 140px; max-width: 220px; }
.filtros .campo input, .filtros .campo select { min-height: 40px; padding: 7px 11px; }

/* escolha em botões (celular) */
.opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; }
.opcao { border: 1px solid var(--linha); background: var(--sup2); border-radius: 16px; padding: 12px 13px; text-align: left; cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.opcao:hover { border-color: rgba(182, 240, 60, .3); }
.opcao b { display: block; font-size: .95rem; }
.opcao small { color: var(--txt3); font-size: .78rem; }
.opcao.sel { border-color: var(--limao); background: rgba(182, 240, 60, .1); box-shadow: inset 0 0 0 1px var(--limao), 0 0 24px rgba(182, 240, 60, .12); }
.segmento { display: inline-flex; background: var(--sup2); border: 1px solid var(--linha); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmento button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 650; color: var(--txt2); cursor: pointer; font-size: .86rem; }
.segmento button.sel { background: var(--btn-pri); color: var(--btn-pri-txt); }

/* tabela */
.tabela-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt3); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--linha2); vertical-align: middle; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: rgba(182, 240, 60, .05); }
tr.cancelado td { opacity: .45; text-decoration: line-through; }
tr.cancelado td:last-child { text-decoration: none; opacity: 1; }
td.d, th.d { text-align: right; }
tfoot td { font-weight: 700; border-top: 1px solid var(--linha); border-bottom: 0; }

/* listas (celular) */
.lista { display: flex; flex-direction: column; }
.lista .it { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--linha2); }
.lista .it:last-child { border-bottom: 0; }
.lista .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--verde-claro); color: var(--verde); }
.lista .ic.ambar { background: var(--ambar-claro); color: var(--ambar); }
.lista .ic.azul { background: var(--azul-claro); color: var(--azul); }
.lista .ic.vermelho { background: var(--vermelho-claro); color: var(--vermelho); }
.lista .ic svg { width: 20px; height: 20px; }
.lista .meio { flex: 1; min-width: 0; }
.lista .meio b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .meio small { color: var(--txt3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .fim { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vazio { text-align: center; color: var(--txt3); padding: 28px 10px; }

/* início do funcionário */
.boas-vindas { margin-bottom: 16px; }
.botoes-lanc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.botao-lanc { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px 16px; text-align: left; cursor: pointer; color: #fff; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.botao-lanc::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); }
.botao-lanc svg { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: rgba(0,0,0,.18); }
.botao-lanc b { font-size: 1.15rem; display: block; }
.botao-lanc small { opacity: .88; font-size: .82rem; }
.botao-lanc.comb { background: linear-gradient(140deg, #f5b53d 0%, #d9771a 100%); color: #2a1500; }
.botao-lanc.comb svg { background: rgba(255,255,255,.25); }
.botao-lanc.ins { background: linear-gradient(140deg, #b6f03c 0%, #2bb85b 100%); color: #08210f; }
.botao-lanc.ins svg { background: rgba(255,255,255,.28); }

/* sincronização */
.sinal { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); color: #d9f0de; cursor: pointer; border: 1px solid rgba(255,255,255,.08); }
.sinal i { width: 8px; height: 8px; border-radius: 50%; background: #b6f03c; box-shadow: 0 0 10px #b6f03c; }
.sinal.off i { background: #f5b53d; box-shadow: 0 0 10px #f5b53d; }
.sinal.erro i { background: #ff6b5e; box-shadow: 0 0 10px #ff6b5e; }
.aviso-sync { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--ambar-claro); color: var(--txt); margin-bottom: 14px; font-size: .9rem; border: 1px solid rgba(245, 181, 61, .25); }
.aviso-sync.erro { background: var(--vermelho-claro); border-color: rgba(255, 107, 94, .3); }
.aviso-sync svg { width: 20px; height: 20px; flex: none; }

/* ---------- gráficos ---------- */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico text { fill: var(--txt3); font-size: 11px; font-family: var(--fonte); }
.grafico .grade-l { stroke: var(--linha); stroke-dasharray: 3 5; }
.grafico .barra { transition: opacity .15s; }
.grafico .barra-fundo { fill: rgba(255,255,255,.035); }
:root[data-tema="claro"] .grafico .barra-fundo { fill: rgba(0,0,0,.035); }
.grafico svg:hover .barra { opacity: .55; }
.grafico svg .barra:hover { opacity: 1; }
.grafico .media { stroke: var(--limao); stroke-dasharray: 6 5; stroke-width: 1.4; }
.grafico .media-rot { fill: var(--limao); font-weight: 700; }
.grafico .linha { fill: none; stroke: var(--limao); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(182,240,60,.45)); }
.dica { position: absolute; pointer-events: none; background: rgba(8, 18, 12, .94); color: #fff; border: 1px solid rgba(182, 240, 60, .35); border-radius: 12px; padding: 7px 11px;
  font-size: .8rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 10px 24px rgba(0,0,0,.4); z-index: 5; }
.dica b { color: #d8ff8f; font-size: .95rem; display: block; }
.legenda-graf { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--txt2); }
.legenda-graf i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.barras-h { display: flex; flex-direction: column; gap: 12px; }
.barras-h .bh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .86rem; }
.barras-h .bh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt2); }
.barras-h .bh b { font-variant-numeric: tabular-nums; font-weight: 700; }
.barras-h .trilho { grid-column: 1 / -1; height: 8px; background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden; }
:root[data-tema="claro"] .barras-h .trilho { background: rgba(0,0,0,.05); }
.barras-h .trilho i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--cor, var(--limao)) 55%, transparent), var(--cor, var(--limao)));
  box-shadow: 0 0 12px color-mix(in srgb, var(--cor, var(--limao)) 45%, transparent); }

.rosca { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rosca svg { width: 170px; height: 170px; flex: none; }
.rosca .centro-val { fill: var(--txt); font-size: 19px; font-weight: 780; }
.rosca .centro-rot { fill: var(--txt3); font-size: 10.5px; }
.rosca .itens { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.rosca .itens div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.rosca .itens i { width: 10px; height: 10px; border-radius: 3px; }
.rosca .itens span { color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rosca .itens b { font-variant-numeric: tabular-nums; }
.rosca path { transition: opacity .15s; cursor: default; }
.rosca svg:hover path { opacity: .5; }
.rosca svg path:hover { opacity: 1; }

/* login */
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; background: #050c07; }
.entrada::before { content: ""; position: absolute; inset: 0; background: url("/img/fundo-campo.webp") center / cover no-repeat; transform: scale(1.04); }
.entrada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 7, .15) 0%, rgba(5, 12, 7, .55) 55%, rgba(5, 12, 7, .9) 100%); }
.entrada .caixa { position: relative; z-index: 1; width: 100%; max-width: 410px; background: rgba(20, 30, 22, .42); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 28px; padding: 24px 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.2); color: #fff; }
.entrada .logo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.entrada h1 { font-size: 1.7rem; color: #fff; }
.entrada .boas { color: rgba(255,255,255,.82); margin: 4px 0 18px; }
.entrada .campo > span { color: rgba(255,255,255,.85); }
.entrada input { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.35) !important; color: #fff; border-radius: 14px !important; min-height: 50px !important; }
.entrada input:focus { border-color: #d8ff8f !important; box-shadow: 0 0 0 3px rgba(182, 240, 60, .25) !important; }
.entrada .btn.pri { background: linear-gradient(100deg, #b6d82a 0%, #22a35a 100%); color: #fff; font-weight: 750; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.entrada .erro { color: #ffb3aa; font-weight: 600; font-size: .9rem; min-height: 1.2em; margin-bottom: 8px; }
.entrada .fraco { color: rgba(255,255,255,.7); }

/* modal e aviso */
.fundo-modal { position: fixed; inset: 0; background: rgba(3, 8, 5, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--sup-solida); border: 1px solid var(--linha); border-radius: 22px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal h2 { margin-bottom: 16px; font-size: 1.2rem; }
.modal .acoes { justify-content: flex-end; margin-top: 8px; }
@media (max-width: 600px) { .fundo-modal { place-items: end center; padding: 0; } .modal { border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: max(22px, env(safe-area-inset-bottom)); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f2418; color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 80; border: 1px solid rgba(182, 240, 60, .3);
  font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); animation: sobe .2s ease-out; }
.toast.erro { background: #5a1a14; border-color: rgba(255, 107, 94, .5); }
@media (max-width: 900px) { .toast { bottom: 96px; } }
@keyframes sobe { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes cresce { from { transform: scaleY(0); } }
.grafico .barra { transform-origin: bottom; transform-box: fill-box; animation: cresce .5s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .toast, .grafico .barra { animation: none; } }
.carregando { padding: 40px; text-align: center; color: var(--txt3); }
.abas { display: inline-flex; gap: 4px; background: var(--sup2); border: 1px solid var(--linha); border-radius: 999px; padding: 4px; margin-bottom: 16px; overflow-x: auto; max-width: 100%; }
.abas a { padding: 7px 15px; text-decoration: none; color: var(--txt2); font-weight: 650; border-radius: 999px; white-space: nowrap; font-size: .9rem; }
.abas a.ativo { background: var(--btn-pri); color: var(--btn-pri-txt); }
.resumo-lanc { background: var(--sup2); border: 1px dashed var(--linha); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.passo { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--txt3); font-weight: 700; margin: 4px 0 9px; }

/* ---------- visual 2: foto aérea ao fundo, vidro transparente, ícones em dois tons ---------- */
.ico .f { fill: currentColor; stroke: none; opacity: .22; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url("/img/fundo-aereo.webp") center / cover no-repeat; transform: scale(1.05); filter: saturate(1.1); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 700px at 70% 0%, rgba(40, 90, 50, .25), transparent 60%), linear-gradient(180deg, rgba(6, 16, 10, .72) 0%, rgba(6, 14, 9, .86) 45%, rgba(5, 11, 7, .94) 100%); }
:root[data-tema="claro"] body::after { background: linear-gradient(180deg, rgba(238, 243, 236, .86) 0%, rgba(238, 243, 236, .94) 50%, rgba(238, 243, 236, .97) 100%); }
body { background: #07110b; }
:root { --sup: rgba(30, 48, 36, .36); --sup2: rgba(255, 255, 255, .055); --linha: rgba(255, 255, 255, .12); --linha2: rgba(255, 255, 255, .07);
  --vidro: blur(22px) saturate(150%); --sombra: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 40px rgba(0, 0, 0, .3); --lateral: rgba(8, 20, 12, .5); }
:root[data-tema="claro"] { --sup: rgba(255, 255, 255, .78); --lateral: #0b2214; }
.cartao, .kpi { border-color: rgba(255,255,255,.12); }
:root[data-tema="claro"] :is(.cartao, .kpi) { border-color: var(--linha); }
.cartao-cab .seta-canto, a.seta-canto { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linha); color: var(--txt2); flex: none; }
.seta-canto svg { width: 15px; height: 15px; }
a.seta-canto:hover { color: var(--limao); border-color: var(--limao); }
.cartao h2 .ico, .cartao-cab h2 .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; color: var(--limao); }
.sub-h { font-size: .8rem; color: var(--txt3); margin-top: 3px; }

/* herói do painel: satélite da fazenda com contornos dos talhões */
.heroi { position: relative; border-radius: 28px; overflow: hidden; min-height: 330px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.4); background: #0d1a12; }
.heroi .satelite { position: absolute; inset: 0; aspect-ratio: auto !important; }
.heroi .satelite img { width: 100%; height: 100%; object-fit: cover; }
.heroi::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 14, 8, .72) 0%, rgba(5, 14, 8, .2) 45%, transparent 65%, rgba(5, 14, 8, .45) 100%), linear-gradient(0deg, rgba(5, 14, 8, .6), transparent 40%); }
.heroi .camada { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; padding: 24px; min-height: 330px; }
.heroi .titulo-h { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; color: #fff; }
.heroi .titulo-h small { color: #c9e7c9; font-weight: 600; letter-spacing: .02em; display: flex; gap: 8px; align-items: center; }
.heroi .titulo-h small .ico { width: 16px; height: 16px; color: #b6f03c; }
.heroi .titulo-h h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 300; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; margin: 6px 0 4px; }
.heroi .titulo-h h1 b { font-weight: 750; }
.heroi .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.vidro-chip { background: rgba(14, 26, 18, .42); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 10px 14px; color: #fff; min-width: 120px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.vidro-chip span { display: block; font-size: .72rem; color: #bcd6c2; font-weight: 600; }
.vidro-chip b { white-space: nowrap; font-size: 1.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vidro-chip b small { font-size: .75rem; font-weight: 600; color: #bcd6c2; margin-left: 2px; }
.heroi .satelite polygon { fill: rgba(182, 240, 60, .16); stroke: #d8ff8f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.heroi .lado { display: flex; flex-direction: column; gap: 12px; }
.clima { background: rgba(14, 26, 18, .45); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px; padding: 16px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.clima .agora { display: flex; align-items: center; gap: 12px; }
.clima .agora .ico { width: 44px; height: 44px; color: #ffd166; }
.clima .agora .ico .f { opacity: .5; }
.clima .temp { font-size: 2.3rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.clima .desc { font-size: .8rem; color: #cfe3d2; }
.clima .dados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; font-size: .72rem; color: #bcd6c2; }
.clima .dados b { display: block; color: #fff; font-size: .92rem; }
.clima .dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.clima .dias div { text-align: center; font-size: .7rem; color: #bcd6c2; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.clima .dias .ico { width: 18px; height: 18px; color: #fff; }
.clima .dias b { color: #fff; font-size: .78rem; }
.clima .dias .chuva-p { color: #8fd0ff; }
.clima.carregando-c { min-height: 160px; display: grid; place-items: center; color: #bcd6c2; font-size: .85rem; }
.atrib { position: absolute; right: 10px; bottom: 6px; z-index: 3; font-size: .62rem; color: rgba(255,255,255,.6); }

/* imagem de satélite com contornos */
.satelite { position: relative; overflow: hidden; background: #1b2a1f; }
.satelite img { display: block; width: 100%; height: 100%; object-fit: cover; }
.satelite svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.satelite polygon { fill: color-mix(in srgb, var(--c, #b6f03c) 22%, transparent); stroke: var(--c, #b6f03c); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .9; }
.satelite polygon.dest { fill: color-mix(in srgb, var(--c, #b6f03c) 38%, transparent); stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 6px var(--c, #b6f03c)); }
.satelite.sem-img img { display: none; }

/* cartões de talhão (miniatura do satélite) */
.talhoes-faixa { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.cartao-talhao { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--sup); color: #fff; text-decoration: none; scroll-snap-align: start; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s, border-color .15s; }
.cartao-talhao:hover { transform: translateY(-3px); border-color: rgba(182, 240, 60, .5); }
.cartao-talhao .satelite { position: absolute; inset: 0; aspect-ratio: auto !important; }
.cartao-talhao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,7,.9) 0%, rgba(5,12,7,.2) 55%, transparent); pointer-events: none; }
.cartao-talhao .info { position: relative; z-index: 2; padding: 12px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cartao-talhao .info b { display: block; font-size: 1rem; }
.cartao-talhao .info small { color: #c4dcc9; font-size: .75rem; }
.cartao-talhao .valor-ha { background: rgba(14, 26, 18, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 5px 9px; text-align: right; white-space: nowrap; }
.cartao-talhao .valor-ha b { font-size: .95rem; color: #d8ff8f; }
.cartao-talhao .ir { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #b6f03c; color: #0b2010; }
.cartao-talhao .ir svg { width: 16px; height: 16px; }

/* medidor, raios, calor, área */
.medidor svg { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.medidor .trilho-med { stroke: rgba(255,255,255,.08); }
:root[data-tema="claro"] .medidor .trilho-med { stroke: rgba(0,0,0,.07); }
.medidor .tique { stroke: rgba(255,255,255,.14); stroke-width: 1.4; }
.medidor .tique.on { stroke: rgba(216, 255, 143, .7); }
.medidor .med-val { fill: var(--txt); font-size: 26px; font-weight: 750; letter-spacing: -.03em; font-family: var(--fonte); }
.medidor .med-rot { fill: var(--txt3); font-size: 10px; font-family: var(--fonte); }
.legenda-med { display: flex; justify-content: center; gap: 14px; font-size: .76rem; color: var(--txt2); margin-top: 8px; flex-wrap: wrap; }
.legenda-med i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.raios svg { width: 100%; max-width: 250px; display: block; margin: 0 auto; }
.raios .aro { stroke: rgba(255,255,255,.08); }
:root[data-tema="claro"] .raios .aro { stroke: rgba(0,0,0,.08); }
.raios .raio-c { fill: var(--txt); font-size: 12px; font-weight: 750; font-family: var(--fonte); }
.numeros-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--linha2); padding-top: 12px; margin-top: 12px; }
.numeros-mini span { display: block; font-size: .7rem; color: var(--txt3); }
.numeros-mini b { font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calor { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.calor .col { display: flex; flex-direction: column; gap: 4px; }
.calor i { width: 16px; height: 16px; border-radius: 4px; background: rgba(255,255,255,.06); display: block; }
:root[data-tema="claro"] .calor i { background: rgba(0,0,0,.06); }
.calor-leg { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--txt3); margin-top: 10px; }
.calor-leg i { width: 11px; height: 11px; border-radius: 3px; background: var(--limao); display: inline-block; }
.grafico.area .area-svg { position: relative; height: 170px; }
.grafico.area .area-svg svg { width: 100%; height: 100%; }
.grafico.area .bolha { position: absolute; transform: translate(-100%, -130%); background: #b6f03c; color: #0b2010; font-weight: 750; font-size: .8rem; padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(182, 240, 60, .35); }
.grafico.area .eixo-x { display: flex; justify-content: space-between; font-size: .72rem; color: var(--txt3); margin-top: 2px; }
.g-4 { grid-template-columns: 1.15fr 1fr 1fr; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .g-4 { grid-template-columns: 1fr; } .heroi .camada { grid-template-columns: 1fr; } .heroi { min-height: 0; } }

/* tela do mapa */
.tela-mapa { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; height: calc(100vh - 140px); min-height: 520px; }
.mapa-box { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.4); background: #0d1a12; }
.mapa-box .leaflet-container { width: 100%; height: 100%; background: #0d1a12; font-family: var(--fonte); }
.mapa-painel { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.mapa-painel .cartao { padding: 16px; }
.mapa-painel .lista-t { overflow-y: auto; min-height: 0; flex: 1; }
.lista-t .t { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; }
.lista-t .t:hover, .lista-t .t.sel { background: rgba(182, 240, 60, .08); border-color: rgba(182, 240, 60, .3); }
.lista-t .t .mini { width: 54px; height: 42px; border-radius: 10px; overflow: hidden; }
.lista-t .t .mini .satelite { width: 100%; height: 100%; aspect-ratio: auto !important; }
.lista-t .t b { display: block; font-size: .9rem; }
.lista-t .t small { color: var(--txt3); font-size: .75rem; }
.lista-t .t .v { text-align: right; font-weight: 750; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lista-t .t .v small { display: block; font-weight: 500; }
.mapa-flutua { position: absolute; z-index: 500; top: 14px; left: 60px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.mapa-flutua > * { pointer-events: auto; }
.mapa-flutua select { width: auto; min-height: 40px; border-radius: 999px; background: rgba(10, 22, 14, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-color: rgba(255,255,255,.25); }
.btn.vidro { background: rgba(10, 22, 14, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-color: rgba(255,255,255,.25); }
.escala-cor { position: absolute; z-index: 500; left: 14px; bottom: 26px; background: rgba(10, 22, 14, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 9px 12px; color: #fff; font-size: .74rem; }
.escala-cor .barra-esc { height: 8px; width: 180px; border-radius: 99px; background: linear-gradient(90deg, #3ecf6b, #b6f03c, #f5b53d, #ff6b5e); margin: 6px 0 3px; }
.escala-cor .ext { display: flex; justify-content: space-between; color: #c4dcc9; }
.leaflet-container .leaflet-popup-content-wrapper { background: rgba(12, 24, 16, .92); color: #fff; border-radius: 18px; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.leaflet-container .leaflet-popup-tip { background: rgba(12, 24, 16, .92); }
.leaflet-container .leaflet-popup-content { margin: 14px 16px; font-family: var(--fonte); font-size: .85rem; width: 270px !important; }
.leaflet-container .leaflet-popup a.leaflet-popup-close-button { color: #c4dcc9; }
.pop b.t { font-size: 1.05rem; display: block; }
.pop .lin { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.pop .lin span { display: block; color: #a9c2b0; font-size: .72rem; }
.pop .lin strong { font-size: .95rem; }
.pop .acoes-pop { display: flex; gap: 6px; flex-wrap: nowrap; }
.pop .acoes-pop a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; font-weight: 650; font-size: .8rem; text-decoration: none; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.pop .acoes-pop a.pri { background: #b6f03c; color: #0b2010; border-color: transparent; }
.pop .acoes-pop svg { width: 15px; height: 15px; }
.leaflet-tooltip.rotulo-talhao { background: rgba(10, 22, 14, .72); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; white-space: nowrap; box-shadow: none; }
.leaflet-tooltip.rotulo-talhao::before { display: none; }
.leaflet-bar a { background: rgba(10, 22, 14, .78) !important; color: #fff !important; border-color: rgba(255,255,255,.15) !important; }
.leaflet-control-attribution { background: rgba(0,0,0,.4) !important; color: rgba(255,255,255,.7) !important; font-size: 10px; }
.leaflet-control-attribution a { color: #d8ff8f !important; }
@media (max-width: 900px) { .tela-mapa { grid-template-columns: 1fr; height: auto; } .mapa-box { height: 62vh; } .mapa-painel .lista-t { max-height: none; } .mapa-flutua { left: 54px; } }

/* desenho do contorno (cadastro de talhão) */
.desenho { height: min(60vh, 520px); border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--linha); }
.desenho .leaflet-container { width: 100%; height: 100%; cursor: crosshair; }
.desenho-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: .88rem; }
.ponto-desenho { width: 12px !important; height: 12px !important; margin: -6px 0 0 -6px !important; border-radius: 50%; background: #b6f03c; border: 2px solid #0b2010; }
.campo-mapa { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; border: 1px dashed var(--linha); border-radius: 14px; margin-bottom: 14px; grid-column: 1 / -1; }
.campo-mapa .mini-sat { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; flex: none; }
.campo-mapa .mini-sat .satelite { width: 100%; height: 100%; aspect-ratio: auto !important; }
.campo-mapa .txt { flex: 1; min-width: 160px; font-size: .88rem; }
.campo-mapa .txt b { display: block; }

@media print {
  body::before, body::after { display: none !important; }
  .heroi { min-height: 0; border: 1px solid #d9e2d6; box-shadow: none; break-inside: avoid; }
  .heroi .camada { min-height: 220px; }
  .clima, .vidro-chip { backdrop-filter: none !important; background: rgba(14, 26, 18, .7) !important; }
  .talhoes-faixa { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .cartao-talhao { break-inside: avoid; min-height: 150px; }
  .tela-mapa { display: block; height: auto; }
}

/* animação de entrada do login */
.entrada.anim::before { animation: aproxima 2.6s cubic-bezier(.2, .7, .2, 1) both; }
.entrada.anim::after { animation: escurece 1.6s ease-out both; }
.entrada .contornos, .entrada .particulas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.entrada .contornos svg { width: 100%; height: 100%; }
.entrada .contornos path { fill: rgba(182, 240, 60, .06); stroke: #d8ff8f; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400;
  filter: drop-shadow(0 0 6px rgba(182, 240, 60, .7)); animation: desenha 2.2s .3s cubic-bezier(.4, 0, .2, 1) forwards, some 1.4s 2.8s ease forwards; }
.entrada .contornos circle { fill: #d8ff8f; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulsa 1.6s 1.2s ease-out 2 both; }
.entrada .particulas i { position: absolute; left: var(--x); bottom: -10px; width: var(--t); height: var(--t); border-radius: 50%; background: #fff3c4; box-shadow: 0 0 8px #ffe08a; opacity: 0;
  animation: sobe-luz var(--d) var(--a) linear infinite; }
.entrada.anim .caixa { animation: chega 1s .55s cubic-bezier(.16, 1, .3, 1) both; }
.entrada .logo-wrap { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 18px; }
.entrada .logo-wrap .logo { margin-bottom: 0; }
.entrada.anim .logo-wrap .logo { animation: logo-in .9s .8s cubic-bezier(.16, 1, .3, 1) both; }
.entrada .logo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
.entrada.anim .logo-wrap::after { animation: brilho 1.3s 1.5s ease-in-out both; }
.entrada.anim .caixa > h1, .entrada.anim .caixa > .boas, .entrada.anim form > * { animation: aparece .6s cubic-bezier(.16, 1, .3, 1) both; }
.entrada.anim .caixa > h1 { animation-delay: 1s; } .entrada.anim .caixa > .boas { animation-delay: 1.08s; }
.entrada.anim form > :nth-child(1) { animation-delay: 1.16s; } .entrada.anim form > :nth-child(2) { animation-delay: 1.24s; }
.entrada.anim form > :nth-child(3) { animation-delay: 1.3s; } .entrada.anim form > :nth-child(4) { animation-delay: 1.32s; } .entrada.anim form > :nth-child(5) { animation-delay: 1.4s; }
@keyframes aproxima { from { transform: scale(1.22); filter: brightness(.3) saturate(.6); } to { transform: scale(1.04); filter: none; } }
@keyframes escurece { from { opacity: 0; } }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes some { to { opacity: .18; } }
@keyframes pulsa { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes sobe-luz { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .85; } 85% { opacity: .5; } 100% { transform: translateY(-105vh) translateX(30px); opacity: 0; } }
@keyframes chega { from { opacity: 0; transform: translateY(46px) scale(.95); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(1.12); } }
@keyframes brilho { to { transform: translateX(120%); } }
@keyframes aparece { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .entrada.anim::before, .entrada.anim::after, .entrada.anim .caixa, .entrada.anim .logo-wrap .logo, .entrada.anim .logo-wrap::after, .entrada.anim .caixa > *, .entrada.anim form > * { animation: none !important; }
  .entrada .particulas { display: none; } .entrada .contornos path { animation: none; stroke-dashoffset: 0; opacity: .18; } .entrada .contornos circle { display: none; }
}

.faixa-demo { display: flex; align-items: center; gap: 10px; margin: 14px 30px 0; padding: 10px 14px; border-radius: 14px; font-size: .86rem;
  background: rgba(245, 181, 61, .14); border: 1px solid rgba(245, 181, 61, .35); color: var(--txt); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.faixa-demo .ico { width: 18px; height: 18px; color: var(--ambar); flex: none; }
.faixa-demo a { color: var(--ambar); font-weight: 650; }
@media (max-width: 900px) { .faixa-demo { margin: 10px 16px 0; } }
@media print { .faixa-demo { display: none !important; } }

.sub-passo { font-size: .74rem; color: var(--txt3); font-weight: 650; margin: 8px 0 6px; }
.totais-filtro { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.totais-filtro b { color: var(--txt); }
.manut-tab td, .manut-tab th { font-size: .85rem; }
.verba { height: 8px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; margin-top: 4px; min-width: 90px; }
.verba i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3ecf6b, #b6f03c); }
.verba.passou i { background: linear-gradient(90deg, #f5b53d, #ff6b5e); }

/* instalar o aplicativo */
.convite-instalar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 18px; position: relative;
  background: linear-gradient(110deg, rgba(182, 240, 60, .16), rgba(62, 207, 107, .08)); border: 1px solid rgba(182, 240, 60, .35); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); }
.convite-instalar > div { flex: 1; min-width: 0; }
.convite-instalar b { display: block; }
.convite-instalar small { color: var(--txt2); font-size: .82rem; }
.inst-logo img { width: 44px; height: 44px; border-radius: 12px; display: block; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.fechar-convite { border: 0; background: transparent; color: var(--txt3); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.btn.instalar.lateral-inst { width: 100%; margin-top: 10px; min-height: 34px; padding: 6px 12px; font-size: .82rem; background: rgba(182, 240, 60, .1); border-color: rgba(182, 240, 60, .3); color: #e9ffc4; }
.topo-inst { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(182, 240, 60, .4); background: rgba(182, 240, 60, .12); color: #d8ff8f; cursor: pointer; }
.topo-inst svg { width: 18px; height: 18px; }
.inst-passos { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.inst-passos li { counter-increment: p; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 38px; position: relative; border-bottom: 1px solid var(--linha2); }
.inst-passos li::before { content: counter(p); position: absolute; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--btn-pri); color: var(--btn-pri-txt); font-weight: 800; display: grid; place-items: center; font-size: .82rem; }
.inst-passos li > span:first-child { flex: 1; }
.inst-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--verde-claro); color: var(--limao); flex: none; }
.inst-ic svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .convite-instalar { flex-wrap: wrap; align-items: flex-start; } .convite-instalar > div { flex: 1 1 calc(100% - 90px); padding-right: 18px; } .convite-instalar .btn { margin-left: 56px; } .fechar-convite { position: absolute; top: 6px; right: 6px; } }
@media print { .convite-instalar, .btn.instalar, .topo-inst { display: none !important; } }

/* ajuda */
.aj-busca { display: flex; align-items: center; gap: 10px; background: var(--sup); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border: 1px solid var(--linha); border-radius: 999px; padding: 4px 8px 4px 16px; margin-bottom: 18px; max-width: 640px; }
.aj-busca .ico { width: 20px; height: 20px; color: var(--limao); flex: none; }
.aj-busca input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 44px; padding-left: 0; }
.aj-lista { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.aj-grupo { display: flex; flex-direction: column; gap: 8px; }
.aj-grupo-tit { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt3); font-weight: 700; padding-left: 4px; }
.aj-item { background: var(--sup); backdrop-filter: var(--vidro); -webkit-backdrop-filter: var(--vidro); border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; }
.aj-item summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.aj-item summary::-webkit-details-marker { display: none; }
.aj-item summary b { flex: 1; font-size: .98rem; }
.aj-item summary > .ico { width: 18px; height: 18px; color: var(--txt3); transform: rotate(-90deg); transition: transform .2s; }
.aj-item[open] summary > .ico { transform: rotate(90deg); }
.aj-item[open] { border-color: rgba(182, 240, 60, .35); }
.aj-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--verde-claro); color: var(--limao); flex: none; }
.aj-ic .ico { width: 20px; height: 20px; }
.aj-corpo { padding: 2px 18px 18px 66px; color: var(--txt2); font-size: .93rem; display: flow-root; }
.aj-corpo b { color: var(--txt); }
.aj-corpo p { margin: 0 0 10px; }
.aj-corpo ul, .aj-corpo ol { margin: 0 0 10px; padding-left: 20px; }
.aj-corpo li { margin-bottom: 6px; }
.aj-passos { counter-reset: p; list-style: none; padding-left: 0 !important; }
.aj-passos > li { counter-increment: p; position: relative; padding-left: 34px; }
.aj-passos > li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--btn-pri); color: var(--btn-pri-txt); font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.aj-dica { border-left: 3px solid var(--limao); background: rgba(182, 240, 60, .07); padding: 10px 14px; border-radius: 0 12px 12px 0; margin: 10px 0; clear: both; }
.aj-dica.aj-atencao { border-color: var(--ambar); background: var(--ambar-claro); }
.aj-corpo figure { margin: 4px 0 14px; }
.aj-corpo figure img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--linha); }
.aj-corpo figure figcaption { font-size: .78rem; color: var(--txt3); text-align: center; margin-top: 6px; }
.aj-corpo figure.aj-cel { float: right; width: 190px; margin: 0 0 12px 18px; }
.aj-corpo figure.aj-cel img { border-radius: 22px; border: 5px solid #0d1712; }
.aj-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.aj-tab { font-size: .88rem; }
.aj-tab td { vertical-align: top; }
@media (max-width: 640px) { .aj-corpo { padding: 2px 14px 16px; } .aj-corpo figure.aj-cel { float: none; width: 62%; margin: 4px auto 14px; } .aj-duas { grid-template-columns: 1fr; } }
.aj-suporte { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: 24px; margin-bottom: 10px;
  background: radial-gradient(400px 200px at 0% 0%, rgba(255, 106, 19, .22), transparent 70%), linear-gradient(120deg, rgba(12, 21, 18, .92), rgba(20, 32, 26, .85)); border: 1px solid rgba(255, 106, 19, .35); color: #f1f4ec; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.aj-sup-marca img { width: 100%; max-width: 280px; display: block; }
.aj-sup-marca span { display: block; font-size: .78rem; color: #c9cfc4; margin-top: 10px; letter-spacing: .02em; }
.aj-sup-txt h2 { font-size: 1.25rem; margin-bottom: 6px; color: #fff; }
.aj-sup-txt p { color: #d4dacf; margin: 0 0 14px; }
.aj-sup-txt b { color: #fff; }
.aj-suporte .btn.pri { background: linear-gradient(100deg, #ff8a3d, #ff6a13); color: #fff; box-shadow: 0 8px 22px rgba(255, 106, 19, .35); }
.aj-suporte .btn:not(.pri) { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
@media (max-width: 760px) { .aj-suporte { grid-template-columns: 1fr; } }
.assinatura { display: flex; align-items: center; gap: 8px; margin-top: 12px; text-decoration: none; opacity: .75; transition: opacity .15s; }
.assinatura:hover { opacity: 1; }
.assinatura span { font-size: .66rem; color: var(--lateral-txt); white-space: nowrap; }
.assinatura img { height: 15px; width: auto; display: block; }
.assinatura.login { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; opacity: .85; }
.assinatura.login span { color: rgba(255,255,255,.75); font-size: .72rem; }
.assinatura.login img { height: 18px; }
.entrada.anim .assinatura.login { animation: escurece .8s 1.6s both; }
@media print { .aj-busca, .aj-suporte .acoes, .assinatura { display: none !important; } .aj-item { break-inside: avoid; } }

/* ---------- impressão / exportar PDF: fundo branco, sem menus e botões ---------- */
.cab-impressao { display: none; }
@media print {
  @page { size: A4; margin: 12mm 11mm; }
  :root { --bg: #fff; --bg2: #fff; --sup: #fff; --sup-solida: #fff; --sup2: #f6f8f5; --linha: #d9e2d6; --linha2: #e9eee7;
    --txt: #111c15; --txt2: #3f5045; --txt3: #6b7b70; --limao: #4f8a10; --verde: #17803a; --ambar: #b26d00; --vermelho: #c0392b; --azul: #1f6fc1;
    --verde-claro: #e3f3df; --ambar-claro: #fff1d2; --vermelho-claro: #fde8e5; --azul-claro: #e3eefb; --sombra: none; color-scheme: light; }
  html, body { background: #fff !important; font-size: 10.5pt; }
  body { background-image: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lateral, .topo, .barra-inf, .filtros, .abas, .segmento, .cab .acoes, .cab button, .cab .btn, .toast, .dica, td .btn, .cartao-cab a.fraco, .cartao-cab .fraco { display: none !important; }
  .app { display: block; }
  .conteudo { padding: 0 !important; max-width: none; }
  .cartao, .kpi { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border: 1px solid #d9e2d6 !important; background: #fff !important; break-inside: avoid; }
  .kpi::after { display: none; }
  .kpis { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .kpi .val { font-size: 15pt; }
  .grade.g3, .grade.g2 { grid-template-columns: 1fr 1fr !important; }
  .grade.g-painel { grid-template-columns: 1.5fr 1fr !important; }
  .cartao:has(table), .grade:has(table) { break-inside: auto !important; }
  .grade { display: grid; }
  .grade:has(table) { display: block; }
  .grade:has(table) > .cartao { margin-bottom: 12px; }
  .tabela-wrap { overflow: visible; margin: 0; padding: 0; }
  table { font-size: 8.8pt; }
  th, td { padding: 5px 6px; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
  .grafico .barra { animation: none !important; }
  .grafico svg:hover .barra { opacity: 1; }
  .cab { margin-bottom: 10px; }
  .cab h1 { font-size: 16pt; }
  .cab-impressao { display: flex !important; align-items: center; gap: 12px; padding: 0 0 10px; margin-bottom: 14px; border-bottom: 2px solid #17803a; }
  .cab-impressao img { width: 42px; height: 42px; border-radius: 9px; }
  .cab-impressao b { font-size: 13pt; color: #0e5c27; display: block; }
  .cab-impressao small { color: #4a5d50; display: block; margin-top: 2px; }
  .cab-impressao > div:nth-child(2) { flex: 1; }
  .cab-impressao-data { text-align: right; font-size: 8.5pt; color: #4a5d50; }
  a { color: inherit; text-decoration: none; }
}

/* recados da gestão (avisos e tarefas) */
.recados .cartao-cab h2 { display: flex; align-items: center; gap: 8px; }
.recados .contador { background: var(--vermelho); color: #fff; font-size: .75rem; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.recado { border: 1px solid var(--linha); background: var(--sup2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.recado.urgente { border-color: var(--vermelho); box-shadow: 0 0 0 1px var(--vermelho) inset; }
.recado.atrasada { border-color: var(--ambar); }
.recado-topo { display: flex; gap: 6px; flex-wrap: wrap; }
.recado-tit { font-size: 1.05rem; line-height: 1.3; }
.recado-txt { margin: 0; color: var(--txt2); font-size: .92rem; }
.recado-pe { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.selo-num { position: absolute; top: 4px; right: 50%; transform: translateX(18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--vermelho); color: #fff;
  font-size: .68rem; font-weight: 800; display: inline-grid; place-items: center; line-height: 1; }
.lateral .item .selo-num { position: static; transform: none; margin-left: auto; }
.barra-inf a { position: relative; }
.selo-num.oculto { display: none; }
