/* BMCenter Finanças — contrato estrutural único de layout v110 */
:root{
  --bm-sidebar-width:clamp(220px,17.5vw,242px);
  --bm-content-gap:14px;
  --bm-table-date:94px;
  --bm-table-amount:108px;
  --bm-table-action:160px;
}
html[data-bmf-layout],html[data-bmf-layout] body,html[data-bmf-layout] #app{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
html[data-bmf-layout] *,html[data-bmf-layout] *::before,html[data-bmf-layout] *::after{box-sizing:border-box}
html[data-bmf-layout] body{margin:0}
html[data-bmf-layout] #app,
html[data-bmf-layout] #app .app-shell,
html[data-bmf-layout] #app .main,
html[data-bmf-layout] #app .content,
html[data-bmf-layout] #app .page,
html[data-bmf-layout] #app .page-card,
html[data-bmf-layout] #app .fa-main,
html[data-bmf-layout] #app .fa-page,
html[data-bmf-layout] #app .fa-generic,
html[data-bmf-layout] #app .settings-panel,
html[data-bmf-layout] #app .integration-card{min-width:0;max-width:100%}
html[data-bmf-layout] #app img,html[data-bmf-layout] #app svg,html[data-bmf-layout] #app canvas{max-width:100%}
html[data-bmf-layout] #app input,html[data-bmf-layout] #app select,html[data-bmf-layout] #app textarea,html[data-bmf-layout] #app button{min-width:0;max-width:100%}

/* DESKTOP: uma única estrutura web para todas as rotas. */
html[data-bmf-layout="desktop"],html[data-bmf-layout="desktop"] body{overflow-x:hidden!important}
html[data-bmf-layout="desktop"] body{padding-bottom:0!important}
html[data-bmf-layout="desktop"] #app .fa-bottom,html[data-bmf-layout="desktop"] #app .v33-bottom{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-bmf-layout="desktop"] #app .app-shell{display:grid!important;grid-template-columns:var(--bm-sidebar-width) minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:100vh!important;overflow-x:hidden!important}
html[data-bmf-layout="desktop"] #app .sidebar{display:flex!important;width:auto!important;min-width:0!important;max-width:100%!important}
html[data-bmf-layout="desktop"] #app .main{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;overflow-x:hidden!important}
html[data-bmf-layout="desktop"] #app .content{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding-left:clamp(12px,1.4vw,22px)!important;padding-right:clamp(12px,1.4vw,22px)!important;overflow-x:hidden!important}
html[data-bmf-layout="desktop"] #app .page,html[data-bmf-layout="desktop"] #app .page-card,html[data-bmf-layout="desktop"] #app .fa-page,html[data-bmf-layout="desktop"] #app .fa-generic{width:100%!important;min-width:0!important;max-width:100%!important}

/* Cabeçalhos, barras e grupos de ação nunca extrapolam a área útil. */
html[data-bmf-layout="desktop"] #app .topbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:64px!important;padding:8px clamp(12px,1.4vw,22px)!important;overflow:visible!important}
html[data-bmf-layout="desktop"] #app .topbar .search-box{flex:1 1 260px!important;width:auto!important;min-width:190px!important;max-width:none!important}
html[data-bmf-layout="desktop"] #app .topbar .date-box{flex:0 1 226px!important;width:auto!important;min-width:180px!important;max-width:226px!important}
html[data-bmf-layout="desktop"] #app .topbar .action-btn{flex:0 1 128px!important;width:auto!important;min-width:104px!important;max-width:142px!important;padding-left:9px!important;padding-right:9px!important;white-space:nowrap!important}
html[data-bmf-layout="desktop"] #app .topbar .bell{flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;margin-left:auto!important}
html[data-bmf-layout="desktop"] #app .page-header,
html[data-bmf-layout="desktop"] #app .page-head,
html[data-bmf-layout="desktop"] #app .page-actions,
html[data-bmf-layout="desktop"] #app .toolbar,
html[data-bmf-layout="desktop"] #app .filters,
html[data-bmf-layout="desktop"] #app .filter-row,
html[data-bmf-layout="desktop"] #app .forecast-nav-wrap{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
html[data-bmf-layout="desktop"] #app .page-header{align-items:flex-start!important;gap:12px!important}
html[data-bmf-layout="desktop"] #app .page-header>div:first-child{flex:1 1 360px!important;min-width:0!important}
html[data-bmf-layout="desktop"] #app .page-actions{flex:0 1 auto!important;display:flex!important;justify-content:flex-end!important;gap:7px!important}
html[data-bmf-layout="desktop"] #app .page-actions>*{flex:0 1 auto!important;white-space:nowrap!important}

