.safe-training-container {
  padding: 16px;
  background-color: #f0f2f5;
}

/* 统计卡片样式 */
.stats-row {
  margin-bottom: 16px;
}

.stat-card {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all 0.3s;
  
  &:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
}

.stat-content {
  display: flex;
  align-items: center;
  padding: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f7ff;
  border-radius: 4px;
  font-size: 24px;
  color: #1890ff;
  margin-right: 16px;
}

.stat-info {
  flex: 1;
}

.stat-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.stat-count {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.stat-completed {
  font-size: 12px;
  color: #999;
}

.stat-status {
  font-size: 12px;
  color: #1890ff;
  font-weight: 500;
}

/* 第二行样式 */
.second-row {
  margin-bottom: 16px;
}

/* 系统通知样式 */
.notification-card {
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

.notification-list {
  .notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    
    &:last-child {
      border-bottom: none;
    }
    
    .notification-dot {
      margin-right: 8px;
    }
    
    .notification-title {
      font-size: 14px;
      color: #333;
      margin-bottom: 4px;
      display: block;
    }
    
    .notification-time {
      font-size: 12px;
      color: #999;
      display: block;
      margin-bottom: 2px;
    }
    
    .notification-duration {
      font-size: 12px;
      color: #1890ff;
      float: right;
    }
  }
}

/* 图表区域样式 */
.chart-card {
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

/* 第三行样式 */
.third-row {
  margin-bottom: 16px;
}

/* 待审批样式 */
.approval-card {
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

.approval-list {
  .approval-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    
    &:last-child {
      border-bottom: none;
    }
    
    .approval-dot {
      margin-right: 8px;
    }
    
    .approval-title {
      font-size: 14px;
      color: #333;
      margin-bottom: 4px;
      display: block;
    }
    
    .approval-meta {
      .approval-submitter {
        font-size: 12px;
        color: #999;
        display: block;
        margin-bottom: 2px;
      }
      
      .approval-time {
        font-size: 12px;
        color: #999;
      }
    }
    
    .approval-actions {
      margin-left: auto;
      
      .approve-btn {
        color: #52c41a;
        padding: 0 6px;
      }
      
      .reject-btn {
        color: #f5222d;
        padding: 0 6px;
      }
    }
  }
}

/* 近期培训计划样式 */
.training-plan-card {
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

.training-plan-table {
  .ant-table-thead > tr > th {
    background-color: #fafafa;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .ant-table-tbody > tr > td {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .view-btn {
    color: #1890ff;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .safe-training-container {
    padding: 8px;
  }
  
  .stat-content {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .approval-item {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .approval-actions {
    margin-left: 0 !important;
    margin-top: 8px;
  }
}