/* 富文本编辑器（公告 + 活动内容共用，一人一出口） */
.x-form-dialog .el-dialog:has(.qk-notice-rich-wrap) {
  width: 920px !important;
  max-width: calc(100vw - 32px);
}

.qk-notice-rich-wrap {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.qk-notice-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  background: #f5f7fa;
  border-bottom: 1px solid #ebeef5;
}

.qk-notice-rich-toolbar button {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  background: #fff;
  color: #606266;
  font-size: 12px;
  cursor: pointer;
}

.qk-notice-rich-toolbar button:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

.qk-notice-rich-toolbar button.is-active {
  color: #409eff;
  border-color: #409eff;
  background: #ecf5ff;
}

.qk-notice-rich-editor {
  min-height: 220px;
  max-height: 480px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #303133;
  outline: none;
  word-break: break-word;
}

.qk-notice-rich-editor--activity {
  min-height: 280px;
  max-height: 560px;
}

.qk-notice-rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #c0c4cc;
}

.qk-notice-rich-editor img {
  max-width: 100%;
  height: auto;
}

.qk-notice-rich-editor table {
  border-collapse: collapse;
  max-width: 100%;
}

.qk-notice-rich-editor table td,
.qk-notice-rich-editor table th {
  border: 1px solid #dcdfe6;
  padding: 4px 8px;
}

.qk-notice-rich-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
}

.qk-notice-rich-editor--title,
.qk-notice-rich-wrap[data-qk-notice-field="title"] .qk-notice-rich-editor {
  min-height: 52px;
  max-height: 140px;
}

.notice-list-title-html,
.notice-list-expand-html {
  line-height: 1.5;
  word-break: break-word;
}

.notice-list-title-html span,
.notice-list-title-html strong,
.notice-list-expand-html span {
  line-height: inherit;
}

.notice-list-expand-html {
  max-height: 360px;
  overflow: auto;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  line-height: 1.65;
  word-break: break-word;
}

.notice-list-expand-html img {
  max-width: 100%;
  height: auto;
}

.qk-notice-html-src-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qk-notice-html-src-panel {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.qk-notice-html-src-title {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #ebeef5;
}

.qk-notice-html-src-area {
  flex: 1;
  min-height: 360px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  resize: vertical;
  font: 13px/1.5 Consolas, Monaco, monospace;
  outline: none;
}

.qk-notice-html-src-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #ebeef5;
}

.qk-notice-html-src-actions button {
  min-width: 88px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  background: #fff;
  cursor: pointer;
}

.qk-notice-html-src-apply {
  background: #409eff !important;
  border-color: #409eff !important;
  color: #fff !important;
}
