/* PDF charts in the Bandstand (pdf-set.js): the page holder, the PDF shelf, and the per-PDF settings.
   Colours come from whatever holds them (the desktop drawer, the phone cards), so this works in light and night. */
.pdf-pg { position: absolute; inset: 0; background: #fff; }
.pdf-cv { background: #fff; }
/* night: PDFs are black on white, so flip them like the lead sheets (turned off by "Invert PDF colours" in the menu) */
.stage.theme-night:not(.pdf-noinv) .pdf-cv, .ps.night:not(.pdf-noinv) .pdf-cv { filter: invert(1) hue-rotate(180deg); }
.stage.theme-sepia .pdf-cv { filter: sepia(.45) contrast(.95); }

.pdf-lib { margin: 8px 0; }
.pdf-add { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 8px 0; border: 1px dashed currentColor; border-radius: 12px; font-weight: 800; cursor: pointer; }
.pdf-add:hover, .pdf-add:focus-within { background: rgba(128, 128, 128, .15); }
.pdf-dim { opacity: .75; margin: 4px 0; font-size: 13px; }
.pdf-bad { color: #d4351c; opacity: 1; font-weight: 700; }
.pdf-files { list-style: none; margin: 6px 0; padding: 0; }
.pdf-files li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; margin: 5px 0; border: 1px solid rgba(128, 128, 128, .45); border-radius: 10px; }
.pdf-files .pdf-n { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.pdf-files .pdf-n small { display: block; opacity: .75; }
.pdf-files button, .pdf-ed button { min-height: 44px; padding: 0 12px; }
.pdf-ed { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.pdf-edrow { display: flex; gap: 10px; }
.pdf-edrow label, .pdf-edorder { display: flex; flex-direction: column; flex: 1; font-size: 13px; font-weight: 700; gap: 3px; }
.pdf-ed input[type=number], .pdf-ed input[type=text] { min-height: 44px; font-size: 16px; padding: 4px 10px; width: 100%; box-sizing: border-box; }
.pdf-edchk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.pdf-edchk input { width: 24px; height: 24px; }
.pdf-ask { text-align: center; }
.pdf-ask label { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid currentColor; border-radius: 12px; font-weight: 800; cursor: pointer; margin-top: 8px; }
/* on the phone stage: a tall column of rows, each at least one screen tall (phone-stage.js buildPdf) */
.ps-pdf { position: relative; width: 100%; }
.ps-pdfrow { position: absolute; left: 0; right: 0; display: flex; justify-content: center; }
.ps-pdfrow .pdf-pg { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.ps-pdfed { flex: 1 0 100%; }
.ps-pdfshelf button { min-height: 44px; }
.ps .pdf-ask { padding: 24px; }
.ps .pdf-ask h2 { margin: 0 0 8px; }
.psitems li > button[data-pdfed] { flex: none; }
.psitems .ps-t small { display: block; }
/* in the desktop Bandstand's set list */
.st-items .st-pdfbtn { grid-area: part; min-height: 40px; text-align: left; padding: 0 10px; border-radius: 10px; border: 1px solid var(--st-line); background: var(--st-card); color: var(--st-card-text); font-weight: 700; cursor: pointer; }
.st-items .st-pdfed { grid-column: 1 / -1; }
.st-pdfshelf button { color: var(--st-card-text); background: var(--st-card); border: 1px solid var(--st-line); border-radius: 10px; cursor: pointer; }
.st-pdfshelf .pdf-ed input, .pdf-ed input[type=text], .pdf-ed input[type=number] { color: inherit; background: transparent; border: 1px solid rgba(128, 128, 128, .6); border-radius: 8px; }
.stage .pdf-ask { max-width: 520px; }
.pdf-dropzone { outline: 3px dashed #e8b043; outline-offset: -8px; }
