.btn-loader {
  position: absolute;
  height: auto;
  z-index: 2;
  left: 50%;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 1;
  display: flex;
}
.btn-loader div {
  display: inline-block;
  float: none;
  vertical-align: baseline;
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  margin: 2px;
  opacity: 0.4;
  border-radius: 7px;
  background-color: hsla(0, 0%, 100%, 0.9);
  transition: background 0.2s;
  -webkit-animation: 1s infinite tdbForm-btn-d;
  animation: 1s infinite tdbForm-btn-d;
}
.btn-loader div:nth-child(3n + 2) {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}
.btn-loader div:nth-child(3n + 3) {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
@keyframes tdbForm-btn-d {
  0%,
  20%,
  to {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
/* x-panel  */
.w-35 {
  width: 35% !important;
}
.x_panel {
  position: relative;
  width: 100%;
  padding: 10px 5px;
  display: inline-block;
  background: #fff;
  border: 1px solid #e6e9ed;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
  opacity: 1;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border-radius: 10px;
}

.x_title {
  border-bottom: 2px solid #e6e9ed;
  padding: 1px 5px 6px;
  margin-bottom: 10px;
}

.x_title .filter {
  width: 40%;
  float: right;
}
.panel_toolbox {
  float: right;
}

.panel_toolbox > li {
  float: left;
  cursor: pointer;
}

.panel_toolbox > li > a {
  padding: 5px;
  color: #c5c7cb;
  font-size: 14px;
}

.panel_toolbox > li > a:hover {
  background: #f5f7fa;
}

.x_title h2 {
  margin: 5px 0 6px;
  float: left;
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 400;
}

.x_title h2 small {
  margin-left: 10px;
}

.x_title span {
  color: #bdbdbd;
}

.x_content {
  padding: 0px 12px 6px !important;
  position: relative;
  width: 100%;
  float: left;
  clear: both;
  margin-top: 5px;
}

.x_content h4 {
  font-size: 16px;
  font-weight: 500;
}

/* x-panel  */
/* pop up design  */
.popup-outer {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: auto;
  padding-bottom: 50px;
  /* display: flex;
    align-items: center;
    justify-content: center;  */
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.2);
  transition: opacity 0.2s 0s ease-in-out, transform 0.2s 0s ease-in-out;
}

.popup-outer.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.popUpContainer {
  max-width: 700px;
  width: 95%;
  margin: 70px auto;
  border-radius: 5px;
}

.hideIt {
  transform: scale(0.9);
  opacity: 0.4;
}

.hideItaprent {
  opacity: 0;
}

/* pop up design  */
.wd-50 {
  width: 50px;
  max-width: 50px;
  min-width: 50px;
}

.ln_solid {
  border-top: 1px solid #e5e5e5;
  color: #ffffff;
  background-color: #ffffff;
  height: 1px;
  margin: 20px 0;
}
.errorlabel {
  color: #dc3545;
  font-weight: bold;
  animation: shake 0.5s 1;
  text-align: center;
}
.successMsg {
  color: #26b99a !important;
}
.delet_tr {
  animation: dlttr 2s cubic-bezier(0.075, 0.82, 0.165, 1) 0s 1 forwards !important;
  animation-delay: 0.3s !important;
}
.wrap-text {
  max-width: 150px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  white-space: normal; /*  //this is the one that gets you all the time */
}
.pass-btn {
  width: 50px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}
.pulse-btn {
  position: relative;
  overflow: hidden;
}
.pulse-btn span.btn-pulse {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  background: -webkit-radial-gradient(
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 70%
  );
  background: -o-radial-gradient(
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 70%
  );
  background: radial-gradient(
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  animation-name: expend;
  animation-duration: 0.9s;
  animation-timing-function: ease-out;
}
.blue-pulse-btn span.btn-pulse {
  background: rgba(0, 159, 251, 0.235);
}

@keyframes dlttr {
  0% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
  15% {
    transform: translate(-150px, 0px);
  }
  100% {
    opacity: 0.7;
    transform: translate(130%, 0px);
  }
}
/* animation  */
.invalid {
  background-color: #fff;
  border-color: #d43f3a;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(212, 63, 58, 0.1);
}

.table-responsive div.dataTables_wrapper div.dataTables_filter input,
.table-responsive div.dataTables_wrapper div.dataTables_filter select,
.table-responsive div.dataTables_wrapper div.dataTables_length input,
.table-responsive div.dataTables_wrapper div.dataTables_length select {
  padding-right: 22px !important;
}

.tdb-table-responsive {
  overflow: hidden;
}

@media screen and (max-width: 810px) {
  .tdb-table-responsive thead {
    display: none;
  }
  .tdb-table-responsive,
  .tdb-table-responsive tbody,
  .tdb-table-responsive tr,
  .tdb-table-responsive td {
    display: block;
    width: 100% !important;
  }
  .tdb-table-responsive tr {
    margin-bottom: 15px;
  }
  .tdb-table-responsive tr {
    border: 2px solid #dee2e685;
  }
  .tdb-table-responsive tbody tr td {
    text-align: right;
    position: relative;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    align-items: center; 
    border-bottom: 2px solid rgb(222 222 222 / 74%) !important;
  }
  .tdb-table-responsive tbody tr td div {
    margin-right: 5px;
  }
  .tdb-table-responsive tbody tr td input {
    width: 50%;
  }
  .tdb-table-responsive tbody tr td:last-child:not(.td-right) {
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
  }
  .tdb-table-responsive tbody tr td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
  }
}
/* modal design  */
.modal-body {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem;
}
.modal-body h5 {
  font-weight: 700;
  font-size: calc(17px + (25 - 17) * ((100vw - 320px) / (1920 - 320)));
  margin-bottom: calc(15px + (20 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.modal-body p {
  font-size: 16px;
}

.modal-body .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
}
.m-t-20 {
  margin-top: 20px !important;
}
.text-center {
  text-align: center !important;
}
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  /* -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; */
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
}
.btn-white {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.btn-danger {
  background: #f62d51 !important;
  border: 1px solid #f62d51 !important;
  color: #fff !important;
}
.modal-body .button-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: end;
}

.modal-body .btn--no {
  margin-left: auto;
  margin-right: 15px;
  color: #fff !important;
  background-color: #6c757d !important;
}

.delete-modal {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background: rgb(0 0 0 / 46%);
  animation: fadeIn 0.3s 1;
  animation-fill-mode: forwards;
  font-size: 14px;
  overflow-x: hidden;
  font-family: Nunito, sans-serif, sans-serif;
  color: #2b2b2b;
}
.delete-modal-dialog {
  transform: translateY(-50px);
  opacity: 0;
  max-width: 500px;
  margin: 1.75rem auto;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - 1rem);
  position: relative;
  width: auto;
  pointer-events: none;
  animation: fadeInModal 0.4s 0.3s 1;
  animation-fill-mode: forwards;
}
.delete-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;
  padding: 1rem;
}

.delete-modal .modal-body > h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0 0;
}
.delete-modal .modal-body .btn {
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
}