/* Tabelas: todas obedecem ao mesmo contrato, sem rolagem horizontal da página. */
html[data-bmf-layout="desktop"] #app .table-wrap,
html[data-bmf-layout="desktop"] #app .forecast-table-wrap,
html[data-bmf-layout="desktop"] #app .record-table-wrap,
html[data-bmf-layout="desktop"] #app .transaction-table-wrap,
html[data-bmf-layout="desktop"] #app .page-card>div[style*="overflow:auto"]{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:visible!important}
html[data-bmf-layout="desktop"] #app table.data-table,
html[data-bmf-layout="desktop"] #app table.tx-table,
html[data-bmf-layout="desktop"] #app table.record-table{display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
html[data-bmf-layout="desktop"] #app table.data-table thead,
html[data-bmf-layout="desktop"] #app table.tx-table thead,
html[data-bmf-layout="desktop"] #app table.record-table thead{display:table-header-group!important;visibility:visible!important}
html[data-bmf-layout="desktop"] #app table.data-table tbody,
html[data-bmf-layout="desktop"] #app table.tx-table tbody,
html[data-bmf-layout="desktop"] #app table.record-table tbody{display:table-row-group!important;width:auto!important}
html[data-bmf-layout="desktop"] #app table.data-table tr,
html[data-bmf-layout="desktop"] #app table.tx-table tr,
html[data-bmf-layout="desktop"] #app table.record-table tr{display:table-row!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;grid-template-columns:none!important;gap:0!important;cursor:default!important}
html[data-bmf-layout="desktop"] #app table.data-table th,
html[data-bmf-layout="desktop"] #app table.data-table td,
html[data-bmf-layout="desktop"] #app table.tx-table th,
html[data-bmf-layout="desktop"] #app table.tx-table td,
html[data-bmf-layout="desktop"] #app table.record-table th,
html[data-bmf-layout="desktop"] #app table.record-table td{display:table-cell!important;position:static!important;min-width:0!important;max-width:none!important;height:auto!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;vertical-align:middle!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important}
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] th[data-bm-role="date"],
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] td[data-bm-role="date"]{width:var(--bm-table-date)!important;min-width:var(--bm-table-date)!important;max-width:var(--bm-table-date)!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] th[data-bm-role="amount"],
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] td[data-bm-role="amount"]{width:var(--bm-table-amount)!important;min-width:var(--bm-table-amount)!important;max-width:var(--bm-table-amount)!important;text-align:right!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] th[data-bm-role="action"],
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"] td[data-bm-role="action"]{width:var(--bm-table-action)!important;min-width:var(--bm-table-action)!important;max-width:var(--bm-table-action)!important;text-align:right!important;overflow:visible!important}
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"]:not(.bm-ledger-table) td[data-bm-role="action"]>div,
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"]:not(.bm-ledger-table) td[data-bm-role="action"]>.record-row-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;width:100%!important;max-width:100%!important}
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"]:not(.bm-ledger-table) td[data-bm-role="action"] button,
html[data-bmf-layout="desktop"] #app table[data-bm-responsive="1"]:not(.bm-ledger-table) td[data-bm-role="action"] a{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:29px!important;padding:0 7px!important;font-size:8.5px!important;line-height:1!important;white-space:nowrap!important}
html[data-bmf-layout="desktop"] #app table.bm-table-dense th,
html[data-bmf-layout="desktop"] #app table.bm-table-dense td{padding-left:6px!important;padding-right:6px!important;font-size:9.5px!important}
html[data-bmf-layout="desktop"] #app table.data-table td::before,
html[data-bmf-layout="desktop"] #app table.tx-table td::before,
html[data-bmf-layout="desktop"] #app table.record-table td::before,
html[data-bmf-layout="desktop"] #app table.data-table tr::after{display:none!important;content:none!important}





