/* Hide PDF.js download/print/save UI so users must use our Download button */
#download,
#secondaryDownload,
#downloadButton,
.toolbarButton.download,
#secondaryToolbar #download,
#secondaryToolbar #secondaryDownload,
#secondaryToolbarButtonContainer #secondaryDownload,
#secondaryToolbarButtonContainer #download {
  display: none !important;
}

/* Optional: hide Print too */
#print,
#secondaryPrint,
.toolbarButton.print {
  display: none !important;
}

/* ===== Layout: Top button / Viewer / Bottom button ===== */
html, body {
  height: 100% !important;
}

body {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}


.pm-bar {
  padding: 14px 0;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.pm-bar.pm-bottom {
  border-bottom: 0;
  border-top: 1px solid rgba(0,0,0,.08);
}


.pm-btn{
  display:inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: #0b66ff;
  color: #fff;
  text-decoration:none;
  font-family: system-ui, Arial, sans-serif;
  font-weight: 700;
}


#outerContainer {
  position: relative !important;
  flex: 1 1 auto !important;
  height: auto !important;
}


/* Our download buttons */
.pm-download{
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  z-index: 9999;
  pointer-events: auto;
}
.pm-download.pm-bottom{
  top: auto;
  bottom: 18px;
}
.pm-btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #0b66ff;
  color: #fff;
  text-decoration: none;
  font-family: system-ui, Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.pm-btn:hover{ filter: brightness(0.95); }
