/* Performance workspace: compact lists and a document/assessment split. */
.pr-app {
  --pr-primary: #3370ff;
  --pr-ink: var(--ink, #1f2329);
  --pr-muted: var(--muted, #646a73);
  --pr-line: var(--line, #dee0e3);
  --pr-surface: var(--surface, #fff);
  --pr-soft: var(--surface-soft, #f5f6f7);
  width: 100%; min-width: 0; color: var(--pr-ink);
  background: var(--pr-surface); font-size: 13px; line-height: 1.6;
  border: 1px solid var(--pr-line); border-radius: 0; padding: 0;
}
.pr-option-pages { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--pr-muted); }
.pr-filter input { height: 30px; width: 160px; padding: 3px 8px; border: 1px solid var(--pr-line); border-radius: 4px; font: inherit; }
.pr-filter input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--pr-primary); }
.pr-toolbar:has(#prWorkflowScheme) { flex-wrap: wrap; gap: 12px; }
.pr-filter #prWorkflowScheme { max-width: 270px; }
.pr-deadline-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; margin-top: 10px; }
@media (max-width: 600px) { .pr-deadline-grid { grid-template-columns: 1fr; } }
.pr-difference-note { color: #b25d15; font-size: 12px; }
.pr-toolbar:has(#prCompareScheme) { flex-wrap: wrap; gap: 12px; }
.pr-filter #prCompareScheme { max-width: 290px; }
.pr-tabs, .pr-document-tabs { overflow-x: auto; }
.pr-table-scroll:has(caption) > table:has(.pr-difference-note) { min-width: 960px; }
.pr-app *, .pr-app *::before, .pr-app *::after { box-sizing: border-box; }
.pr-app h2, .pr-app h3, .pr-app p { margin: 0; }
.pr-app button { font: inherit; }
body .pr-app button.button {
  min-height: 30px; padding: 4px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 500; line-height: 20px;
  background: var(--pr-primary); border: 1px solid var(--pr-primary);
  color: #fff; box-shadow: none; transform: none;
}
body .pr-app button.button.secondary {
  color: var(--pr-ink); background: var(--pr-surface); border-color: var(--pr-line);
}
body .pr-app button.button:hover { filter: brightness(.97); box-shadow: none; transform: none; }
.pr-app .pr-link {
  display: inline; border: 0; background: transparent; color: var(--pr-primary);
  padding: 0; font-size: 13px; cursor: pointer; line-height: inherit;
  text-decoration: none; text-align: left; overflow-wrap: anywhere;
}
.pr-app .pr-link:hover { text-decoration: underline; }
.pr-app button:disabled { opacity: .4; cursor: not-allowed; }
#performanceReviewRoot[aria-busy="true"] .pr-table-scroll { opacity: .6; pointer-events: none; }
.pr-app :is(button, a, summary, select, input, textarea):focus-visible {
  outline: 2px solid var(--pr-primary); outline-offset: 2px;
}
.pr-header { min-height: 62px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pr-header > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.pr-header h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.pr-subtitle { font-size: 12px; color: var(--pr-muted); }
.pr-header-actions { display: flex; gap: 8px; }
.pr-tabs, .pr-document-tabs { display: flex; align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--pr-line); }
.pr-tabs button, .pr-document-tabs button {
  background: none; border: 0; border-radius: 0; color: var(--pr-muted);
  padding: 11px 0; margin: 0 0 -1px; border-bottom: 2px solid transparent;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.pr-tabs button[aria-current="page"], .pr-document-tabs button[aria-current="page"] { color: var(--pr-primary); border-bottom-color: var(--pr-primary); font-weight: 600; }
.pr-toolbar { display: flex; align-items: center; gap: 18px; min-height: 56px; padding: 12px 20px; }
.pr-scope-switch { display: flex; gap: 0; }
.pr-scope-switch button { padding: 4px 12px; color: var(--pr-muted); background: none; border: 1px solid var(--pr-line); cursor: pointer; }
.pr-scope-switch button:first-child { border-radius: 4px 0 0 4px; }
.pr-scope-switch button:last-child { border-left: 0; border-radius: 0 4px 4px 0; }
.pr-scope-switch button[aria-pressed="true"] { background: color-mix(in srgb, var(--pr-primary) 8%, var(--pr-surface)); color: var(--pr-primary); }
.pr-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pr-muted); }
.pr-filter select { min-width: 120px; height: 30px; border: 1px solid var(--pr-line); border-radius: 4px; padding: 3px 24px 3px 8px; font: inherit; color: var(--pr-ink); background: var(--pr-surface); }
.pr-toolbar-note, .pr-table-note, .pr-record-count { font-size: 12px; color: var(--pr-muted); }
.pr-record-count { margin-left: auto; white-space: nowrap; }
.pr-table-scroll { width: 100%; overflow-x: auto; border-top: 1px solid var(--pr-line); }
.pr-table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; font-size: 13px; }
.pr-table thead th { background: var(--pr-soft); color: var(--pr-muted); font-size: 12px; font-weight: 500; white-space: nowrap; height: 38px; position: sticky; top: 0; z-index: 1; }
.pr-table :is(td, th) { padding: 10px 16px; border-bottom: 1px solid var(--pr-line); vertical-align: middle; line-height: 1.6; }
.pr-table tbody th { font-weight: 500; }
.pr-table tbody tr:hover :is(td, th) { background: color-mix(in srgb, var(--pr-primary) 3%, var(--pr-surface)); }
.pr-table td:not(.pr-column-description):not(.pr-column-plan) { white-space: nowrap; }
.pr-table tbody th:first-child { min-width: 114px; }
.pr-table small { display: block; font-size: 11px; color: var(--pr-muted); font-weight: 400; }
.pr-column-plan { min-width: 160px; max-width: 240px; }
.pr-column-description { min-width: 220px; max-width: 380px; }
.pr-cell-text { display: block; max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pr-cell-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 160px; }
.pr-numeric { text-align: right; font-variant-numeric: tabular-nums; }
.pr-nowrap, .pr-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-range-divider { display: inline-block; margin: 0 5px; color: var(--pr-muted); }
.pr-row-actions { text-align: right; white-space: nowrap; min-width: 108px; }
.pr-row-actions .pr-link + .pr-link { margin-left: 12px; }
.pr-status { display: inline-block; color: var(--pr-muted); font-size: 12px; line-height: 20px; white-space: nowrap; }
.pr-status::before { content: ''; width: 5px; height: 5px; display: inline-block; border-radius: 50%; margin: 0 6px 2px 0; background: currentColor; }
.pr-status.is-success { color: #16845e; }
.pr-status.is-warning { color: #ba7016; }
.pr-overdue, .pr-table small.pr-overdue { color: #d34942; }
.pr-muted { color: var(--pr-muted); font-size: 12px; }
.pr-empty-cell { height: 140px; text-align: center; color: var(--pr-muted); font-size: 13px; }
.pr-table-note { padding: 8px 20px 0; }
.pr-pager, .pr-list-pager { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 12px; color: var(--pr-muted); }
.pr-pager { justify-content: space-between; }
.pr-pager > div { display: flex; gap: 6px; }
.pr-list-pager { justify-content: flex-end; padding: 10px 0; }
.pr-list-pager > span { margin-right: auto; }
.pr-message { margin: 10px 20px !important; padding: 8px 12px; background: var(--pr-soft); border-left: 2px solid #d39a41; font-size: 12px; }
.pr-message[hidden] { display: none; }
.pr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* One continuous reference document, one anchored assessment column. */
.pr-detail-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--pr-line); }
.pr-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--pr-muted); font-size: 12px; }
.pr-detail-title { display: flex; align-items: center; gap: 12px; padding: 18px 20px 4px; }
.pr-detail-title h2 { font-size: 20px; font-weight: 600; }
.pr-detail-title > span:not(.pr-status) { color: var(--pr-muted); font-size: 12px; }
.pr-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 2px 20px 14px; font-size: 12px; color: var(--pr-muted); }
.pr-flow { list-style: none; display: flex; overflow-x: auto; gap: 0; margin: 0; padding: 0 20px; border-top: 1px solid var(--pr-line); border-bottom: 1px solid var(--pr-line); background: var(--pr-soft); }
.pr-flow li { flex: 1; min-width: 92px; color: var(--pr-muted); padding: 10px 12px 10px 0; font-size: 12px; white-space: nowrap; }
.pr-flow li > span { margin-right: 5px; font-variant-numeric: tabular-nums; }
.pr-flow li.active { color: var(--pr-primary); font-weight: 600; }
.pr-flow li.done { color: var(--pr-ink); }
.pr-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 288px; align-items: start; }
.pr-document { min-width: 0; border-right: 1px solid var(--pr-line); min-height: 440px; }
.pr-document-tabs { gap: 20px; }
.pr-document-body { padding: 0 20px 12px; }
.pr-section { padding: 18px 0; min-width: 0; border-bottom: 1px solid var(--pr-line); }
.pr-section:last-child { border-bottom: 0; }
.pr-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pr-section h3, .pr-assessment h3 { font-size: 14px; font-weight: 600; }
.pr-section h3 > span { font-size: 12px; color: var(--pr-muted); font-weight: 400; margin-left: 5px; }
.pr-document .pr-table { font-size: 12px; }
.pr-document .pr-table :is(th,td) { padding: 9px 10px; }
.pr-document .pr-table thead th { height: 34px; font-size: 11px; }
.pr-document .pr-column-description { min-width: 150px; }
.pr-document .pr-column-plan { min-width: 135px; }
.pr-goal-document, .pr-text p, .pr-history-reason { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.pr-text { padding: 0 0 14px; }
.pr-text:last-child { padding-bottom: 0; }
.pr-text small { display: block; color: var(--pr-muted); font-size: 12px; margin-bottom: 5px; }
.pr-text p { font-size: 13px; }
.pr-standards { margin-top: 12px; }
.pr-standards summary { cursor: pointer; color: var(--pr-primary); font-size: 12px; }
.pr-standards dl { margin: 10px 0 0; border-top: 1px solid var(--pr-line); }
.pr-standards dl > div { display: grid; grid-template-columns: 116px minmax(0,1fr); border-bottom: 1px solid var(--pr-line); }
.pr-standards dt { padding: 10px; background: var(--pr-soft); font-weight: 500; font-size: 12px; }
.pr-standards dt > span { display: block; color: var(--pr-muted); font-weight: 400; }
.pr-standards dd { margin: 0; padding: 10px 12px; white-space: pre-wrap; font-size: 12px; line-height: 1.7; }
.pr-assessment { padding: 18px 20px; position: sticky; top: 12px; }
.pr-assessment section + section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--pr-line); }
.pr-score-lines { margin: 12px 0 0; }
.pr-score-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 12px; }
.pr-score-lines dt { color: var(--pr-muted); }
.pr-score-lines dt small { margin-left: 4px; color: var(--pr-muted); font-size: 11px; }
.pr-score-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pr-score-lines .pr-score-total { padding: 10px 0 7px; margin-top: 7px; border-top: 1px solid var(--pr-line); }
.pr-score-total dd { font-size: 20px; font-weight: 600; }
.pr-score-total dt { color: var(--pr-ink); font-weight: 500; }
.pr-assessment-note { color: var(--pr-muted); font-size: 11px; padding-top: 8px; }
.pr-workflow-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pr-workflow-actions .button { width: 100%; }
/* Forms keep shared personnel selection and existing save/permission behavior. */
.pr-overlay { position: fixed; inset: 0; background: #18283e55; display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.pr-modal { width: 680px; max-width: 100%; max-height: 88vh; overflow-y: auto; background: var(--pr-surface); color: var(--pr-ink); border: 1px solid var(--pr-line); border-radius: 6px; padding: 20px 24px; box-shadow: 0 8px 32px #17243926; }
.pr-modal > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--pr-line); margin-bottom: 16px; }
.pr-modal h3 { font-size: 16px; font-weight: 600; }
.pr-modal footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--pr-line); padding-top: 14px; margin-top: 20px; }
.pr-field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--pr-ink); font-size: 12px; }
.pr-field input, .pr-field textarea, .pr-field select, .pr-source-picker input, .pr-source-picker select {
  width: 100%; border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-ink); padding: 6px 9px; border-radius: 4px; font: inherit; font-size: 13px; min-height: 32px;
}
.pr-field textarea { resize: vertical; line-height: 1.7; }
.pr-modal .pr-muted { margin-bottom: 14px; }
.pr-form-error { color: #d34942; font-size: 12px; white-space: pre-wrap; }
.pr-source-picker { padding: 10px; background: var(--pr-soft); margin-bottom: 14px; }
.pr-source-picker > div { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; }
.pr-source-picker[hidden] { display: none; }
.pr-inspect-meta { margin: 0; }
.pr-inspect-meta > div { display: grid; grid-template-columns: 100px 1fr; padding: 5px 0; font-size: 12px; }
.pr-inspect-meta dt { color: var(--pr-muted); }
.pr-inspect-meta dd { margin: 0; }
.performance-review-navigation { border: 0 !important; border-bottom: 1px solid var(--line,#dee0e3) !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; gap: 24px !important; margin-bottom: 12px; box-shadow: none !important; }
.performance-review-navigation button { border-radius: 0 !important; background: transparent !important; padding: 9px 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; }
.performance-review-navigation button.active { color: #3370ff !important; border-bottom-color: #3370ff !important; }
@media (max-width: 1024px) {
  .pr-detail-layout { grid-template-columns: minmax(0,1fr) 244px; }
  .pr-assessment { padding: 16px; }
  .pr-document-body { padding: 0 16px 12px; }
}
@media (max-width: 760px) {
  .pr-header { padding: 12px; gap: 8px; }
  .pr-header > div:first-child { display: block; }
  .pr-header h2 { font-size: 16px; }
  .pr-subtitle { display: none; }
  .pr-tabs, .pr-document-tabs { padding: 0 12px; gap: 20px; overflow-x: auto; }
  .pr-toolbar { padding: 10px 12px; flex-wrap: wrap; gap: 10px; }
  .pr-filter select { min-width: 100px; }
  .pr-record-count { margin-left: auto; }
  .pr-detail-layout { display: flex; flex-direction: column; }
  .pr-document { width: 100%; border-right: 0; min-height: 0; }
  .pr-assessment { width: 100%; position: static; border-top: 1px solid var(--pr-line); padding: 16px; }
  .pr-detail-header, .pr-detail-title { padding-left: 12px; padding-right: 12px; }
  .pr-detail-meta { padding: 2px 12px 12px; gap: 4px 12px; }
  .pr-flow { padding: 0 12px; }
  .pr-document-body { padding: 0 12px; }
  .pr-modal { padding: 16px; }
  .pr-overlay { padding: 12px; }
  .pr-pager { padding: 10px 12px; }
  .pr-standards dl > div { grid-template-columns: 90px minmax(0,1fr); }
}
.pr-table { table-layout: fixed; }
.pr-table-scroll > .pr-table thead th:first-child,
.pr-table-scroll > .pr-table tbody th:first-child { position: sticky; left: 0; background: var(--pr-surface); z-index: 2; }
.pr-table-scroll > .pr-table.has-actions thead th:last-child,
.pr-table-scroll > .pr-table.has-actions tbody td:last-child { position: sticky; right: 0; background: var(--pr-surface); z-index: 2; border-left: 1px solid var(--pr-line); }
.pr-table-scroll > .pr-table thead th:first-child,
.pr-table-scroll > .pr-table.has-actions thead th:last-child { background: var(--pr-soft); z-index: 3; }
.pr-table tbody th:first-child { min-width: 0; }
.pr-table .pr-column-plan { min-width: 0; }
.pr-table .pr-cell-text { max-width: 100%; }
.pr-contribution-preview { font-size: 12px; font-weight: 400; color: var(--pr-muted); margin-top: 5px; }
.pr-document .pr-table { table-layout: auto; }
.pr-document .pr-table tbody th:first-child { min-width: 180px; max-width: 250px; }
.pr-document .pr-table td.pr-column-description { min-width: 200px; }
.pr-document .pr-table .pr-row-actions { min-width: 84px; }
.pr-assessment-editor h4 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.pr-assessment-editor .pr-field { font-size: 12px; margin-bottom: 12px; }
.pr-assessment-editor textarea { min-height: 96px; }
.pr-assessment-editor footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--pr-line); padding-top: 12px; }
.pr-assessment-editor footer .button { width: auto; }

.pr-table tbody th > .pr-link { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pr-current-action h3 > small { margin-left: 7px; font-size: 11px; color: var(--pr-muted); font-weight: 400; }
.pr-assessment-editor .pr-field:has(input[type="number"]) { grid-template-columns: minmax(0,1fr) 82px; align-items: center; gap: 8px; }
.pr-assessment-editor textarea { min-height: 80px; height: 88px; }

.pr-progress-table :is(td,th) { padding: 10px; }
.pr-source-searchbar { display:flex; gap:8px; margin-bottom:8px; }
.pr-source-searchbar input { min-width:0; flex:1; }
.pr-document-tabs { overflow-x:auto; white-space:nowrap; }

.pr-document .pr-growth-table { table-layout:fixed; }
.pr-document .pr-growth-table tbody th:first-child { min-width:0; max-width:none; }
.pr-document .pr-growth-table .pr-row-actions { min-width:0; }
.pr-growth-table .pr-cell-preview { overflow-wrap:anywhere; }
.pr-document-tabs button { flex-shrink:0; }
.pr-growth-table .pr-cell-preview { min-width:0; max-width:100%; }
.pr-growth-table small { white-space:normal; overflow-wrap:anywhere; max-width:100%; }

.pr-task-heading{display:flex;align-items:center;gap:18px;padding:18px 20px;border-bottom:1px solid #e5e9ef}.pr-task-heading h3{margin:0 0 6px;font-size:18px}.pr-task-heading span{font-size:12px;color:#667085}.pr-task-heading>div{flex:1}.pr-task-flow{display:flex;flex-wrap:wrap;list-style:none;padding:12px 20px;margin:0;border-bottom:1px solid #e5e9ef;gap:8px;font-size:12px;color:#53657e}.pr-task-flow li:not(:last-child)::after{content:'›';margin-left:12px;color:#9aa7b8}.pr-task-heading+.pr-task-flow{background:#f8fafc}@media(max-width:700px){.pr-task-heading{flex-wrap:wrap}.pr-task-heading>div{flex-basis:65%}}

.pr-tools{border-bottom:1px solid #e5e9ef;padding:10px 18px;background:#fafbfd}.pr-tools>summary{cursor:pointer;font-size:12px;color:#637086}.pr-tools .pr-tabs,.pr-tools .pr-document-tabs{margin-top:8px;border-bottom:0}.pr-tools .pr-tabs{flex-wrap:wrap}

.pr-shared-group{border-bottom:1px solid #dfe6f0;margin:12px 0;background:#fff}
.pr-shared-heading{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 18px;background:#f1f5fd;color:#202d41;border:1px solid #dce5f4;border-radius:5px;font:inherit;cursor:pointer;text-align:left}
.pr-shared-heading span{font-size:12px;color:#65738a}.pr-shared-group .pr-table-scroll{margin:8px 0}
