/* ============================================================
   b41 · 项目类型 / 采样计划 / 外送资料清单
   与既有卡片一致：浅色底、深色字、蓝灰主色（#1f6f8b / #334155）
   ============================================================ */

/* ---------- 新建项目：标本采集设置 ---------- */
.b41-spec-card { margin-top: 14px; }
.b41-spec-card h3 { display: flex; align-items: center; gap: 8px; }

.b41-cat-hd {
  font-size: 12.5px; font-weight: 600; color: #334155;
  margin: 6px 0 8px; display: flex; align-items: center; gap: 8px;
}
.b41-mut { font-weight: 400; font-size: 12px; color: #94a3b8; }

.b41-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.b41-cat {
  display: flex; align-items: flex-start; gap: 7px;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px;
  background: #f8fafc; cursor: pointer; font-size: 12.5px; color: #334155;
  transition: border-color .15s, background .15s;
}
.b41-cat:hover { border-color: #b6d4ea; background: #f0f7fb; }
.b41-cat input { margin-top: 3px; }
.b41-cat b { display: block; font-weight: 600; }
.b41-cat i { display: block; font-style: normal; font-size: 11.5px; color: #7b8a9a; margin-top: 2px; }

.b41-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.b41-tip {
  margin-top: 10px; background: #f0f7fb; border: 1px solid #cfe3ef;
  border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #31586b; line-height: 1.7;
}

/* ---------- 项目设置：采样计划 ---------- */
.b41-set-card { margin-top: 14px; }
.b41-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.b41-plan-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.b41-plan-tb th {
  background: #f1f5f9; color: #475569; font-weight: 600; text-align: left;
  padding: 7px 9px; border-bottom: 1px solid #e2e8f0; font-size: 12px;
}
.b41-plan-tb td { padding: 6px 9px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.b41-plan-tb select, .b41-plan-tb input {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: 5px 8px; font-size: 12.5px; color: #334155; background: #fff;
}
.b41-plan-ops { margin-top: 8px; }
.b41-del { color: #b06a6a; font-size: 12px; }

.b41-doc-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.b41-docset {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; color: #334155; background: #fff; cursor: pointer;
}
.b41-docset b { font-weight: 600; }
.b41-docset i { font-style: normal; font-size: 11.5px; color: #7b8a9a; }
.b41-docset input { margin-right: 6px; }
.b41-docset.b41-docset-opt { background: #fbfcfd; border-style: dashed; }

/* ---------- 标本台账：筛选与计划进度 ---------- */
.b41-spec-bar {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0 12px;
}
.b41-filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #475569; }
.b41-filters label { display: inline-flex; align-items: center; gap: 6px; }
.b41-filters select {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 8px;
  font-size: 12.5px; color: #334155; background: #fff;
}
.b41-count { margin-left: auto; color: #94a3b8; font-size: 12px; }

.b41-plan-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0;
}
.b41-rate { display: flex; flex-direction: column; line-height: 1.25; }
.b41-rate b { font-size: 18px; color: #1f6f8b; }
.b41-rate span { font-size: 11.5px; color: #64748b; }
.b41-rate-items { display: flex; gap: 8px; flex-wrap: wrap; }
.b41-rate-item {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #475569;
}
.b41-rate-item.ok { border-color: #b7e4d3; background: #f0faf6; color: #0b6f63; }
.b41-rate-item.bad { border-color: #f3d5b5; background: #fff8ef; color: #955c1d; }
.b41-rate-item b { margin-left: 4px; }

.b41-multi-tip {
  margin-top: 10px; font-size: 12px; color: #8a6d3b;
  background: #fffbeb; border: 1px dashed #fde68a; border-radius: 8px; padding: 7px 10px;
}

.b41-tag-ok {
  display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px;
  background: #ecfdf5; color: #0b6f63; border: 1px solid #b7e4d3;
}
.b41-tag-bad {
  display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px;
  background: #fef2f2; color: #a33a3a; border: 1px solid #f3c9c9;
}

/* ---------- 标本详情：外送资料 ---------- */
.b41-docs { border-top: 1px dashed #e2e8f0; }
.b41-doc-note {
  font-size: 12px; color: #8a6d3b; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; line-height: 1.7; margin-bottom: 10px;
}
.b41-doc-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.b41-doc-tb th {
  background: #f1f5f9; color: #475569; font-weight: 600; text-align: left;
  padding: 6px 8px; border-bottom: 1px solid #e2e8f0; font-size: 12px;
}
.b41-doc-tb td { padding: 6px 8px; border-bottom: 1px solid #eef2f6; vertical-align: top; color: #334155; }
.b41-doc-tb tr.b41-opt td { background: #fbfcfd; color: #64748b; }
.b41-doc-basis { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.b41-must {
  font-style: normal; font-size: 11px; color: #a33a3a; background: #fef2f2;
  border: 1px solid #f3c9c9; border-radius: 4px; padding: 0 5px; margin-left: 4px;
}
.b41-opt-tag {
  font-style: normal; font-size: 11px; color: #7b8a9a; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 4px; padding: 0 5px; margin-left: 4px;
}
.b41-doc-ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.b41-doc-state { font-size: 12px; }
.b41-doc-state.ok { color: #0b6f63; }
.b41-doc-state.bad { color: #a33a3a; }

@media (max-width: 720px) {
  .b41-cats, .b41-doc-set { grid-template-columns: 1fr; }
  .b41-plan-tb th:nth-child(2), .b41-plan-tb td:nth-child(2) { display: none; }
}

/* ---------- b43：干预性项目「涉及生物样本」勾选条 ---------- */
.b41-inv {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 4px 0 14px; padding: 11px 13px; border-radius: 8px;
  background: #f6fbf7; border: 1px solid #cfe9d8; cursor: pointer;
}
.b41-inv input { margin-top: 2px; width: 15px; height: 15px; flex: 0 0 auto; }
.b41-inv b { display: block; font-size: 13px; color: #14532d; margin-bottom: 3px; }
.b41-inv em {
  display: block; font-style: normal; font-size: 12px; line-height: 1.65; color: #4b6b56;
}
.b41-inv:hover { background: #eff8f2; border-color: #b7dcc6; }
