#spw-cost-management{font-family:Arial,sans-serif;color:#222}.spw-cost-module .spw-module-header{margin-bottom:22px}.spw-cost-module .spw-module-title{color:#0F4C81}.spw-cost-module .spw-card{background:#fff;border:1px solid #dce3ea;border-radius:10px;margin:0 0 18px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.spw-cost-module .spw-card-header{padding:18px 20px;border-bottom:1px solid #e7edf2}.spw-cost-module .spw-card-title{margin:0 0 5px}.spw-cost-module .spw-card-description{margin:0;color:#667085}.spw-cost-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:20px}.spw-cost-choice{display:flex;align-items:center;gap:9px;padding:14px;border:1px solid #d7e0e8;border-radius:8px;cursor:pointer;background:#f9fbfc}.spw-cost-choice:has(input:checked){border-color:#0F4C81;background:#eef5fa}.spw-cost-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:20px}.spw-form-group{display:flex;flex-direction:column;gap:7px}.spw-form-group label{font-weight:600;font-size:13px}.spw-input{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cfd8e0;border-radius:6px;background:#fff}.spw-cost-table-wrap{overflow:auto;padding:20px}.spw-cost-table{width:100%;border-collapse:collapse;min-width:920px}.spw-cost-table th{background:#0F4C81;color:#fff;text-align:left;padding:10px;font-size:12px}.spw-cost-table td{border:1px solid #dfe5ea;padding:7px}.spw-cost-table input,.spw-cost-table select{width:100%;box-sizing:border-box;padding:8px;border:1px solid #cfd8e0;border-radius:5px}.spw-cost-line-amount{font-weight:700;white-space:nowrap}.spw-cost-remove{border:0;background:transparent;font-size:22px;cursor:pointer}.spw-cost-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 20px}.spw-btn{border:0;border-radius:6px;padding:10px 16px;font-weight:600;cursor:pointer}.spw-btn-primary{background:#0F4C81;color:#fff}.spw-btn-secondary{background:#eef2f5;color:#243447}.spw-cost-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:20px}.spw-cost-kpi{padding:15px;border:1px solid #dce3ea;border-radius:8px;background:#f8fafc}.spw-cost-kpi span{display:block;font-size:12px;color:#667085;margin-bottom:7px}.spw-cost-kpi strong{font-size:18px}.spw-cost-kpi-final{background:#eef5fa;border-color:#0F4C81}.spw-cost-summary-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;padding:0 20px 20px}.spw-cost-bars{display:flex;flex-direction:column;gap:11px}.spw-cost-bar-row{display:grid;grid-template-columns:110px 1fr 125px;gap:10px;align-items:center;font-size:12px}.spw-cost-bar-row>div{height:12px;background:#edf1f4;border-radius:8px;overflow:hidden}.spw-cost-bar-row i{display:block;height:100%;background:#0F4C81;border-radius:8px}.spw-cost-bar-row b{text-align:right}.spw-cost-notes{margin:0;padding-left:20px;line-height:1.7}.spw-cost-disclaimer{margin:0 20px 20px;padding:12px 14px;background:#fff8e5;border-left:4px solid #d89b00;font-size:12px;color:#5c4b18}@media(max-width:1000px){.spw-cost-type-grid{grid-template-columns:repeat(2,1fr)}.spw-cost-form-grid{grid-template-columns:repeat(2,1fr)}.spw-cost-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.spw-cost-type-grid,.spw-cost-form-grid,.spw-cost-summary-grid{grid-template-columns:1fr}.spw-cost-kpis{grid-template-columns:repeat(2,1fr)}}
.spw-cost-profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.spw-cost-profile-actions .spw-btn,.spw-cost-actions .spw-btn{min-height:42px}.spw-cost-rate-role,.spw-cost-rate-level,.spw-cost-rate-location,.spw-cost-rate-value{width:100%;min-width:100px}.spw-cost-rate-basis{min-width:105px}.spw-cost-module .spw-cost-table td .spw-cost-remove{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}.spw-cost-module .spw-card-header>button{flex:0 0 auto}.spw-cost-module .spw-cost-table-wrap{overflow-x:auto}.spw-cost-module .spw-cost-table input,.spw-cost-module .spw-cost-table select{font-family:inherit;line-height:1.4}.spw-cost-module .spw-cost-results{margin-top:24px}@media(max-width:800px){.spw-cost-profile-actions,.spw-cost-actions{flex-direction:column;align-items:stretch}.spw-cost-module .spw-card-header>button{width:100%}}
.spw-cost-ai-card{border-left:4px solid #0F4C81}.spw-cost-ai-body{padding:20px}.spw-cost-ai-body textarea{min-height:120px;resize:vertical}.spw-cost-ai-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}.spw-cost-status{font-size:13px;color:#475569}.spw-cost-status.is-error{color:#b42318;font-weight:600}.spw-cost-ai-actions button:disabled,.spw-cost-export-actions button:disabled{opacity:.65;cursor:not-allowed}.spw-cost-export-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 20px;border-top:1px solid #e7edf2;margin-top:18px;padding-top:18px}.spw-cost-export-actions .spw-btn{min-height:42px}.spw-btn-word{background:#2b579a;color:#fff}.spw-btn-excel{background:#217346;color:#fff}.spw-btn-pdf{background:#b42318;color:#fff}.spw-cost-module .spw-customization-prompt{margin:0 20px 20px}.spw-cost-module .spw-customization-prompt .spw-customization-trigger{display:inline-block;border:0;border-radius:6px;padding:10px 16px;font-weight:600;cursor:pointer;background:#0F4C81;color:#fff}.spw-cost-module .spw-customization-prompt .spw-customization-trigger:hover{filter:brightness(.95)}

/* ============================================================
 * Stage 3 — Cost Intelligence visuals and export presentation
 * ============================================================ */
.spw-cost-visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.spw-cost-visual-card{background:#fff;border:1px solid #d9e4ee;border-radius:14px;padding:16px;min-height:260px;box-shadow:0 5px 18px rgba(15,76,129,.06)}
.spw-cost-visual-card h4{margin:0 0 10px;color:#0f4c81;font-size:14px}
.spw-cost-visual-large{min-height:300px}.spw-cost-visual-wide{grid-column:1/-1;min-height:270px}
.spw-cost-chart{width:100%;min-height:190px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.spw-cost-chart svg{width:100%;height:auto;max-height:330px;display:block}
.spw-cost-chart-trend{min-height:230px}.spw-cost-funnel{min-height:300px}
.spw-svg-label{font:11px Arial,sans-serif;fill:#40566d}.spw-svg-value{font:700 10px Arial,sans-serif;fill:#17324d}.spw-svg-center{font:700 13px Arial,sans-serif;fill:#0f4c81}.spw-svg-sub{font:10px Arial,sans-serif;fill:#718096}.spw-svg-funnel-title{font:700 10px Arial,sans-serif;fill:#fff}.spw-svg-funnel-value{font:700 9px Arial,sans-serif;fill:#fff}
.spw-cost-chart{--spw-chart-1:#0f6fe5;--spw-chart-2:#35b779;--spw-chart-3:#f2a31b;--spw-chart-4:#8b5cf6;--spw-chart-5:#19a7ce;--spw-chart-6:#ef5da8;--spw-chart-7:#6b7280}
.spw-cost-chart svg{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.spw-cost-commercial-note{background:#f4f9fd;border-left:4px solid #0f6fe5;padding:14px;border-radius:8px;line-height:1.6;color:#334e68}.spw-cost-commercial-note p{margin:7px 0 0}
.spw-cost-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #dce6ef}
.spw-cost-export-actions .spw-btn{min-width:170px}
@media(max-width:900px){.spw-cost-visual-grid{grid-template-columns:1fr}.spw-cost-visual-wide{grid-column:auto}.spw-cost-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media print{.spw-cost-module{background:#fff}.spw-cost-visual-card{box-shadow:none;break-inside:avoid}.spw-cost-export-actions,.spw-customization-prompt{display:none!important}}
