/* Basic full-height layout for PDF template */
.pdf-template {
  width: 100%;
}

.pdf-viewer-wrap {
  position: relative;
  width: 100%;
  min-height: 80vh; /* JS will set to fit between header/footer */
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1b1b1b;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pdf-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdf-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}
.pdf-btn:hover { background: rgba(255,255,255,0.1); }
.pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pdf-page { font-size: 14px; opacity: 0.85; }

.pdf-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  overflow: auto;
  display: grid;
  place-items: stretch; /* allow iframe to fill */
  background: #111;
}

#pdf-canvas {
  width: min(100%, 1400px);
  height: auto;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #2b2b2b;
}

.pdf-empty {
  padding: 40px;
  text-align: center;
  color: #ddd;
}

.pdf-fallback {
  padding: 10px 12px;
  background: #1b1b1b;
  border-top: 1px solid rgba(255,255,255,0.1);
}
