/* 不合格品 — 与生产管理 Shell 统一，红色强调 */
.bh-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.bh-badge-mes { background: #e8f4fd; color: #1890ff; }
.bh-badge-manual { background: #f5f5f5; color: #64748b; }
.bh-badge-pending { background: #fff7e6; color: #d46b08; }
.bh-badge-done { background: #f6ffed; color: #389e0d; }
.bh-badge-cancel { background: #fff1f0; color: #cf1322; }
.bh-overdue { color: #cf1322; font-weight: 600; }

/* 弹窗 / Layer 内页 */
html.bh-popup, html.bh-popup body { background: #f4f7fb; min-height: 100%; }
html.bh-popup .gy-wrap { padding: 12px 14px 16px; max-width: none; }
html.bh-popup .gy-page-title { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e8eef4; }
html.bh-popup .gy-page-title .desc { font-size: 12px; }

.bh-form-panel {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 6px;
  padding: 14px 16px;
}
.bh-form-panel .layui-form-pane .layui-form-label { width: 96px; background: #fafcff; }
.bh-form-panel .layui-form-pane .layui-input-block { margin-left: 116px; }
.bh-form-panel .layui-form-item { margin-bottom: 14px; }
.bh-form-actions {
  text-align: center;
  padding: 12px 0 4px;
  margin-top: 8px;
  border-top: 1px solid #e8eef4;
}
.bh-form-actions .layui-btn { min-width: 88px; }

.bh-upload-zone {
  border: 1px dashed #ffa39e;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  background: #fffafb;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.bh-upload-zone:hover { border-color: #ff4d4f; background: #fff1f0; }
.bh-upload-zone .icon { font-size: 36px; color: #ffa39e; margin-bottom: 6px; }
.bh-upload-zone .hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.bh-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bh-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: #fafcff; border: 1px solid #e8eef4; border-radius: 6px;
}
.bh-file-item .name { flex: 1; font-size: 13px; color: #334155; word-break: break-all; }
.bh-file-item .size { font-size: 11px; color: #94a3b8; }

/* 处置报告 */
.bh-report-wrap { padding: 0; }
.bh-report-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e8eef4; border-radius: 6px; overflow: hidden;
}
.bh-report-table th.title-row {
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  color: #fff; text-align: center; font-size: 18px; font-weight: 600; padding: 14px;
}
.bh-report-table td {
  padding: 10px 12px; border-bottom: 1px solid #e8eef4; font-size: 13px; vertical-align: top;
}
.bh-report-table tr.section td {
  background: #fff1f0; color: #cf1322; font-weight: 600; text-align: center;
}
.bh-report-table td.label { width: 110px; background: #fafcff; color: #64748b; font-weight: 500; }
.bh-report-table pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; }

/* 文件预览（chakan） */
.bh-file-view { min-height: 100vh; display: flex; flex-direction: column; background: #f4f7fb; }
.bh-file-view-hd {
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.bh-file-view-hd .title { font-size: 14px; font-weight: 600; }
.bh-file-view-bd { flex: 1; padding: 12px; }
.bh-file-view-bd #resolte-contaniner {
  width: 100%; min-height: calc(100vh - 64px); background: #fff;
  border-radius: 6px; border: 1px solid #e8eef4; overflow: auto;
}
.bh-file-btn {
  padding: 4px 10px; border-radius: 4px; font-size: 12px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none;
}
html.bh-popup .bh-file-view { margin: -12px -14px -16px; min-height: calc(100vh - 2px); }
html.bh-popup .gy-wrap:has(.bh-file-view) { padding: 0; }
