//专门用来 --修改组件库内部样式

//1.需要自定义一个类名空间
//2.先在浏览器里调试好样式
//3.把调试好的类名放在这个类名里面
//4.在App.vue里面引入这个文件
//5.在组件内需要改样式的元素的父元素加上这个类名
@import "./variables.scss";
.el-avatar {
  --el-avatar-background-color: none !important;
}
$color-danger: #fa4c4e;
$test: rgba(0, 128, 0, 0.603);

.el-button--danger {
  --el-button-bg-color: #fa4c4e !important;
  --el-button-border-color: #fa4c4e !important;
  --el-button-hover-bg-color: #fa4c4fa6 !important;
  --el-button-hover-border-color: #fa4c4fa6 !important;
  --el-button-active-bg-color: #fa4c4fa6 !important;
  --el-button-active-border-color: #fa4c4fa6 !important;
}
.el-button--info {
  span {
    color: #c2c0c0 !important;
  }
  --el-button-bg-color: #f5f5f5 !important;
  --el-button-border-color: #dedede !important;
  --el-button-hover-bg-color: #f5f5f546 !important;
  --el-button-hover-border-color: #dedede !important;
  --el-button-active-bg-color: #f5f5f5 !important;
  --el-button-active-border-color: #dedede !important;
}

.el-select {
  .select-trigger {
    .el-select__tags {
      padding-left: 8px;
    }
  }
}

.el-popper {
  .el-select-dropdown {
    .el-scrollbar {
      .el-select-dropdown__wrap {
        .el-scrollbar__view {
          .el-select-dropdown__item {
            padding: 0 20px 0 20px;
          }
          .hover {
            background-color: var(--el-color-primary-light-8);
          }
          .selected {
            background-color: var(--el-color-primary-light-7);
          }
        }
      }
    }
  }
}

.el-select__popper {
  .selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    &::after {
      content: "√";
      display: inline-block;
      // background: url(img/face.png) no-repeat;
      background-size: 20px;
      vertical-align: top;
      margin-left: 0px;
    }
  }
}

.mosty-from-wrap {
  .el-form-item {
    // margin-bottom: 12px;
    .errorIcon {
      display: none;
    }
    .checkIcon {
      display: none;
    }
  }
  .is-error {
    .form-item-box {
      position: relative;
      .el-input {
        background-color: #fff;
        .el-input__inner {
          background-color: #fff;
        }
        .el-input__count .el-input__count-inner {
          background-color: #fff;
        }
      }
      .el-cascader__tags {
        .el-tag {
          background: #fff;
        }
        .el-cascader__search-input {
          background: #fff;
        }
        .el-cascader__search-input {
          margin: 2px 0 2px 13px !important;
        }
      }
      .errorIcon {
        display: inline-block;
        color: var(--el-color-danger);
        margin-left: 8px;
        position: absolute;
        top: 8px;
        right: -20px;
      }
      .checkIcon {
        display: none;
      }
    }
  }
  .el-cascader__search-input {
    margin: 2px 0 2px 13px;
  }
  .is-success {
    .form-item-box {
      position: relative;
      .el-input {
        border: #57d040;
        .el-input__inner {
          background-color: #fff;
          // border: 1px solid #57d040;
        }
        .el-input__count .el-input__count-inner {
          background-color: #fff;
        }
      }
      .el-cascader__tags {
        .el-tag {
          background: #dcf0df;
        }
        .el-cascader__search-input {
          background: #eafaec;
        }
        .el-cascader__search-input {
          margin: 2px 0 2px 13px !important;
        }
      }
      .checkIcon {
        display: inline-block;
        //color: var(--el-color-primary);
        color: #57d040;
        margin-left: 8px;
        position: absolute;
        top: 8px;
        right: -18px;
      }
      .errorIcon {
        display: none;
      }

      .el-select .el-select__tags .el-tag--info {
        background: #d5f1cf;
      }
    }
  }
}
.choose-icon-zj {
  .el-autocomplete {
    width: 100% !important;
    .el-input {
      .el-input__prefix {
        .el-input__prefix-inner {
          display: flex;
          align-items: center;
          .svg-icon {
            font-size: 16px;
            margin-right: 3px;
          }
        }
      }
    }
  }
}

.choose-icon-zj-autocomplete {
  width: 500px;
  .el-scrollbar__view {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;

    li {
      text-align: center;
      width: 100px;
      display: flex;
      flex-direction: column;
      align-content: center;
      align-items: center;
      padding: 10px 0 10px 0;
      .svg-icon {
        font-size: 22px;
      }
      .value {
        font-size: 12px;
        padding: 0 6px;
        width: 100px;
        @include text-overflow;
      }
    }
  }
}
.carnumber-box {
  .item-label {
    display: inline-block;
    font-size: 14px;
    color: var(--el-text-color-regular);
    line-height: 32px;
    padding: 0 12px 0 0;
    box-sizing: border-box;
  }

  .item-label.required:before {
    content: "*";
    color: #f56c6c;
    margin-right: 4px;
  }

  .el-select {
    width: 80px;

    .el-input {
      width: 80px !important;
    }
  }

  .el-input {
    width: 160px !important;
  }

  input:-ms-input-placeholder {
    font-size: 12px;
  }

  input::-webkit-input-placeholder {
    font-size: 12px;
  }

  input::-moz-placeholder {
    font-size: 12px;
  }

  input:-moz-placeholder {
    font-size: 12px;
  }
}

