/* Workflow module: no external font, script or CDN dependency. */
.wf-toolbar,.wf-row-end,.wf-totals{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.wf-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.wf-toolbar .wf-tabs{margin:0}
.wf-count{font-size:11px;min-width:23px;background:#c5ebe1;color:#174b43;border-radius:20px;text-align:center;margin-inline-start:auto;padding:1px 7px}
.wf-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.wf-stats .stat strong{font-size:32px}
.wf-inline-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.wf-inline-form .field{flex:1;min-width:200px;margin:0}
.wf-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.wf-filter-grid .field{margin:0}
.wf-pill{display:inline-flex;align-items:center;max-width:210px;padding:6px 12px;border-radius:20px;background:#eaf0f1;color:#3e565c;font-size:12px;line-height:1.8;white-space:normal}
.wf-pill.state-review{background:#e2f1fb;color:#215b7a}.wf-pill.state-waiting,.wf-pill.state-partial,.wf-pill.state-delivery_issue{background:#fff0d3;color:#845619}.wf-pill.state-done{background:#ddf2e9;color:#155442}.wf-pill.state-rejected,.wf-pill.state-cancelled{background:#f9e5e4;color:#8b3131}
.wf-pill.state-needs_info{background:#eee9fb;color:#654189}.wf-pill.state-closed_partial{background:#f2ebe1;color:#665742}
.wf-request-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-inline-start:5px solid #158077}.wf-request-header h1{font-size:25px;margin:8px 0 12px;line-height:1.8}.wf-request-header .mono{font-size:13px;letter-spacing:.04em}
.wf-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;list-style:none;padding:0;margin:20px 0 0}.wf-steps li{padding:16px;border:1px solid #dae5e0;background:#f8faf7;border-radius:12px;display:flex;align-items:flex-start;gap:6px;flex-direction:column;position:relative;line-height:1.9}.wf-steps li b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e0e9e4;font-size:12px}.wf-steps li strong{font-size:12px}.wf-steps li span,.wf-steps li small{font-size:11px;color:#566b66}.wf-steps li.current{border-color:#168c80;background:#edf9f3;box-shadow:inset 0 3px 0 #168c80}.wf-steps li.current b{background:#17786c;color:#fff}
.wf-repeat-row{padding:20px;border:1px solid #d7e3dd;border-radius:12px;background:#f9fcf9;margin:14px 0}.wf-repeat-row .form-grid{gap:14px}.wf-repeat-row h3{font-size:15px}.wf-row-end{margin:12px 0 0}.wf-item-editor textarea{min-height:88px}.wf-estimate{display:flex;align-items:center;justify-content:space-between;background:#164e49;color:#fff;padding:20px 24px;border-radius:12px;margin:24px 0}.wf-estimate strong{font-size:26px}
.wf-totals{justify-content:flex-end;margin-top:20px;margin-bottom:0;padding-top:16px;border-top:1px solid #e3eae6}.wf-totals span{display:flex;flex-direction:column;gap:7px;min-width:210px}.wf-totals strong{font-size:20px}.wf-action-card{border:2px solid #bfddd0;background:#fcfffd}.wf-action-card .form{margin-top:15px}
.wf-history-card{border:1px solid #dde5df;border-inline-start:3px solid #8baea1;padding:17px 20px;margin:12px 0;border-radius:10px;break-inside:avoid}.wf-history-card p{margin:8px 0;line-height:2}.wf-history-card .section-head{margin-bottom:8px}.wf-history-card.internal{background:#f8f5ed;border-color:#e6dbbf}.wf-history-card .muted{font-size:11px}.wf-json{white-space:pre-wrap;overflow-wrap:anywhere;text-align:start;direction:rtl;line-height:2;font-family:Tahoma,sans-serif;font-size:12px;background:#f1f5f3;padding:15px}
.wf-notice-row{display:flex;justify-content:space-between;gap:15px;padding:20px 15px;border-bottom:1px solid #e5ece8}.wf-notice-row p{margin:8px 0}.wf-notice-row.unread{background:#f0faf6;border-inline-start:3px solid #248d73}.wf-notice-row small{font-size:11px}.wf-notice-row .form{margin:0}
.wf-bulk-panel{border:1px dashed #a4b99e}details>summary{cursor:pointer;padding:10px 0;color:#15695f;font-weight:bold}td small{display:block;font-size:11px;color:#6f7f75;margin-top:5px}td .actions{flex-wrap:wrap}.card .form-grid{min-width:0}.card textarea{max-width:100%}.card .table-wrap{max-width:100%}
@media(max-width:900px){.wf-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-request-header{align-items:flex-start}.wf-request-header h1{font-size:21px}.wf-totals span{min-width:160px}}
@media(max-width:600px){.wf-stats{grid-template-columns:1fr}.wf-filter-grid{grid-template-columns:1fr}.wf-repeat-row{padding:15px 12px}.wf-steps li{padding:12px}.wf-toolbar,.wf-notice-row{align-items:stretch;flex-direction:column}.wf-request-header{flex-direction:column}.wf-row-end{gap:10px}.wf-estimate{padding:16px}.wf-estimate strong{font-size:22px}.wf-history-card{padding:14px}.wf-history-card .section-head{flex-wrap:wrap}.wf-totals{flex-direction:column;align-items:stretch}.wf-inline-form .field{min-width:0;flex-basis:100%}}
@media print{.no-print,.no-print *,form,.wf-toolbar,.sidebar,.topbar,.footer{display:none!important}.wf-steps{grid-template-columns:repeat(5,1fr)}.wf-pill{-webkit-print-color-adjust:exact;print-color-adjust:exact}.wf-history-card{break-inside:avoid}.wf-request-header{border-inline-start:0}.card{box-shadow:none!important}.table-wrap{overflow:visible!important}table{font-size:10px}.wf-json{font-size:10px}a{color:inherit}.main{padding:0!important;margin:0!important}.wf-steps li{padding:8px}.wf-request-header h1{font-size:20px}}


/* v1.2.3 compact responsive workflow forms */
.wf-form-card{padding:22px 24px}
.wf-form-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.wf-form-card .field{margin-bottom:0}
.wf-form-card .field>span{font-size:12px;margin-bottom:6px}
.wf-form-card input,.wf-form-card select{min-height:42px;padding-block:8px}
.wf-form-card textarea{min-height:72px;max-height:180px;resize:vertical}
.wf-form-card hr{margin:18px 0}
.wf-form-card h2{font-size:18px;margin:0 0 12px}
.wf-form-card .wf-repeat-row{padding:14px 16px;margin:10px 0}
.wf-form-card .wf-item-editor .form-grid{grid-template-columns:minmax(120px,.65fr) minmax(220px,2fr) minmax(110px,.7fr) minmax(100px,.55fr) minmax(130px,.8fr)}
.wf-form-card .wf-item-editor textarea{min-height:44px;height:44px}
.wf-form-card .wf-row-end{margin-top:8px}
.wf-form-card [data-add-row]{margin-top:8px}
.wf-form-card .wf-estimate{padding:14px 18px;margin:16px 0}
.wf-form-card .wf-estimate strong{font-size:21px}
.wf-form-card input[type="date"],.wf-action-card input[type="date"],.card input[type="date"]{direction:ltr;text-align:left;min-height:42px}
@media(max-width:1100px){.wf-form-card .wf-item-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .wf-form-card{padding:16px 14px}
  .wf-form-card .form-grid,.wf-form-card .wf-item-editor .form-grid{grid-template-columns:1fr}
  .wf-form-card .wf-repeat-row{padding:12px;margin:9px 0}
  .wf-form-card input,.wf-form-card select,.wf-form-card textarea{width:100%;font-size:16px}
  .wf-form-card textarea{min-height:64px}
  .wf-form-card .wf-item-editor textarea{height:64px}
  .wf-form-card .wf-row-end{align-items:center;flex-direction:row}
  .wf-form-card .wf-estimate{position:sticky;bottom:8px;z-index:3;box-shadow:0 6px 20px rgba(9,52,49,.14)}
}
@media(max-width:430px){
  .wf-form-card{border-radius:12px;padding:13px 10px}
  .wf-form-card .wf-repeat-row{border-radius:10px;padding:10px}
  .wf-form-card .section-head{gap:8px;align-items:flex-start}
  .wf-form-card .section-head h2{font-size:16px}
  .wf-form-card .btn,.wf-form-card .chip{min-height:40px}
}

/* v1.2.4 personnel-form density and mobile polish */
.wf-form-card{max-width:1180px;margin-inline:auto}.wf-form-card .form-grid{align-items:start}.wf-form-card .field textarea{min-height:64px}.wf-filter-grid{max-width:1180px}.wf-toolbar{max-width:1180px}.wf-repeat-row{box-shadow:0 2px 10px rgba(24,64,70,.035)}
@media(min-width:1180px){.wf-form-card .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wf-form-card .field-textarea{grid-column:span 2}.wf-form-card .wf-item-editor .form-grid{grid-template-columns:minmax(120px,.65fr) minmax(240px,2fr) minmax(100px,.65fr) minmax(100px,.55fr) minmax(125px,.8fr)}}
@media(max-width:760px){.wf-toolbar .actions,.wf-tabs{width:100%}.wf-toolbar .actions .btn{flex:1}.wf-form-card .form-actions{position:sticky;bottom:6px;background:rgba(255,255,255,.96);padding:8px;border-radius:10px;box-shadow:0 6px 20px rgba(22,60,70,.1);z-index:4}}


/* v1.4.0 - donor/public-relations sourcing and notification center */
.donor-sourcing-card{border-color:#d8c6f4;background:linear-gradient(180deg,#fff 0%,#fbf8ff 100%)}
.donor-sourcing-card .eyebrow{color:#6d45a8}.donor-sourcing-card>.section-head .badge{background:#efe6fb;color:#603b91}
.wf-notice-row.unread{border-inline-start:4px solid #7350b7;background:#fbf9ff}.wf-notice-row.unread strong{color:#56378a}
@media(max-width:720px){.donor-sourcing-card .details-grid{grid-template-columns:1fr}.wf-notice-row{align-items:flex-start}.wf-notice-row .actions{width:100%;justify-content:flex-start}}

.wf-count.is-hidden{display:none!important}

.fund-create{background:linear-gradient(135deg,#7c3aed,#2563eb)!important;color:#fff!important}.fund-finance-card{border-top:4px solid #7c3aed}.fund-finance-card .badge{background:#ede9fe;color:#5b21b6}
