@import './theme.less';

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gd-GDsignature-app-manual {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background-color: #f3f6f7;
  height: 100%;
  width: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  //z-index: 2020;
  display: none;

  .action-box {
    height: 1rem;
    display: flex;
    align-items: center;
    background: @--color-primary;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);

    .my-back {
      margin-left: 16px;
      width: 11px;
      height: 20px;
      margin-right: 14px;
    }

    .my-sign {
      img {
        width: 15px;
        height: 16px;
        margin-right: 6px;
        vertical-align: text-top;
      }

      margin-right: 8px;
    }

    .write-btn {
      margin-right: 8px;

      img {
        width: 17px;
        height: 16px;
        margin-right: 6px;
        vertical-align: text-top;
      }
    }

    .RefusalSign-btn {
      margin-right: 8px;

      img {
        width: 17px;
        height: 16px;
        margin-right: 6px;
        vertical-align: text-top;
      }
    }

    button {
      margin: 0 0.05rem;
    }
  }

  .pdf-box {
    flex: 1;
    overflow: auto;
    padding-top: .2rem;

    .pdf-num {
      position: fixed;
      display: none;
      top: 80px;
      left: 8px;
      width: 40px;
      height: 26px;
      opacity: 0.52;
      background: #000000;
      border-radius: 10px;
      z-index: 1;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      color: #ffffff;
      line-height: 26px;
    }
  }

  .botton-btns {
    height: 1.2rem;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    width: 100%;
    background: none;
    box-shadow: none;
  }

  // .write-popup{
  //   .myCanvas{
  //     border: 1px dashed @--color-primary;
  //   }
  //   .content{
  //     display: flex;
  //     align-items: center;
  //     justify-content: center;

  //   }
  // }
  .pdf-content {
    display: flex;
    flex-direction: column;
    position: relative;

    /* touch-action: none; */

    .canvas_item {
      box-shadow: none;
      margin-bottom: 4px;
    }
  }

  .write-model {
    position: fixed;
    z-index: 3;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: none;

    .write-model-content {
      width: 100%;
      height: 100%;
      display: flex;
    }

    .action {
      width: 50px;
      background-color: @--color-primary;
      font-size: 14px;
      color: white;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: .3rem 0;

      .back-icon {
        font-style: normal;
        display: block;
        font-size: 20px;
        transform: rotate(90deg);
        margin-bottom: 5px;
      }

      .back-icon::before {
        content: '\003C';
      }

      .item {
        transform: rotate(90deg);
        display: flex;
      }
    }

    .box {
      flex: 1;
      position: relative;

      .text {
        margin: 0;
        padding: 0;
        font-size: .48rem;
        color: #e4e4e4;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(90deg);
        font-weight: normal;
      }
    }
  }

  .gd-popup-model {
    z-index: 1;
    position: fixed;
    transition: all .5s;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
  }

  .gd-popup-content {
    z-index: 2;
    height: 0;
    position: fixed;
    transition: height .3s linear;
    bottom: -50%;
    background: white;
    width: 100%;
    border-top-left-radius: .2rem;
    border-top-right-radius: .2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    .action {
      margin-top: 27px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: .28rem;
      padding: .1rem .2rem;

      .action-cancel {
        color: #969799;
        position: absolute;
        right: 10px;
        top: 12px;
      }

      .action-sure {
        color: #576b95;
      }

      .action-title {
        height: 22px;
        font-size: 16px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: center;
        color: #6c6c6c;
        line-height: 22px;
        letter-spacing: 0px;
        margin: auto;
      }
    }

    .content {
      overflow: auto;
      height: 100%;
      font-size: .28rem;
      padding: .1rem 26px;

      .seal-li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 69px;
        border-radius: 0;
        background: #f7f7f7;
        margin-bottom: .22rem;

        .seal-img {
          margin-left: 30px;
          max-height: 50px;
          min-height: 27px;
          width: 50px;
        }

        .seal-box {
          .name {
            height: 20px;
            font-size: 14px;
            font-family: PingFangSC, PingFangSC-Medium;
            font-weight: 500;
            color: #fba501;
            line-height: 20px;
          }

          .time {
            height: 17px;
            font-size: 12px;
            font-family: PingFangSC, PingFangSC-Light;
            font-weight: 300;
            text-align: left;
            color: #fba501;
            line-height: 17px;
          }
        }
      }
    }
  }

  .popup-model-show {
    opacity: 1;
    display: block;
  }

  .popup-content-show {
    height: 50%;
    bottom: 0;
  }

  .fix-myCanvas {
    position: fixed;
  }

  .davgerimg-div {
    border: 1px solid transparent;
    .flex-center;

    .davger-img {
      display: block;
      margin: auto;
      vertical-align: middle;
    }

    .davgerimg-remove {
      display: none;
    }
  }

  .action-davgerimg-div {
    border: 1px solid @--color-primary;
    width: auto;
    height: auto;
    padding: 0px;
    background: #c8edd9;
    border: 2px solid #23b769;

    .davger-img {
      border: 2px dotted #969798;
      vertical-align: middle;
    }

    .davgerimg-remove {

      img {
        height: 15px;
        width: 15px;
        position: absolute;
        left: -6px;
        top: -8px;
        background: none;
        box-sizing: border-box;
      }

      font-weight: bold;
      text-align: center;
      display: block;
      text-align: center;
      color: white;
    }
  }
}

.gd-button {
  height: 30px;
  line-height: 30px;
  background: @--color-primary;
  color: #fff;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  padding: 0 12px;
  border: 1px solid #fff;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
}

.gd-titleheader {
  font-size: 17px;
  font-family: Helvetica;
  text-align: center;
  color: #ffffff;
  line-height: 20px;
  margin: auto;
  letter-spacing: 0px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sign-btn {
  width: 311px;
  height: 51px;
  line-height: 51px;
  background: @--color-primary;
  border-radius: 26px;
  font-size: 20px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
}

.gd-button:active {
  opacity: 0.6;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none
}
