.financial-sheet{display:flex;flex-direction:column;max-width:var(--page-max-width);overflow:hidden}
.financial-body{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;gap:var(--panel-content-gap);overflow:auto;padding-top:var(--panel-content-gap)}
.financial-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:none;min-width:0}
.financial-toolbar>.app-dropdown-control{width:132px;flex:0 0 132px;min-width:0}.financial-toolbar>button{min-height:36px;white-space:nowrap}
.financial-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.financial-icon{width:32px!important;height:36px!important;min-width:32px!important;flex:none;padding:6px!important}
.financial-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.financial-tabs{flex:none;min-width:0;min-height:40px}.financial-tabs>.app-dropdown-control{width:100%;min-width:0}
.financial-kpis.overview-stat-strip{flex:none;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.financial-kpi{min-width:0;min-height:64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:9px 10px}
.financial-kpi:nth-child(even){border-left:1px solid #d2ddda}.financial-kpi:nth-child(n+3){border-top:1px solid #d2ddda}
.financial-kpi .financial-kpi-label{width:100%;font-size:11px;font-weight:550;color:#52635e;gap:5px}
.financial-kpi-label>span{display:block;padding:0;border:0!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.financial-kpi>strong{max-width:100%;overflow:auto;text-overflow:clip;font-size:17px;font-weight:650;line-height:1.3;white-space:nowrap}
.financial-table-frame{flex:1 0 180px;overflow:auto;min-width:0;min-height:180px;border:1px solid #bfd0cc;border-radius:14px;background:var(--surface);overscroll-behavior:contain}
.financial-table{width:100%;min-width:100%;border-collapse:collapse;table-layout:auto;font-size:12px}
.financial-table th{position:sticky;top:0;z-index:1;height:30px;font-size:9.5px;font-weight:750;color:#536560;text-align:left;padding:0 11px;border-bottom:1px solid #d5e0dd;background:#f4f8f7;white-space:nowrap}
.financial-table td{height:43px;padding:7px 11px;border-bottom:1px solid #cddbd8;background:var(--surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.financial-table td:first-child{font-size:13px;font-weight:750}.financial-table .financial-number{font-weight:650;text-align:right}
.financial-table th.financial-number{font-weight:750}.financial-table tr:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:-1px}
.financial-table tr{cursor:pointer}.financial-table .is-negative{color:var(--danger)!important}.financial-table th:first-child{width:27%}.financial-table th:last-child{width:29%}
.financial-table td:first-child{min-width:140px;max-width:240px;color:var(--ink)}.financial-table td:last-child:not(.financial-number){min-width:160px;max-width:260px}.financial-table .financial-debt{color:var(--danger)!important}.financial-table .financial-credit{color:var(--brand-dark)!important}
.financial-table td:not(.financial-number)>span{display:block;max-width:0;min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.financial-table td.financial-number{overflow:visible;text-overflow:clip}.financial-table tr:hover td{background:var(--surface-selected)}
.financial-empty{min-height:36px;display:grid;place-items:center;font-size:12px;color:var(--muted);padding:8px}
.financial-empty:empty{display:none}.financial-table-frame.has-overflowing-rows tbody tr:last-child td{border-bottom-color:transparent}
.compact-modal>.financial-dialog{width:min(560px,calc(100vw - 32px));height:min(640px,calc(var(--tg-viewport-height,100dvh) - 32px - var(--safe-top) - var(--safe-bottom)));display:flex;flex-direction:column;overflow:hidden}
.financial-dialog-content{flex:1;min-height:0;overflow:auto;padding-top:var(--panel-content-gap);padding-bottom:12px}
.financial-form{display:grid;gap:12px}.financial-form>div,.financial-form>fieldset{min-width:0}.financial-field.product-form-field{gap:0;min-width:0}
.financial-form>.confirm-actions{position:sticky;bottom:0;z-index:2;background:var(--surface);padding:8px 0 0}
.financial-advanced{min-width:0}.financial-advanced>summary{cursor:pointer;font-size:13px;font-weight:650;padding:8px 0}.financial-advanced>.financial-field,.financial-advanced>fieldset{margin-top:12px}
.financial-field>input,.financial-field>select{width:100%;min-width:0}.financial-label{display:flex;align-items:center;gap:5px;min-width:0}
.financial-detail-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;border-bottom:1px solid var(--line);font-size:12px}
.financial-detail-row>.financial-label{flex:1;min-width:0}.financial-detail-row>.financial-label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.financial-detail-row>strong{max-width:100%;overflow:auto;font-size:12.5px;font-weight:700;white-space:nowrap;color:var(--brand-dark)}
.financial-reasons{font-size:12px;padding-left:18px;line-height:1.7}.financial-dialog h3{font-size:13px;margin-top:12px}
.financial-risk-band{display:grid;grid-template-columns:minmax(0,1fr);align-items:end;gap:7px;margin:10px 0}.financial-risk-band input{width:100%;min-width:0}
.financial-weekly{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:12px}.financial-recipient{display:flex;align-items:center;gap:8px;font-size:12px}.financial-recipient input{width:18px;height:18px}
.financial-simulator-fields{display:grid;gap:12px}.financial-scenario-output{min-height:100px}.financial-allocation-lines{display:grid;gap:12px}
.financial-overview-summary{min-height:160px}.financial-mini-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px}
.financial-mini-kpis>div{display:grid;gap:8px;min-width:0}.financial-mini-kpis small{font-size:11px;color:var(--muted)}.financial-mini-kpis strong{max-width:100%;overflow:auto;text-overflow:clip;font-size:15px;font-weight:750;color:var(--brand-dark);white-space:nowrap}
#financialDialog.modal.compact-modal{align-items:center!important;padding:16px!important;height:var(--tg-viewport-height,100dvh)}
#financialDialog.modal.compact-modal>.financial-dialog{width:100%!important;max-width:560px!important;height:min(640px,calc(var(--tg-viewport-height,100dvh) - 32px - var(--safe-top) - var(--safe-bottom)))!important;max-height:calc(var(--tg-viewport-height,100dvh) - 32px - var(--safe-top) - var(--safe-bottom))!important;margin:0!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:16px!important}
@media(max-width:600px){.financial-table th,.financial-table td{padding-right:9px;padding-left:9px}.financial-mini-kpis strong{font-size:13px}.financial-toolbar>button{padding-inline:9px}}
@media(max-width:480px){.financial-kpis.overview-stat-strip{grid-template-columns:minmax(0,1fr)}.financial-kpi{min-height:43px;flex-direction:row;align-items:center;justify-content:space-between;gap:9px;padding:7px 10px}.financial-kpi:nth-child(even){border-left:0}.financial-kpi:nth-child(n+2){border-top:1px solid #d2ddda}.financial-kpi .financial-kpi-label{flex:1;min-width:0}.financial-kpi>strong{flex:none;max-width:calc(100% - 40px)}.financial-toolbar>.app-dropdown-control{flex-basis:100%;width:100%}.financial-toolbar>button{flex:1;min-width:0;padding-inline:5px}.financial-detail-row{gap:8px}.financial-detail-row>strong{margin-left:auto;max-width:60%}}
@media(max-width:480px){.financial-mini-kpis{grid-template-columns:minmax(0,1fr)}.financial-mini-kpis>div{display:flex;align-items:center;justify-content:space-between;min-height:32px;gap:9px}.financial-mini-kpis strong{max-width:65%}}

.financial-table td.financial-money{font-size:12.5px;font-weight:700;color:#172925}
.financial-table td.financial-debt,.financial-table td.financial-credit{font-size:12px;font-weight:650}
