.dec-table-modal {
  .ant-modal-body {
    max-height: initial !important;
  }
  .m-search {
    width: 300px;
    margin: 0 10px;
  }
  .img-wrap {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    flex-shrink: 0;
    overflow: hidden;
    img {
      width: 100%;
      object-fit: cover;
    }
  }
  .dec-flex-list {
    margin: 0;
  }
  .ant-tabs-bar {
    margin-bottom: 0;
  }
  .hasImg .ant-table-tbody > tr > td {
    padding: 8px 16px;
  }
  .ant-modal-body {
    padding: 10px 20px;
  }
  &.hasTab .ant-modal-header {
    padding: 16px 16px 0;
    border-bottom: 0;
  }
}
.dec-manage-modal {
  .table {
    border: 1px solid #e5e5e5;
    border-bottom: 0;
  }
  .item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    &:hover {
      background-color: rgba(#999, 0.1);
    }
    span {
      height: 60px;
      line-height: 60px;
      width: 33.33%;
    }
    .img {
      width: 60px;
      flex-shrink: 0;
      overflow: hidden;
      text-align: center;
      img {
        margin: 8px;
        width: 44px;
        height: 44px;
        object-fit: cover;
      }
    }
    .name {
      width: 50%;
    }
    .price {
      width: 20%;
    }
    .shop {
      width: 30%;
    }
    .opt {
      flex-shrink: 0;
      width: 100px;
      text-align: center;
      i {
        font-size: 16px;
        padding: 4px 0;
        margin: 0 4px;
        &:hover {
          color: @primary-color;
        }
      }
    }
  }
  .forbider {
    color: #000000d9;
    font-weight: 500;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    span {
      height: 50px;
      line-height: 50px;
    }
  }
}

.dec-del-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  display: none;
  .confirm {
    width: 170px;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #ccc;
  }
  h5 {
    color: @text-color;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .ant-btn-primary {
    margin-right: 10px;
  }
}

.dec-imgModal {
  .ant-modal-body {
    padding: 0;
  }
  .m-search {
    width: 300px;
    margin: 0 10px;
  }
  .m-tip {
    color: @error-color;
    font-size: 12px;
    padding: 10px;
  }
  .img-list {
    display: flex;
    flex-direction: column;
  }
  .left-nav {
    background-color: #eee;
  }
  .right-pic {
    width: 100%;
    overflow: hidden;
    padding: 0 10px 10px;
  }
  .nav-item {
    background-color: #ffffff;
    padding-left: 20px;
    height: 35px;
    line-height: 35px;
    cursor: pointer;
    font-size: 12px;
    color: @error-color;
  }
  .img-box {
    float: left;
    border: 1px solid #ddd;
    margin: 10px;
    .icon-wrap {
      display: none;
      position: absolute;
      right: 0;
      top: 0;
      color: #fff;
      font-size: 10px;
      height: 16px;
      line-height: 16px;
      width: 16px;
      border-radius: 50%;
      background: #459ae9;
      text-align: center;
    }
    &.selected {
      border: 1px solid #459ae9;
      .icon-wrap {
        display: block;
      }
    }
  }
  .top-img {
    width: 86px;
    height: 86px;
    line-height: 86px;
    overflow: hidden;
    background-color: #a5a1a1;
    position: relative;
    img {
      width: 100%;
      object-fit: cover;
    }
  }

  .pic-name {
    width: 86px;
    text-align: center;
  }
}

.dec-linkModal {
  .m-search {
    width: 300px;
    margin: 0 10px;
  }
  .ant-modal-body {
    padding: 0;
  }
  .link-wrap {
    padding: 0 20px;
    border-bottom: 1px solid rgb(232, 232, 232);
    height: 54px;
    margin: 0 6px;
    &:last-child {
      border: 0;
    }
  }
  .item-name {
    width: 100%;
    flex-shrink: 2;
    font-size: 14px;
  }
}

.dec-sourceModal {
  .ant-modal-body {
    padding: 0;
  }
  .m-search {
    width: 500px;
    margin: 0 10px;
  }
  .m-tip {
    color: #f44444;
    font-size: 12px;
    padding: 10px;
  }
  .img-list {
    display: flex;
    flex-direction: row;
  }
  .left-nav {
    width: 100px;
    flex-shrink: 0;
    background-color: #eee;
  }
  .nav-item {
    padding-left: 10px;
    height: 35px;
    line-height: 35px;
    cursor: pointer;
    font-size: 12px;
    &.selected {
      background-color: #fff;
      color: @primary-color;
    }
  }
  .right-source {
    width: 100%;
    overflow: hidden;
    padding: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 90px;
  }
  .source-box {
    width: 50%;
    padding: 5px;
  }
  .source-wrap {
    border: 2px solid #ddd;
    width: 100%;
    position: relative;
    cursor: pointer;
    padding: 5px;
    .ic-check {
      position: absolute;
      top: 0;
      right: 0;
      font-size: 16px;
      color: #ffffff;
      display: none;
      z-index: 2;
    }
    .icon-wrap {
      position: absolute;
      right: -18px;
      top: -5px;
      border-top: 24px solid #459ae9;
      border-left: 24px solid transparent;
      border-right: 24px solid transparent;
      z-index: 1;
      display: none;
      transform: rotate(-135deg);
    }
    &.selected {
      border-color: #459ae9;
      .icon-wrap {
        display: block;
      }
      .ic-check {
        display: block;
      }
    }
  }
  .source-info {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    .source-img {
      height: 40px;
      width: 40px;
      flex-shrink: 0;
      margin-right: 5px;
      cursor: pointer;
    }
  }
}

