/* Financeiro manual (empresa Fausto): janelas de cadastro e botões nas linhas abertas. Prefixo fm- para não colidir com o resto do sistema. */
.fin-emp.Fausto { background: #e6f4ea; color: #1e6b3a; }
.fm-fundo { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(16, 24, 40, 0.42); overflow: auto; }
.fm-janela { width: min(600px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(16, 24, 40, 0.45); color: #1b2430; font-size: 13px; }
.fm-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.fm-topo h3 { margin: 0; font-size: 16px; font-weight: 700; }
.fm-x { border: none; background: none; font-size: 22px; line-height: 1; color: #7a8594; cursor: pointer; padding: 0 4px; }
.fm-x:hover { color: #1b2430; }
.fm-corpo { padding: 4px 20px 6px; }
.fm-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fm-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm-campo.largo { grid-column: 1 / -1; }
.fm-campo > span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #7a8594; }
.fm-campo input, .fm-campo select { height: 34px; border: 1px solid #d9dee5; border-radius: 8px; padding: 0 9px; font: inherit; font-size: 13px; background: #fff; color: #1b2430; min-width: 0; }
.fm-campo input:focus, .fm-campo select:focus { outline: none; border-color: #2f6f4f; box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.15); }
.fm-nota { margin: 12px 0 2px; color: #7a8594; font-size: 12px; }
.fm-erro { margin: 8px 20px 0; padding: 8px 10px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: 12.5px; font-weight: 600; }
.fm-erro-linha { color: #b42318; }
.fm-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.fm-rodape button, .fm-salvar { height: 34px; padding: 0 16px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid #d9dee5; background: #fff; color: #1b2430; }
.fm-salvar { background: #2f6f4f; border-color: #2f6f4f; color: #fff; }
.fm-salvar:disabled { opacity: 0.6; cursor: default; }
.fm-contas h4 { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #7a8594; }
.fm-tabela { width: 100%; border-collapse: collapse; }
.fm-tabela th { text-align: left; font-size: 10.5px; color: #7a8594; font-weight: 600; padding: 2px 8px 4px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.fm-tabela td { padding: 4px 8px 4px 0; }
.fm-tabela .d { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-tabela input[name="nome"] { width: 100%; height: 30px; border: 1px solid #d9dee5; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; }
.fm-tabela button { height: 28px; padding: 0 10px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.fm-linha-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #dfe4ea; }
.fm-linha-acoes button { height: 30px; padding: 0 12px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #1b2430; cursor: pointer; }
.fm-linha-acoes button:hover { background: #f4f6f8; }
.fm-linha-acoes .fm-primario { background: #2f6f4f; border-color: #2f6f4f; color: #fff; }
.fm-linha-acoes .fm-primario:hover { background: #285f43; }
.fm-linha-acoes .fm-perigo { color: #b42318; }
.fin-baixas button[data-estornar] { height: 24px; padding: 0 8px; border: 1px solid #d9dee5; border-radius: 6px; background: #fff; color: #b42318; font: inherit; font-size: 11.5px; cursor: pointer; }
@media (max-width: 560px) { .fm-grade { grid-template-columns: 1fr; } }
.fm-campo[hidden] { display: none; }
