/* page-prospect.css — Prospect Review MASTER-DETAIL (scoped to #prospectReviewScreen)
   Mockup layout: flat underline filter tabs → a 330px master queue list on the
   left + the selected prospect's full survey + decision in the detail pane on the
   right. Light + dark correct (tokens only). Every selector is scoped to
   body.lh-shell #prospectReviewScreen. */

/* ---- page chrome ---- */
body.lh-shell #prospectReviewScreen .appr-page{ max-width:1180px; margin:0 auto; }
body.lh-shell #prospectReviewScreen .appr-page > p{
  font-size:14.5px; color:var(--text-muted); max-width:760px; margin:11px 0 0; line-height:1.5;
}

/* ---- filter tab bar (flat underline tabs with inline counts) ---- */
body.lh-shell #prospectReviewScreen .pr-filters{
  display:flex; flex-wrap:wrap; gap:6px 28px;
  border-bottom:1px solid var(--rule-strong); margin-top:26px; padding:0;
}
body.lh-shell #prospectReviewScreen .pr-filter{
  position:relative; background:transparent; border:none; border-radius:0; box-shadow:none;
  font-family:var(--font-sans); font-size:13px; font-weight:500;
  color:var(--text-muted); letter-spacing:.01em;
  padding:0 0 13px; margin:0; cursor:pointer;
  border-bottom:2px solid transparent;        /* flat underline — no rounded bracket */
  transition:color .14s, border-color .14s;
}
body.lh-shell #prospectReviewScreen .pr-filter:hover{ color:var(--text-head); }
body.lh-shell #prospectReviewScreen .pr-filter.active{
  color:var(--text-head); font-weight:600; border-bottom-color:var(--gold);
}
body.lh-shell #prospectReviewScreen .pr-filter b{ font-weight:700; color:inherit; margin-left:3px; }
body.lh-shell #prospectReviewScreen .pr-filter.active b{ color:var(--gold-dark); }

/* ---- MASTER / DETAIL split ---- */
body.lh-shell #prospectReviewScreen .pr-split{
  display:grid; grid-template-columns:330px 1fr; gap:30px; margin-top:24px; align-items:start;
}
body.lh-shell #prospectReviewScreen .pr-split > *{ min-width:0; }

/* LEFT — queue list */
body.lh-shell #prospectReviewScreen .pr-list{ border-top:1px solid var(--rule); }
body.lh-shell #prospectReviewScreen .pr-item{
  padding:13px 12px; border-bottom:1px solid var(--rule); border-left:2px solid transparent;
  cursor:pointer; transition:background .14s, border-color .14s;
}
body.lh-shell #prospectReviewScreen .pr-item:hover{ background:var(--hover); }
body.lh-shell #prospectReviewScreen .pr-item.selected{ background:var(--gold-faint); border-left-color:var(--gold); }
body.lh-shell #prospectReviewScreen .pr-item-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
body.lh-shell #prospectReviewScreen .pr-item-addr{
  font-size:13px; font-weight:600; color:var(--text-strong);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.lh-shell #prospectReviewScreen .pr-item-dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; background:var(--text-faint); }
body.lh-shell #prospectReviewScreen .pr-item-dot.green{ background:var(--green); }
body.lh-shell #prospectReviewScreen .pr-item-dot.amber{ background:var(--amber); }
body.lh-shell #prospectReviewScreen .pr-item-dot.red{ background:var(--red); }
body.lh-shell #prospectReviewScreen .pr-item-sub{
  font-size:11.5px; color:var(--text-faint); margin-top:3px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.lh-shell #prospectReviewScreen .pr-item-chips{ display:flex; align-items:center; gap:6px; margin-top:8px; flex-wrap:wrap; }
body.lh-shell #prospectReviewScreen .pr-item-tag{
  font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-muted); border:1px solid var(--hairline); border-radius:999px; padding:2px 7px;
}
body.lh-shell #prospectReviewScreen .pr-item-files{ font-size:10px; color:var(--text-faint); }
body.lh-shell #prospectReviewScreen .pr-item-status{
  margin-left:auto; font-size:9px; font-weight:700; letter-spacing:.04em;
  border-radius:999px; padding:2px 8px; white-space:nowrap;
  color:var(--text-muted); background:var(--surface-2);
}
body.lh-shell #prospectReviewScreen .pr-item-status.green{ color:var(--green); background:var(--green-bg); }
body.lh-shell #prospectReviewScreen .pr-item-status.amber{ color:var(--amber); background:var(--amber-bg); }
body.lh-shell #prospectReviewScreen .pr-item-status.red{ color:var(--red); background:var(--red-bg); }
/* a Hazard status chip + the eligibility status chip can both appear → only the
   last one gets the auto-left margin so they don't both shove right */
