
/* My Targets page. Deliberately scoped; the existing sidebar CSS is not changed. */
.twp-wf-targets-page{box-sizing:border-box;background:#f5f8fc;color:#172b43;min-height:100vh}
.twp-wf-targets-page *{box-sizing:border-box}
.twp-wf-targets-page .twp-wf-topbar{background:#fff;border-bottom:1px solid #e4eaf1}
.twp-wf-targets-page .twp-wf-page-heading{flex:1;min-width:0}
.twp-wf-targets-page .twp-wf-page-heading h1{font-size:31px;line-height:1.1;margin:0;color:#132943;font-weight:750;letter-spacing:-.03em}
.twp-wf-targets-page .twp-wf-page-heading p{margin:5px 0 0;color:#5d6f84;font-size:14px}
.twp-wf-targets-page .twp-wf-date-block{display:flex;align-items:center;gap:10px}
.twp-wf-targets-page .twp-wf-calendar-icon{width:24px;color:#526c89;display:flex}
.twp-wf-targets-page .twp-wf-calendar-icon svg{width:23px;height:23px}
.twp-wf-targets-page .twp-wf-date-block strong,.twp-wf-targets-page .twp-wf-date-block small{display:block}
.twp-wf-targets-page .twp-wf-date-block strong{font-size:14px;color:#172b43}
.twp-wf-targets-page .twp-wf-date-block small{font-size:13px;color:#718096;margin-top:4px}
.twp-wf-targets-page .twp-wf-notification{position:relative;color:#63758b;padding:7px}
.twp-wf-targets-page .twp-wf-notification svg{width:24px;height:24px}
.twp-wf-targets-page .twp-wf-notification b{position:absolute;right:0;top:-1px;background:#e52b3a;color:#fff;border-radius:20px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:10px}
.twp-wf-targets-page .twp-wf-avatar-placeholder{width:44px;height:44px;border-radius:50%;background:#dce6f0;display:block;position:relative;flex:0 0 44px}
.twp-wf-targets-page .twp-wf-avatar-placeholder:before{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:#fff;left:15px;top:9px}
.twp-wf-targets-page .twp-wf-avatar-placeholder:after{content:"";position:absolute;width:25px;height:13px;border-radius:15px 15px 10px 10px;background:#fff;left:9px;bottom:8px}
.twp-wf-targets-page .twp-wf-user{display:flex;align-items:center;gap:10px;min-width:190px}
.twp-wf-targets-page .twp-wf-user strong,.twp-wf-targets-page .twp-wf-user small{display:block}
.twp-wf-targets-page .twp-wf-user strong{font-size:14px;color:#172b43}
.twp-wf-targets-page .twp-wf-user small{font-size:13px;color:#65758a;margin-top:3px}
.twp-wf-targets-page .twp-wf-profile-chevron{width:30px;height:30px;border:1px solid #dbe4ee;border-radius:9px;background:#f8fafc;color:#526b86;margin-left:auto;display:flex;align-items:center;justify-content:center;flex:0 0 30px;transition:.18s ease}
.twp-wf-targets-page .twp-wf-profile-chevron svg{width:16px;height:16px}
.twp-wf-targets-page .twp-wf-user:hover .twp-wf-profile-chevron{border-color:#b9cde2;background:#f1f6fb;color:#1769e0;transform:translateY(1px)}
.twp-wf-targets-content{padding:18px 22px 34px;max-width:1600px;margin:0 auto}
.twp-wf-target-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.twp-wf-target-kpi{min-height:96px;background:#fff;border:1px solid #e1e8f0;border-radius:12px;padding:15px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 3px 12px rgba(24,55,84,.035)}
.twp-wf-target-kpi .icon{width:49px;height:49px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 49px}
.twp-wf-target-kpi .icon svg{width:25px;height:25px}
.twp-wf-target-kpi small,.twp-wf-target-kpi strong,.twp-wf-target-kpi em{display:block}
.twp-wf-target-kpi small{font-size:13px;color:#33475f;margin-bottom:5px}
.twp-wf-target-kpi strong{font-size:25px;line-height:1;color:#1769df}
.twp-wf-target-kpi em{font-size:12px;color:#7a899a;font-style:normal;margin-top:5px}
.twp-wf-target-kpi.blue .icon{background:#e5f1ff;color:#1769df}
.twp-wf-target-kpi.green .icon{background:#e0f7eb;color:#14945d}.twp-wf-target-kpi.green strong{color:#14945d}
.twp-wf-target-kpi.orange .icon{background:#fff0d9;color:#f18a00}.twp-wf-target-kpi.orange strong{color:#f18a00}
.twp-wf-target-kpi.red .icon{background:#ffe4e7;color:#e33647}.twp-wf-target-kpi.red strong{color:#e33647}
.twp-wf-target-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.95fr) minmax(330px,1.08fr);gap:12px;margin-bottom:12px}
.twp-wf-target-card{background:#fff;border:1px solid #e1e8f0;border-radius:12px;box-shadow:0 3px 12px rgba(24,55,84,.035);min-width:0;overflow:hidden}
.twp-wf-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 8px}
.twp-wf-card-title h2{font-size:15px;margin:0;color:#172b43;font-weight:700}
.twp-wf-progress-card{padding-bottom:15px}
.twp-wf-progress-percent{font-size:23px;color:#14945d;font-weight:800}
.twp-wf-progress-track{height:21px;margin:8px 16px 0;background:#e7edf3;border-radius:20px;overflow:hidden}
.twp-wf-progress-track span{display:block;height:100%;border-radius:20px;background:#19ad72}
.twp-wf-progress-values{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 16px 0}
.twp-wf-progress-values div{border-right:1px solid #edf1f5;padding-right:8px}
.twp-wf-progress-values div:last-child{border:0}
.twp-wf-progress-values strong{display:block;font-size:19px;color:#172b43}
.twp-wf-progress-values small{display:block;font-size:12px;color:#718096;line-height:1.45;margin-top:4px}
.twp-wf-salary-card{padding-bottom:14px}
.twp-wf-salary-card .eligible,.twp-wf-salary-card .not-eligible{font-size:12px;font-weight:800;border-radius:7px;padding:6px 9px}
.twp-wf-salary-card .eligible{background:#e4f7ed;color:#168454}.twp-wf-salary-card .not-eligible{background:#fff0f1;color:#c53744}
.twp-wf-salary-values{display:grid;grid-template-columns:1fr 1fr;padding:9px 16px 8px}
.twp-wf-salary-values div+div{border-left:1px solid #edf1f5;padding-left:15px}
.twp-wf-salary-values strong{display:block;font-size:23px;color:#172b43}
.twp-wf-salary-values small{display:block;font-size:12px;color:#718096;margin-top:4px}
.twp-wf-threshold-track{height:9px;margin:5px 16px 10px;background:#e8eef4;border-radius:10px;position:relative;overflow:visible}
.twp-wf-threshold-track span{height:100%;display:block;border-radius:10px;background:#1769df}
.twp-wf-threshold-track i{position:absolute;top:-4px;width:2px;height:17px;background:#e33647;transform:translateX(-1px)}
.twp-wf-salary-card p{font-size:12px;line-height:1.45;color:#66788e;background:#f6fafc;border:1px solid #e5edf3;border-radius:8px;margin:0 16px 7px;padding:8px 9px}
.twp-wf-threshold-value{display:block;margin:0 16px;color:#718096;font-size:11px}
.twp-wf-month-form{display:flex;align-items:center;gap:5px}
.twp-wf-select{height:34px;min-width:145px;border:1px solid #dce5ee;border-radius:7px;display:flex;align-items:center;gap:6px;padding:0 7px;position:relative;background:#fff}
.twp-wf-select>svg{width:14px;color:#63768b;flex:0 0 14px}
.twp-wf-select select{appearance:none;-webkit-appearance:none;border:0;outline:0;background:transparent;width:100%;font-size:13px;color:#344960;padding:0 18px 0 0;cursor:pointer}
.twp-wf-select .select-chevron{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#536b84;pointer-events:none}
.twp-wf-select .select-chevron svg{width:14px;height:14px}
.twp-wf-month-form button{height:34px;border:1px solid #1769df;background:#1769df;color:#fff;border-radius:7px;font-size:13px;font-weight:700;padding:0 11px;cursor:pointer}
.twp-wf-pipeline{padding:8px 14px 16px;display:flex;flex-direction:column;gap:6px}.twp-wf-pipeline-stage{position:relative;width:var(--stage-width);min-width:68%;height:39px;margin:0 auto;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 0 8px;overflow:hidden;background:linear-gradient(90deg,var(--stage-color) 0%,var(--stage-color-soft) 100%);box-shadow:0 3px 8px rgba(24,55,84,.08);transition:transform .16s ease,box-shadow .16s ease}.twp-wf-pipeline-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,0));pointer-events:none}.twp-wf-pipeline-stage:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(24,55,84,.12)}.twp-wf-pipeline-stage .stage-label,.twp-wf-pipeline-stage .stage-metrics{position:relative;z-index:1}.twp-wf-pipeline-stage .stage-label{display:flex;align-items:center;gap:7px;min-width:0}.twp-wf-pipeline-stage .stage-number{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:10px;font-weight:800;flex:0 0 22px}.twp-wf-pipeline-stage b{display:block;color:#fff;font-size:12px;font-weight:750;line-height:1.1;white-space:nowrap}.twp-wf-pipeline-stage .stage-metrics{display:flex;align-items:center;gap:6px;white-space:nowrap}.twp-wf-pipeline-stage strong{font-size:12px;color:#fff;font-weight:800}.twp-wf-pipeline-stage em{font-size:10px;font-style:normal;color:#fff;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.18);border-radius:5px;padding:3px 5px}.twp-wf-pipeline-stage em small{font-size:10px;color:inherit}.twp-wf-pipeline-stage.lead{--stage-color:#1769df;--stage-color-soft:#4a8ee8}.twp-wf-pipeline-stage.qualification{--stage-color:#168fa3;--stage-color-soft:#35b1bd}.twp-wf-pipeline-stage.proposal{--stage-color:#6657c8;--stage-color-soft:#8a79dc}.twp-wf-pipeline-stage.negotiation{--stage-color:#d27b20;--stage-color-soft:#e69a48}.twp-wf-pipeline-stage.won{--stage-color:#15945f;--stage-color-soft:#35b779}
.twp-wf-target-tabs{display:flex;gap:4px;background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:4px;margin:12px 0;overflow:auto}
.twp-wf-target-tabs a{height:38px;display:flex;align-items:center;justify-content:center;padding:0 22px;border-radius:7px;color:#53677f;font-size:13px;white-space:nowrap;text-decoration:none}
.twp-wf-target-tabs a.active{background:#1769df;color:#fff;font-weight:700}.twp-wf-target-tabs a.disabled{opacity:.45;cursor:not-allowed}
.twp-wf-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 10px}
.twp-wf-section-head h2{font-size:15px;margin:0;color:#172b43}.twp-wf-section-head p{font-size:12px;color:#718096;margin:4px 0 0}
.twp-wf-current-month{display:flex;align-items:center;gap:5px;color:#1769df;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}.twp-wf-current-month svg{width:14px}
.twp-wf-table-wrap{overflow:auto}
.twp-wf-target-table{width:100%;border-collapse:collapse;min-width:930px}
.twp-wf-target-table th{background:#f8fafc;color:#66778b;font-size:12px;text-align:left;padding:11px 10px;border-top:1px solid #edf1f5;border-bottom:1px solid #e5ebf1}
.twp-wf-target-table td{padding:10px;border-bottom:1px solid #edf1f5;font-size:12px;color:#31475e;vertical-align:middle}
.twp-wf-target-table td strong{display:block;color:#20364f}.twp-wf-target-table td small{display:block;color:#78889a;font-size:11px;margin-top:3px}
.twp-wf-target-table .stage,.twp-wf-target-table .status{display:inline-flex;padding:5px 7px;border-radius:6px;font-size:11px;font-weight:800;white-space:nowrap}
.twp-wf-target-table .stage.lead{background:#e6f0ff;color:#1769c4}.twp-wf-target-table .stage.qualification{background:#fff0d9;color:#db8500}.twp-wf-target-table .stage.proposal{background:#eee7ff;color:#7354ce}.twp-wf-target-table .stage.negotiation{background:#fff0db;color:#df7900}.twp-wf-target-table .stage.won{background:#e2f7eb;color:#158253}.twp-wf-target-table .stage.lost{background:#ffe5e8;color:#c63b48}
.twp-wf-target-table .status.won{background:#e2f7eb;color:#158253}.twp-wf-target-table .status.open{background:#e6f0ff;color:#1769c4}.twp-wf-target-table .status.lost{background:#ffe5e8;color:#c63b48}
.twp-wf-view-link{display:inline-flex;border:1px solid #cfdce9;border-radius:6px;padding:6px 9px;text-decoration:none;color:#1769df;font-size:12px;font-weight:700;white-space:nowrap}
.twp-wf-empty-target{text-align:center;padding:35px 12px}.twp-wf-empty-target strong{display:block;font-size:14px;color:#31475e}.twp-wf-empty-target span{display:block;font-size:12px;color:#7a899b;margin-top:5px}
.twp-wf-target-bottom{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:12px;margin-top:12px}
.twp-wf-target-bottom .twp-wf-target-card{padding-bottom:14px}
.twp-wf-history-chart{height:150px;display:flex;align-items:flex-end;gap:10px;padding:12px 18px 0;border-bottom:1px solid #e6ebf0}
.history-col{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.history-col .bars{height:118px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.history-col .bars i,.history-col .bars b{display:block;width:12px;border-radius:4px 4px 0 0;min-height:2px}
.history-col .bars i{background:#b9d7f7}.history-col .bars b{background:#1769df}.history-col>span{font-size:11px;color:#75859a;margin-top:6px}
.chart-key{display:flex;align-items:center;gap:5px;color:#718096;font-size:11px;font-weight:400}.chart-key i,.chart-key b{width:9px;height:9px;border-radius:2px;background:#b9d7f7;display:inline-block}.chart-key b{background:#1769df}
.twp-wf-contribution-list{padding:6px 16px}.contribution-row{display:grid;grid-template-columns:1fr 1.2fr auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f5}.contribution-row:last-child{border-bottom:0}.contribution-row strong{font-size:12px;color:#273c55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contribution-row>span{height:8px;background:#edf1f5;border-radius:8px;overflow:hidden}.contribution-row>span i{display:block;height:100%;background:#1769df;border-radius:8px}.contribution-row b{font-size:11px;color:#53677f}.twp-wf-list-empty{font-size:12px;color:#7a899b;padding:20px 0}
.twp-wf-summary{padding:4px 16px 12px;margin:0}.twp-wf-summary div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf1f5}.twp-wf-summary div:last-child{border-bottom:0}.twp-wf-summary dt{font-size:12px;color:#64768b}.twp-wf-summary dd{margin:0;font-size:12px;font-weight:800;color:#263b54}.twp-wf-summary dd.green{color:#14945d}.twp-wf-summary dd.red{color:#e33647}
@media(max-width:1250px){.twp-wf-target-kpis{grid-template-columns:1fr 1fr}.twp-wf-target-grid{grid-template-columns:1.35fr 1fr}.twp-wf-pipeline-card{grid-column:span 2}.twp-wf-target-bottom{grid-template-columns:1fr 1fr}.twp-wf-target-bottom>.twp-wf-target-card:last-child{grid-column:span 2}}
@media(max-width:850px){.twp-wf-target-grid{grid-template-columns:1fr}.twp-wf-pipeline-card{grid-column:auto}.twp-wf-target-bottom{grid-template-columns:1fr}.twp-wf-target-bottom>.twp-wf-target-card:last-child{grid-column:auto}.twp-wf-progress-values{grid-template-columns:1fr}.twp-wf-progress-values div{border-right:0;border-bottom:1px solid #edf1f5;padding-bottom:8px}.twp-wf-progress-values div:last-child{border-bottom:0}.twp-wf-section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.twp-wf-target-kpis{grid-template-columns:1fr 1fr;gap:8px}.twp-wf-target-kpi{min-height:82px;padding:10px;gap:8px}.twp-wf-target-kpi .icon{width:38px;height:38px;flex-basis:38px}.twp-wf-target-kpi strong{font-size:17px}.twp-wf-target-kpi small{font-size:12px}.twp-wf-target-kpi em{font-size:11px}.twp-wf-targets-content{padding:12px}.twp-wf-targets-page .twp-wf-topbar-right{gap:8px}.twp-wf-targets-page .twp-wf-date-block{display:none}.twp-wf-targets-page .twp-wf-user{min-width:0}.twp-wf-month-form{width:100%}.twp-wf-select{flex:1}.twp-wf-month-form button{flex:0 0 auto}}
@media(max-width:560px){.twp-wf-pipeline{padding:7px 12px 14px;gap:6px}.twp-wf-pipeline-stage{width:100%;min-width:100%;height:38px;padding:0 9px 0 8px}.twp-wf-pipeline-stage b{font-size:12px}.twp-wf-pipeline-stage strong{font-size:12px}.twp-wf-pipeline-stage em{font-size:10px}}
