/* ============================================================
 * V1.0.0 / b44 · 组织标本采集 IIT 闭环样式
 * 浅色底 + 深色字，与既有卡片（b35/b36/b41）保持同一视觉语言
 * ============================================================ */

/* ---------- 顶部信息卡 ---------- */
.b44-head h3 { display: flex; align-items: center; gap: 8px; }
.b44-redline {
  margin: 8px 0 10px; padding: 8px 12px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  font-size: 12.5px; line-height: 1.7;
}
.b44-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px;
  color: #475569; padding: 8px 0 10px; border-bottom: 1px dashed #e2e8f0;
}
.b44-meta b { color: #0f172a; font-weight: 700; }
.b44-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; align-items: center; }
.b44-actions .btn-o, .b44-actions .btn-p { text-decoration: none; }

/* ---------- 录入权限自检 ---------- */
.b44-permcard { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.b44-perm {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7;
}
.b44-perm.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.b44-perm.bad { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.b44-perm > b { font-weight: 700; }
.b44-perm i { font-style: normal; font-weight: 700; }
.b44-perm.ok i { color: #047857; }
.b44-perm.bad i { color: #b45309; }
.b44-perm em { flex: 1 1 260px; font-style: normal; color: #475569; }
.b44-perm .b44-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .75; }
.b44-perm .btn-p { flex: 0 0 auto; }

/* ---------- 建档 ---------- */
.b44-add h4 { margin-bottom: 10px; }
.b44-add-grid {
  display: grid; gap: 10px 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}
.b44-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.b44-f label { font-size: 12px; color: #64748b; }
.b44-f label i { color: #dc2626; font-style: normal; }
.b44-f input, .b44-f select {
  height: 34px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #0f172a; font-size: 13px; min-width: 0;
}
.b44-f input:focus, .b44-f select:focus { outline: 2px solid #99f6e4; border-color: #14b8a6; }
.b44-f input:disabled, .b44-f select:disabled { background: #f1f5f9; color: #94a3b8; }
.b44-f-btn { justify-content: flex-end; }
.b44-f-btn .btn-p { height: 34px; width: 100%; }
.b44-add .hint { margin-top: 8px; font-size: 12px; color: #64748b; line-height: 1.7; }

/* ---------- 参与者进度列表 ---------- */
.b44-list { display: flex; flex-direction: column; gap: 8px; }
.b44-pp { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.b44-pp-hd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; background: #f8fafc; border-bottom: 1px solid #eef2f7; font-size: 12.5px;
}
.b44-pp-no {
  font-weight: 800; color: #0d4f7c; letter-spacing: .5px;
  background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 6px; padding: 1px 8px;
}
.b44-pp-i { color: #475569; }
.b44-pp-bar {
  flex: 1 1 120px; height: 6px; min-width: 90px; border-radius: 4px;
  background: #e2e8f0; overflow: hidden;
}
.b44-pp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0ea5e9); }
.b44-pp-n { color: #64748b; }
.b44-pp-go {
  margin-left: auto; padding: 4px 12px; border-radius: 7px; text-decoration: none;
  background: #0f766e; color: #fff; font-size: 12px;
}
.b44-pp-go:hover { background: #115e59; }
.b44-fls { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.b44-fl {
  display: flex; flex-direction: column; gap: 1px; min-width: 132px;
  padding: 6px 10px; border-radius: 8px; text-decoration: none;
  border: 1px solid #e2e8f0; background: #fff; color: #334155;
}
.b44-fl b { font-size: 11.5px; color: #0d4f7c; letter-spacing: .5px; }
.b44-fl span { font-size: 12px; color: #475569; }
.b44-fl i { font-style: normal; font-size: 11px; color: #94a3b8; }
.b44-fl:hover { border-color: #99f6e4; background: #f0fdfa; }
.b44-fl.draft { border-color: #fde68a; background: #fffbeb; }
.b44-fl.draft i { color: #b45309; }
.b44-fl.done { border-color: #a7f3d0; background: #ecfdf5; }
.b44-fl.done i { color: #047857; }
.b44-empty {
  padding: 22px 14px; text-align: center; color: #64748b; font-size: 13px; line-height: 1.8;
  border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc;
}
.b44-mut { font-size: 11.5px; color: #94a3b8; font-weight: 400; margin-left: 6px; }

/* ---------- 筛选页顶部建档条 ---------- */
.b44-sbar {
  margin: 12px 0; padding: 12px 14px; border-radius: 10px;
  background: #f0fdfa; border: 1px solid #99f6e4;
}
.b44-sbar-t { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.b44-sbar-t b { font-size: 13.5px; color: #0f766e; }
.b44-sbar-t em { font-style: normal; font-size: 12px; color: #64748b; }
.b44-sbar-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.b44-sbar-f input, .b44-sbar-f select {
  height: 34px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #0f172a; font-size: 13px;
}
.b44-sbar-f input:focus, .b44-sbar-f select:focus { outline: 2px solid #99f6e4; border-color: #14b8a6; }
.b44-sbar-f input#b44SNo { width: 190px; }
.b44-sbar-f input#b44SIni { width: 130px; }
.b44-sbar-f input#b44SAge { width: 96px; }
.b44-sbar-f select { width: 116px; }
.b44-sbar-f select#b44SSite { width: 168px; }

/* ---------- 标本采集类型：多选下拉 ---------- */
.b44-ms-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 38px; padding: 0 12px; cursor: pointer;
  border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
  color: #94a3b8; font-size: 13px; text-align: left;
}
.b44-ms-btn.has { color: #0f172a; border-color: #99f6e4; background: #f0fdfa; }
.b44-ms-btn i { font-style: normal; color: #64748b; transition: transform .15s; }
.b44-ms-btn.open i { transform: rotate(180deg); }
/* 展开面板采用文档流内展开（不做绝对定位），避免与卡片其它浮层叠加 */
.b44-ms-pop {
  display: none; margin-top: 6px;
  padding: 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  max-height: 300px; overflow: auto;
}
.b44-ms-pop.open { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* 面板内重新定义条目布局：复选框在左，标题与说明两行右排，避免中文逐字换行 */
.b44-ms-pop .b41-cat {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px;
  align-items: start; margin: 0 !important; min-width: 0;
}
.b44-ms-pop .b41-cat input { grid-row: 1 / span 2; margin: 3px 0 0; }
.b44-ms-pop .b41-cat b { grid-column: 2; white-space: nowrap; line-height: 1.5; }
.b44-ms-pop .b41-cat i { grid-column: 2; line-height: 1.5; }
.b44-ms-pop .b41-cat input:checked ~ b { color: #0f766e; }

/* ---------- 研究中心设置 ---------- */
.b44-center { margin-top: 14px; }
.b44-c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.b44-c-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.b44-c-tb th {
  text-align: left; padding: 6px 8px; background: #f1f5f9; color: #334155;
  font-weight: 600; border-bottom: 1px solid #e2e8f0;
}
.b44-c-tb td { padding: 5px 8px; border-bottom: 1px solid #f1f5f9; }
.b44-c-tb input {
  width: 100%; height: 30px; padding: 0 8px; border: 1px solid #cbd5e1;
  border-radius: 6px; font-size: 12.5px; color: #0f172a; background: #fff;
}
.b44-c-tb input:focus { outline: 2px solid #99f6e4; border-color: #14b8a6; }
.b44-c-ops { margin-top: 6px; }
.b44-c-save { margin-top: 10px; }
.b44-del { color: #b91c1c; font-size: 12px; text-decoration: none; }
.b44-del:hover { text-decoration: underline; }

/* ---------- AI 下线占位 ---------- */
[data-b44aioff="1"] { display: none !important; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .b44-pp-hd { gap: 6px; }
  .b44-pp-go { margin-left: 0; }
  .b44-sbar-f input#b44SNo { width: 150px; }
}
