/* Scoped to create/edit vacancy; follows the candidate profile palette. */
.vacancy-editor { width: min(880px, 96vw); min-width: 0; background: #f5f7fa; border: 1px solid #d9e2df; scroll-padding-block: 100px; }
.vacancy-editor .modalhead { padding: 20px 24px; gap: 16px; background: linear-gradient(110deg, #edf6f0, #fff 85%); border-bottom-color: #d9e6de; }
.ve-eyebrow { color: #426651; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.vacancy-editor h3 { color: #173d2b; font-size: 23px; letter-spacing: -.025em; }
.vacancy-editor .modalhead p { color: #52665e; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.vacancy-editor .ve-close { flex: 0 0 40px; height: 40px; padding: 0; border-color: #d4e1d9; }
.vacancy-editor .modalbody { display: grid; gap: 16px; padding: 20px 24px; }
.ve-section { min-width: 0; border: 1px solid #dce4ed; border-radius: 14px; background: #fff; overflow: clip; }
.ve-section h4, .ve-section > summary { margin: 0; padding: 13px 18px; color: #286449; background: #f0f7f3; border-bottom: 1px solid #d5e7dd; font-size: 14px; font-weight: 700; line-height: 1.45; }
.ve-section--blue h4 { color: #305f94; background: #f0f5fc; border-color: #d5e2f4; }
.ve-section--neutral > summary { color: #526178; background: #f8fafc; cursor: pointer; }
.ve-section > summary span { font-size: 12px; font-weight: 400; margin-left: 8px; }
.ve-section .formgrid { padding: 18px; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vacancy-editor .f { min-width: 0; }
.vacancy-editor .f label { color: #475569; font-size: 12px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.ve-optional { font-weight: 400; color: #64748b; }
.vacancy-editor :is(input, select, textarea) { min-width: 0; width: 100%; max-width: 100%; min-height: 43px; border-color: #cdd6e1; border-radius: 9px; font-size: 14px; line-height: 1.4; }
.vacancy-editor textarea { resize: vertical; }
.vacancy-editor :is(input, select, textarea):focus { border-color: #56836b; box-shadow: 0 0 0 3px #2864491f; }
.vacancy-editor :is(button, summary):focus-visible { outline: 3px solid #52856a; outline-offset: 3px; }
.vacancy-editor :is(input, select, textarea):is(:disabled, [readonly]) { background: #f4f6f8; color: #526173; opacity: 1; }
.vacancy-editor .hint { margin-top: 5px; font-size: 12px; line-height: 1.5; color: #64748b; }
.ve-setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 13px; border-radius: 10px; background: #f5f8f6; border: 1px solid #e0e9e3; }
.ve-setup .f label { font-size: 11px; color: #62716a; }
.ve-setup input[readonly] { background: transparent; border: 0; border-radius: 0; padding: 3px 0; min-height: 25px; box-shadow: none; color: #284d3a; font-weight: 700; }
.ve-setup-note { grid-column: 1 / -1; margin: 0; font-size: 11px; color: #62716a; }
.ve-status-help { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: #64748b; }
.ve-transition, .ve-reopen { display: grid; grid-template-columns: minmax(135px, .8fr) minmax(0, 1.4fr); gap: 12px; padding: 14px; border: 1px solid #edd8ac; border-radius: 11px; background: #fffbf1; }
.ve-transition p, .ve-reopen p { grid-column: 1 / -1; margin: 0; color: #7c612b; font-size: 12px; line-height: 1.5; }
.ve-hold-note { padding: 12px 14px; border: 1px solid #edd8ac; border-radius: 10px; background: #fffbf1; color: #7c612b; font-size: 12px; line-height: 1.5; }
.ve-history { padding: 0 18px 18px; font-size: 12px; color: #526178; }
.ve-history summary { cursor: pointer; font-weight: 650; padding: 5px 0; }
.ve-history ol { margin: 10px 0 0; padding-left: 22px; }
.ve-history li { padding: 4px 0; line-height: 1.6; overflow-wrap: anywhere; }
.vacancy-editor [hidden] { display: none !important; }
.vacancy-editor .modalfoot { flex-wrap: wrap; gap: 10px; padding: 14px 24px; border-top-color: #dce5e0; box-shadow: 0 -4px 16px #0f172a08; }
.vacancy-editor .modalfoot .btn { min-height: 44px; }
.vacancy-editor .modalfoot .primary { min-width: 145px; }
.ve-save-feedback { flex-basis: 100%; margin: 0; padding: 10px 12px; border: 1px solid #f0c7bc; border-radius: 8px; color: #9b3628; background: #fff5f1; font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) {
  .vacancy-editor { width: 100%; max-height: calc(100dvh - 24px); }
  .vacancy-editor .modalhead { padding: 16px; gap: 10px; }
  .vacancy-editor h3 { font-size: 20px; }
  .vacancy-editor .modalbody { padding: 12px; gap: 12px; }
  .ve-section h4, .ve-section > summary { padding: 12px 14px; }
  .ve-section .formgrid { padding: 14px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vacancy-editor :is(input, select, textarea) { min-height: 44px; font-size: 16px; }
  .ve-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ve-setup .f:first-child { grid-column: 1 / -1; }
  .ve-transition, .ve-reopen { grid-template-columns: minmax(0, 1fr); }
  .vacancy-editor .modalfoot { padding: 12px; gap: 8px; }
  .vacancy-editor .modalfoot .delete-record { flex-basis: 100%; text-align: left; margin: 0; }
}
