/* Recruitment description Quill editor */
.rde-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.rde-wrap .ql-toolbar.ql-snow {
  border: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
  font-family: inherit;
}
.rde-wrap .ql-container.ql-snow {
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  min-height: 160px;
  font-size: 0.95rem;
}
.rde-wrap .ql-editor {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.65;
  color: #0f172a;
}
.rde-wrap .ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}
.rde-wrap .ql-editor img,
.rde-wrap .ql-editor video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.rde-wrap .ql-editor iframe {
  max-width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 8px;
}
.rde-source-textarea {
  /* hidden but kept for .val() */
}
.recruitment-requirements-row {
  align-items: stretch;
}
.recruitment-requirements-row .rde-wrap {
  flex: 1;
}

/* Detail / overview rendered HTML */
.rde-rendered-html,
.rpd-desc-body.rde-rendered-html,
.recruitment-overview-text.rde-rendered-html {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.75;
  color: inherit;
}
.rde-rendered-html img,
.rde-rendered-html video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0;
  display: inline-block;
}
.rde-rendered-html iframe {
  max-width: 100%;
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 10px;
  margin: 8px 0;
}
.rde-rendered-html p { margin: 0 0 0.65em; }
.rde-rendered-html ul,
.rde-rendered-html ol { padding-left: 1.25em; margin: 0.4em 0 0.8em; }

/* Quill font whitelist classes (style attributors used, but keep fallbacks) */
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Microsoft YaHei"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Microsoft YaHei"]::before { content: '微软雅黑'; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="PingFang SC"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="PingFang SC"]::before { content: '苹方'; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Noto Sans SC"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Noto Sans SC"]::before { content: 'Noto Sans'; }
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before { content: attr(data-value); }
