:root{--muted:#63756b;--line:#dfe6e1}body{font-size:14px}main .page-heading p{font-size:13px;color:#5f7267;line-height:1.7}.eyebrow{color:#526f60}.field,.form-grid label{font-size:13px}.field input,.field select,.field textarea{font-size:14px;min-height:40px}.field small,.attachment-help,.product-form-note,.cell-sub,.panel-subtitle{font-size:12px!important;color:#63766a!important;line-height:1.65}.panel-title{font-size:15px}.button{font-size:12px;min-height:38px}.row-action{font-size:12px;min-height:32px}.badge{font-size:11px}.detail-item small{font-size:12px;color:#64776b}.detail-item strong{font-size:14px;line-height:1.65}.table-scroll th{font-size:12px;line-height:1.6}.table-scroll td{font-size:13px;line-height:1.6}.table-scroll td.amount,.kpi-value,.mini-stat strong{font-variant-numeric:tabular-nums}.table-scroll-hint{font-size:12px;color:#607468;padding:8px 16px;margin:0;background:#f1f6f3}.table-scroll-hint[hidden]{display:none}.table-scroll:focus-visible{outline:2px solid #316653;outline-offset:-2px}.table-bottom{flex-wrap:wrap;gap:12px}.list-pagination{display:flex;align-items:center;gap:12px;font-size:12px}.list-pagination .button:disabled{opacity:.45;cursor:not-allowed}.modal{scroll-padding-top:95px;scroll-padding-bottom:90px}.modal:has(table){width:960px}.modal-head{position:sticky;top:0;background:white;z-index:3;gap:12px}.modal-head>div{min-width:0}.modal-head h2,.detail-hero h3{overflow-wrap:anywhere}.modal-head p{font-size:12px;line-height:1.6;color:#607367;overflow-wrap:anywhere}.modal-close{width:40px;height:40px;flex-shrink:0}.modal-footer{position:sticky;bottom:0;background:white;z-index:3;flex-wrap:wrap;box-shadow:0 -4px 12px #17352508}.modal .form-error{font-size:13px;line-height:1.6;scroll-margin:100px 0}.project-section-links{position:sticky;top:90px;z-index:2;background:#fff;padding:10px 0;border-bottom:1px solid var(--line)}.project-anchor{scroll-margin-top:180px}.discard-draft-dialog{border:1px solid var(--line);border-radius:12px;padding:24px;width:440px;max-width:calc(100vw - 28px);color:var(--ink);box-shadow:0 20px 60px #132a2840}.discard-draft-dialog::backdrop{background:#17352566}.discard-draft-dialog h2{font-size:21px;margin:0 0 14px}.discard-draft-dialog p{font-size:14px;line-height:1.8;margin:0 0 22px}.discard-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}body.navigation-open{overflow:hidden}.navigation-close{display:none}.navigation-open .navigation-close{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:12px}.navigation-close button{min-height:40px;min-width:40px}.load-error{padding:18px}.load-error p{color:#a54535}.empty{font-size:13px;line-height:1.8}.empty small{font-size:12px;color:#62766a}#toast{font-size:13px;line-height:1.6}button[aria-busy=true]{cursor:progress}.page-heading .heading-actions{flex-wrap:wrap}.app-shell main{min-width:0}.modal [hidden]{display:none!important}
@media(max-width:620px){.page-heading .heading-actions{justify-content:flex-start;gap:8px}.button{font-size:12px;min-height:42px}.field input,.field select,.field textarea{font-size:16px}.modal-head,.modal-footer{padding:14px 16px}.modal-head h2{font-size:19px}.modal-head p{font-size:12px}.modal-footer .button{flex:1 1 auto}.project-section-links{margin:0 16px;top:85px;gap:6px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.project-section-links .button{font-size:11px;padding:7px 3px;min-height:38px}.project-anchor{scroll-margin-top:190px}.table-bottom{align-items:stretch}.list-pagination{justify-content:space-between;gap:8px;width:100%}.list-pagination span{font-size:11px;text-align:center}.list-pagination .button{padding:8px 10px}#mobile-navigation{height:calc(64px + env(safe-area-inset-bottom,0px))}.app-shell{margin-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.navigation-open .sidebar{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 144px - env(safe-area-inset-bottom,0px))}.discard-draft-dialog{padding:20px}.discard-actions .button{width:100%}footer{font-size:11px}.page-heading h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.modal .project-section-links{top:var(--modal-head-height,90px)}.modal .project-anchor{scroll-margin-top:calc(var(--modal-head-height,90px) + var(--project-tabs-height,90px) + 16px)}
.table-scroll td:first-child{white-space:normal;min-width:170px;max-width:280px;overflow-wrap:anywhere}.table-scroll td:first-child .table-link{white-space:normal;line-height:1.6;min-height:36px}.table-scroll .cell-sub{white-space:normal;overflow-wrap:anywhere}.table-scroll td.amount{white-space:nowrap}.detail-item,.workflow-row{min-width:0;overflow-wrap:anywhere}
.table-scroll td.project-parties{white-space:normal;min-width:180px;max-width:260px;vertical-align:top;overflow-wrap:anywhere}.project-party+.project-party{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}.project-party .table-link{white-space:normal;text-align:left;line-height:1.6;min-height:32px;overflow-wrap:anywhere}.project-parties-suppliers .table-link{color:#37647d}.project-parties .muted{font-size:12px;line-height:1.7}
.mobile-filter{display:none}.toolbar{flex-wrap:wrap;gap:14px}.tabs{flex-wrap:wrap}.tab{font-size:12px;min-height:34px}.search input{font-size:13px}.mini-stat>span,.kpi-label{font-size:12px;color:#53695d}.mini-stat strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.breadcrumb{font-size:12px}.table-bottom>span{font-size:12px;color:#617569}
@media(max-width:620px){.toolbar>.tabs{display:none}.mobile-filter{display:flex;align-items:center;gap:12px;font-size:12px;color:#52695c}.mobile-filter select{flex:1;min-width:0;border:1px solid var(--line);background:white;border-radius:6px;padding:9px;font-size:16px;min-height:42px;color:var(--ink)}.toolbar .search input{font-size:16px;min-height:42px}.mini-stat>span{font-size:11px}.topbar .breadcrumb{font-size:11px}}
.modal{overflow-x:hidden}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.form-grid>*,.field,.detail-grid>*{min-width:0}.field input,.field select,.field textarea,.form-grid input,.form-grid select,.form-grid textarea{min-width:0;max-width:100%;box-sizing:border-box}.native-grants{min-width:0}.native-account-row{overflow-wrap:anywhere}.modal form{min-width:0}.form-grid .field select{width:100%}
@media(max-width:620px){.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Project lists: business context first, financial summaries together. */
.project-list table{width:100%;min-width:880px;table-layout:fixed}
.project-list th:nth-child(1){width:24%}.project-list th:nth-child(2),.project-list th:nth-child(3){width:18%}.project-list th:nth-child(4){width:14%}.project-list th:nth-child(5){width:18%}.project-list th:nth-child(6){width:8%}
.project-list th,.project-list td{padding:18px 12px;text-align:left;vertical-align:top}
.project-list th{padding-top:13px;padding-bottom:13px;color:#53695d;font-weight:500}
.project-list th:first-child,.project-list td:first-child{padding-left:20px}
.project-list td:first-child,.project-list td.project-parties{min-width:0;max-width:none;white-space:normal}
.project-list th:nth-child(4),.project-list th:nth-child(5){text-align:right}
.project-list tbody tr:hover{background:#f8fbf9}
.project-list .project-name{font-size:14px;font-weight:600;line-height:1.65;min-height:0!important}
.project-progress{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin-top:9px;font-size:12px;color:#627569}
.project-progress .badge{white-space:nowrap}.project-reference{margin-top:8px}
.project-list .project-party .table-link{font-size:13px;min-height:0;line-height:1.65}
.project-list .project-party .cell-sub{margin-top:4px;font-size:11px!important}
.project-list .project-party+.project-party{margin-top:12px;padding-top:0;border:0}
.project-party-more{margin-top:10px}.project-party-more summary{color:#316653;font-size:12px;cursor:pointer;line-height:1.7;padding:3px 0}.project-party-more[open] summary{margin-bottom:10px}.project-party-more summary:focus-visible{outline:2px solid #316653;outline-offset:3px;border-radius:3px}
.project-money{font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.7;font-weight:500;color:#263e32}
.project-list .project-contract-value{text-align:right;white-space:normal}
.project-settlement>div{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.project-settlement>div+div{margin-top:6px}.project-settlement>div>span{flex-shrink:0;font-size:11px;color:#697c70}.project-settlement strong{text-align:right}
.project-list .project-row-actions{text-align:right;padding-right:16px}.project-row-actions .row-action{white-space:normal;padding:0;min-height:32px;line-height:1.5}
@media(max-width:900px){
 .project-list{overflow:visible;padding:0 14px 14px}.project-list table,.project-list tbody{display:block;min-width:0;width:100%}.project-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .project-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;border:1px solid var(--line);border-radius:10px;padding:18px;background:#fff}.project-list tbody tr+tr{margin-top:12px}.project-list tbody tr:hover{background:white}
 .project-list tbody td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal;text-align:left}
 .project-list .project-identity{grid-column:1/-1;border-bottom:1px solid var(--line)!important;padding-bottom:14px!important}.project-list td:first-child{min-width:0;max-width:none}
 .project-list td[data-label]::before{content:attr(data-label);display:block;color:#66796d;font-size:11px;font-weight:500;margin-bottom:7px}
 .project-list .project-name{font-size:16px}.project-list .project-party .table-link{min-height:30px}.project-list .project-party .cell-sub{margin-top:0}.project-progress{margin-top:8px}.project-reference{margin-top:7px}
 .project-list .project-contract-value,.project-list .project-settlement{border-top:1px solid var(--line)!important;padding-top:13px!important;text-align:left}.project-settlement>div{flex-wrap:wrap}.project-settlement strong{text-align:left}
 .project-list .project-row-actions{grid-column:1/-1;border-top:1px solid var(--line)!important;padding-top:12px!important}.project-row-actions .row-action{width:100%;min-height:40px;border:1px solid #dae7df;border-radius:6px;color:#316653;background:#f6faf7;font-weight:500}
 .project-list td[colspan]{grid-column:1/-1}
}
@media(max-width:480px){.project-list .project-parties{grid-column:1/-1}.project-list tbody tr{gap:14px;padding:16px}.project-list .project-party+.project-party{margin-top:8px}.project-list .project-money{font-size:12px}.project-list .project-settlement>div{display:block}.project-settlement>div>span{display:block;margin-bottom:1px}}
.cash-journal-filters{padding:0;align-items:end}.cash-entry .button{margin-top:10px}.cash-entry small{display:block;line-height:1.8;overflow-wrap:anywhere}.cash-entry strong,.cash-entry p{overflow-wrap:anywhere}.cash-entry{display:block}.cash-journal-filters .button{align-self:end}
.attachments-section .attachment-title{flex-wrap:wrap;gap:12px}.evidence-category,.pending-category{display:flex;align-items:center;gap:8px;font-size:12px;min-width:0}.evidence-category select,.pending-category select{border:1px solid var(--line);border-radius:6px;padding:8px;min-width:0;max-width:100%;background:white}.pending-file{flex-wrap:wrap;gap:10px}.evidence-tag{display:block;font-size:12px;color:#316653;margin-top:4px}.receipt-status{margin:14px 0;padding:12px;background:#f5f8f6;border:1px solid var(--line);border-radius:7px;font-size:13px}.receipt-status p{margin:6px 0 0}@media(max-width:620px){.evidence-category,.pending-category{width:100%}.evidence-category select,.pending-category select{flex:1;font-size:16px}}
.incoming-document-section{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;line-height:1.8}.incoming-document-section p{overflow-wrap:anywhere}.incoming-doc-option{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.incoming-doc-option input{min-height:20px;width:18px;flex-shrink:0}.incoming-doc-option small{display:block;color:#617569;font-size:12px;line-height:1.8}.incoming-doc-option span{min-width:0;overflow-wrap:anywhere}
.project-evidence-summary{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:8px}.project-evidence-summary h4{margin-top:0}.project-evidence-summary .workflow-row{display:block}#tax-registration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.attachment-actions{flex-wrap:wrap}.attachment-actions .evidence-tag{max-width:210px;overflow-wrap:anywhere}@media(max-width:620px){#tax-registration-fields{grid-template-columns:minmax(0,1fr)}.attachment-actions{justify-content:flex-start}}
.project-workflow-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.project-workflow-progress>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#f5f8f6}.project-workflow-progress small{display:block;color:#62786b;margin-bottom:7px}.project-workflow-progress strong{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere}@media(max-width:620px){.project-workflow-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}

.list-pagination{flex-wrap:wrap}.list-size-form,.list-size-form label{display:flex;align-items:center;gap:8px}.list-size-form{margin:0 10px 0 0;white-space:nowrap}.list-size-form input{width:78px;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}.list-size-form input:focus{outline:2px solid var(--green);outline-offset:2px}.list-size-form .button{padding:7px 10px}@media(max-width:620px){.list-size-form{flex-basis:100%;margin:0}.list-size-form input{font-size:16px;min-height:42px}.table-bottom{align-items:flex-start}.list-pagination{justify-content:flex-start}}

.sequence-cell{width:56px;min-width:56px;font-variant-numeric:tabular-nums;color:#63756b}.project-list th:nth-child(1){width:56px}.project-list th:nth-child(2){width:24%;text-align:left}.project-list th:nth-child(3),.project-list th:nth-child(4){width:17%;text-align:left}.project-list th:nth-child(5){width:14%;text-align:right}.project-list th:nth-child(6){width:18%;text-align:right}.project-list th:nth-child(7){width:8%}

.attachment-preview-modal{width:min(1160px,96vw)!important;max-width:1160px!important}.attachment-preview-modal .file-preview{padding:12px;overflow:auto;max-height:72vh;min-height:240px;background:#edf0f2}.pdf-preview-status{position:sticky;top:-12px;z-index:1;margin:0;padding:10px 12px;background:#fff;border-bottom:1px solid #dfe6e1}.pdf-preview-pages{width:100%;min-width:0}.pdf-preview-page{background:white;margin:14px auto;max-width:1024px;box-shadow:0 1px 6px #0002;text-align:center}.pdf-preview-page-label{padding:8px;color:#63756b;font-size:12px}.pdf-preview-page canvas{display:block;margin:auto;max-width:100%;height:auto}.attachment-preview-modal .file-preview-image{max-width:100%;height:auto}.attachment-preview-modal .modal-footer{position:sticky;bottom:0;background:#fff}

.pdf-preview-page canvas{height:auto!important}
.project-list th:nth-child(2){width:21%}.project-list th:nth-child(3),.project-list th:nth-child(4){width:16%}.project-list th:nth-child(5){width:15%}.project-list th:nth-child(6){width:17%}.project-list th:nth-child(7){width:9%}.project-list .project-row-actions .row-action{white-space:nowrap}
