.swfrpc-dashboard{--navy:#0b2f4f;--blue:#1f6f9f;--teal:#16817a;--green:#5a8f3a;--gold:#c99a2e;--light:#f5f8fb;--ink:#1f2937;--muted:#667085;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;border:1px solid #d9e2ec;border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(11,47,79,.10)}
.swfrpc-dashboard *{box-sizing:border-box}.swfrpc-hero{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;padding:28px 30px}.swfrpc-hero h2{margin:0 0 8px;font-size:clamp(26px,3vw,42px);line-height:1.1;color:#fff}.swfrpc-hero p{max-width:900px;margin:0;color:#eaf4fb;font-size:16px}.swfrpc-updated{display:inline-block;margin-top:14px;padding:6px 10px;border:1px solid rgba(255,255,255,.35);border-radius:999px;font-size:13px;color:#fff}.swfrpc-body{padding:24px;background:var(--light)}.swfrpc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.swfrpc-card{background:#fff;border:1px solid #dde7f0;border-radius:14px;padding:17px;box-shadow:0 2px 10px rgba(16,24,40,.04)}.swfrpc-kpi-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.swfrpc-kpi-value{font-size:clamp(24px,3vw,36px);font-weight:800;color:var(--navy);margin-top:7px}.swfrpc-kpi-note{font-size:12px;color:var(--muted);margin-top:4px}.swfrpc-controls{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin:16px 0}.swfrpc-controls input,.swfrpc-controls select{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:11px 12px;background:#fff;font-size:14px}.swfrpc-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:16px}.swfrpc-card h3{margin:0 0 12px;color:var(--navy);font-size:20px}.swfrpc-bars{display:grid;gap:10px}.swfrpc-bar-row{display:grid;grid-template-columns:150px 1fr auto;gap:10px;align-items:center;font-size:13px}.swfrpc-bar-track{height:14px;background:#e8eef5;border-radius:999px;overflow:hidden}.swfrpc-bar-fill{height:100%;background:linear-gradient(90deg,var(--teal),var(--blue));border-radius:999px}.swfrpc-table-wrap{overflow:auto;background:#fff;border:1px solid #dde7f0;border-radius:14px}.swfrpc-table{width:100%;border-collapse:collapse;min-width:980px}.swfrpc-table th{position:sticky;top:0;background:var(--navy);color:#fff;text-align:left;padding:12px;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.swfrpc-table td{border-top:1px solid #edf2f7;padding:11px 12px;vertical-align:top;font-size:13px}.swfrpc-table tr:hover td{background:#f9fbfd}.swfrpc-pill{display:inline-block;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#e8eef5;color:var(--navy);white-space:nowrap}.swfrpc-pill[data-status*="Pending"]{background:#fff4d6;color:#8a6100}.swfrpc-pill[data-status*="Progress"]{background:#dff5f2;color:#0b665f}.swfrpc-pill[data-status*="Completed"]{background:#e6f4df;color:#366b1d}.swfrpc-pill[data-status*="Not Funded"],.swfrpc-pill[data-status*="Withdrawn"]{background:#f2e8e8;color:#8b2d2d}.swfrpc-money{text-align:right;white-space:nowrap}.swfrpc-project{font-weight:700;color:#0b2f4f}.swfrpc-footnote{font-size:12px;color:var(--muted);margin-top:12px}.swfrpc-empty{padding:20px;text-align:center;color:var(--muted)}
.swfrpc-project-form{--navy:#0b2f4f;--blue:#1f6f9f;--light:#f5f8fb;--ink:#1f2937;--muted:#667085;font-family:Arial,Helvetica,sans-serif;background:#fff;border:1px solid #d9e2ec;border-radius:18px;padding:24px;box-shadow:0 12px 30px rgba(11,47,79,.08);color:var(--ink)}.swfrpc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.swfrpc-field{display:block}.swfrpc-field span{display:block;font-weight:700;margin:0 0 6px;color:var(--navy)}.swfrpc-field-wide{grid-column:1/-1}.swfrpc-project-form input,.swfrpc-project-form select,.swfrpc-project-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.swfrpc-button{margin-top:16px;border:0;border-radius:10px;padding:12px 18px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}.swfrpc-button:hover{filter:brightness(.95)}.swfrpc-notice{border-radius:12px;padding:12px 14px;margin:0 0 16px;font-family:Arial,Helvetica,sans-serif}.swfrpc-success{background:#e9f7ef;border:1px solid #bfe5cc;color:#1f5c35}.swfrpc-error{background:#fff1f0;border:1px solid #ffc9c4;color:#8a1f16}
@media(max-width:900px){.swfrpc-kpis,.swfrpc-grid,.swfrpc-controls,.swfrpc-form-grid{grid-template-columns:1fr}.swfrpc-body{padding:16px}.swfrpc-hero{padding:22px}.swfrpc-bar-row{grid-template-columns:1fr}.swfrpc-money{text-align:left}.swfrpc-project-form{padding:18px}}

/* v1.3: force readable dropdown text in Avada/WordPress themes that style selects white. */
.swfrpc-dashboard select,.swfrpc-dashboard select option,.swfrpc-dashboard input,.swfrpc-project-form select,.swfrpc-project-form select option,.swfrpc-project-form input,.swfrpc-project-form textarea{color:#1f2937 !important;background-color:#ffffff !important;-webkit-text-fill-color:#1f2937 !important;}
.swfrpc-dashboard select option:checked,.swfrpc-project-form select option:checked{color:#1f2937 !important;background:#eef5fb !important;}
.swfrpc-dashboard select:disabled,.swfrpc-project-form select:disabled{color:#667085 !important;background-color:#f8fafc !important;}

/* Force visible dropdown text in Avada and ensure native options are readable. */
.swfrpc-project-form select,
.swfrpc-project-form select option,
.swfrpc-dashboard select,
.swfrpc-dashboard select option{color:#1f2937 !important;background-color:#fff !important;-webkit-text-fill-color:#1f2937 !important;}
.swfrpc-project-form select[name="status"],
.swfrpc-project-form select[data-swfrpc-field="status"]{color:#1f2937 !important;background:#fff !important;}

/* v1.5: status-category filter and admin edit form helpers. */
.swfrpc-controls{grid-template-columns:2fr 1fr 1fr}
.swfrpc-admin-field{max-width:520px;width:100%}
#swfrpc_project_details textarea.swfrpc-admin-field{min-height:110px}
#swfrpc_project_details select,#swfrpc_project_details select option,#swfrpc_project_details input,#swfrpc_project_details textarea{color:#1f2937 !important;background-color:#fff !important;-webkit-text-fill-color:#1f2937 !important;}
.swfrpc-field small{display:block;margin-top:5px;color:#667085;line-height:1.35}
@media(max-width:900px){.swfrpc-controls{grid-template-columns:1fr}}

/* v1.6: public dashboard now displays Status Category as Status; make agency summary rows more compact. */
.swfrpc-program{font-size:12px;color:#667085;margin-top:3px;line-height:1.3}
.swfrpc-agency-card .swfrpc-bars{gap:6px}
.swfrpc-agency-card .swfrpc-bar-row{grid-template-columns:135px 1fr auto;gap:7px;font-size:12px;line-height:1.15}
.swfrpc-agency-card .swfrpc-bar-track{height:10px}
.swfrpc-agency-card .swfrpc-card h3{margin-bottom:8px}
@media(max-width:900px){.swfrpc-agency-card .swfrpc-bar-row{grid-template-columns:1fr;gap:4px}}
.swfrpc-controls{grid-template-columns:2fr 1fr 1fr}
.swfrpc-agency-card h3{margin-bottom:8px}
@media(max-width:900px){.swfrpc-controls{grid-template-columns:1fr}}

/* v1.8: backend quick-edit table and editable autocomplete fields. */
.swfrpc-admin-quick-edit-wrap{--navy:#0b2f4f;--ink:#1f2937;--muted:#667085}
.swfrpc-quick-edit-scroll{max-width:100%;overflow:auto;border:1px solid #cbd5e1;background:#fff;border-radius:8px;margin-top:14px}
.swfrpc-quick-edit-table{min-width:1900px}
.swfrpc-quick-edit-table th{white-space:nowrap;font-size:12px}
.swfrpc-quick-edit-table td{vertical-align:top}
.swfrpc-quick-edit-table input,.swfrpc-quick-edit-table select,.swfrpc-quick-edit-table textarea{width:100%;min-width:130px;box-sizing:border-box;color:#1f2937 !important;background:#fff !important;-webkit-text-fill-color:#1f2937 !important;border:1px solid #cbd5e1;border-radius:4px;padding:6px 8px;font-size:12px;line-height:1.3}
.swfrpc-quick-edit-table textarea{min-width:220px;resize:vertical}
.swfrpc-quick-edit-table .swfrpc-qe-project{position:sticky;left:0;background:#fff;z-index:1;min-width:280px;box-shadow:6px 0 8px rgba(15,23,42,.04)}
.swfrpc-quick-edit-table .swfrpc-qe-project input{font-weight:700;color:#0b2f4f !important}
.swfrpc-quick-edit-table .swfrpc-qe-project a{display:inline-block;margin-top:4px;font-size:11px;text-decoration:none}
#swfrpc_project_details input[list],.swfrpc-project-form input[list]{color:#1f2937 !important;background:#fff !important;-webkit-text-fill-color:#1f2937 !important}


/* v1.11: slightly taller dashboard gradient header and matching project-form header. */
.swfrpc-dashboard .swfrpc-hero{padding-top:31px;padding-bottom:31px;}
.swfrpc-project-form{padding:0 !important;overflow:hidden;}
.swfrpc-form-hero{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;padding:31px 30px;}
.swfrpc-form-hero h2{margin:0 0 8px;font-size:clamp(26px,3vw,42px);line-height:1.1;color:#fff;}
.swfrpc-form-hero p{max-width:900px;margin:0;color:#eaf4fb;font-size:16px;line-height:1.5;}
.swfrpc-form-body{padding:24px;background:var(--light);}
@media(max-width:900px){.swfrpc-dashboard .swfrpc-hero,.swfrpc-form-hero{padding:24px 22px}.swfrpc-form-body{padding:18px}}

/* v1.15: population and dues ROI dashboard sections. */
.swfrpc-member-grid{align-items:start}
.swfrpc-member-table-wrap{overflow:auto}
.swfrpc-mini-table{width:100%;border-collapse:collapse;font-size:13px;min-width:420px}
.swfrpc-mini-table th{background:#f0f5fa;color:var(--navy);text-align:left;padding:9px 10px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #dbe6ef}
.swfrpc-mini-table td{padding:8px 10px;border-bottom:1px solid #edf2f7;vertical-align:top}
.swfrpc-mini-table td:nth-child(n+2),.swfrpc-mini-table th:nth-child(n+2){text-align:right;white-space:nowrap}
.swfrpc-total-row td{font-weight:800;color:var(--navy);background:#f8fbfd}
.swfrpc-mini-note{font-size:12px;color:var(--muted);line-height:1.35;margin-top:10px}
.swfrpc-member-admin-table input[type="text"],.swfrpc-member-admin-table input[type="number"]{width:100%;max-width:320px;color:#1f2937 !important;background:#fff !important;border:1px solid #cbd5e1;border-radius:4px;padding:6px 8px}
.swfrpc-member-admin-table th{white-space:nowrap}
@media(max-width:900px){.swfrpc-mini-table{min-width:560px}}

/* v1.16: member ROI, population settings, and county-only geography multi-select. */
.swfrpc-hide-assessment [data-assessment-col]{display:none}
.swfrpc-roi-summary{background:#f0f7fb;border:1px solid #d7e8f3;border-radius:12px;padding:12px 14px;margin:0 0 12px;color:var(--navy);font-size:14px;line-height:1.45}
.swfrpc-project-form select[multiple],#swfrpc_project_details select[multiple],.swfrpc-quick-edit-table select[multiple]{height:auto;min-height:128px;color:#1f2937 !important;background:#fff !important;line-height:1.35}
.swfrpc-project-form select[multiple] option,#swfrpc_project_details select[multiple] option,.swfrpc-quick-edit-table select[multiple] option{color:#1f2937 !important;background:#fff !important;padding:4px 6px}
.swfrpc-field small{display:block;margin-top:5px;color:#667085;line-height:1.35}


/* v1.17/v1.18: optional visual population display and public view toggle. */
.swfrpc-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
.swfrpc-card-head h3{margin:0}
.swfrpc-view-toggle{display:inline-flex;border:1px solid #cbd5e1;border-radius:999px;overflow:hidden;background:#fff;flex-shrink:0}
.swfrpc-view-toggle button{border:0;background:#fff;color:#334155;padding:5px 10px;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
.swfrpc-view-toggle button+button{border-left:1px solid #e2e8f0}
.swfrpc-view-toggle button.is-active{background:var(--navy);color:#fff}
.swfrpc-population-visual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.swfrpc-pop-row{border:1px solid #edf2f7;border-radius:10px;padding:6px 8px;background:#fbfdff}
.swfrpc-pop-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px;color:var(--navy);line-height:1.2}
.swfrpc-pop-head span{font-weight:800;white-space:nowrap;color:#1f2937}
.swfrpc-pop-track{height:7px;background:#e8eef5;border-radius:999px;overflow:hidden;margin-top:5px}
.swfrpc-pop-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--teal));border-radius:999px}
.swfrpc-pop-assessment{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.2}
.swfrpc-pop-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dde7f0;margin-top:2px;padding-top:7px;color:var(--navy);font-size:12px;grid-column:1/-1}
.swfrpc-pop-total span{font-weight:800;text-align:right}
#swfrpc_population_display{min-width:220px;color:#1f2937 !important;background:#fff !important}
@media(max-width:700px){.swfrpc-population-visual{grid-template-columns:1fr}.swfrpc-card-head{align-items:flex-start;flex-direction:column}}

/* v1.20: flush hero header and editable metric category buttons. */
.swfrpc-dashboard.swfrpc-flush-top{border-top-left-radius:0;border-top-right-radius:0;border-top:0;margin-top:0;}
.swfrpc-dashboard.swfrpc-flush-top .swfrpc-hero{border-top-left-radius:0;border-top-right-radius:0;}
.swfrpc-metric-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px;}
.swfrpc-metric-tabs button{border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800;cursor:pointer;line-height:1.1;}
.swfrpc-metric-tabs button:hover,.swfrpc-metric-tabs button.is-active{background:#fff;color:var(--navy);border-color:#fff;}
.swfrpc-metric-panel{max-width:940px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:14px;padding:13px 15px;margin:0 0 12px;}
.swfrpc-metric-panel-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#d9eef9;font-weight:800;margin-bottom:4px;}
.swfrpc-metric-panel-value{font-size:clamp(22px,3vw,34px);line-height:1.05;font-weight:900;color:#fff;margin:0 0 3px;}
.swfrpc-metric-panel-metric-label{font-size:13px;font-weight:800;color:#eaf4fb;margin-bottom:4px;}
.swfrpc-metric-panel p{margin:0;color:#eaf4fb;line-height:1.45;font-size:14px;}
.swfrpc-metric-admin-table input,.swfrpc-metric-admin-table textarea{width:100%;max-width:520px;color:#1f2937 !important;background:#fff !important;border:1px solid #cbd5e1;border-radius:4px;padding:6px 8px;box-sizing:border-box;}
.swfrpc-metric-admin-table textarea{min-width:320px;resize:vertical;}
.swfrpc-metric-admin-table th{white-space:nowrap;}
@media(max-width:700px){.swfrpc-metric-tabs{gap:6px}.swfrpc-metric-tabs button{font-size:12px;padding:7px 10px}.swfrpc-metric-panel{padding:11px 12px}}

/* v1.21: category buttons filter the full dashboard view. */
.swfrpc-view-heading{margin:0 0 12px;background:#fff;border:1px solid #dde7f0;border-radius:12px;padding:10px 13px;color:var(--muted);font-size:13px;line-height:1.4;}
.swfrpc-view-heading strong{color:var(--navy);}

/* v1.22: category-specific metric pages and full dashboard metric views. */
.swfrpc-category-metrics{margin:0 0 16px}
.swfrpc-category-metrics-card h3{margin:0 0 12px;color:var(--navy)}
.swfrpc-category-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.swfrpc-category-metric-item{border:1px solid #dde7f0;border-radius:12px;background:#fbfdff;padding:13px;min-height:120px}
.swfrpc-category-metric-name{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800;line-height:1.3;margin-bottom:6px}
.swfrpc-category-metric-value{font-size:clamp(22px,2.5vw,32px);font-weight:900;line-height:1.05;color:var(--navy);margin-bottom:5px}
.swfrpc-category-metric-years{display:inline-block;font-size:12px;color:#334155;background:#e8eef5;border-radius:999px;padding:3px 8px;margin:0 0 7px}.swfrpc-category-metric-amount{font-size:13px;color:#334155;margin:6px 0}
.swfrpc-category-county-values{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.swfrpc-category-county-values span{background:#eef5fb;border:1px solid #d7e8f3;border-radius:999px;padding:4px 7px;font-size:11px;color:#334155;line-height:1.1}
.swfrpc-category-metric-notes{font-size:12px;color:var(--muted);line-height:1.35;margin-top:8px}
.swfrpc-admin-category-metrics-wrap .swfrpc-category-metrics-scroll{max-width:100%;overflow:auto;border:1px solid #cbd5e1;background:#fff;border-radius:8px;margin-top:14px}
.swfrpc-category-metrics-admin-table{min-width:2050px}
.swfrpc-category-metrics-admin-table th{white-space:nowrap;font-size:12px}
.swfrpc-category-metrics-admin-table input,.swfrpc-category-metrics-admin-table textarea{width:100%;min-width:110px;color:#1f2937 !important;background:#fff !important;border:1px solid #cbd5e1;border-radius:4px;padding:6px 8px;box-sizing:border-box;font-size:12px;line-height:1.3}
.swfrpc-category-metrics-admin-table textarea{min-width:260px;resize:vertical}
.swfrpc-category-metrics-admin-table td:nth-child(2) input{min-width:260px;font-weight:700;color:#0b2f4f !important}
@media(max-width:1000px){.swfrpc-category-metric-grid{grid-template-columns:1fr}}

/* v1.25: compact homepage/page metric gallery shortcode. */
.swfrpc-metric-gallery{--navy:#0b2f4f;--blue:#1f6f9f;--teal:#16817a;--light:#f5f8fb;--ink:#1f2937;--muted:#667085;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;border:1px solid #d9e2ec;border-radius:16px;box-shadow:0 10px 24px rgba(11,47,79,.10);overflow:hidden;max-height:var(--swfrpc-gallery-max-height,none)}
.swfrpc-gallery-head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;padding:18px 20px}
.swfrpc-gallery-head h3{margin:0 0 4px;color:#fff;font-size:clamp(20px,2.2vw,30px);line-height:1.1}
.swfrpc-gallery-head p{margin:0;color:#eaf4fb;font-size:13px;line-height:1.35}
.swfrpc-gallery-actions{display:flex;gap:8px;flex-shrink:0}
.swfrpc-gallery-actions button{width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer;font-weight:800}
.swfrpc-gallery-actions button:hover{background:#fff;color:var(--navy)}
.swfrpc-gallery-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:16px;padding:16px;background:var(--light);-webkit-overflow-scrolling:touch}
.swfrpc-gallery-track::-webkit-scrollbar{height:8px}.swfrpc-gallery-track::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.swfrpc-gallery-card{scroll-snap-align:start;flex:0 0 min(310px,82vw);background:#fff;border:1px solid #dde7f0;border-radius:14px;padding:15px;box-shadow:0 2px 10px rgba(16,24,40,.04);min-height:210px;display:flex;flex-direction:column}
.swfrpc-gallery-category{align-self:flex-start;background:#e8eef5;color:var(--navy);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;border-radius:999px;padding:5px 8px;margin-bottom:10px}
.swfrpc-gallery-card h4{margin:0 0 8px;color:var(--navy);font-size:16px;line-height:1.25}
.swfrpc-gallery-years{display:inline-block;align-self:flex-start;background:#edf7f6;color:#0b665f;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;margin-bottom:9px}
.swfrpc-gallery-value{font-size:clamp(26px,4vw,38px);font-weight:900;color:var(--navy);line-height:1.05;margin:0 0 5px}
.swfrpc-gallery-amount{font-size:14px;color:#334155;font-weight:800;margin-bottom:8px}
.swfrpc-gallery-counties{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 8px}
.swfrpc-gallery-counties span{background:#eef5fb;border:1px solid #d7e8f3;border-radius:999px;padding:4px 7px;font-size:11px;color:#334155;line-height:1.1}
.swfrpc-gallery-card p{margin:auto 0 0;color:var(--muted);font-size:12px;line-height:1.35}
.swfrpc-gallery-empty{color:var(--muted);font-size:14px;align-self:center;margin:auto;text-align:center}
.swfrpc-gallery-dots{display:flex;justify-content:center;gap:6px;padding:0 16px 14px;background:var(--light)}
.swfrpc-gallery-dots button{width:8px;height:8px;border-radius:999px;border:0;background:#cbd5e1;padding:0;cursor:pointer}
.swfrpc-gallery-dots button.is-active{background:var(--navy);width:20px}
@media(max-width:700px){.swfrpc-gallery-head{align-items:flex-start}.swfrpc-gallery-actions button{width:32px;height:32px;font-size:22px}.swfrpc-gallery-track{padding:14px}.swfrpc-gallery-card{flex-basis:86vw}}