/* Cartões desktop: visual expansível canônico, sem alteração no mobile. */
html[data-bmf-layout="desktop"] #app .bm-web-card-page{display:grid;gap:10px;width:100%;min-width:0;margin-top:2px}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 4px}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item{
  display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:106px;min-width:0;
  padding:16px 21px;background:#fff;border:1px solid #e2e9f3;border-radius:13px;
  box-shadow:0 2px 9px rgba(23,53,92,.04);
}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item>div{display:grid;gap:5px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item span:not(.bm-web-card-summary-icon){font-size:11px;color:#6e809b}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item strong{font-size:23px;font-weight:800;line-height:1.1;letter-spacing:-.4px}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item strong.open{color:#1767e9}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item strong.available{color:#0aa99b}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item small{font-size:10px;color:#8999ab}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-icon{
  display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;
  background:#eaf2ff;color:#146cf1;border-radius:13px;font-size:33px;font-weight:550;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-summary-icon.available{background:#e9f8f6;color:#09b2a7}
html[data-bmf-layout="desktop"] #app .bm-web-card-list-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:2px 2px 1px;color:#283d5a;font-size:12px;font-weight:750;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-sort{height:29px;padding:0 9px;border:0;border-radius:7px;color:#2369cc;background:transparent;font-size:11px;font-weight:700;cursor:pointer}
html[data-bmf-layout="desktop"] #app .bm-web-card-sort:hover{background:#ecf4ff}
html[data-bmf-layout="desktop"] #app .bm-web-card-list{display:grid;gap:8px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-web-card-entry{
  min-width:0;overflow:visible;background:#fff;border:1px solid #e0e8f2;border-radius:13px;
  box-shadow:0 2px 9px rgba(26,54,91,.035);
}
html[data-bmf-layout="desktop"] #app .bm-web-card-entry.is-expanded{border-color:#cbdcf6;box-shadow:0 3px 14px rgba(25,70,130,.07)}
html[data-bmf-layout="desktop"] #app .bm-web-card-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:0 12px;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-toggle{
  display:grid;grid-template-columns:42px minmax(115px,1.4fr) minmax(100px,1fr) minmax(125px,1fr) 18px;
  align-items:center;gap:10px;min-width:0;width:100%;min-height:67px;margin:0;padding:6px 0;
  text-align:left;border:0;background:transparent;cursor:pointer;color:#1c3152;font:inherit;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-toggle:focus-visible{
  outline:2px solid #5c9bfc;outline-offset:2px;border-radius:6px;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-logo{width:39px;height:39px;display:grid;place-items:center}
html[data-bmf-layout="desktop"] #app .bm-web-card-logo .bm-inst-logo{
  width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;flex-basis:39px!important;
  box-shadow:0 1px 5px rgba(30,53,85,.09)!important;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-logo .bm-inst-logo.official-auto{padding:3px!important}
html[data-bmf-layout="desktop"] #app .bm-web-card-ident{display:grid;gap:4px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-web-card-ident strong{
  color:#19345d;font-size:12.5px;font-weight:750;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-ident small{font-size:10px;color:#6d88af;font-weight:600}
html[data-bmf-layout="desktop"] #app .bm-web-card-mainvalue,
html[data-bmf-layout="desktop"] #app .bm-web-card-free{min-width:0;display:grid;gap:5px;padding-left:12px;border-left:1px solid #e7ecf3}
html[data-bmf-layout="desktop"] #app .bm-web-card-mainvalue small,
html[data-bmf-layout="desktop"] #app .bm-web-card-free small{color:#7b899f;font-size:10.5px;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-mainvalue strong,
html[data-bmf-layout="desktop"] #app .bm-web-card-free strong{color:#38516f;font-size:13px;font-weight:800;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-mainvalue strong.due{color:#db3e53}
html[data-bmf-layout="desktop"] #app .bm-web-card-free strong{color:#079d7c}
html[data-bmf-layout="desktop"] #app .bm-web-card-chevron{color:#617da5;font-size:19px;text-align:center;font-weight:800}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button{
  display:inline-flex!important;justify-content:center;align-items:center;gap:5px;
  width:70px!important;min-width:70px!important;max-width:70px!important;height:30px!important;
  border:1px solid #cbdbf3!important;border-radius:8px!important;
  background:#f5f9ff!important;color:#245eb2!important;
  font:700 10px/1 Inter,Arial,sans-serif!important;padding:0 5px!important;margin:0!important;
  cursor:pointer;white-space:nowrap;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button.bm-web-card-cenize-btn{
  flex:0 0 146px!important;width:146px!important;min-width:146px!important;max-width:146px!important;
  height:30px!important;padding:0 7px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:clip!important;color:#245eb2!important;
  background:#f5f9ff!important;border-color:#cbdbf3!important;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button.bm-account-delete{
  border-color:#f0cbd2!important;background:#fff7f8!important;color:#c74756!important;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button:hover{background:#e8f1ff!important}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button.bm-account-delete:hover{background:#ffeaee!important}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions button:focus-visible{outline:2px solid #5d93e6;outline-offset:2px}
html[data-bmf-layout="desktop"] #app .bm-web-card-actions svg{width:14px;height:14px;flex:0 0 14px}
html[data-bmf-layout="desktop"] #app .bm-web-card-expanded{
  display:grid;gap:12px;padding:14px 17px 16px;border-top:1px solid #e6edf7;
  background:linear-gradient(180deg,#f7faff 0%,#fff 100%);border-radius:0 0 13px 13px;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-web-card-detail-left{display:grid;gap:10px}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle,
html[data-bmf-layout="desktop"] #app .bm-web-card-category-panel{
  padding:13px 15px;background:#fff;border:1px solid #e2eaf5;border-radius:11px;min-width:0;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-head{display:flex;align-items:center;justify-content:space-between;gap:9px}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-head>div{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-head small{color:#3c5d8a;font-size:11px;font-weight:750;text-transform:capitalize}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-head>strong{color:#1e3459;font-size:16px;font-weight:800;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-head>strong.due{color:#df334a}
html[data-bmf-layout="desktop"] #app .bm-web-card-status{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:7px;font-size:9px;font-weight:700;background:#edf3ff;color:#3268a3}
html[data-bmf-layout="desktop"] #app .bm-web-card-status.late{background:#ffe8ed;color:#c42d43}
html[data-bmf-layout="desktop"] #app .bm-web-card-status.paid{background:#e7f8ee;color:#118053}
html[data-bmf-layout="desktop"] #app .bm-web-card-status.pending{background:#fff6e5;color:#a56c11}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-pairs{display:grid;grid-template-columns:1fr 1fr;gap:9px 19px;margin:12px 0}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-pairs>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 6px;border-bottom:1px solid #edf2f8}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-pairs span{color:#6f819b;font-size:10px}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-pairs strong{color:#2a3d60;font-size:11px;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-cycle-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-btn,
html[data-bmf-layout="desktop"] #app .bm-web-card-purchases{
  min-height:32px;padding:0 11px;border:1px solid #b9cfef;border-radius:8px;background:#fff;
  color:#2166c9;font:700 10.5px Inter,Arial,sans-serif;cursor:pointer;
}
html[data-bmf-layout="desktop"] #app .bm-web-card-btn:hover,
html[data-bmf-layout="desktop"] #app .bm-web-card-purchases:hover{background:#eef5ff}
html[data-bmf-layout="desktop"] #app .bm-web-card-btn.primary{background:#146cf2;border-color:#146cf2;color:#fff}
html[data-bmf-layout="desktop"] #app .bm-web-card-btn.primary:hover{background:#0758d8}
html[data-bmf-layout="desktop"] #app .bm-web-card-cenize{font-size:9.5px;color:#6c7a91}
html[data-bmf-layout="desktop"] #app .bm-web-card-limit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
html[data-bmf-layout="desktop"] #app .bm-web-card-limit-grid>div{display:grid;gap:4px;padding:9px;border:1px solid #e5edf6;border-radius:9px;background:#fff}
html[data-bmf-layout="desktop"] #app .bm-web-card-limit-grid span{font-size:9.5px;color:#7d8da2}
html[data-bmf-layout="desktop"] #app .bm-web-card-limit-grid strong{font-size:11px;color:#304866}
html[data-bmf-layout="desktop"] #app .bm-web-card-limit-grid strong.free{color:#0b9874}
html[data-bmf-layout="desktop"] #app .bm-web-card-category-panel h3{margin:0 0 10px;color:#1b3357;font-size:12px}
html[data-bmf-layout="desktop"] #app .bm-web-card-chart{display:grid;grid-template-columns:125px minmax(0,1fr);gap:13px;align-items:center}
html[data-bmf-layout="desktop"] #app .bm-web-card-donut{position:relative;display:grid;place-items:center;width:124px;height:124px;border-radius:100%}
html[data-bmf-layout="desktop"] #app .bm-web-card-donut-center{display:grid;place-content:center;gap:2px;width:76px;height:76px;border-radius:50%;background:#fff;text-align:center;box-shadow:0 0 2px rgba(25,47,89,.08)}
html[data-bmf-layout="desktop"] #app .bm-web-card-donut-center small{font-size:9px;color:#7083a0}
html[data-bmf-layout="desktop"] #app .bm-web-card-donut-center strong{font-size:11px;color:#223c66;font-weight:800;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-legend{display:grid;gap:8px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-web-card-category{display:flex;gap:7px;align-items:center;min-width:0;font-size:10px;color:#5e728d}
html[data-bmf-layout="desktop"] #app .bm-web-card-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%}
html[data-bmf-layout="desktop"] #app .bm-web-card-category-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-category strong{color:#405877;font-weight:750;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-chart-note{display:block;margin-top:9px;color:#8491a4;font-size:9px;line-height:1.45}
html[data-bmf-layout="desktop"] #app .bm-web-card-categories-empty{display:grid;place-items:center;min-height:144px;color:#8898b0;font-size:11px}
html[data-bmf-layout="desktop"] #app .bm-web-card-detail-bottom{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
html[data-bmf-layout="desktop"] #app .bm-web-card-detail-bottom>.bm-web-card-cycle{flex:1 1 360px}
html[data-bmf-layout="desktop"] #app .bm-web-card-detail-bottom>.bm-web-card-purchases{align-self:center;min-height:35px}
html[data-bmf-layout="desktop"] #app .bm-web-card-overdue{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:10px 12px;border:1px solid #f0d1d5;background:#fff8f9;border-radius:9px;color:#be3348;font-size:10px}
html[data-bmf-layout="desktop"] #app .bm-web-card-overdue button{border:0;background:transparent;color:#bc3246;font-size:10px;cursor:pointer}
html[data-bmf-layout="desktop"] #app .bm-web-card-no-cycle{padding:10px;color:#7e8da4;font-size:11px}
@media(max-width:1250px){
 html[data-bmf-layout="desktop"] #app .bm-web-card-toggle{grid-template-columns:38px minmax(100px,1.35fr) minmax(90px,.9fr) minmax(105px,1fr) 17px;gap:7px}
 html[data-bmf-layout="desktop"] #app .bm-web-card-row{padding:0 9px}
 html[data-bmf-layout="desktop"] #app .bm-web-card-mainvalue,html[data-bmf-layout="desktop"] #app .bm-web-card-free{padding-left:7px}
 html[data-bmf-layout="desktop"] #app .bm-web-card-actions{gap:4px}
 html[data-bmf-layout="desktop"] #app .bm-web-card-actions button{width:61px!important;min-width:61px!important;max-width:61px!important;font-size:9.5px!important}
 html[data-bmf-layout="desktop"] #app .bm-web-card-actions button.bm-web-card-cenize-btn{flex-basis:126px!important;width:126px!important;min-width:126px!important;max-width:126px!important;padding:0 4px!important;font-size:9.5px!important}
 html[data-bmf-layout="desktop"] #app .bm-web-card-summary-item{min-height:91px}
}
@media(max-width:1000px){
 html[data-bmf-layout="desktop"] #app .bm-web-card-detail-grid{grid-template-columns:1fr}
 html[data-bmf-layout="desktop"] #app .bm-web-card-chart{grid-template-columns:125px minmax(0,1fr)}
 html[data-bmf-layout="desktop"] #app .bm-web-card-toggle{grid-template-columns:34px minmax(76px,1fr) minmax(90px,.9fr) minmax(95px,.9fr) 16px;gap:5px}
 html[data-bmf-layout="desktop"] #app .bm-web-card-toggle .bm-web-card-free small{font-size:9px}
}

/* Contas desktop: mesma identidade de instituições do mobile, renderer e geometria canônicos. */
html[data-bmf-layout="desktop"] #app .bm-accounts-table-wrap{
  width:100%;max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:thin;
  border:1px solid #e6edf5;border-radius:10px;background:#fff;
}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table{
  --bm-table-amount:135px;--bm-table-action:185px;
  display:table!important;width:100%!important;min-width:900px!important;
  max-width:none!important;table-layout:fixed!important;
}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(1){width:auto}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(2){width:22%}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(3){width:10%}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(4){width:135px}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(5){width:90px}
html[data-bmf-layout="desktop"] #app table.bm-accounts-table col:nth-child(6){width:185px}
html[data-bmf-layout="desktop"] #app .bm-accounts-table th{
  height:39px!important;padding:8px 10px!important;border-bottom:1px solid #e4ebf4;
  font-size:11px!important;font-weight:750;color:#677990;background:#f8fafc;white-space:nowrap!important;
}
html[data-bmf-layout="desktop"] #app .bm-accounts-table td{
  height:54px!important;padding:6px 10px!important;border-bottom:1px solid #edf1f6;
  font-size:11.5px!important;color:#42536d;line-height:1.3!important;vertical-align:middle!important;
}
html[data-bmf-layout="desktop"] #app .bm-accounts-table tr:last-child td{border-bottom:0}
html[data-bmf-layout="desktop"] #app .bm-accounts-table tbody tr:hover td{background:#f8fbff}
html[data-bmf-layout="desktop"] #app .bm-account-name-line{display:flex;align-items:center;gap:11px;min-width:0}
html[data-bmf-layout="desktop"] #app .bm-account-logo{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px}
html[data-bmf-layout="desktop"] #app .bm-account-logo .bm-inst-logo{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  flex:0 0 36px!important;box-shadow:0 1px 4px rgba(28,56,92,.08)!important;
}
html[data-bmf-layout="desktop"] #app .bm-account-logo .bm-inst-logo.official-auto{padding:3px!important}
html[data-bmf-layout="desktop"] #app .bm-account-logo .bm-inst-logo.contextual{border-radius:10px!important}
html[data-bmf-layout="desktop"] #app .bm-account-logo .bm-inst-logo.contextual svg{
  width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important;
}
html[data-bmf-layout="desktop"] #app .bm-account-logo .bm-inst-fallback svg{width:20px!important;height:20px!important}
html[data-bmf-layout="desktop"] #app .bm-account-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .bm-account-name-text strong{font-size:12px;font-weight:750;color:#183d74}
html[data-bmf-layout="desktop"] #app .bm-account-institution strong{
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#324765;
  font-size:11px;font-weight:650;
}
html[data-bmf-layout="desktop"] #app .bm-account-institution small{display:block;margin-top:3px;font-size:9.5px;color:#8290a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-bmf-layout="desktop"] #app .bm-account-scope-tag{
  display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:7px;
  font-size:10px;font-weight:650;color:#4a6390;background:#f0f5ff;
}
html[data-bmf-layout="desktop"] #app .bm-account-scope-tag.is-business{color:#7851a8;background:#f5f0fb}
html[data-bmf-layout="desktop"] #app .bm-accounts-table .bm-account-balance{
  font-size:12px!important;font-weight:750;text-align:right;white-space:nowrap!important;
}
html[data-bmf-layout="desktop"] #app .bm-accounts-table .bm-account-balance.amount-neg{color:#d33d51!important}
html[data-bmf-layout="desktop"] #app .bm-accounts-table .bm-account-balance.amount-pos{color:#078c60!important}
html[data-bmf-layout="desktop"] #app .bm-account-source{color:#7c8b9f!important}
html[data-bmf-layout="desktop"] #app .bm-accounts-table th:last-child{text-align:right}
html[data-bmf-layout="desktop"] #app :is(.bm-accounts-table,.bm-ledger-table) .bm-account-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:7px!important;flex-wrap:nowrap!important;white-space:nowrap!important;
}
html[data-bmf-layout="desktop"] #app :is(.bm-accounts-table,.bm-ledger-table) .bm-account-actions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;flex:0 0 auto!important;height:31px!important;width:75px!important;
  min-width:75px!important;max-width:75px!important;margin:0!important;padding:0 7px!important;
  border:1px solid #cbdcf6!important;border-radius:8px!important;
  background:#f5f9ff!important;color:#245eb2!important;font-size:10.5px!important;
  font-weight:700!important;line-height:1!important;
}
html[data-bmf-layout="desktop"] #app :is(.bm-accounts-table,.bm-ledger-table) .bm-account-actions button:hover{
  background:#e8f1ff!important;border-color:#a6c5f5!important;
}
html[data-bmf-layout="desktop"] #app :is(.bm-accounts-table,.bm-ledger-table) .bm-account-actions button.bm-account-delete{
  background:#fff7f8!important;border-color:#f0ced4!important;color:#c44758!important;
}
html[data-bmf-layout="desktop"] #app :is(.bm-accounts-table,.bm-ledger-table) .bm-account-actions button.bm-account-delete:hover{
  background:#ffedf0!important;border-color:#e7acb8!important;
}
html[data-bmf-layout="desktop"] #app .bm-account-actions svg{width:14px;height:14px;flex:0 0 14px}
html[data-bmf-layout="desktop"] #app .bm-account-actions button:focus-visible{
  outline:2px solid #4c87e8!important;outline-offset:2px!important;
}

