/* 公共基础信息工作台：诉讼请求列表 + 右侧智能字段卡容器 */
.cmt_claim_request_list {
  display: grid;
  gap: 7px;
}

.cmt_claim_request_item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 82px 6px 8px;
  border: 1px solid var(--cmt-line);
  border-radius: 6px;
  background: #f8fafc;
}

.cmt_claim_request_item[role="button"] {
  cursor: pointer;
}

.cmt_claim_request_item[role="button"]:hover,
.cmt_claim_request_item[role="button"]:focus-visible,
.cmt_claim_request_item.is-active {
  border-color: #2563eb;
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cmt_claim_request_item.is-muted {
  background: #f8fafc;
  color: #64748b;
}

.cmt_claim_request_item em {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2563eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cmt_claim_request_item span {
  min-width: 0;
  color: var(--cmt-text);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt_claim_request_status {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 74px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt_claim_request_status.is-not_applicable {
  background: #f1f5f9;
  color: #64748b;
}

.cmt_claim_request_status.is-pending_applicability,
.cmt_claim_request_status.is-manual_review {
  background: #fff7ed;
  color: #c2410c;
}

.cmt_base_info_workbench {
  margin-top: 10px;
}

.cmt_base_info_head_actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.cmt_workbench_category_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.cmt_workbench_category_tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--cmt-line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--cmt-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

.cmt_workbench_category_tab strong {
  color: inherit;
  font-size: 12px;
}

.cmt_workbench_category_tab span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.cmt_workbench_category_tab:hover,
.cmt_workbench_category_tab:focus-visible,
.cmt_workbench_category_tab.is-active {
  border-color: #2563eb;
  background: #f4f8ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cmt_workbench_category_tab.is-active span {
  background: #dbeafe;
  color: #1d4ed8;
}

.cmt_section_hint.is-compact {
  margin-top: 4px;
}

.cmt_base_info_scope_toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 3px;
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.cmt_base_info_scope_toggle button {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cmt_base_info_scope_toggle button.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.cmt_base_info_split {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: 10px;
  align-items: start;
}

.cmt_base_info_workbench.is-floating-right .cmt_base_info_split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.cmt_base_info_workbench.is-floating-right .cmt_base_info_left {
  width: 100%;
  max-width: 100%;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.cmt_base_info_workbench.is-floating-right .cmt_base_info_right {
  position: sticky;
  top: 12px;
  z-index: 3;
  width: auto;
  max-height: calc(100vh - 150px);
  overflow: auto;
  box-shadow: none;
}

.cmt_base_info_left,
.cmt_base_info_right {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--cmt-line);
  border-radius: 6px;
  background: #fff;
}

.cmt_base_info_subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmt_base_info_subhead strong {
  color: var(--cmt-strong);
  font-size: 14px;
}

.cmt_base_info_subhead span {
  color: var(--cmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.cmt_base_info_render_preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.cmt_base_info_render_preview_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmt_base_info_render_preview_head strong {
  color: #0f172a;
  font-size: 13px;
}

.cmt_base_info_render_preview_head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.cmt_base_info_render_preview_body {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #1f2937;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cmt_base_info_render_preview_body .is-preview-value {
  color: #dc2626;
}

.cmt_base_info_render_preview_lines {
  display: grid;
  gap: 4px;
}

.cmt_base_info_render_preview_line {
  min-height: 26px;
  color: #1f2937;
}

.cmt_base_info_render_preview_line.is-child {
  padding-left: calc(var(--preview-level, 1) * 1.5em);
}

.cmt_base_info_render_preview_line.is-child::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.35em;
  border-left: 1px solid #94a3b8;
  border-bottom: 1px solid #94a3b8;
  transform: translateY(-0.2em);
}

.cmt_base_info_render_preview_label,
.cmt_base_info_render_preview_inline_label {
  color: #111827;
}

.cmt_base_info_render_preview_label {
  display: inline-block;
  min-width: 9em;
}

.cmt_base_info_render_preview_inline_label {
  margin-left: 1.2em;
}

.cmt_base_info_render_preview_empty {
  color: #94a3b8;
  font-family: inherit;
  font-size: 14px;
}

.cmt_smart_field_mount {
  min-width: 0;
}

.cmt_smart_field_mount .rte_template_smart_card_shell {
  width: 100%;
}

.cmt_smart_field_save_status {
  min-height: 18px;
  color: var(--cmt-muted);
  font-size: 12px;
}

.cmt_smart_field_save_status[data-status="ok"] {
  color: #047857;
}

.cmt_smart_field_save_status[data-status="error"] {
  color: #dc2626;
}

@media (max-width: 980px) {
  .cmt_base_info_split {
    grid-template-columns: 1fr;
  }

  .cmt_base_info_workbench.is-floating-right .cmt_base_info_right {
    position: static;
    width: auto;
    max-height: none;
  }

  .cmt_base_info_workbench.is-floating-right .cmt_base_info_left {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}
