/*!
 * web/assets/css/index/16-share-card.css
 * 分享弹窗（core/58-share-card.js）
 * 2026-09-16：统一 采购单 / 销售单 的分享链路 —— 二维码 + 6 行文案 + 复制文本/复制图片/下载图片。
 * 关键：复制按钮各自是一次独立用户手势，避免「await 之后 clipboard 被拒 → 谎报已复制」。
 */

.gpsc{
  position: fixed;
  inset: 0;
  /* 高于图片查看器（+60）：同一套 --gp-ztop 偏移，保持相对顺序，不再各写一个魔法数字（#162） */
  z-index: calc(var(--gp-ztop,2000) + 70);
  display: none;
}
.gpsc--show{ display: block; }
.gpsc__mask{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.gpsc__panel{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(94vw, 460px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--cd, #fff);
  color: var(--tc, #1c1c1e);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .18);
  overflow: hidden;
  animation: gpscUp .18s ease;
}
@keyframes gpscUp{ from{ transform: translate(-50%, 12px); opacity: .6 } to{ transform: translate(-50%, 0); opacity: 1 } }
@media (min-height: 560px){
  .gpsc__panel{ bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 16px; animation: none; }
}
.gpsc__head{
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bd, #e5e5ea);
  flex: 0 0 auto;
}
.gpsc__title{ flex: 1 1 auto; font-size: 15px; font-weight: 600; }
.gpsc__x{
  appearance: none; border: 0; background: transparent; color: var(--ts, #636366);
  font-size: 16px; line-height: 1; padding: 6px; cursor: pointer; border-radius: 50%;
}
.gpsc__x:hover{ background: var(--cb, #f2f2f7); }
.gpsc__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}
.gpsc__qr{ text-align: center; margin-bottom: 12px; }
.gpsc__qrimg{
  width: 168px; height: 168px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--bd, #e5e5ea);
}
.gpsc__qrtip{ font-size: 12px; color: var(--ts, #636366); margin-top: 6px; }
.gpsc__text{
  width: 100%;
  min-height: 132px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--bd, #e5e5ea);
  border-radius: 10px;
  background: var(--cb, #f2f2f7);
  color: var(--tc, #1c1c1e);
  font: 13px/1.9 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  resize: vertical;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.gpsc__foot{
  display: flex;
  gap: 8px;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border-top: 1px solid var(--bd, #e5e5ea);
  flex: 0 0 auto;
}
.gpsc__btn{
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--bd, #e5e5ea);
  border-radius: 999px;
  background: var(--cd, #fff);
  color: var(--tc, #1c1c1e);
  font-size: 14px;
  height: 40px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.gpsc__btn:hover{ background: var(--cb, #f2f2f7); }
.gpsc__btn:disabled{ opacity: .6; cursor: default; }
.gpsc__btn--pri{
  background: var(--pc, #007AFF);
  border-color: var(--pc, #007AFF);
  color: #fff;
  font-weight: 600;
}
.gpsc__btn--pri:hover{ filter: brightness(.94); }

/* 暗色主题 */
:root.dark .gpsc__panel{ background: #1c1c1e; color: #f5f5f7; }
:root.dark .gpsc__text{ background: #2c2c2e; border-color: #38383a; color: #f5f5f7; }
:root.dark .gpsc__btn{ background: #2c2c2e; border-color: #38383a; color: #f5f5f7; }
:root.dark .gpsc__btn--pri{ background: #007AFF; border-color: #007AFF; color: #fff; }

/* ---------- 分享单审批横幅（sales-detail）---------- */
/* 2026-09-16（送审反馈 #9）：客户从分享页提交的单据需分享人审批后才生效 */
.audit-box{
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 149, 0, .1);
  border: 1px solid rgba(255, 149, 0, .35);
}
.audit-box--rej{ background: rgba(255, 59, 48, .08); border-color: rgba(255, 59, 48, .3); }
.audit-box__hd{ font-size: 14px; font-weight: 600; color: #c77700; display: flex; align-items: center; }
.audit-box--rej .audit-box__hd{ color: var(--dc); }
.audit-box__tip{ font-size: 12px; color: var(--ts); margin-top: 4px; line-height: 1.7; }
