* { box-sizing: border-box; }

html, body, #app {
  height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body { overflow: hidden; background: #f0f2f5; }

.app-wrapper { height: 100%; }

.sidebar-container {
  width: 210px;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: #304156;
  overflow: hidden;
  transition: width .28s;
  z-index: 20;
}

.sidebar-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2b2f3a;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #409eff;
  line-height: 28px;
  text-align: center;
  flex: 0 0 28px;
}

.sidebar-scroll {
  height: calc(100% - 50px);
  overflow: auto;
}

.sidebar-container .el-menu { border-right: none; }

.sidebar-container .el-menu-item,
.sidebar-container .el-submenu__title {
  height: 48px;
  line-height: 48px;
}

.sidebar-container .el-menu-item:hover,
.sidebar-container .el-submenu__title:hover,
.sidebar-container .el-menu-item.is-active {
  background-color: #263445 !important;
}

.main-container {
  margin-left: 210px;
  height: 100%;
  overflow: hidden;
  background: #f0f2f5;
  transition: margin-left .28s;
}

.hideSidebar .sidebar-container { width: 64px; }
.hideSidebar .main-container { margin-left: 64px; }
.hideSidebar .logo-title { display: none; }

.navbar {
  height: 50px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.hamburger {
  font-size: 20px;
  cursor: pointer;
  color: #303133;
}

.breadcrumb { margin-left: 16px; flex: 1; }

.user-name { cursor: pointer; color: #303133; }

.tags-view {
  height: 34px;
  background: #fff;
  border-bottom: 1px solid #d8dce5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow-x: auto;
}

.tags-view-item {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d8dce5;
  background: #fff;
  color: #495060;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.tags-view-item.active {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}

.tags-view-item i { margin-left: 4px; }

.app-main {
  height: calc(100% - 84px);
  overflow: auto;
  padding: 16px;
}

.app-main-fill { padding: 0; }

.page-card {
  background: #fff;
  padding: 16px;
}

.pager { margin-top: 16px; text-align: right; }

.stat-card { margin-bottom: 16px; }

.stat-label { color: #909399; font-size: 13px; }

.stat-value { margin-top: 8px; font-size: 28px; font-weight: 600; color: #303133; }

.chart-card { min-height: 280px; margin-bottom: 16px; }

.chart-title { margin-bottom: 16px; font-weight: 600; color: #303133; }
.field-tip { display: inline-flex; align-items: center; }
.field-tip .el-icon-question { margin-left: 4px; color: #909399; cursor: help; }

.channel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #606266; }

.chart-empty { color: #909399; text-align: center; padding: 48px 0; }

.stat-bars { display: flex; flex-direction: column; gap: 12px; }

.bar-row { display: flex; align-items: center; gap: 10px; }

.bar-name { width: 132px; flex: 0 0 132px; color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bar-track { flex: 1; height: 12px; background: #f2f6fc; border-radius: 6px; overflow: hidden; }

.bar-fill { display: block; height: 100%; border-radius: 6px; min-width: 0; }

.bar-value { width: 88px; flex: 0 0 88px; text-align: right; color: #303133; font-variant-numeric: tabular-nums; }

.column-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; }

.column-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }

.column-value { height: 32px; font-size: 12px; line-height: 16px; color: #606266; text-align: center; }

.column-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }

.column-bar { width: 28px; max-width: 70%; background: #409eff; border-radius: 4px 4px 0 0; }

.column-label { margin-top: 8px; font-size: 12px; color: #909399; }

.donut-wrap { display: flex; align-items: center; gap: 20px; min-height: 180px; }

.donut { width: 140px; height: 140px; flex: 0 0 140px; }

.donut-total { font-size: 18px; font-weight: 600; fill: #303133; }

.donut-caption { font-size: 11px; fill: #909399; }

.donut-legend { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }

.legend-row { display: flex; align-items: center; gap: 8px; color: #606266; }

.legend-row span { color: #303133; font-variant-numeric: tabular-nums; }

.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.el-page-header { background: #fff; padding: 16px; }

.login-container {
  height: 100%;
  background: #2d3a4b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel { width: 400px; }

.login-title {
  margin: 0 0 8px;
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
}

.login-sub {
  margin: 0 0 28px;
  color: #b7c0cd;
  text-align: center;
  font-size: 13px;
}

.login-container .el-input__inner {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  height: 42px;
}

.login-container .el-input__icon { line-height: 42px; }

.login-tip {
  margin-top: 16px;
  color: #8b98ab;
  font-size: 12px;
  text-align: center;
}

.login-panel .el-button { width: 100%; margin-top: 8px; }

.mono { font-family: Consolas, "Courier New", monospace; }

.log-snippet {
  max-height: 64px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-all;
  color: #606266;
  line-height: 1.4;
}

.log-label { margin: 8px 0; font-weight: 600; color: #303133; }

.log-block {
  margin: 0 0 12px;
  padding: 12px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f5f7fa;
  color: #303133;
}
