/* Payscale follows the Recruitment Tracker candidate-profile, panel, button and table system.
   All rules are scoped; no global shell, navigation or permission styles change. */
.ps-shell {
  width: min(1040px, 96vw);
  max-height: min(94vh, 940px);
  background: #f5f7fa;
  border: 1px solid #d9e2df;
  border-radius: 18px;
  box-shadow: 0 24px 72px rgba(15, 23, 42, .20);
  overflow-y: auto;
  scroll-padding-top: 105px;
}
.ps-shell .ps-modalhead {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 24px;
  gap: 16px;
  background: linear-gradient(110deg, #edf6f0, #fff 82%);
  border-bottom: 1px solid #d9e6de;
}
.ps-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ps-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #c7ddce;
  border-radius: 16px;
  background: #e0eee5;
  color: #20583b;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .01em;
}
.ps-heading { min-width: 0; }
.ps-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #426651;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ps-shell .ps-heading h3 {
  color: #17352a;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  margin: 0;
}
.ps-heading p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #52665e;
  font-size: 12px;
  line-height: 1.5;
}
.ps-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #edf3f9;
  color: #475569;
  border: 1px solid #dfe7ee;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  line-height: 1.3;
}
.ps-status--draft { background: #f1f5f9; color: #475569; border-color: #dce4ed; }
.ps-status--submitted { background: #fff4db; color: #805100; border-color: #f0dca7; }
.ps-status--returned { background: #fff0e5; color: #994d16; border-color: #efdbc8; }
.ps-status--authorized { background: #e8f6ee; color: #166534; border-color: #c5e4d2; }
.ps-shell .ps-close {
  min-height: 38px;
  min-width: 68px;
  border-color: #d4e1d9;
  flex: 0 0 auto;
  border-radius: 10px;
}
.ps-shell .modalbody { padding: 20px 24px 26px; }
.ps-box {
  min-width: 0;
  margin: 0 0 16px;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15,23,42,.025);
  padding: 16px 18px 18px;
}
.ps-box h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -16px -18px 16px;
  border-bottom: 1px solid #d5e7dd;
  border-radius: 13px 13px 0 0;
  padding: 13px 18px;
  background: #f0f7f3;
  color: #286449;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}
.ps-box h4:not(:first-child) { margin-top: 15px; }
.ps-section-no {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d5e7dd;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  color: #286449;
}
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr));
  gap: 13px;
  min-width: 0;
}
.ps-grid label, .ps-steps label, .ps-box > label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.ps-grid :is(input,select,textarea),
.ps-steps :is(input,select,textarea),
.ps-box > label :is(input,select,textarea),
.ps-box > select,
.ps-reason-panel textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cdd6e1;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font-size: 14px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}
.ps-grid :is(input,select,textarea):focus-visible,
.ps-steps :is(input,select,textarea):focus-visible,
.ps-box :is(input,select,textarea):focus-visible,
.ps-reason-panel textarea:focus-visible {
  outline: 0;
  border-color: #56836b;
  box-shadow: 0 0 0 3px rgba(40,100,73,.13);
}
.ps-shell :is(.btn,input[type=checkbox],input[type=radio]):focus-visible,
#ps-queue .btn:focus-visible, .ps-bench-setup summary:focus-visible {
  outline: 3px solid #52856a;
  outline-offset: 3px;
}
.ps-entry {
  min-width: 0;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #e2e8ef;
  border-radius: 11px;
  background: #f8fafc;
}
.ps-entry .ps-grid { gap: 12px; }
.ps-steps {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px,1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  margin: 10px 0;
  align-items: end;
}
.ps-steps .btn { min-height: 40px; }
.ps-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 14px;
  margin: 14px 0 0;
  border-top: 1px solid #e5eaf0;
}
.ps-actions .btn { min-height: 38px; }
.ps-check { display: flex !important; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0; }
.ps-check input { width: 18px; height: 18px; accent-color: var(--brand,#166534); }
.ps-score-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.ps-score-item {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  padding: 14px 16px;
}
.ps-score-item span {
  display: block;
  font-size: 11px;
  color: #68788a;
  font-weight: 650;
  margin-bottom: 7px;
}
.ps-score-item strong { display: block; color: #17352a; font-size: 21px; font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ps-score-item small { display: block; color: #738178; font-size: 11px; font-weight: 500; margin-top: 4px; }
.ps-warning {
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid #f0dca7;
  border-radius: 10px;
  background: #fff8e7;
  color: #795113;
  font-size: 13px;
  line-height: 1.5;
}
.ps-warning ul { margin: 7px 0 0; padding-left: 20px; }
.ps-banner {
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid #d5e7dd;
  border-radius: 10px;
  background: #eff7f2;
  color: #24573e;
  font-size: 13px;
}
.ps-error, .ps-ok { margin: 10px 0; padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.ps-error:not(:empty) { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ps-ok:not(:empty) { background: #ecfdf5; border: 1px solid #a7f3d0; color: #166534; }
.ps-scroll { max-width: 100%; overflow-x: auto; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.ps-table th {
  text-align: left;
  padding: 11px 13px;
  background: #f8fafc;
  color: #5d6e80;
  border-bottom: 1px solid #dce3eb;
  font-size: 11px;
  letter-spacing: .02em;
  font-weight: 750;
  white-space: nowrap;
}
.ps-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid #e7ecf2; color: #314457; vertical-align: middle; overflow-wrap: anywhere; }
.ps-table tr:hover td { background: #fbfdfc; }
.ps-small { margin: 8px 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.ps-reason-panel { padding: 14px; margin: 12px 0 16px; background: #f8fafc; border: 1px solid #dce5e0; border-radius: 12px; }
.ps-reason-panel label { display: block; color: #34495f; font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.ps-reason-panel textarea { min-height: 92px; resize: vertical; }
.ps-bench-setup { margin-top: 16px; border: 1px solid #dce5e0; border-radius: 14px; background: #fff; overflow: hidden; }
.ps-bench-setup summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px 18px; background: #eff7f2; color: #286449; font-size: 14px; font-weight: 750; cursor: pointer; }
.ps-bench-setup summary span { font-size: 11px; color: #64748b; font-weight: 600; }
.ps-bench-setup .ps-box { border: 0; box-shadow: none; margin: 0; border-radius: 0; }
.ps-bench-setup .ps-box h4 { display: none; }
.ps-queue-intro { padding: 12px 18px; margin: 0; font-size: 12px; line-height: 1.55; color: #64748b; border-bottom: 1px solid #e7ecf2; }
.ps-empty { padding: 22px 18px; color: #64748b; font-size: 13px; }
.ps-history-item p { color: #526277; font-size: 13px; line-height: 1.6; }
.ps-history-item .ps-history-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ps-modalhead + .modalbody { min-width: 0; }
@media (max-width: 760px) {
 .ps-shell { width: min(calc(100vw - 16px), 100%); max-height: calc(100dvh - 18px); border-radius: 14px; }
 .ps-shell .ps-modalhead { padding: 14px; }
 .ps-shell .modalbody { padding: 14px; }
 .ps-shell .ps-heading h3 { font-size: 18px; }
 .ps-avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 15px; }
 .ps-score-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ps-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ps-steps .btn { justify-self: start; }
 .ps-box { padding: 14px; }
 .ps-box h4 { margin: -14px -14px 14px; padding: 12px 14px; }
 .ps-actions { justify-content: stretch; }
 .ps-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
 .ps-grid { grid-template-columns: 1fr; }
 .ps-score-band { grid-template-columns: 1fr 1fr; }
 .ps-score-item { padding: 12px; }
 .ps-score-item strong { font-size: 17px; }
 .ps-steps { grid-template-columns: 1fr; }
 .ps-shell .ps-close { min-width: 60px; }
 .ps-heading p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
 .ps-shell, .ps-box, .ps-actions { scroll-behavior: auto; transition: none; }
}


/* Payscale candidate-profile evidence and controlled setup quick-add */
.ps-profile-source{background:#eef8f3;border:1px solid #bcdcc9;color:#18543a;border-radius:10px;padding:12px 14px;margin:10px 0 14px;font-size:12px;line-height:1.55}
.ps-source-warnings{border-left:3px solid #a16b2b;background:#fffaf0;padding:8px 12px;margin:8px 0 14px}
.ps-source-warnings p{margin:4px 0}
.ps-catalog-mask{position:fixed;inset:0;z-index:65;background:#112c2857;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.ps-catalog-popup{background:white;color:#162d2b;width:min(510px,95%);max-height:80vh;overflow-y:auto;border-radius:14px;padding:22px;box-shadow:0 14px 38px #142b2940;display:grid;gap:12px}
.ps-catalog-popup label{display:grid;gap:5px;font-size:12px;font-weight:600}
.ps-catalog-popup input,.ps-catalog-popup select{border:1px solid #cbdcd3;border-radius:8px;padding:10px;min-width:0}
.ps-catalog-popup .ps-actions{justify-content:flex-end;margin-top:6px}

.ps-source-hint{font-size:12px;line-height:1.5;color:#79561d;background:#fff9eb;border-radius:8px;padding:8px 11px;margin:10px 0}


/* Compact candidate-linked Payscale editor (QA only) */
.ps-shell .ps-catalog-control{display:grid;min-width:0;align-content:start;gap:6px}
.ps-shell .ps-field-head{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#475569;font-size:12px;font-weight:650}
.ps-shell .ps-field-head span{min-width:0}
.ps-shell .ps-catalog-control select{min-width:0;width:100%;border-radius:9px;min-height:39px;border:1px solid #d6e0e8;background:white;color:#273f52;font-size:13px;padding:8px}
.ps-shell .ps-add-link{border:0;background:transparent;color:#216e50;font-size:12px;font-weight:750;padding:2px 3px;white-space:nowrap;cursor:pointer}
.ps-shell .ps-add-link:hover{text-decoration:underline}
.ps-shell .ps-current-toggle{align-self:end;display:flex;align-items:center;gap:8px;padding:10px 2px}
.ps-shell .ps-check input[type="checkbox"],.ps-shell .ps-check input[type="radio"]{width:16px;height:16px;min-width:16px;min-height:16px;flex:0 0 16px;accent-color:#166534}
.ps-shell .ps-row-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px}
.ps-shell .ps-row-footer .ps-qualification-choice{margin:0}
.ps-shell .ps-inline-help{color:#6d7b8b;font-size:11px;margin:10px 0 0}
.ps-shell .ps-advanced{margin-top:12px;border-top:1px dashed #dce6df;padding-top:10px}
.ps-shell .ps-advanced summary{cursor:pointer;font-size:12px;font-weight:650;color:#526e61}
.ps-shell .ps-advanced .ps-grid{margin-top:12px}
.ps-shell .ps-entry{background:#f9fbfd;border:1px solid #e5ebf2;border-radius:12px;padding:12px;margin-bottom:10px}
.ps-shell .ps-entry .ps-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ps-shell .ps-box .ps-entry .ps-row-footer .btn{font-size:11px}
.ps-shell .ps-quickreview{border:1px solid #e4e9ef;background:#f9fbfc;border-radius:9px;padding:9px 12px;margin:8px 0 12px;color:#51657a}
.ps-shell .ps-quickreview summary{cursor:pointer;font-size:12px;font-weight:700}
.ps-shell .ps-quickreview ul{font-size:12px;padding-left:20px;margin:8px 0 4px}
@media(max-width:760px){.ps-shell .ps-entry .ps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ps-shell .ps-entry .ps-grid{grid-template-columns:1fr}}

/* Compact, calm candidate profile and draft status */
.ps-shell .ps-source-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 13px;margin:0 0 11px;background:#eef7f0;border:1px solid #d4e8db;border-radius:10px;color:#21583f;font-size:12px;line-height:1.45}
.ps-shell .ps-source-bar>div{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;flex:1}
.ps-shell .ps-source-bar span{color:#46745e}
.ps-shell .ps-source-bar .btn{white-space:nowrap}
.ps-shell .ps-inline-history{font-size:12px;margin:0 0 11px;padding:9px 12px;background:#f7f9fa;border-radius:9px;color:#5a6778}
.ps-shell .ps-draft-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 14px;margin-bottom:13px;border:1px solid #dce4eb;background:#f9fafc;border-radius:11px;font-size:12px;color:#435365}
.ps-shell .ps-draft-summary b{color:#56647a}
.ps-shell .ps-quickreview{background:#f9fafc;border:1px solid #e3e9ee;box-shadow:none}
.ps-shell .ps-quickreview summary{color:#425773;list-style-position:inside}

/* CPO authorizes one salary total; recruiter's allocation is a separate role. */
.ps-cpo-single-amount{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
.ps-cpo-single-amount input{min-height:41px}
.ps-recruiter-shell .ps-recruiter-total,.ps-recruiter-total{display:grid;gap:5px;background:#f0f7f3;border:1px solid #d3e6d8;border-radius:13px;padding:15px 18px;margin-bottom:14px}
.ps-recruiter-total span{font-size:12px;color:#446a54;font-weight:650}
.ps-recruiter-total strong{font-size:24px;line-height:1.25;color:#153c2b;font-variant-numeric:tabular-nums}
.ps-recruiter-total small{font-size:11px;color:#547463}
.ps-recruiter-shell .ps-allocate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ps-recruiter-shell [data-ps-field="splitCommission"]{background:#f3f6f8;color:#45606f;cursor:default}
.ps-recruiter-shell #ps-allocation-check{margin:10px 0;color:#376347}
@media(max-width:530px){.ps-cpo-single-amount,.ps-recruiter-shell .ps-allocate-grid{grid-template-columns:1fr}}


/* Effective-dated CPO salary decisions and released notes */
.ps-shell #ps-cpo-schedule{display:grid;gap:10px;margin:8px 0 12px}
.ps-shell #ps-future-salaries{display:grid;gap:9px}
.ps-shell .ps-future-salary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:10px;background:#f8fafb;border:1px solid #dce5ec;border-radius:11px;padding:12px}
.ps-shell .ps-future-salary>.btn{min-height:38px;white-space:nowrap}
.ps-shell .ps-schedule-actions{margin:0;padding:0;justify-content:flex-start}
.ps-shell #ps-decision-reason{display:block;min-height:68px;width:100%;resize:vertical;line-height:1.45;padding:10px 12px}
.ps-shell .ps-allocation-row{border:1px solid #e1e8ef;background:#f9fbfd;border-radius:11px;padding:12px;margin:10px 0}
.ps-shell .ps-allocation-row .ps-allocate-grid{margin:5px 0 0}
.ps-shell .ps-salary-date{font-size:12px;color:#3c5b4e;margin-bottom:8px}
.ps-shell .ps-compact-schedule{background:#f8fbf9;border:1px solid #d6e6dd;border-radius:10px;padding:11px 13px;margin:10px 0}
.ps-shell .ps-compact-schedule h4{font-size:12px;color:#24563f;margin:0 0 8px}
.ps-shell .ps-compact-schedule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e0eae4;font-size:12px}
.ps-shell .ps-compact-schedule-row strong{color:#1f5139}
.ps-shell .ps-cpo-visible-note{border-left:3px solid #2c6d5b;background:#f5faf7;padding:10px 13px;margin:12px 0;border-radius:0 10px 10px 0}
.ps-shell .ps-cpo-visible-note b{font-size:12px;color:#2c6d5b}
.ps-shell .ps-cpo-visible-note p{white-space:pre-wrap;margin:6px 0 0;font-size:12px;line-height:1.45;color:#283b42}
@media(max-width:640px){.ps-shell .ps-future-salary{grid-template-columns:1fr}.ps-shell .ps-future-salary>.btn{justify-self:start}}