body.lh-shell #prospectReviewScreen .pr-item-status.amber + .pr-item-status{ margin-left:6px; }

/* RIGHT — detail pane */
body.lh-shell #prospectReviewScreen .pr-detail-pane{ min-width:0; }
body.lh-shell #prospectReviewScreen .pr-detail-inner{ min-width:0; }
body.lh-shell #prospectReviewScreen .pr-detail-head{
  display:flex; justify-content:space-between; align-items:flex-start; gap:16px;
  padding-bottom:18px; border-bottom:1px solid var(--rule-strong);
}
body.lh-shell #prospectReviewScreen .pr-detail-head-l{ min-width:0; }
body.lh-shell #prospectReviewScreen .pr-detail-title{
  display:flex; align-items:center; gap:11px; flex-wrap:wrap;
  font-family:var(--font-serif); font-weight:600; font-size:22px; color:var(--text-head); line-height:1.1;
}
body.lh-shell #prospectReviewScreen .pr-detail-meta{ font-size:12.5px; color:var(--text-muted); margin-top:6px; }
body.lh-shell #prospectReviewScreen .pr-detail-head-r{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; }
body.lh-shell #prospectReviewScreen .pr-hdr-pill{
  font-size:10px; font-weight:600; color:var(--text-muted);
  border:1px solid var(--hairline); border-radius:999px; padding:3px 9px; white-space:nowrap;
}
body.lh-shell #prospectReviewScreen .pr-hdr-project{
  font-size:10px; font-weight:700; letter-spacing:.03em; color:#1f2533;
  background:var(--gold); border-radius:999px; padding:3px 10px; white-space:nowrap;
}

body.lh-shell #prospectReviewScreen .pr-warn{
  font-size:12.5px; color:var(--amber); background:var(--amber-bg);
  border:1px solid transparent; border-radius:8px; padding:10px 13px; margin:14px 0 4px;
}

/* eligibility chips (used in the detail title + current-decision line) */
body.lh-shell #prospectReviewScreen .pr-chip{
  display:inline-flex; align-items:center; gap:5px; font-size:9.5px; font-weight:700; letter-spacing:.04em;
  color:var(--text-muted); background:transparent; border:1px solid var(--hairline); border-radius:999px;
  padding:3px 9px; white-space:nowrap;
}
body.lh-shell #prospectReviewScreen .pr-chip-green{ color:var(--green); background:var(--green-bg); border-color:transparent; }
body.lh-shell #prospectReviewScreen .pr-chip-red{ color:var(--red); background:var(--red-bg); border-color:transparent; }
body.lh-shell #prospectReviewScreen .pr-chip-amber{ color:var(--amber); background:var(--amber-bg); border-color:transparent; }
body.lh-shell #prospectReviewScreen .pr-chip-navy{ color:#1f2533; background:var(--gold); border-color:var(--gold); }

/* section eyebrow + key/value rows */
body.lh-shell #prospectReviewScreen .pr-sec{ margin-top:26px; }
body.lh-shell #prospectReviewScreen .pr-sec h4{
  font-size:11px; letter-spacing:.16em; color:var(--text-faint);
  font-weight:600; text-transform:uppercase; margin:0 0 2px;
}
body.lh-shell #prospectReviewScreen .pr-kv{
  display:flex; justify-content:space-between; gap:20px; padding:9px 0; border-top:1px solid var(--rule);
}
body.lh-shell #prospectReviewScreen .pr-kv span{ font-size:12.5px; color:var(--text-muted); flex-shrink:0; }
body.lh-shell #prospectReviewScreen .pr-kv strong{ font-size:12.5px; color:var(--text-strong); font-weight:500; text-align:right; min-width:0; }

/* files — flat editorial rows. The legacy .pr-file (dashboard.css) is a cream
   #fafaf8 rounded box with a margin; reset it to a transparent hairline row so it
   matches the rest of the detail pane and is dark-mode correct. */
