// 分享范围组件样式
.jw-share-scope-w{
  margin: 20px 0 0 15px;
  .jw-share-scope{
    margin-top: 20px;
    &:first-child{
      margin-top: 5px;
    }
  }
  .jw-share-rules-w{
    max-width:600px;
    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;
      .jw-select {
        width: 100px;
      }
      .jw-select-inner{
        width: 100px;
        border: 1px solid #d7d7d7;
        background: #fff;
        height: 41px;
        padding-left: 5px;
        font-size: 13px;
        &:after,&:before,&:hover:before{
          border-bottom: none;
        }
        div:focus{
          background: #fff;
        }
      }
      .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: 4px;
        .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-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-multiple-select{
        max-width: 340px;
        min-width: 340px;
        height: auto;
        min-height: 41px;
        background: white;
        border: 1px solid #d7d7d7;
        padding-left: 5px;
        &:before,&:after,&:hover:before{
          border: none;
        }
        div:focus{
          background: white;
        }
        .custom-select-check-i{
          height: 19px;
          margin-left: 5px;
        }
      }
      .jw-custom-select-multiple-placeholder{
        margin-left: 5px;
      }
      .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: 6px;
        right: 0px;
        border-left: 1px solid #e7e7e7;
        height: 26px;
        .icon-user{
          width: 22px;
        }
        .icon-user-roles{
          height: 20.5px;
        }
        // .icon-new{
        //   margin-top: 4px;
        // }
        .jw-custom-menu-w button:hover{
          padding: 7px;
        }
      }
      .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-teamscope-baseshare{
        max-width: 342px;
        min-width: 200px;
        width: 400px;
        border: none;
        border: 1px solid #ccc;
        padding: 3.6px;
        background: white;
        min-height: 40px;
        .custom-select-list{
          margin-top: 0;
        }
      }
    }
    .jw-share-add-other{
      display: inline-block;
      vertical-align: middle;
    }
    // “且”字样式
    .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;
      vertical-align: top;
    }
    // 删除条件icon样式
    .jw-share-delete-cond{
      width: 12px;
      height: 16px;
      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAkCAYAAACaJFpUAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAJAAAAAD17AflAAAA4klEQVRIDe2XMQ6CQBBFHaW1s/AyBO/gXYROLDZhD+IJPIAkcBW1sqLfdSH8bQxLNLMNGZqf7EzeZB7bLK1mvqIoSmvteaZtKBPRpaqqMtS7CRV/GTZyDmmaUtu29RSX8jy3U8UY5+sY0BBz+QND2y+jRlgj9m3VWg+zln9pZEPcKbYUpWwqARKlMMGWopRNJUCiFCbYUpSyqQRIlMIEW3ql7m33YqN+g5448gPdo/OOwwhZg+kHJklyclu+UeDKntmzwfMv4KZpuizLrsaYvWvauYYtmv7J8Rfd3LCjUuoBxgff7C2EWtibZgAAAABJRU5ErkJggg==) no-repeat;
      display: inline-block;
      margin-left: 20px;
      background-size: 12px 16px;
      cursor: pointer;
      vertical-align: top;
      margin-top: 13px;
    }
    .jw-share-delete-cond-margin{
      margin-left: 81px;
    }
    // 删除规则icon样式
    .jw-share-delete-rules{
      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAwNJREFUWAnNV89rE0EU/jbxEIJtBX+Si/jjotWDCPUkqGC8Sz30omDRk+JFPfgHKNhexJ4UBb30ULE9agQNeFIoHsSjP3KJFBVsIjEHs+v73uxsNsk26TZZ64PJzE5m3vftvJk33wLrbE4cfM/zsjI+L2VMSs4vUqHsl7dSFxzHqbFzYCbAY1LmPdf9LbWxauWP9+WTKWxbM2Pm5ZEke1rXFRAnO8XDlJQzqNUaeFlI4/UrYPENUK+3Os9kgMNHgKPHgRP5BrLZtAyYk3JNVqTUOrj5tCIBAT8G130qZQRPZlN4dB+oVpozu7WGhoFzF4DxCRep1LKU00KiGDUlkoCAn5XBD7D01cHVS2l8/hg1t3ffrj3A9EwD23Z4cJxJIfG4fVIHAX1z4AU+vE/h+uUUln+2z4n3PLIJuH3Xxf4DrpA42b4SLQQ05q77Dt+WhnF+It03uKVKEg9nG9i6vSLhOBTeEyk7xq+nNeZc9n7fPOyYvuiT+8ls6uDfgIC8PY/NuG64tcY8cBvRoE9uZjlRPpYOCgjI0w09atztSRl98zgTyzclIIyy8LxTes5Xe9Sshzg1fTOXCJZiyly7AnnZoRlNMnEcrmUsExmxTEoPCJi0yQyXtDUxFNOuQA6/qo2O9JoEGaZwYpnLLFiBHH58TwIu2qfB4m2KDdEjQr137skls6qLLTTJby7K7XzlYmd/qMeGoIzNW0LdCTcNFjVEsAJlbBxKg1dq+zXb4w1iUyUGsYyICfYAlYy5z7WR4A81gzHFtCEoSHKoq5iwfydVU7AQS6QbIZSA3E41SQ7PVclQTCRl9E215DjPFNMS8PFuqoyikknK6NtItVsWwoZASDmMyZzKKCqZQdvuvUaiCYaPpQj/lyARZiUKSNVwlFFUMv0afUzNuOrTiNNS2GUQAtspJIoSj0mMHnRVRvUTDs6lFNs3Sj1IUVq0OLZuCYHtZC339frJcktESCT+YWKxutZChJ9mCzE+zRY4p6tT/88VQxA1WZxmpf/ff5xGkRlU31975XiP7oQWBwAAAABJRU5ErkJggg==) no-repeat;
      width: 15px;
      height: 15px;
      background-size: 15px 15px;
      position: absolute;
      top: -7.5px;
      right: -7.5px;
      cursor: pointer;
    }
  }
  .jw-usergroup-export-menu{
    font-size: 14px;
  }
  // 新增规则 添加条件按钮样式
  .jw-share-add-btn{
    display: block;
    border:none;
    background: transparent;
    margin: 20px 0 0 20px;
    cursor: pointer;
    // width: 100%;
    text-align: left;
    .icon-add-item{
      vertical-align: middle;
      margin-top: -3px;
    }
    .jw-share-add-rules{
      font-size: 13px;
      color: #3297fc;
      margin-left: 6px;
      font-weight: 500;
    }
    &:focus{
      outline: 0;
    }
  }
  // 隐藏样式
  .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;
  }
}


