#main-container,
.modal {
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #000;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop,
.modal-backdrop.fade.in {
  opacity: 0.8;
  filter: alpha(opacity=80);
}

.modal {
  position: fixed;
  top: 10%;
  left: 50%;
  z-index: 1050;
  width: 560px;
  margin-left: -280px;
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999; /* IE6-7 */
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  outline: none;
}
.modal.fade {
  -webkit-transition: opacity 0.3s linear, top 0.3s ease-out;
  -moz-transition: opacity 0.3s linear, top 0.3s ease-out;
  -o-transition: opacity 0.3s linear, top 0.3s ease-out;
  transition: opacity 0.3s linear, top 0.3s ease-out;
  top: -25%;
}
.modal.fade.in {
  top: 10%;
}

.modal-header {
  padding: 9px 15px;
  border-bottom: 1px solid #eee;
}
.modal-header .close {
  margin-top: 2px;
}
.modal-header h3 {
  margin: 0;
  line-height: 30px;
}
.modal-header a {
  text-decoration: none;
}

.modal-body {
  position: relative;
  overflow-y: auto;
  max-height: 400px;
  padding: 15px;
}
.modal-body.no-padding {
  padding: 0;
}
.modal-body .modal-body-header {
  padding: 12px 18px;
}
.modal-body .modal-body-header input {
  margin: 0;
}
.modal-body .modal-body-header .spinner {
  margin-top: 0 !important;
  top: 4px;
}

.modal-form {
  margin-bottom: 0;
}

.modal-footer {
  padding: 14px 15px 15px;
  margin-bottom: 0;
  text-align: right;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  -webkit-border-radius: 0 0 6px 6px;
  -moz-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  -webkit-box-shadow: inset 0 1px 0 #fff;
  -moz-box-shadow: inset 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 #fff;
  *zoom: 1;
}
.modal-footer:before, .modal-footer:after {
  display: table;
  content: "";
  line-height: 0;
}
.modal-footer:after {
  clear: both;
}
.modal-footer .btn + .btn {
  margin-left: 5px;
  margin-bottom: 0;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}

table.modal-table {
  display: block;
  margin: 0;
}
table.modal-table span.col {
  min-height: inherit !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.modal-table thead {
  display: block;
  margin: 0;
}
table.modal-table thead tr,
table.modal-table thead th {
  display: block;
}
table.modal-table thead th {
  padding: 12px;
  box-sizing: border-box;
}
table.modal-table tbody {
  display: block;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
}
table.modal-table tbody tr,
table.modal-table tbody td {
  display: block;
  box-sizing: border-box;
}
table.modal-table tbody td {
  padding: 12px;
}
table.modal-table tbody td.delete-mode {
  padding-bottom: 7px;
  padding-top: 7px;
}
table.modal-table tbody .valigned {
  display: table-cell;
  height: 28px;
  vertical-align: middle;
}

.modal-body.webhooks-modal-body {
  max-height: 455px;
}
.modal-body.webhooks-modal-body .generic-errors {
  display: block;
  margin-top: 5px;
  text-align: center;
}
.modal-body.webhooks-modal-body .generic-error-messages {
  max-width: 200px;
  vertical-align: middle;
}
.modal-body.webhooks-modal-body.third-party-integration {
  max-height: 600px;
}
.modal-body.webhooks-modal-body.third-party-integration .webhooks-form.form-horizontal .control-group .control-label {
  width: 155px;
}
.modal-body.webhooks-modal-body.third-party-integration .webhooks-form.form-horizontal .control-group .controls {
  margin-left: 170px;
}
.modal-body.webhooks-modal-body.third-party-integration .webhooks-form.form-horizontal .control-group .controls input {
  padding-left: 5px;
  padding-right: 5px;
}
.modal-body.webhooks-modal-body.third-party-integration .webhooks-form.form-horizontal .control-group .controls select {
  width: 80px;
}
.modal-body.webhooks-modal-body.third-party-integration .webhooks-form.form-horizontal .control-group .controls select.integration-type {
  width: 175px;
}

.webhooks-form.form-horizontal .control-label {
  width: 135px;
}
.webhooks-form.form-horizontal .controls {
  margin-left: 155px;
}
.webhooks-form.form-horizontal .action-buttons {
  text-align: center;
}
.webhooks-form.form-horizontal small.test-result {
  display: block;
}
.webhooks-form.form-horizontal small.test-result.text-success {
  color: #3cb21b;
}

.modal-seperators .modal-header {
  border-bottom: 1px solid #efefef;
}
.modal-seperators .modal-footer {
  border-top: 1px solid #efefef;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop,
.modal-backdrop.fade.in {
  opacity: 0.4;
}

.modal-header {
  border: none;
  border-bottom: 1px solid #979797;
  background: linear-gradient(0deg, rgb(196, 196, 196), rgb(237, 237, 237));
  background: -webkit-gradient(linear, left bottom, left top, color-stop(1, rgb(237, 237, 237)), color-stop(0, rgb(196, 196, 196)));
  background: -moz-linear-gradient(center top, rgb(237, 237, 237), rgb(196, 196, 196));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #4f4f4f;
  font-weight: bold;
  -webkit-border-top-right-radius: 6px;
  -moz-border-radius-topright: 6px;
  border-top-right-radius: 6px;
  -webkit-border-top-left-radius: 6px;
  -moz-border-radius-topleft: 6px;
  border-top-left-radius: 6px;
}

.modal-footer {
  background-color: transparent;
  border-top: 0;
}
.modal-footer.modal-footer-with-border {
  border-top: 1px solid #efefef;
}

.wideish-modal {
  width: 590px;
  margin-left: -295px;
}

.wider-wideish-modal {
  width: 720px;
  margin-left: -360px;
}

.wide-modal {
  width: 960px;
  margin-left: -480px;
}

.alerts-modal {
  width: 1000px;
  margin-left: -500px;
}

.narrow-modal {
  width: 300px;
  margin-left: -150px;
}

.modal-y-visible .modal-body {
  overflow-y: visible;
}

.tall-modal.ms-ie {
  height: 80%;
}

.tall-modal {
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  max-height: 80%;
}
.tall-modal .modal-header {
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  -ms-flex: 0;
  flex-shrink: 0;
}
.tall-modal .modal-body {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex: 1;
  flex-grow: 1;
  max-height: none;
}
.tall-modal .modal-footer {
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  -ms-flex: 0;
  flex-shrink: 0;
}
.tall-modal > form {
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 0;
}

.tall-fixed-modal {
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 700px;
}
.tall-fixed-modal .modal-header {
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  -ms-flex: 0;
  flex-shrink: 0;
}
.tall-fixed-modal .modal-body {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex: 1;
  flex-grow: 1;
  height: 614px;
  min-height: 614px;
  max-height: 614px;
  overflow-y: auto;
}
.tall-fixed-modal .modal-footer {
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  -ms-flex: 0;
  flex-shrink: 0;
}
.tall-fixed-modal > form {
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.vertical-padded-modal {
  padding-top: 20px;
  padding-bottom: 20px;
}

.modal ~ .ui-widget-overlay,
.modal ~ .ui-dialog {
  z-index: 1050;
}

.modal.modal-lighter-borders {
  border-radius: 3px;
  border: 1px solid #888;
}
.modal.narrow-window {
  width: 360px;
  margin-left: -180px;
}

.modal.te-modal.te-modal-fixed {
  position: fixed;
}
.modal.te-modal hr.separator {
  margin: 15px 0 0 0;
  width: 100%;
  margin-left: -5px;
  padding-right: 10px;
}
.modal.te-modal .modal-body hr.separator {
  width: 100%;
  margin-left: -15px;
  padding-right: 30px;
}