/* 本域直播 · 控制台促销管理（v1.9） */

.promotion-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 18px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f6fd;
}

.promotion-kind {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  background: transparent;
  color: #5b6b85;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.promotion-kind:hover {
  color: var(--brand);
}

.promotion-kind.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 10px rgba(22, 93, 255, .12);
}

.promotion-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.promotion-metric {
  padding: 14px 16px;
  border: 1px solid #e4ebf7;
  border-radius: 14px;
  background: #fff;
}

.promotion-metric span {
  display: block;
  color: #7c8aa5;
  font-size: 12px;
}

.promotion-metric b {
  display: block;
  margin-top: 3px;
  color: #14213d;
  font-size: 21px;
  line-height: 1.25;
}

.promotion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promotion-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e4ebf7;
  border-radius: 16px;
  background: #fff;
}

.promotion-card-main {
  flex: 1;
  min-width: 220px;
}

.promotion-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.promotion-card-title strong {
  color: #14213d;
  font-size: 15px;
}

.promotion-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef2f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.promotion-status.is-draft {
  background: #fff6e8;
  color: #b54708;
}

.promotion-status.is-running {
  background: #e8f8f1;
  color: #0e9f6e;
}

.promotion-status.is-ended {
  background: #f3f4f6;
  color: #8c99b3;
}

.promotion-card p {
  margin: 6px 0 0;
  color: #7c8aa5;
  font-size: 12.5px;
  line-height: 1.65;
}

.promotion-card p.promotion-highlight {
  color: #33507a;
  font-weight: 600;
}

.promotion-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #eef2f9;
  overflow: hidden;
}

.promotion-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #165dff, #5b8cff);
  transition: width .3s ease;
}

.promotion-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 280px;
}

.promotion-actions .btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.promotion-total-preview {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f8ff;
  color: #33507a;
  font-size: 13px;
}

.promotion-total-preview b {
  color: var(--brand);
  font-size: 15px;
}

.promotion-total-preview.is-insufficient {
  background: #fff5f5;
  color: #a12626;
}

.promotion-total-preview.is-insufficient b {
  color: #d92d20;
}

.promotion-editor-dialog {
  width: min(720px, 100%);
}

.promotion-claims-dialog {
  width: min(780px, 100%);
}

.promotion-claims-body {
  overflow-x: auto;
}

.promotion-claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.promotion-claims-table th,
.promotion-claims-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f9;
  text-align: left;
  vertical-align: middle;
}

.promotion-claims-table th {
  color: #7c8aa5;
  font-size: 12px;
  font-weight: 600;
}

.promotion-claims-table td {
  color: #384b6b;
}

.promotion-claims-table .is-amount {
  color: #d92d20;
  font-weight: 700;
}

.promotion-claims-empty {
  padding: 28px 10px;
  color: #8c99b3;
  font-size: 13px;
  text-align: center;
}

.promotion-claims-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #8c99b3;
  font-size: 12px;
}

.promotion-claims-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.promotion-claims-status.is-paid {
  background: #e8f8f1;
  color: #0e9f6e;
}

.promotion-claims-status.is-failed {
  background: #fff0f0;
  color: #d92d20;
}

.promotion-claims-status.is-pending {
  background: #fff6e8;
  color: #b54708;
}

.promotion-claims-status.is-transferring {
  background: #eef3ff;
  color: #165dff;
}

@media (max-width: 760px) {
  .promotion-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-card {
    flex-direction: column;
  }

  .promotion-actions {
    justify-content: flex-start;
    max-width: none;
  }
}
