body {
  padding-top: env(safe-area-inset-top) !important;
  padding-left: env(safe-area-inset-left) !important;
  padding-right: env(safe-area-inset-right) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(12px);
  background-color: transparent;
}

.loader img {
  width: 20%;
  height: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

body[data-theme-version='dark'] .swal2-popup.swal2-toast {
  background: #212130;
}

/*
* DataTables custom styles
* This section customizes the appearance of DataTables, including the control column and child rows.
*/
table.dataTable tbody td.dt-control {
  text-align: center;
  cursor: pointer;
}

table.dataTable tbody td.rotate-icon {
  transition: transform 0.3s ease;
}

table.dataTable tbody .rotate-icon.open {
  transform: rotate(90deg);
}

body[data-theme-version='light'] table.dataTable tbody td.dt-control:before {
  border-left: 10px solid #000000;
}

body[data-theme-version='dark'] table.dataTable tbody td.dt-control:before {
  border-left: 10px solid #ffffff;
}

table.dataTable tbody tr.dt-hasChild td.dt-control:before {
  border-top: 10px solid rgba(0, 0, 0, 0.5);
  border-left: 5px solid transparent;
  border-bottom: 0px solid transparent;
  border-right: 5px solid transparent;
}

table.dataTable tfoot:empty {
  display: none;
}