.dec-tempModal {
  .ant-modal-title {
    font-size: 18px;
  }
  .ant-modal-body {
    padding: 10px 0 20px 10px;
  }
  .menu-wrap {
    padding-bottom: 16px;
    background: #fff;
  }
  .ant-menu {
    font-size: 14px;
    .anticon {
      font-size: 22px;
      margin-right: 6px;
      vertical-align: middle;
    }
  }
  .cate-icon {
    height: 30px;
    object-fit: cover;
    margin-right: 6px;
  }
  .list-scroll {
    width: 100%;
    height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
  }
  .list-pager {
    text-align: right;
    padding-right: 15px;
  }
  .list-wrap {
    padding: 10px;
    overflow: hidden;
  }
  .item-wrap {
    float: left;
    padding: 5px;
  }
  .item-box {
    border: 1px solid #ddd;
    &:hover {
      box-shadow: @box-shadow-base;
      .action-wrap {
        z-index: 1;
        button {
          transform: scale(1, 1);
        }
      }
    }
  }
  .img-wrap {
    position: relative;
    width: 280px;
    height: 320px;
    background: rgba(#000, 0.05);
    overflow: hidden;
  }
  .action-wrap {
    position: absolute;
    height: 100%;
    width: 100%;
    background: rgba(#000, 0.2);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    z-index: -1;
    &:hover {
      z-index: 1;
      button {
        transform: scale(1, 1);
      }
    }
    button {
      height: 40px;
      border-radius: 20px;
      transform: scale(0, 0);
      transition: 0.5s;
    }
    button + button {
      margin-left: 16px;
    }
  }
  .info-wrap {
    padding: 10px;
  }
  .info-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
}

.dec-img-upload {
  padding-top: 10px;
  .size-tip {
    padding-left: 20px;
    padding-bottom: 10px;
    font-size: 12px;
    color: @error-color;
  }
  .upload {
    width: 86px;
    height: 86px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fafafa;
    border: 1px dashed #d9d9d9;

    display: flex;
  }
  .uploadImg {
    width: 86px;
    height: 86px;
  }
  .ant-upload-text {
    font-size: 12px;
    margin-top: 8px;
    color: #666;
  }
}

.dec-link-box {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 100;
  display: none;
  overflow: hidden;
  .wrap {
    position: absolute;
  }
}
.dec-link-menu {
  display: flex;
  flex-wrap: nowrap;
  box-shadow: @box-shadow-base;
  border-radius: 4px;
  width: 140px;
  // box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  &.hassub {
    width: 280px;
  }
  &.isright {
    flex-direction: row-reverse;
    .sub-menu {
      border-right: 1px solid #e5e5e5;
      border-left: 0;
    }
  }
  .sub-menu {
    overflow-y: auto;
    border-left: 1px solid #e5e5e5;
  }
}
.dec-menu {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  display: inline-block;
  cursor: initial;
  line-height: 0;
  outline: none;
  li {
    padding: 0;
    margin: 0;
    &:first-child {
      padding-top: 5px;
    }
    &:last-child {
      padding-bottom: 5px;
    }
  }
  a {
    padding: 0 16px;
    display: block;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: @text-color;
    &:hover {
      color: @primary-color;
    }
    &.selected {
      background: #e6f7ff;
      color: @primary-color;
    }
  }
  i {
    float: right;
    font-size: 10px;
    margin-top: 10px;
  }
}
.dec-img-tap {
  width: 100%;
  position: relative;
  user-select: none;
  .img-block {
    user-select: none;
    width: 100%;
    object-fit: cover;
  }
  .img-default {
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
  }
  .click-block {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }
  .tap-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  .add-num {
    position: absolute;
    top: 5px;
    left: 5px;
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 0 8px;
    background: rgba(51, 136, 255, 0.5);
    font-size: 12px;
    color: #fff;
  }
  .a-tap {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border: 1px solid #155bd4;
    background: rgba(21, 91, 212, 0.5);
    font-size: 12px;
    color: #fff;
    cursor: move;
    &:hover {
      border: 1px solid #155bd4;
      cursor: move;
      &::after {
        cursor: se-resize;
      }
    }
    &::after {
      content: "";
      position: absolute;
      bottom: -14px;
      right: -14px;
      width: 28px;
      height: 28px;
    }
  }
  .tap-close {
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 0;
  }
  .tap-link {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
  }
  .link-edit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 20px;
    line-height: 20px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    text-align: center;
    cursor: pointer;
  }
}
.dec-color-picker {
  position: relative;
  height: 28px;
  .ant-tooltip-inner {
    padding: 0;
  }
  .ant-tooltip-arrow::before {
    display: none;
  }
  .vc-sketch {
    width: 280px;
  }
  .color-box {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    border: 1px solid #cccccc;
    border-radius: 3px;
    z-index: 2;
  }
  .re-back {
    position: absolute;
    bottom: 0;
    left: 30px;
    font-size: 12px;
    color: @primary-color;
    width: 28px;
    margin-left: 10px;
    cursor: pointer;
  }
}
.hahahaha {
  .ant-modal-body {
    padding: 0;
  }
}
