.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}
.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.fade.in {
    opacity: 1;
}

/*width height*/
.modal-dialog {
    width: 500px;
    position: relative;
    width: auto;
    margin: 150px auto 0 auto;
}

main .modal-dialog {
  margin: 250px auto 0 auto;
}

#documentViewer .modal-dialog {
    position: absolute;
    top: 25%;
    height: 75%;
    width: 60%;
    margin: 0 20% 0 20%;
}

.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
       -o-transform: translate(0, -25%);
          transform: translate(0, -25%);
}

/**/
.modal-content {
  position: relative;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  outline: 0;
}

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-content form {
  margin: 0;
}

/**/
.modal-header {
  text-align: center;
  padding: 10px 15px;
  border-bottom: 1px solid #e6e6e6
}
.modal-header .close {
  position: absolute;
  top: -40px;
  right: 15px;
}

.modal-header .close img {
  width: 30px;
}

.modal-title {
  font-size: 2.4em;
  color: #444;
  line-height: 1.42857143;
  border:none !important;
}

.modal-title span {
    display: block;
    font-size: 0.7em;
    color: #444;
}

.modal-body {
  position: relative;
  padding: 30px 15px;
  background:#F7F9FA;
}

/* Comment Styles*/
.modal-body .commentsForm {
    margin: 0 0 20px 0;
}

.modal-body .commentsForm textarea {
    margin: 0 0 10px 0;
}

.modal-body .commentsForm button {
    margin: 0;
}

.modal-body .content_type.comment {
    margin: 0;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 5px;
}

.modal-body .content_type.comment:nth-child(even) {
    background-color:#E6E6E6;
}

.modal-body .content_type.comment p {
    margin: 0 0 10px 0;
    padding: 0px 0px;
    /*border-bottom: 1px solid #E6E6E6;*/
}

.modal-body .content_type.comment p.info {
    font-style: italic;
    font-size: 1.4em;
    color: #AFAFAF;
    padding: 0px;
    margin: 5px 0;
    border: none;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}

.modal-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0;
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5;
}


.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

/*Modal for DocumentView*/
.modal.documentview {

}

.modal.documentview .modal-dialog {
    width: 60%;
}

.modal.documentview .modal-header {
    padding: 0;
}

.modal.documentview .modal-body {
    padding: 0;
}

  @media (min-width: 768px) {
    .modal-dialog {
      width: 500px;
    }
    .modal-sm {
      width: 300px;
    }

    .modal-header .close {
      position: absolute;
      top: -24px;
      right: -24px;
    }

    .modal-header .close img {
      width: 20px;
    }
  }
  @media (min-width: 992px) {
    .modal-lg {
      width: 900px;
    }
  }
