.templatePreview {
  height: 100%;
  display: flex;
  flex-direction: column;

  .contentWrapper {
    flex: 1;
    overflow-y: scroll;
  }

  .headerWrapper {
    background-color: #0270c1;
    height: 55px;
    line-height: 55px;
    text-align: center;

    .iconsWrapper {
      display: inline-block;
      width: 150px;
      height: 55px;

      .iconWrapper {
        display: inline-block;
        width: 64px;
        height: 55px;
        line-height: 75px;
        text-align: center;

        img {
          width: 30px;
          height: 30px;
        }
      }

      .activeIconWrapper {
        background-color: #1c87d3;
      }
    }
  }

  .computerTemplate {
    background-color: rgb(246, 246, 246);
    width: 900px;
    padding-top: 30px;
    padding-bottom: 20px;
    margin: 20px auto;
    box-shadow: rgba(214, 214, 214, 0.5) 0px 0px 14px 0px;
    border: 3px solid #fff;

    .sobItemDiv {
      width: 100%;
      white-space: pre-wrap;
      word-break: break-all;
    }

    .background-wrapper {
      height: 200px;
      margin: 10px;
    }

    .background-img {
      width: 100%;
      height: 200px;
    }

    .titleWrapper {
      text-align: center;
      font-size: 18px;
      font-weight: 700;
    }


  }

  .phoneTemplate {
    width: 330px;
    padding-top: 0px;
    border-radius: 20px;

    .phoneBar {
      height: 50px;
      line-height: 50px;
      font-size: 16px;
      font-weight: 700;
      background-color: #fff;
      text-align: center;
    }
  }

  .sobItem {
    margin: 10px;
    background-color: #FFF;
    padding: 10px;

    .descript-title {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      flex: auto;
      overflow: hidden;
      color: #000000d9;
      font-weight: 700;
      font-size: 14px;
      line-height: 1.5715;
      white-space: nowrap;
      text-overflow: ellipsis;
      border: 1px solid #fafafa;
      border-bottom: none;
    }

    .descriptions-view {
      width: 100%;

      table {
        table-layout: fixed;
        border-collapse: collapse;
        width: 100%;
        border: 1px solid rgba(0, 0, 0, .06);

        .descriptions-row {
          .descriptions-item-label {
            background-color: #fafafa;
            padding: 16px 24px;
            color: #000000d9;
            font-weight: 400;
            font-size: 12px;
            line-height: 1.5715;
            text-align: start;
            border: 1px solid rgba(0, 0, 0, .06);
            min-width: 100px;
            max-width: 100px;
          }

          .descriptions-item-content {
            padding: 16px 24px;
            display: table-cell;
            flex: 1;
            color: #000000d9;
            font-size: 12px;
            line-height: 1.5715;
            word-break: break-word;
            overflow-wrap: break-word;
            border-collapse: collapse;
            border: 1px solid rgba(0, 0, 0, .06);
          }
        }
      }
    }
  }

  .space {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    .ant-btn {
      margin-right: 10px;
    }
  }
}

//工资单发放-重构页面-工资单模板预览
.salary-payroll-preview {
  width: 100%;
  height: 100%;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;

  .p-header {
    height: 50px;
    background-color: #0470C1;

    .ph-switch {
      height: 100%;
      display: flex;
      justify-content: center;

      .active, .phs-btn:hover {
        background-color: rgba(0, 0, 0, .15);
        transition: all .15s linear;
      }

      .phs-btn {
        height: 50px;
        min-width: 88px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        padding: 0 15px;
        cursor: pointer;

        img {
          width: 28px
        }
      }
    }
  }

  .p-body {
    flex: 1;
    overflow-y: auto;

    .pb-pc-container {
      width: 800px;
      height: calc(100% - 40px);
      margin: 20px auto;
      padding: 10px;
      background-color: #fff;
      box-shadow: 0 0 14px 0 hsla(0, 0%, 84%, .5);
      border-radius: 5px;
    }

    .pb-mobile-container {
      position: relative;
      width: 430px;
      height: calc(100vh - 170px);
      background-color: #fff;
      box-shadow: 0 0 14px 0 hsla(0, 0%, 84%, .5);
      border-radius: 24px;
      margin: 60px auto;
    }
  }
}

