/* 文档中心 / 主体与合规（工作 → 文档中心、主体与合规，S16 生产接入 2026-09-22；极简纯白抗疲劳与跨模块双向联动升级）：
   两页共用的筛选条、可选行、元数据表、行内表单样式。全部走类名（CSP style-src 'self'）。 */

.dc-page {
  color: #1e293b;
  line-height: 1.6;
}
.dc-page .subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.dc-page .subnav a {
  padding: 6px 14px;
  border-radius: 7px;
  border-bottom: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dc-page .subnav a:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.dc-page .subnav a[aria-current="page"] {
  color: #0f172a;
  font-weight: 600;
  background: #ffffff;
  border-bottom: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.dc-page .section,
.dc-page .card {
  background: #ffffff;
  border-color: #e2e8f0;
}
.dc-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dc-page .section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.dc-page .section-head a.muted {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}
.dc-page .section-head a.muted:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
  text-decoration: none;
}

.dc-linkage-banner {
  margin-block: 14px 20px;
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #334155;
}
.dc-linkage-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 360px;
}
.dc-linkage-title {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #1e293b;
}
.dc-linkage-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}
.dc-linkage-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dc-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.dc-domain-card {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-domain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dc-domain-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.dc-domain-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}
.dc-domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.dc-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #3b5978;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dc-category-chip:hover {
  background: #f0f4f8;
  border-color: #cbd5e1;
}

.dc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.dc-filters input[type="search"],
.dc-filters select {
  height: 34px;
  padding: 0 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13px;
  font-family: inherit;
  line-height: 32px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dc-filters input[type="search"] {
  flex: 1 1 180px;
  min-width: 150px;
  max-width: 240px;
}
.dc-filters input[type="search"]::placeholder {
  color: #94a3b8;
}
.dc-filters select {
  flex: 0 1 146px;
  min-width: 112px;
  max-width: 186px;
  cursor: pointer;
}
.dc-filters input[type="search"]:hover,
.dc-filters select:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.dc-filters input[type="search"]:focus,
.dc-filters select:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.dc-filters .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dc-filters button[type="submit"].btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
.dc-filters button[type="submit"].btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.dc-filters .btn-primary {
  margin-left: auto;
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.dc-filters .btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  text-decoration: none;
}

.dc-page .table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
}
.dc-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.dc-page thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  text-align: left;
}
.dc-page tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dc-page tbody tr:last-child td {
  border-bottom: 0;
}
.dc-page tbody td:first-child {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  line-height: 1.45;
}
.dc-page tbody td:first-child a {
  color: #0f172a;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.14s ease;
}
.dc-page tbody td:first-child a:hover {
  color: #2563eb;
  text-decoration: none;
}
.dc-page tbody td:nth-child(3),
.dc-page tbody td:nth-child(4) {
  max-width: 290px;
}
.dc-page thead th:last-child,
.dc-page tbody td:last-child {
  text-align: right;
  width: 1%;
  white-space: nowrap;
  padding-right: 16px;
}

