/* pages/performance-records/performance-records.wxss */
/* CHANGE 2026-03-27 | 联调改造：Banner 对齐 performance，卡片样式复用 performance 服务记录明细 */

page {
  background-color: #f3f3f3;
  line-height: 1.5;
}

view {
  line-height: inherit;
}

/* ============================================
 * 加载态 / 空态 / 错误态
 * ============================================ */
.page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120rpx 0;
  gap: 24rpx;
}

.empty-text {
  font-size: 26rpx;
  color: #a6a6a6;
}

.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 24rpx;
}

.error-text {
  font-size: 28rpx;
  color: #a6a6a6;
}

.retry-btn {
  padding: 16rpx 48rpx;
  background: #0052d9;
  color: #ffffff;
  border-radius: 16rpx;
  font-size: 28rpx;
}

.retry-btn--hover {
  opacity: 0.7;
}

/* ============================================
 * Banner（对齐 performance 页面）
 * ============================================ */
.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-bg-img {
  position: absolute;
  top: -50rpx;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 40rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-info-section {
  position: relative;
  z-index: 2;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 29rpx;
}

.avatar-wrap {
  width: 98rpx;
  height: 98rpx;
  border-radius: 24rpx;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
}

.user-detail {
  flex: 1;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 15rpx;
  margin-bottom: 7rpx;
  line-height: 51rpx;
}

.user-name {
  font-size: 32rpx;
  font-weight: 600;
  color: #ffffff;
}

.user-role-tag {
  font-size: 22rpx;
  line-height: 29rpx;
  padding: 4rpx 15rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999rpx;
  color: #ffffff;
}

.user-store-row {
  line-height: 36rpx;
}

.user-store {
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
 * 月份切换
 * ============================================ */
.month-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48rpx;
  padding: 24rpx 32rpx;
  background: #ffffff;
  border-bottom: 2rpx solid #eeeeee;
}

.month-btn {
  padding: 12rpx;
  border-radius: 50%;
}

.month-btn-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.month-btn--hover {
  opacity: 0.6;
}

.month-label {
  font-size: 28rpx;
  font-weight: 600;
  color: #242424;
}

/* ============================================
 * 统计概览
 * ============================================ */
.stats-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24rpx 32rpx;
  background: #ffffff;
  border-bottom: 2rpx solid #eeeeee;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 20rpx;
  color: #a6a6a6;
  margin-bottom: 4rpx;
}

.stat-value {
  font-size: 36rpx;
  font-weight: 700;
  color: #242424;
  font-variant-numeric: tabular-nums;
}

.stat-primary { color: #0052d9; }
.stat-success { color: #00a870; }

.stat-hours-raw {
  font-size: 20rpx;
  color: #a6a6a6;
  margin-top: 2rpx;
  line-height: 26rpx;
}

.stat-hint {
  font-size: 20rpx;
  color: #ed7b2f;
  margin-top: 2rpx;
}

.stat-divider {
  width: 2rpx;
  height: 80rpx;
  background: #eeeeee;
  margin-top: 4rpx;
}

/* ============================================
 * 记录列表（复用 performance 页面服务记录明细样式）
 * ============================================ */
.records-container {
  padding: 24rpx;
  padding-bottom: 40rpx;
}

.records-card {
  background: #ffffff;
  border-radius: 32rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 0 32rpx;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 16rpx;
  padding: 20rpx 0 8rpx;
}

.dd-date {
  font-size: 22rpx;
  color: #8b8b8b;
  font-weight: 500;
  white-space: nowrap;
  line-height: 29rpx;
}

.dd-line {
  flex: 1;
  height: 2rpx;
  background: #dcdcdc;
}

.dd-stats {
  font-size: 22rpx;
  color: #a6a6a6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 29rpx;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 20rpx;
  padding: 16rpx 0;
}

.record-item--hover {
  opacity: 0.7;
}

/* 头像（渐变色由 app.wxss 全局 .avatar-{key} 提供） */
.record-avatar {
  width: 76rpx;
  height: 76rpx;
  border-radius: 20rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30rpx;
  font-weight: 500;
  flex-shrink: 0;
}

.record-content {
  flex: 1;
  min-width: 0;
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-name-time {
  display: flex;
  align-items: center;
  gap: 12rpx;
  min-width: 0;
}

.record-name {
  font-size: 26rpx;
  font-weight: 500;
  color: #242424;
  flex-shrink: 0;
  line-height: 36rpx;
}

/* 散客名称置灰 */
.record-name--scattered {
  color: #999;
  font-weight: 400;
}

.record-time {
  font-size: 22rpx;
  color: #a6a6a6;
  line-height: 29rpx;
}

.record-hours {
  font-size: 26rpx;
  font-weight: 700;
  color: #059669;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 36rpx;
}

.record-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8rpx;
}

.record-tags {
  display: flex;
  align-items: center;
  gap: 12rpx;
}

.course-tag {
  padding: 2rpx 12rpx;
  border-radius: 8rpx;
  font-size: 22rpx;
  font-weight: 500;
  line-height: 29rpx;
}

.course-tag--basic { background: #ecfdf5; color: #15803d; }
.course-tag--room { background: #eff6ff; color: #1d4ed8; }
.course-tag--incentive { background: #fffbeb; color: #a16207; }

.record-location {
  font-size: 22rpx;
  color: #8b8b8b;
  line-height: 29rpx;
}

.record-income {
  font-size: 22rpx;
  color: #c5c5c5;
  flex-shrink: 0;
  line-height: 29rpx;
}

.record-income-val {
  font-weight: 500;
  color: #5e5e5e;
}

/* 列表底部提示 */
.list-end-hint {
  text-align: center;
  padding: 24rpx 0 28rpx;
  font-size: 22rpx;
  color: #c5c5c5;
}
