/* Peak Shield — 构建产物 jdl-shield.css 单独引入 */
#jdl-shield-guard.jdl-shield {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: inherit;
}

#jdl-shield-guard.jdl-shield .jdl-shield__mask {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.65) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
  box-sizing: border-box;
}

#jdl-shield-guard.jdl-shield .jdl-shield__card {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  max-width: calc(100vw - 24px) !important;
  width: min(520px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

#jdl-shield-guard.jdl-shield .jdl-shield__card--horizontal .jdl-shield__title {
  text-align: left;
}

#jdl-shield-guard.jdl-shield .jdl-shield__card--vertical .jdl-shield__title {
  text-align: center;
}

#jdl-shield-guard.jdl-shield .jdl-shield__title {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content {
  flex: 1;
  min-height: 0;
  color: #334155;
  line-height: 1.75;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html {
  white-space: normal;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html p {
  margin: 0 0 0.75em;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html p:last-child {
  margin-bottom: 0;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html ul,
#jdl-shield-guard.jdl-shield .jdl-shield__content--html ol {
  margin: 0.5em 0;
  padding-left: 1.25em;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html a {
  color: #2563eb;
  text-decoration: underline;
}

#jdl-shield-guard.jdl-shield .jdl-shield__content--html strong {
  color: #0f172a;
  font-weight: 700;
}

/* 默认警示强调：需压过内容区 strong 的颜色 */
#jdl-shield-guard.jdl-shield .jdl-shield__content--html .jdl-shield__warn,
#jdl-shield-guard.jdl-shield .jdl-shield__content--html .jdl-shield__warn strong {
  color: #dc2626;
  font-weight: 700;
}

#jdl-shield-guard.jdl-shield .jdl-shield__footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex-shrink: 0;
  width: 100%;
}

#jdl-shield-guard.jdl-shield .jdl-shield__ack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

#jdl-shield-guard.jdl-shield .jdl-shield__ack input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

#jdl-shield-guard.jdl-shield .jdl-shield__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: stretch;
  box-sizing: border-box;
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn {
  flex: 1 1 calc(50% - 5px);
  margin: 0;
  display: block;
  min-width: min(100%, 120px);
  max-width: 100%;
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

/* 极窄屏：按钮上下铺满，保证全部可见 */
@media (max-width: 360px) {
  #jdl-shield-guard.jdl-shield .jdl-shield__actions {
    flex-direction: column;
  }

  #jdl-shield-guard.jdl-shield .jdl-shield__btn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn--cancel {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #d8e0ea;
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn--cancel:hover {
  background: #f8fafc;
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn--confirm {
  background: #1d4ed8;
  color: #fff;
  /* 审批中文案可能较长：单行省略，避免撑破按钮 */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn--confirm:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

#jdl-shield-guard.jdl-shield .jdl-shield__btn--confirm:not(:disabled):hover {
  background: #1e40af;
}

