/* Financeiro: histórico, baixa real e calendário com escopo isolado. */
.fh-workspace{max-width:1440px;min-width:0}.fh-workspace>.panel,.fh-workspace>.finance-analytics{margin-top:18px}.fh-workspace .panel-title{gap:18px;align-items:center}.fh-note{font-size:11px;line-height:1.6;color:#64748b;margin:8px 0}.fh-empty{padding:28px 10px;color:var(--muted);text-align:center;font-size:12px}.fh-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:17px;border:1px solid var(--line);background:white;border-radius:12px}.fh-toolbar label,.fh-select{display:grid;gap:6px;font-size:10px;color:#536176;font-weight:800;min-width:0}.fh-toolbar input,.fh-toolbar select,.fh-select select{min-width:0;max-width:100%;height:39px;border:1px solid #dbe2e7;border-radius:7px;padding:0 10px;background:#fff;color:var(--ink)}.fh-period{display:flex;align-items:end;gap:7px}.fh-period button{padding:0 12px}.fh-measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.fh-measures article{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px;display:grid;gap:9px;border-top:3px solid #dce5e8}.fh-measures article:nth-child(3){background:var(--navy);color:#fff;border-top-color:var(--lime)}.fh-measures span{font-size:11px;font-weight:700}.fh-measures strong{font-size:24px;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fh-measures small{font-size:10px;color:#738195}.fh-measures article:nth-child(3) small{color:#c8d4e5}.fh-in{color:#167f6f!important}.fh-out{color:#b8483c!important}.fh-done{color:#405475}.fh-explainer{padding:10px 14px;background:#edf2f5;border-radius:8px}.fh-scale{font-size:10px;color:var(--muted);margin:14px 0 8px}.fh-history-scroll,.fh-calendar-scroll,.fh-table-scroll{overflow-x:auto;max-width:100%}.fh-history-bars{display:grid;grid-template-columns:repeat(12,minmax(45px,1fr));min-width:650px;gap:8px;padding:0 0 6px;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#edf1f4 50px);border-bottom:1px solid var(--line)}.fh-history-month{display:flex;flex-direction:column;justify-content:end;align-items:stretch;gap:10px;background:transparent;border-radius:6px;padding:8px 4px;color:#607087;font-size:10px;font-weight:700}.fh-history-month:hover,.fh-history-month.selected{background:#cdef4830}.fh-bar-pair{height:165px;display:flex;align-items:end;justify-content:center;gap:4px}.fh-bar-pair i{width:32%;max-width:25px;background:var(--teal);border-radius:4px 4px 0 0}.fh-bar-pair i.fh-bar-out{background:var(--red)}.fh-workspace .legend{margin-top:14px;flex-wrap:wrap;line-height:1.5}.fh-workspace .legend span{white-space:nowrap}.fh-calendar h3{text-transform:capitalize}.fh-weekdays,.fh-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:770px}.fh-weekdays{margin-top:18px;background:#f4f7f8;border:1px solid var(--line);border-radius:8px 8px 0 0}.fh-weekdays span{text-align:center;padding:10px;font-size:11px;font-weight:800;color:#5b6a7d}.fh-days{border-left:1px solid var(--line);border-top:0}.fh-day{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:136px;text-align:left;background:#fff;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 8px;min-width:0;color:var(--ink)}.fh-day:hover{background:#f6fae8}.fh-day.other{background:#f7f9fb;color:#8896a7}.fh-day.today{box-shadow:inset 0 0 0 2px #9abe29;background:#fcfff2}.fh-day-number{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;margin-bottom:3px}.fh-day-number i{font-style:normal;background:#fbe2de;color:#b8483c;border-radius:50%;width:17px;height:17px;text-align:center}.fh-day-total{display:flex;flex-direction:column;gap:1px;font-size:9px;line-height:1.4;background:#f3f7f8;padding:3px 5px;border-radius:4px}.fh-day-total b{font-size:11px;font-variant-numeric:tabular-nums}.fh-day-name{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#536176}.fh-more{font-size:9px;color:#65758a;font-weight:700}.fh-table{min-width:735px;margin-top:18px}.fh-table td small{display:block;margin-top:4px;max-width:310px;overflow-wrap:anywhere}.fh-table td:nth-child(5){font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.fh-table td .secondary{height:31px;padding:0 11px}.fh-badge{display:inline-block;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:800;white-space:nowrap;background:#eef2f6;color:#536176}.fh-badge.paid,.fh-badge.received{background:#ddf4e9;color:#167c58}.fh-badge.overdue{background:#fbe5e1;color:#ad392d}.fh-badge.due-today{background:#fff0ce;color:#966300}.fh-badge.upcoming{background:#e7eefb;color:#476ab0}.fh-badge.cancelled{background:#edf0f2;color:#768291}.fh-project{background:transparent;border-radius:7px;padding:0 2px 8px}.fh-project:hover{background:#f3f8e4}.fh-forecast .projection.projection-wide .project-month{flex:1 0 56px}.fh-rec-list{margin-top:12px}.fh-rec-list .recurring{padding:15px 12px;margin-bottom:5px;border-left:3px solid #a1d3c9;border-radius:3px;background:linear-gradient(90deg,#eef9f5,transparent 40%);gap:16px}.fh-rec-list .recurring.is-pay{border-left-color:#e9aea5;background:linear-gradient(90deg,#fff3ef,transparent 40%)}.fh-rec-list .recurring small{line-height:1.65}.fh-rec-list .recurring em{display:block;font-style:normal;margin-bottom:0}.fh-modal{max-height:88vh;overflow-y:auto;overscroll-behavior:contain}.fh-modal-wide{width:min(950px,100%)}.fh-modal label,.fh-modal input,.fh-modal select{min-width:0;max-width:100%}.fh-modal textarea{width:100%;min-height:70px;border:1px solid #dbe2e7;border-radius:8px;padding:9px;resize:vertical}.fh-modal .modal-two-cols label{min-width:0}.fh-error{color:#b8483c;font-size:12px;line-height:1.5}.fh-error:empty{display:none}.fh-modal button:disabled{opacity:.55;cursor:wait}.fh-facts{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.fh-facts>div{border-bottom:1px solid var(--line);padding-bottom:12px;min-width:0}.fh-facts dt{font-size:10px;color:#718096;margin-bottom:6px}.fh-facts dd{font-size:13px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.fh-item-actions{display:flex;flex-wrap:wrap;gap:10px}.fh-day-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}.fh-day-summary>div{display:grid;gap:8px;font-size:10px;background:#f4f7f8;padding:12px;border-radius:8px}.fh-day-summary strong{font-size:16px;overflow-wrap:anywhere}.fh-workspace button:focus-visible,.fh-modal button:focus-visible{outline:3px solid #8bb629;outline-offset:3px}.fh-workspace input:focus-visible,.fh-workspace select:focus-visible,.fh-modal input:focus-visible,.fh-modal select:focus-visible,.fh-modal textarea:focus-visible{outline:2px solid #a4cb35;outline-offset:1px}
@media(max-width:900px){.fh-measures{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-measures strong{font-size:21px}.fh-toolbar>label{flex:1 1 145px}.fh-workspace .module-head{align-items:start}.fh-workspace .module-head .actions{flex-wrap:wrap}.fh-workspace .panel-title{align-items:start}.fh-workspace .panel{min-width:0}}
@media(max-width:600px){.fh-workspace .module-head{flex-direction:column}.fh-workspace .module-head .actions{justify-content:start}.fh-workspace .panel-title{flex-direction:column;gap:10px}.fh-measures{gap:8px}.fh-measures article{padding:13px}.fh-measures strong{font-size:19px}.fh-toolbar{padding:12px}.fh-period{width:100%}.fh-period label{flex:1}.fh-rec-list .recurring{flex-direction:column}.fh-rec-list .row-actions{justify-content:flex-end}.fh-modal{padding:20px;max-height:90vh}.fh-day-summary{grid-template-columns:1fr 1fr}.fh-facts{grid-template-columns:1fr}.fh-modal .modal-actions{flex-wrap:wrap}.fh-modal .modal-actions button{flex:1}.fh-history-bars{min-width:600px}.fh-workspace .legend span{white-space:normal}}
