.q-pdf-drawer {
  --pdf-accent: var(--forest, #173c3d);
  --pdf-border: #cedbd2;
  position: fixed;
  inset: 0 0 0 auto;
  inline-size: min(1120px, 90vw);
  block-size: 100dvh;
  max-inline-size: 100%;
  max-block-size: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--pdf-border);
  background: #f6f8f4;
  color: #142b2b;
  box-shadow: -24px 0 60px #102c2e36;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .24s ease, overlay .24s allow-discrete, display .24s allow-discrete;
}
.q-pdf-drawer[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  transform: translateX(0);
}
@starting-style { .q-pdf-drawer[open] { transform: translateX(100%); } }
.q-pdf-drawer::backdrop { background: #102c2e7d; }
body:has(.q-pdf-drawer[open]) { overflow: hidden; }

.q-pdf-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "title actions close";
  align-items: center;
  gap: 10px;
  padding: 15px clamp(13px, 2.6vw, 30px);
  background: #102c2e;
  color: #fff;
}
.q-pdf-heading { grid-area: title; min-inline-size: 0; }
.q-pdf-heading > span {
  display: block;
  margin-block-end: 3px;
  color: #d6ebd2;
  font-size: .71rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.q-pdf-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.q-pdf-actions { grid-area: actions; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.q-pdf-close { grid-area: close; align-self: start; }
.q-pdf-button {
  display: inline-flex;
  min-block-size: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--pdf-border);
  border-radius: 7px;
  background: #fff;
  color: #142b2b;
  font: inherit;
  font-size: .88rem;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.q-pdf-header .q-pdf-button { border-color: #87a59a; background: transparent; color: #fff; }
.q-pdf-header .q-pdf-primary { border-color: #d6ebd2; background: #d6ebd2; color: #102c2e; }
.q-pdf-button:hover:not(:disabled), .q-pdf-button[aria-pressed="true"] { background: #e8f0e7; }
.q-pdf-header .q-pdf-button:hover:not(:disabled) { background: #31504d; }
.q-pdf-header .q-pdf-primary:hover { background: #eaf4e6; }
.q-pdf-button:disabled { opacity: .45; cursor: default; }
.q-pdf-button:focus-visible, .q-pdf-scroll:focus-visible { outline: 2px solid #22726b; outline-offset: 2px; }
.q-pdf-header .q-pdf-button:focus-visible { outline-color: #d6ebd2; }
.q-pdf-close, .q-pdf-icon { inline-size: 40px; padding-inline: 0; }
.q-pdf-button svg { inline-size: 17px; block-size: 17px; flex: none; }
.q-pdf-icon:is([data-pdf-zoom-in], [data-pdf-zoom-out]) { font-size: 1.12rem; }

.q-pdf-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 15px;
  padding: 8px clamp(13px, 2.6vw, 30px);
  border-block-end: 1px solid var(--pdf-border);
  background: #f6f8f4;
}
.q-pdf-tool-group { display: flex; align-items: center; gap: 6px; }
.q-pdf-tool-group > span {
  display: inline-block;
  min-inline-size: 3.2em;
  padding-inline: 3px;
  color: var(--pdf-accent);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: center;
}
.q-pdf-print-status {
  margin: 0;
  padding: 8px clamp(13px, 2.6vw, 30px);
  border-block-end: 1px solid var(--pdf-border);
  background: #edf4ec;
  color: var(--pdf-accent);
  font-size: .86rem;
}
.q-pdf-print-status:empty { display: none; }
.q-pdf-stage { position: relative; grid-row: 4; min-block-size: 0; background: #e4ebe5; }
.q-pdf-scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #789688 transparent;
  scroll-behavior: auto;
}
.q-pdf-scroll:focus-visible { outline-offset: -3px; }
.q-pdf-drawer .pdfViewer {
  --page-margin: 10px auto 0;
  --page-border: 1px solid #c7d3ca;
  padding-block: 3px 13px;
}
.q-pdf-drawer .pdfViewer .page { box-shadow: 0 3px 13px #102c2e16; }
.q-pdf-status {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  inline-size: min(300px, calc(100% - 32px));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--pdf-border);
  border-radius: 9px;
  background: #f6f8f4;
  color: var(--pdf-accent);
  font-size: .93rem;
  text-align: center;
}
.q-pdf-status[hidden] { display: none; }
.q-pdf-print-frame {
  position: fixed;
  inset: auto 0 0 auto;
  inline-size: 1px;
  block-size: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .q-pdf-drawer { inline-size: 100%; border-inline-start: 0; }
}
@media (max-width: 520px) {
  .q-pdf-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title close" "actions actions"; padding-block: 10px; }
  .q-pdf-toolbar { padding-block: 6px; }
  .q-pdf-toolbar .q-pdf-button { min-block-size: 36px; }
  .q-pdf-icon { inline-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-pdf-drawer { transition: none; }
}
