//社保福利方案页面重构
.salary-welfare-plan-wrapper {
  min-width: 1000px;
  overflow: auto;
  width: 100%;
  height: 100%;
  background: #f6f6f6;

  .wea-new-top-req-title > div:first-child > div > div {
    padding-left: 0 !important;

    .wea-tab {
      border-bottom: none;
    }
  }

  .salary-welfare-plan-content {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    .searchAdvanced-condition-hide {
      display: none;
    }

    .searchAdvanced-condition-container {
      background: #FFF;
      margin-bottom: 10px;
      border: 1px solid #e5e5e5;

      .wea-search-buttons {
        border-top: 1px solid #dadada;
        padding: 15px 0;
      }

      .wea-advanced-searchsAd {
        height: 125px;
        overflow: hidden auto;

        .formItem-delete {
          position: absolute;
          top: 0;
          right: -40px;
        }

        .searchAdvanced-commonSelect {
          border-top: 1px solid #ebebeb;
          margin: 0 25px;
          padding: 10px 0;
        }

        .custom-advance-largeSpacing {
          padding-left: 26px;

          .link {
            border: none;
            border-radius: 0;
            padding: 12px 10px 12px 26px;
            color: #2db7f5
          }
        }

      }
    }

    .welfare-plan-adapt {
      width: 100%;
      flex: 1;

      .adapt-left {
        width: 100%;

        .wea-new-table {
          background: #FFF;
        }

        .planOptBtns {
          display: flex;
          align-items: center;

          a {
            margin-right: 10px;
          }

          a:last-child {
            margin-right: 0;
          }
        }
      }

      .adapt-right {
        width: 100%;
        margin-top: 16px;

        .tipContentWrapper {
          background: #FFF !important;
        }
      }
    }
  }
}

.welfare-plan-edit-layout {
  .ant-table-content {
    padding-left: 208px !important;

    .ant-table-fixed-left {
      top: 1px;
    }
  }

  .flex-center {
    display: flex;
    align-items: center;

    .wea-select {
      flex: 1;
      margin-right: 4px;
    }
  }

  .ant-table-fixed-left {
    .ant-table-tbody > tr {
      height: 41px !important;
    }
  }

  .titleDialog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 46px 0 16px;

    .titleCol {
      flex: 1;
      display: flex;
      align-items: center;
    }

    .titleLeftBox {
      .titleIcon {
        color: #fff;
        margin: 0;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F14A2D;
        border-radius: 50%;
      }

      .title {
        font-size: 14px;
        color: #333;
        padding-left: 6px;
      }
    }

    .titleRightBox {
      justify-content: flex-end;

      button:last-child {
        margin-left: 10px;
      }
    }
  }

  .wea-slide-modal-title {
    border-bottom: 1px solid #e5e5e5 !important;
  }

  .wea-slide-modal-content {
    height: 100%;

    .welfare-plan-edit-area {
      background: #f6f6f6;
      height: 100%;
      overflow-y: auto;
      padding: 16px;

      .wea-search-group, .wea-form-cell {
        padding: 0;

        .wea-form-item {
          padding: 5px 16px;

          .wea-form-item-label {
            color: #666;
          }
        }
      }

      .wea-form-cell-wrapper {
        background: #FFF;
        border: 1px solid #e5e5e5;

        .wea-form-cell:not(:last-child) {
          border-bottom: 1px solid #e5e5e5;
        }
      }

      .wea-select, .ant-select, .ant-select-selection {
        width: 100%;
      }

      .wea-select .wea-select-input .arrow {
        position: absolute;
        right: 4px;
        top: 8px;
        color: #666;
      }

      .wea-select .wdb {
        word-break: break-all !important;
        word-wrap: break-word !important;
        white-space: nowrap !important;
      }

      .wea-select .wea-select-input {
        height: 30px;
        white-space: nowrap;
        min-width: 100px;
        max-width: 426.16px;
        width: 100%;
        display: inline-block;
        padding: 4px 17px 4px 4px;
        position: relative;
        min-height: 30px;
        border: 1px solid #d9d9d9;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        overflow: hidden;
      }

      .text-td-elli {
        display: inline-block;
        width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}

.nopermission-welfare-plan-edit-layout {
  .ant-table-fixed-left {
    .ant-table-tbody > tr {
      height: 37.38px !important
    }
  }
}

.zIndex0-welfare-plan {
  .wea-new-top-req {
    z-index: 0 !important;
  }
}

@media screen and (min-width: 1440px) {
  .salary-welfare-plan-content {
    .welfare-plan-adapt {
      display: flex;

      .adapt-left {
        width: calc(100% - 390px);
      }

      .adapt-right {
        width: 380px !important;
        max-width: 380px !important;
        margin-top: 0 !important;
        margin-left: 16px;
      }
    }
  }
}


//方案基数变化
.baseChangeDialog {
  .wea-dialog-body {
    overflow-y: hidden;
  }

  .baseChangeContent {
    background: #F6F6F6;
    padding: 16px;
    width: 100%;
    height: 100%;

    .empty {
      width: 100%;
      display: flex;
      height: 100%;
      justify-content: center;
      align-items: center;
      background: #ffff;
    }

    .wea-search-group {
      padding: 0;
      margin-bottom: 10px;
      background: #FFF;

      .wea-form-cell {
        padding: 0;

        .wea-form-item {
          padding: 10px;
        }
      }
    }

    .logTable {
      background: #FFFFFF;
    }

    .wea-transfer-list-wrapper {
      border: none;

      .ant-tree-switcher {
        display: none;
      }

      .transfer-tree {
        background: #FFF;
        border: 1px solid #dadada;
        padding: 0;

        & > li:not(:last-child) {
          .detailBox .content {
            border-bottom: 1px solid #dadada;
          }
        }

        & > li {
          margin: 0 !important;

          .detailBox {
            display: flex;
            align-items: center;

            .order {
              width: 35px;
              color: #999;
              text-align: center;
            }

            .content {
              position: relative;
              flex: 1;
              min-height: 40px;
              line-height: 40px;
              color: #000;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
          }
        }
      }
    }
  }
}

