.modal-open {
  overflow: hidden;
}

.pdf-frame-wrapper {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 960px;
  height: 70vh;
}

.pdf-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile-specific PDF card styling */
.pdf-slide-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.pdf-mobile-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
}

.pdf-icon svg {
  width: 64px;
  height: 64px;
  color: #1896e0;
}

.pdf-title {
  font-size: 1.1rem;
  color: #333;
  word-break: break-word;
}

.pdf-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdf-mobile-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 500;
}
.pdf-mobile-actions .btn svg {
  width: 18px;
  height: 18px;
}

/* Slider slide */
.pdf-slide {
  cursor: pointer;
  text-align: center;
}

.pdf-slide-title {
  font-size: 14px;
  margin-top: 6px;
}

.pdfSwiper {
  height: auto;
}
.pdfSwiper .pdf-modal__swiper-wrapper {
  height: auto;
}
.pdfSwiper .swiper-slide {
  flex-direction: column;
}
@media (max-width: 768px) {
  .pdfSwiper .swiper-slide {
    justify-content: flex-start;
    padding-block: 1rem;
  }
}

.pdf-toolbar {
  background-color: #f8f9fa;
  /* border-radius: 12px; */
  gap: 1rem;
}

.pdf-counter {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #495057;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pdf-date-wrapper {
  position: relative;
  width: 180px;
}

.pdf-date-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.pdf-date-picker {
  padding-left: 36px;
  text-align: center;
  border-radius: 20px;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .pdf-toolbar {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between !important;
    padding: 1rem !important;
    gap: 0.625rem;
  }
}
.pdf-modal__date-picker {
  cursor: pointer;
  max-width: 200px;
  padding-left: 36px;
  text-align: center;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.pdf-modal__nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  width: 100%;
  position: absolute;
  top: 40%;
  z-index: 99;
}
.pdf-modal__button {
  background: #1896e0;
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  height: 3rem;
  width: 3rem;
  transition: background-color 0.25s ease, transform 0.15s ease;
}
.pdf-modal__button:hover {
  background: #ff8f00;
}
.pdf-modal__button:active {
  transform: scale(0.96);
}
.pdf-modal__button:focus-visible {
  outline: 2px solid #ff8f00;
  outline-offset: 2px;
}
.pdf-modal__button svg {
  margin-left: -7px;
  fill: #fff;
}
@media (max-width: 768px) {
  .pdf-modal__button svg {
    margin-left: -10px;
  }
}
.pdf-modal__button--prev {
  padding-left: 1.1rem;
}
.pdf-modal__button--next {
  padding-right: 1.1rem;
}
.pdf-modal__button.swiper-button-disabled {
  cursor: auto;
  opacity: 0.35;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-frame-wrapper {
    height: 50vh;
  }
  .pdf-modal__nav {
    padding: 0.5rem;
    padding-inline: 1.25rem;
  }
  .pdf-modal__button {
    height: 2.5rem;
    width: 2.5rem;
    font-size: 0.75rem;
  }
}
.pdf-canvas-container canvas {
  max-width: 100%;
}

.ui-datepicker {
  margin-top: 0.5rem;
  left: auto !important;
  right: 0 !important;
  transform: translateX(-38%);
}

@media (max-width: 768px) {
  .ui-datepicker {
    left: 58% !important;
    transform: translateX(-50%);
  }
}