/* Modal View */

body.modal-open {
	
    padding-right: 0 !important;
	
}


header.fixed-top {
	
    padding-right: 0 !important;
	
}


.modal-header {

	margin:0px ;
	padding: 2rem 2rem !important;
	border-bottom: 1px solid #ff7700;
	height:60px;
	background:#FF7700 !important;
	border-top-left-radius:20.5px;
	border-top-right-radius:20.5px;
	display: flex;
	justify-content: start;
    align-items: center;

}


.modal-header-label {

	display: flex;
	width:100%;
	margin: 0;
	font-weight: 500;
	font-size: 20px;
	font-family: 'Montserrat';
	color:#FFF;
	
}


.modal-search {
	
	display: block;
	padding:0.6rem 0.75rem;
	border: 1px solid #bcc1cb;
	color: #111;
	margin: 1rem 0 1rem 0;
	height: 45px;
	width:200px;
	flex: 1;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	background-color: #fff;
	background-clip: padding-box;
	appearance: none;
	border-radius: .375rem;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	box-shadow: none;
	outline: none;
  
}


.modal-form {

	display: flex;
	flex-grow: 1;
	flex-direction: column;
	
}


.modal-body {

	display: flex;
	flex-grow: 1;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
	padding: 1rem 2rem 1rem 2rem !important;
	overflow-y: auto;

}


.modal-dialog {
	
	max-width: 50vw;
	width: 100%;
	height: 98%;
	margin: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	
}


.modal-dialog-centered {
	
    display:flex;
	align-items:center;
	justify-content:center;
	min-height:calc(100% - var(--bs-modal-margin)*2)
	
}


.modal-config {
	
	max-width:100%;
	min-height:560px;
	border-radius: 23px;
	border:0px;
	
}


.modal .modal-content {
	
	border-radius:20.5px;
	border:1px solid #666;
	
}


.modal-content {
	
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	min-width: 320px;
	min-height: 320px;
	max-width: 50vw;
	background-color: #FFF;
	overflow-x: hidden;
	box-sizing: border-box;
	
}


.modal-table-wrapper {
	
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}


.modal .table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}


.modal .table th,
.modal .table td {
	
  padding: 8px;
  white-space: nowrap; /* Or normal if you want wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate if needed */
  box-sizing: border-box;
  
}


.modal-row {
	
	display:flex;
	flex-direction: row;
	justify-content:center;
	justify-items:center;
	
}


.modal-footer {
	
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	height:60px;
	border-top: 1px solid #444;
	border-bottom-left-radius:20.5px;
	border-bottom-right-radius:20.5px;
	margin:0;
	
	
}


.modal-footer>* {
  margin:0;
}


/* Modal Custom Animation */

.modal.custom-fade-only .modal-dialog {
	
  opacity: 0;
  transition: opacity 0.5s ease;
  
}


.modal.custom-fade-only.show .modal-dialog {
	
  opacity: 1;
  
}


/* Modal Overwrite Settings */

.modal-config-processing {
	
	max-width:500px;
	border-radius:23px;
	
}


.modal-background-body-xxl {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	min-width: 50vw;
	box-sizing: border-box;
  
}


.modal-background-body-xl {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	min-width: 45vw;
	box-sizing: border-box;
  
}


.modal-background-body-lg {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	min-width: 40vw;
	box-sizing: border-box;
  
}


.modal-background-body-md {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	min-width: 35vw;
	box-sizing: border-box;
  
}


.modal-background-body-sm {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	width: 620px;
	box-sizing: border-box;
  
}


.modal-background-body-sm-flex {
	
	display: flex;
	flex-direction: column;
	min-height: 485px;
	width: 620px;
	box-sizing: border-box;
  
}


.modal-background-body-vs {
	
	display: flex;
	flex-direction: column;
	height: 80vh;
	max-width: 420px;
	box-sizing: border-box;
  
}


.modal-background-body-vs-flex {
	
	display: flex;
	flex-direction: column;
	min-height: 485px;
	width: 420px;
	box-sizing: border-box;
  
}


.modal-background-body-1line {
	
	display: flex;
	flex-direction: column;
	min-height: 180px;
	max-width: 420px;
	box-sizing: border-box;
  
}


.modal-input-body {
	
	flex: 1 1 auto;
	overflow-y: auto;
	height: 100%;
	padding: 0;     
	box-sizing: border-box;
	
}


.modal-footer {
	
	flex-shrink: 0;     
	border-top: 1px solid #AAA;
	padding: 0 0.5rem;
  
}


/* Sliding Panel Inside Modal Body */

.modal-content {
	
  position: relative;
  
}


