.pdf-download-button .loading-icon {
  display: none;
  float: left;
  margin-right: 5px;
  margin-top: 1px;
}

.pdf-download-button.loading .loading-icon {
  display: inline;
}

.widget-percent-grid:after {
  display: block;
  clear: both;
  content: "";
}

.widget-percent-grid .grid-item {
  float: left;
  width: 100%
}

.widget-pdf-key {
  background-color: #008ebd;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  padding: 5px 10px;
  border: 1px solid #000;
}

.widget-pdf-code {
  border: 1px solid #000;
}

.widget-pdf-image-box .image {
  max-width: 100%;
}

.widget-pdf-pagebreak {
  border: 1px solid #000;
  height: 40px;
  line-height: 40px;
}

.widget-pdf-pagebreak:after {
  display: block;
  content: "PageBreak";
  font-size: 22px;
  color: #000;
  text-align: center;
}

.widget-pdf.widget-header,
.widget-pdf.widget-footer {
  border: 2px dotted #000;
  margin-bottom: 1.5rem;
}

.widget-pdf.widget-header:before,
.widget-pdf.widget-footer:before {
  content: 'PDF Header';
  position: absolute;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: bold;
  padding: 0 5px;
  background-color: #fff;
  color: #000;
  z-index: 9999;
}

.widget-pdf.widget-footer:before {
  content: 'PDF Footer' !important;
}