/* R479 candidate detail — scoped, compact, no modal and no document scroll. */
#r83-candidate-aside{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
#r83-candidate-aside[hidden]{display:none!important}
#r83-candidate-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;padding-bottom:20px}
#r83-candidate-content .r479-profile{display:grid;gap:10px;margin-top:12px}
#r83-candidate-content .r479-section{background:#fff;border:1px solid #dce7f3;border-radius:9px;padding:11px 12px;min-width:0}
#r83-candidate-content .r479-heading{font-size:12px;line-height:1.3;font-weight:750;color:#15365b;margin:0 0 9px}
#r83-candidate-content .r479-fields{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);row-gap:8px;column-gap:12px;margin:0}
#r83-candidate-content .r479-fields dt{font-size:11px;font-weight:600;color:#647b97;overflow-wrap:anywhere}
#r83-candidate-content .r479-fields dd{font-size:12px;line-height:1.4;color:#173b60;font-weight:600;overflow-wrap:anywhere;margin:0}
#r83-candidate-content .r479-muted{font-size:12px;line-height:1.5;color:#607c97;margin:8px 0}
#r83-candidate-content .r479-notice{font-size:12px;line-height:1.5;border:1px solid #b7dbe7;background:#eff9fc;color:#144263;padding:10px;border-radius:8px}
#r83-candidate-content .r479-error{font-size:12px;line-height:1.45;color:#b42318;padding:10px 0}
#r83-candidate-content .r479-edit{justify-self:start;font-size:12px;min-height:34px;padding:0 13px;margin:4px 0}
#r83-candidate-content .r479-editor{padding:12px 1px;display:grid;gap:12px}
#r83-candidate-content .r479-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#r83-candidate-content .r479-field{display:flex;flex-direction:column;gap:5px;min-width:0}
#r83-candidate-content .r479-field span{font-size:11px;font-weight:700;color:#375b7a}
#r83-candidate-content .r479-field input,#r83-candidate-content .r479-field select,#r83-candidate-content .r479-field textarea{width:100%;min-height:34px;font-size:13px;box-sizing:border-box;border:1px solid #ccd9e7;border-radius:7px;padding:7px 8px;background:#fff;color:#173b60}
#r83-candidate-content .r479-field textarea{min-height:68px;resize:vertical}
#r83-candidate-content .r479-actions{display:flex;gap:8px;position:sticky;bottom:0;background:#fff;padding:10px 0;border-top:1px solid #edf1f7;z-index:1}
#r83-candidate-content .r479-actions button{min-height:36px;font-size:12px}
@media(max-width:1050px){#r83-candidate-content .r479-editor-grid{grid-template-columns:1fr}}

/* R480: complete submission is the single detail renderer; explicit view-only fields */
#r83-candidate-content .r480-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;border-bottom:1px solid #dce7f3;padding:3px 0 10px}
#r83-candidate-content .r480-profile-heading strong{color:#12365d;font-size:14px}
#r83-candidate-content .r480-readonly-badge{color:#385c78;background:#ecf3fb;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:650}
#r83-candidate-content .r480-unavailable{color:#7b8ba3;font-weight:500;font-style:italic}
#r83-candidate-content .r480-locked{border:1px solid #d3dfec;background:#f6f9fd;padding:11px;border-radius:9px}
#r83-candidate-content .r480-locked .r479-section{background:transparent;border:0;padding:0}
#r83-candidate-content .r479-fields dt{font-size:12px}
#r83-candidate-content .r479-fields dd{font-size:12px}
#r83-candidate-content .r479-edit{margin:0}

/* R481 | Fix legacy R278/R280/R452 display:block!important overriding the
   R479/R480 flex scroll region. Keep the right details header visible while
   only its content scrolls. Scope to My Candidates; do not change page scroll. */
body.saas-on .saas-workspace #candidates-panel #r83-candidate-split #r83-candidate-aside:not([hidden]) {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.saas-on .saas-workspace #candidates-panel #r83-candidate-aside .r83-aside-top {
  flex:0 0 auto!important;
  min-height:0;
  position:relative;
  z-index:2;
}
body.saas-on .saas-workspace #candidates-panel #r83-candidate-aside #r83-candidate-content {
  display:block;
  flex:1 1 0%!important;
  height:0!important;
  min-height:0!important;
  min-width:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-gutter:stable;
  padding-bottom:24px;
}
body.saas-on .saas-workspace #candidates-panel #r83-candidate-aside #r83-candidate-content .r479-full-detail {
  min-width:0;
  padding-bottom:10px;
}
body.saas-on .saas-workspace #candidates-panel #r83-candidate-split .r83-candidate-main {
  min-height:0!important;
  overflow:hidden!important;
}
body.saas-on .saas-workspace #candidates-panel #r83-candidate-split .r83-candidate-main #candidates-list {
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
}
@media (max-width:900px) {
  body.saas-on .saas-workspace #candidates-panel #r83-candidate-split #r83-candidate-aside:not([hidden]) {
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }
  body.saas-on .saas-workspace #candidates-panel #r83-candidate-aside #r83-candidate-content {
    scrollbar-gutter:auto;
  }
}