.form-item-box {
  position: relative;
  width: 240px;
}
.error-tips {
  color: #f56c6c;
  font-size: 12px;
  line-height: 1;
  padding-top: 2px;
  position: absolute;
}

.error-input {
  .el-input__inner {
    border-color: #f56c6c;
  }
}

.nation-select {
  .el-scrollbar__wrap {
    width: 400px;
    max-height: 500px;
  }

  .el-select-dropdown__item {
    float: left;
    width: 100px;
    padding: 0 14px !important;
    font-size: 14px;
    height: 28px;
    line-height: 24px;
  }
  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover {
    background-color: #fff !important;
    color: var(--el-color-primary);
  }

  .el-select-dropdown__item.selected::after {
    display: none;
  }
}

.alphabet-select-wrap {
  width: 180px !important;
  height: 80px;
  .alphabet {
    width: 100%;
    padding: 0;
    height: 80px;
    ul {
      margin: 0;
      padding: 0;
    }
    li {
      list-style: none;
      float: left;
      padding: 0 5px !important;
      font-size: 14px;
      height: 20px;
      text-align: center;
      line-height: 20px;
      cursor: pointer;
    }

    li.selected {
      background-color: #fff !important;
      color: var(--el-color-primary);
      font-weight: 600;
    }

    li:hover {
      background-color: #fff !important;
      color: var(--el-color-primary);
    }
  }
}

.carnumber-select {
  .el-scrollbar__wrap {
    width: 280px;
    padding: 5px;
    max-height: 110px;
  }

  .el-select-dropdown__item {
    float: left;
    width: 27px;
    padding: 0 5px !important;
    font-size: 12px;
    height: 21px;
    text-align: center;
    line-height: 21px;
  }

  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover {
    background-color: #fff !important;
    color: var(--el-color-primary);
  }

  .el-select-dropdown__item.selected::after {
    display: none;
  }
}
.frameWork-select {
  .el-select-dropdown__item {
    display: none !important;
  }
  .el-tree-node.is-checked {
    background-color: var(--el-color-primary-light-7);
  }
  .el-tree-node.is-checked .el-tree-node__label::after {
    content: "√";
    display: inline-block;
    background-size: 20px;
    vertical-align: top;
    margin-left: 0px;
    color: var(--el-color-primary);
    position: absolute;
    right: 20px;
  }
  .el-select-dropdown__wrap {
    max-height: 500px !important;
  }
  .alllist {
    height: 260px;
    overflow-y: scroll;
  }
}
.adderss-select {
  .el-select-dropdown__item {
    display: none !important;
  }
  .el-select-dropdown__wrap {
    width: 460px;
    padding: 0 5px 5px 5px;
  }
  .el-tabs__item {
    height: 30px;
    line-height: 30px;
  }
  .citylist {
    width: 100%;
    padding: 0;
    height: auto;

    li {
      list-style: none;
      float: left;
      padding: 0 5px !important;
      font-size: 14px;
      height: 28px;
      width: 25%;
      text-align: left;
      line-height: 28px;
      cursor: pointer;
    }

    li.selected {
      background-color: #fff !important;
      color: var(--el-color-primary);
      font-weight: 600;
    }
    li::after {
      display: none;
    }
    li:hover {
      background-color: #fff !important;
      color: var(--el-color-primary);
    }
  }
}

.upload-all-box {
  .avatar-uploader.finished {
    .el-upload {
      border: 1px solid #d9d9d9 !important;
    }
  }
  .avatar-uploader {
    width: 100px;
    height: 100px;
    .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      padding: 5px;
    }

    .el-upload:hover {
      border-color: #409eff;
    }
    .loaded {
      position: relative;
      .avatar {
        width: 90px;
        height: 90px;
        display: block;
      }
      .model {
        width: 90px;
        height: 90px;
        background: #333;
        opacity: 0.5;
        position: absolute;
        top: 0;
      }
      .option {
        height: 30px;
        width: 90px;
        position: absolute;
        top: 35px;
      }
    }
    .noload {
      width: 90px;
      height: 90px;
      background: #f9f9f9;
      .el-icon.avatar-uploader-icon {
        font-size: 24px;
        color: #333;
        width: 90px;
        margin-top: 30px;
        text-align: center;
      }
      .el-icon.avatar-uploader-icon:hover {
        color: #409eff;
      }
      .avatar-uploader-icon-text {
        width: 90px;
        font-size: 14px;
        margin-top: -10px;
      }
    }

    .loading {
      width: 90px;
      height: 90px;
      background: #f9f9f9;
    }
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 8px;
  background-color: #e9e9e9;
}
::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 50px;
}
::-webkit-scrollbar-track {
  background-color: #e9e9e9;
}
::-webkit-scrollbar-corner {
  background-color: #142141;
}
//添加dialog效果
.dialog-fade-enter-active .el-dialog.way {
  animation: anim-open 0.5s;
}
.dialog-fade-leave-active .el-dialog.way {
  animation: anim-close 0.5s;
}
@keyframes anim-open {
  0% {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@keyframes anim-close {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
}