.hidemodal {
  opacity: 1;
  animation: fadeOut 0.3s 0.15s 1;
  animation-fill-mode: forwards;
}
.hidemodal .delete-modal-dialog {
  opacity: 1;
  transform: translateY(0px);
  animation: fadeOutModal 0.4s 0s 1;
  animation-fill-mode: forwards;
}
/* modal design  */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: translateY(0px);
  }
  to {
    opacity: 0;
    transform: translateY(-50px);
  }
}
/* modal design  */
#allowance_days:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
  padding: 0px 4px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-top: 0px;
  padding-bottom: 0px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
}
 

div.dataTables_wrapper div.dataTables_filter input{
    width: 100%;
    max-width: calc(100% - 45px);
}

.copy-btn-wrapper {
  position: relative;
  display: inline-block;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: #e0e0e0;
}

.copy_tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.copy-btn-wrapper:hover .copy_tooltip {
  opacity: 1;
}


.delete-modal{  
    z-index: 9999950;
}

.popUpContainer {
    position: absolute; 
    top: 70px;      /* initial position */
    left: 50%;      /* center horizontally */
    transform: translateX(-50%); /* keep centered initially */
    margin: 0;      /* remove auto margin */
    z-index: 100000;
    cursor: default;
}

.x_title {
    cursor: move; /* show move cursor on header */
    user-select: none; /* prevent text selection while dragging */
}

table td{
    vertical-align: middle;
}

.table-responsive .table tr td {
  padding: 10px 0px 10px 12px ; 
}