.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1102;
    display: none;
    overflow: hidden;
    outline: 0;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%);
}

@media screen and (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	background-color: #000;
	z-index: 1101;
	display: none;
}

.modal-backdrop.ligthview {
	z-index: 1101;
}

.modal-backdrop.confirm {
	z-index: 1102;
}

.modal-backdrop.message {
	z-index: 1103;
}


.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
	opacity: 0.5;
	display: block;
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e4e7ea;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
	float: right;
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
	background-color: transparent;
	border: 0;
	-webkit-appearance: none;
}

.modal-header .close :not(:disabled):not(.disabled) {
    cursor: pointer;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-title h4 {
	margin: auto;
}

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
	padding: 15px;
	background-color: #f5f5f5;
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #e4e7ea;
}

.modal-footer> :not(:first-child) {
    margin-left: .25rem;
}

.modal-footer> :not(:last-child) {
    margin-right: .25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

.modal-primary .modal-content {
    border-color: #8897AA;
}

.modal-primary .modal-header {
    color: #fff;
    background-color: #8897AA;
}

.modal-secondary .modal-content {
    border-color: #c8ced3;
}

.modal-secondary .modal-header {
    color: #fff;
    background-color: #c8ced3;
}

.modal-success .modal-content {
    border-color: #05D3A5;
}

.modal-success .modal-header {
    color: #fff;
    background-color: #05D3A5;
}

.modal-info .modal-content {
    border-color: #63c2de;
}

.modal-info .modal-header {
    color: #fff;
    background-color: #63c2de;
}

.modal-warning .modal-content {
    border-color: #ffc107;
}

.modal-warning .modal-header {
    color: #fff;
    background-color: #ffc107;
}

.modal-danger .modal-content {
    border-color: #FF6663;
}

.modal-danger .modal-header {
    color: #fff;
    background-color: #FF6663;
}

.modal-light .modal-content {
    border-color: #f0f3f5;
}

.modal-light .modal-header {
    color: #fff;
    background-color: #f0f3f5;
}

.modal-dark .modal-content {
    border-color: #2f353a;
}

.modal-dark .modal-header {
    color: #fff;
    background-color: #2f353a;
}

.lightview-responsive {
	max-height: 85vh;
	overflow: auto;
}

.modal.ligthview {
	z-index: 1102;
}

.modal.confirm {
	z-index: 1103;
}

.modal.message {
	z-index: 1104;
}

.modal-body-scroll {
	max-height: calc(100vh - 280px);
	overflow: auto;
}

.modal-content .modal-body div .modal-footer {
	margin-left: -15px;
	margin-right: -15px;
}

.modal.show {
	display: block;
}

.modal-full {
	max-width: 100%;
	max-height: 100%;
	margin: unset;
}

.modal-full .lightview-responsive {
	max-height: 100vh;
	height: 100%;
}

.modal-full .modal-body-scroll {
	max-height: calc(100vh - 180px);
	min-height: calc(100vh - 180px);
}

.modal-full .modal-body-full {
	max-height: calc(100vh - 105px);
	min-height: calc(100vh - 105px);
}

.modal-full .modal-content {
	height: 100vh;
	width: 100vw;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
	}

    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
	}

    .modal-sm {
        max-width: 300px;
	}

	.modal-full.modal-dialog{
		max-width: 100vw;
		margin: unset;
	}
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
	}

	.modal-xl {
        max-width: 900px;
	}

	.modal-full.modal-dialog{
		max-width: 100vw;
		margin: unset;
	}
}

@media (min-width: 1199.99px) {
    .modal-lg {
        max-width: 1140px;
	}

	.modal-xl {
        max-width: 1340px;
	}

	.modal-full.modal-dialog{
		max-width: 100vw;
		margin: unset;
	}
}
