// 分享范围组件样式
.jw-share-scope-w{
  .jw-share-scope{
    margin-top: 20px;
  }
  .jw-share-rules-w{
    max-width:789px;
    height: auto;
    background: #f7f7f7;
    position: relative;
    padding-bottom: 20px;
    .jw-share-rules-title{
      span{
        display: inline-block;
        width: 63px;
        height: 30px;
        background: #404a53;
        line-height: 30px;
        font-size: 12px;
        color: #fff;
        text-align: center;
        margin: 20px 20px 0 20px;
      }
    }
    .jw-share-group{
      margin: 20px 0 0 20px;
    }
    // antd select 样式
    .jw-share-select{
      display: inline-block;
      // margin-bottom: 20px;
      .ant-select{
        width: 120px;
      }
      .ant-select-selection--single{
        height: 40px;
      }
      .ant-select-selection{
        border-radius: 1.5px;
      }
      .ant-select-selection__placeholder,
      .ant-select-search__field__placeholder{
        margin-top: -3px;
      }
      .ant-select-selection-selected-value{
        margin-top: 6px;
        .icon-selected{
          display: none;
        }
      }
      .ant-select-open .ant-select-selection,
      .ant-select-focused .ant-select-selection,
      .ant-select-selection:focus,
      .ant-select-selection:active,
      .ant-select-selection:hover{
        border-color: #d7d7d7;
      }
      // 小三角形样式
      .ant-select-arrow:before{
        content: '';
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #999;
      }
      .ant-select-open .ant-select-arrow:before{
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      .ant-select-arrow{
        margin-top: -2px;
      }
      .ant-select-dropdown{
        width: 200px !important;
      }
    }
    .jw-share-select-other{
      float: left;
    }
    // 添加 XX 选择框样式
    .jw-share-add{
      display: none;
      margin-left: 9px;
      position:relative;
      // float: left;
      .jw-shareobj{
        max-width: 515px;
      }
      // 品牌、办公室、用户性别、职能等级、安全等级select样式
      .jw-share-ant-select{
        width: 480px;
        &:after{
          content:"";
          width:0;
          height:0;
          border-width:5px 4px 0;
          border-style:solid;
          border-color:#999 transparent transparent;/*灰 透明 透明 */
          position: absolute;
          top: 20px;
          right: 13px;
        }
        .ant-select-selection--multiple{
          height: auto;
          .ant-select-selection__rendered{
            line-height: 38px;
            ul li{
              margin-top: 8px;
            }
          }
        }
      }
      .ant-select-selection__placeholder,
      .ant-select-search__field__placeholder{
        color: #3297fc;
        right: 30px;
      }
      .jw-share-icon{
        width: 40px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        top: 10px;
        right: 0px;
        height: 23px;
        border-left: 1px solid #e7e7e7;
        .icon-user{
          width: 22px;
        }
        .icon-user-roles{
          height: 20.5px;
        }
      }
      .icon-scope-down-w{
        text-align: center;
        position: absolute;
        top: 10px;
        right: 20px;
      }
      .ant-select-dropdown .ant-select-dropdown-menu .ant-select-dropdown-menu-item{
        padding: 0 10px!important;
      }
    }
    .jw-share-add-other{
      display: inline-block;
    }
    // “且”字样式
    .jw-share-and{
      width: 50px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      border-radius: 1.5px;
      background: #f4f4f4;
      border: 1px solid #ddd;
      margin-left: 11px;
      display: inline-block;
    }
    // 删除条件icon样式
    .jw-share-delete-cond{
      width: 12px;
      height: 16px;
      background: url(../images/delete.png) no-repeat;
      display: inline-block;
      margin-left: 20px;
      background-size: 12px 16px;
      cursor: pointer;
      vertical-align: middle;
      margin-top: -4px;
    }
    .jw-share-delete-cond-margin{
      margin-left: 81px;
    }
    // 删除规则icon样式
    .jw-share-delete-rules{
      background: url(../images/delete-rule.png) no-repeat;
      width: 15px;
      height: 15px;
      background-size: 15px 15px;
      position: absolute;
      top: -7.5px;
      right: -7.5px;
      cursor: pointer;
    }
  }
  .jw-share-rules-w-ex{
    padding-top: 20px;
  }
  // 分割线
  .jw-share-usergroup-line{
    min-width: 678px;
    max-width: 789px;
    height: 1px;
    border: 1px dashed #EAEAEA;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .jw-share-usergroup-ex-des{
    margin-top: 19px;
    margin-bottom: 20px;
  }
  // 新增规则 添加条件按钮样式
  .jw-share-add-btn{
    display: block;
    border:none;
    background: transparent;
    margin: 20px 0 0 20px;
    cursor: pointer;
    // width: 100%;
    text-align: left;
    .icon-add-rules{
      vertical-align: middle;
      margin-top: -3px;
    }
    .jw-share-add-rules{
      font-size: 13px;
      color: #3297fc;
      margin-left: 6px;
    }
  }
  // 隐藏样式
  .hide{
    display: none;
  }
}
// 下拉菜单样式
.jw-sharescope-select{
  .ant-select-dropdown-menu-item{
    padding: 11px 8px 11px 46px!important;
  }
}
// 加载更多
.jw-select-down{
  .jw-scope-load-more{
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px 0;
  }
}
.ant-select-dropdown.jw-sharescope-select{
  // width: 200px!important;
  border-radius: 0;
  .ant-select-dropdown-menu{
    padding: 10px 0;
    max-height: 300px;
    .ant-select-dropdown-menu-item{
      position: relative;
      &:hover{
        background: #ffffff;
      }
      .icon-selected{
        width: 19px;
        height: 14px;
        vertical-align: middle;
        margin: 0 10px;
        display: none;
        position: absolute;
        top: 13px;
        left: 8px;
      }
      span{
        padding-left: 0px;
      }
    }
    .ant-select-dropdown-menu-item-selected{
      span{
        padding-left: 0px;
      }
      .icon-selected{
        display: inline-block;
      }
    }
    .ant-select-dropdown-menu-item-active{
      background: #f7f7f7;
    }
  }
}
:root .ant-select-dropdown.ant-select-dropdown--multiple.jw-sharescope-select .ant-select-dropdown-menu-item:after{
  font-size: 20px;
}
.ant-select-dropdown.ant-select-dropdown--multiple.jw-sharescope-select{
  .ant-select-dropdown-menu-item-selected:after,
  .ant-select-dropdown-menu-item-selected:hover:after{
    color: #777777;
  }
   .ant-select-dropdown-menu-item:after{
    left: 15px;
  }
}
// 响应式布局
@media screen and (min-width: 1281px)  and (max-width: 1350px) {
  .jw-share-scope-w{
    .jw-share-rules-w{
      .jw-share-select .ant-select{
        width: 110px;
      }
      .jw-share-add .jw-shareobj,
      .jw-share-add .jw-share-ant-select {
        width: 460px;
      }
    }
  }
}

@media screen and (max-width: 1280px) {
  .jw-share-scope-w{
    .jw-share-rules-w{
      .jw-share-select .ant-select{
        width: 100px;
      }
      .jw-share-add .jw-shareobj,
      .jw-share-add .jw-share-ant-select {
        width: 450px;
      }
      .jw-share-and{
        width: 40px;
      }
      .jw-share-delete-cond{
        margin-left: 15px!important;
      }
      .jw-share-delete-cond-margin{
        margin-left: 66px;
      }
    }
  }
}
