/* 长文字完整显示：只读文字块、自动增高多行框、列表截断辅助样式。 */

/* 只读时隐藏原控件（保留在 DOM 中供数据读取），显示文字块。 */
.op-readonly-source.op-readonly-source { display: none; }
.op-readonly-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--op-radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--semi-font-size-regular);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  user-select: text;
  cursor: text;
}
.op-readonly-text.is-empty { color: var(--muted); }

/* 自动增高多行框：rows=1 起步，最多 6 行后出现滚动条。 */
textarea.op-autogrow {
  min-height: 0;
  max-height: calc(6lh + 12px);
  line-height: 1.5;
  padding: 5px 10px;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.procurement-field textarea.op-autogrow { padding: 10px 12px; max-height: calc(6lh + 22px); }
/* 双列表单中，同行另一列顶部对齐。 */
.workflow-form-grid { align-items: start; }

/* 采购闭环只读详情：长文字完整换行。 */
.procurement-field > strong { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 观察池立项摘要「预估成本」：最多 2 行再省略。 */
#watchTable[data-section] .initiation-summary > span.initiation-cost,
.initiation-summary > span.initiation-cost {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}
