.modal-div {
  padding: 1.5rem 2.5rem 1rem 2.5rem;
  position: fixed;
  top: 0;
  right: -550px; /* initial position, off-screen to the right */
  width: 550px;
  height: 100vh;
  background: #e3e4e5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
}

.modal-div {
  max-height: 650px;
  overflow: auto;
  overflow: overlay;
}

.modal-div::-webkit-scrollbar {
  width: 0.2rem;
  height: 0.5rem;
}

.modal-div::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: white;
}

.modal-div .navbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.modal-div .navbar .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-div .navbar .left svg {
  height: 15px;
  width: 15px;
  cursor: pointer;
}

.modal-div .navbar span {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  color: #353535;
}

.modal-div .navbar .right {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  color: #353535;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Open button */
.open-modals {
  cursor: pointer;
}

/* Modal open state */
.modal-div.opened {
  right: 0; /* move modal on-screen */
}

.modal-div .section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  border-radius: 13px;
  margin-bottom: 2.5rem;
}

/* Responsive styles for mobile view */
@media only screen and (max-width: 768px) {
  .modal-div {
    width: 100%; /* make modal full-width on mobile */
    right: -100%; /* adjust initial position for mobile */
  }
  .modal-div.open {
    right: 0; /* move modal on-screen */
  }
  .modal-content {
    padding: 10px; /* reduce padding on mobile */
  }

  .modal-div .download-btn p {
    font-size: 12px;
  }

  .modal-div .download-btn svg {
    height: 12px;
    width: 12px;
  }
}

.modal-div .section .bg-img {
  background-image: url("../../assets/images/receipt-header.png");
  background-position: bottom;
  background-size: cover;
  background-repeat: round;
  width: 100%;
  margin-bottom: 2rem;
  height: 120px;
}

.modal-div .section .bg-img .nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.modal-div .section .bg-img .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-div .section .bg-img .left .logo,
.modal-div .section .bg-img .right .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.modal-div .section .bg-img .right {
  display: block;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.modal-div .section .bg-img .left .logo img,
.modal-div .section .bg-img .right .logo img {
  height: 25px;
  width: 25px;
}

.modal-div .section .bg-img .left .logo h1 {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 25px;
  display: flex;
  letter-spacing: -0.02em;
  justify-content: center;
  align-items: center;
  color: #454444;
}

.modal-div .section .bg-img .left .logo h1 span {
  color: var(--blackColor);
  font-weight: bold;
}

.modal-div .section .bg-img .left .slip {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-size: 6px;
  line-height: 100%;
  letter-spacing: -0.04em;
  background-color: #fff;
  padding: 0;
  color: #454444;
}

.modal-div .section .bg-img .right {
  display: flex;
  /* gap: 2px; */
}

.modal-div .section .bg-img .right h1 {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-size: 10px;
  line-height: 81%;
  letter-spacing: 0em;
  color: #ffffff;
  margin: auto;
}

.modal-div .section .bg-img .right h1 span {
  font-size: 8px;
  display: flex;
  align-items: flex-end;
  float: right !important;
  text-align: right !important;
}

.modal-div section {
  padding: 0 2rem 1rem 2rem;
}

.modal-div section .receipt-info {
  margin-bottom: 1rem;
}

.modal-div section .receipt-info .info {
  display: flex;
  justify-content: space-between;
}

.modal-div section .receipt-info .info .info-record {
  display: flex;
  gap: 5px;
}

.modal-div section .receipt-info .info .info-record p {
  display: flex;
  margin: auto;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  color: rgba(51, 51, 51, 0.72);
}

.modal-div section .receipt-info .info .info-record .line {
  border: 0.1px solid #333333;
  width: 30px;
  height: 0;
  margin: auto;
}

.modal-div section .receipt-info .info .info-record h1 {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  line-height: 11px;
  color: #333333;
  margin: auto;
}

.modal-div section .divider {
  width: 100%;
  border: 1px dashed #333333;
  margin-bottom: 1rem;
}

/* table */

.table-container {
  width: 100%;
  max-height: 200px;
  border-radius: 0.6rem;
  overflow: auto;
  overflow: overlay;
  margin-bottom: 1rem;
}

.table-container::-webkit-scrollbar {
  width: 0.2rem;
  height: 0.2rem;
}

.table-container::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: white;
}

th {
  background: #d82a4e !important;
  /* border: 3px solid blue; */
}

.table-container .wraper table tr th {
  font-size: 11px;
  font-family: "Montserrat";
  padding: 4px;
  color: white;
}

.table-container .wraper table .data td {
  font-size: 9px;
  text-align: center;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  color: #42526d;
  height: 25px;
  border: solid;
}

.reciept-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  width: 100%;
}

.reciept-footer p {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  line-height: 9px;
  color: #42526d;
}

