/* Off-screen but fully opaque — html2canvas fails with opacity:0 or left:-10000px */
.pdf-capture-host {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  background: #ffffff;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.pdf-capture-host .doc-export,
.pdf-capture-host .doc {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.pdf-capture-host .full-subheader,
.pdf-capture-host .subsection-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.pdf-capture-host .card,
.pdf-capture-host .doc-table-wrap,
.pdf-capture-host blockquote {
  margin-left: 16px;
  margin-right: 16px;
}

.pdf-capture-host .doc-header,
.pdf-capture-host .doc-body,
.pdf-capture-host .doc-footer {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.pdf-capture-host .doc-body {
  padding: 14px 0 12px !important;
}

.pdf-capture-host .card {
  overflow: visible !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pdf-capture-host .doc-table-wrap {
  width: 100% !important;
  overflow: visible !important;
}

.pdf-capture-host .doc-data-table {
  width: 100% !important;
  table-layout: fixed;
  font-size: 11px !important;
}

.pdf-capture-host .doc-data-table th,
.pdf-capture-host .doc-data-table td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  padding: 5px 6px !important;
}

.pdf-capture-host .doc-bengali-title,
.pdf-capture-host .section-title,
.pdf-capture-host p,
.pdf-capture-host li {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pdf-export-root {
  display: none;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.pdf-status[hidden] {
  display: none !important;
}

.pdf-status:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  pointer-events: all;
}
