.project-finance-page{display:grid;gap:22px;min-width:0}.project-finance-page>.page-heading{margin-bottom:0}.finance-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.finance-total{display:flex;align-items:flex-start;gap:13px;min-width:0;border:1px solid #dce6e3;border-radius:12px;padding:19px 17px;background:#fff}.finance-total-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#edf5f0;color:#256f56}.finance-total-icon>.icon{width:21px;height:21px}.finance-total>div{display:grid;gap:5px;min-width:0}.finance-total>div>span{font-size:12px;line-height:1.5;color:#5b7277;font-weight:600}.finance-total strong{font-size:25px;line-height:1.3;letter-spacing:-.6px;color:#193d43;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-total small{font-size:11px;line-height:1.5;color:#6e8083}.finance-filters{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:17px 19px}.finance-filters>.input{min-width:0;flex:1 1 240px;width:auto}.finance-filters>.checkbox-row{font-size:12px;margin-left:auto;min-height:44px}.finance-result-count{font-size:12px;color:#667e80;margin:0}.finance-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}.finance-project-grid>.empty-state{grid-column:1/-1}.finance-project{min-width:0;display:flex;flex-direction:column;padding:24px;gap:20px;border-radius:14px}.finance-project-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.finance-project-header>div{min-width:0}.finance-project-code{display:block;color:#637e7f;font-size:11px;font-weight:650;letter-spacing:.08em;overflow-wrap:anywhere;margin-bottom:6px}.finance-project-header h2{font-size:20px;color:#203d42;line-height:1.4;overflow-wrap:anywhere}.finance-project-header>.badge{flex-shrink:0;font-size:11px;padding:4px 8px}.finance-project-amounts,.finance-detail-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.finance-figure{display:grid;align-content:start;gap:7px;min-width:0;color:#203e43}.finance-figure>span{font-size:12px;color:#657b7e;line-height:1.5}.finance-figure>strong{font-size:23px;letter-spacing:-.55px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.finance-figure>small{font-size:11px;color:#7a8b8d;line-height:1.5}.finance-figure.green>strong,.finance-phase-payment{color:#176b55}.finance-negative,.finance-figure.finance-negative>strong{color:#a94f47}.finance-collection{display:grid;gap:8px;padding:0}.finance-collection-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#647d7e}.finance-collection-label strong{font-variant-numeric:tabular-nums;color:#2a5f4e}.finance-progress{appearance:none;display:block;height:7px;width:100%;border:0;border-radius:8px;overflow:hidden;background:#e8efeb;color:#46876d}.finance-progress::-webkit-progress-bar{background:#e8efeb;border-radius:8px}.finance-progress::-webkit-progress-value{background:#46876d;border-radius:8px}.finance-progress::-moz-progress-bar{background:#46876d;border-radius:8px}.finance-current-phase{display:flex;align-items:flex-start;gap:12px;padding:14px 15px;border:1px solid #e0eae5;border-radius:10px;background:#f7faf8}.finance-current-phase>.icon{width:18px;height:18px;color:#4e7e6a;margin-top:2px;flex-shrink:0}.finance-current-phase>div{display:grid;gap:4px;min-width:0}.finance-current-phase span{font-size:11px;color:#678079}.finance-current-phase strong{font-size:13px;color:#284e43;line-height:1.55;overflow-wrap:anywhere}.finance-project-estimate{display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;font-size:11px;line-height:1.7;color:#708481}.finance-project-estimate b{display:block;font-size:14px;color:#38594e}.finance-project-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:17px;border-top:1px solid #e8eeeb;margin-top:auto}.finance-project-foot>span{font-size:11px;color:#6b807d}.finance-project-foot>.btn{font-size:12px;min-height:44px;padding:10px 14px}.finance-project-empty{font-size:13px;color:#718482;padding:5px 0}.finance-footnote{max-width:930px;font-size:12px;color:#708480;line-height:1.8}.finance-dialog{max-width:920px}.finance-detail{display:grid;gap:24px}.finance-detail-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#6a817f}.finance-detail-meta>span:first-child{letter-spacing:.1em;font-weight:650;color:#3c6d5b}.finance-detail-amounts{padding:20px;border:1px solid #dde8e2;background:#f7faf8;border-radius:12px;gap:20px}.finance-detail-amounts .finance-figure>strong{font-size:27px}.finance-cost-estimate{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:18px 20px;border-radius:11px;border:1px solid #e1e8e5;background:#fff}.finance-cost-estimate>p{grid-column:1/-1;font-size:11px;color:#768983;line-height:1.65;border-top:1px solid #ebefed;padding-top:12px}.finance-section-title{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px}.finance-section-title h3{font-size:17px;color:#284b44}.finance-section-title p{font-size:12px;line-height:1.7;color:#718781;margin-top:5px}.finance-section-title>.badge{font-size:11px;flex-shrink:0}.finance-phase-list{display:grid;gap:14px}.finance-phase{display:flex;align-items:flex-start;gap:17px;padding:20px;border:1px solid #dfe8e3;border-radius:12px;background:#fff}.finance-phase.current{border-color:#9bc3ae;background:#f3faf5;box-shadow:inset 3px 0 #5c9478}.finance-phase-number{display:grid;place-items:center;flex:0 0 35px;height:35px;border:1px solid #d9e7df;background:#f1f6f3;border-radius:10px;font-size:12px;font-weight:650;color:#42775f}.finance-phase-number>.icon{width:18px;height:18px}.finance-phase-content{flex:1;min-width:0}.finance-phase-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.finance-phase-heading h3{font-size:15px;line-height:1.6;color:#294d43;overflow-wrap:anywhere}.finance-phase-heading>.badge{font-size:10px;padding:4px 8px;flex-shrink:0}.finance-phase-due{font-size:11px;color:#738980;margin-top:5px}.finance-phase-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}.finance-phase-money .finance-figure{gap:4px}.finance-phase-money .finance-figure>strong{font-size:19px;letter-spacing:-.4px}.finance-phase-money .finance-figure>span{font-size:10px}.finance-phase-payment{font-size:11px;margin-top:15px}.finance-detail-notes{border-top:1px solid #e4ece7;padding-top:17px}.finance-detail-notes h3{font-size:13px;color:#385e50;margin-bottom:8px}.finance-detail-notes p{font-size:13px;color:#6a8079;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.finance-updated{font-size:11px;color:#81918b}.finance-detail>.notice{margin:0}.finance-edit{gap:22px}.finance-edit-contract{display:grid;grid-template-columns:1fr 1fr;gap:20px}.finance-phase-editor-list{display:grid;gap:16px}.finance-phase-editor{padding:19px 20px;background:#f8faf9;border:1px solid #dfe8e3;border-radius:12px}.finance-phase-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.finance-phase-editor>header h3{font-size:13px;font-weight:650;color:#43715e}.finance-phase-editor>header>.btn{font-size:11px;min-height:40px;padding:7px 10px;color:#7e5c55}.finance-phase-editor>header>.btn .icon{width:15px;height:15px}.finance-phase-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 18px}.finance-phase-editor-grid>.form-control:first-child{grid-column:1/-1}.finance-phase-editor-grid label{font-size:12px}.finance-phase-editor-grid .input{width:100%;font-size:14px}.finance-phase-editor>.help{margin-top:12px;font-size:11px}.finance-add-phase{min-height:48px;border-style:dashed;border-color:#a2c0ad;background:#f9fcfa;color:#326b50;width:100%;justify-content:center;font-size:13px}.finance-plan-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;padding:18px;background:#f0f6f2;border:1px solid #d7e6db;border-radius:10px}.finance-plan-preview>div{display:grid;gap:5px;min-width:0}.finance-plan-preview span{font-size:11px;color:#6c8476}.finance-plan-preview strong{font-size:16px;font-weight:650;color:#2d5942;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-plan-preview>p{grid-column:1/-1;font-size:12px;color:#6c8476}.finance-dialog .dialog-foot>.btn{font-size:13px;min-height:46px}.finance-edit>p.help{font-size:12px;line-height:1.8}.finance-edit>.form-control>label{font-size:13px}.finance-edit-contract label{font-size:13px}
@media(max-width:1200px){.finance-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-project-grid{grid-template-columns:1fr}.finance-project-amounts .finance-figure>strong{font-size:25px}}
@media(max-width:650px){.project-finance-page{gap:17px}.finance-totals{gap:10px}.finance-total{padding:15px 12px;gap:9px}.finance-total-icon{width:29px;height:29px;flex-basis:29px;border-radius:8px}.finance-total-icon>.icon{width:17px;height:17px}.finance-total>div>span{font-size:10px}.finance-total strong{font-size:21px}.finance-total small{font-size:10px}.finance-filters{display:grid;gap:12px;padding:15px}.finance-filters>.input{width:100%;min-width:0}.finance-filters>.checkbox-row{margin:0;font-size:12px}.finance-project{padding:19px 17px;gap:18px}.finance-project-header{gap:10px}.finance-project-header h2{font-size:18px}.finance-project-header>.badge{font-size:10px;padding:4px 7px}.finance-project-amounts{gap:10px}.finance-project-amounts .finance-figure>strong{font-size:19px;letter-spacing:-.4px}.finance-figure>span{font-size:10px}.finance-project-foot>span{font-size:10px}.finance-project-foot>.btn{font-size:11px;padding:10px 12px}.finance-current-phase{padding:12px}.finance-current-phase strong{font-size:12px}.finance-project-estimate{font-size:10px}.finance-project-estimate b{font-size:13px}.finance-detail{gap:20px}.finance-dialog .dialog-body{padding:19px 15px}.finance-detail-amounts{grid-template-columns:1fr;padding:17px;gap:16px}.finance-detail-amounts .finance-figure{display:flex;align-items:center;justify-content:space-between;gap:14px}.finance-detail-amounts .finance-figure>span{font-size:12px}.finance-detail-amounts .finance-figure>strong{font-size:23px}.finance-cost-estimate{gap:16px;padding:16px}.finance-cost-estimate .finance-figure>strong{font-size:20px}.finance-cost-estimate .finance-figure>span{font-size:11px}.finance-section-title h3{font-size:16px}.finance-section-title p{font-size:11px}.finance-phase{padding:16px 12px;gap:10px}.finance-phase-number{width:29px;height:29px;flex-basis:29px;font-size:10px;border-radius:8px}.finance-phase-heading{flex-wrap:wrap;gap:7px}.finance-phase-heading h3{font-size:14px}.finance-phase-money{gap:12px 7px;grid-template-columns:repeat(2,minmax(0,1fr))}.finance-phase-money .finance-figure>strong{font-size:17px}.finance-phase-money .finance-figure>span{font-size:9px}.finance-phase-money .finance-figure:last-child{grid-column:1/-1;display:flex;align-items:center;gap:14px;border-top:1px solid #e0eae2;padding-top:10px}.finance-phase-due{font-size:10px}.finance-phase-payment{font-size:10px}.finance-edit-contract{grid-template-columns:1fr;gap:16px}.finance-phase-editor{padding:15px 12px}.finance-phase-editor-grid{grid-template-columns:1fr;gap:14px}.finance-phase-editor-grid>.form-control:first-child{grid-column:auto}.finance-phase-editor-grid .input{font-size:16px;min-height:46px}.finance-phase-editor>header>.btn{font-size:10px;padding:6px 7px}.finance-phase-editor>header h3{font-size:12px}.finance-plan-preview{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;gap:15px}.finance-plan-preview strong{font-size:16px}.finance-dialog .dialog-foot{gap:8px}.finance-dialog .dialog-foot>.btn{font-size:12px;min-height:46px;padding:10px 12px}.finance-dialog .dialog-foot>.btn.primary{flex:1}.finance-footnote{font-size:11px}}
@media(max-width:360px){.finance-total-icon{display:none}.finance-project-amounts{grid-template-columns:1fr}.finance-project-amounts .finance-figure{display:flex;justify-content:space-between;gap:10px;align-items:center}.finance-project-amounts .finance-figure>strong{font-size:21px}.finance-project-amounts .finance-figure>span{font-size:12px}.finance-cost-estimate{grid-template-columns:1fr}.finance-cost-estimate>p{grid-column:auto}.finance-project-header{flex-wrap:wrap}.finance-project-header>.badge{margin-top:0}}
/* Keep full currency amounts together; the tender has its own clear row. */
.finance-project-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.finance-project-amounts>.finance-figure:first-child{grid-column:1/-1;padding-bottom:15px;border-bottom:1px solid #e7eeea}.finance-project-amounts>.finance-figure:first-child>strong{font-size:28px}.finance-project-amounts .finance-figure>strong{font-size:clamp(16px,1.55vw,23px);white-space:nowrap;overflow-wrap:normal;word-break:normal}.finance-total strong{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(19px,1.8vw,25px)}.finance-detail-amounts .finance-figure>strong,.finance-phase-money .finance-figure>strong,.finance-plan-preview strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}
@media(max-width:1400px){.finance-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.finance-project-amounts{gap:15px 14px}.finance-project-amounts>.finance-figure:first-child{padding-bottom:13px}.finance-project-amounts>.finance-figure:first-child>strong{font-size:27px}.finance-project-amounts .finance-figure>strong{font-size:clamp(14px,3.65vw,19px);letter-spacing:-.35px}.finance-project-amounts>.finance-figure:first-child>span{font-size:11px}.finance-total{position:relative;display:block;padding:15px 12px}.finance-total-icon{position:absolute;top:13px;right:11px;width:25px;height:25px}.finance-total>div{width:100%;gap:8px}.finance-total>div>span{padding-right:26px;min-height:30px;font-size:10px}.finance-total strong{font-size:clamp(14px,3.65vw,18px);letter-spacing:-.35px}.finance-total small{font-size:9px}.finance-detail-amounts .finance-figure>strong{font-size:clamp(17px,5vw,23px)}.finance-phase-money .finance-figure>strong{font-size:clamp(12px,3.25vw,17px)}.finance-plan-preview strong{font-size:clamp(12px,3.35vw,16px)}}
@media(max-width:360px){.finance-project-amounts{grid-template-columns:1fr}.finance-project-amounts>.finance-figure:first-child{grid-column:auto}.finance-project-amounts .finance-figure>strong{font-size:17px}.finance-project-amounts>.finance-figure:first-child>strong{font-size:24px}.finance-total-icon{display:none}.finance-total>div>span{padding-right:0}}
