/**
 * 文件职责：次卡页面布局样式。
 */
.page-marketing-punch-card {
  .mpc-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mpc-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

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

  .mpc-toolbar-top {
    gap: 12px;
  }

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

  .mpc-filter-select {
    width: 150px;
  }

  .mpc-search {
    width: 220px;
  }

  .mpc-spacer {
    flex: 1;
  }

  .mpc-readonly-tip {
    margin-left: auto;
    font-size: 12px;
    color: #a1a1aa;
  }

  .mpc-segments {
    display: inline-flex;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e7e7e7;
    border-radius: 9px;
  }

  .mpc-segment-item {
    min-width: 108px;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    background: transparent;
    border: 0;
    transition: all var(--mpc-transition);
  }

  .mpc-segment-item.active {
    font-weight: 600;
    color: #1677ff;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
  }

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

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

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

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

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

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

  .mpc-stat-cyan {
    color: #0891b2;
    background: #ecfeff;
  }

  .mpc-stat-green {
    color: #16a34a;
    background: #dcfce7;
  }

  .mpc-stat-orange {
    color: #d97706;
    background: #fef3c7;
  }

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

  .mpc-stat-value {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mpc-text);
    white-space: nowrap;
  }

  .mpc-stat-value-green {
    color: #16a34a;
  }

  .mpc-stat-value-orange {
    color: #d97706;
  }

  .mpc-stat-label {
    margin-top: 2px;
    font-size: 12px;
    color: var(--mpc-muted);
  }

  .mpc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .mpc-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    margin-right: 4px;
  }

  .mpc-table-panel {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--mpc-border);
    border-radius: 12px;
    box-shadow: var(--mpc-shadow-sm);
  }
}
