﻿/* 钲鹏机床ERP - 仪表盘样式 V3.0 */

/* ========== 欢迎区域 ========== */
.welcome-banner {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3560 40%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(79,110,247,0.2);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-banner h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.welcome-banner .welcome-subtitle {
  font-size: 14px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.welcome-banner .welcome-info {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.welcome-banner .welcome-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.welcome-banner .welcome-stat strong {
  font-size: 18px;
  font-weight: 700;
}

/* ========== 仪表盘网格 ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  height: fit-content;
}

.dashboard-card .card-body {
  max-height: 380px;
  overflow-y: auto;
}

/* ========== 三列表格区域 ========== */
.dashboard-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 1400px) {
  .dashboard-triple {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-triple {
    grid-template-columns: 1fr;
  }
}

/* ========== 预警样式增强 ========== */
.alert-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.alert-count-badge.danger { background: var(--danger); color: white; }
.alert-count-badge.warning { background: var(--warning); color: white; }
.alert-count-badge.info { background: var(--info); color: white; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .welcome-banner {
    padding: 20px;
  }
  .welcome-banner h2 {
    font-size: 20px;
  }
}
