.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  top: 0px;
}
.pdf-modal.is-open {
  display: block;
}
.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.pdf-modal__dialog {
  position: relative;
  width: 95vw;
  height: 90vh;
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.pdf-modal__toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.pdf-modal__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pdf-modal__tool-btn {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  padding: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.pdf-modal__tool-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}
.pdf-modal__tool-btn:hover {
  background: #000;
  color: white;
}

.pdf-modal__tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdf-modal__page-info {
  font-size: 12px;
  color: #111;
}

.pdf-modal__close {
  position: relative;
  z-index: 4;
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-image: url('../images/plus-close-black3.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50% 50%;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  backdrop-filter: none;
  width: var(--barra-top);
  height: var(--barra-top);
}

.pdf-modal__close:hover {
  background: black;
  background-image: url('../images/plus-close-white3.svg');
  background-size: 50% 50%;
  background-repeat: no-repeat;
  background-position: center;
}

.pdf-modal__frame {
  position: absolute;
  top: 52px;
  left: 0;
  width: 100%;
  height: calc(100% - 52px);
  border: 0;
  display: none;
}

.pdf-modal__viewer {
  position: absolute;
  top: 52px;
  left: 0;
  width: 100%;
  height: calc(100% - 52px);
  padding: 20px;
  overflow: auto;
  background: #f6f6f6;
}

.pdf-modal__page {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

.pdf-modal__canvas {
  display: block;
  max-width: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.pdf-modal__status {
  margin: 0;
  text-align: center;
}

.pdf-modal--fallback .pdf-modal__viewer {
  display: none;
}

.pdf-modal--fallback .pdf-modal__toolbar {
  display: flex;
}

.pdf-modal--fallback .pdf-modal__tools {
  display: none;
}

[data-pdf-fullscreen] [data-fullscreen-exit-icon] {
  display: none;
}

[data-pdf-fullscreen].is-fullscreen [data-fullscreen-enter-icon] {
  display: none;
}

[data-pdf-fullscreen].is-fullscreen [data-fullscreen-exit-icon] {
  display: block;
}

.pdf-modal--fallback .pdf-modal__frame {
  display: block;
}
body.pdf-modal-open {
  overflow: hidden;
}