.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 .viewer-modal-close {
    position: absolute;
    z-index: 999999;
    right: 12px;
    top: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
    padding: 0;
  }
  #viewer_modal .viewer-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
  }
  #viewer_modal .viewer-modal-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
#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;
    position: relative;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }

/* Booking financial summary cards (admin + customer) */
.fin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0.5rem;
}
.fin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 118px;
  padding: 14px 10px 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fin-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.fin-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a6268;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}
.fin-card-amount {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: #212529;
  word-break: break-word;
  width: 100%;
}
.fin-card-note {
  font-size: 0.68rem;
  color: #868e96;
  min-height: 1.15em;
  margin-top: 5px;
  line-height: 1.2;
  width: 100%;
}
.fin-card-blue   { background: #e8f4fd; border: 1px solid #bee5eb; }
.fin-card-yellow { background: #fff8e6; border: 1px solid #ffeeba; }
.fin-card-green  { background: #e8f5e9; border: 1px solid #c3e6cb; }
.fin-card-primary{ background: #e7f1ff; border: 1px solid #b8daff; }
.fin-card-red    { background: #fdecea; border: 1px solid #f5c6cb; }
.fin-progress-wrap {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}
.fin-progress-bar {
  height: 14px;
  border-radius: 8px;
  background: #e9ecef;
  overflow: hidden;
}
.fin-progress-bar .progress-bar {
  border-radius: 8px;
  transition: width 0.5s ease;
}
@media (max-width: 1199px) {
  .fin-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .fin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fin-card { min-height: 108px; padding: 12px 8px 10px; }
  .fin-card-amount { font-size: 0.95rem; }
  .fin-card-label { font-size: 0.65rem; min-height: 2.2em; }
}
@media (max-width: 400px) {
  .fin-summary-grid { grid-template-columns: 1fr; }
  .fin-card { min-height: auto; flex-direction: row; flex-wrap: wrap; text-align: left; padding: 12px 14px; }
  .fin-card-label { min-height: auto; width: 100%; justify-content: flex-start; margin-bottom: 4px; }
  .fin-card-amount { width: auto; flex: 1; }
  .fin-card-note { width: 100%; margin-top: 2px; }
}