/* Scoped to the new finance page; do not override existing fiscal, PIX or charging screens. */
main [data-view="fx-finops"].av-finops{--ni-green:#176b47;--ni-ink:#173329;--ni-muted:#60756b;--ni-line:#d5e3da;--ni-soft:#f3f7f4;color:var(--ni-ink);min-width:0}
.av-finops .fin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.av-finops .fin-kpis>div{display:grid;gap:9px;background:#fff;border:1px solid var(--ni-line);padding:18px;border-radius:12px;min-width:0}.av-finops .fin-kpis small{color:var(--ni-muted);font-size:.82rem}.av-finops .fin-kpis strong{color:var(--ni-green);font-size:1.28rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.av-finops .fin-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--ni-line);padding-bottom:16px}.av-finops .fin-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}.av-finops [hidden]{display:none!important}.av-finops .ni-table td small{display:block;color:var(--ni-muted);font-size:.75rem;margin-top:4px;overflow-wrap:anywhere}.av-finops .ni-table td button{margin:2px 3px 2px 0}.av-finops .fin-ok{color:#176b47;font-weight:600}.av-finops .fin-review{color:#855a10;font-weight:600}.av-finops [data-results]{min-width:0;display:grid;gap:14px}.av-finops .ni-feedback[data-error="true"]{color:#a32626}.av-finops .ni-feedback[data-error="false"]{color:#176b47}@media(max-width:860px){.av-finops .fin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:470px){.av-finops .fin-kpis{grid-template-columns:1fr}.av-finops .ni-panel{padding:12px}.av-finops .fin-tabs button{flex:1 1 auto}}

/* Financeiro comercial — layout local, preserva os demais módulos. */
.av-finops .fin-summary{display:grid;gap:9px;min-width:0}.av-finops .fin-summary>span{font-size:.78rem;color:var(--ni-muted);font-weight:650}.av-finops .fin-kpis>div{gap:8px;padding:16px;box-shadow:0 2px 5px #132c1e05}.av-finops .fin-kpis strong{font-size:clamp(1rem,1.5vw,1.45rem);line-height:1.25;color:var(--ni-ink)}.av-finops .fin-kpis .fin-kpi-main{background:#15392d;border-color:#15392d}.av-finops .fin-kpi-main :is(strong,small){color:#fff}.av-finops .fin-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-bottom:15px}.av-finops .fin-tab-group{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.av-finops .fin-tab-label{font-size:.77rem;font-weight:700;color:var(--ni-muted)}.av-finops .fin-tab-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.av-finops .fin-tab-actions button{flex:0 1 auto;min-height:36px!important;white-space:normal!important;text-align:center;padding:7px 12px!important}.av-finops .fin-tab-actions button:focus-visible{outline:2px solid #176b47;outline-offset:2px}.av-finops .fin-cell{min-width:0;overflow-wrap:anywhere}.av-finops .fin-cell button{white-space:normal!important;text-align:center;max-width:100%}.av-finops .fin-state{min-height:120px}.av-finops .fin-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}.av-finops .fin-filters select{max-width:100%;min-width:0}.av-finops .ni-table td:last-child{white-space:normal}.av-finops .ni-table table{min-width:680px}.av-finops .ni-pager{flex-wrap:wrap}.av-finops .ni-pager button:disabled{opacity:.55;cursor:not-allowed}.av-finops .ni-notice{overflow-wrap:anywhere}.av-finops .ni-panel{min-width:0}.av-finops .ni-table{max-width:100%}.av-finops .ni-feedback[data-error=true]{background:#fff3f1;border:1px solid #f3c8c1;padding:10px 12px;border-radius:8px}.av-finops .ni-feedback[data-error=false]{background:#edf6ef;border:1px solid #c7dfce;padding:10px 12px;border-radius:8px}
@media(max-width:1050px){.av-finops .fin-tab-group{grid-template-columns:1fr;gap:7px}.av-finops .fin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.av-finops .fin-tab-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.av-finops .fin-tab-actions button{width:100%;min-height:42px!important}.av-finops .ni-table td>.fin-cell{grid-column:2}.av-finops .fin-cell button{display:flex!important;min-height:38px!important;width:100%;margin:3px 0!important}.av-finops .ni-table td small{margin-top:4px}.av-finops .fin-filters{grid-template-columns:1fr}.av-finops .fin-kpis>div{padding:12px}.av-finops .fin-kpis strong{font-size:1.05rem}}@media(max-width:360px){.av-finops .fin-tab-actions{grid-template-columns:1fr}.av-finops .fin-kpis{grid-template-columns:1fr}}
/* The shared fixed-height header and quote-table grid must not leak into this page. */
#dashboard .av-finops .ni-head{height:auto!important;min-height:0!important;position:static!important;border:0!important;padding:0!important;background:transparent!important}.av-finops .ni-head>div{min-width:0;flex:1 1 250px}.av-finops .ni-head>button{flex:0 0 auto}.av-finops .ni-head h3{overflow-wrap:anywhere}
@media(max-width:760px){#dashboard .av-finops .ni-table tbody tr{display:block!important;grid-template-columns:none!important;padding:8px 12px!important}#dashboard .av-finops .ni-table tbody td{display:grid!important;grid-template-columns:minmax(86px,34%) minmax(0,1fr)!important;min-width:0!important;width:100%!important;padding:9px 0!important;border-top:1px solid #edf2ee!important}#dashboard .av-finops .ni-table tbody td:first-child{border-top:0!important}#dashboard .av-finops .ni-table tbody td::before{grid-column:1;grid-row:1;align-self:start}#dashboard .av-finops .ni-head>button{width:100%}}

/* V2: scoped, compact financial workspace. */
#dashboard .av-finops .ni-wrap{max-width:none;gap:18px;margin:0;}
#dashboard .av-finops .fin-summary{gap:12px;}
#dashboard .av-finops .fin-summary-heading{display:flex;align-items:end;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#dashboard .av-finops .fin-summary-heading h3,#dashboard .av-finops .fin-section-heading h3{font-size:1.12rem;line-height:1.35;letter-spacing:-.02em;color:#173329;margin:0;text-transform:none;font-weight:700;}
#dashboard .av-finops .fin-summary-heading p,#dashboard .av-finops .fin-section-heading p{font-size:.83rem;color:#62766c;margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere;}
#dashboard .av-finops .fin-summary-note,#dashboard .av-finops .fin-footnote{display:flex;align-items:center;gap:7px;color:#62766c;font-size:.77rem;line-height:1.5;}
#dashboard .av-finops .fin-summary-note svg,#dashboard .av-finops .fin-footnote svg{width:15px;height:15px;flex:none;}
#dashboard .av-finops .fin-kpis{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));}
#dashboard .av-finops .fin-kpi{padding:16px;gap:10px;border:1px solid #d9e5dd;background:#fff;border-radius:12px;box-shadow:0 2px 6px #17332905;}
#dashboard .av-finops .fin-kpi-top{display:flex;justify-content:space-between;align-items:center;gap:7px;}
#dashboard .av-finops .fin-kpi small{font-size:.81rem;font-weight:600;color:#4f665a;line-height:1.3;}
#dashboard .av-finops .fin-kpi strong{font-size:clamp(1.05rem,1.65vw,1.55rem);font-weight:750;letter-spacing:-.035em;color:#19382c;}
#dashboard .av-finops .fin-kpi-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;background:#eaf2ee;color:#38614e;border-radius:9px;}
#dashboard .av-finops .fin-kpi-icon svg{width:19px;height:19px;}
#dashboard .av-finops [data-tone=receive] .fin-kpi-icon{background:#e2f2e6;color:#167448;}
#dashboard .av-finops [data-tone=overdue] .fin-kpi-icon{background:#fbf2e6;color:#9b681f;}
#dashboard .av-finops .fin-workspace{padding:0;gap:0;overflow:visible;border-radius:14px;}
#dashboard .av-finops .fin-navigation{border-bottom:1px solid #dce7df;min-width:0;}
#dashboard .av-finops .fin-group-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:8px;background:#f5f8f6;border-radius:13px 13px 0 0;}
#dashboard .av-finops .fin-group-nav button,#dashboard .av-finops .fin-subnav button{appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px!important;height:auto!important;margin:0!important;white-space:normal!important;border:1px solid transparent!important;box-shadow:none!important;background:transparent!important;color:#496255!important;font-size:.89rem!important;font-weight:650!important;padding:10px 12px!important;line-height:1.3!important;border-radius:8px!important;cursor:pointer;}
#dashboard .av-finops .fin-group-nav button[aria-pressed=true]{background:#fff!important;border-color:#d5e3da!important;color:#176b47!important;box-shadow:0 2px 5px #15392d0c!important;}
#dashboard .av-finops .fin-group-nav button:hover,#dashboard .av-finops .fin-subnav button:hover{color:#176b47!important;background:#eaf3ed!important;}
#dashboard .av-finops .fin-group-nav button svg{width:19px;height:19px;flex:none;}
#dashboard .av-finops .fin-subnav{padding:0 18px;}
#dashboard .av-finops .fin-subnav .fin-tab-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:18px;}
#dashboard .av-finops .fin-subnav .fin-tab-actions[hidden]{display:none!important;}
#dashboard .av-finops .fin-subnav button{border-radius:0!important;min-height:46px!important;padding:11px 3px!important;position:relative;font-size:.83rem!important;flex:0 1 auto;}
#dashboard .av-finops .fin-subnav button[aria-pressed=true]{color:#176b47!important;background:transparent!important;}
#dashboard .av-finops .fin-subnav button[aria-pressed=true]::after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:#198451;border-radius:3px 3px 0 0;}
#dashboard .av-finops :is(.fin-group-nav,.fin-subnav) button:focus-visible{outline:2px solid #176b47;outline-offset:-2px;}
#dashboard .av-finops .fin-workbody{display:grid;gap:16px;padding:20px;min-width:0;}
#dashboard .av-finops .fin-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;}
#dashboard .av-finops .fin-filters label{flex:1 1 180px;max-width:360px;}
#dashboard .av-finops .fin-filters label[data-issuerbox]{flex-basis:260px;max-width:460px;}
#dashboard .av-finops .fin-empty{background:#f9fbfa;border:1px dashed #d7e5dc;min-height:180px;gap:7px;padding:22px;}
#dashboard .av-finops .fin-empty-icon{display:grid;place-items:center;background:#eaf2ed;color:#527666;border-radius:12px;width:44px;height:44px;margin-bottom:4px;}
#dashboard .av-finops .fin-empty strong{font-size:.95rem;}
#dashboard .av-finops .fin-empty p{font-size:.82rem;}
#dashboard .av-finops .fin-footnote{padding:0 2px;align-items:flex-start;}
@media(max-width:1100px){#dashboard .av-finops .fin-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){#dashboard .av-finops .ni-wrap{gap:14px;}#dashboard .av-finops .fin-workbody{padding:14px;gap:13px;}#dashboard .av-finops .fin-group-nav{padding:6px;gap:3px;}#dashboard .av-finops .fin-group-nav button{flex-direction:column;gap:5px;padding:8px 4px!important;font-size:.75rem!important;min-height:64px!important;}#dashboard .av-finops .fin-subnav{padding:0 10px;}#dashboard .av-finops .fin-subnav .fin-tab-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;}#dashboard .av-finops .fin-subnav button{font-size:.77rem!important;padding:9px 3px!important;min-height:44px!important;width:100%;}#dashboard .av-finops .fin-kpi{padding:12px;}#dashboard .av-finops .fin-kpi strong{font-size:1.08rem;}#dashboard .av-finops .fin-kpi-icon{width:28px;height:28px;}#dashboard .av-finops .fin-kpi-icon svg{width:16px;height:16px;}#dashboard .av-finops .fin-filters label{max-width:none!important;flex-basis:100%!important;}#dashboard .av-finops .fin-empty{min-height:150px;}}
@media(max-width:360px){#dashboard .av-finops .fin-kpis{grid-template-columns:1fr;}#dashboard .av-finops .fin-group-nav button{font-size:.7rem!important;}}
/* Keep the single header refresh available on mobile, only on this route. */
#dashboard:has(main>.av-finops.active) main>header #refresh{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap;}
#dashboard:has(main>.av-finops.active) main>header #refresh>.av-refresh-icon{display:block!important;width:16px;height:16px;flex:none;}
@media(max-width:600px){#dashboard:has(main>.av-finops.active) main>header #refresh{font-size:.78rem;padding:8px 9px;min-height:36px;}#dashboard:has(main>.av-finops.active) main>header h1{font-size:1rem;overflow-wrap:anywhere;}}
