/* Popup background */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

/* Popup box */
.popup {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  animation: popupFade 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
}

/* Title bar */
.popup-header {
  background: #1E3A8A;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.popup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

/* Body */
.popup-body {
  padding: 20px;
  overflow-y: auto;
  text-align: justify;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

.popup table {
  width: 100%px;
  table-layout: auto;
  margin: 10px;
}

.popup-img {
  float: center;
  width: 200px;
  height: auto;
  margin: 0 15px 10px 0;
  border-radius: 6px;
}

.table-responsive {
  width: 100%;
  overflow-x: hidden;
  /* scroll disable */
}

.table-responsive table {
  width: 100%;
  table-layout: fixed;
  /* column width equal ho jaayega */
}

.table-responsive th,
.table-responsive td {
  word-wrap: break-word;
  white-space: normal !important;
  /* text wrap ho jaaye */
}

@media (max-width: 768px) {
  .popup table {
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Animation */
@keyframes popupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}