/* records.css —— 📄 记录单中心 模块样式
 * 仅补充模块内新增类名；通用 .card/.toolbar/.btn/.sel/.search/.tbl/.reg-help/.section-title/.empty-tip 复用 style.css。
 */

/* 顶部工具栏 */
.rec-top { flex-wrap: wrap; align-items: center; }
.rec-top .lbl { color: #555; font-size: 13px; }
.rec-top .sel { min-width: 260px; }

/* 记录单类型多选卡片墙 */
.rec-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
}
.rec-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  user-select: none;
}
.rec-card:hover { border-color: #9cc4f5; box-shadow: 0 2px 10px rgba(28,111,214,.12); }
.rec-card.sel { border-color: #1c6fd6; background: #f1f7ff; box-shadow: 0 0 0 2px rgba(28,111,214,.18) inset; }
.rec-card.sel::after {
  content: '✓';
  position: absolute; top: 8px; right: 10px;
  color: #1c6fd6; font-weight: 700; font-size: 15px;
}
.rec-card .rc-ic { font-size: 22px; line-height: 1; }
.rec-card .rc-name { font-weight: 700; margin: 6px 0 4px; color: #1f2d3d; }
.rec-card .rc-basis { font-size: 11px; color: #7a869a; line-height: 1.4; min-height: 30px; }
.rec-card .rc-cnt { margin-top: 8px; font-size: 12px; color: #666; }
.rec-card .rc-cnt b { color: #1c6fd6; font-size: 15px; }

/* 预览区 */
.rec-preview { margin-top: 6px; }
.rec-section { margin-bottom: 18px; }
.rec-section .sec-title { margin-top: 4px; }
.rec-section .basis { margin: 4px 0 6px; }
.rec-section .tbl { font-size: 12px; }

/* 底部操作栏 */
.rec-actions { flex-wrap: wrap; }

/* 法规依据小字（预览页复用打印同款语义） */
.basis { color: #666; font-size: 11px; }

/* 模式切换（单台 / 科室批量） */
.rec-mode { gap: 8px; margin-bottom: 12px; }
.rec-mode .btn.active { background: #1c6fd6; color: #fff; border-color: #1c6fd6; }

/* 科室批量面板 */
.rec-batch-tip { font-size: 12px; color: #6a7587; background: #f3f7fc; border-left: 3px solid #1c6fd6; padding: 8px 10px; border-radius: 6px; margin-bottom: 10px; }
.rec-batch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin: 10px 0 12px; max-height: 320px; overflow: auto; }
.rec-batch-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e3e8f0; border-radius: 8px; cursor: pointer; font-size: 13px; background: #fff; }
.rec-batch-item:hover { border-color: #9cc4f5; background: #f6faff; }
.rec-batch-item input { width: 16px; height: 16px; }

/* 设备详情-记录单页签头部 */
.rec-eq-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eef1f6; }
.rec-eq-head .rec-eq-code { font-weight: 700; color: #1c6fd6; font-family: ui-monospace, monospace; }
.rec-eq-head .rec-eq-name { font-weight: 700; color: #1f2d3d; }
.rec-eq-head .rec-eq-dept { color: #7a869a; font-size: 13px; }


/* ---------- 记录单中心：手机端适配 ---------- */
@media (max-width: 760px) {
  .rec-wall{grid-template-columns:1fr 1fr;gap:8px}
  .rec-card{padding:10px 11px}
  .rec-card .rc-basis{min-height:0}
  .rec-actions .btn{flex:1 1 calc(50% - 4px)}
}
