/* Pipeline Hygiene Monitor web demo: Lightning-style layout written for Steadline (no Salesforce stylesheets or assets are loaded). */
.phm-stage{--b:#e5e5e5;--b2:#c9c9c9;--t:#181818;--t2:#5c5c5c;--t3:#747474;--blue:#0176d3;--blue2:#014486;--bg:#f3f3f3;--hi:#ba0517;--md:#a96404;--md2:#dd7a01;--lo:#0b5cab;--ok:#2e844a;
  background:var(--bg);color:var(--t);font:13px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;padding:16px;border-radius:12px;position:relative}
.phm-stage *{box-sizing:border-box}
.phm-card{background:#fff;border:1px solid var(--b);border-radius:8px;box-shadow:0 2px 2px rgba(0,0,0,.06)}
.phm-card__head{display:flex;align-items:center;gap:10px;padding:12px 16px}
.phm-card__head h2{font-size:15px;font-weight:700;margin:0;flex:1;min-width:0}
.phm-card__icon{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#ff5d2d;flex:none}
.phm-card__icon svg{width:18px;height:18px}
.phm-card__body{padding:0 16px 16px}
.phm-btn{font:inherit;font-weight:600;color:var(--blue);background:#fff;border:1px solid var(--b2);border-radius:4px;padding:4px 12px;min-height:32px;cursor:pointer}
.phm-btn:hover{background:#f3f3f3}
.phm-link{font:inherit;color:var(--blue);background:none;border:0;padding:0;cursor:pointer;text-align:left}
.phm-link:hover{text-decoration:underline;color:var(--blue2)}
.phm-stage :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.phm-scope{color:var(--t3);font-size:12px;margin:0 0 12px}
.phm-notices{background:#f3f3f3;border:1px solid var(--b);border-radius:4px;padding:8px 12px;margin-bottom:12px;font-size:12px}
.phm-notices ul{margin:0;padding-left:18px}
.phm-thresholds{border:1px solid var(--b);border-radius:4px;padding:12px;margin-bottom:12px}
.phm-tgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.phm-field{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--t2);min-width:0}
.phm-field_wide{grid-column:1/-1}
.phm-field input,.phm-field select{font:inherit;font-size:13px;color:var(--t);border:1px solid var(--b2);border-radius:4px;padding:5px 8px;min-height:32px;background:#fff;width:100%}
.phm-check{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:12px;color:var(--t2)}
.phm-hint{font-size:12px;color:var(--t3);margin:8px 0 0}
.phm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.phm-kpi{border:1px solid var(--b);border-radius:8px;padding:12px 14px}
.phm-kpi p{margin:0}
.phm-kpi__label{font-size:11px;color:var(--t3);text-transform:uppercase;letter-spacing:.05em}
.phm-kpi__value{font-size:22px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.phm-kpi__sub{font-size:12px;color:var(--t3)}
.phm-riskbar{display:flex;height:6px;border-radius:3px;overflow:hidden;margin:14px 0 6px;background:#f3f3f3}
.phm-bar_high{background:var(--hi)}.phm-bar_medium{background:var(--md2)}.phm-bar_low{background:var(--blue)}.phm-bar_healthy{background:var(--ok)}
.phm-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--t2);margin-bottom:12px}
.phm-legend span{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.phm-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.phm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.phm-chip{font:inherit;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;min-height:30px;border:1px solid var(--b2);border-radius:16px;background:#fff;color:var(--t);cursor:pointer}
.phm-chip b{font-variant-numeric:tabular-nums}
.phm-chip:hover{border-color:var(--blue)}
.phm-chip_active{background:var(--blue);border-color:var(--blue);color:#fff}
.phm-chip_off{opacity:.55;cursor:not-allowed}
.phm-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:6px}
.phm-tablebar{display:flex;justify-content:space-between;align-items:center;min-height:30px;font-size:12px;color:var(--t3)}
.phm-table{overflow:auto;max-height:520px;border:1px solid var(--b);border-radius:4px}
.phm-table table{border-collapse:collapse;width:100%;min-width:1080px}
.phm-table th{position:sticky;top:0;background:#f3f3f3;text-align:left;font-size:12px;font-weight:600;color:var(--t2);border-bottom:1px solid var(--b);padding:0;white-space:nowrap;z-index:1}
.phm-table th button{font:inherit;color:inherit;background:none;border:0;padding:8px;width:100%;text-align:inherit;cursor:pointer}
.phm-table th:not(:has(button)){padding:8px}
.phm-table td{border-bottom:1px solid var(--b);padding:7px 8px;vertical-align:top}
.phm-table tr:hover td,.phm-table tr.is-sel td{background:#f3f9ff}
.num{text-align:right!important;font-variant-numeric:tabular-nums}
.phm-table th.num button{text-align:right}
.phm-issues{min-width:260px;color:var(--t2)}
.phm-late{color:var(--hi);font-weight:600}
.phm-blank{color:#aeaeae}
.phm-ok{color:var(--ok)}
.phm-risk{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.phm-risk svg{width:15px;height:15px;flex:none}
.phm-risk_high{color:var(--hi);font-weight:700}.phm-risk_medium{color:var(--md);font-weight:700}.phm-risk_low{color:var(--lo)}.phm-risk_healthy{color:var(--ok)}
.phm-empty{text-align:center;padding:32px 12px;color:var(--t2)}
.phm-drawer{position:absolute;top:16px;right:16px;bottom:16px;width:min(380px,calc(100% - 32px));background:#fff;border:1px solid var(--b);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:16px;overflow:auto;z-index:3}
.phm-drawer__head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.phm-drawer h3{font-size:16px;margin:2px 0 0}
.phm-drawer h4{font-size:13px;margin:16px 0 8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.phm-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--t3);margin:0}
.phm-score{font-weight:400;color:var(--t3)}
.phm-dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:12px 0 0}
.phm-dl dt{font-size:11px;color:var(--t3)}.phm-dl dd{margin:0}
.phm-ilist{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.phm-ilist li{border-left:3px solid var(--md2);padding:2px 0 2px 10px;display:grid}
.phm-ilist span{color:var(--t2)}
@media (max-width:820px){.phm-kpis,.phm-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.phm-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.phm-stage{padding:8px}.phm-card__body{padding:0 10px 12px}.phm-card__head{padding:10px}.phm-kpi__value{font-size:18px}}
.phm-saved{color:var(--ok);font-size:12px;margin:-6px 0 10px}
.phm-fix{margin-top:16px;padding-top:12px;border-top:1px solid var(--b);display:grid;gap:8px}
.phm-fix h4{margin:0;font-size:13px}
.phm-btn_brand{background:var(--blue);border-color:var(--blue);color:#fff;justify-self:start}.phm-btn_brand:hover{background:var(--blue2)}
.phm-card__actions{display:flex;gap:8px;flex-wrap:wrap}
