/* match upstream white console chrome; content layout from upstream CSS */
.el-aside {
  background: #ffffff !important;
  border-right: 1px solid #eef0f3;
}
.el-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eef0f3;
}
.el-main,
.el-container {
  background: #f5f6f8 !important;
}

/* logo area → first menu ≈ y55 like upstream */
.el-aside > .menu-alink:first-child {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  text-decoration: none;
  border: none;
  box-shadow: none;
}
.el-aside .ali-logo {
  height: 28px !important;
  width: auto !important;
  max-width: 130px !important;
  margin: 0 auto !important;
  display: block;
  filter: none;
  object-fit: contain;
}

/* upstream .line margin 90px is dark leftover; white uses compact gap */
.el-aside .line {
  width: auto;
  margin: 8px 12px !important;
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  opacity: 1 !important;
  height: 0 !important;
}

/* force 1st-level 40px / 2nd-level 30px (beat Element 56px default) */
.el-aside .menu-top .el-menu-item,
.el-aside .menu-bottom .el-menu-item {
  height: 40px !important;
  line-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 8px;
}
.el-aside .menu-top .el-submenu__title,
.el-aside .menu-bottom .el-submenu__title {
  height: 40px !important;
  line-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 8px;
}
.el-aside .menu-top .el-submenu .el-menu-item,
.el-aside .menu-bottom .el-submenu .el-menu-item {
  min-width: auto;
  height: 30px !important;
  line-height: 30px !important;
  padding-left: 60px !important;
}

/* kill leftover margin-top:86px when a second .menu-top follows .line */
.el-aside .menu-top {
  margin-top: 0 !important;
}
.el-aside .menu-bottom {
  margin-top: 0 !important;
}

