body {
  margin: 0;
  background: #dfe7ef;
}

.pdf-viewer-page {
  min-height: 100vh;
  background: #dfe7ef;
}

.pdf-viewer-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: #005198;
  color: #ffffff;
}

.pdf-viewer-back,
.pdf-viewer-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.pdf-viewer-title {
  text-align: center;
}

.pdf-viewer-title span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdf-viewer-title h1 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
}

.pdf-viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #d7e4ef;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pdf-viewer-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid #cfe1f1;
  border-radius: 16px;
  background: #ffffff;
  color: #31445b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pdf-viewer-notice i {
  color: #005198;
  margin-top: 3px;
}

.pdf-viewer-notice p {
  margin: 0;
  line-height: 1.55;
}

.pdf-viewer-notice a {
  color: #005198;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdf-viewer-toolbar button {
  border: 1px solid #d7e4ef;
  border-radius: 999px;
  padding: 9px 14px;
  background: #f8fbff;
  color: #005198;
  cursor: pointer;
  font-weight: 800;
}

.pdf-viewer-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdf-viewer-stage {
  position: relative;
  min-height: calc(100vh - 150px);
  padding: 28px;
  overflow: auto;
  text-align: center;
}

.pdf-viewer-loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #005198;
  font-size: 20px;
  font-weight: 900;
}

.pdf-viewer-loading.is-visible {
  display: flex;
}

#pdfViewerCanvas {
  max-width: 100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.24);
}

@media (max-width: 760px) {
  .pdf-viewer-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pdf-viewer-back,
  .pdf-viewer-download {
    justify-content: center;
  }

  .pdf-viewer-stage {
    padding: 16px;
  }
}