/* Transações, Receitas e Despesas compartilham o componente de ações de Contas no desktop. */
html[data-bmf-layout="desktop"] #app table.bm-ledger-table{--bm-table-action:185px;--bm-table-date:94px;--bm-table-amount:108px}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table th[data-bm-role="action"],
html[data-bmf-layout="desktop"] #app table.bm-ledger-table td[data-bm-role="action"]{padding-left:7px!important;padding-right:7px!important;overflow:visible!important}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table td[data-bm-role="action"] .bm-account-actions{width:100%;min-width:0;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:7px!important}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table td[data-bm-role="action"] .bm-account-actions:has([data-v17-undo-tx]){flex-wrap:wrap!important;row-gap:5px!important}

html[data-bmf-layout="desktop"] #app table.bm-ledger-table .bm-account-actions .bm-ledger-cenize-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  flex:0 0 157px!important;width:157px!important;min-width:157px!important;max-width:157px!important;
  height:31px!important;margin:0!important;padding:0 9px!important;border:1px solid #cbdcf6!important;
  border-radius:8px!important;background:#f5f9ff!important;color:#245eb2!important;
  font:700 10.5px/1 Inter,Arial,sans-serif!important;white-space:nowrap!important;
}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table .bm-account-actions .bm-ledger-cenize-btn:hover{
  background:#e8f1ff!important;border-color:#a6c5f5!important;
}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table .bm-account-actions .bm-ledger-cenize-btn svg{width:14px;height:14px;flex:0 0 14px}
html[data-bmf-layout="desktop"] #app table.bm-ledger-table .bm-account-actions .projection-estimate-btn{width:auto!important;min-width:120px!important;max-width:100%!important;height:31px!important;padding:0 9px!important;font-size:10px!important;white-space:nowrap!important}

