// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  position: relative;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-popover {
  .svgList {
    height: 200px;
    overflow: auto;
  }
  .el-popover__title{
    text-align: center;
  }
}

.el-upload__input {
  display: none;
}

.el-table thead {
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  text-align: center;

  th {
    text-align: center;
    padding: 0;
    height: 50px;
    background-color: rgba(239, 242, 246, 1);
  }
}

.el-table {
  td {
    padding: 0;
  }

  .cell {
    padding: 0;
    height: 50px;
    line-height: 50px;
    text-align: center;   
  }
  
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;

  .el-dialog__header {
    text-align: left;
    background-color: #F8F8F8;
  }

  .c {
    div {
      // margin: 0 6px;
      display: inline-block;
      min-width: 80px;
      height: 40px;
      border-radius: 2px;
      font-size: 14px;
      line-height: 40px;
      text-align: center;
    }

    div:hover {
      cursor: pointer;
    }

    .search {
      margin: 0 12px;
      background-color: #2766DD;
      color: #fff;
    }

    .search:hover {
      background-color: #4D85F4;
    }

    .reset {
      color: #333334;
      border: 1px solid #D7D7D7;
    }

    .reset:hover {
      color: #1F9FFF;
      border: 1px solid #1F9FFF;
    }
  }

  .dialog-footer {
    div {
      // margin: 0 6px;
      display: inline-block;
      min-width: 80px;
      height: 40px;
      border-radius: 2px;
      font-size: 14px;
      line-height: 40px;
      text-align: center;
    }

    div:hover {
      cursor: pointer;
    }

    .search {
      margin: 0 12px;
      background-color: #2766DD;
      color: #fff;
    }

    .search:hover {
      background-color: #4D85F4;
    }

    .reset {
      color: #333334;
      border: 1px solid #D7D7D7;
    }

    .reset:hover {
      color: #1F9FFF;
      border: 1px solid #1F9FFF;
    }
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-pagination {
  .btn-prev {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border: 1px solid rgba(217, 217, 217, 1);
    border-radius: 2px;
    padding: 0;

    i {
      font-size: 12px;
    }
  }

  .btn-next {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border: 1px solid rgba(217, 217, 217, 1);
    border-radius: 2px;
    padding: 0;

    i {
      font-size: 12px;
    }
  }

  .number {
    margin-right: 8px;
    width: 32px;
    height: 32px;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    border-radius: 2px;
    padding: 0;
    border: 1px solid rgba(217, 217, 217, 1);
    background-color: #fff;
  }

  .number:hover {
    color: #fff !important;
    border: 1px solid rgba(39, 102, 221, 1);
    background-color: rgba(39, 102, 221, 1);
  }

  .active {
    color: #fff !important;
    border: 1px solid rgba(39, 102, 221, 1);
    background-color: rgba(39, 102, 221, 1);
  }

  .el-pagination__sizes {
    .el-select {
      .el-input {
        input {
          height: 32px;
        }
      }
    }
  }

  .el-pagination__jump {
    margin: 0;

    .el-input {
      .el-input__inner {
        height: 32px;
      }
    }
  }
}

.switchStyle .el-switch__label {
  position: absolute;
  display: none;
  color: #fff;
}

.el-switch__core {
  background-color: rgba(166, 166, 166, 1);
}

.switchStyle .el-switch__label--left {
  z-index: 9;
  left: 20px;
}

.switchStyle .el-switch__label--right {
  z-index: 9;
  left: 4px;
}

.switchStyle .el-switch__label.is-active {
  display: block;
}

.switchStyle.el-switch .el-switch__core,
.el-switch .el-switch__label {
  width: 60px !important;
}

.el-menu-item.is-active,.el-submenu .el-menu-item.is-active {
  background-color: rgba(39, 102, 221, 1) !important; 
  color: #fff!important;  
}



.el-message-box {
  .el-message-box__btns {
    .el-button {
      min-width: 80px;
      height: 40px;
      border-radius: 2px;
      font-size: 14px;
      text-align: center;
    }

    .el-button:hover {
      cursor: pointer;
      color: #1F9FFF;
      background-color: #fff;
      border: 1px solid #1F9FFF;
    }

    .el-button--primary {
      border: 1px solid #2766DD;
      background-color: #2766DD;
    }

    .el-button--primary:hover {
      color: #fff;
      border: 1px solid #4D85F4;
      background-color: #4D85F4;
    }
  }
}
.el-button--primary{
  i{
    position: relative;
    top: -9px;
  }
}