@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
}
.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;
    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: calc(~'100% - 60px');
    overflow: hidden;
    justify-content: space-between;

    // 缩略图
    .abridge {
      width: 150px;
      min-width: 150px;
      -webkit-transition: width 0.5s;
      transition: width 0.5s;
      background: #f8f8f8;
      -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-roate{
          position: absolute;
          right: 6px;
          bottom: 8px;
          width: 30px;
          height: 30px;
          cursor: se-resize;
        }

        .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;
      -webkit-box-shadow: 0 2px 9px 0 hsla(0, 0%, 74.9%, 0.5);
      box-shadow: 0 2px 9px 0 hsla(0, 0%, 74.9%, 0.5);
      margin: 0 auto;
    }

    .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;
  }
}

.jSignature{
  height: 400px !important;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

#valid-dialog  {
  input{
    width: 100%;
    height: 36px;
    border-radius: 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-indent: 15px;
    color: #333;
  }
  input:foucs, input:foucs{
    border: 1px solid red !important;
    background: yellow !important;
  }
}