.signature_code input {
	visibility: hidden;
	height: 1px;
	position: absolute;
	top: -9999px;
	left: -9999px;
}
.noselect {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.open-signature {
	cursor: pointer;
	font-weight: bold;
}
.reset-signature {
  cursor: pointer;
  font-weight: bold;
  display: none;
}
.signature-img {
	display: none;
    background-color: #FFFFF0;
    *max-width: 200px;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    margin: 10px;
    border: 1px dashed rgb(221, 221, 221);
}
.signature-img  img{
	*max-width: 200px !important;
	max-height: 100px;
}
.m-signature-pad {
  visibility: hidden;
  
  position: fixed;
  font-size: 10px;
  width: 900px;
  height: 500px;
  top: 50%;
  left: 50%;
  margin-left: -450px;
  margin-top: -300px;
  border: 1px solid #E8E8E8;
  background-color: #F5F5F5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
  border-radius: 4px;
  z-index: 99;
}

.m-signature-pad--body {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  bottom: 60px;
  border: 1px solid #f4f4f4;
  border: 2px dashed rgb(221, 221, 221);
  background-color: #FFFFF0;
  
  cursor: url(images/pen.cur), pointer
}

.m-signature-pad--body
  canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
  }

.m-signature-pad--footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  height: 40px;
}

.m-signature-pad--footer
  .description {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 1.8em;
  }

.m-signature-pad--footer
  .signature-pad-button {
    position: absolute;
    bottom: 0;
  }

.m-signature-pad--footer
  .signature-pad-button.clear {
    left: 0;
  }

.m-signature-pad--footer
  .signature-pad-button.save {
    right: 0;
  }

.mybutton.signature-pad-button.save[data-action="close"] {
  right: 60px;
}
@media screen and (max-width: 1024px) {
  .m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 250px;
    min-height: 140px;
    margin: 5%;
  }
  #github {
    display: none;
  }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .m-signature-pad {
    margin: 10%;
  }
}

@media screen and (max-height: 320px) {
  .m-signature-pad--body {
    left: 0;
    right: 0;
    top: 0;
    bottom: 32px;
  }
  .m-signature-pad--footer {
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 28px;
  }
  .m-signature-pad--footer
    .description {
      font-size: 1em;
      margin-top: 1em;
    }
}
