/* ============================================================
 * b31 · 智能功效产品及标本采集数据管理平台
 *   标本类型手动输入 / 组织标本单访视门禁 / 知识库检索与 GCP 归档
 *   与 v115.css 叠加使用，不覆盖既有布局。
 * ============================================================ */

/* 组织标本采集提示条 */
.v118-tissue-note {
  margin: 10px 0 14px; padding: 10px 14px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  font-size: 12.5px; line-height: 1.7;
}
.v118-tissue-note b { color: #1d4ed8; }
.v118-tissue-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 8px; }
.v118-tissue-tag {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  background: #dbeafe; color: #1e3a8a; font-size: 11px;
}

/* 建档弹窗：手动输入标本类型 */
.v118-custom-type { display: none; }
.v118-custom-type.on { display: block; grid-column: 1 / -1; }
.v118-inline-hint {
  font-size: 11.5px; color: #64748b; line-height: 1.5; margin-top: 3px;
}
.v118-readonly {
  background: #f1f5f9 !important; color: #475569 !important; cursor: not-allowed !important;
}

/* 知识库检索 */
.v118-kb-wrap { max-width: 1180px; }
.v118-kb-head {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.v118-kb-head h2 { margin: 0; font-size: 19px; color: #0f172a; }
.v118-kb-head p { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.v118-kb-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 12px;
  background: #ecfdf5; color: #047857; font-size: 11.5px;
}
.v118-kb-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
}
.v118-kb-bar input[type="text"], .v118-kb-bar select {
  height: 32px; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: 0 10px; font-size: 12.5px; background: #fff; color: #0f172a;
}
.v118-kb-bar input[type="text"] { flex: 1; min-width: 220px; }
.v118-kb-btn {
  height: 32px; padding: 0 14px; border: 0; border-radius: 6px;
  background: #0d2b45; color: #fff; font-size: 12.5px; cursor: pointer;
}
.v118-kb-btn.ghost { background: #fff; color: #0d2b45; border: 1px solid #cbd5e1; }
.v118-kb-btn:disabled { opacity: .55; cursor: not-allowed; }
.v118-kb-filter {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 8px;
}
.v118-kb-chip {
  padding: 4px 10px; border-radius: 12px; border: 1px solid #cbd5e1;
  background: #fff; color: #475569; font-size: 11.5px; cursor: pointer;
}
.v118-kb-chip.on { background: #0d2b45; color: #fff; border-color: #0d2b45; }
.v118-kb-list { margin-top: 10px; display: grid; gap: 10px; }
.v118-kb-card {
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  padding: 12px 14px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.v118-kb-card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v118-kb-card-hd b { font-size: 14px; color: #0f172a; }
.v118-kb-card-meta { font-size: 11.5px; color: #64748b; margin-top: 6px; line-height: 1.6; }
.v118-kb-card-sum { font-size: 12.5px; color: #334155; margin-top: 8px; line-height: 1.7; }
.v118-kb-chips { display: inline-flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.v118-kb-chip-static {
  padding: 2px 8px; border-radius: 10px; background: #f1f5f9;
  color: #475569; font-size: 11px;
}
.v118-kb-chip-static.gcp { background: #ecfdf5; color: #065f46; }
.v118-kb-chip-static.warn { background: #fffbeb; color: #92400e; }
.v118-kb-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.v118-kb-actions a, .v118-kb-actions button {
  font-size: 12px; color: #0d2b45; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 5px; padding: 4px 10px; cursor: pointer;
}
.v118-kb-empty { padding: 30px; text-align: center; color: #94a3b8; font-size: 13px; }
.v118-kb-detail {
  margin-top: 12px; border: 1px solid #bfdbfe; border-radius: 8px;
  background: #f8fbff; padding: 14px; font-size: 12.5px; color: #1e293b;
  line-height: 1.8; white-space: pre-wrap; max-height: 340px; overflow: auto;
}
.v118-kb-pending {
  margin-top: 8px; padding: 8px 10px; border-left: 3px solid #f59e0b;
  background: #fffbeb; color: #92400e; font-size: 12px; border-radius: 0 5px 5px 0;
}

/* 全局快捷检索 */
.v118-kb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  border: 0; border-radius: 20px; padding: 9px 15px;
  background: #0d2b45; color: #fff; font-size: 12px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(13,43,69,.25);
}
.v118-kb-mask {
  position: fixed; inset: 0; z-index: 9500; background: rgba(15,23,42,.42);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh;
}
.v118-kb-modal {
  width: min(860px, 94vw); max-height: 78vh; overflow: auto;
  background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(15,23,42,.3);
  padding: 18px;
}
.v118-kb-modal-hd { display: flex; align-items: center; margin-bottom: 12px; }
.v118-kb-modal-hd b { font-size: 16px; color: #0f172a; }
.v118-kb-modal-hd span { margin-left: auto; cursor: pointer; color: #94a3b8; font-size: 20px; }

@media (max-width: 760px) {
  .v118-kb-bar input[type="text"] { min-width: 100%; }
  .v118-kb-fab { right: 10px; bottom: 10px; }
  .v118-kb-head h2 { font-size: 17px; }
}