/* R482: Premium candidate profile - scoped to the independent right details scroll. */
#r83-candidate-content .r482-profile{gap:0;margin-top:0;min-height:100%;}
#r83-candidate-content .r482-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 3px 10px;background:#fff;}
#r83-candidate-content .r482-person{display:flex;align-items:center;gap:10px;min-width:0;flex:1;}
#r83-candidate-content .r482-avatar{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e7f1fc;color:#134875;font-weight:800;font-size:14px;}
#r83-candidate-content .r482-identity{min-width:0;flex:1;}
#r83-candidate-content .r482-person-name{font-size:15px;line-height:1.4;color:#122e4d;font-weight:800;display:block;overflow-wrap:anywhere;}
#r83-candidate-content .r482-person-sub{font-size:11px;color:#67809c;margin:3px 0 0;overflow-wrap:anywhere;}
#r83-candidate-content .r482-hero-actions{display:flex;align-items:center;gap:6px;}
#r83-candidate-content .r482-edit-btn{padding:8px 12px;min-height:34px;border-radius:7px;font-size:12px;font-weight:750;white-space:nowrap;}
#r83-candidate-content .r482-edit-unavailable{font-size:11px;color:#6c829d;max-width:148px;text-align:right;line-height:1.4;}
#r83-candidate-content .r482-statusline{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:2px 2px 11px;border-bottom:1px solid #e2eaf3;}
#r83-candidate-content .r482-statusline span{font-size:10px;font-weight:700;border-radius:5px;padding:5px 8px;}
#r83-candidate-content .r482-stage{background:#e8f3ff;color:#1762a0;}
#r83-candidate-content .r482-data-note{background:#f1f5f9;color:#526982;}
#r83-candidate-content .r482-sync-note{background:#fff7e5;color:#94620d;}
#r83-candidate-content .r482-tabs{display:flex;gap:3px;align-items:stretch;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #dce6ef;margin:3px -2px 0;position:sticky;top:0;z-index:3;background:#fff;}
#r83-candidate-content .r482-tabs::-webkit-scrollbar{display:none;}
#r83-candidate-content .r482-tab{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:#677e99!important;min-height:39px;white-space:nowrap;padding:9px 11px!important;font-size:12px!important;font-weight:750;cursor:pointer;}
#r83-candidate-content .r482-tab.is-current{color:#0d5187!important;border-bottom-color:#126ba9!important;}
#r83-candidate-content .r482-tab:focus-visible,#r83-candidate-content .r482-edit-btn:focus-visible{outline:2px solid #2499d1;outline-offset:-2px;}
#r83-candidate-content .r482-views{padding:10px 0 22px;}
#r83-candidate-content .r482-view{display:grid;gap:9px;min-width:0;}
#r83-candidate-content .r482-view[hidden]{display:none!important;}
#r83-candidate-content .r482-view .r479-section{border-color:#dfe8f1;background:#fff;box-shadow:0 1px 2px rgba(12,38,70,.035);}
#r83-candidate-content .r482-view .r479-heading{margin-bottom:11px;font-size:12px;color:#173a5f;}
#r83-candidate-content .r482-view .r479-fields{grid-template-columns:minmax(120px,44%) minmax(0,1fr);row-gap:10px;}
#r83-candidate-content .r482-helper{font-size:11px;line-height:1.55;color:#5f7690;background:#f6f9fd;border:1px solid #e2eaf2;border-radius:7px;padding:10px;}
#r83-candidate-content .r482-edit-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#r83-candidate-content .r482-edit-title{color:#153b60;font-size:15px;font-weight:800;margin:0;}
#r83-candidate-content .r482-back{font-size:11px;min-height:32px;}
#r83-candidate-content .r482-protected{background:#f4f8fd;border:1px solid #d9e4f0;border-radius:9px;padding:10px 12px;}
#r83-candidate-content .r482-protected-summary{font-size:12px;font-weight:800;color:#315576;cursor:pointer;}
#r83-candidate-content .r482-protected .r479-section{margin-top:10px;}
#r83-candidate-content .r482-form-section{border:1px solid #dde6f0;border-radius:9px;padding:12px;display:grid;gap:6px;}
#r83-candidate-content .r482-form-section .r479-heading{margin:0 0 5px;}
#r83-candidate-content .r479-editor-grid{grid-template-columns:1fr;gap:10px;}
@media(min-width:1400px){#r83-candidate-content .r482-form-section .r479-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:580px){#r83-candidate-content .r482-hero{align-items:flex-start;}#r83-candidate-content .r482-hero-actions{width:100%;}#r83-candidate-content .r482-edit-btn{width:100%;}#r83-candidate-content .r482-tab{padding:9px 10px!important;font-size:11px!important;}}

/* R483: secure CV controls; scoped to one candidate detail panel only. */
#r83-candidate-content .r482-hero-actions{flex-wrap:wrap;}
#r83-candidate-content .r483-quick-cv{min-height:34px;padding:7px 11px;font-size:12px;font-weight:750;border:1px solid #b8d4ec;background:#eff7ff;color:#15598d;border-radius:7px;cursor:pointer;}
#r83-candidate-content .r483-file-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:2px 0 5px;}
#r83-candidate-content .r483-file-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 12px;font-size:12px!important;font-weight:750;border-radius:7px;line-height:1.3;text-decoration:none!important;cursor:pointer;}
#r83-candidate-content .r483-file-btn.primary{background:#12365d!important;border:1px solid #12365d!important;color:#fff!important;}
#r83-candidate-content .r483-file-btn.secondary{background:#fff!important;border:1px solid #cbddeb!important;color:#164c7b!important;}
#r83-candidate-content .r483-pdf-viewer{border:1px solid #d7e5f2;border-radius:10px;background:#fff;overflow:hidden;min-width:0;}
#r83-candidate-content .r483-pdf-viewer[hidden]{display:none!important;}
#r83-candidate-content .r483-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #e0eaf4;font-size:12px;color:#18466f;}
#r83-candidate-content .r483-cv-frame{display:block;width:100%;height:min(65vh,680px);min-height:350px;border:0;background:#f7f9fc;}
#r83-candidate-content .r483-private-note{margin:4px 0;padding:8px 10px;border:1px solid #e1eaf3;border-radius:7px;background:#f8fafc;color:#57728c;font-size:11px;line-height:1.5;}
#r83-candidate-content .r483-file-btn:focus-visible,#r83-candidate-content .r483-quick-cv:focus-visible{outline:2px solid #2b91c8;outline-offset:2px;}
@media(max-width:580px){#r83-candidate-content .r483-file-btn{flex:1 1 45%;}#r83-candidate-content .r483-cv-frame{height:55vh;min-height:300px;}}
