/**
 * 文件职责：优惠券页面布局样式。
 * 1. 工具栏、统计区、空态与分页布局。
 */
.page-marketing-coupon {
  .mcp-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mcp-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    box-shadow: var(--mcp-shadow-sm);
  }

  .mcp-store-select {
    width: 220px;
  }

  .mcp-store-select .ant-select-selector,
  .mcp-filter-select .ant-select-selector {
    border-radius: 8px !important;
  }

  .mcp-filter-select {
    width: 140px;
  }

  .mcp-search {
    width: 180px;
  }

  .mcp-spacer {
    flex: 1;
  }

  .mcp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .mcp-stat-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    box-shadow: var(--mcp-shadow-sm);
    transition: box-shadow var(--mcp-transition);
  }

  .mcp-stat-card:hover {
    box-shadow: var(--mcp-shadow-md);
  }

  .mcp-stat-main {
    min-width: 0;
  }

  .mcp-stat-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 8px;
  }

  .mcp-stat-blue {
    color: #1677ff;
    background: #e6f4ff;
  }

  .mcp-stat-green {
    color: #52c41a;
    background: #f6ffed;
  }

  .mcp-stat-orange {
    color: #fa8c16;
    background: #fff7e6;
  }

  .mcp-stat-purple {
    color: #722ed1;
    background: #f9f0ff;
  }

  .mcp-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--mcp-text);
  }

  .mcp-stat-label {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: var(--mcp-muted);
    white-space: nowrap;
  }

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

  .mcp-empty {
    padding: 28px 14px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    background: #fff;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    box-shadow: var(--mcp-shadow-sm);
  }

  .mcp-pagination {
    display: flex;
    justify-content: flex-end;
    padding: 12px 4px 2px;
    margin-top: 14px;
  }
}
