/* 第二版新增模块样式。单独文件方便以后继续升级，不影响第一版主题。 */
dialog { width: min(900px, 94vw); max-height: 92vh; }
dialog form { max-height: 92vh; overflow: auto; }
/* 机器流转只让外层弹窗滚动；内层表单自然撑开，保留底部确认按钮。
   不隐藏滚动条、不限制备注输入框的正常滚动，也不影响其他业务弹窗。 */
#flow-dialog { box-sizing: border-box; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
#flow-dialog > #flow-form { max-height: none; overflow: visible; }

/* 搜索框在窄屏自动换行；标签可点选输入框，结果提示供读屏软件播报。 */
.business-search { flex-wrap: wrap; align-items: center; }
.business-search > label { font-size: 14px; font-weight: 500; margin: 0; align-self: center; }
/* 新确认框只保留一层滚动；确认复选框不会被通用表单样式撑满一行。 */
#admin-settlement-dialog { max-width: min(720px, 96vw); max-height: 92dvh; overflow-y: auto; }
#admin-settlement-dialog > form { max-height: none; overflow: visible; }
#admin-settlement-dialog .direct-confirm { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
#admin-settlement-dialog .direct-confirm input { width: 20px; height: 20px; flex: 0 0 20px; }
#direct-error { color: #b42318; }
.business-search input { min-width: 180px; }
.business-search .search-clear { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; background: #fff; }
.business-search [role="status"] { flex-basis: 100%; font-size: 13px; }
/* OA 审批仍保留原列表；搜索时暂收起，避免把无关审批误当成串号匹配结果。 */
#documents.searching #oa-panel, #documents.searching #receipt-panel { display: none; }
@media (max-width: 600px) {
  .business-search label { flex-basis: 100%; }
  .business-search input { flex-basis: 100%; width: 100%; }
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pad { padding: 20px; }
.pad h2 { margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.scan-list { width: 100%; min-height: 260px; margin: 12px 0; line-height: 1.7; }
.top-gap { margin-top: 16px; }
.cards.mini { grid-template-columns: repeat(3, 1fr); }
.cards.mini article { padding: 16px; }
.cards.mini strong { font-size: 22px; }
.report-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-bad { color: #d94141; }
.result-good { color: #07865c; }
.device-sub { color: #8893a3; font-size: 11px; margin-top: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } nav button { padding: 11px; } }
@media (max-width: 600px) { .cards.mini { grid-template-columns: 1fr; } }
