/*
 * Document/PDF preview modal sizing.
 * Kept separate from Bootstrap so the outer application modal does not depend
 * on the Bootstrap stylesheet loaded inside the PDF viewer iframe.
 */
.modal-dialog-word-preview {
  margin: 30px auto;
  width: 1000px;
  max-width: calc(100vw - 30px);
}

.modal-dialog-word-preview.pdf-preview-resizable {
  display: flex;
  flex-direction: column;
  height: 80vh;
  min-width: 320px;
  min-height: 320px;
  max-height: calc(100vh - 60px);
  resize: both;
  overflow: hidden;
}

.pdf-preview-resizable .pdf-preview-toolbar {
  flex: 0 0 auto;
}

.pdf-preview-resizable .pdf-preview-zoom-button {
  margin-right: 4px;
  width: 36px;
  height: 34px;
  padding: 5px;
  border: 0;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pdf-preview-resizable .pdf-preview-zoom-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-preview-resizable .pdf-preview-zoom-button:hover,
.pdf-preview-resizable .pdf-preview-zoom-button:focus {
  color: #fff !important;
  background: transparent !important;
  opacity: .75;
  outline: 1px solid rgba(255, 255, 255, .45);
}

.pdf-preview-resizable .modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pdf-preview-resizable .modal-responsive-iframe {
  height: 100%;
  padding: 0 !important;
}

.pdf-preview-resizable .modal-responsive-iframe .embed-responsive-item {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-preview-resizable.pdf-preview-maximized {
  width: calc(100vw - 20px) !important;
  max-width: none;
  height: calc(100vh - 20px) !important;
  max-height: none;
  margin: 10px auto;
  resize: none;
}

@media (max-width: 767px) {
  .modal-dialog-word-preview.pdf-preview-resizable {
    width: calc(100% - 20px);
    min-width: 0;
    height: 85vh;
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    resize: none;
  }
}
