/* No external fonts, images, advertising, or student data in a PDF service. */
#batchPrintDialog{width:calc(100% - 32px);max-width:1000px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #b9c2ba;border-radius:10px;background:#f8f7f2;color:#18201f;font-family:Arial,Helvetica,sans-serif}
#batchPrintDialog::backdrop{background:#0008}
.batch-print-controls{padding:24px 28px;border-bottom:1px solid #d6d8d0;background:#fffdf9}
.batch-print-controls h1{font-size:25px;line-height:1.2;margin:0 0 14px}
.batch-print-summary,.batch-print-help{font-size:14px;line-height:1.6;margin:10px 0;overflow-wrap:anywhere}
.batch-print-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.batch-print-actions button{min-height:44px;padding:11px 18px;border:1px solid #829485;border-radius:5px;font-size:15px;font-weight:600;background:white;color:#18201f}
.batch-print-actions button.primary{background:#20665e;color:white;border-color:#20665e}
.batch-print-actions button:disabled{opacity:.55;cursor:wait}
.batch-print-pages{padding:20px}
.batch-sheet{max-width:794px;margin:0 auto 22px;padding:35px;background:white;border:1px solid #d6d8d0;overflow-wrap:anywhere}
.batch-sheet:last-child{margin-bottom:0}
.batch-sheet-header{padding:0 0 18px;margin:0 0 24px;border-bottom:1px solid #bbc3be;font-family:Arial,Helvetica,sans-serif;color:#18201f}
.batch-activity-name{color:#18201f;font-size:14px;font-weight:600;margin:0 0 7px}
.batch-participant{font-size:24px;line-height:1.3;margin:0 0 6px}
.batch-meta{font-size:12px;margin:0;color:#4b5650}
.batch-writing{line-height:1.5;white-space:pre-wrap;color:#18201f}
.batch-text-title{font:inherit;font-weight:bold;margin:0 0 22px}
.batch-writing-section{margin:0 0 24px}
.batch-field-label{font:600 15px/1.4 Arial,Helvetica,sans-serif;margin:0 0 10px;white-space:normal}
.batch-text p,.batch-text div{font:inherit;color:inherit;margin:0 0 .5em}
.batch-text ul,.batch-text ol{margin:0;padding-left:1.5em;white-space:normal}
.batch-text li{white-space:pre-wrap}
.batch-text .batch-empty{font:italic 13px/1.5 Arial,Helvetica,sans-serif;color:#5a645e;white-space:normal}
@media(max-width:600px){#batchPrintDialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.batch-print-controls{padding:18px}.batch-print-pages{padding:10px}.batch-sheet{padding:20px}.batch-print-actions button{flex:1 1 auto}}
@page alBatch{size:A4;margin:16mm}
@media print{
 html:has(body.batch-printing),body.batch-printing{height:auto!important;overflow:visible!important;background:white!important;margin:0!important;padding:0!important;min-height:0!important}
 body.batch-printing> :not(#batchPrintDialog){display:none!important}
 body.batch-printing #batchPrintDialog{display:block!important;position:static!important;inset:auto!important;float:none!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:white!important;box-shadow:none!important;page:alBatch}
 #batchPrintDialog::backdrop,.batch-print-controls{display:none!important}
 #batchPrintPages{display:block!important;overflow:visible!important;margin:0!important;padding:0!important}
 .batch-sheet{page:alBatch;display:block!important;max-width:none;margin:0;padding:0;border:0;overflow:visible;break-inside:auto;break-before:page;page-break-before:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .batch-sheet:first-child{break-before:auto;page-break-before:auto}
 .batch-sheet-header{break-inside:avoid;break-after:avoid;margin-bottom:7mm;padding-bottom:4mm}
 .batch-text-title,.batch-field-label{break-after:avoid}
 .batch-writing-section,.batch-text{break-inside:auto;orphans:3;widows:3}
 .batch-text p,.batch-text div,.batch-text li{break-inside:auto}
}

/* Genre typography stays consistent in teacher-generated batches. */
.batch-sheet[data-genre=invitation] .batch-text-title,
.batch-sheet[data-genre=poem] .batch-text-title{text-align:center}
.batch-sheet[data-genre=recipe] .batch-text,.batch-sheet[data-genre=list] .batch-text,
.batch-sheet[data-genre=note] .batch-text,.batch-sheet[data-genre=invitation] .batch-text{text-align:left}
.batch-sheet[data-genre=recipe] .batch-text :is(ul,ol),.batch-sheet[data-genre=list] .batch-text ul{list-style-position:outside}
.batch-sheet[data-genre=recipe] .batch-text ul,.batch-sheet[data-genre=list] .batch-text ul{list-style-type:disc}
.batch-sheet[data-genre=recipe] .batch-text ol{list-style-type:decimal}

