.wf-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.wf-project{position:relative;padding:20px;border:1px solid var(--color-border);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 24px #376b8a0b}.wf-project h3{font-size:18px;line-height:1.5;margin:0 80px 6px 0;overflow-wrap:anywhere}.wf-alert{position:absolute;right:12px;top:12px;color:#c23543;background:#fff0f1;border:1px solid #f0c5c9;border-radius:8px;padding:3px 7px;font-size:12px}.wf-balances{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.wf-balances div{border-radius:11px;padding:10px;background:#eff6fb}.wf-balances span{display:block;font-size:13px;color:var(--color-text-muted)}.wf-balances strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;color:#215c80}.wf-balances .wf-remaining strong{color:#237754}.wf-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.wf-actions .btn{width:auto;font-size:14px;white-space:normal}.wf-muted{font-size:14px;color:var(--color-text-muted);overflow-wrap:anywhere}.wf-request{padding:16px;border:1px solid var(--color-border);border-radius:14px;margin-top:12px;background:#fff}.wf-request h4{font-size:17px;margin:0 0 8px}.wf-state{display:inline-flex;padding:4px 9px;border-radius:9px;background:#eef4fc;color:#2869a6;font-size:14px}.wf-state.completed{background:#e6f6ed;color:#24764f}.wf-state.finance_queue{background:#fff0e7;color:#a85120}.wf-state.rejected,.wf-state.returned{background:#fff0f1;color:#ae3744}.wf-notice{padding:12px 15px;background:#eff8f3;border:1px solid #b9ddc8;border-radius:12px;margin-bottom:10px;font-size:15px}.wf-notice button{margin-left:10px}.wf-modal{border:1px solid #d8e5ef;border-radius:22px;max-width:1000px;width:calc(100% - 36px);max-height:90vh;padding:24px;box-sizing:border-box;background:#fafcfe;color:var(--color-text);overflow:auto;box-shadow:0 20px 80px #1b3d6355}.wf-modal::backdrop{background:#18304966;backdrop-filter:blur(5px)}.wf-modal h2{font-size:23px;margin:0 0 18px}.wf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wf-grid .field{margin:0}.wf-grid .field input,.wf-grid .field select,.wf-grid .field textarea{width:100%;box-sizing:border-box;font-size:17px;min-height:44px}.wf-wide{grid-column:1/-1}.wf-item{padding:12px;border:1px solid #dbe6ee;border-radius:12px;margin:10px 0;background:#fff}.wf-item-grid{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(70px,1fr));gap:9px}.wf-item-grid input{width:100%;box-sizing:border-box;min-width:0}.wf-item-grid label{font-size:14px}.wf-total{font-size:22px;color:#19629a;text-align:right;margin:12px 0}.wf-files{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.wf-files a{padding:6px 9px;border:1px solid #d7e6ef;border-radius:8px;font-size:14px;overflow-wrap:anywhere}.wf-error{display:none;margin-bottom:12px;padding:12px;border:1px solid #f1bec5;border-radius:12px;background:#fff0f1;color:#a63746}.wf-tools{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.wf-tools input{max-width:340px}.wf-document-view{margin-top:20px}.wf-modal .btn{width:auto;min-height:40px;padding:8px 14px;line-height:1.5;font-size:16px;border-radius:11px}.wf-modal textarea{min-height:90px;font-family:inherit}.wf-modal [readonly]{background:#edf3f8;color:#526b7f}.wf-steps{font-size:15px;padding:13px;background:#edf6ff;border-radius:12px;margin-bottom:16px;line-height:1.7}.wf-detail-table{width:100%;font-size:15px}.wf-detail-table th,.wf-detail-table td{text-align:left;padding:8px}.wf-page{max-width:1150px;margin:auto}@media(max-width:620px){.wf-projects,.wf-grid{grid-template-columns:1fr}.wf-wide{grid-column:auto}.wf-item-grid{grid-template-columns:1fr 1fr}.wf-item-grid label:first-child{grid-column:1/-1}.wf-modal{padding:17px}.wf-project h3{font-size:18px}.wf-projects{min-width:0}.wf-balances strong{font-size:18px}}

.wf-funding{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 22px}.wf-funding .wf-project h3{margin-right:0;font-size:20px}.wf-funding-row{display:flex;justify-content:space-between;gap:8px;margin:8px 0;font-size:17px}.wf-funding-row strong{font-variant-numeric:tabular-nums}.wf-green strong{color:#237754}@media(max-width:900px){.wf-funding{grid-template-columns:1fr}.wf-funding-row{font-size:18px}}

/* Project work is presented as full-width rows with actions directly visible. */
.wf-projects{grid-template-columns:minmax(0,1fr);gap:18px}.wf-projects>.wf-project{display:grid;grid-template-columns:minmax(220px,1fr) minmax(420px,2fr);gap:16px 24px;padding:22px;min-width:0}.wf-project-info{min-width:0}.wf-project-info h3{margin:0 0 6px;font-size:21px}.wf-project-info .wf-alert{position:static;display:inline-flex;margin-bottom:9px}.wf-alert{background:#ffead0;border-color:#f4ae58;color:#a74805;font-weight:700;padding:5px 10px}.wf-project-description{font-size:15px;color:#567187;white-space:pre-wrap;margin:8px 0}.wf-project-summary{min-width:0}.wf-project-summary .wf-balances{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:10px}.wf-project-summary .wf-balances div{padding:14px 12px;min-width:0}.wf-project-summary .wf-balances strong{font-size:21px;overflow-wrap:anywhere}.wf-project-controls{grid-column:1/-1;display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid #e3ecf3;padding-top:12px}.wf-project-controls .pb-field{flex:1 1 360px;margin:0}.wf-project-controls .wf-actions{margin:0;flex:1 1 320px;justify-content:flex-end}.wf-allocation{display:flex;gap:8px;align-items:end;padding:12px;border:1px solid #d4e3ee;background:#f6faff;border-radius:12px;flex:1 1 300px}.wf-allocation label{display:grid;gap:5px;font-size:13px;flex:1;min-width:0}.wf-allocation input{width:100%;min-width:0}.wf-allocation .btn{width:auto;white-space:nowrap}.wf-projects .wf-document-view{grid-column:1/-1;margin:0;border-top:1px solid #e3ecf3;padding-top:12px}.wf-section-label{margin:0;font-size:16px;color:#46667e}.wf-project-empty{grid-column:1/-1}.wf-notice--alert{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff0dd;border-color:#f0aa54;color:#954209;border-left:5px solid #ed8b20}.wf-notice--alert .btn{width:auto;flex-shrink:0;background:#ed8b20;color:#fff;border-color:#df7b13;box-shadow:0 3px 8px #bf70151a}.wf-project--attention{border-left:5px solid #ed8b20}.wf-request--attention{border-color:#eeb36d;background:#fffbf5;border-left:4px solid #ed8b20}.wf-line-items{margin:10px 0}.wf-line-items summary{cursor:pointer;color:#326483;font-size:14px;padding:7px 0}.wf-state.finance_queue{background:#ffe0b8;color:#984402;border:1px solid #eeb36d;font-weight:600}.wf-owner-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;max-height:220px;overflow:auto;padding:12px;border:1px solid #dce6ee;border-radius:10px;background:#fff}.wf-owner-choices label{display:flex;align-items:center;gap:8px;font-size:15px}.wf-owner-choices input{width:auto!important;min-height:0!important}.wf-balances .wf-negative strong{color:#b33a47}@media(max-width:1050px){.wf-projects>.wf-project{grid-template-columns:1fr}.wf-project-summary .wf-balances{grid-template-columns:repeat(4,minmax(0,1fr))}.wf-project-controls .wf-actions{justify-content:flex-start}}@media(max-width:650px){.wf-projects>.wf-project{padding:17px;gap:12px}.wf-project-summary .wf-balances{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-notice--alert{align-items:flex-start;flex-direction:column;gap:9px}.wf-notice--alert .btn{margin-left:0}.wf-project-controls{display:block}.wf-project-controls .wf-actions,.wf-project-controls .wf-allocation{margin-top:12px}.wf-allocation{flex-wrap:wrap}.wf-project-summary .wf-balances strong{font-size:19px}}
