/* 仓库环境监测管理后台 · 自定义样式补充 */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f2f5; }

.boot { display: flex; height: 100%; align-items: center; justify-content: center; color: #909399; }

/* 登录页 */
.login-wrap { display: flex; height: 100%; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f3864 0%, #2b5797 60%, #3a7bd5 100%); }
.login-card { width: 380px; padding: 40px 36px; background: #fff; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-title { font-size: 20px; font-weight: 600; color: #1f3864; margin-bottom: 6px; }
.login-sub { font-size: 12px; color: #909399; margin-bottom: 28px; }

/* 主布局 */
.layout { height: 100%; }
.aside { background: #001529; color: #c9d1d9; }
.aside .logo { height: 56px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 15px; letter-spacing: 1px;
  background: #002140; white-space: nowrap; overflow: hidden; }
.aside .el-menu { border-right: none; background: transparent; }
.aside .el-menu-item, .aside .el-sub-menu__title { color: #c9d1d9; }
.aside .el-menu-item:hover, .aside .el-menu-item.is-active { background: #1890ff !important; color: #fff; }
.main { display: flex; flex-direction: column; height: 100%; }
.topbar { height: 56px; background: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px; box-shadow: 0 1px 4px rgba(0,21,41,.08); }
.content { flex: 1; padding: 16px; overflow: auto; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 8px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.stat-card .label { font-size: 13px; color: #909399; }
.stat-card .value { font-size: 28px; font-weight: 600; color: #1f3864; margin-top: 6px; }
.stat-card .value small { font-size: 13px; font-weight: 400; color: #909399; margin-left: 4px; }

/* 设备实时行 */
.dev-live { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.dev-live:hover { background: #f5f7fa; }
.dev-live.active { background: #e6f4ff; }
.dev-live .name { font-size: 13px; font-weight: 500; }
.dev-live .vals { font-size: 12px; color: #606266; display: flex; gap: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: #52c41a; }
.dot.off { background: #bfbfbf; }

/* 数值颜色（国内约定：涨红跌绿仅用于金融，此处用语义色） */
.v-warn { color: #fa8c16; font-weight: 600; }
.v-danger { color: #f5222d; font-weight: 600; }

.chart-box { height: 320px; }
.mb16 { margin-bottom: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-muted { color: #909399; font-size: 12px; }
.mono { font-family: Consolas, Monaco, monospace; }