body.lh-shell #prospectReviewScreen .pr-file{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 2px; border-top:1px solid var(--rule);
  background:transparent; border-radius:0; margin:0; transition:background .14s;
}
body.lh-shell #prospectReviewScreen .pr-file:hover{ background:var(--hover); }
body.lh-shell #prospectReviewScreen .pr-file > span{
  font-size:12.5px; color:var(--text-body); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---- decision block ---- */
body.lh-shell #prospectReviewScreen .pr-decision{ margin-top:28px; padding-top:20px; border-top:1px solid var(--rule-strong); }
body.lh-shell #prospectReviewScreen .pr-decided{
  display:flex; align-items:center; flex-wrap:wrap; gap:9px; font-size:12.5px; color:var(--text-muted); margin-bottom:6px;
}
body.lh-shell #prospectReviewScreen .pr-decided a{ color:var(--gold-dark); font-weight:600; text-decoration:none; }
body.lh-shell #prospectReviewScreen .pr-decided a:hover{ opacity:.7; }
body.lh-shell #prospectReviewScreen .pr-note{
  width:100%; box-sizing:border-box; margin-top:14px; border:1px solid var(--hairline); border-radius:9px;
  padding:11px 14px; background:var(--surface-2); font-family:var(--font-sans); font-size:13px;
  color:var(--text-strong); outline:none; transition:border-color .14s;
}
body.lh-shell #prospectReviewScreen .pr-note::placeholder{ color:var(--text-faint); }
body.lh-shell #prospectReviewScreen .pr-note:hover,
body.lh-shell #prospectReviewScreen .pr-note:focus{ border-color:var(--gold); }
body.lh-shell #prospectReviewScreen .pr-require{
  display:flex; align-items:center; gap:9px; margin:13px 0 0 !important;
  font-size:12.5px; color:var(--text-body) !important; cursor:pointer;
}
body.lh-shell #prospectReviewScreen .pr-require b{ color:var(--red); font-weight:600; }
body.lh-shell #prospectReviewScreen .pr-require input{ width:16px; height:16px; flex-shrink:0; accent-color:var(--gold); cursor:pointer; }
body.lh-shell #prospectReviewScreen .pr-decision-btns{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }

/* decision buttons — token-based, dark-aware */
body.lh-shell #prospectReviewScreen .pr-btn{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-sans); font-size:12px; font-weight:600;
  letter-spacing:.03em; padding:11px 18px; border-radius:8px; cursor:pointer;
  background:transparent; border:1px solid var(--border-btn); color:var(--text-head); box-shadow:none; transition:all .15s;
}
body.lh-shell #prospectReviewScreen .pr-btn:hover{ border-color:var(--gold); color:var(--gold-dark); }
body.lh-shell #prospectReviewScreen .pr-btn:disabled{ opacity:.55; cursor:default; }
body.lh-shell #prospectReviewScreen .pr-btn-green{ background:var(--green); border-color:var(--green); color:#fff; font-weight:700; }
body.lh-shell #prospectReviewScreen .pr-btn-green:hover{ background:var(--green); border-color:var(--green); color:#fff; opacity:.9; }
body.lh-shell #prospectReviewScreen .pr-btn-red{ background:transparent; border-color:var(--border-btn); color:var(--red); }
body.lh-shell #prospectReviewScreen .pr-btn-red:hover{ border-color:var(--red); color:var(--red); }

/* "Download all" / file "Open" → gold-dark text links */
body.lh-shell #prospectReviewScreen .pr-file .pr-btn,
body.lh-shell #prospectReviewScreen .pr-sec [data-download-all]{
  border:none; background:transparent; padding:0; font-size:11px; font-weight:600; color:var(--gold-dark);
}
body.lh-shell #prospectReviewScreen .pr-file .pr-btn:hover,
body.lh-shell #prospectReviewScreen .pr-sec [data-download-all]:hover{ opacity:.7; color:var(--gold-dark); }

/* ---- empty / muted states ---- */
body.lh-shell #prospectReviewScreen .pr-empty{
  font-size:13px; color:var(--text-faint); padding:22px 14px; border-top:1px solid var(--rule);
}
body.lh-shell #prospectReviewScreen .pr-detail-pane > .pr-empty{ border-top:none; padding:40px 4px; }
body.lh-shell #prospectReviewScreen .pr-muted{ color:var(--text-faint); }

/* ---- responsive: stack the master/detail below the editor breakpoint ---- */
@media (max-width:880px){
  body.lh-shell #prospectReviewScreen .pr-split{ grid-template-columns:1fr; gap:20px; }
}
