/* admin/css/dashboard.css - 数据大屏样式 */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.dash-card.blue::before { background: linear-gradient(90deg, #1677ff, #36cfc9); }
.dash-card.green::before { background: linear-gradient(90deg, #52c41a, #95de64); }
.dash-card.orange::before { background: linear-gradient(90deg, #fa8c16, #ffc53d); }
.dash-card.purple::before { background: linear-gradient(90deg, #722ed1, #b37feb); }

.dash-card .dash-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.dash-card .dash-value {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.dash-card .dash-label {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

.dash-card .dash-sub {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* 图表区域 */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chart-card .chart-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* 工种分布条形图 */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 120px;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: width 0.5s;
}

.bar-fill.blue { background: linear-gradient(90deg, #1677ff, #36cfc9); }
.bar-fill.green { background: linear-gradient(90deg, #52c41a, #95de64); }
.bar-fill.orange { background: linear-gradient(90deg, #fa8c16, #ffc53d); }

/* 趋势图 */
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding: 16px 0;
}

.trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trend-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #1677ff, #36cfc9);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s;
}

.trend-bar-label {
  font-size: 11px;
  color: #999;
}

/* 未培训人员表 */
.untrained-table {
  max-height: 400px;
  overflow-y: auto;
}

.untrained-table th {
  position: sticky;
  top: 0;
  background: #fafafa;
  z-index: 1;
}
