/* V35 — visão de contas, entradas e saídas do histórico financeiro */
.fh-root,.fh-accounts{margin-top:22px}.fh-root{overflow:hidden}.fh-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.fh-head h2{font-size:clamp(1.25rem,2.2vw,1.8rem);margin:3px 0 8px;color:#123c4e}.fh-head p{max-width:730px;line-height:1.6;font-size:.91rem;color:#637985}.fh-kicker{font-size:.72rem;letter-spacing:.17em;color:#1683a2;font-weight:800}.fh-stats,.fh-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 18px}.fh-stat,.fh-account{border-radius:16px;padding:18px;background:linear-gradient(145deg,#f1fafb,#fff);border:1px solid #dcebef;min-width:0}.fh-stat span,.fh-account small{display:block;color:#527787;font-size:.83rem}.fh-stat strong,.fh-account strong{display:block;font-size:1.25rem;margin:8px 0;color:#173e50}.fh-stat small{display:block;color:#64818b;font-size:.78rem;overflow-wrap:anywhere}.fh-account-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.fh-account-top span{font-size:.77rem;color:#356378;border-radius:999px;background:#e2f2f6;padding:7px 10px}.fh-account p{margin:10px 0 0;color:#68808b}.fh-short-rows{display:flex;flex-direction:column;gap:8px;margin-top:12px}.fh-short-rows>div{display:flex;gap:9px;align-items:center;border-top:1px solid #e0edf1;padding-top:10px}.fh-short-rows>div span{flex:1;min-width:0;font-size:.84rem;font-weight:600;overflow-wrap:anywhere}.fh-short-rows>div small{font-weight:400;margin-top:3px}.fh-short-rows b{font-size:.83rem;white-space:nowrap}.fh-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:16px}.fh-tabs{display:flex;gap:5px;padding:4px;background:#e8f2f5;border-radius:12px}.fh-tab{border:0;background:none;color:#42616c;border-radius:9px;padding:10px 13px;font-weight:700;cursor:pointer}.fh-tab.is-active{background:#fff;color:#005875;box-shadow:0 2px 8px #1a56661a}.fh-toolbar label{font-size:.75rem;display:flex;flex-direction:column;color:#527582;gap:4px;font-weight:700}.fh-toolbar input{border:1px solid #c9dde3;border-radius:10px;min-height:38px;padding:8px 11px;max-width:100%;background:white;color:#163f52}.fh-toolbar .fh-search{flex:1;min-width:170px}.fh-message{font-size:.86rem;margin:10px 0;color:#486b7a;overflow-wrap:anywhere}.fh-scroll{width:100%;overflow-x:auto}.fh-table{border-collapse:collapse;width:100%;min-width:780px;text-align:left;font-size:.84rem}.fh-table thead{background:#edf7f9}.fh-table th{color:#305b70;padding:13px 12px;white-space:nowrap}.fh-table td{padding:12px;border-top:1px solid #e4edf0;vertical-align:top;color:#2e4a58}.fh-table td small{display:block;margin-top:4px;color:#78919e}.fh-table .fh-amount{font-weight:700;white-space:nowrap}.fh-pill{display:inline-block;padding:5px 9px;border-radius:100px;font-weight:700;font-size:.74rem}.fh-income{color:#006b66;background:#e2f7ee}.fh-expense{color:#a74636;background:#ffebeb}.fh-review{background:#fff4d9;color:#926821;padding:5px 8px;border-radius:9px;font-size:.71rem;line-height:1.4;display:inline-block}.fh-empty{text-align:center;padding:30px!important}.fh-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:15px;font-size:.83rem;color:#607681}.fh-bottom div{display:flex;gap:8px}.fh-warning{color:#785c35;background:#fff7e7;border:1px solid #f6e3bd;border-radius:12px;padding:13px 15px;line-height:1.5;margin-top:18px;font-size:.82rem}@media(max-width:760px){.fh-stats,.fh-account-grid{grid-template-columns:1fr}.fh-head{display:block}.fh-head>button{margin-top:12px}.fh-toolbar{align-items:stretch}.fh-toolbar label{flex:1}.fh-toolbar button{flex:1}.fh-tab{padding:9px}.fh-short-rows>div{flex-wrap:wrap}.fh-table{min-width:690px}}

/* V36: identificação de subtotais e filtro de sem-data */
.fh-subtotal-row{background:#fff9ed}.fh-subtotal-row .fh-amount small{color:#b45d31}.fh-selected{outline:2px solid #188e9f}.fh-stat strong{font-variant-numeric:tabular-nums}.fh-message{min-height:20px}

/* V37 · fechamento por 12 meses e sincronização com o filtro geral */
.fh-month-board{margin-bottom:18px;overflow:hidden}.fh-board-header{padding:22px 24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:center;border-bottom:1px solid #dce8ed}.fh-board-header h2{font-size:clamp(19px,2vw,24px);margin:8px 0}.fh-board-header p{font-size:13px;line-height:1.55;max-width:750px;color:#607785;margin:0}.fh-year-picker{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.fh-year-picker label{font-size:13px;color:#607785;font-weight:700}.fh-year-picker select{background:#fff;border:1px solid #b4d1d7;border-radius:9px;padding:10px 12px;color:#124457}.fh-ledger-note{background:#eef7f9;color:#234e59;padding:12px 24px;font-size:12.5px;line-height:1.5;border-bottom:1px solid #d9eaf0}.fh-board-scroll{overflow-x:auto}.fh-board-table{min-width:980px;width:100%;border-collapse:collapse;font-size:12.5px;text-align:left;font-variant-numeric:tabular-nums}.fh-board-table th,.fh-board-table td{padding:11px 13px;border-bottom:1px solid #e5edef;vertical-align:middle;white-space:nowrap}.fh-board-table thead th{background:#ecf4f7;color:#2d6874;text-align:right;font-size:12px}.fh-board-table thead th:first-child{text-align:left}.fh-board-table thead tr:first-child th:nth-child(2){background:#f9efd9;color:#906c36}.fh-board-table thead tr:first-child th:nth-child(3){background:#d8f3ef;color:#17594e}.fh-board-table td:not(:first-child),.fh-board-table tfoot th:not(:first-child){text-align:right}.fh-board-table tfoot th{background:#083644;color:white;font-weight:700}.fh-board-table tbody tr:hover{background:#f0f9f8}.fh-board-table tbody tr.fh-current-month{background:#e4f9ee}.fh-month-link{background:transparent;border:0;padding:4px 0;color:#087882;font-weight:800;cursor:pointer;text-transform:capitalize;text-decoration:underline;text-decoration-color:#91c9ca;text-underline-offset:3px}.fh-board-table td small{display:block;color:#75939d;font-size:11px;margin-top:4px}.fh-board-foot{font-size:12px;line-height:1.6;margin:0;padding:12px 24px;color:#7b5d2f;background:#fff8e8}.fh-go-undated{border:0;background:transparent;color:#096a76;text-decoration:underline;font-weight:bold;cursor:pointer}.fh-table td small{display:block;color:#71818c}.fh-amount{font-variant-numeric:tabular-nums}@media(max-width:700px){.fh-board-header{padding:16px}.fh-ledger-note,.fh-board-foot{padding:12px 16px}}