.dc-page .pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.dc-page .pill-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.dc-page .pill-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.dc-page .pill-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.dc-page .pill-neutral {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.dc-row-link { cursor: pointer; transition: background-color 0.12s ease; }
.dc-row-link:hover td { background: #f8fafc; }
.dc-row-selected td { background: #f0f4f8; }

.dc-lifecycle-bar {
  margin: 14px 0 18px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-lifecycle-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dc-lifecycle-step {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dc-lifecycle-done {
  color: #2d6a4f;
  background: #f4f9f5;
  border-color: #cce3d4;
}
.dc-lifecycle-active {
  color: #1e293b;
  background: #f0f4f8;
  border-color: #3b5978;
  font-weight: 600;
}
.dc-lifecycle-guidance {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.dc-meta {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px;
  padding: 18px 22px; margin-bottom: 20px;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.dc-meta-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-meta-key { font-size: var(--fs-helper); color: #64748b; }
.dc-meta-val { font-size: var(--fs-body); color: #1e293b; overflow-wrap: anywhere; }

.dc-template-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.dc-template-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-right: 4px;
}
.dc-template-btn {
  background: #ffffff;
  border-color: #d1d5db;
  color: #334155;
}
.dc-template-btn:hover {
  background: #f8fafc;
  border-color: #3b5978;
  color: #1e293b;
}

.dc-form.card {
  margin: 14px 0 18px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.dc-form.card .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.dc-form.card .field input,
.dc-form.card .field select {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dc-form.card .field input:focus,
.dc-form.card .field select:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.dc-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
  margin: 12px 0 14px;
}
.dc-edit-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.dc-edit-quick-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  margin-right: 4px;
}
.dc-scope-preview {
  margin: 12px 0 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}
.dc-scope-detail-grid {
  margin-bottom: 0;
}
.dc-scope-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dc-scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  line-height: 1.35;
  transition: all 0.14s ease;
}
.dc-scope-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.dc-scope-chip-sub {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}
.dc-scope-chip-sub:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.dc-scope-name-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.14s ease;
}
.dc-scope-name-link:hover {
  color: #1e40af;
  text-decoration: underline;
}
.dc-form-card { margin-top: var(--space-4); }
.dc-form-inline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--space-4); align-items: end;
  padding: 16px 20px; margin: var(--space-3) 0 var(--space-5);
  background: #ffffff;
  border: 1px dashed #d1d5db; border-radius: 10px;
}
.dc-form-inline .form-actions { margin-top: 0; margin-bottom: var(--space-4); }
.dc-upload-form {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.dc-check { display: inline-flex; align-items: center; gap: var(--space-1); margin-right: var(--space-3); }
.dc-page h3.card-title { margin: var(--space-5) 0 var(--space-2); color: #1e293b; }
.dc-page details.card {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}
.dc-page details.card summary {
  cursor: pointer;
  font-weight: 500;
  color: #475569;
}

/* 审批 / Evidence（SIMBATCH-CONSOLE-APPROVAL-EVIDENCE-V1）：窄屏表格改成卡片——同项目页约定，td 用 data-label 作行内标签。 */
@media (max-width: 767px) {
  .ae-cards table, .ae-cards tbody { display: block; width: 100%; }
  .ae-cards thead { display: none; }
  .ae-cards tbody tr { display: block; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .ae-cards tbody tr:last-child { border-bottom: 0; }
  .ae-cards tbody td { display: flex; gap: var(--space-3); padding: 2px 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .ae-cards tbody td::before { content: attr(data-label); flex: 0 0 64px; color: var(--text-3); font-size: var(--fs-helper); line-height: var(--lh-body); }
}
/* 折叠「技术信息」（SIMBATCH-CONSOLE-STAFF-DISPLAY-NAME-01）：引用原文与 MIME 只在这里出现，正文只显示姓名与中文类型。 */
.dc-tech { margin: var(--space-2) 0 var(--space-4); }
.dc-tech summary { cursor: pointer; font-size: var(--fs-helper); color: #64748b; padding: var(--space-2) 0; }
.dc-tech[open] summary { margin-bottom: var(--space-2); }
.dc-staff-unknown, .dc-staff-unassigned { color: #64748b; }
/* 打开方式 / 在线查看（SIMBATCH-CONSOLE-DOC-VIEW-01）：按钮成行、不能用的选项旁边一句灰色小字说明；
   预览区只在员工点「在线查看」后出现——PDF 页内框、图片按宽度缩放、文本保留换行且长行折断。 */
.dc-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.dc-actions .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.14s ease;
}
.dc-actions .dc-btn-view {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 500;
}
.dc-actions .dc-btn-view:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  text-decoration: none;
}
.dc-actions .dc-btn-download {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
}
.dc-actions .dc-btn-download:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  text-decoration: none;
}
.dc-actions .dc-btn-edit {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  padding: 0 8px;
}
.dc-actions .dc-btn-edit:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}
.dc-open-hint { font-size: var(--fs-helper); color: #64748b; }
.dc-preview {
  margin: 16px 0 20px; padding: 18px 22px;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.dc-preview-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3); overflow-wrap: anywhere;
}
.dc-preview-head .btn { margin-left: auto; }
.dc-preview-frame { display: block; width: 100%; height: 70vh; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; }
.dc-preview-image { display: block; max-width: 100%; height: auto; }
.dc-preview-text {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto;
  margin: 0; padding: 16px; font-size: var(--fs-body); line-height: 1.65;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; color: #334155;
}
.compliance-project-linkage-bar { margin-block: 14px 18px; padding: 16px 20px; border-radius: 10px; border: 1px solid #e5e7eb; background: #ffffff; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #334155; }
.compliance-project-linkage-bar .linkage-bar-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.compliance-project-linkage-bar .linkage-bar-title { font-size: 14px; line-height: 1.45; font-weight: 600; color: #1e293b; }
.compliance-project-linkage-bar .linkage-bar-desc { font-size: 13px; line-height: 1.55; color: #64748b; }
.compliance-project-linkage-bar .linkage-bar-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dc-cat-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
}
.dc-cat-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.dc-cat-pill:hover {
  color: #1e293b;
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none;
}
.dc-cat-pill-active,
.dc-cat-pill-active:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
  font-weight: 600;
}
.dc-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
/* 分类管理温和分组与柔和配色 */
.dc-cat-groups-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.dc-cat-group-panel {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.dc-cat-group-panel.dc-cat-theme-emerald {
  background: #f4fbf7;
  border-color: #d1fae5;
}
.dc-cat-group-panel.dc-cat-theme-violet {
  background: #f8f7ff;
  border-color: #e0e7ff;
}
.dc-cat-group-panel.dc-cat-theme-sky {
  background: #f4f9ff;
  border-color: #dbeafe;
}
.dc-cat-group-panel.dc-cat-theme-amber {
  background: #fffdf5;
  border-color: #fef3c7;
}
.dc-cat-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.dc-cat-group-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dc-cat-group-title {
  margin: 0 !important;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.dc-cat-group-sub {
  font-size: 12.5px;
  color: #64748b;
}
.dc-cat-group-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  white-space: nowrap;
}
.dc-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.dc-cat-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.dc-cat-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border-color: #cbd5e1;
}
.dc-cat-item-active {
  background: #ffffff;
  border-color: #bae6fd;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.dc-cat-theme-emerald .dc-cat-item-active {
  border-color: #86efac;
  background: #ffffff;
}
.dc-cat-theme-violet .dc-cat-item-active {
  border-color: #c7d2fe;
  background: #ffffff;
}
.dc-cat-theme-amber .dc-cat-item-active {
  border-color: #fde68a;
  background: #ffffff;
}
.dc-cat-item-empty {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(226, 232, 240, 0.8);
}
.dc-cat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dc-cat-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}
.dc-cat-item-empty .dc-cat-item-title {
  color: #64748b;
  font-weight: 500;
}
.dc-cat-item-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.dc-cat-item-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}
.dc-cat-theme-emerald .dc-cat-item-active .dc-cat-item-num {
  color: #047857;
}
.dc-cat-theme-violet .dc-cat-item-active .dc-cat-item-num {
  color: #4338ca;
}
.dc-cat-theme-sky .dc-cat-item-active .dc-cat-item-num {
  color: #0369a1;
}
.dc-cat-theme-amber .dc-cat-item-active .dc-cat-item-num {
  color: #b45309;
}
.dc-cat-item-empty .dc-cat-item-num {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
}
.dc-cat-item-unit {
  font-size: 12px;
  color: #64748b;
}
/* 快捷操作菜单（编辑 / 修改 / 删除） */
.dc-quick-menu {
  position: relative;
  display: inline-block;
  margin: 0;
}
.dc-quick-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dc-quick-menu summary::-webkit-details-marker {
  display: none;
}
.dc-btn-quick {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0 10px;
}
.dc-btn-quick:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.dc-cat-menu-trigger {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dc-cat-menu-trigger:hover {
  color: #1e293b;
  background: #f1f5f9;
}
.dc-quick-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}
.dc-quick-popover .btn-sm,
.dc-quick-action-btn {
  min-height: 26px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
}
.dc-quick-popover .btn-sm:hover,
.dc-quick-action-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.dc-quick-action-danger {
  color: #dc2626 !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}
.dc-quick-action-danger:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}
.dc-inline-modify-host,
.dc-cat-editor-host {
  margin: 12px 0 16px;
}
.dc-inline-modify-card {
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.dc-inline-modify-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}