/* A pagar / A receber — layout desktop aprovado. Contrato principal, não sobreposição. */
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page){background:#f7fafd}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar{background:#fff}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar .promo,
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar .user-card,
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar .sidebar-spacer{display:none!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar .nav{flex:1;display:flex;flex-direction:column;min-height:0}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .sidebar .nav .nav-item:last-child{margin-top:auto}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar{display:grid!important;grid-template-columns:minmax(170px,1fr) 212px max-content 112px 112px!important;min-height:58px!important;height:58px!important;padding-top:7px!important;padding-bottom:7px!important;gap:8px!important;align-items:center!important;flex-wrap:nowrap!important;background:#fff}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .bm-v58-controls{grid-column:3;display:flex!important;align-items:center;gap:6px!important;flex:none!important;width:max-content!important;max-width:none!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .search-box{grid-column:1;width:100%!important;min-width:0!important;max-width:none!important;flex:none!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .date-box{grid-column:2;width:212px!important;min-width:0!important;max-width:100%!important;flex:none!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .action-btn{min-width:0!important;width:112px!important;max-width:112px!important;flex:none!important;height:36px!important;padding:0 8px!important;font-size:10.5px!important}
html[data-bmf-layout="desktop"] #app .forecast-header-tabs{height:36px;padding:2px;display:flex;align-items:center;gap:2px;border:1px solid #e0e7f1;border-radius:8px;background:#f7f9fc}
html[data-bmf-layout="desktop"] #app .forecast-header-tabs button{height:30px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#485b7d;font-size:10.5px;font-weight:650;white-space:nowrap;cursor:pointer}
html[data-bmf-layout="desktop"] #app .forecast-header-tabs button.active{background:#0067ff;color:#fff;box-shadow:0 3px 6px rgba(7,96,231,.15)}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .bm-v58-filter{height:36px!important;min-width:79px!important;width:79px!important;max-width:79px!important;padding:0 6px!important;font-size:10px!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .action-blue,
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .topbar .bell{display:none!important}
html[data-bmf-layout="desktop"] #app .app-shell:has(.forecast-desktop-page) .content{padding-top:0!important;padding-bottom:12px!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-page{width:100%;min-width:0;padding-top:0;background:transparent}
html[data-bmf-layout="desktop"] #app .forecast-desktop-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 10px}
html[data-bmf-layout="desktop"] #app .forecast-kpi{height:83px;display:flex;align-items:center;gap:10px;padding:9px 11px;background:#fff;border:1px solid #e1e9f3;border-radius:10px;box-shadow:0 3px 12px rgba(27,51,82,.025);min-width:0}
html[data-bmf-layout="desktop"] #app .forecast-kpi-icon{height:53px;width:53px;flex:0 0 53px;display:grid;place-items:center;border-radius:50%;color:#0c9a63;background:#e7f9f0}
html[data-bmf-layout="desktop"] #app .forecast-kpi-icon svg{height:27px;width:27px;max-width:none}
html[data-bmf-layout="desktop"] #app .forecast-kpi-expense .forecast-kpi-icon{background:#ffeaed;color:#f02534}
html[data-bmf-layout="desktop"] #app .forecast-kpi-net .forecast-kpi-icon,
html[data-bmf-layout="desktop"] #app .forecast-kpi-calendar .forecast-kpi-icon{background:#e9f2ff;color:#0766f9}
html[data-bmf-layout="desktop"] #app .forecast-kpi-net .forecast-kpi-icon svg{fill:currentColor;stroke-width:0}
html[data-bmf-layout="desktop"] #app .forecast-kpi-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
html[data-bmf-layout="desktop"] #app .forecast-kpi-copy small{font-size:11px;line-height:1.2;color:#4d6180;font-weight:500}
html[data-bmf-layout="desktop"] #app .forecast-kpi-copy strong{font-size:20px;line-height:1.18;font-weight:800;white-space:nowrap;letter-spacing:-.4px;color:#078f4e}
html[data-bmf-layout="desktop"] #app .forecast-kpi-expense strong{color:#ee091e}
html[data-bmf-layout="desktop"] #app .forecast-kpi-net strong{color:#004ed1}
html[data-bmf-layout="desktop"] #app .forecast-kpi-calendar strong{font-size:16px;color:#172d58}
html[data-bmf-layout="desktop"] #app .forecast-kpi-copy>span{font-size:10px;color:#6d80a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html[data-bmf-layout="desktop"] #app .forecast-kpi-chevron{margin-left:auto;color:#0c274b;font-size:29px}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table-wrap{position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;scrollbar-width:thin;background:#fff;border:1px solid #e2eaf3;border-radius:10px;box-shadow:0 3px 14px rgba(24,43,78,.026)}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table{--bm-table-date:96px;--bm-table-amount:122px;--bm-table-action:196px;display:table!important;width:100%!important;min-width:990px!important;max-width:none!important;table-layout:fixed!important;border-spacing:0!important;border-collapse:separate!important}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(1){width:35px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(2){width:96px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(3){width:auto}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(4){width:155px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(5){width:140px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(6){width:120px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(7){width:94px}
html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(8){width:198px}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table th{height:38px!important;padding:5px 7px!important;border-bottom:1px solid #e4eaf2;background:#f8fafc;color:#1c3157;font-size:10px!important;font-weight:750;text-align:left;white-space:nowrap!important;overflow:hidden!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table th.forecast-check-cell{text-align:center}
html[data-bmf-layout="desktop"] #app .forecast-sort-symbol{color:#6483aa;font-size:10px;padding-left:2px}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:1px;max-width:100%;padding:0;border:0;background:transparent;color:#1c3157;font:750 10px Inter,Arial,sans-serif;white-space:nowrap;cursor:pointer}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table td{height:48px!important;padding:4px 7px!important;border-bottom:1px solid #e8edf3!important;background:#fff;font-size:11px!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table tbody tr:last-child td{border-bottom:0!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table tbody tr:hover td{background:#fbfdff!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-check-cell{text-align:center}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table input[type="checkbox"]{width:15px;height:15px;accent-color:#1164f4;vertical-align:middle;cursor:pointer}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-date-cell{text-align:center}
html[data-bmf-layout="desktop"] #app .forecast-date-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;width:51px;height:39px;margin:auto;border-radius:8px;background:#f1f5fb;color:#182f5e;line-height:1}
html[data-bmf-layout="desktop"] #app .forecast-date-tile strong{font-size:14px;font-weight:800;line-height:15px}
html[data-bmf-layout="desktop"] #app .forecast-date-tile small{font-size:9px;line-height:10px;color:#6b80a4;font-weight:650}
html[data-bmf-layout="desktop"] #app .forecast-description-inner,
html[data-bmf-layout="desktop"] #app .forecast-account-inner{display:flex;align-items:center;gap:16px;min-width:0}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon,
html[data-bmf-layout="desktop"] #app .forecast-account-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:8px;background:#f3f7fd;color:#122f6a}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon{color:#0aaf6a;background:#e9f9f0}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon.fc-red{color:#fa1332;background:#ffeaef}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon.fc-blue{color:#056afc;background:#eaf2ff}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon.fc-orange{color:#ff2a44;background:#fff0f0}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon.fc-amber{color:#ff9b00;background:#fff4e4}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon.fc-purple{color:#8136fd;background:#f1e7ff}
html[data-bmf-layout="desktop"] #app .forecast-entry-icon svg,
html[data-bmf-layout="desktop"] #app .forecast-account-icon svg{width:20px;height:20px;max-width:none}
html[data-bmf-layout="desktop"] #app .forecast-account-icon{flex:0 0 33px;width:33px;height:33px}
html[data-bmf-layout="desktop"] #app .forecast-account-icon svg{width:22px;height:22px}
html[data-bmf-layout="desktop"] #app .forecast-bank-image{width:29px;height:29px;object-fit:contain}
html[data-bmf-layout="desktop"] #app .forecast-entry-text,
html[data-bmf-layout="desktop"] #app .forecast-account-text{display:block;min-width:0;overflow:hidden}
html[data-bmf-layout="desktop"] #app .forecast-entry-text strong,
html[data-bmf-layout="desktop"] #app .forecast-account-text strong{display:block;font-size:11px;font-weight:750;line-height:1.3;color:#172c55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-bmf-layout="desktop"] #app .forecast-entry-text small,
html[data-bmf-layout="desktop"] #app .forecast-account-text small{display:block;margin-top:2px;color:#6f819f;font-size:9.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-bmf-layout="desktop"] #app .forecast-category{color:#667a9c;font-size:10.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-bmf-layout="desktop"] #app .forecast-category-dot{width:8px;height:8px;margin-right:7px;display:inline-block;vertical-align:baseline;border-radius:100%;background:#1686ef}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-green{background:#08a268}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-red{background:#f31335}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-purple{background:#8134f8}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-amber{background:#ffb900}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-orange{background:#ff770d}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-blue{background:#1688f8}
html[data-bmf-layout="desktop"] #app .forecast-category-dot.cat-pink{background:#f95e9d}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-money{text-align:right!important;white-space:nowrap!important;font-weight:800;font-size:12px!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-money.amount-pos{color:#00914e}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-money.amount-neg{color:#ff142c}
html[data-bmf-layout="desktop"] #app .forecast-state{display:inline-flex;align-items:center;justify-content:center;min-width:74px;height:25px;padding:0 7px;border-radius:7px;font-size:10px;font-weight:600;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .forecast-state.receive{color:#078e55;background:#e7f8f0}
html[data-bmf-layout="desktop"] #app .forecast-state.pay{color:#ed1225;background:#ffe9ed}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;max-width:100%;width:100%}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions button,
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-more summary{display:inline-flex!important;flex:0 0 auto!important;align-items:center;justify-content:center;width:auto!important;min-width:0!important;max-width:100%!important;height:30px!important;margin:0!important;padding:0 8px!important;border:1px solid #dce5f0;border-radius:7px;color:#152c55;background:#f7f9fc;font:700 10px/1 Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions .secondary-btn[data-edit]{min-width:48px!important;width:48px!important;padding:0 7px!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions .realize-btn{min-width:62px!important;color:#fff;background:#0065fb;border-color:#0065fb}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions .realize-btn:has([data-type="income"]){background:#00994f}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table tr:has(.forecast-state.receive) .forecast-desktop-actions .realize-btn{background:#008e49;border-color:#008e49}
html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-more-trigger{flex:0 0 29px!important;width:29px!important;min-width:29px!important;padding:0!important;font-size:17px!important;background:#fff}
html[data-bmf-layout="desktop"] #app .forecast-menu-holder{position:relative;display:inline-flex;flex:0 0 auto}
html[data-bmf-layout="desktop"] #app .forecast-inline-menu{display:none;position:fixed;z-index:1500000;width:126px;padding:6px;border:1px solid #e0e7f1;border-radius:9px;background:#fff;box-shadow:0 10px 22px rgba(18,42,81,.2)}
html[data-bmf-layout="desktop"] #app .forecast-menu-holder.is-open .forecast-inline-menu,
html[data-bmf-layout="desktop"] #app .forecast-menu-holder.is-open:focus-within .forecast-inline-menu{display:block}
html[data-bmf-layout="desktop"] #app .forecast-inline-menu .delete-btn-global{width:100%!important;min-width:0!important;height:33px!important;padding:0 7px!important;color:#c72c3c!important;background:#fff5f6!important;border-color:#ffdae0!important;font-size:11px!important}
html[data-bmf-layout="desktop"] #app .forecast-desktop-aux{justify-content:flex-end;margin:9px 0 0;padding:0;border:0;background:transparent}
html[data-bmf-layout="desktop"] #app .forecast-desktop-aux:empty{display:none}
html[data-bmf-layout="desktop"] #app .forecast-desktop-aux .payroll-toolbar{margin:0 0 0 auto}
html[data-bmf-layout="desktop"] #app .forecast-desktop-page .payroll-summary{margin:7px 0 0}
html[data-bmf-layout="desktop"] #app .forecast-desktop-page .owner-prolabore-dest.is-expanded .owner-prolabore-details{max-height:226px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
html[data-bmf-layout="desktop"] #app .forecast-desktop-footer{height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;border-top:1px solid #e7ecf4;color:#4b6388;font-size:10.5px}
html[data-bmf-layout="desktop"] #app .forecast-totals{display:flex;align-items:center;gap:11px;white-space:nowrap}
html[data-bmf-layout="desktop"] #app .forecast-totals i{width:1px;height:17px;background:#bbc9db}
html[data-bmf-layout="desktop"] #app .forecast-total-income{color:#078f4d;font-size:11px}
html[data-bmf-layout="desktop"] #app .forecast-total-expense{color:#ee1224;font-size:11px}
html[data-bmf-layout="desktop"] #app .forecast-total-net{color:#0060e9;font-size:11px}
html[data-bmf-layout="desktop"] #app .forecast-empty-row{padding:35px!important;text-align:center;color:#8191a6}
@media(max-width:1500px){
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table{--bm-table-date:96px;--bm-table-amount:120px;--bm-table-action:195px;min-width:980px!important}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(1){width:35px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(2){width:96px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(4){width:145px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(5){width:135px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(6){width:120px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(7){width:93px}
 html[data-bmf-layout="desktop"] #app table.forecast-desktop-table col:nth-child(8){width:196px}
 html[data-bmf-layout="desktop"] #app .forecast-desktop-table .forecast-desktop-actions{gap:5px!important}
 html[data-bmf-layout="desktop"] #app .forecast-entry-icon{flex-basis:32px;width:32px;height:32px}
 html[data-bmf-layout="desktop"] #app .forecast-description-inner,html[data-bmf-layout="desktop"] #app .forecast-account-inner{gap:8px}
 html[data-bmf-layout="desktop"] #app .forecast-account-icon{flex-basis:31px;width:31px;height:31px}
 html[data-bmf-layout="desktop"] #app .forecast-desktop-kpis{gap:9px}
 html[data-bmf-layout="desktop"] #app .forecast-kpi{gap:10px;padding:10px}
 html[data-bmf-layout="desktop"] #app .forecast-kpi-icon{width:49px;height:49px;flex-basis:49px}
 html[data-bmf-layout="desktop"] #app .forecast-kpi-icon svg{width:27px;height:27px}
 html[data-bmf-layout="desktop"] #app .forecast-kpi-copy strong{font-size:18px}
}
@media(max-width:1160px){
 html[data-bmf-layout="desktop"] #app .forecast-desktop-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-bmf-layout="desktop"] #app .forecast-totals{gap:9px;font-size:10px}
}

/* Geometria de janelas pertence exclusivamente ao dialog-core.js. */

/* MOBILE: o shell e as tabelas são cartões expansíveis; uma regra para todas as páginas. */
html[data-bmf-layout="mobile"],html[data-bmf-layout="mobile"] body{overflow-x:hidden!important;background:#eef2f7!important}
html[data-bmf-layout="mobile"] body{padding:0!important}
html[data-bmf-layout="mobile"] #app{min-height:100dvh!important;overflow:visible!important}
html[data-bmf-layout="mobile"] #app .app-shell{display:block!important;width:100%!important;max-width:100%!important;min-height:100dvh!important}
html[data-bmf-layout="mobile"] #app .sidebar{display:none!important;width:0!important;min-width:0!important}
html[data-bmf-layout="mobile"] #app .main,html[data-bmf-layout="mobile"] #app .content{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding-left:0!important;padding-right:0!important;overflow:visible!important}
html[data-bmf-layout="mobile"] #app .fa-app{width:calc(100% - 10px)!important;max-width:100%!important;min-height:100dvh!important;height:auto!important;margin:5px auto 0!important;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;overflow:visible!important}
html[data-bmf-layout="mobile"] #app .fa-main,html[data-bmf-layout="mobile"] #app .fa-generic,html[data-bmf-layout="mobile"] #app .page,html[data-bmf-layout="mobile"] #app .page-card{width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;overflow:visible!important}
html[data-bmf-layout="mobile"] #app .fa-main{padding-bottom:14px!important}
html[data-bmf-layout="mobile"] #app .settings-grid,html[data-bmf-layout="mobile"] #app .integration-list{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important}
html[data-bmf-layout="mobile"] #app .fa-bottom{position:fixed!important;left:5px!important;right:5px!important;bottom:0!important;z-index:300000!important;padding-bottom:env(safe-area-inset-bottom)!important}
html[data-bmf-layout="mobile"] #app select,html[data-bmf-layout="mobile"] #app input,html[data-bmf-layout="mobile"] #app textarea,html[data-bmf-layout="mobile"] #app button{pointer-events:auto!important;touch-action:manipulation}

html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"]{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;border-collapse:separate!important;background:transparent!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] thead{display:none!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody{display:grid!important;width:100%!important;gap:7px!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row="1"]{position:relative!important;display:grid!important;grid-template-columns:68px minmax(0,1fr) auto 18px!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;min-height:52px!important;height:auto!important;margin:0!important;padding:9px 10px!important;border:1px solid #e1e8f1!important;border-radius:13px!important;background:#fff!important;box-shadow:0 3px 10px rgba(25,50,84,.04)!important;cursor:pointer!important;overflow:hidden!important;touch-action:pan-y!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row="1"]::after{content:'›'!important;display:block!important;grid-column:4!important;grid-row:1!important;color:#78879b!important;font:700 21px/1 Inter,Arial,sans-serif!important;text-align:center!important;transform-origin:center!important;transition:transform .14s ease!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]::after{transform:rotate(90deg)!important;align-self:start!important;margin-top:4px!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row="1"]>td{display:none!important;min-width:0!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:middle!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="date"],
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="primary"],
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="amount"]{display:block!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="date"]{grid-column:1!important;color:#69778d!important;font-size:8.5px!important;white-space:nowrap!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="primary"]{grid-column:2!important;color:#203554!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td[data-bm-role="amount"]{grid-column:3!important;color:#263b5a!important;font-size:9.5px!important;font-weight:850!important;text-align:right!important;white-space:nowrap!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="closed"]>td::before{display:none!important;content:none!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]{grid-template-columns:1fr 1fr!important;align-items:start!important;padding:12px!important;gap:10px 12px!important;overflow:visible!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]::after{grid-column:2!important;grid-row:1!important;justify-self:end!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:8px 9px!important;border-radius:9px!important;background:#f7f9fc!important;color:#263b5a!important;font-size:9.5px!important;line-height:1.35!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td::before{content:attr(data-bm-label)!important;display:block!important;color:#8490a2!important;font-size:7.5px!important;font-weight:700!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td[data-bm-role="primary"]{padding-right:28px!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td[data-bm-role="action"]{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;background:transparent!important;padding:2px 0 0!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td[data-bm-role="action"]::before{display:none!important;content:none!important}
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td[data-bm-role="action"] button,
html[data-bmf-layout="mobile"] #app table[data-bm-responsive="1"] tbody tr[data-bm-row-state="open"]>td[data-bm-role="action"] a{min-height:34px!important}

/* Seletor compartilhado: não é modal/backdrop, portanto não entra nos observadores legados de janelas. */
.bm-choice-popover{position:fixed;z-index:3100000;display:flex;flex-direction:column;left:var(--bm-choice-left,calc(50% - 210px));top:var(--bm-choice-top,18vh);width:var(--bm-choice-width,420px);max-width:calc(100vw - 20px);max-height:min(520px,72vh);overflow:hidden;border:1px solid #dce5f0;border-radius:16px;background:#fff;box-shadow:0 22px 65px rgba(20,38,68,.25);font-family:Inter,Arial,sans-serif}
.bm-choice-popover>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px 11px;border-bottom:1px solid #edf1f6;background:#fff}.bm-choice-popover h2{margin:0;color:#20324e;font-size:15px;line-height:1.25}.bm-choice-popover p{margin:4px 0 0;color:#758299;font-size:10px;line-height:1.4}.bm-choice-close{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:9px;background:#f2f5f9;color:#52627a;font-size:20px;cursor:pointer}.bm-choice-list{display:grid;gap:6px;min-height:0;overflow-y:auto;padding:9px;-webkit-overflow-scrolling:touch}.bm-choice-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:46px;padding:9px 11px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;color:#20324e;text-align:left;cursor:pointer}.bm-choice-option span{font-size:11px;font-weight:750}.bm-choice-option small{font-size:8.5px;color:#7b879b}.bm-choice-option.selected{border-color:#7da9fb;background:#f3f7ff}.bm-choice-empty{padding:18px;color:#7b879b;font-size:10px;text-align:center}
html[data-bmf-layout="mobile"] .bm-choice-popover{left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:min(68dvh,560px)!important;border-radius:17px!important;box-shadow:0 -8px 36px rgba(20,38,68,.22)!important}
html[data-bmf-layout="mobile"] .bm-choice-popover>header{padding:14px!important}.bm-choice-popover .bm-choice-option:focus{outline:2px solid rgba(8,114,249,.22);outline-offset:1px}


/* BMCenter Finanças v121 — contrato único de viewport/scroll desktop. */
@media(min-width:761px){
 html[data-bmf-layout="desktop"],html[data-bmf-layout="desktop"] body{height:100dvh!important;min-height:0!important;overflow:hidden!important}
 html[data-bmf-layout="desktop"] #app{height:calc(100dvh - 30px)!important;min-height:0!important;overflow:hidden!important}
 html[data-bmf-layout="desktop"] #app .app-shell{height:100%!important;min-height:0!important;overflow:hidden!important}
 html[data-bmf-layout="desktop"] #app .sidebar{position:relative!important;top:auto!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 html[data-bmf-layout="desktop"] #app .main{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
 html[data-bmf-layout="desktop"] #app .topbar{position:relative!important;top:auto!important;grid-row:1!important}
 html[data-bmf-layout="desktop"] #app .content{grid-row:2!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}
 #bm-system-status-rail{position:fixed;left:0;right:0;bottom:0;height:30px;z-index:50000;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:0 12px;border-top:1px solid #e5eaf1;background:rgba(250,251,253,.98);backdrop-filter:blur(8px);pointer-events:none}
 #bm-system-status-rail .central-sync-indicator,#bm-system-status-rail .cloud-sync-indicator{position:static!important;inset:auto!important;z-index:auto!important;margin:0!important;padding:4px 8px!important;border-radius:999px!important;box-shadow:none!important;font-size:8.5px!important;line-height:1!important;white-space:nowrap!important}
}
#bm-system-status-rail[hidden]{display:none!important}
.dashboard-tx-list{display:grid;margin-top:10px;border-top:1px solid #edf0f5}.dashboard-tx-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:49px;padding:7px 6px;border-bottom:1px solid #edf0f5}.dashboard-tx-row time{color:#77839a;font-size:9px;white-space:nowrap}.dashboard-tx-row span{min-width:0}.dashboard-tx-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273651;font-size:10px}.dashboard-tx-row small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8390a4;font-size:8px}.dashboard-tx-row strong{font-size:10px;white-space:nowrap}.dashboard-tx-row strong.income{color:#13a95a}.dashboard-tx-row strong.expense{color:#e92c34}
