.agency-health{padding:20px;border:1px solid #ded5ef;border-radius:16px;background:#faf8ff;margin:20px 0}.agency-health>header,.health-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:center}.agency-health progress{width:100%;height:10px;accent-color:#7c3aed}.health-dialog{width:min(760px,94vw);max-height:90vh;overflow:auto;border:1px solid #ded5ef;border-radius:18px;padding:24px;color:#292336;background:white}.health-dialog::backdrop{background:#16102177}.health-dialog label{display:grid;gap:6px;font-size:14px}.health-dialog input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #dcd6e8;border-radius:8px;font:inherit}.health-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.health-salary{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;margin:12px 0}.health-dialog p{font-size:14px;line-height:1.5;color:#6b6279}.health-dialog [data-error]{color:#b42318}.health-dialog button{cursor:pointer;min-height:42px;padding:10px;border-radius:8px;border:1px solid #dcd6e8;background:#faf8ff}.health-dialog [type=submit]{background:#7c3aed;color:white;border:0}.health-dialog button:disabled{opacity:.5}.health-dialog input:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}@media(max-width:600px){.health-fields,.health-salary{grid-template-columns:1fr}.agency-health>header{align-items:start;flex-direction:column}.health-dialog{padding:16px}.health-dialog input{font-size:16px}}

.health-dialog fieldset.health-salary{border:1px solid #e8e2f1;border-radius:16px;padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;min-width:0}.health-salary legend{font-weight:650;padding:0 6px}.health-salary select{min-height:44px;max-width:100%;border:1px solid #ded7e9;border-radius:10px;background:white;color:#24202d;padding:10px}.health-salary [data-remove-salary]{grid-column:1/-1;justify-self:start}@media(max-width:600px){.health-dialog fieldset.health-salary{grid-template-columns:1fr}}
/* Single financial workspace: secondary tools share the same navigation. */
#financeiro:not([data-finance-tab="payments"]) #adminFinanceDashboard{display:none!important}
#financeiro[data-finance-tab="payments"]>.cf-tabs{display:none!important}
#financeiro[data-finance-tab="payments"]:not([data-money-view="receivables"]) #financeReceivables{display:none!important}
#financeiro[data-finance-tab="payments"] #financeSummary{display:none!important}
.money-workspace{margin:20px 0;background:#fff;border:1px solid #e6e7ed;border-radius:20px;overflow:hidden;color:#242332}
.money-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid #eeedf3}
.money-tabs,.money-actions,.money-context nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.money-tabs button,.money-context nav button{border:0;background:transparent;color:#706b7d;font:inherit;cursor:pointer;border-radius:10px;padding:11px 15px;min-height:44px}
.money-tabs button[aria-pressed=true]{background:#eee8fc;color:#6731b9;font-weight:700}
.money-context nav button{font-size:13px;padding:8px 10px}.money-context nav button[aria-pressed=true]{color:#6731b9;background:#f2edfb}
.money-context{padding:12px 24px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fcfcfe;align-items:center}
.money-context label{font-size:12px;color:#746e82;display:flex;align-items:center;gap:10px}.money-context input{font:inherit;border:1px solid #e4e0eb;border-radius:8px;padding:8px;background:white;color:#302b39}
.money-content{padding:24px}.money-content:empty{padding:0}
.money-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.money-cards article{padding:20px;border:1px solid #e8e5ef;border-radius:14px;display:grid;gap:10px;background:#fff}
.money-cards article:first-child{background:#f7f3ff;border-color:#e2d5f8}.money-cards span{font-size:13px;color:#736c80}.money-cards strong{font-size:clamp(23px,2.4vw,34px);letter-spacing:-.8px}.money-cards small{font-size:12px;color:#7b7487}
.money-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:26px 0 16px}.money-section-heading h3{margin:0 0 5px;font-size:18px}.money-section-heading small{color:#7b7487;font-size:12px}
.money-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e4d8f8;border-radius:12px;background:#faf7ff;padding:16px;margin:16px 0;font-size:14px}
.money-empty{padding:34px;text-align:center;color:#82798d;border:1px dashed #dfd9e7;border-radius:12px}
.money-workspace .admin-expense-list>article{box-shadow:none;padding:16px;border:1px solid #ebe7f0;border-radius:12px;background:white;margin-bottom:8px}.money-workspace .admin-expense-list>article.expense-overdue{border-left:3px solid #dc6666}
.money-workspace .admin-expense-list small{display:block;color:#82798d;margin-top:5px}.money-workspace .admin-expense-list .op-actions{gap:6px}.money-workspace .admin-expense-list button{font-size:12px}
.money-table-wrap{overflow:auto}.money-table{width:100%;border-collapse:collapse;font-size:14px}.money-table th{text-align:left;font-weight:500;color:#81788e;background:#faf9fc}.money-table th,.money-table td{padding:14px 12px;border-bottom:1px solid #eeebf3}.money-table td:nth-last-child(-n+2){font-variant-numeric:tabular-nums}.money-workspace .negative{color:#bb3e4d}.money-workspace .positive{color:#168364}
.money-workspace button:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}
@media(max-width:760px){.money-topbar{align-items:stretch;flex-direction:column;padding:14px}.money-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.money-tabs button{font-size:13px;padding:10px 4px}.money-actions{justify-content:flex-end}.money-context,.money-content{padding:14px}.money-cards{grid-template-columns:1fr;gap:8px}.money-cards article{padding:14px}.money-cards strong{font-size:26px}.money-callout,.money-section-heading{align-items:flex-start;flex-direction:column}.money-workspace .admin-expense-list>article{display:flex;flex-wrap:wrap;gap:10px}.money-table{min-width:520px}}
.money-context label[hidden]{display:none!important}.money-workspace .op-actions details>summary{font-size:12px;color:#746b80;cursor:pointer;padding:10px}.money-workspace .op-actions details[open]{max-width:320px}.money-workspace .op-actions details p{font-size:12px}.money-workspace .admin-expense-list>article>div:first-child{flex:1;min-width:160px}
.company-health-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid #ded7ea;border-radius:18px;background:linear-gradient(135deg,#faf8ff,#fff)}.company-health-hero:before{content:"";width:5px;align-self:stretch;border-radius:9px;background:#b87b3e}.company-health-hero.is-healthy:before{background:#2e9267}.company-health-hero.is-critical:before{background:#c95361}.company-health-hero>div:first-of-type{flex:1}.company-health-hero h2{margin:5px 0 6px;font-size:clamp(22px,2.2vw,31px);letter-spacing:-.04em}.company-health-hero p{margin:0;color:#756d7d;font-size:13px}.health-coverage{display:grid;gap:4px;min-width:230px;padding:16px 18px;border:1px solid #e8e3ee;border-radius:13px;background:#fff}.health-coverage>span,.health-kpi-grid span,.health-forecast-strip span{color:#766f7f;font-size:11px}.health-coverage strong{font-size:24px}.health-coverage small,.health-kpi-grid small{color:#918a98;font-size:10px}.health-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}.health-kpi-grid article{display:grid;gap:6px;padding:15px;border:1px solid #e9e5ed;border-radius:12px;background:#fff}.health-kpi-grid strong{font-size:19px;letter-spacing:-.03em}.health-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.health-panel{min-width:0;padding:18px;border:1px solid #e8e4ec;border-radius:15px;background:#fff}.health-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.health-panel h3{margin:4px 0 0;font-size:16px}.health-panel>header>b{padding:6px 8px;border-radius:999px;background:#edf7f2;color:#397659;font-size:10px}.health-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:17px 0 10px}.health-flow span{display:grid;gap:4px;padding:10px;border-radius:9px;background:#f8f7fa}.health-flow small{color:#817987;font-size:9px}.health-flow strong{font-size:13px}.health-flow .is-danger strong{color:#b5505f}.health-pending-bank{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%;gap:12px;padding:11px!important;border:1px solid #e2d7f2!important;border-radius:10px!important;background:#f9f6fd!important;color:#503d63!important;text-align:left!important}.health-pending-bank span{display:grid;gap:3px}.health-pending-bank b{font-size:11px}.health-pending-bank small{color:#7c7088;font-size:9px}.health-pending-bank>strong{white-space:nowrap;font-size:10px}.chart-legend{display:flex;gap:5px;align-items:center;color:#807887;font-size:9px}.chart-legend i{width:7px;height:7px;border-radius:2px;background:#6e5cb5}.chart-legend i:last-of-type{margin-left:5px;background:#d7a08c}.health-chart{display:grid;grid-template-columns:repeat(6,1fr);align-items:end;gap:8px;height:116px;margin-top:14px;padding-top:8px;border-bottom:1px solid #e8e4eb}.health-chart article{display:grid;grid-template-rows:1fr auto;height:100%;gap:5px;text-align:center}.health-chart-bars{display:flex;align-items:end;justify-content:center;gap:3px;height:90px}.health-chart-bars i{display:block;width:min(14px,38%);min-height:3px;border-radius:4px 4px 1px 1px;background:#6e5cb5}.health-chart-bars .is-expense{background:#d7a08c}.health-chart small{font-size:8px;color:#918996}.health-forecast-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:10px;margin-top:12px;padding:13px 16px;border:1px solid #e8e3ed;border-radius:12px;background:#faf9fc}.health-forecast-strip div{display:grid;gap:3px}.health-forecast-strip strong{font-size:14px}.health-forecast-strip button{border:0;background:transparent;color:#6c43a1;font-weight:700;font-size:10px;cursor:pointer}
@media(max-width:980px){.health-kpi-grid{grid-template-columns:repeat(2,1fr)}.health-dashboard-grid{grid-template-columns:1fr}.health-forecast-strip{grid-template-columns:repeat(3,1fr)}.health-forecast-strip button{grid-column:1/-1;text-align:left}}
@media(max-width:620px){.company-health-hero{align-items:stretch;flex-direction:column;padding:17px;gap:13px}.company-health-hero:before{width:auto;height:4px}.health-coverage{min-width:0}.health-kpi-grid{grid-template-columns:1fr 1fr;gap:7px}.health-kpi-grid article{padding:12px}.health-kpi-grid strong{font-size:16px}.health-panel{padding:14px}.health-flow{grid-template-columns:1fr}.health-pending-bank{align-items:flex-start!important;flex-direction:column}.health-forecast-strip{grid-template-columns:1fr 1fr}.health-forecast-strip div:last-of-type{grid-column:1/-1}}
/* Live financial health: visual state, compact labels and purposeful motion. */
.company-health-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;padding:22px 24px;background:radial-gradient(circle at 12% 18%,#eadfff 0,transparent 28%),linear-gradient(125deg,#fbfaff 0%,#f4effd 52%,#fff 100%);box-shadow:0 18px 45px #4d2b7612}.company-health-hero:before{display:none}.company-health-hero:after{content:"";position:absolute;z-index:-1;width:210px;height:210px;right:-90px;top:-110px;border:1px solid #7b42bc20;border-radius:50%;box-shadow:0 0 0 28px #7b42bc0a,0 0 0 58px #7b42bc08}.health-live-score{display:grid;place-items:center;width:108px;height:108px;border-radius:50%;background:conic-gradient(#7d3fe0 calc(var(--health-score)*1%),#e9e3f2 0);box-shadow:0 12px 28px #6f35ae25}.health-live-score:before{content:"";position:absolute;width:82px;height:82px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #ece7f2}.health-live-score>div{position:relative;z-index:1;display:flex;align-items:baseline}.health-live-score strong{font-size:31px;letter-spacing:-.07em}.health-live-score small{font-size:10px;color:#796d84}.health-live-copy{min-width:0}.health-live-copy h2{margin:4px 0 3px;font-size:clamp(25px,3vw,38px)}.health-live-copy p{max-width:580px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.health-cover-track{width:min(440px,100%);height:6px;margin-top:13px;border-radius:8px;background:#e5deeb;overflow:hidden}.health-cover-track i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8c45e8,#6e2fca);transform:scaleX(var(--coverage-scale));transform-origin:left}.company-health-hero.is-critical .health-live-score{background:conic-gradient(#d85968 calc(var(--health-score)*1%),#eee4e7 0)}.company-health-hero.is-critical .health-cover-track i{background:linear-gradient(90deg,#d85968,#ea8a76)}.company-health-hero.is-healthy .health-live-score{background:conic-gradient(#2f9a6b calc(var(--health-score)*1%),#dfece6 0)}.company-health-hero.is-healthy .health-cover-track i{background:linear-gradient(90deg,#2f9a6b,#68b58f)}.health-coverage{min-width:190px;padding:15px 17px;border-color:#e1d7ee;background:#ffffffc9;backdrop-filter:blur(9px)}.health-coverage strong{font-size:22px}.cash-motion{display:grid;grid-template-columns:1fr auto 1fr auto 1fr minmax(145px,.72fr);align-items:stretch;gap:8px;margin:12px 0 15px}.cash-motion article,.cash-now{display:grid;gap:5px;padding:14px 16px;border:1px solid #e8e3ec;border-radius:13px;background:#fff}.cash-motion article span,.cash-now span{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.07em;color:#817887}.cash-motion article strong,.cash-now strong{font-size:17px}.cash-motion>i{display:grid;place-items:center;color:#9a7fba;font-style:normal}.cash-motion .is-result{border-color:#dfd1ef;background:linear-gradient(145deg,#faf6ff,#fff)}.cash-now{border:0;background:#241b2c;color:#fff}.cash-now span{color:#bdb1c8}.receipt-orbit{width:46px;height:46px;border-radius:50%;background:conic-gradient(#7440c4 calc(var(--receipt-rate)*1%),#e7e2eb 0);box-shadow:inset 0 0 0 10px #fff}.health-receipts>header{align-items:center}.health-panel{box-shadow:0 10px 28px #33213e08}.health-chart-bars i{transform-origin:bottom}.health-pending-bank{transition:transform 160ms cubic-bezier(.23,1,.32,1),border-color 160ms ease,background-color 160ms ease}.health-forecast-strip{background:linear-gradient(90deg,#faf8fd,#fff)}
@keyframes health-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes health-scale{from{opacity:.45;transform:scaleX(.04)}to{opacity:1;transform:scaleX(var(--coverage-scale))}}@keyframes chart-rise{from{opacity:.35;transform:scaleY(.08)}to{opacity:1;transform:scaleY(1)}}
.company-health-hero{animation:health-enter 240ms cubic-bezier(.23,1,.32,1) both}.cash-motion{animation:health-enter 240ms 45ms cubic-bezier(.23,1,.32,1) both}.health-dashboard-grid{animation:health-enter 240ms 85ms cubic-bezier(.23,1,.32,1) both}.health-cover-track i{animation:health-scale 240ms 80ms cubic-bezier(.23,1,.32,1) both}.health-chart-bars i{animation:chart-rise 240ms cubic-bezier(.23,1,.32,1) both}.health-chart article:nth-child(2) i{animation-delay:35ms}.health-chart article:nth-child(3) i{animation-delay:70ms}.health-chart article:nth-child(4) i{animation-delay:105ms}.health-chart article:nth-child(5) i{animation-delay:140ms}.health-chart article:nth-child(6) i{animation-delay:175ms}
@media(hover:hover) and (pointer:fine){.health-pending-bank:hover{transform:translateY(-2px);border-color:#bfa6dc!important;background:#f5effc!important}.cash-motion article:hover,.health-panel:hover{border-color:#d7c8e8;box-shadow:0 12px 30px #4d2b760d}.health-chart article:hover .health-chart-bars i{transform:scaleY(1.05)}}
@media(max-width:860px){.company-health-hero{grid-template-columns:auto 1fr}.health-coverage{grid-column:1/-1}.cash-motion{grid-template-columns:1fr auto 1fr auto 1fr}.cash-now{grid-column:1/-1}}
@media(max-width:620px){.company-health-hero{grid-template-columns:auto 1fr;align-items:center}.health-live-score{width:78px;height:78px}.health-live-score:before{width:59px;height:59px}.health-live-score strong{font-size:23px}.health-live-copy p{white-space:normal;font-size:11px}.health-coverage{grid-column:1/-1}.cash-motion{grid-template-columns:1fr auto 1fr}.cash-motion>i:nth-of-type(2),.cash-motion .is-result{display:none}.cash-now{grid-column:1/-1}.health-flow{grid-template-columns:repeat(3,1fr)}.health-flow span{padding:9px 7px}.health-flow strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.company-health-hero,.cash-motion,.health-dashboard-grid{animation:health-enter 160ms ease both}.health-cover-track i,.health-chart-bars i{animation:none}.health-pending-bank{transition:background-color 160ms ease,border-color 160ms ease}}
.cash-now strong{color:#fff!important}

/* Readable financial context at every breakpoint. */
#nexusApp .health-score-label{display:block;margin-top:5px;color:#6e607d;font-size:12px;font-weight:600}
#nexusApp .health-live-copy p{white-space:normal;line-height:1.5}
#nexusApp :is(.chart-legend,.health-chart small,.health-flow small,.health-coverage small,.health-pending-bank small){font-size:12px}
#nexusApp .chart-legend{flex-wrap:wrap;gap:7px}
#nexusApp .health-chart{height:140px}
#nexusApp .health-chart-bars{height:108px}
#nexusApp :is(.cash-motion article span,.cash-now span){font-size:11px;letter-spacing:.035em}
@media(max-width:620px){#nexusApp .company-health-hero{grid-template-columns:78px minmax(0,1fr);gap:14px;padding:16px}#nexusApp .health-score-label{font-size:11px}#nexusApp .health-panel>header{flex-wrap:wrap}#nexusApp .health-flow{grid-template-columns:1fr}#nexusApp .health-flow span{padding:10px}#nexusApp .health-flow strong{font-size:14px}}

#financeiro:not([data-finance-tab="payments"]) #financeBankWorkspace,#financeiro:not([data-money-view="reconciliation"]) #financeBankWorkspace{display:none!important}
