/* 文档版本历史面板 —— 与现有 nwwps-* 风格保持一致 */

.nwver-mask{
  position:fixed; inset:0; z-index:9800;
  background:rgba(15,23,42,.42);
  display:flex; align-items:center; justify-content:center;
  font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
}
.nwver-panel{
  width:min(1080px,92vw); height:min(720px,86vh);
  background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:0 18px 48px rgba(15,23,42,.22);
  display:flex; flex-direction:column;
}
.nwver-head{
  flex:0 0 auto; display:flex; align-items:center; gap:10px;
  padding:12px 16px; border-bottom:1px solid #e5e7eb; background:#fafafa;
}
.nwver-title{ font-size:15.5px; font-weight:500; color:#111827; }
.nwver-sub{ font-size:12px; color:#6b7280; }
.nwver-x{
  margin-left:auto; width:28px; height:28px; border:0; border-radius:6px;
  background:transparent; color:#6b7280; font-size:21px; line-height:1; cursor:pointer;
}
.nwver-x:hover{ background:#e5e7eb; color:#111827; }

.nwver-body{ flex:1 1 auto; display:flex; min-height:0; }

.nwver-list{
  flex:0 0 232px; border-right:1px solid #e5e7eb; overflow-y:auto;
  background:#fcfcfd; padding:8px;
}
.nwver-it{
  padding:9px 10px; border-radius:8px; cursor:pointer;
  border:1px solid transparent; margin-bottom:4px;
}
.nwver-it:hover{ background:#f3f4f6; }
.nwver-it.sel{ background:#eef2ff; border-color:#c7d2fe; }
.nwver-it.cur .nwver-v em{
  font-style:normal; font-size:11px; color:#047857;
  background:#d1fae5; border-radius:4px; padding:1px 5px; margin-left:4px;
}
.nwver-v{ font-size:13.5px; font-weight:500; color:#111827; }
.nwver-m{ font-size:12px; color:#6b7280; margin-top:2px; }
.nwver-s{ font-size:11px; color:#9ca3af; margin-top:1px; }

.nwver-view{ flex:1 1 auto; overflow-y:auto; padding:16px 20px; min-width:0; }
.nwver-vhead{
  display:flex; align-items:center; gap:12px;
  padding-bottom:10px; margin-bottom:12px; border-bottom:1px solid #f1f5f9;
  font-size:13.5px; color:#374151;
}
.nwver-rb{
  margin-left:auto; padding:5px 12px; border-radius:6px;
  border:1px solid #d1d5db; background:#fff; color:#374151;
  font-size:12px; cursor:pointer;
}
.nwver-rb:hover{ background:#f3f4f6; }

.nwver-doc{ font-size:14.5px; color:#1f2937; line-height:1.8; word-break:break-word; }
.nwver-doc table{ border-collapse:collapse; width:100%; margin:8px 0; }
.nwver-doc td,.nwver-doc th{ border:1px solid #e5e7eb; padding:5px 8px; }
.nwver-doc h1,.nwver-doc h2,.nwver-doc h3{ margin:14px 0 8px; }

.nwver-msg{ padding:28px 12px; text-align:center; color:#6b7280; font-size:13.5px; }
.nwver-msg.err{ color:#b91c1c; }
.nwver-hint{ font-size:12px; color:#9ca3af; }
.nwver-empty{ padding:60px 12px; text-align:center; color:#9ca3af; font-size:13.5px; }
