/* Light profile treatment, scoped to the existing candidate editor. */
.candidate-profile {
  min-width: 0;
  background: #f5f7fa;
  border: 1px solid #d9e2df;
  box-shadow: 0 24px 72px rgba(15, 23, 42, .2);
  scroll-padding-block: 120px 100px;
}
.candidate-profile .candidate-profile-head {
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(110deg, #eef6f1, #fff 76%);
  border-bottom-color: #d9e6de;
}
.candidate-profile-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.candidate-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border: 1px solid #c7ddce;
  border-radius: 16px;
  background: #e0eee5;
  color: #20583b;
  font-size: 19px;
  font-weight: 750;
}
.candidate-profile-heading { min-width: 0; }
.candidate-profile-eyebrow { margin-bottom: 4px; color: #426651; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.candidate-profile .candidate-profile-heading h3 { color: #17352a; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.candidate-profile-subtitle { margin-top: 5px; color: #52665e; font-size: 12px; line-height: 1.5; }
.candidate-profile .candidate-profile-close { flex: 0 0 40px; height: 40px; border-color: #d4e1d9; border-radius: 12px; font-size: 16px; }
.candidate-profile .modalbody { padding: 20px 24px 24px; }
.candidate-profile-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.candidate-profile .workflow-summary { background: #fff; border-color: #dce5e0; padding: 16px 18px; font-size: 13px; line-height: 1.5; }
.candidate-profile .workflow-actions { margin: 10px 0 7px; }
.candidate-profile-section {
  --profile-accent: #475b74;
  --profile-tint: #f3f6fa;
  --profile-edge: #dce4ed;
  min-width: 0;
  padding: 18px;
  gap: 16px;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .025);
}
.candidate-profile--sage { --profile-accent: #286449; --profile-tint: #f0f7f3; --profile-edge: #d5e7dd; }
.candidate-profile--blue { --profile-accent: #305f94; --profile-tint: #f0f5fc; --profile-edge: #d5e2f4; }
.candidate-profile--violet { --profile-accent: #695394; --profile-tint: #f6f3fc; --profile-edge: #e3daf3; }
.candidate-profile .candidate-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px -18px 0;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--profile-edge);
  border-radius: 13px 13px 0 0;
  background: var(--profile-tint);
  color: var(--profile-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.candidate-section-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid var(--profile-edge); border-radius: 9px; background: #fff; }
.candidate-section-icon svg { width: 18px; height: 18px; }
.candidate-profile-section .f { min-width: 0; }
.candidate-profile-section .f label { color: #475569; font-size: 12px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.candidate-profile-section :is(input:not([type="checkbox"]), select, textarea) { min-width: 0; max-width: 100%; min-height: 42px; border-color: #cdd6e1; border-radius: 9px; font-size: 14px; line-height: 1.4; }
.candidate-profile-section textarea { resize: vertical; }
.candidate-profile-section :is(input, select, textarea)::placeholder { color: #68788c; opacity: 1; }
.candidate-profile-section :is(input, select, textarea):focus { border-color: #56836b; box-shadow: 0 0 0 3px rgba(40, 100, 73, .12); }
.candidate-profile-section :is(input, select, textarea):is(:disabled, [readonly]) { background: #f4f6f8; color: #5b6676; opacity: 1; }
.candidate-profile :is(.btn, input[type="checkbox"]):focus-visible { outline: 3px solid #52856a; outline-offset: 3px; }
.candidate-profile-section .hint { margin-top: 5px; line-height: 1.5; }
.candidate-profile-section > .muted { color: #58677b; line-height: 1.5; }
.candidate-profile-section > [id$="Rows"] { display: grid; gap: 10px; }
.candidate-profile-section > [id$="Rows"]:empty { display: none; }
.candidate-profile-section > .btn.wide { justify-self: start; min-height: 38px; padding: 8px 12px; border-color: var(--profile-edge); color: var(--profile-accent); background: var(--profile-tint); }
.candidate-profile-section > .btn.wide:hover { background: #fff; border-color: var(--profile-accent); }
.candidate-profile-section :is(.interview-block, .assessment-block, .education-row, .experience-row) { min-width: 0; padding: 12px; border: 1px solid #e2e7ef; border-radius: 11px; background: #f9fafc; }
.candidate-profile-section :is(.interview-row, .assessment-row, .education-row, .experience-row) > * { min-width: 0; }
.candidate-profile-section :is(.int-remove, .assessment-remove, .row-remove) { min-height: 38px; align-self: end; color: #697386; background: #fff; }
.candidate-profile-section :is(.int-remove, .assessment-remove, .row-remove):hover { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
.candidate-profile-section .stage-control { padding: 14px; border-color: #d5e7dd; background: #f6faf7; }
.candidate-profile-section .toggleline { align-items: flex-start; line-height: 1.5; }
.candidate-profile-section .toggleline input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #286449; }
.candidate-profile-section .stage-preview { gap: 10px; }
.candidate-profile .candidate-editor-foot { padding: 16px 24px; border-top-color: #dde5e1; box-shadow: 0 -4px 16px rgba(15, 23, 42, .035); }
.candidate-profile .candidate-editor-foot .btn { min-height: 42px; }
.candidate-profile .candidate-editor-foot .primary { min-width: 146px; box-shadow: 0 3px 7px rgba(22, 101, 52, .13); }

@media (max-width: 720px) {
  .candidate-profile { width: 100%; max-height: calc(100dvh - 36px); }
  .candidate-profile .candidate-profile-head { padding: 16px; gap: 10px; }
  .candidate-profile-identity { gap: 10px; }
  .candidate-profile-avatar { flex-basis: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
  .candidate-profile .candidate-profile-heading h3 { font-size: 19px; }
  .candidate-profile .modalbody { padding: 14px; }
  .candidate-profile-content { gap: 12px; }
  .candidate-profile-section { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .candidate-profile .candidate-section-heading { margin: -14px -14px 0; padding: 11px 14px; }
  .candidate-profile-section :is(.interview-row, .assessment-row, .education-row, .experience-row, .stage-control) { grid-template-columns: minmax(0, 1fr); }
  .candidate-profile-section :is(input:not([type="checkbox"]), select, textarea) { min-height: 44px; font-size: 16px; }
  .candidate-profile-section .btn { min-height: 42px; }
  .candidate-profile-section :is(.int-remove, .assessment-remove, .row-remove) { justify-self: end; }
  .candidate-profile .candidate-editor-foot { padding: 12px 14px; gap: 8px; }
  .candidate-profile .candidate-editor-foot .delete-record { flex-basis: 100%; margin: 0; text-align: left; }
}

.candidate-profile-identity{position:relative}
.candidate-profile .candidate-profile-avatar{overflow:hidden;cursor:default;user-select:none}
.candidate-profile .candidate-profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.candidate-profile .candidate-photo-upload{position:absolute;left:42px;top:43px;z-index:3;cursor:pointer;border-radius:8px;background:#fff;border:1px solid #d5e3de;color:#286449;padding:2px 5px;font-size:10px;font-weight:700}
.candidate-profile .candidate-photo-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.candidate-profile .candidate-photo-upload:focus-within{outline:2px solid #25754f}

/* Center the short CV heading within its standalone section without stray separators. */
.candidate-profile .intake-candidate > .candidate-cv-title{
 display:flex;justify-content:center;align-items:center;text-align:center;
 margin:-18px -18px 0;padding:12px 18px;width:calc(100% + 36px);
 background:#f8fafb;color:#25394d;min-height:44px;white-space:normal;
}
.candidate-profile .intake-candidate.candidate-is-collapsed{padding-bottom:0}
.candidate-profile .intake-candidate > .candidate-cv-title .candidate-collapse-arrow{position:absolute;right:20px}

.candidate-profile-section .candidate-catalog-field{min-width:0;display:flex;flex-direction:column;gap:5px}
.candidate-profile-section .candidate-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.candidate-profile-section .candidate-catalog-heading span{font-size:10px;color:#64748b;font-weight:700}
.candidate-profile-section .candidate-catalog-heading [data-action="addCandidateCatalog"]{padding:3px 6px;min-height:26px;color:#176b4b;font-size:10px;border-color:#cfe0d9}
.candidate-profile-section .candidate-catalog-field>select{width:100%;max-width:100%;min-width:0;min-height:36px}
.candidate-profile-section #candidate-catalog-note:not(:empty){border:1px solid #d0e7d9;background:#f4fbf6;border-radius:8px;padding:8px 10px}


/* Candidate education / experience: aligned labels, identical field heights,
   comfortable spacing and no stretched major, year or month inputs. */
.candidate-profile .candidate-profile-section .education-row,
.candidate-profile .candidate-profile-section .experience-row{
  align-items:end;
  column-gap:10px;
  row-gap:10px;
  padding:12px;
}
.candidate-profile .candidate-profile-section .education-row{
  grid-template-columns:minmax(0,1.04fr) minmax(0,.97fr) minmax(0,1.19fr) minmax(0,.53fr) auto;
}
.candidate-profile .candidate-profile-section .experience-row{
  grid-template-columns:minmax(0,1.08fr) minmax(0,1.03fr) minmax(0,.83fr) minmax(0,.83fr) auto;
}
.candidate-profile .candidate-profile-section :is(.education-row,.experience-row) :is(.candidate-catalog-field,.candidate-row-field){
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:6px;
  align-self:end;
  justify-content:flex-end;
}
.candidate-profile .candidate-profile-section :is(.candidate-catalog-heading,.candidate-row-heading){
  display:flex;
  align-items:center;
  min-width:0;
  height:27px;
  min-height:27px;
  margin:0;
  color:#53657a;
  font-size:11px;
  line-height:1.2;
  font-weight:650;
}
.candidate-profile .candidate-profile-section .candidate-catalog-heading{
  justify-content:space-between;
  gap:6px;
}
.candidate-profile .candidate-profile-section .candidate-catalog-heading span{
  font-size:11px;
  line-height:1.2;
}
.candidate-profile .candidate-profile-section :is(.education-row,.experience-row) :is(input:not([type="checkbox"]),select){
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  height:40px;
  min-height:40px;
  max-height:40px;
  padding:8px 9px;
  margin:0;
  border-radius:9px;
  font-size:12.5px;
  line-height:1.2;
}
.candidate-profile .candidate-profile-section :is(.education-row,.experience-row) input[type="month"]{
  padding-inline:7px;
}
.candidate-profile .candidate-profile-section :is(.education-row,.experience-row) .row-remove{
  height:40px;
  min-height:40px;
  align-self:end;
  margin:0;
  white-space:nowrap;
}
@media(max-width:900px){
  .candidate-profile .candidate-profile-section .education-row,
  .candidate-profile .candidate-profile-section .experience-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .candidate-profile .candidate-profile-section :is(.education-row,.experience-row) .row-remove{
    grid-column:2;
    justify-self:end;
  }
}
@media(max-width:620px){
  .candidate-profile .candidate-profile-section .education-row,
  .candidate-profile .candidate-profile-section .experience-row{
    grid-template-columns:minmax(0,1fr);
  }
  .candidate-profile .candidate-profile-section :is(.education-row,.experience-row) .row-remove{
    grid-column:1;
  }
}
