/* 会员资料弹窗：双列表格，整体缩小一档 */
html body .admin-shell .admin-modal.member-profile-modal,
html body .admin-modal.member-profile-modal {
  width: min(640px, 90vw) !important;
  max-width: 640px !important;
  max-height: 82vh !important;
  border-radius: 4px !important;
  border: 1px solid #d7dee5 !important;
  overflow: hidden !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2) !important;
}

html body .admin-modal.member-profile-modal > header {
  height: 36px !important;
  padding: 0 10px !important;
  background: linear-gradient(#e9f6fb, #d9eef6) !important;
  border-bottom: 1px solid #cfe0e8 !important;
}

html body .admin-modal.member-profile-modal > header h3 {
  font-size: 13px !important;
  color: #31515c !important;
  font-weight: 600 !important;
}

html body .admin-modal.member-profile-modal > header button {
  transform: none !important;
  font-size: 16px !important;
  color: #8a9aa3 !important;
}

html body .admin-modal.member-profile-modal > div:not(footer) {
  max-height: calc(82vh - 84px) !important;
  overflow: auto !important;
  background: #fff !important;
}

html body .admin-modal.member-profile-modal .member-profile-body {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  min-height: 0 !important;
}

html body .admin-modal.member-profile-modal .member-profile-col {
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

html body .admin-modal.member-profile-modal .member-profile-col:first-child {
  border-right: 1px solid #e5e9ee !important;
}

html body .admin-modal.member-profile-modal .member-profile-col > label,
html body .admin-modal.member-profile-modal .member-profile-avatar-row,
html body .admin-modal.member-profile-modal .member-profile-pay-row {
  display: grid !important;
  grid-template-columns: 88px 1fr !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  min-height: 32px !important;
  border-bottom: 1px solid #eef1f4 !important;
  font-size: 12px !important;
  color: #606266 !important;
  background: #fff !important;
}

html body .admin-modal.member-profile-modal .member-profile-avatar-row,
html body .admin-modal.member-profile-modal .member-profile-pay-row {
  min-height: 50px !important;
}

html body .admin-modal.member-profile-modal .member-profile-col > label > .mp-label-text,
html body .admin-modal.member-profile-modal .member-profile-avatar-row > span,
html body .admin-modal.member-profile-modal .member-profile-pay-row > span {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: right !important;
  padding: 0 8px 0 6px !important;
  color: #606266 !important;
  background: #f7f8fa !important;
  border-right: 1px solid #eef1f4 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

html body .admin-modal.member-profile-modal .member-profile-col > label input,
html body .admin-modal.member-profile-modal .member-profile-col > label select {
  width: calc(100% - 12px) !important;
  margin: 4px 6px !important;
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 3px !important;
  background: #f5f7fa !important;
  color: #303133 !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

html body .admin-modal.member-profile-modal .member-profile-col > label input[data-mp-locked="1"],
html body .admin-modal.member-profile-modal .member-profile-col > label select[data-mp-locked="1"],
html body .admin-modal.member-profile-modal .member-profile-col > label input:disabled,
html body .admin-modal.member-profile-modal .member-profile-col > label select:disabled {
  color: #909399 !important;
  background: #eef0f3 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

html body .admin-modal.member-profile-modal .member-profile-avatar-row img,
html body .admin-modal.member-profile-modal .member-profile-pay-row img {
  margin: 4px 6px !important;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 2px !important;
  background: #fff !important;
}

html body .admin-modal.member-profile-modal .member-profile-pay-row img {
  cursor: zoom-in !important;
}

html body .admin-modal.member-profile-modal .member-profile-pay-row em {
  margin: 0 6px !important;
  color: #c0c4cc !important;
  font-style: normal !important;
  line-height: 24px !important;
  font-size: 12px !important;
}

html body .admin-shell[class][class] .admin-modal.member-profile-modal footer,
html body .admin-modal.member-profile-modal footer {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-top: 1px solid #e8eaec !important;
  background: #fff !important;
}

html body .admin-shell[class][class] .admin-modal.member-profile-modal footer button,
html body .admin-modal.member-profile-modal footer button {
  height: 28px !important;
  min-height: 28px !important;
  min-width: 64px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  line-height: 26px !important;
  border-radius: 3px !important;
}

html body .admin-modal.member-profile-modal footer .modal-cancel {
  background: #fff !important;
  color: #606266 !important;
  border: 1px solid #dcdfe6 !important;
}

/* 收款码：仅放大原图 */
.mp-pay-zoom-mask {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

.mp-pay-zoom-mask img {
  max-width: min(80vw, 560px);
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
