/* ============ V1.0.0 b11 样式：羚羊标识 / 卡片明细 / 导出中心 / 分页 ============ */

/* ---------------- 一、奔跑的羚羊 ---------------- */
.v99-ant {
  display: inline-block; vertical-align: -3px;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
/* 质疑「全部关闭」→ 羚羊（替换原来的 ☺ 笑脸） */
.v97-qm.closed { padding: 0 4px; }
.v97-qm.closed .v99-ant { width: 17px; height: 17px; }
.v97-qm.closed:hover .v99-ant { animation: v99gallop .5s ease-in-out; }
@keyframes v99gallop {
  0%   { transform: translateY(0) rotate(0); }
  35%  { transform: translateY(-3px) rotate(-4deg); }
  70%  { transform: translateY(1px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}
.v98-ic .v99-ant { width: 15px; height: 15px; margin-right: 1px; }
.v99-ant-lg { width: 30px; height: 30px; }
.v99-ant-empty { display: block; width: 46px; height: 46px; margin: 0 auto 6px; opacity: .9; }

/* ---------------- 二、进度条羚羊带头 ----------------
   轨道容器统一加高到 18px，真正 6px 的轨道用 ::before 画在中间，
   羚羊（18px）因此始终在容器内 —— 即使卡片是 overflow:hidden 也不会被裁。 */
.stu-prog, .vs-bar, .v92-prog, .v80-bar, .v93-prog, .v95-bar, .v99-prog, .v99-track {
  position: relative;
  height: 18px !important;
  background: transparent !important;
  display: flex; align-items: center;
  overflow: visible !important;
  border-radius: 0;
}
.stu-prog::before, .vs-bar::before, .v92-prog::before, .v80-bar::before,
.v93-prog::before, .v95-bar::before, .v99-prog::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; border-radius: 99px; transform: translateY(-50%);
  background: linear-gradient(90deg, #e7f1f0, #eef4f7);
  pointer-events: none;
}
.stu-prog > i, .vs-bar > i, .v92-prog > i, .v80-bar > i,
.v93-prog > i, .v95-bar > i, .v99-prog > i {
  position: relative; z-index: 1;
  height: 6px !important; margin: 0; border-radius: 99px;
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}
.v99-runner {
  position: absolute; top: 50%; left: 0;
  width: 18px; height: 18px; object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px rgba(12, 74, 68, .22));
  transition: left .45s cubic-bezier(.22, .8, .3, 1);
  pointer-events: none; z-index: 2;
}
/* 0% 时贴左，避免半个身子被裁 */
.v99-track[data-v99pct="0"] .v99-runner, .v99-prog[data-v99pct="0"] .v99-runner { transform: translate(-2px, -50%); }

/* 通用入组进度轨道（羚羊带头） */
.v99-prog { width: 100%; margin: 0; }
.kcard > .v99-prog, .v52-kcard > .v99-prog { margin: 2px 2px 6px; width: auto; }

/* ---------------- 三、数据核查「点开 → 卡片」 ---------------- */
.v99-dcard {
  border: 1px solid #e2edf2; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 10px rgba(15, 45, 60, .05); overflow: hidden;
}
.v99-dhd {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; background: linear-gradient(120deg, #f3fbf9, #f7fcfd 60%, #f4f9fd);
  border-bottom: 1px solid #e6f1f0;
}
.v99-dwho { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.v99-dno {
  font-size: 19px; font-weight: 800; color: #0d4f4a; letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}
.v99-dst { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e6f8f1; color: #0b7d5e; border: 1px solid #a9e3d1; }
.v99-dst.warn { background: #fff7e6; color: #a16207; border-color: #f5d9a0; }
.v99-dst.off { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.v99-dmeta { font-size: 12px; color: #5b7383; line-height: 1.7; }
.v99-dmeta b { color: #33566b; font-weight: 600; }
.v99-dkpi { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.v99-dkpi > div {
  min-width: 62px; padding: 5px 10px; border-radius: 9px; background: #fff;
  border: 1px solid #e6eef2; text-align: center;
}
.v99-dkpi b { display: block; font-size: 15px; color: #0e8b7c; line-height: 1.25; font-variant-numeric: tabular-nums; }
.v99-dkpi span { font-size: 10.5px; color: #879caa; }
.v99-dkpi > div.warn { border-color: #f5d9a0; background: #fffdf7; }
.v99-dkpi > div.warn b { color: #b45309; }
.v99-dkpi > div.bad { border-color: #f3c9c5; background: #fffafa; }
.v99-dkpi > div.bad b { color: #b3261e; }
.v99-dkpi > div.good { border-color: #a9e3d1; background: #f6fffb; }
.v99-dkpi > div.good b { color: #0b7d5e; }

/* 分访视卡片网格 */
.v99-vgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 10px; padding: 12px; background: #fbfdfe;
}
.v99-vcard {
  border: 1px solid #e6eef2; border-radius: 10px; background: #fff; overflow: hidden;
}
.v99-vhd {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; background: #f7fbfd; border-bottom: 1px solid #edf3f6;
  font-size: 12.5px; font-weight: 700; color: #2b4354;
}
.v99-vhd .code {
  font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #16bfae, #0fa796);
  border-radius: 5px; padding: 1px 6px; letter-spacing: .3px;
}
.v99-vhd i { font-style: normal; font-weight: 500; color: #93a7b4; font-size: 11px; margin-left: auto; }
.v99-vhd .q { font-size: 11px; font-weight: 700; color: #b3261e; background: #fdeceb; border-radius: 99px; padding: 1px 7px; }
.v99-vhd .nc { font-size: 11px; font-weight: 700; color: #a16207; background: #fff7e6; border-radius: 99px; padding: 1px 7px; }
.v99-vcard .v97-fld { width: 100%; min-width: 520px; border-collapse: collapse; table-layout: auto; }
.v99-vcard .v97-fld th, .v99-vcard .v97-fld td { white-space: nowrap; }
.v99-vcard .v97-fld th:first-child, .v99-vcard .v97-fld td:first-child { width: 34px; }
.v99-vcard .v97-fld td:nth-child(2) { min-width: 46px; }
.v99-vcard .v97-fld th { position: static; }
.v99-vwrap { max-height: 320px; overflow: auto; }

/* 空态：没有待核查数据时也用羚羊 */
.v99-empty-ant { text-align: center; padding: 22px 12px 26px; color: #8ba0ae; font-size: 12.5px; }
.v99-empty-ant .t { color: #0b7d5e; font-weight: 700; font-size: 13px; margin-bottom: 3px; }

/* ---------------- 四、数据导出中心 ---------------- */
.v99-ex { display: flex; flex-direction: column; gap: 12px; }
.v99-exbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; background: #f7fbfd; border: 1px solid #e6eef2; border-radius: 11px;
}
.v99-exbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4b6474; white-space: nowrap; flex: 0 0 auto; }
.v99-exbar select {
  height: 32px; border: 1px solid #cfdde5; border-radius: 7px; background: #fff;
  color: #263b4a; font-size: 12.5px; padding: 0 8px; max-width: 230px;
}
.v99-exbar .sp { flex: 1; }
.v99-exprev {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: #52697a; padding: 2px 2px 0;
}
.v99-exprev b { color: #0e8b7c; font-size: 13px; font-variant-numeric: tabular-nums; }
.v99-excards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.v99-excard {
  border: 1px solid #e6eef2; border-radius: 11px; background: #fff; padding: 12px 13px;
  display: flex; flex-direction: column; gap: 7px; transition: .18s;
}
.v99-excard:hover { border-color: #b9e3d9; box-shadow: 0 4px 14px rgba(15, 120, 105, .08); }
.v99-excard h4 { margin: 0; font-size: 13px; color: #1f3a4a; display: flex; align-items: center; gap: 7px; }
.v99-excard h4 .k {
  font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #16bfae, #0fa796);
  border-radius: 5px; padding: 1px 6px;
}
.v99-excard p { margin: 0; font-size: 11.5px; color: #7d94a2; line-height: 1.65; }
.v99-excard .btn-o, .v99-excard .btn-p { align-self: flex-start; }
.v99-exhint { font-size: 11.5px; color: #8ba0ae; line-height: 1.8; }

/* 盲底权限说明 */
.v99-blindnote {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid #f5d9a0; background: #fffdf7; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; color: #8a5a08; line-height: 1.7;
}
.v99-blindnote b { color: #7c4a03; }
.v99-blindlock {
  border: 1px dashed #d8e8ef; background: #fafdff; border-radius: 10px;
  padding: 16px; text-align: center; color: #7d94a2; font-size: 12.5px; line-height: 1.8;
}

/* 通用入组进度轨道（羚羊带头）：宽度自适应容器 */
.v99-prog {
  height: 6px; width: 100%; margin: 0; border-radius: 99px;
  background: linear-gradient(90deg, #e7f1f0, #eef4f7); overflow: visible;
}
.v99-prog > i {
  display: block; height: 100%; border-radius: 99px; min-width: 2px;
  background: linear-gradient(90deg, #0fa796, #2fbfa6);
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}
/* 项目卡底部的进度条留一点上下间距 */
.kcard > .v99-prog, .v52-kcard > .v99-prog { margin: 2px 14px 10px; width: auto; }

/* ---------------- 五、分页宿主 ---------------- */
.v99-pghost { height: 0; overflow: visible; }
.v99-pghost:empty { display: none; }

/* ---------------- 六、响应式 ---------------- */
@media (max-width: 900px) {
  .v99-vgrid { grid-template-columns: 1fr; padding: 10px; }
  .v99-dhd { padding: 10px 11px; gap: 9px; flex-direction: column; align-items: stretch; }
  .v99-dkpi { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .v99-dkpi > div { flex: none; min-width: 0; padding: 5px 4px; }
  .v99-dkpi b { font-size: 14px; }
  .v99-dkpi span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 明细行在 table 内，宽度会被表格（min-width 540）撑开；
     手机端把卡片钉到视口宽，内部表格再横向滚动，KPI 才不会被裁。 */
  .v99-dcard { width: calc(100vw - 72px); max-width: calc(100vw - 72px); }
  /* 手机端：卡片已按访视分组，「阶段」列冗余，隐藏后字段列更宽松 */
  .v99-vcard .v97-fld { min-width: 410px; }
  .v99-vcard .v97-fld th:nth-child(2), .v99-vcard .v97-fld td:nth-child(2) { display: none; }
  .v99-dno { font-size: 17px; }
  .v99-exbar select { max-width: 100%; }
  .v99-excards { grid-template-columns: 1fr; }
  .v99-runner { width: 17px; height: 17px; }
}
@media (max-width: 480px) {
  .v99-vcard .v97-fld { font-size: 11px; }
  .v99-exbar { padding: 9px 10px; gap: 8px; }
}
