/* =======================================================================
 * V5.3 样式：细项配置 / 人手一码授权 / 部署向导 / 创建阶段导入
 * 沿用 V4.9 青绿主色与浅色白卡
 * ===================================================================== */

/* ---------- 通用控件 ---------- */
.v53-field { margin: 0 0 12px; }
.v53-field > label { display: block; font-size: 12.5px; color: #475569; font-weight: 600; margin-bottom: 5px; }
.v53-field input, .v53-field select, .v53-field textarea {
  font: inherit; font-size: 13px; color: #17242f; border: 1px solid #e4eaf1;
  border-radius: 6px; padding: 6px 9px; background: #fff; box-sizing: border-box;
}
.v53-field input:focus, .v53-field select:focus, .v53-field textarea:focus { outline: none; border-color: #16bfae; box-shadow: 0 0 0 2px rgba(22,191,174,.12); }
.v53-field .hint { font-weight: 400; color: #94a3b8; }
.v53-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.v53-checks label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #334155; }
.v53-inline { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.v53-inline label { font-size: 12.5px; color: #475569; font-weight: 600; }
.v53-inline input { height: 30px; border: 1px solid #e4eaf1; border-radius: 6px; padding: 0 8px; }
.v53-placeholder { padding: 26px 16px; text-align: center; }
.v53-placeholder b { display: block; font-size: 15px; color: #17242f; margin-bottom: 8px; }
.v53-placeholder p { font-size: 13px; color: #64748b; line-height: 1.8; margin: 0; }
.v53-placeholder .hint { color: #94a3b8; }

/* ---------- 表格与徽标 ---------- */
.v53-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.v53-tb th { background: #f6f9fb; color: #475569; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid #e4eaf1; white-space: nowrap; }
.v53-tb td { padding: 9px 10px; border-bottom: 1px solid #eef3f7; color: #334155; vertical-align: middle; }
.v53-tb tbody tr:hover { background: #fafdfc; }
.v53-tb td.num, .v53-tb th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.v53-tb td.hint, .v53-tb .hint { color: #94a3b8; font-size: 12px; }
.v53-ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v53-ops a { color: #0fa796; font-size: 12.5px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.v53-ops a:hover { text-decoration: underline; }
.v53-ops a.bad { color: #dc2626; }
.v53-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.v53-badge.ok { background: #e6f7f1; color: #0b8a6a; }
.v53-badge.warn { background: #fff5e0; color: #b45309; }
.v53-badge.bad { background: #fdeaea; color: #c0392b; }
.v53-badge.info { background: #e8f2fd; color: #1d6fb8; }
.v53-badge.gray { background: #eef2f6; color: #64748b; }

/* ---------- KPI ---------- */
.v53-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.v53-kpis .kpi { background: linear-gradient(180deg,#fff,#f7fbfa); border: 1px solid #e4eaf1; border-radius: 10px; padding: 14px 16px; }
.v53-kpis .kpi b { display: block; font-size: 24px; color: #0fa796; font-variant-numeric: tabular-nums; }
.v53-kpis .kpi i { font-style: normal; font-size: 12px; color: #64748b; }

/* ---------- 买单方与授权流程 ---------- */
.v53-payer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.v53-payer > div { background: #f7fbfa; border: 1px solid #e0f0ec; border-radius: 9px; padding: 12px 14px; }
.v53-payer i { display: block; font-style: normal; font-size: 11.5px; color: #94a3b8; margin-bottom: 4px; }
.v53-payer b { display: block; font-size: 15px; color: #17242f; margin-bottom: 3px; }
.v53-payer span { font-size: 12px; color: #64748b; }
.v53-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.v53-flow .fl { flex: 1 1 150px; min-width: 140px; background: #fff; border: 1px solid #e4eaf1; border-radius: 9px; padding: 10px 12px; position: relative; }
.v53-flow .fl b { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: #0fa796; color: #fff; border-radius: 50%; font-size: 11.5px; margin-right: 6px; }
.v53-flow .fl span { font-size: 13px; font-weight: 600; color: #17242f; }
.v53-flow .fl i { display: block; font-style: normal; font-size: 11.5px; color: #94a3b8; margin-top: 5px; line-height: 1.5; }
.v53-flow em { align-self: center; font-style: normal; color: #b6c6d1; font-size: 15px; }
.v53-formline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v53-formline select, .v53-formline input { height: 30px; border: 1px solid #e4eaf1; border-radius: 6px; padding: 0 8px; font-size: 13px; }
.v53-formline label { font-size: 12.5px; color: #475569; white-space: nowrap; }
.v53-orgline { display: flex; flex-wrap: wrap; gap: 8px; }
.v53-chip { display: inline-flex; align-items: center; gap: 7px; background: #f6f9fb; border: 1px solid #e4eaf1; border-radius: 18px; padding: 5px 12px; }
.v53-chip.payer { background: #e9f8f4; border-color: #a9e3d7; }
.v53-chip b { font-size: 12.5px; color: #17242f; }
.v53-chip i { font-style: normal; font-size: 11.5px; color: #64748b; }
.v53-chip a { color: #94a3b8; font-size: 14px; text-decoration: none; }
.v53-gt { font-size: 12.5px; }
.v53-gt td { padding: 8px 9px; }
.v53-keybox { background: #0d2b29; color: #7ff0dd; border-radius: 8px; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v53-keybox pre { font: inherit; color: inherit; font-size: 12.5px; letter-spacing: .5px; }
.v53-keybox a { color: #7ff0dd; font-size: 12.5px; cursor: pointer; white-space: nowrap; }

/* ---------- 创建阶段导入 ---------- */
.v53-parse-ok { background: #e9f8f4; border: 1px solid #a9e3d7; color: #0b6e58; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 10px; line-height: 1.7; }
.v53-parse-warn { background: #fff5e0; border: 1px solid #f5d79a; color: #92610b; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 10px; }
.v53-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v53-two h4 { font-size: 13px; color: #17242f; margin: 0 0 6px; }
.v53-two .v53-tb td:first-child { width: 130px; color: #64748b; font-size: 12px; }

/* ---------- 部署向导 ---------- */
.v53-wiz-top { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.v53-wiz-top > div:first-child { flex: 1; }
.v53-wiz-top b { font-size: 16px; color: #17242f; }
.v53-wiz-top span { font-size: 12.5px; color: #64748b; }
.v53-bar { height: 8px; background: #eef3f7; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.v53-bar i { display: block; height: 100%; background: linear-gradient(90deg,#16bfae,#0fa796); border-radius: 6px; transition: width .4s ease; }
.v53-wiz-pct { font-size: 34px; font-weight: 700; color: #0fa796; font-variant-numeric: tabular-nums; }
.v53-wiz-pct i { font-style: normal; font-size: 15px; color: #94a3b8; margin-left: 2px; }
.v53-wiz { display: grid; gap: 10px; margin: 12px 0; }
.v53-step { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4eaf1; border-radius: 10px; padding: 14px 16px; }
.v53-step.ok { border-color: #bde9de; background: linear-gradient(90deg,#f4fcf9,#fff 40%); }
.v53-step .sn { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #eef3f7; color: #64748b; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.v53-step.ok .sn { background: #0fa796; color: #fff; }
.v53-step .sb { flex: 1; min-width: 0; }
.v53-step .sb b { font-size: 14px; color: #17242f; }
.v53-step .sb p { font-size: 12.5px; color: #64748b; line-height: 1.6; margin: 4px 0; }
.v53-step .sb .meta { font-size: 11.5px; color: #94a3b8; }
.v53-step .sa { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.v53-step .sa .btn-o { padding: 5px 12px; font-size: 12.5px; text-decoration: none; white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .v53-payer, .v53-two { grid-template-columns: 1fr; }
  .v53-kpis { grid-template-columns: repeat(2, 1fr); }
  .v53-step { flex-wrap: wrap; }
  .v53-step .sa { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .v53-gt { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 560px) {
  .v53-kpis { grid-template-columns: repeat(2, 1fr); }
  .v53-flow em { display: none; }
}
