/* Planejamento (FP&A, 07/10/2026): prefixo .fpa- */
.aghtml.fpa .fpa-frase { color: var(--n-500, #5c5f54); margin: 4px 0 0; max-width: 820px; }
.aghtml.fpa .fpa-controles { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0; }
.aghtml.fpa .fpa-campo { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--n-500, #5c5f54); min-width: 160px; }
.aghtml.fpa .fpa-campo .inp { min-height: 44px; }
.aghtml.fpa .fpa-seg button { min-height: 44px; padding: 0 16px; }
.aghtml.fpa .fpa-respostas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.aghtml.fpa .fpa-respostas .val { font-size: 1.35rem; font-weight: 700; }
.aghtml.fpa .fpa-respostas .sub { font-size: .8rem; margin-top: 4px; }
.aghtml.fpa .fpa-versoes { margin-bottom: 16px; }
.aghtml.fpa .fpa-versoes p { margin: 0 0 10px; }
.aghtml.fpa .fpa-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.aghtml.fpa .fpa-acoes .btn { min-height: 44px; }
.aghtml.fpa .fpa-graf { position: relative; height: 300px; padding: 8px 12px; }
.aghtml.fpa .fpa-rolagem { overflow-x: auto; }
.aghtml.fpa .fpa-tab { width: 100%; border-collapse: collapse; font-size: .875rem; }
.aghtml.fpa .fpa-tab th, .aghtml.fpa .fpa-tab td { padding: 8px 10px; border-bottom: 1px solid var(--n-200, #e6e8e2); white-space: nowrap; }
.aghtml.fpa .fpa-tab .r { text-align: right; }
.aghtml.fpa .fpa-tab tr.fpa-hoje td { background: #f6f3e7; }
.aghtml.fpa .fpa-tab tfoot td { font-weight: 700; border-top: 2px solid var(--n-300, #d6dad1); }
.aghtml.fpa .card { margin-bottom: 16px; }
.aghtml.fpa .fpa-avisos { margin: 8px 0 24px; font-size: .85rem; color: var(--n-500, #5c5f54); }
.aghtml.fpa .fpa-avisos summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.aghtml.fpa .fpa-nota { font-size: .8rem; color: var(--n-500, #5c5f54); margin: 8px 12px 12px; }
.aghtml.fpa .fpa-desvios { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.aghtml.fpa .fpa-q { font-size: .8rem; color: var(--n-500, #5c5f54); margin-top: 2px; }

/* Modo Simples ("Meu plano da safra", 07/10/2026): prefixo .fps- */
.aghtml.fpa .fpa-topo { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.aghtml.fpa .fps-perguntas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.aghtml.fpa .fps-perg, .aghtml.fpa .fps-cartao { background: #fff; border: 1px solid var(--n-200, #e6e8e2); border-left: 5px solid var(--n-300, #d6dad1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.aghtml.fpa .fps-borda-verde { border-left-color: #2f6b34; }
.aghtml.fpa .fps-borda-amarelo { border-left-color: #c08a1e; }
.aghtml.fpa .fps-borda-vermelho { border-left-color: #b3261e; }
.aghtml.fpa .fps-perg-t, .aghtml.fpa .fps-cartao-t { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-weight: 700; color: #1f2a24; }
.aghtml.fpa .fps-cartao-t h3 { margin: 0; font-size: 1.05rem; }
.aghtml.fpa .fps-resp { font-size: 1.2rem; font-weight: 700; color: #1f2a24; }
.aghtml.fpa .fps-perg p, .aghtml.fpa .fps-frase { margin: 0; font-size: .9rem; color: #3d443d; line-height: 1.4; }
.aghtml.fpa .fps-neg { color: #b3261e; }
.aghtml.fpa .fps-selo { flex: none; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.aghtml.fpa .fps-verde { background: #e6f2e7; color: #2f6b34; }
.aghtml.fpa .fps-amarelo { background: #fbf1dc; color: #7a5410; }
.aghtml.fpa .fps-vermelho { background: #fbe6e4; color: #b3261e; }
.aghtml.fpa .fps-neutro { background: #eef0eb; color: #52596b; }
.aghtml.fpa .fps-h2 { font-size: 1.1rem; margin: 8px 0 12px; color: #1f2a24; }
.aghtml.fpa .fps-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.aghtml.fpa .fps-linha { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.aghtml.fpa .fps-linha > span:first-child { width: 52px; color: #52596b; }
.aghtml.fpa .fps-de { color: #5c5f54; font-size: .85rem; }
.aghtml.fpa .fps-barra { position: relative; height: 12px; border-radius: 6px; background: #eef0eb; overflow: visible; }
.aghtml.fpa .fps-enche { height: 100%; border-radius: 6px; background: #2f6b34; }
.aghtml.fpa .fps-enche.fps-passou { background: #b3261e; }
.aghtml.fpa .fps-marca { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: #1f2a24; border-radius: 2px; }
.aghtml.fpa .fps-fim { font-size: .9rem; margin-top: 4px; }
.aghtml.fpa .fps-nota { font-size: .8rem; color: #5c5f54; margin: 0; }
.aghtml.fpa .fps-guardar { margin: -8px 0 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aghtml.fpa .fps-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.aghtml.fpa .fps-botoes .btn, .aghtml.fpa .fps-perg .btn, .aghtml.fpa .fps-guardar .btn, .aghtml.fpa .fps-comecar .btn { min-height: 44px; }
.aghtml.fpa .fps-comecar h2 { margin: 0 0 8px; font-size: 1.2rem; }
.aghtml.fpa .fps-dois { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 12px; }
.aghtml.fpa .fps-dois h3 { margin: 0 0 6px; font-size: 1rem; }
.aghtml.fpa .fps-dois p { margin: 0 0 10px; font-size: .9rem; }

/* Abas do modo Simples e a lista do Resumo (09/10/2026). */
.aghtml.fpa .fps-abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.aghtml.fpa .fps-lista { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.aghtml.fpa .fps-lista-l { display: grid; grid-template-columns: minmax(140px, 1.2fr) auto minmax(0, 2fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; background: #fff; border: 1px solid #e3e8e1; border-radius: 10px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.aghtml.fpa .fps-lista-l:hover { border-color: #2f6b34; }
.aghtml.fpa .fps-lista-n { font-weight: 700; }
.aghtml.fpa .fps-lista-f { color: #3f4a43; }
.aghtml.fpa .fps-lista-s { font-size: 20px; color: #2f6b34; }
.aghtml.fpa .fps-meses { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 12px 0 16px; }
.aghtml.fpa .fps-mes { display: flex; flex-direction: column; align-items: stretch; }
.aghtml.fpa .fps-mes-pos, .aghtml.fpa .fps-mes-neg { height: 62px; display: flex; justify-content: center; }
.aghtml.fpa .fps-mes-pos { align-items: flex-end; border-bottom: 1px solid #c9d2c6; }
.aghtml.fpa .fps-mes-neg { align-items: flex-start; }
.aghtml.fpa .fps-mes-pos span { width: 70%; background: #2f6b34; border-radius: 3px 3px 0 0; }
.aghtml.fpa .fps-mes-neg span { width: 70%; background: #b3261e; border-radius: 0 0 3px 3px; }
.aghtml.fpa .fps-mes-r { text-align: center; font-size: 11px; color: #5c5f54; margin-top: 4px; }
.aghtml.fpa .fps-tab td.r, .aghtml.fpa .fps-tab th.r { text-align: right; }
@media (max-width: 640px) {
  .aghtml.fpa .fps-lista-l { grid-template-columns: 1fr auto; }
  .aghtml.fpa .fps-lista-f { grid-column: 1 / -1; }
  .aghtml.fpa .fps-lista-s { display: none; }
  .aghtml.fpa .fps-abas button { min-width: 0; flex: 1 1 140px; }
}
.aghtml.fpa .fps-tab td.fps-forte { font-weight: 700; }
/* Três abas do Completo (DRE, Balanço, Fluxo de caixa), 09/10/2026. */
.aghtml.fpa .fpa-demo-abas { margin: 16px 0 12px; }
.aghtml.fpa .fpa-demo-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 8px 12px; }
.aghtml.fpa .fpa-tab tr.fpa-forte td { font-weight: 700; }
.aghtml.fpa .fpa-tab tr.fpa-sub td { font-size: .85rem; color: var(--n-600, #4a4d45); }
.aghtml.fpa .fpa-tab tr.fpa-sub td:first-child { padding-left: 32px; }
.aghtml.fpa .fpa-abre { border: 0; background: none; cursor: pointer; min-width: 28px; min-height: 28px; font-size: .9rem; color: inherit; }
.aghtml.fpa .fpa-so { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 12px 8px; padding: 8px 12px; border-radius: 8px; background: #eef4ec; font-size: .9rem; }
.aghtml.fpa .fpa-col-cult { border: 0; background: none; padding: 0; font: inherit; color: var(--verde-lavoura, #2f6b34); text-transform: inherit; letter-spacing: inherit; cursor: pointer; min-height: 32px; }
.aghtml.fpa .fpa-col-cult:hover { text-decoration: underline; }
/* Multisseleção "Cultura ou atividade" (09/10/2026). */
.aghtml.fpa .fpa-ms { position: relative; }
.aghtml.fpa .fpa-ms-sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; min-width: 220px; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--n-900, #1f2a24); }
.aghtml.fpa .fpa-ms-sum::-webkit-details-marker { display: none; }
.aghtml.fpa .fpa-ms-sum::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.aghtml.fpa .fpa-ms-painel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 280px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid #d3d8d1; border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(15,31,20,.12); }
.aghtml.fpa .fpa-ms-op { display: flex; align-items: center; gap: 8px; padding: 8px 6px; min-height: 40px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--n-900, #1f2a24); }
.aghtml.fpa .fpa-ms-op:hover { background: #f2f5f1; }
.aghtml.fpa .fpa-ms-sub { padding-left: 28px; }
.aghtml.fpa .fpa-ms-op input { width: 18px; height: 18px; accent-color: #2f6b34; }
@media (max-width: 640px) { .aghtml.fpa .fpa-ms, .aghtml.fpa .fpa-ms-sum { width: 100%; max-width: none; } .aghtml.fpa .fpa-ms-painel { min-width: 0; width: 100%; } }
