.pdf-preview-host {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: inherit;
  background: #fff;
}

.pdf-preview-toolbar {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .5rem .75rem;
  background: #fff;
}

.pdf-preview-surface {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  background: #f8f9fa;
}

.pdf-preview-canvas {
  display: block;
  max-width: none;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .18);
  background: #fff;
}

.pdf-preview-message {
  align-self: center;
  color: #6c757d;
}

#pdfPreviewModal.modal {
  z-index: 2065;
}

.modal-backdrop.pdf-preview-backdrop {
  z-index: 2060;
}

#pdfPreviewModal .modal-content {
  background: #f8f9fa;
}

#pdfPreviewModal .pdf-preview-modal-body {
  display: flex;
  min-height: 0;
  height: calc(100vh - 4.2rem);
  padding: 0;
}

#pdfPreviewModal .pdf-preview-modal-host {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 575.98px) {
  .pdf-preview-toolbar {
    padding: .4rem .5rem;
  }

  .pdf-preview-surface {
    padding: .75rem;
  }
}
