.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  background-color: #000;
  opacity: 0.8;
  filter: ~"alpha(opacity=80)";
}

.modal {
  position: fixed;
  top: 50px;
  max-height: calc(100% - 100px);
  left: 50%;
  z-index: 20;
  overflow: auto;
  width: 560px;
  margin: 0px 0 0 -280px;
  /*margin: -250px 0 0 -280px;*/
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999; /* IE6-7 */

  font-family: var(--default-font);
}
.modal::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.modal::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.modal::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
.modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.modal:focus {
  outline: none;
}
.modal-large {
  position: fixed;
  top: 25%;
  left: 25%;
  z-index: 20;
  overflow: auto;
  width: 80%;
  max-height: 80%;
  margin: -150px 0 0 -280px;
  /*margin: -250px 0 0 -280px;*/
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999; /* IE6-7 */
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
}

.modal-header {
  padding: 9px 15px;
  border-bottom: 0px solid #eee;
  position: relative;
}
.modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 20px 0;
  margin: 0px;
  width: 100%;
}
.modal-header .close {
  position: absolute;
  right: 5px;
  top: 5px;
  border: none;
  opacity: 1;
  background: transparent;
}
.modal-header .close svg {
  width: 25px;
  height: 25px;
}
.modal-header .close svg path {
  stroke-width: 1;
  fill: var(--primary-color);
}
.modal-header h3 {
  margin: 0;
  padding: 0;
  line-height: 30px;
}

.modal-header .close {
  margin-top: 2px;
}
.close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  color: #000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
  opacity: 0.2;
  filter: ~"alpha(opacity=20)";
}
.close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.4;
  filter: ~"alpha(opacity=40)";
}

.modal-body {
  /*overflow-y: auto;*/
  max-height: 80%;
  padding: 15px;
}

.modal-body h5.msgtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
}
.modal-body h5.msgtitle strong {
  font-size: 18px;
  font-weight: 600;
}
.modal-footer {
  padding: 14px 15px 15px;
  margin-bottom: 0;
  text-align: right;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
}

.modal-footer .btn_grey {
  display: inline-block;
  *display: inline; /* IE7 inline-block hack */
  *zoom: 1;
  float: none;
}

.btn-warning {
  background: url(../images/btn_warning_template.png) repeat-x top left;
  text-shadow: 1px 1px #fbe2e8;
  color: #6b4740;
  border: 1px solid #b18f8b;
}

.btn-warning:hover {
  color: #461911;
}
.modal-content {
  position: relative;
}
.modal {
  display: block;
}
.modal .modal-header {
  padding: 9px 15px;
  border-bottom: 0px solid #eee;
  position: sticky;
  display: flex;

  top: 0px;

  background: white;
  z-index: 9;
}
.modal-body {
  padding-top: 20px;
}

/* Alert Box */
.modal.alertBox .modal-body {
  padding-top: 20px;
}
.modal.alertBox .msg {
  text-align: center;
  padding-bottom: 20px;
}
.modal.alertBox .continueBtn {
  text-align: center;
  padding: 10px 0;
}
.oldmodal {
  width: 50%;
  margin-bottom: 10%;
  margin-left: -25%;
}
.oldmodal .modaliframe {
  width: 100%;
  height: 380px;
  min-height: 380px;
  overflow: visible;
}
