@import './theme.less';

.gd-pdf-loading {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.3);
  height: 100%;
  z-index: 2020;
  overflow: hidden;
  display: none;

  img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.link {
  margin-left: 5px;
  color: #409eff;
  cursor: pointer
}

.p-width {
  width: 280px !important;
}

.errbg {
  background: url("https://cdn.jsdelivr.net/npm/gd-signature-jining@1.0.3/dist/static/image/error-bg.png") !important;
}

.right-bg {
  width: 390px;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto auto auto;
  opacity: 1;
  background-image: url("https://cdn.jsdelivr.net/npm/gd-signature-jining@1.0.3/dist/static/image/right-bg.png");
  background-size: 100% 100%;

  .box {
    margin-top: 100px;
  }

  .font {
    height: 18px;
    opacity: 1;
    font-size: 12px;
    font-family: NotoSansHans, NotoSansHans-Regular;
    font-weight: 400;
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    line-height: 18px;
    letter-spacing: 1px;
  }
}

.gd_dialog {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: #f3f6f7;
  height: 100%;
  overflow: hidden;
  display: none;
  z-index: 2020;

  .gd-button {
    height: 30px;
    line-height: 1;
    background: @--color-primary;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    outline: none;
  }

  .gd-button:active {
    opacity: 0.6;
  }

  .gd-title {
    height: 42px;
    background-color: white;
    text-align: center;
    line-height: 42px;
    border-bottom: 1px solid #e4e4e4;
    box-shadow: 3px 0 5px 0 rgba(0, 0, 0, 0.05);
    color: @--color-primary;
  }

  .header {
    height: 60px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 10px 50px;
    overflow: hidden;
    z-index: 1000;
    -webkit-box-shadow: 0 2px 6px 0 hsla(0, 0%, 52.9%, 0.16);
    box-shadow: 0 2px 6px 0 hsla(0, 0%, 52.9%, 0.16);
    box-sizing: border-box;
    display: flex;
    align-items: center;

    img {
      width: 140px;
      height: 40px;
      margin-right: 15px;
      display: inline-block;
    }

    .prebtn {
      border-radius: 5px;
    }
  }

  .content {
    border-top: 1px solid #dcdfe6;
    display: flex;
    height: 100%;
    overflow: hidden;
    justify-content: space-between;

    .head {
      display: flex;
      margin-left: 10px;

      .icon {
        width: 16px;
        height: 16px;
        padding-top: 2px;
        margin-right: 4px;
      }
    }

    .abridge-log {
      overflow-y: auto;

      .log-item {
        margin: 12px auto 20px auto;
        cursor: pointer;

        .error {
          color: #FD4444 !important;
        }

        .detail {
          font-size: 14px;
          font-family: NotoSansHans, NotoSansHans-Regular;
          color: #0E74FF;
          margin-top: 12px;
        }

        .title {
          width: 200px;
          overflow: hidden;
          text-align: left;
          text-overflow: ellipsis;
          white-space: nowrap;
          font-size: 14px;
          font-family: NotoSansHans, NotoSansHans-Regular;
          font-weight: 400;
          line-height: 20px;
          color: #333333;
          letter-spacing: 1px;
        }

        .seal-img {
          margin-top: 12px;
          width: 166px;
          height: 166px;
          opacity: 1;
          margin-left: 30px;
          /*   border: 1px #969798;
            border-style: dashed; */
        }
      }
    }

    // 缩略图
    .abridge {
      width: 150px;
      min-width: 150px;
      -webkit-transition: width 0.5s;
      transition: width 0.5s;
      background: #fff;
      -webkit-box-shadow: 3px 0 5px 0 rgba(0, 0, 0, 0.05);
      box-shadow: 3px 0 5px 0 rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;

      .abridge-box {
        overflow: auto;
        height: 100%;
        padding-bottom: 50px;

        .img-box {
          width: 99px;
          height: 120px;
          color: #333;
          margin: 0 auto;
          margin-top: 20px;
          cursor: pointer;

          .abridge-img {
            display: inline-block;
            width: 100%;
            height: 100%;
          }
        }

        .nub {
          text-align: center;
          width: 30px;
          border-radius: 5px;
          margin: 0 auto;
          margin-top: 6px;
        }

        .active_img_box {
          .img-box {
            border: 3px solid @--color-primary;
          }

          .nub {
            color: #fff;
            background: @--color-primary;
          }
        }
      }

      /*滚动条整体样式*/

      .abridge-box::-webkit-scrollbar {
        width: 6px;
        height: 1px;
      }

      /*滚动条滑块*/

      .abridge-box::-webkit-scrollbar-thumb {
        border-radius: 6px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
        background: #b6b6b6;
      }

      /*滚动条轨道*/

      .abridge-box::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        background: #ccc;
      }
    }


    // PDf预览部分
    .canvas-box {
      // pdf-canvas
      flex: 1;
      padding: 20px;
      overflow: auto;
      min-width: 800px;
      text-align: center;

      .canvas-container {
        position: relative;
        text-align: center;
        display: inline-block;
        overflow-x: auto;

        .davgerimg-remove {
          display: none;
          position: absolute;
          right: -8px;
          top: -8px;
          font-weight: bold;
          width: 15px;
          height: 15px;
          line-height: 13px;
          color: white;
          background-color: @--color-primary;
          border-radius: 50%;
          box-sizing: border-box;
        }

        .davgerimg-div {
          border: 1px solid transparent;
        }

        .davgerimg-div:hover,
        .davgerimg-div:active {
          border: 1px solid @--color-primary;
          cursor: pointer;

          .davgerimg-remove {
            cursor: pointer;
            display: block;
          }
        }
      }
    }

    /*滚动条整体样式*/

    .canvas-box::-webkit-scrollbar {
      width: 6px;
      height: 1px;
    }

    /*滚动条滑块*/

    .canvas-box::-webkit-scrollbar-thumb {
      border-radius: 6px;
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
      background: #b6b6b6;
    }

    /*滚动条轨道*/

    .canvas-box::-webkit-scrollbar-track {
      -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
      border-radius: 6px;
      background: #ccc;
    }

    .canvas_item {
      display: block;
      margin: 0 auto;
      opacity: 1;
      background: #ffffff;
      box-shadow: 0px 2px 4px 0px rgba(91, 113, 131, 0.13);
    }

    .content-right {
      min-width: 240px;
      padding: 20px 20px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding-bottom: 20px;
      border: 1px solid #dcdfe6;
      -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
      0 0 6px 0 rgba(0, 0, 0, 0.04);
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);

      // 右侧的签章照片
      .seal-box {
        flex: 1;
        overflow: auto;
        background: #fff;
        border: 1px solid #dcdfe6;
        -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
        0 0 6px 0 rgba(0, 0, 0, 0.04);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
        0 0 6px 0 rgba(0, 0, 0, 0.04);
        padding: 0 15px;
        margin-bottom: 15px;

        .seal-box-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          margin-bottom: 9px;
          border-radius: 15px;
          border: 1px solid #ebeef5;
          border-left: 4px solid @--color-primary-border;
          padding: 10px 0 10px 0;
        }

        .luck-btn {
          background-color: #d4d4d4;
        }

        .seal-img {
          display: block;
        }
      }

      /*滚动条整体样式*/

      .seal-box::-webkit-scrollbar {
        width: 6px;
        height: 1px;
      }

      /*滚动条滑块*/

      .seal-box::-webkit-scrollbar-thumb {
        border-radius: 6px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
        background: #b6b6b6;
      }

      /*滚动条轨道*/

      .seal-box::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        background: #ccc;
      }

      .sign {
        background: #fff;
        border: 1px solid #dcdfe6;
        text-align: center;
        padding-bottom: 20px;
        -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
        0 0 6px 0 rgba(0, 0, 0, 0.04);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
        0 0 6px 0 rgba(0, 0, 0, 0.04);

        .data-title {
          color: @--color-primary;
          font-size: 18px;
          font-family: SourceHanSansCN-Medium, SourceHanSansCN;
          font-weight: 500;
          line-height: 48px;
          height: 48px;
          border-bottom: 1px solid @--color-primary-border;
        }

        .data-text {
          color: #565656;
          font-size: 18px;
          padding: 15px 0;
        }

        .signbtn {
          border-radius: 19px;
          width: 102px;
        }
      }
    }
  }

  .gd-button {
    height: 30px;
    line-height: 1;
    background: @--color-primary;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    outline: none;
  }
}
