/* ======== 看板二专用覆盖样式 ======== */

/* ---- 3列主网格 — 品类分布 | 订单流程 | 仓储监控 ---- */
.d2-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ======== 智能仓储监控 — 统一行高布局 ======== */
.d2-wh-body {
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 10px !important;
  gap: 5px;
}

.d2-wh-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 6px 12px;
  min-height: 0;
}

.d2-wh-row .stat-value {
  font-size: 27px;
  font-weight: 700;
  color: #00e5ff;
  font-family: 'DIN','Consolas',monospace;
}
.d2-wh-row .stat-label {
  font-size: 18px;
  color: #7f8c8d;
}

.d2-wh-row-title {
  font-size: 18px;
  color: #7f8c8d;
  min-width: 80px;
}

.d2-env-fresh { border-left: 3px solid #00e676; }
.d2-env-frozen { border-left: 3px solid #00bcd4; }
.d2-wh-expiry { border-left: 3px solid #ff5252; }

.d2-wh-row .env-temp {
  font-size: 24px;
  font-weight: 700;
  color: #00e676;
  font-family: 'DIN','Consolas',monospace;
  margin-left: auto;
}
.d2-wh-row .env-humi {
  font-size: 21px;
  color: #b0bec5;
  min-width: 80px;
  text-align: right;
}

/* ---- 品类分布 hot-items 覆盖 ---- */
.hot-items::before {
  content: none;
}

/* ======== 订单全流程状态 ======== */

.d2-flow-body {
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 10px !important;
}

/* ---- 流程阶段条 ---- */
.d2-flow-stages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  gap: 2px;
}

.d2-flow-stage {
  flex: 1;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(0,188,212,0.06));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  padding: 10px 6px;
  transition: all 0.3s;
}
.d2-flow-stage:hover {
  border-color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.15);
}

.d2-flow-stage-name {
  display: block;
  font-size: 13px;
  color: #b0bec5;
  margin-bottom: 4px;
}
.d2-flow-stage-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #00e5ff;
  font-family: 'DIN','Consolas',monospace;
}
.d2-flow-stage-unit {
  font-size: 12px;
  color: #7f8c8d;
}

.d2-flow-arrow {
  flex: 0 0 auto;
  color: #00e676;
  font-size: 20px;
  padding: 0 2px;
  animation: d2-blink 1.4s infinite;
}
@keyframes d2-blink {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; }
}

/* ---- 地图背景区域 ---- */
.d2-map-area {
  flex: 1;
  position: relative;
  min-height: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,229,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0,188,212,0.04) 0%, transparent 60%);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  overflow: hidden;
}

.d2-map-svg {
  width: 100%;
  height: 100%;
}

.d2-route {
  fill: none;
  stroke: rgba(0,229,255,0.2);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}
.d2-route-dim {
  stroke: rgba(0,229,255,0.08);
  stroke-width: 1;
}

/* ---- 冷链车动画：从中间往右缓慢移动 ---- */
.d2-truck-group {
  animation: d2-truck-move 10s ease-in-out infinite;
}
@keyframes d2-truck-move {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(60px, -8px); }
  50%  { transform: translate(130px, 4px); }
  75%  { transform: translate(200px, -5px); }
  100% { transform: translate(260px, 0); }
}