// 未找到以下用户/团队弹框样式
.jw-m-not-found{
  #alert-dialog-title{
    width: 620px;
    h6{
      font-size: 18px;
    }
  }
  .jw-m-not-found-actions{
    .not-found-desc{
      font-size: 16px;
      color: #494949;
      margin: 30px 0 30px 0px;
      font-weight: 400;
    }
    .not-found-item{
      font-size: 14px;
      color: #494949;
      margin: 20px 0 0 0px;
    }
  }
  .addusergroup-cancel-btn{
    padding: 3px 27px;
  }
  .addusergroup-save-btn{
    padding: 3px 25px;
    color: #fff;
    background: #404a53;
    &:hover{
      background: #000000;
    }
    &[disabled]{
      background: #b0b0b0;
    }
  }
}

// 上传Dialog样式
.jw-m-upload-dialog{
  #alert-dialog-title{
    width: 500px;
    margin-bottom: 20px;
    h6{
      font-size: 18px;
      font-weight: 500;
    }
  }
  .upload-cancel-btn{
    color: #3297fc;
  }
  .jw-m-upload-progress{
    div{
      background: #3297fc;
    }
  }
}

// 响应式布局
@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 .jw-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;
      }
    }
  }
}
.jw-delete-rules-dialog{
  width: 430px;
}

.jw-share-scope-w{
  .custom-shareselect{
    .custom-shareselect-list{
      width: 90%;
    }
    .custom-shareselect-search-input{
      display: none;
    }
    .custom-shareselect-placeholder{
      line-height: 50px;
    }
  }
}