.modal-slide-header {
	
	padding: 2rem;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	background: var(--bs-body-bg, #fff);
	height:60px;
  
}


.modal-slide-toolbar {
	
	border-bottom: 1px solid var(--bs-border-color, #dee2e6) !important;
  
}


.modal-slide-body {
	
	flex: 1 1 auto;
	overflow-y: auto;
  
}


.modal-slide-panel {
	
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 450px;
	max-width: 90%;
	background: #fff;
	box-shadow: 0 0 24px rgba(0,0,0,.2);
	border-left: 1px solid #dee2e6;
	transform: translateX(100%);
	transition: transform .25s ease;
	z-index: 30;
	
}


.modal-slide-panel.active {
	
  transform: translateX(0);
  
}


.modal-slide-overlay {
	
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.25);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
	z-index: 20;
	
}


.modal-slide-overlay.active {
	
	opacity: 1;
	visibility: visible;
  
}


/* Loading Roller */

.loading-roller {
	
  display: inline-block;
  position:absolute;
  top:calc(51% - 40px);
  left:calc(50% - 40px);
  width: 80px;
  height: 80px;
  
}


.loading-roller div {
	
  animation: loading-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
  
}


.loading-roller div:after {
	
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #444;
  margin: -4px 0 0 -4px;
  
}


.loading-roller div:nth-child(1) {
	
  animation-delay: -0.036s;
  
}


.loading-roller div:nth-child(1):after {
	
  top: 63px;
  left: 63px;
  
}


.loading-roller div:nth-child(2) {
	
  animation-delay: -0.072s;
  
}


.loading-roller div:nth-child(2):after {
	
  top: 68px;
  left: 56px;
  
}


.loading-roller div:nth-child(3) {
	
  animation-delay: -0.108s;
  
}


.loading-roller div:nth-child(3):after {
	
  top: 71px;
  left: 48px;
  
}


.loading-roller div:nth-child(4) {
	
  animation-delay: -0.144s;
  
}


.loading-roller div:nth-child(4):after {
	
  top: 72px;
  left: 40px;
  
}


.loading-roller div:nth-child(5) {
	
  animation-delay: -0.18s;
  
}


.loading-roller div:nth-child(5):after {
	
  top: 71px;
  left: 32px;
  
}


.loading-roller div:nth-child(6) {
	
  animation-delay: -0.216s;
  
}


.loading-roller div:nth-child(6):after {
	
  top: 68px;
  left: 24px;
  
}


.loading-roller div:nth-child(7) {
	
  animation-delay: -0.252s;
  
}


.loading-roller div:nth-child(7):after {
	
  top: 63px;
  left: 17px;
  
}


.loading-roller div:nth-child(8) {
	
  animation-delay: -0.288s;
  
}


.loading-roller div:nth-child(8):after {
	
  top: 56px;
  left: 12px;
  
}


@keyframes loading-roller {
	
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
  
}


/* Loading Tri Ring */

.loader-body {
	
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  
}


.loader-tri-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #444 #444 transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}


.loader-tri-ring::after,
.loader-tri-ring::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #FF3D00 #FF3D00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}


.loader-tri-ring::before {
  width: 32px;
  height: 32px;
  border-color: #444 #444 transparent transparent;
  animation: rotation 1.5s linear infinite;
}
  
  
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 


@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}


/* Processing View */

#ProcessingModal + .modal-backdrop {
	
    background-color: rgba(0, 0, 0, 0.5) !important;
	
}


#ProcessingModal .modal-content {
	
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
	
}


#ProcessingModal .modal-dialog {
	
    margin: 0 auto;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	
}


#ProcessingModal.modal-static .modal-dialog {
	
    transform: none !important;
	
}


#ProcessingModal.modal-static .processing-view-div {
	
    animation: modalPulse 0.5s ease;
    animation-delay: 50ms;
	
}


@keyframes modalPulse {
	
  0%   { transform: scale(1); }
  40%  { transform: scale(1.02); }
  100% { transform: scale(1); }
  
}


.processing-view-div {
	
	height: 198px; 
	width: 288px;
	background: #FDFDFD;
	border-radius: 15px;
	border: 1px solid #BBB;
	display: flex;
	align-items: center;
	justify-content: center;
	
}



@media (max-width: 768px) {
	
	.modal {
		
		padding-left:17px !important;
		
	}
	
	.modal-dialog {
	  max-width: 95vw;
	}
	
	.modal-content {
	  max-width: 95vw;
	  height: 75vh;
	}
	
    .modal-background-body-xxl {
        width: 95vw;
        min-width: unset;
        height: auto;
    }

    .modal-background-body-xl {
        width: 95vw;
        min-width: unset;
        height: auto;
    }

    .modal-background-body-lg {
        width: 90vw;
        min-width: unset;
        height: auto;
    }

    .modal-background-body-md {
        width: 85vw;
        min-width: unset;
        height: auto;
    }

    .modal-background-body-sm,
    .modal-background-body-sm-flex {
        width: 90vw;
        height: auto;
        min-height: unset;
    }

    .modal-background-body-vs {
        width: 90vw;
        max-width: unset;
        height: auto;
    }
	
}

