/* BMCenter Finanças v59 — estabilidade, filtros e edição discreta */
.bm-v58-modal-open{overflow:hidden!important}
.bm-v58-modal-bg{position:fixed;inset:0;z-index:1200000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,24,48,.52);backdrop-filter:blur(4px)}
.bm-v58-modal{width:min(680px,100%);max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;border-radius:21px;background:#fff;box-shadow:0 30px 80px rgba(9,28,57,.28);color:#0b356b;font-family:Inter,system-ui,sans-serif}
.bm-v58-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e7edf5}.bm-v58-modal h2{margin:0;font-size:20px}.bm-v58-modal header p{margin:5px 0 0;color:#75839a;font-size:11px}.bm-v58-modal header>button{width:34px;height:34px;border:0;border-radius:10px;background:#f2f5f9;color:#53647f;font-size:22px}
.bm-v58-modal form{min-height:0;display:flex;flex:1;flex-direction:column}.bm-v58-form{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 20px}.bm-v58-form label{position:relative;display:grid;gap:6px;min-width:0}.bm-v58-form label.full{grid-column:1/-1}.bm-v58-form label>span{font-size:10px;font-weight:700;color:#52627e}.bm-v58-form input,.bm-v58-form select,.bm-v58-form textarea{width:100%;min-width:0;border:1px solid #dbe4ef;border-radius:11px;background:#fff;color:#203b61;font:600 12px Inter,system-ui;padding:0 11px;outline:none}.bm-v58-form input,.bm-v58-form select{height:42px}.bm-v58-form textarea{min-height:84px;padding-top:10px;resize:vertical}.bm-v58-form input:focus,.bm-v58-form select:focus,.bm-v58-form textarea:focus{border-color:#79a9f6;box-shadow:0 0 0 3px rgba(20,112,245,.1)}.bm-v58-check{display:flex!important;grid-column:1/-1!important;grid-template-columns:auto 1fr!important;align-items:center!important;padding:10px 12px;border:1px solid #e5ebf3;border-radius:11px;background:#f9fbfe}.bm-v58-check input{width:18px!important;height:18px!important}.bm-v58-modal footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;border-top:1px solid #e7edf5}.bm-v58-modal footer button{height:40px;padding:0 16px;border:0;border-radius:10px;background:#eef3f9;color:#48607f;font:750 11px Inter}.bm-v58-modal footer .primary{background:#0872f9;color:#fff}
.bm-inst-suggestion{min-height:0}.bm-inst-suggestion button{width:100%;margin-top:2px;padding:7px 9px;border:1px solid #cfe0fb;border-radius:9px;background:#f4f8ff;color:#335c9b;text-align:left;font:600 9px/1.35 Inter}.bm-inst-suggestion b{color:#096cef}
.bm-expense-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px}.bm-expense-options button{min-height:110px;padding:18px;border:1px solid #dce6f2;border-radius:16px;background:linear-gradient(145deg,#fff,#f6f9fe);color:#153d70;text-align:left}.bm-expense-options b,.bm-expense-options small{display:block}.bm-expense-options b{font-size:15px}.bm-expense-options small{margin-top:7px;color:#7a879b;font-size:10px;line-height:1.45}.bm-expense-options button:hover{border-color:#8db8f8;box-shadow:0 7px 20px rgba(17,73,153,.1)}
.bm-v58-purchases{display:grid;gap:8px}.bm-v58-purchase{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #e2e8f0;border-radius:12px;background:#fafcff}.bm-v58-purchase b,.bm-v58-purchase small{display:block}.bm-v58-purchase b{font-size:11px}.bm-v58-purchase small{margin-top:4px;color:#78859a;font-size:9px}.bm-v58-purchase>span{display:flex;gap:6px}.bm-v58-purchase button{height:30px;padding:0 9px;border:0;border-radius:8px;background:#edf4ff;color:#1767d7;font:700 8px Inter}.bm-v58-purchase button.danger{background:#fff0f2;color:#d62b49}
.bm-tx-purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5}.bm-tx-purchase-actions button{height:38px;border:0;border-radius:10px;background:#edf4ff;color:#1767d7;font:750 10px Inter}.bm-tx-purchase-actions button.danger{background:#fff0f2;color:#d62b49}
.bm-search-overlay{position:fixed;inset:0;z-index:1300000;padding:72px 18px 18px;background:rgba(12,28,49,.38);backdrop-filter:blur(5px)}.bm-search-overlay>section{width:min(680px,100%);margin:0 auto;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 30px 80px rgba(7,24,48,.28)}.bm-search-overlay header{display:grid;grid-template-columns:28px 1fr 34px;align-items:center;gap:9px;padding:11px 13px;border-bottom:1px solid #e6ecf4}.bm-search-overlay header svg{width:24px;height:24px;fill:none;stroke:#67809f;stroke-width:1.8}.bm-search-overlay input{height:42px;border:0;outline:0;color:#163b6b;font:600 15px Inter}.bm-search-overlay header button{width:34px;height:34px;border:0;border-radius:9px;background:#f2f5f9;color:#5c6c84;font-size:20px}.bm-search-overlay [data-bm-search-results]{max-height:55dvh;overflow:auto;padding:8px}.bm-search-overlay [data-bm-search-results]>button{width:100%;display:grid;gap:3px;padding:10px;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left}.bm-search-overlay [data-bm-search-results] b{font-size:11px;color:#153d70}.bm-search-overlay [data-bm-search-results] small,.bm-search-hint{display:block;padding:10px;color:#7c899d;font-size:9px}
.bm-v58-silent-period .bm-period-popover{visibility:hidden!important;pointer-events:none!important}
.bm-inst-logo.official-auto{position:relative!important;color:#4269aa!important;background:#f7faff!important}.bm-inst-logo.official-auto>img{position:relative!important;z-index:2!important;transition:none!important;object-fit:contain!important}.bm-inst-logo.official-auto>.bm-inst-fallback,.bm-inst-logo.generic>.bm-inst-fallback{position:absolute!important;inset:0!important;z-index:1!important;display:grid!important;place-items:center!important;color:#4269aa!important;background:#f7faff!important}.bm-inst-logo.official-auto.bm-logo-loaded>.bm-inst-fallback{display:none!important}.bm-inst-fallback svg{grid-area:1/1;width:24px!important;height:24px!important;opacity:.22!important;fill:none!important;stroke:currentColor!important}.bm-inst-fallback b{grid-area:1/1;font:800 11px/1 Inter,system-ui!important;letter-spacing:-.25px!important;color:#315d9a!important}

@media(max-width:760px){
  .fa-home-cards{gap:8px!important}.fa-home-cards article{min-height:104px!important;grid-template-columns:36px minmax(0,1fr)!important;gap:7px!important;padding:11px 10px!important}.fa-home-cards article>i{width:36px!important;height:36px!important;border-radius:11px!important}.fa-home-cards article>i svg{width:20px!important;height:20px!important}.fa-home-cards article strong{width:100%!important;max-width:none!important;margin:4px 0 3px!important;font-size:18px;letter-spacing:-.35px;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-variant-numeric:tabular-nums}.fa-home-cards article small,.fa-home-cards article em{font-size:9px!important}.fa-home-cards article{cursor:pointer}.fa-home-cards article:active{transform:scale(.985)}
  html body #app #monthPicker.fa-period.date-box,html body #app #monthPicker.fa-period,html body #app #monthPicker.date-box{width:min(218px,62vw)!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0 auto!important;padding:0!important;border:1px solid #d7e2f0!important;border-radius:13px!important;grid-template-columns:34px minmax(0,1fr) 34px!important;background:#f9fbfe!important;box-shadow:0 2px 8px rgba(23,56,101,.045)!important}.fa-head #monthPicker .bm-period-arrow,.fa-head #monthPicker .bm-period-center{height:36px!important;min-height:36px!important}.fa-head #monthPicker .bm-period-arrow{font-size:18px!important}.fa-head #monthPicker .bm-period-month{font-size:12px!important;letter-spacing:-.15px!important}.fa-head #monthPicker .bm-period-copy{align-items:center!important}.fa-head #monthPicker .bm-period-meta,.fa-head #monthPicker .bm-period-calendar{display:none!important}.fa-head #monthPicker .bm-period-caret{font-size:8px!important}.bm-v58-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:1px}.bm-v58-scopes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px;border:1px solid #e2e9f3;border-radius:11px;background:#f4f7fb}.bm-v58-scopes button{height:30px;padding:0 5px;border:0;border-radius:8px;background:transparent;color:#65758f;font:700 8.5px Inter;cursor:pointer;touch-action:manipulation}.bm-v58-scopes button.on{background:#fff;color:#0872f9;box-shadow:0 2px 7px rgba(25,58,103,.09)}.bm-v58-filter{height:36px;display:flex;align-items:center;gap:5px;padding:0 10px;border:1px solid #dce6f2;border-radius:10px;background:#fff;color:#0872f9;font:700 8px Inter}.bm-v58-filter svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important}
  .fa-account,.fa-card-row{grid-template-columns:42px minmax(76px,1fr) 60px 60px 8px!important;gap:6px!important}.fa-account .bm-inst-logo,.fa-card-row .bm-inst-logo,.fa-home-account .bm-inst-logo{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex-basis:42px!important;padding:0!important}.fa-account>.name,.fa-card-row>.name{padding-left:0!important;border-left:0!important}.fa-account>span:nth-of-type(2),.fa-card-row>span:nth-of-type(2){padding-left:0!important;border-left:0!important}.fa-account>span:nth-of-type(3),.fa-card-row>span:nth-of-type(3){padding-left:5px!important;border-left:1px solid #e1e7f0!important}.fa-account .bm-inst-logo img,.fa-card-row .bm-inst-logo img,.fa-home-account .bm-inst-logo img{width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;border-radius:50%!important}
  .bm-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 9px}.bm-quick-actions button{height:38px;border:1px solid #dce7f3;border-radius:11px;background:#fff;color:#1768d7;font:750 9px Inter;box-shadow:0 2px 8px rgba(19,51,92,.04)}.bm-quick-actions button:nth-child(1){color:#078f79}.bm-quick-actions button:nth-child(2){color:#e33858}
  .fa-search{display:none!important}.fa-generic input[data-local-search],.fa-generic .toolbar input.field.grow{display:none!important}.fa-generic .toolbar{min-height:0!important;padding-top:0!important;padding-bottom:0!important}.bm-search-overlay{padding:calc(env(safe-area-inset-top) + 18px) 10px 10px}.bm-search-overlay>section{border-radius:16px}.bm-search-overlay [data-bm-search-results]{max-height:68dvh}
  .fa-account,.fa-card-row{position:relative!important}.bm-row-edit{position:absolute;right:24px;top:6px;z-index:5;width:24px;height:24px;display:grid;place-items:center;border:1px solid #dbe7f5;border-radius:8px;background:#f8fbff;color:#4f76a7;font:700 13px/1 Arial;opacity:0;transform:scale(.88);pointer-events:none;transition:opacity .12s ease,transform .12s ease}.fa-account.bm-edit-revealed .bm-row-edit,.fa-card-row.bm-edit-revealed .bm-row-edit{opacity:1;transform:scale(1);pointer-events:auto}.fa-account.bm-edit-revealed,.fa-card-row.bm-edit-revealed{box-shadow:0 0 0 1px rgba(8,114,249,.12),0 5px 16px rgba(23,62,111,.06)!important}.fa-card-row>i{margin-right:-2px}.fa-card-actions,.fa-invoice-actions{flex-wrap:wrap}.fa-card-actions [data-bm-manage-purchases],.fa-invoice-actions [data-bm-manage-purchases]{flex:1 1 100%;border:1px solid #dce7f4!important;background:#f6f9fe!important;color:#37689f!important}.bm-manage-purchases{min-height:32px}
  .bm-v58-modal-bg{align-items:flex-end;padding:0}.bm-v58-modal{width:100%;max-height:91dvh;border-radius:22px 22px 0 0}.bm-v58-form{grid-template-columns:1fr;padding:15px}.bm-v58-form label.full{grid-column:auto}.bm-v58-modal>header{padding:15px}.bm-v58-modal footer{padding:11px 15px calc(11px + env(safe-area-inset-bottom))}.bm-expense-options{grid-template-columns:1fr;padding:15px}.bm-expense-options button{min-height:88px}.bm-v58-purchase{align-items:flex-start;flex-direction:column}.bm-v58-purchase>span{width:100%}.bm-v58-purchase button{flex:1}
}
@media(max-width:365px){.bm-v58-filter span{display:none}.bm-v58-filter{width:38px;justify-content:center;padding:0}.fa-account,.fa-card-row{grid-template-columns:40px minmax(68px,1fr) 55px 55px 7px!important}.fa-account .bm-inst-logo,.fa-card-row .bm-inst-logo{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex-basis:40px!important}.fa-home-cards article{grid-template-columns:32px minmax(0,1fr)!important;padding:10px 8px!important}.fa-home-cards article>i{width:32px!important;height:32px!important}}