.modal-div .download-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #136e12;
  border-radius: 7px;
  padding: 12px 16px;
  gap: 10px;
  width: 50%;
  cursor: pointer;
  margin: auto;
  color: #fff;
}
  
  /* joelle added */
  .modal-div-exam {
    padding: 1.5rem 2.5rem 1rem 2.5rem;
    position: fixed;
    top: 0;
    right: -550px; /* initial position, off-screen to the right */
    width: 550px;
    height: 100vh;
    background: #e3e4e5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
  }
  
  .modal-div-exam {
    max-height: 650px;
    overflow: auto;
    overflow: overlay;
  }
  
  .modal-div-exam::-webkit-scrollbar {
    width: 0.2rem;
    height: 0.5rem;
  }
  
  .modal-div-exam::-webkit-scrollbar-thumb {
    border-radius: 0.5rem;
    background-color: white;
  }
  
  .modal-div-exam .navbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
  }
  
  .modal-div-exam .navbar .left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .modal-div-exam .navbar .left svg {
    height: 15px;
    width: 15px;
    cursor: pointer;
  }
  
  .modal-div-exam .navbar span {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    color: #353535;
  }
  
  .modal-div-exam .navbar .right {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    color: #353535;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  /* Open button */
  .open-modals-exam {
    cursor: pointer;
  }
  
  /* Modal open state */
  .modal-div-exam.opened {
    right: 0; /* move modal on-screen */
  }
  
  .modal-div-exam .section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    border-radius: 13px;
    margin-bottom: 2.5rem;
  }
  
  /* Responsive styles for mobile view */
  @media only screen and (max-width: 768px) {
    .modal-div-exam {
      width: 100%; /* make modal full-width on mobile */
      right: -100%; /* adjust initial position for mobile */
    }
    .modal-div-exam.open {
      right: 0; /* move modal on-screen */
    }
    .modal-content {
      padding: 10px; /* reduce padding on mobile */
    }
  
    .modal-div-exam .download-btn p {
      font-size: 12px;
    }
  
    .modal-div-exam .download-btn svg {
      height: 12px;
      width: 12px;
    }
  }
  
  .modal-div-exam .section .bg-img {
    background-image: url("../../assets/images/receipt-header.png");
    background-position: bottom;
    background-size: cover;
    background-repeat: round;
    width: 100%;
    margin-bottom: 2rem;
    height: 120px;
  }
  
  .modal-div-exam .section .bg-img .nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }
  
  .modal-div-exam .section .bg-img .left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .modal-div-exam .section .bg-img .left .logo,
  .modal-div-exam .section .bg-img .right .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
  }
  
  .modal-div-exam .section .bg-img .right {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
  }
  
  .modal-div-exam .section .bg-img .left .logo img,
  .modal-div-exam .section .bg-img .right .logo img {
    height: 25px;
    width: 25px;
  }
  
  .modal-div-exam .section .bg-img .left .logo h1 {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 25px;
    display: flex;
    letter-spacing: -0.02em;
    justify-content: center;
    align-items: center;
    color: #454444;
  }
  
  .modal-div-exam .section .bg-img .left .logo h1 span {
    color: var(--blackColor);
    font-weight: bold;
  }
  
  .modal-div-exam .section .bg-img .left .slip {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-size: 6px;
    line-height: 100%;
    letter-spacing: -0.04em;
    background-color: #fff;
    padding: 0;
    color: #454444;
  }
  
  .modal-div-exam .section .bg-img .right {
    display: flex;
    /* gap: 2px; */
  }
  
  .modal-div-exam .section .bg-img .right h1 {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-size: 10px;
    line-height: 81%;
    letter-spacing: 0em;
    color: #ffffff;
    margin: auto;
  }
  
  .modal-div-exam .section .bg-img .right h1 span {
    font-size: 8px;
    display: flex;
    align-items: flex-end;
    float: right !important;
    text-align: right !important;
  }
  
  .modal-div-exam section {
    padding: 0 2rem 1rem 2rem;
  }
  
  .modal-div-exam section .receipt-info {
    margin-bottom: 1rem;
  }
  
  .modal-div-exam section .receipt-info .info {
    display: flex;
    justify-content: space-between;
  }
  
  .modal-div-exam section .receipt-info .info .info-record {
    display: flex;
    gap: 5px;
  }
  
  .modal-div-exam section .receipt-info .info .info-record p {
    display: flex;
    margin: auto;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    color: rgba(51, 51, 51, 0.72);
  }
  
  .modal-div-exam section .receipt-info .info .info-record .line {
    border: 0.1px solid #333333;
    width: 30px;
    height: 0;
    margin: auto;
  }
  
  .modal-div-exam section .receipt-info .info .info-record h1 {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 11px;
    color: #333333;
    margin: auto;
  }
  
  .modal-div-exam section .divider {
    width: 100%;
    border: 1px dashed #333333;
    margin-bottom: 1rem;
  }
  
  
  .modal-div-exam .download-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #136e12;
    border-radius: 7px;
    padding: 12px 16px;
    gap: 10px;
    width: 50%;
    cursor: pointer;
    margin: auto;
    color: #fff;
  }
