/* =========================================================
   签收台：货架 / 拆封 / 过场文书（gacha.js）
   ========================================================= */

/* ================= 分拣员 · 到访状态 ================= */
/* 状态不再挂标签：在不在、走不走，全写在下面那一行字里 */
.mer-line {
  font-family: monospace;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--text-dim);
  letter-spacing: 0.2px;
  margin: 8px 0 6px;
  min-height: 30px;
}

.mer-line b {
  color: #cfd5dd;
  font-weight: 600;
}

.mer-bar {
  position: relative;
  height: 5px;
  margin-bottom: 9px;
  background: #0c0e12;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mer-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: #3f4653;
  transition: width 0.3s linear;
}

.mer-bar.on i {
  background: #cfd5dd;
  box-shadow: 0 0 8px rgba(207, 213, 221, 0.4);
}

.mer-bar.full i {
  background: #7d8590;
  box-shadow: 0 0 10px rgba(207, 213, 221, 0.3);
}

/* 不在岗：整页收成一行字，没有边框没有底，越空越像人真的走了 */
.sign-away {
  font-family: monospace;
  font-size: 10px;
  line-height: 1.9;
  color: #4e5562;
  letter-spacing: 0.4px;
  padding: 26px 2px 30px;
}

.sign-away b {
  color: #8b939f;
  font-weight: 600;
}

/* 小费那只手：不给文字，不给价格，缩在标题行右角 */
.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: -2px -2px -2px 0;
  background: transparent;
  border: 1px solid transparent;
  color: #4e5562;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tip-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.tip-btn:active {
  color: #cfd5dd;
  border-color: var(--border);
}

/* ================= 情报 · 到访预警 ================= */
.intel-row {
  align-items: center;
}

.intel-row.on {
  border-color: var(--border-light);
  background: #12151a;
}

/* 已接入的行不该被 :disabled 的透明度压暗 */
.intel-row.on:disabled {
  opacity: 1;
  cursor: default;
}

.intel-row.off {
  opacity: 0.35;
}

.intel-on {
  font-family: monospace;
  font-size: 8.5px;
  color: #cfd5dd;
  border: 1px solid #3f4653;
  padding: 0 3px;
  margin-left: 3px;
  letter-spacing: 1px;
}

/* 签收页签上的到岗提示点 */
.nav-btn.alert {
  position: relative;
  color: #cfd5dd;
}

.nav-btn.alert::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 50%;
  margin-right: -22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cfd5dd;
  box-shadow: 0 0 6px rgba(207, 213, 221, 0.8);
  animation: navDot 1.6s ease-in-out infinite;
}

@keyframes navDot {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* 货架 */
.sign-packs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sign-pack {
  width: 100%;
  text-align: left;
  background: #0b0d10;
  border: 1px solid var(--border);
  border-left: 2px solid #1c2027;
  padding: 7px 9px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.sign-pack:active {
  background: #14171d;
}

.sign-pack.on {
  background: #12151a;
  border-color: var(--border-light);
  border-left-color: #cfd5dd;
}

.sp-name {
  font-size: 11.5px;
  color: #8b939f;
  letter-spacing: 0.4px;
}

.sign-pack.on .sp-name {
  color: #fff;
}

/* 整包还是问号：不可拆 */
.sign-pack.lock {
  cursor: default;
  opacity: 0.4;
  border-left-color: #14171d;
  background: #090a0d;
}

.sign-pack.lock .sp-name {
  color: var(--text-dim);
  letter-spacing: 3px;
}

.sign-pack.lock .sp-meta {
  color: #343a45;
}

.sp-meta {
  font-family: monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.sign-pack-desc {
  font-size: 9.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  min-height: 15px;
}

/* 拆封按钮 */
.sign-draws {
  display: flex;
  gap: 6px;
}

.sign-draw {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 9px 4px 7px;
  background: #111418;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.sign-draw:active:not(:disabled) {
  background: #1a1e24;
  border-color: var(--border-light);
}

.sign-draw:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sign-draw.off {
  border-style: dashed;
  opacity: 0.34;
}

/* 暂时拆不了：它不在 / 袋子不够 / 点数不足（可用态会自己恢复） */
.sign-draw.wait {
  border-style: dashed;
  border-color: #1c2027;
}

.sign-draw.wait .sd-label {
  color: #6e7681;
}

.sign-draw.wait .sd-price {
  color: var(--text-dim);
}

.sign-draw.wait .sd-note {
  color: #b8494a;
}

/* 待开通的档位：点了是买断，不是抽 */
.sign-draw.buy {
  border-style: dashed;
  border-color: #3a2023;
  background: #120c0d;
}

.sign-draw.buy .sd-label {
  color: #cfd5dd;
}

.sign-draw.buy .sd-note {
  color: #b8494a;
}

.sd-label {
  font-size: 11.5px;
  color: #fff;
  letter-spacing: 1.5px;
}

.sd-price {
  font-family: monospace;
  font-size: 12px;
  color: var(--text);
}

.sign-draw.deal .sd-price {
  color: #e05a5a;
}

.sd-note {
  font-family: monospace;
  font-size: 8px;
  color: var(--text-dim);
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.2px;
}

.sign-progress {
  font-family: monospace;
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.7;
  letter-spacing: 0.3px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
}

/* ================= 拆封结果行（面板外壳在 modal.css） ================= */
.ss-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px dashed #16191f;
  opacity: 0;
  transform: translateY(6px);
  animation: ssLineIn 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes ssLineIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.ss-tag {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 8.5px;
  color: var(--c);
  border: 1px solid var(--c);
  padding: 0 3px;
  opacity: 0.85;
}

.ss-name {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: #7d8590;
}

.ss-line.new .ss-name {
  color: #fff;
  font-weight: 600;
}

.ss-res {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 9px;
  color: var(--text-dim);
}

.ss-line.new .ss-res {
  color: #cfd5dd;
}
