/* FM LINK 07: estilos limitados ao Financeiro, testes e área individual. */
.fm-commerce{--fm-line:#e0e7ec;--fm-ink:#17232c;--fm-accent:#0a765e;color:var(--fm-ink);min-width:0}.fm-commerce :is(h2,h3,p){overflow-wrap:anywhere}.fm-commerce h2{font-size:23px;letter-spacing:-.025em;margin:0 0 14px}.fm-commerce h3{font-size:18px;margin:0 0 8px}.fm-commerce p{line-height:1.6}.fm-commerce label{font-size:12px;letter-spacing:0;margin:0 0 12px}.fm-commerce label small{display:block;font-weight:400;color:#647481;margin-top:6px;line-height:1.5}.fm-commerce input,.fm-commerce select,.fm-commerce textarea{margin-top:5px;min-width:0;max-width:100%}.fm-commerce .card{padding:23px}.fm-hero{display:flex;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#ffffff,#edf8f4)!important}.fm-hero p{margin-bottom:0;color:#60717d;max-width:650px}.fm-tags{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;max-width:280px}.fm-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.fm-tabs a{color:#516573;background:#e6ecef;text-decoration:none;border-radius:10px;padding:11px 14px;font-weight:750;font-size:12px}.fm-tabs a.selected{background:#132a2b;color:#fff}.fm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.fm-metrics article{padding:20px;background:white;border:1px solid var(--fm-line);border-radius:15px;min-width:0}.fm-metrics span{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#657981;display:block}.fm-metrics strong{font-size:25px;letter-spacing:-.04em;margin-top:10px;display:block;overflow-wrap:anywhere}.fm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.fm-grid>.card{margin:8px 0}.fm-grid>*{min-width:0}.fm-wide{grid-column:1/-1}.fm-commerce .fm-check{display:flex;align-items:flex-start;gap:9px;font-weight:500;line-height:1.6;font-size:12px;margin:16px 0}.fm-check input{width:16px;flex:0 0 16px;margin:3px 0}.fm-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.fm-steps b{display:block;font-size:11px;color:var(--fm-accent);margin-bottom:12px}.fm-steps strong{display:block;font-size:15px}.fm-steps p{font-size:13px;color:#60717d}.fm-code{display:block;background:#eef3f5;border-radius:10px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.fm-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.fm-filter label{flex:1 1 200px;margin:0}.fm-filter button{margin-bottom:0;min-height:43px}.fm-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.fm-row>div{min-width:0;flex:1}.fm-record p{font-size:13px}.fm-commerce .pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}.fm-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;font-weight:750;overflow-wrap:anywhere}.fm-fold{margin-top:18px}.fm-fold form{margin-top:16px}.fm-pager{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0;font-size:12px}.fm-progress{height:7px;background:#e6eef0;border-radius:12px;overflow:hidden;margin:12px 0}.fm-progress>span{display:block;height:100%;background:#109477}.fm-binding{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.fm-binding span{font-size:11px;background:#eff4f6;border-radius:7px;padding:7px 10px;color:#52646f}.fm-history{border-top:1px solid #e4ebef;margin-top:12px;padding-top:12px;font-size:12px;color:#61717c}.fm-commerce .trial-record{align-items:flex-start;display:block}.fm-commerce .trial-record form{margin-top:13px}.fm-commerce :is(input,button,.btn,a){touch-action:manipulation}.fm-commerce :is(button,.btn){white-space:normal;text-align:center}.fm-commerce :focus-visible{outline:3px solid #32a08d;outline-offset:3px}.fm-commerce .fm-grid .access-card{min-width:0}.fm-commerce .fm-link{color:#08745c;font-size:13px;font-weight:750}.fm-offer{border-top:3px solid #0b8567}.fm-offer .fm-price{font-size:30px;font-weight:800;letter-spacing:-.04em}.fm-offer .fm-price small{font-size:13px;font-weight:500}.fm-commerce .access-code{word-break:break-all}.fm-commerce form{max-width:100%}
@media(max-width:1050px){.fm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-hero{flex-direction:column}.fm-tags{max-width:none}.fm-steps{gap:14px}}
@media(max-width:760px){.fm-commerce .card{padding:18px}.fm-commerce h2{font-size:21px}.fm-grid,.fm-steps{grid-template-columns:1fr}.fm-grid{gap:7px}.fm-wide{grid-column:auto}.fm-tabs a{flex:1 1 auto;text-align:center;padding:11px 9px}.fm-metrics{gap:9px}.fm-metrics article{padding:15px 12px}.fm-metrics strong{font-size:23px}.fm-filter label{flex-basis:100%}.fm-filter button{width:100%}.fm-row>div{flex-basis:100%}.fm-commerce .actions{gap:8px}.fm-commerce .actions form{flex:1 1 180px}.fm-commerce .actions button{width:100%}.fm-commerce .actions .btn{flex:1 1 150px}.fm-fold>summary{align-items:flex-start;flex-wrap:wrap}.fm-steps>div+div{border-top:1px solid #e3ecef;padding-top:16px}.fm-record{padding:16px!important}.fm-commerce .fm-check{font-size:13px}.fm-commerce :is(input,select,textarea){font-size:16px}.fm-commerce .trial-record .settings-links{flex-wrap:wrap}.fm-commerce .trial-record button{flex:1 1 130px}.fm-commerce .access-head{flex-wrap:wrap}}
@media(max-width:360px){.fm-metrics strong{font-size:20px}.fm-metrics span{font-size:10px}.fm-commerce .card{padding:14px}.fm-tabs a{flex-basis:45%}}
/* Central comercial 08 */
.fm-commerce .fm-agenda{background:#eef7f3;border:1px solid #d5e9df;border-radius:9px;padding:10px 13px;font-size:12px}.fm-commerce .fm-agenda.pending{background:#fff7e7;border-color:#edddb7;color:#7d550a}.fm-commerce .fm-report-bars{display:grid;gap:13px;margin:20px 0}.fm-commerce .fm-report-bars>div{display:grid;grid-template-columns:130px 1fr;gap:12px;align-items:center;font-size:12px}.fm-commerce .fm-report-bars meter{width:100%;height:20px}.fm-commerce .fm-report-bars strong{display:block;margin-top:5px}.fm-commerce .fm-ratio{font-size:32px;font-weight:800;letter-spacing:-.04em}.fm-commerce .fm-filter>label{min-width:120px}
@media(max-width:760px){.fm-commerce .fm-report-bars>div{grid-template-columns:1fr;gap:5px}.fm-commerce .fm-filter>label{min-width:0}.fm-commerce .fm-tags{max-width:100%}.fm-commerce .fm-filter select{width:100%}}
/* Patch 10: operações comerciais e parceiras em todas as larguras. */
.fm-customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px;margin-top:20px}.fm-customer{border:1px solid var(--line,#dde4ea);border-radius:14px;padding:20px;min-width:0}.fm-customer h3{font-size:20px}.fm-customer p,.fm-commerce code{overflow-wrap:anywhere}.fm-partner img{width:100%;height:92px;object-fit:contain;margin-bottom:15px}.fm-commerce .actions{margin-block:16px}.fm-commerce label input[type=file]{max-width:100%;font-size:13px}.fm-commerce input,.fm-commerce select,.fm-commerce textarea{min-width:0;max-width:100%}.fm-commerce .fm-grid>*{min-width:0}.fm-commerce .fm-row>*{min-width:0}.fm-commerce .fm-check{align-items:flex-start}.fm-commerce .fm-check input{flex:0 0 18px;width:18px}.fm-commerce .fm-tabs{flex-wrap:wrap;overflow:visible}.fm-commerce .fm-tabs a{white-space:normal}.fm-commerce .fm-fold summary{gap:12px}.fm-commerce h3{overflow-wrap:anywhere}
@media(max-width:600px){.fm-commerce .fm-grid,.fm-commerce .fm-filter{grid-template-columns:1fr}.fm-commerce .fm-row{flex-wrap:wrap;gap:14px}.fm-commerce .actions{display:flex;flex-wrap:wrap;gap:10px}.fm-commerce .actions>a,.fm-commerce .actions>form{max-width:100%;flex:1 1 150px}.fm-commerce .actions button{width:100%}.fm-commerce .fm-wide{grid-column:auto}.fm-commerce .fm-hero{gap:16px}.fm-commerce .fm-tabs{gap:7px}.fm-commerce .fm-tabs a{padding:10px 12px;font-size:12px}}

.fm-commerce .fm-hero .dashboard-kicker{color:#006da3}
/* FM LINK • Area individual: onboarding, downloads e links permanentes */
.fm-commerce .fm-get-started{margin:17px 0;background:linear-gradient(110deg,#fff,#f0f8f3)}
.fm-commerce .fm-quick-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.fm-commerce .fm-quick-steps>div{display:flex;align-items:center;gap:10px;padding:12px;background:#f4f8f8;border-radius:12px;font-size:13px;font-weight:650}
.fm-commerce .fm-quick-steps b{display:grid;place-items:center;background:#146b55;color:#fff;width:28px;height:28px;flex:0 0 28px;border-radius:50%}
.fm-commerce .fm-customer-resources{margin:16px 0}.fm-commerce .fm-download-panel{display:flex;flex-direction:column;gap:9px}
.fm-commerce .fm-download-panel h2{margin:0}.fm-commerce .fm-download-panel .access-code{margin:3px 0 0;letter-spacing:2px}
.fm-commerce .fm-code-label{font-size:12px;font-weight:800;color:#456273;margin-top:9px}
.fm-commerce .fm-status-note{font-size:12px;margin:0;color:#536d79}.fm-commerce .fm-download-list{display:flex;flex-direction:column;gap:6px;margin-top:11px}
.fm-commerce .fm-download-list .help{margin:0 0 9px}.fm-commerce .fm-copy-code{min-height:35px;align-self:flex-start;border:1px solid #bdd9db;background:#eef8f5;color:#10604e;padding:7px 12px;font-size:12px}
.fm-commerce .fm-links-panel{margin:16px 0}.fm-commerce .fm-link-item{margin:14px 0 0;border-top:1px solid #e6eef1;padding:14px 0 0}
.fm-commerce .fm-link-item>strong{font-size:14px}.fm-commerce .fm-link-item .help{margin:4px 0 8px}
.fm-commerce .fm-link-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fm-commerce .fm-link-controls input{margin:0;font-size:13px;flex:1 1 260px;min-width:0;background:#f7f9fa}
.fm-commerce .fm-link-controls .btn{min-height:37px;font-size:12px;padding:7px 13px}
@media(max-width:760px){.fm-commerce .fm-quick-steps{grid-template-columns:1fr;gap:7px}.fm-commerce .fm-link-controls input{flex-basis:100%}.fm-commerce .fm-link-controls button,.fm-commerce .fm-link-controls .btn{flex:1}}

/* FM LINK: Clientes e contratos compactos; não altera páginas externas */
.fm-finance .fm-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0 12px}
.fm-finance .fm-tabs a{font-size:11px;padding:9px 11px;border-radius:8px}
.fm-finance .fm-finance-search{padding:13px 16px;margin:12px 0!important}
.fm-finance .fm-finance-search label{font-size:11px}
.fm-finance .fm-contract-filter-label{flex:0 1 220px}
.fm-finance .fm-contract-card{padding:16px 19px!important;margin:11px 0!important}
.fm-finance .fm-contract-head{align-items:center}
.fm-finance .fm-contract-head h3{font-size:17px;margin:0 0 3px}
.fm-finance .fm-contract-head p{margin:0;line-height:1.35}
.fm-finance .fm-contract-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 9px}
.fm-finance .fm-contract-summary>div{border:1px solid #e2ebee;border-radius:10px;padding:11px 13px;min-width:0;background:#f9fbfc}
.fm-finance .fm-contract-summary span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#637681;font-weight:750}
.fm-finance .fm-contract-summary strong{display:block;font-size:21px;letter-spacing:-.03em;margin-top:5px;line-height:1.3;overflow-wrap:anywhere;color:#143c3a}
.fm-finance .fm-contract-summary small{display:block;font-size:10px;color:#60737c;margin-top:5px;line-height:1.4;overflow-wrap:anywhere}
.fm-finance .fm-contract-summary .fm-has-debt{background:#fff7ef;border-color:#f1d8be}
.fm-finance .fm-contract-summary .fm-has-debt strong{color:#a24d16}
.fm-finance .fm-contract-summary .fm-contract-date{font-size:19px}
.fm-finance .fm-contract-details{display:flex;gap:6px 17px;flex-wrap:wrap;color:#526775;font-size:11px;line-height:1.4;margin:9px 0}
.fm-finance .fm-contract-details span{overflow-wrap:anywhere}
.fm-finance .fm-contract-actions{margin:10px 0;gap:7px;align-items:center}
.fm-finance .fm-contract-actions .btn,.fm-finance .fm-contract-actions button{padding:8px 11px;font-size:11px;min-height:35px}
.fm-finance .fm-contract-delete{border-top:1px solid #f0dedb;padding-top:10px}
.fm-finance .fm-contract-delete summary{color:#9b3535}
.fm-finance #finance-create .fm-grid{gap:11px}
.fm-finance #finance-create label{margin-bottom:2px}
.fm-finance #finance-create label small{font-weight:400;color:#667a82;font-size:10px;margin-top:4px}
@media(max-width:760px){.fm-finance .fm-contract-summary{grid-template-columns:1fr;gap:7px}.fm-finance .fm-contract-card{padding:14px!important}.fm-finance .fm-contract-filter-label{flex-basis:100%}.fm-finance .fm-contract-summary>div{padding:9px 11px}.fm-finance .fm-contract-details{display:grid}.fm-finance .fm-contract-actions{display:flex;flex-wrap:wrap}}

/* Cliente como centro de gestão e faturas unificadas (2026-10-28). */
.fm-clientes .fm-client-header{padding:16px 19px!important;margin:10px 0!important}
.fm-clientes .fm-client-header h2{margin:5px 0 3px;font-size:22px}
.fm-clientes .fm-client-header p{margin:2px 0}
.fm-clientes .fm-client-back{color:#247961;font-size:12px;text-decoration:none;font-weight:750}
.fm-clientes .fm-client-subnav{margin:9px 0 12px;display:flex;gap:6px}
.fm-clientes .fm-client-subnav a{padding:9px 11px;font-size:12px;border-radius:8px}
.fm-clientes .fm-client-fin-section{padding:17px 19px!important;margin:10px 0!important}
.fm-clientes .fm-client-fin-section>div.fm-row{align-items:center}
.fm-clientes .fm-client-contract-row{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(95px,1fr)) auto;align-items:center;gap:12px;border-top:1px solid #e8eef0;padding:13px 0;font-size:13px}
.fm-clientes .fm-client-contract-row>*{min-width:0;overflow-wrap:anywhere}
.fm-clientes .fm-client-contract-row small,.fm-ledger-cols small{font-size:10px;color:#5e737f;display:block;margin:2px 0 4px}
.fm-clientes .fm-client-contract-row strong{font-weight:800;color:#193437;display:block}
.fm-finance .fm-invoices-header{padding:17px 19px!important;margin-bottom:11px}
.fm-finance .fm-invoices-header h2{margin-bottom:4px}
.fm-finance .fm-invoices-header p{line-height:1.4;margin:4px 0}
.fm-ledger-filter{margin-top:12px!important;gap:7px}
.fm-ledger-filter label{font-size:11px!important;flex:1 1 160px;margin:0!important}
.fm-ledger-filter label:first-of-type{flex:2 1 210px}
.fm-ledger-filter button{min-height:39px}
.fm-ledger-list .fm-ledger-item{padding:14px 17px!important;margin:9px 0!important}
.fm-ledger-item .fm-ledger-top{align-items:center}
.fm-ledger-item .fm-ledger-top strong{font-size:15px}
.fm-ledger-item .fm-ledger-top p{margin:3px 0 0;font-size:11px}
.fm-ledger-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.fm-ledger-cols>div{border:1px solid #e5ebee;background:#f8fafb;padding:8px 11px;border-radius:9px;min-width:0}
.fm-ledger-cols strong{display:block;font-size:16px;color:#173b38;overflow-wrap:anywhere}
.fm-ledger-item .fm-ledger-actions{margin:5px 0;gap:6px}
.fm-ledger-item .fm-ledger-actions .btn{font-size:11px;padding:8px 10px}
.fm-ledger-delete{border-top:1px solid #f1e3e0;padding-top:7px}
.fm-ledger-delete summary{font-size:12px;color:#9d4539}
@media(max-width:1000px){.fm-clientes .fm-client-contract-row{grid-template-columns:repeat(3,minmax(0,1fr))}.fm-clientes .fm-client-contract-row>div:first-child{grid-column:1/-1}}
@media(max-width:760px){.fm-ledger-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-clientes .fm-client-subnav{display:flex;flex-wrap:wrap}.fm-clientes .fm-client-subnav a{flex:1 1 auto}.fm-ledger-item .fm-ledger-top{align-items:flex-start}.fm-clientes .fm-client-contract-row{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-clientes .fm-client-contract-row>div:first-child{grid-column:1/-1}}

/* Super revisão Financeiro — telas operacionais compactas (2026-10-28) */
.fm-finance>.fm-tabs{margin:4px 0 10px;gap:5px}
.fm-finance>.fm-tabs a{padding:8px 10px;font-size:11px}
.fm-finance .card.fm-create-compact{padding:16px 19px!important;margin:7px 0 12px}
.fm-finance .fm-create-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.fm-finance .fm-create-head h2{margin:0;font-size:19px}
.fm-finance .fm-create-head .actions{margin:0;gap:6px}
.fm-finance .fm-create-head .btn{padding:7px 10px;font-size:11px;min-height:32px}
.fm-finance .fm-create-compact .fm-grid{gap:8px 13px}
.fm-finance .fm-create-compact label{font-size:11px;margin-bottom:0}
.fm-finance .fm-create-compact input:not([type=checkbox]),.fm-finance .fm-create-compact select{min-height:39px;height:39px;padding:7px 11px;margin-top:4px;font-size:13px}
.fm-finance .fm-create-compact textarea{min-height:65px;height:65px;padding:8px 10px;margin-top:4px;font-size:13px;resize:vertical}
.fm-finance .fm-create-compact .fm-check{margin:10px 0 6px}
.fm-finance .fm-create-compact button[name=action]{min-height:37px;padding:8px 13px;font-size:12px}
.fm-finance .fm-invoices-header{padding:13px 16px!important}
.fm-finance .fm-invoices-header .fm-row{align-items:center;gap:10px}
.fm-finance .fm-invoices-header h2{font-size:18px;margin:0}
.fm-finance .fm-invoices-header .fm-filter{margin-top:9px!important}
.fm-finance .fm-invoices-header label{flex:1 1 150px}
.fm-finance .fm-report-toolbar{padding:13px 16px!important;margin-bottom:10px}
.fm-finance .fm-report-toolbar .fm-row{align-items:end;gap:12px}
.fm-finance .fm-report-toolbar h2{font-size:18px;margin:0 auto 0 0}
.fm-finance .fm-report-toolbar .fm-filter{margin:0;align-items:end;gap:6px}
.fm-finance .fm-report-toolbar .fm-filter label{margin:0;min-width:160px;flex:0 1 auto}
.fm-finance .fm-report-toolbar form>button{margin-bottom:0}
.fm-finance .fm-finance-kpis{grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:9px;margin:9px 0 12px}
.fm-finance .fm-finance-kpis article{padding:13px 15px;min-width:0}
.fm-finance .fm-finance-kpis span{font-size:10px;line-height:1.35}
.fm-finance .fm-finance-kpis strong{font-size:21px;line-height:1.25;margin-top:4px;overflow-wrap:anywhere}
.fm-finance .fm-report-details{padding:14px 17px!important}
.fm-finance .fm-report-details h3{margin:0 0 9px;font-size:16px}
.fm-finance .fm-responsive-table{overflow-x:auto;max-width:100%}
.fm-finance .fm-responsive-table table{width:100%;border-collapse:collapse;font-size:12px}
.fm-finance .fm-responsive-table :is(th,td){text-align:left;padding:9px 10px;border-bottom:1px solid #e5ebed;vertical-align:top;white-space:nowrap}
.fm-finance .fm-responsive-table td:first-child{white-space:normal;min-width:180px}
.fm-finance .fm-responsive-table small{display:block;font-size:10px;color:#627782;margin-top:3px}
.fm-finance .fm-admin-fold.card{padding:11px 15px!important;margin:8px 0!important}
.fm-finance .fm-admin-fold>summary{font-size:13px;font-weight:750;cursor:pointer;padding:2px 0}
.fm-finance .fm-admin-fold[open]>summary{margin-bottom:14px;border-bottom:1px solid #e7edef;padding-bottom:12px}
.fm-finance .fm-admin-fold form{margin:0 0 10px}
.fm-finance .fm-integration-summary{align-items:center;margin:9px 1px 12px}
.fm-finance .fm-overdue-title{align-items:center;margin-bottom:8px}
.fm-finance .fm-overdue-title h2{font-size:19px;margin:0}
.fm-finance .fm-overdue-title p{margin:3px 0;font-size:11px}
.fm-finance .fm-overdue-list{display:grid;gap:8px}
.fm-finance .fm-overdue-card.card{padding:14px 16px!important;margin:0!important}
.fm-finance .fm-overdue-card h3{font-size:15px;margin:0 0 3px}
.fm-finance .fm-overdue-card p{margin:0}
.fm-finance .fm-overdue-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:11px 0}
.fm-finance .fm-overdue-summary>div{background:#f7f9fa;border:1px solid #e7edef;padding:9px 11px;border-radius:8px;min-width:0}
.fm-finance .fm-overdue-summary small{display:block;font-size:10px;color:#697985}
.fm-finance .fm-overdue-summary strong{display:block;font-size:15px;color:#183b38;margin-top:3px;overflow-wrap:anywhere}
.fm-finance .fm-overdue-actions{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap}
.fm-finance .fm-overdue-actions :is(.btn,button){font-size:11px;padding:7px 11px;min-height:34px}
.fm-finance .fm-overdue-actions details{flex:1 1 260px;min-width:200px;border:1px solid #e5ebee;border-radius:8px;padding:7px 10px}
.fm-finance .fm-overdue-actions summary{font-size:11px;font-weight:750;cursor:pointer}
.fm-finance .fm-overdue-extend{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;margin:10px 0 0!important}
.fm-finance .fm-overdue-extend label{font-size:11px;margin:0}
.fm-finance .fm-overdue-extend button{align-self:end}
.fm-finance .fm-compact-empty{padding:16px!important;color:#6b7981;font-size:13px}
.fm-finance .fm-queue-compact h3{font-size:15px}
.fm-finance .fm-queue-compact p{font-size:12px}
.fm-finance .fm-queue-compact details.card{padding:9px 12px!important;margin:6px 0}
@media(max-width:760px){
 .fm-finance .fm-create-head{align-items:flex-start}
 .fm-finance .fm-create-head .actions{width:100%}
 .fm-finance .fm-report-toolbar .fm-row{display:grid;grid-template-columns:1fr;gap:8px}
 .fm-finance .fm-report-toolbar .fm-filter{display:flex;flex-wrap:wrap}
 .fm-finance .fm-report-toolbar .fm-filter label{flex:1 1 180px}
 .fm-finance .fm-report-toolbar .fm-filter button{width:auto}
 .fm-finance .fm-overdue-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fm-finance .fm-overdue-extend{grid-template-columns:1fr}
 .fm-finance .fm-finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fm-finance .fm-finance-kpis article{padding:11px}
 .fm-finance .fm-finance-kpis strong{font-size:18px}
}

.fm-finance .fm-report-trend{padding:14px 17px!important;margin-bottom:10px}
.fm-finance .fm-report-trend h3{font-size:15px;margin:0}
.fm-finance .fm-trend-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:13px;align-items:end}
.fm-finance .fm-trend-col{min-width:0;text-align:center;display:flex;flex-direction:column;gap:4px}
.fm-finance .fm-trend-bars{height:95px;display:flex;align-items:end;justify-content:center;gap:5px;border-bottom:1px solid #cadbd7}
.fm-finance .fm-trend-bars span,.fm-finance .fm-trend-bars i{display:block;width:min(33%,25px);background:#177d65;border-radius:4px 4px 0 0;min-height:2px}
.fm-finance .fm-trend-bars i{background:#a5c9bc}
.fm-finance .fm-trend-col strong{font-size:11px}.fm-finance .fm-trend-col small{font-size:10px;color:#637a80;overflow-wrap:anywhere}
.fm-finance .fm-trend-legend{display:flex;justify-content:flex-end;gap:14px;margin-top:8px;font-size:10px;color:#6b7b81}
.fm-finance .fm-trend-legend span:before{content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:2px;background:#177d65}
.fm-finance .fm-trend-legend span+span:before{background:#a5c9bc}
@media(max-width:600px){.fm-finance .fm-trend-grid{gap:3px}.fm-finance .fm-trend-col small{font-size:8px}.fm-finance .fm-trend-bars{height:65px;gap:2px}}

.fm-finance .fm-held-list{display:grid;gap:5px}
.fm-finance .fm-held-list>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #e8eef0;padding:7px 1px;font-size:12px}
.fm-finance .fm-held-list>div>span{color:#607783;flex:1 1 auto}
.fm-finance .fm-held-list .btn{font-size:11px;min-height:28px;padding:5px 9px}


/* FM LINK — revisão responsiva do Financeiro e Clientes (mobile 2026-10-28).
   Somente apresentação: não altera dados, sessões nem lógica do ASAAS. */
body:has(.fm-finance) .top.panel-header{min-height:36px;height:36px;margin:0 0 5px;padding:0;display:flex;align-items:center;justify-content:flex-end}
body:has(.fm-finance) .top.panel-header .panel-heading,
body:has(.fm-finance) .top.panel-header .top-badge{display:none}
body:has(.fm-finance) .main .wrap{padding-top:12px}
body:has(.fm-finance) .top.panel-header .sidebar-toggle{min-height:34px;height:34px;width:34px;border-radius:9px}
.fm-finance .fm-contract-more{margin:3px 0 6px}
.fm-finance .fm-contract-more>summary{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#58727a;cursor:pointer;min-height:30px;padding:3px 0;list-style:none}
.fm-finance .fm-contract-more>summary:after{content:'⌄';font-size:14px;color:#67828a}
.fm-finance .fm-contract-more[open]>summary:after{content:'⌃'}
.fm-finance .fm-contract-more>summary::-webkit-details-marker{display:none}
.fm-finance .fm-contract-more .fm-contract-details{margin:3px 0 6px;gap:4px 12px}
.fm-finance .fm-contract-toolbar{margin:5px 0 7px}
.fm-finance .fm-contract-toolbar>.btn{font-size:11px;min-height:34px;padding:7px 11px}
.fm-finance .fm-contract-card{min-width:0}
.fm-finance .fm-contract-identity-text :is(h3,p){overflow-wrap:anywhere}

@media(max-width:760px){
  body:has(.fm-finance) .main .wrap,
  body:has(.fm-clientes) .main .wrap{padding:8px 10px 28px}
  body:has(.fm-finance) .top.panel-header{height:38px;min-height:38px;margin:0 0 5px;justify-content:flex-start;position:relative}
  body:has(.fm-finance) .top.panel-header .sidebar-toggle{position:static;display:inline-flex;flex:0 0 38px;width:38px;height:38px;min-height:38px;background:#183329;box-shadow:none;color:#fff;margin:0}
  body:has(.fm-clientes) .top.panel-header .panel-heading,
  body:has(.fm-clientes) .top.panel-header .top-badge{display:none}
  body:has(.fm-clientes) .top.panel-header{height:38px;min-height:38px;margin-bottom:5px;justify-content:flex-start}
  body:has(.fm-clientes) .top.panel-header .sidebar-toggle{position:static;width:38px;height:38px;min-height:38px;background:#183329;box-shadow:none;color:#fff}
  /* Abas: uma linha rolável, não 4 linhas de botões. */
  .fm-finance>.fm-tabs,
  .fm-clientes>.fm-tabs,
  .fm-clientes .fm-client-subnav{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:5px;align-items:stretch;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;margin:4px 0 9px;padding:1px 0 5px}
  .fm-finance>.fm-tabs::-webkit-scrollbar,
  .fm-clientes>.fm-tabs::-webkit-scrollbar,
  .fm-clientes .fm-client-subnav::-webkit-scrollbar{display:none}
  .fm-finance>.fm-tabs a,
  .fm-clientes>.fm-tabs a,
  .fm-clientes .fm-client-subnav a{display:inline-flex;flex:0 0 auto!important;width:auto!important;min-width:0!important;white-space:nowrap!important;justify-content:center;align-items:center;scroll-snap-align:start;font-size:11px;padding:9px 11px!important;min-height:37px;line-height:1.1;border-radius:9px;text-align:center}
  .fm-finance>.fm-tabs:after{content:'';flex:0 0 5px}
  .fm-finance>.fm-contract-toolbar,.fm-finance .fm-contract-toolbar{margin:2px 0 6px;display:flex;justify-content:flex-end}
  .fm-finance .fm-contract-toolbar>.btn{flex:0 0 auto!important;width:auto!important;min-height:36px;font-size:11px;padding:7px 12px}
  /* Contratos: busca 1 linha + situação e Buscar na segunda linha. */
  .fm-finance .fm-finance-search{padding:10px!important;margin:5px 0 8px!important;border-radius:13px}
  .fm-finance .fm-finance-search .fm-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
  .fm-finance .fm-finance-search .fm-filter>label{min-width:0;flex:none;margin:0!important;font-size:10px!important}
  .fm-finance .fm-finance-search .fm-filter>label:first-of-type{grid-column:1/-1}
  .fm-finance .fm-finance-search .fm-filter>label.fm-contract-filter-label{grid-column:1}
  .fm-finance .fm-finance-search .fm-filter>button{grid-column:2;min-width:72px;width:auto!important;margin:0;padding:8px 12px;min-height:40px;font-size:12px}
  .fm-finance .fm-finance-search :is(input,select){font-size:16px;min-height:40px;height:40px;padding:7px 10px;margin-top:3px}
  /* Contratos: logo, título e status compactos; indicadores 2+1. */
  .fm-finance .fm-contract-card{padding:11px!important;margin:7px 0!important;border-radius:14px}
  .fm-finance .fm-contract-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start;gap:6px!important}
  .fm-finance .fm-contract-identity{display:flex;flex:1 1 100%!important;width:100%;gap:9px!important;align-items:center;min-width:0}
  .fm-finance .fm-contract-logo{width:39px!important;height:39px!important;flex:0 0 39px!important;border-radius:9px!important;font-size:12px}
  .fm-finance .fm-contract-identity-text{flex:1 1 0;min-width:0}
  .fm-finance .fm-contract-head h3{font-size:15px;line-height:1.2;margin:0 0 2px}
  .fm-finance .fm-contract-head p{font-size:10px;line-height:1.25;max-width:100%;margin:0}
  .fm-finance .fm-contract-head>.pill{flex:0 1 auto;max-width:100%;font-size:9px;padding:4px 7px;line-height:1.1;margin-left:48px}
  .fm-finance .fm-contract-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 4px}
  .fm-finance .fm-contract-summary>div{min-width:0;padding:8px!important;border-radius:9px}
  .fm-finance .fm-contract-summary span{font-size:9px;line-height:1.2;letter-spacing:0}
  .fm-finance .fm-contract-summary strong{font-size:17px;line-height:1.1;margin-top:4px;white-space:nowrap}
  .fm-finance .fm-contract-summary small{font-size:9px;line-height:1.2;margin-top:4px}
  .fm-finance .fm-contract-summary>div:first-child small{display:none}
  .fm-finance .fm-contract-summary>div:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:4px 9px;flex-wrap:wrap;padding:8px 10px!important}
  .fm-finance .fm-contract-summary>div:last-child span{flex:1 1 120px}
  .fm-finance .fm-contract-summary>div:last-child strong.fm-contract-date{font-size:15px;margin:0;flex:0 0 auto}
  .fm-finance .fm-contract-summary>div:last-child small{flex-basis:100%;margin:0}
  .fm-finance .fm-contract-more{margin:0 0 3px}
  .fm-finance .fm-contract-more>summary{min-height:28px;font-size:10px}
  .fm-finance .fm-contract-details{font-size:10px;line-height:1.3;gap:3px!important;margin:3px 0!important}
  .fm-finance .fm-contract-actions{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0}
  .fm-finance .fm-contract-actions :is(a,form){flex:0 0 auto!important;width:auto!important;min-width:0}
  .fm-finance .fm-contract-actions :is(.btn,button){width:auto!important;min-height:36px;padding:7px 9px;font-size:10px;border-radius:8px}
  .fm-finance .fm-contract-delete,.fm-finance .fm-fold{margin-top:8px}
  .fm-finance .fm-contract-delete summary{font-size:11px}
  .fm-finance .fm-pager{margin:9px 0 2px}
  /* Todas as abas Financeiro: cards, formulários e botões sem altura excessiva. */
  .fm-finance .card{margin:7px 0;border-radius:13px;padding:12px!important}
  .fm-finance h2{font-size:17px;margin:0 0 8px}
  .fm-finance h3{font-size:15px;margin:0 0 6px}
  .fm-finance .fm-create-head{margin:0 0 8px;display:flex;align-items:center;flex-wrap:wrap}
  .fm-finance .fm-create-head h2{font-size:17px}
  .fm-finance .fm-create-head .actions{width:auto!important;display:flex;gap:5px}
  .fm-finance .fm-create-head .btn{min-height:34px;width:auto!important;font-size:10px;padding:7px 9px}
  .fm-finance .fm-create-compact .fm-grid{gap:7px}
  .fm-finance .fm-create-compact label{font-size:11px}
  .fm-finance .fm-create-compact :is(input:not([type=checkbox]),select){font-size:16px;min-height:40px;height:40px}
  .fm-finance .fm-create-compact textarea{font-size:16px;min-height:55px;height:55px}
  .fm-finance .fm-create-compact .fm-check{margin:6px 0}
  .fm-finance .fm-invoices-header{padding:11px!important;margin-bottom:6px}
  .fm-finance .fm-invoices-header h2{font-size:17px}
  .fm-finance .fm-invoices-header .fm-row{gap:7px}
  .fm-finance .fm-invoices-header .fm-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
  .fm-finance .fm-invoices-header .fm-filter>label{min-width:0;flex:none;font-size:10px!important}
  .fm-finance .fm-invoices-header .fm-filter>label:first-of-type{grid-column:1/-1}
  .fm-finance .fm-invoices-header .fm-filter>button{grid-column:2;width:auto!important;min-width:68px;align-self:end;padding:8px}
  .fm-finance .fm-ledger-list .fm-ledger-item{padding:11px!important;margin:7px 0!important}
  .fm-finance .fm-ledger-cols{gap:5px;margin:7px 0}
  .fm-finance .fm-ledger-cols>div{padding:7px!important}
  .fm-finance .fm-ledger-cols strong{font-size:13px}
  .fm-finance .fm-ledger-item .fm-ledger-actions{display:flex;flex-wrap:wrap;gap:5px}
  .fm-finance .fm-ledger-item .fm-ledger-actions :is(a,button){width:auto!important;min-height:35px;padding:7px 9px;font-size:10px}
  .fm-finance .fm-report-toolbar{padding:11px!important}
  .fm-finance .fm-report-toolbar .fm-row{gap:7px}
  .fm-finance .fm-report-toolbar .fm-filter{gap:5px}
  .fm-finance .fm-report-toolbar .fm-filter label{min-width:0;flex:1 1 100%;font-size:10px}
  .fm-finance .fm-report-toolbar .fm-filter button{width:auto!important;min-height:38px}
  .fm-finance .fm-finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .fm-finance .fm-finance-kpis article{padding:9px!important;border-radius:10px}
  .fm-finance .fm-finance-kpis strong{font-size:17px}
  .fm-finance .fm-trend-grid{gap:3px}
  .fm-finance .fm-trend-bars{height:62px}
  .fm-finance .fm-admin-fold.card{padding:10px 12px!important}
  .fm-finance .fm-overdue-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .fm-finance .fm-overdue-summary>div{padding:7px!important}
  .fm-finance .fm-overdue-summary strong{font-size:13px}
  .fm-finance .fm-overdue-actions details{flex-basis:100%;min-width:0}
  /* Clientes: navegação e cadastros também compactos. */
  .fm-clientes .card,.fm-clientes section.card{padding:11px!important;margin:7px 0!important;border-radius:13px}
  .fm-clientes .fm-client-header{padding:11px!important}
  .fm-clientes .fm-client-header h2{font-size:17px}
  .fm-clientes .fm-client-header .fm-row{gap:7px;flex-wrap:wrap}
  .fm-clientes .fm-client-header .actions{width:100%;gap:5px;margin:4px 0 0}
  .fm-clientes .fm-client-header .actions .btn{font-size:10px;width:auto!important;flex:0 0 auto!important;min-height:34px;padding:7px 10px}
  .fm-clientes .fm-customer-grid{grid-template-columns:1fr;gap:6px;margin:8px 0}
  .fm-clientes .fm-customer{padding:11px;border-radius:11px;gap:6px}
  .fm-clientes .fm-customer h3{font-size:15px}
  .fm-clientes .fm-customer-stations{padding:5px 7px}
  .fm-clientes .fm-clientes-title{gap:7px;margin:0 0 9px}
  .fm-clientes .fm-clientes-title h2{font-size:17px}
  .fm-clientes .fm-clientes-title .btn{font-size:11px;min-height:34px;padding:7px 9px}
  .fm-clientes .fm-clientes-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
  .fm-clientes .fm-clientes-search>label{grid-column:1;min-width:0;flex:none!important;font-size:10px}
  .fm-clientes .fm-clientes-search>button{grid-column:2;width:auto!important;min-width:66px;min-height:40px;padding:7px 9px;font-size:11px}
  .fm-clientes .fm-client-contract-row{gap:7px;padding:8px 0;font-size:12px}
  .fm-clientes .fm-clientes-search :is(input,select),.fm-clientes .fm-grid :is(input,select){font-size:16px}
  .fm-clientes .fm-client-fin-section{padding:11px!important}
}
@media(max-width:360px){
  .fm-finance .fm-contract-summary strong{font-size:15px}
  .fm-finance .fm-contract-summary>div{padding:7px!important}
  .fm-finance .fm-contract-logo{width:36px!important;height:36px!important;flex-basis:36px!important}
  .fm-finance .fm-contract-head>.pill{margin-left:45px}
  .fm-finance .fm-contract-actions :is(.btn,button){padding:7px 8px}
  .fm-finance .fm-ledger-cols strong{font-size:12px}
}

/* Ajustes finais após validação de 320–1366 px. */
@media(max-width:760px){
 body:has(.fm-finance) .top.panel-header,
 body:has(.fm-clientes) .top.panel-header{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important}
 .fm-finance .fm-contract-card>.fm-fold>summary{font-size:11px;min-height:28px;display:inline-flex;align-items:center}
 .fm-finance .fm-contract-card>.fm-fold{margin-top:4px}
 body:has(.fm-clientes) .fm-clientes .fm-customer-grid{grid-template-columns:1fr!important;gap:6px!important;margin-top:8px}
 body:has(.fm-clientes) .fm-clientes .fm-customer{padding:11px!important;gap:6px!important}
 body:has(.fm-clientes) .fm-clientes .fm-client-header h2{font-size:17px!important}
 body:has(.fm-clientes) .fm-clientes .fm-clientes-title h2{font-size:17px!important}
}
@media(min-width:761px) and (max-width:1050px){
 .fm-finance>.fm-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;gap:5px}
 .fm-finance>.fm-tabs>a{flex:0 0 auto;white-space:nowrap}
 .fm-finance .fm-contract-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fm-finance .fm-contract-summary>div:last-child{grid-column:1/-1}
 .fm-finance .fm-finance-search .fm-filter{gap:7px}
}

/* FM LINK • Portal do teste: linguagem clara e links de audio por finalidade (03/11/2026) */
.fm-commerce .fm-simple-guide .fm-quick-steps>div{align-items:flex-start;background:#f1f8f5;border:1px solid #deebe5}
.fm-commerce .fm-simple-guide .fm-quick-steps span{display:grid;gap:4px;min-width:0}
.fm-commerce .fm-simple-guide .fm-quick-steps strong{font-size:13px;line-height:1.35}
.fm-commerce .fm-simple-guide .fm-quick-steps small{font-size:11px;font-weight:450;color:#557063;line-height:1.4}
.fm-commerce .fm-plain-desc{font-size:13px;color:#546976;line-height:1.55;margin:0 0 9px}
.fm-commerce .fm-app-download{display:grid;gap:4px}
.fm-commerce .fm-app-download .btn{width:100%;justify-content:center;font-size:13px;min-height:40px}
.fm-commerce .fm-app-download .help{margin:0 0 5px;font-size:11px}
.fm-commerce .fm-soft-notice{border-radius:10px;background:#f2f7f9;border:1px solid #dfeaf0;font-size:12px;color:#365664;line-height:1.55;padding:11px 12px;margin:9px 0 0}
.fm-commerce .fm-only-realtime-note{background:#fff8e7;border:1px solid #eddca8;color:#704b16;border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.55;margin:12px 0}
.fm-commerce .fm-link-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fm-commerce .fm-link-title strong{font-size:15px}
.fm-commerce .fm-link-pill{font-weight:850;font-size:10px;letter-spacing:.03em;padding:5px 8px;border-radius:8px;white-space:nowrap}
.fm-commerce .fm-live-pill{background:#d9f5e6;color:#08643a}
.fm-commerce .fm-delay-pill{background:#edf1f5;color:#526472}
.fm-commerce .fm-player-highlight{background:#f0faf6;border:1px solid #b6dec7;border-radius:13px;padding:16px;margin:13px 0}
.fm-commerce .fm-player-highlight .btn{background:#08744f}
.fm-commerce .fm-public-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}
.fm-commerce .fm-public-link-item{border:1px solid #e2e9ed;border-radius:12px;padding:14px;margin:0;min-width:0;background:#fbfcfd}
.fm-commerce .fm-direct-link{margin:16px 0;padding:10px 12px;border:1px solid #e0e8eb;border-radius:10px}
.fm-commerce .fm-direct-link summary{font-weight:700;font-size:12px;cursor:pointer}
.fm-commerce .fm-direct-link .fm-link-controls{margin:8px 0}
.fm-commerce .fm-link-controls input{font-size:12px;line-height:1.3;min-height:38px;word-break:break-word}
.fm-commerce .fm-link-controls .fm-copy-code{align-self:stretch}
@media(max-width:760px){.fm-commerce .fm-public-links-grid{grid-template-columns:1fr;gap:8px}.fm-commerce .fm-player-highlight,.fm-commerce .fm-public-link-item{padding:12px}.fm-commerce .fm-link-controls .btn{padding:9px 10px}.fm-commerce .fm-link-title strong{font-size:14px}}
