.toast{
  display: none;
  min-width: 20vw
}
.toast.show {
    display: block;
    opacity: 1;
    position: fixed;
    z-index: 99999999;
    margin: 20px;
    right: 0;
    top: 3.5rem;
}
.swal2-container{
    z-index: 99999999;
}
#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    color: #000000cf;
    font-style: italic;
}
 .modal-dialog.large {
    width: 80% !important;
    max-width: unset;
  }
  .modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
  }
  #viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}
#viewer_modal .modal-dialog {
        width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}
  #viewer_modal .modal-content {
       background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }

  /* Global form and component polish for inner pages */
  .btn{border-radius:8px}
  .card, .modal-content{border-radius:12px}
  input.form-control, select.form-control, textarea.form-control{border-radius:8px;border:1px solid #e6eef8;padding:8px}
  label{font-weight:600;color:#1f2937}
  .table thead th{background:#f8fafc}

  /* Sidebar collapsed state */
  .sidebar-collapsed .main-sidebar{transform:translateX(-260px);transition:transform .25s ease}
  @media(min-width:768px){.sidebar-collapsed .main-sidebar{transform:none}}

  /* subtle button hover micro-interactions */
  .btn:hover{transform:translateY(-2px);transition:all .12s ease}

  /* focus outlines for accessibility */
  :focus{outline:3px solid rgba(99,102,241,0.15);outline-offset:2px}

  /* Skip link visible on focus */
  .skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
  .skip-link:focus, .skip-link:active{position:static;width:auto;height:auto;margin:8px;padding:8px;background:#fff;color:#111;border-radius:6px;z-index:99999;box-shadow:0 6px 18px rgba(2,6,23,0.2)}

  /* Tables and images responsiveness */
  .table-responsive{overflow-x:auto}
  img{max-width:100%;height:auto}

  /* Ensure content isn't cut off under fixed header on very small screens */
  @media(max-width:480px){
    .content-wrapper{padding-top:8px}
    .main-header .navbar{padding:6px}
  }