// 业务层主样式入口
// variables.scss 已由 vite.config.ts 的 additionalData 自动注入

// 通用工具类
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

// 通用页面容器
.page-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

// 通用页面头部
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: $color-text-primary;
  }
  .page-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: $color-text-secondary;
  }
}

// 通用搜索栏
.search-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px 0;
}

// 通用状态点
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;

  &::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
}
.status-dot.success { color: $color-success; }
.status-dot.warning { color: $color-warning; }
.status-dot.danger  { color: $color-danger; }
.status-dot.info    { color: $color-info; }
.status-dot.primary { color: $brand-primary; }

// 表格内图片
.cell-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: $bg-page;
  display: block;
}
