.nexus-finance{background:radial-gradient(ellipse at 60% 0,#07376d 0,transparent 48%),#031a32;color:#e6f0ff;padding:22px;border:1px solid #123e64;border-radius:12px;font-size:13px}.nf-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.nf-heading>span{color:#29a5ff;filter:drop-shadow(0 0 8px #177aff);width:48px}.nf-heading svg{width:48px;height:48px}.nf-heading h2{font-size:30px;margin:0;color:white}.nf-heading p{margin:5px 0 0;color:#b6d1f3}.nf-heading label{margin-left:auto;display:flex;align-items:center;gap:10px}.nf-heading input,.nf-button{font:inherit;color:#e6f0ff;background:#08294d;border:1px solid #1a537d;border-radius:7px;padding:9px 13px}.nf-heading input{color-scheme:dark;max-width:100%;min-width:0}.nf-button{cursor:pointer}.nf-button:hover{background:#123f6b}.nf-tabs{display:flex;flex-wrap:wrap;background:#062449;border:1px solid #124b7c;border-radius:8px;margin-bottom:18px}.nf-tabs button{font:inherit;background:transparent;border:0;color:#dfebff;padding:11px 15px;cursor:pointer}.nf-tabs button.active{background:#0953c7;border-bottom:2px solid #40d4ff}.nf-tabs button:hover{background:#104272}.nf-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.nf-metric{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--nf-color);border-radius:10px;background:linear-gradient(110deg,color-mix(in srgb,var(--nf-color) 15%,#021b32),#041a31);min-width:0}.nf-metric.green{--nf-color:#00c58c}.nf-metric.red{--nf-color:#fb405a}.nf-metric.blue{--nf-color:#177aff}.nf-metric.purple{--nf-color:#854bff}.nf-metric.gold{--nf-color:#e59b27}.nf-metric>span{display:grid;place-items:center;flex-shrink:0;background:color-mix(in srgb,var(--nf-color) 30%,transparent);border-radius:50%;padding:10px;color:var(--nf-color)}.nf-metric svg{width:24px;height:24px}.nf-metric strong{display:block;font-size:20px;white-space:nowrap;color:#fff;margin-top:8px}.nf-metric p{color:var(--nf-color);font-size:11px;margin-bottom:0}.nf-metric small{font-size:12px}.nf-charts{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-bottom:14px}.nf-panel{background:#041e38;border:1px solid #16507c;border-radius:10px;padding:14px;min-width:0}.nf-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.nf-panel h3{font-size:15px;color:#fff;margin:0}.nf-panel header button{background:transparent;color:#2aa1ff;border:0;cursor:pointer;font-size:12px}.nf-chart{width:100%;height:auto;min-height:160px}.nf-chart text{font-size:10px;fill:#b8d1f0}.nf-chart-legend{display:flex;justify-content:flex-end;gap:14px;font-size:11px;margin-bottom:8px}.nf-category-layout{display:flex;align-items:center;gap:20px;min-height:220px}.nf-donut{width:180px;height:180px;flex-shrink:0;display:grid;place-items:center;border-radius:50%}.nf-donut>div{background:#041e38;border-radius:50%;width:125px;height:125px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px}.nf-donut strong{font-size:14px}.nf-category-layout ul{list-style:none;padding:0;margin:0;flex:1;min-width:0}.nf-category-layout li{display:flex;align-items:center;gap:8px;margin:12px 0;flex-wrap:wrap}.nf-category-layout i{width:12px;height:12px;border-radius:3px}.nf-category-layout li span{flex:1;min-width:80px}.nf-category-layout b,.nf-category-layout small{font-size:11px}.nf-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px}.nf-table-wrap{overflow:auto;max-height:480px}.nexus-finance table{width:100%;border-collapse:collapse;min-width:480px;font-size:12px}.nexus-finance th{background:#0b2b4e;color:#b8d1f0;text-transform:uppercase;font-size:10px;font-weight:400;text-align:left;padding:9px}.nexus-finance td{padding:8px;border-bottom:1px solid #113650}.nf-money{white-space:nowrap}.nf-status{display:inline-block;padding:3px 8px;border-radius:20px;background:#38485e}.nf-status.paid{background:#004b3f;color:#a6f8d4}.nf-status.pending{background:#511e30;color:#ffc2cc}.nf-fiscal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.nf-fiscal article{display:grid;gap:10px;background:#08294a;border:1px solid #103e65;border-radius:8px;padding:12px;min-width:0}.nf-fiscal svg{width:26px;height:26px;color:#45a1ff}.nf-fiscal small,.nf-note{color:#b8d1f0}.nf-empty{color:#8eaccd;padding:20px!important;text-align:center}.nf-error{color:#ffc2cc;border:1px solid #85314a;padding:14px}.nf-button:focus-visible,.nf-tabs button:focus-visible{outline:2px solid #53c7ff;outline-offset:3px}@media(max-width:1450px){.nf-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.nf-charts{grid-template-columns:1fr}.nf-metric strong{font-size:19px}}@media(max-width:1000px){.nf-bottom{grid-template-columns:1fr}.nf-fiscal{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.nexus-finance{padding:14px}.nf-metrics{grid-template-columns:1fr}.nf-heading label{margin-left:0}.nf-heading h2{font-size:25px}.nf-category-layout{flex-direction:column}.nf-category-layout ul{width:100%}.nf-tabs button{padding:10px;font-size:12px}.nf-heading input{width:155px}}
/* Financeiro independente: composição da referência, sem pesquisa ou notificações. */
.app-shell.finance-full-page{background:radial-gradient(ellipse at 72% 0,#063979 0,transparent 36%),linear-gradient(130deg,#001329,#001c36);color:#e6f0ff;min-height:100dvh}
.app-shell.finance-full-page .workspace{background:transparent}
.app-shell.finance-full-page .page-content{position:relative;padding:18px 30px 30px;min-height:100dvh}
.finance-full-page .portfolio-back{margin-bottom:27px;position:relative;z-index:1}
.nf-identity{position:absolute;right:30px;top:16px;display:flex;align-items:center;gap:12px;color:#fff;font-size:13px}
.nf-identity>span{width:36px;height:36px;display:grid;place-items:center;background:#0065ff;border-radius:50%;font-size:15px}
.nf-identity strong,.nf-identity small{display:block}.nf-identity small{margin-top:4px;color:#a7c2e8;font-size:12px}
.finance-full-page .nexus-finance{padding:0;border:0;border-radius:0;background:transparent;font-size:13px}
.nf-heading{margin-bottom:16px;gap:18px;align-items:center}.nf-heading h2{font-size:34px;font-weight:750;line-height:1.15}.nf-heading p{font-size:16px;color:#c3d9f1}
.nf-heading>span{width:68px;flex:0 0 68px}.nf-heading>span svg{width:56px;height:56px;stroke:#48baff;filter:drop-shadow(0 0 7px #0074ff)}
.nf-period{margin-left:auto;display:grid;grid-template-columns:auto auto;gap:6px 10px;align-items:center;max-width:100%;min-width:0}
.nf-heading .nf-period label{margin:0;font-size:11px;min-width:0}.nf-period select,.nf-period input{font:inherit;background:#032145;color:#edf5ff;border:1px solid #125383;border-radius:7px;padding:9px 12px;min-width:0;max-width:100%;color-scheme:dark}
.nf-period-mode{display:flex;gap:7px;align-items:center}.nf-period-mode svg{width:20px;height:20px;flex-shrink:0}.nf-period-mode select{min-width:155px;cursor:pointer}.nf-period-anchor{display:grid!important;gap:4px}.nf-period-anchor input{width:165px}
.nf-period-caption{grid-column:1/-1;color:#a6c7e9;text-align:right;font-size:11px}.nf-custom-period{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.nf-custom-period label{display:grid!important;gap:4px}.nf-custom-period input{width:145px}.nf-custom-period [data-period-error]{flex-basis:100%;color:#ffc2cc}.nf-refresh{font-size:22px;padding:5px 10px;align-self:center}
.nf-tabs{margin-bottom:16px;background:linear-gradient(90deg,#052952,#002143);border-color:#075284;align-items:stretch}.nf-tabs button{flex:1;padding:12px 8px;font-size:12px;min-height:39px;border-radius:7px;white-space:normal}.nf-tabs button.active{background:linear-gradient(180deg,#0759dc,#0344b5);border-bottom:2px solid #42dcff;font-weight:650}
.nf-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:15px}.nf-metric{padding:14px;min-height:108px;gap:12px;align-items:flex-start}.nf-metric>span{padding:12px}.nf-metric strong{font-size:clamp(17px,1.45vw,23px);font-weight:750;margin-top:7px}.nf-metric small{font-size:12px}.nf-metric p{margin-top:14px;font-size:11px}.nf-metric>div{min-width:0}
.nf-charts{grid-template-columns:1.2fr 1fr;gap:15px}.nf-panel{background:linear-gradient(125deg,#031e38dd,#001b32dd);padding:14px 16px;border-color:#09517c}.nf-panel h3{font-size:16px}.nf-panel header{margin-bottom:10px}.nf-chart{min-height:0;display:block}.nf-chart-legend{margin-bottom:0;gap:18px}.nf-chart-legend span{display:flex;align-items:center;gap:7px}.nf-chart-legend i{width:12px;height:8px;border-radius:2px}.nf-chart-legend .income{background:#00c98b}.nf-chart-legend .expense{background:#fb405a}.nf-chart-legend .balance{background:#318fff}
.nf-category-layout{min-height:220px;gap:20px}.nf-donut{width:180px;height:180px}.nf-category-layout li{flex-wrap:nowrap;font-size:12px;gap:10px}.nf-category-layout li span{overflow-wrap:anywhere;min-width:0}.nf-category-layout b{white-space:nowrap;font-weight:400;font-size:12px}.nf-category-layout small{white-space:nowrap;width:42px;text-align:right}
.nf-bottom{grid-template-columns:1fr 1fr;gap:14px}.nexus-finance th{padding:7px 10px;background:#103153;color:#fff;font-size:10px}.nexus-finance th:first-child{border-radius:7px 0 0 7px}.nexus-finance th:last-child{border-radius:0 7px 7px 0}.nexus-finance td{padding:7px 10px;font-size:12px}.nf-status{padding:3px 9px;font-size:11px}.nf-fiscal{gap:11px}.nf-fiscal article{min-height:120px;padding:13px;background:linear-gradient(120deg,#072d50,#032039)}.nf-fiscal svg{padding:6px;width:34px;height:34px;border-radius:50%;background:#075dda;color:white}.nf-fiscal article:nth-child(1) svg{background:#008c65}.nf-fiscal article:nth-child(3) svg{background:#965022}.nf-fiscal article:nth-child(4) svg{background:#6431c7}
@media(max-width:1199px){.nf-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.nf-charts{grid-template-columns:1fr}.nf-heading p{font-size:14px}.nf-heading h2{font-size:30px}.nf-tabs button{flex:1 0 17%}.nf-metric strong{font-size:21px}}
@media(max-width:900px){.nf-bottom{grid-template-columns:1fr}.nf-heading>div:not(.nf-period){flex:1}.nf-period{margin-left:0;flex-basis:100%;justify-content:start}.nf-period-caption{text-align:left}.nf-tabs button{flex-basis:25%}}
@media(max-width:650px){.app-shell.finance-full-page .page-content{padding:14px 14px 24px}.nf-identity{position:static;margin:0 0 24px;justify-content:flex-end}.finance-full-page .portfolio-back{margin-bottom:14px;max-width:100%}.nf-heading{gap:12px}.nf-heading>span{width:42px;flex-basis:42px}.nf-heading>span svg{width:40px;height:40px}.nf-heading h2{font-size:27px}.nf-heading p{font-size:12px;line-height:1.5}.nf-period{grid-template-columns:minmax(0,1fr);width:100%}.nf-period-caption{grid-column:auto}.nf-heading .nf-period-anchor{display:flex!important;justify-content:space-between}.nf-period-mode select{width:100%}.nf-period-mode{width:100%}.nf-custom-period{width:100%}.nf-custom-period label{flex:1}.nf-custom-period input{width:100%}.nf-refresh{margin-left:auto}.nf-metrics{grid-template-columns:1fr}.nf-metric strong{font-size:23px}.nf-tabs button{flex-basis:45%;font-size:12px}.nf-panel{padding:13px}.nf-category-layout{flex-direction:column}.nf-category-layout li{gap:8px}.nf-category-layout ul{width:100%}.nf-fiscal{grid-template-columns:repeat(2,minmax(0,1fr))}}
.nf-donut{position:relative;background:none}.nf-donut>svg{position:absolute;inset:0;width:100%;height:100%}.nf-donut>div{position:relative;background:transparent;width:120px;height:120px}.nf-category-key{width:12px;height:12px;flex:0 0 12px}.nf-chart{height:220px}.nf-tabs button{font-size:13px}.nf-metric p{font-size:12px}.nf-metric.blue p,.nf-metric.purple p{color:#d7e5fc}.nf-charts .nf-panel{min-height:270px}.nf-charts .nf-category-layout{min-height:220px}@media(max-width:650px){.nf-tabs button{font-size:12px}.nf-chart{height:auto;min-height:170px}.nf-charts .nf-panel{min-height:0}}
/* Controles do período compartilham a mesma linha e altura. */
.nf-period{grid-template-columns:auto auto 40px;align-items:end;gap:7px 10px}.nf-period-mode{align-self:end}.nf-period-mode select,.nf-period-anchor input,.nf-period .nf-refresh{height:40px}.nf-period .nf-refresh{width:40px;padding:0;display:grid;place-items:center;align-self:end;margin:0;line-height:1}.nf-period-caption{grid-column:1/-1}.nf-custom-period{align-items:end}.nf-custom-period input,.nf-custom-period .nf-button{height:40px}.nf-heading .nf-period-anchor{gap:6px}
@media(max-width:650px){.nf-period{grid-template-columns:minmax(0,1fr) 40px}.nf-period-mode{grid-column:1/-1}.nf-heading .nf-period-anchor{display:grid!important}.nf-period-anchor input{width:100%}.nf-period-caption{grid-column:1/-1}.nf-custom-period{grid-column:1/-1}.nf-period .nf-refresh{grid-column:2}.nf-period:has(.nf-custom-period) .nf-period-caption{grid-row:auto}}

.nf-panel>.nf-button{margin-bottom:14px}.nf-panel>.nf-button+.nf-table-wrap{clear:both}


.nf-custom-period [data-period-error]:empty{display:none}.nf-custom-period{gap:10px}.nf-heading .nf-custom-period label{gap:6px}.nf-custom-period>.nf-button{margin:0;align-self:end}

.nf-period-reference{display:flex;align-items:end;gap:10px}.nf-period-anchor select{height:40px;min-width:145px}.nf-period-anchor input[data-finance-year]{width:105px;height:40px}.nf-period:not(:has(.nf-period-anchor,.nf-period-reference,.nf-custom-period)){grid-template-columns:auto 40px}
@media(max-width:650px){.nf-period-reference{min-width:0;gap:10px}.nf-period-reference .nf-period-anchor:first-child{flex:1;min-width:0}.nf-period-reference .nf-period-anchor select{width:100%;min-width:0}.nf-period-reference .nf-period-anchor input[data-finance-year]{width:95px}}

.nf-heading .nf-custom-period label{text-align:center}.nf-custom-period input{text-align:start}.nf-donut>div{text-align:center;justify-content:center;align-items:center}.nf-donut strong,.nf-donut small{display:block;width:100%;text-align:center}


/* Botões financeiros seguem o acabamento do RH. */
.nexus-finance .nf-button,.nexus-finance .nf-panel header button,.nexus-finance-dialog .secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:36px;padding:9px 12px;color:#bdcdff;background:#05213e;border:1px solid #24518b;border-radius:8px;font:inherit;font-size:13px;font-weight:400;line-height:normal;white-space:normal;cursor:pointer;transition:background-color .15s,color .15s}.nexus-finance .nf-button:hover:not(:disabled),.nexus-finance .nf-panel header button:hover:not(:disabled),.nexus-finance-dialog .secondary:hover:not(:disabled){background:#0b3866;color:#bdcdff}.nexus-finance .nf-button svg{width:20px;height:20px}.nexus-finance .nf-panel header button{font-size:12px;padding:6px 10px;min-height:30px}.nexus-finance button:focus-visible,.nexus-finance-dialog button:focus-visible{outline:2px solid #51c9ff;outline-offset:3px}.nexus-finance button:disabled,.nexus-finance-dialog button:disabled{opacity:.55;cursor:default}.nexus-finance-dialog .primary{border:1px solid #24518b;border-radius:8px;min-height:36px;padding:9px 12px;background:#0866f5;color:#fff;font-weight:400;transition:filter .15s}.nexus-finance-dialog .primary:hover:not(:disabled){background:#0866f5;filter:brightness(1.08)}
.nexus-finance .nf-tabs{gap:4px;border:0;background:transparent;border-radius:0}.nexus-finance .nf-tabs button{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:44px;padding:10px 12px;border:1px solid #13375d;border-radius:11px;background:linear-gradient(#062349,#02152d);color:#eef1ff;font-size:11px;font-weight:400;transition:filter .15s}.nexus-finance .nf-tabs button.active{background:linear-gradient(110deg,#00baff,#0042ff);border:1px solid #028dff;font-weight:700}.nexus-finance .nf-tabs button:hover:not(:disabled){filter:brightness(1.08)}
@media(prefers-reduced-motion:reduce){.nexus-finance .nf-button,.nexus-finance .nf-panel header button,.nexus-finance .nf-tabs button,.nexus-finance-dialog button{transition:none}}
