/* Hirentra Site Progress — Work Package Intelligence */
.hsp-wpi-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0 14px;padding:12px 14px;border:1px solid var(--line,#2a3446);border-radius:14px;background:var(--panel,#111827)}
.hsp-wpi-toolbar-left{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.hsp-wpi-toolbar label{display:grid;gap:5px}.hsp-wpi-toolbar label>span{font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--text-muted,#93a0b7)}.hsp-wpi-toolbar select{min-width:150px;height:36px;border-radius:9px;border:1px solid var(--line,#344054);background:var(--input-bg,#0c1320);color:var(--text,#f4f7fb);padding:0 10px;font-size:12px;font-weight:700}.hsp-wpi-toolbar-right{display:flex;gap:8px;align-items:center}.hsp-wpi-toolbar .secondary-button.active{background:var(--hirentra-yellow,#f1c40f);border-color:var(--hirentra-yellow,#f1c40f);color:#111827}.hsp-wpi-clear{border:0;background:transparent;color:var(--text-muted,#93a0b7);font-size:11px;font-weight:800;cursor:pointer}.hsp-wpi-clear:hover{color:var(--text,#fff)}
#hspProgressList{display:grid}.hsp-item{position:relative;border-left:4px solid transparent!important;transition:border-color .18s ease,background .18s ease,opacity .18s ease}.hsp-item.hsp-wpi-behind,.hsp-item.hsp-wpi-delayed{border-left-color:#ef5757!important;background:linear-gradient(90deg,rgba(239,87,87,.07),transparent 30%)}.hsp-item.hsp-wpi-at-risk{border-left-color:#e6a735!important;background:linear-gradient(90deg,rgba(230,167,53,.07),transparent 30%)}.hsp-item.hsp-wpi-ahead{border-left-color:#48a7d8!important}.hsp-item.hsp-wpi-on-track{border-left-color:#3fbf82!important}.hsp-item.hsp-wpi-complete{border-left-color:#55c98c!important}.hsp-wpi-hidden{display:none!important}
.hsp-wpi-status-badge{font-size:10px!important;font-weight:900!important;letter-spacing:.05em;padding:6px 9px!important;border-radius:999px!important;white-space:nowrap}.hsp-wpi-status-badge.behind,.hsp-wpi-status-badge.delayed{background:rgba(239,87,87,.16)!important;color:#ff8d8d!important;border:1px solid rgba(239,87,87,.35)}.hsp-wpi-status-badge.at-risk{background:rgba(230,167,53,.16)!important;color:#ffc963!important;border:1px solid rgba(230,167,53,.35)}.hsp-wpi-status-badge.on-track{background:rgba(63,191,130,.14)!important;color:#6edaa4!important;border:1px solid rgba(63,191,130,.3)}.hsp-wpi-status-badge.ahead{background:rgba(72,167,216,.14)!important;color:#78c6ee!important;border:1px solid rgba(72,167,216,.3)}.hsp-wpi-status-badge.complete{background:rgba(85,201,140,.16)!important;color:#82e4b3!important;border:1px solid rgba(85,201,140,.35)}
.hsp-wpi-progressbar{height:10px!important;border-radius:999px!important;margin-top:12px!important;overflow:hidden}.hsp-wpi-progressbar>span{border-radius:999px!important}.hsp-wpi-variance,.hsp-wpi-remaining{display:block;margin-top:4px;font-size:11px;font-weight:700;color:var(--text-muted,#93a0b7)}.hsp-wpi-variance.late{color:#ff8d8d}.hsp-wpi-variance.ahead{color:#78c6ee}.hsp-wpi-last-update{display:flex;justify-content:flex-end;gap:6px;align-items:center;margin:-3px 0 4px;font-size:10.5px;color:var(--text-muted,#93a0b7)}.hsp-wpi-last-update strong{color:var(--text,#f4f7fb);font-weight:800}.hsp-wpi-last-update strong.stale{color:#ffc963}.hsp-wpi-more{margin-left:auto}
.hsp-wpi-expanded{display:none;margin:12px 0 0;padding:13px 14px;border:1px solid var(--line,#303a4b);border-radius:12px;background:rgba(8,15,27,.34)}.hsp-wpi-expanded.open{display:block}.hsp-wpi-expanded-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hsp-wpi-expanded-grid>div{display:grid;gap:3px}.hsp-wpi-expanded-grid small{color:var(--text-muted,#93a0b7);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.hsp-wpi-expanded-grid strong{font-size:12px}.hsp-wpi-expanded-note{display:grid;gap:4px;margin-top:10px;padding:9px 10px;border-radius:9px;background:rgba(255,255,255,.025)}.hsp-wpi-expanded-note.warning{border-left:3px solid #e6a735}.hsp-wpi-expanded-note strong{font-size:10px;text-transform:uppercase;color:var(--text-muted,#93a0b7)}.hsp-wpi-expanded-note span{font-size:12px}.hsp-wpi-expanded-foot{margin-top:10px;font-size:10.5px;color:var(--text-muted,#93a0b7)}
.hsp-wpi-summary-filter{cursor:pointer;transition:transform .14s ease,background .14s ease}.hsp-wpi-summary-filter:hover{transform:translateY(-1px);background:rgba(241,196,15,.06)}.hsp-wpi-filter-empty{display:none!important;padding:24px;text-align:center;color:var(--text-muted,#93a0b7);border:1px dashed var(--line,#344054);border-radius:12px}.hsp-wpi-filter-empty.show{display:block!important}
html[data-theme="light"] .hsp-wpi-toolbar,body.light-theme .hsp-wpi-toolbar{background:#fff;border-color:#d8dee8}html[data-theme="light"] .hsp-wpi-toolbar select,body.light-theme .hsp-wpi-toolbar select{background:#fff;color:#182230;border-color:#cfd7e3}html[data-theme="light"] .hsp-wpi-expanded,body.light-theme .hsp-wpi-expanded{background:#f8fafc;border-color:#d8dee8}html[data-theme="light"] .hsp-wpi-last-update strong,body.light-theme .hsp-wpi-last-update strong{color:#172033}
@media(max-width:900px){.hsp-wpi-toolbar{align-items:stretch}.hsp-wpi-toolbar-left{width:100%}.hsp-wpi-toolbar label{flex:1;min-width:140px}.hsp-wpi-toolbar select{width:100%;min-width:0}.hsp-wpi-expanded-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.hsp-wpi-expanded-grid{grid-template-columns:1fr}.hsp-wpi-last-update{justify-content:flex-start;margin-top:5px}.hsp-wpi-toolbar-right{width:100%;justify-content:space-between}}
