/* ─── DetailPanel 样式 ────────────────────────────────── */

.wk-matter-side-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.wk-matter-side-panel__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
}

.wk-matter-detail__meta {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 事项名编辑输入框 */
.wk-detail-panel__title-input {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  color: var(--wk-text-primary);
  margin: 0 0 var(--wk-sp-2);
  line-height: 1.4;
  padding: 4px 8px;
  border: 1px solid var(--wk-brand-primary, #7C5CFC);
  border-radius: 4px;
  background: var(--wk-bg-surface);
  outline: none;
  box-sizing: border-box;
}

/* 可点击的标题（进入编辑模式） */
.wk-detail-panel__title-clickable {
  cursor: pointer;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 4px;
  transition: background 150ms;
}

.wk-detail-panel__title-clickable:hover {
  background: var(--wk-bg-item-hover, rgba(0, 0, 0, 0.03));
}

/* 提醒时间按钮组 */
.wk-detail-panel__remind-btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid var(--wk-border-default, #e5e5e5);
  border-radius: 6px;
  background: var(--wk-bg-surface, #fff);
  color: var(--wk-text-primary, #1a1a1a);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-detail-panel__remind-btn:hover:not(:disabled) {
  background: var(--wk-bg-item-hover, rgba(0, 0, 0, 0.03));
  border-color: var(--wk-brand-primary, #7C5CFC);
}

.wk-detail-panel__remind-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wk-detail-panel__remind-btn--active {
  background: rgba(124, 92, 252, 0.1);
  color: #7C5CFC;
  border-color: #7C5CFC;
  font-weight: 600;
}

.wk-detail-panel__remind-btn--active:hover {
  background: rgba(124, 92, 252, 0.15);
}

/* 来源频道跳转按钮 */
.wk-detail-panel__channel-btn {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--wk-border-default, #e5e5e5);
  border-radius: 6px;
  background: var(--wk-bg-surface, #fff);
  color: var(--wk-brand-primary, #7C5CFC);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
  text-align: left;
}

.wk-detail-panel__channel-btn:hover {
  background: var(--wk-brand-tint-03, rgba(124, 92, 252, 0.03));
  border-color: var(--wk-brand-primary, #7C5CFC);
}

.wk-matter-detail__action-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: color 150ms;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
}

.wk-matter-detail__action-btn:hover {
  color: #7C5CFC;
}

/* DatePicker 对齐其他 input 样式 */
.wk-matter-side-panel .semi-input-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.wk-matter-side-panel .semi-input-wrapper:hover,
.wk-matter-side-panel .semi-input-wrapper-focus {
  border-color: #7C5CFC !important;
  box-shadow: none !important;
}

.wk-matter-side-panel .semi-input {
  background: transparent !important;
  font-size: 13px !important;
}
