.modal {
  overflow: hidden;
  position: fixed;
  width: 100%;
  z-index: 99999;
  top: 40%;
  -webkit-transition: top 0.4s ease-in-out;
  transition: top 0.4s ease-in-out;
}

.modal.alert {
  text-align: center;
}

.modal.alert .modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal.alert .modal-inner {
  padding: 0;
}

.modal.alert .modal-inner .modal-header {
  margin: 24px;
  padding-bottom: 0;
}

.modal.on {
  top: 50%;
  z-index: 999;
}

.modal.on .modal-inner {
  opacity: 1;
}

.modal.panel {
  top: 0;
  margin-top: 0 !important;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  right: -100%;
  -webkit-transition: right 0.4s ease-in-out;
  transition: right 0.4s ease-in-out;
}

.modal.panel .guideline {
  padding: 20px;
  border-radius: 12px;
}

.modal.panel .label {
  font-size: 1.6rem;
  font-weight: 600;
}

.modal.panel .optionGroup-list {
  margin-top: 10px;
}

.modal.panel .modal-inner {
  width: 484px;
  max-width: 484px;
  margin: inherit;
  height: 100%;
  border-radius: 0;
  left: auto;
}

.modal.panel.on {
  right: 0%;
}

.modal.panel .panelwrap .btn.clear {
  background-color: #e6e6e6;
}

.modal.panel .panelwrap .btn.type-crud {
  margin: 0;
  max-width: 60px;
}

.modal.panel .panelwrap .panel-head {
  padding: 0 24px;
  position: relative;
  height: 50px;
  border-bottom: 1px solid #e7e7e7;
  background-color: #fff;
}

.modal.panel .panelwrap .panel-head .tit {
  text-align: center;
  font-weight: 800;
  font-size: 2rem;
  line-height: 50px;
}

.modal.panel .panelwrap .panel-head .ico.back {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.modal.panel .panelwrap .panel-body {
  padding: 24px;
  height: calc(100vh - 153px);
  overflow: auto;
}

.modal.panel .panelwrap .panel-body .form + .form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e7e7e7;
}

.modal.panel .panelwrap .panel-foot {
  border-top: 1px solid #e7e7e7;
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.modal.panel .panelwrap .panel-foot .btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.modal-inner {
  width: 90%;
  max-width: 504px;
  margin: auto;
  position: relative;
  z-index: 99999;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.1);
  opacity: 0;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.modal .modal-dim {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: #1b1b1b;
  opacity: 0;
  z-index: 99998;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.modal .modal-dim.on {
  opacity: 0.7;
}

.modal .modal-header {
  border-bottom: 1px solid #e7e7e7;
  padding: 24px 0 16px;
  position: relative;
}

.modal .modal-header .modal-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.modal .modal-header .modal-title.center {
  text-align: center;
}

.modal .modal-header .ico {
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.modal .modal-header .ico:after {
  width: 16px;
  height: 16px;
}

.modal .desc {
  font-weight: 500;
  line-height: 28px;
  /* 155.556% */
  letter-spacing: -1px;
  font-size: 1.6rem;
  color: #666;
}

.modal small {
  display: inline-block;
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 20px;
  font-weight: 500;
}

.modal .modal-body {
  max-height: 440px;
  overflow: auto;
  margin: 20px;
}

.modal .modal-body.auto {
  max-height: inherit;
}

.modal .modal-footer {
  background-color: #e6e6e6;
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.modal .modal-footer .btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.modal .modal-footer .btn.clear {
  background-color: transparent;
  border: none;
  width: 100px;
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
}

.btn {
  font-size: 1.6rem;
}

.btn.medium {
  font-size: 1.6rem;
  padding: 0 10px 0 10px;
  border-radius: 8px;
  font-weight: 500;
  min-width: 96px;
  height: 42px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btn.medium {
  height: 34px;
  font-size: 1.5rem;
  min-width: 70px;
}

.btn.positive {
  border-color: transparent;
  background: var(--rec-primary);
  color: var(--white);
}

.btn.positive:active {
  background: #202020;
}
