.stage-print-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.stage-print-open{overflow:hidden}#stage-print-preview{position:fixed;inset:0;z-index:15000;overflow:auto;background:#e9e9e9;color:#222;padding:0 16px 30px}.stage-print-controls{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;gap:16px;padding:16px;background:#fff;border-bottom:1px solid #ccc;max-width:850px;margin:0 auto 20px}.stage-print-controls>div{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.stage-print-controls>div:first-child{display:grid;gap:4px}.stage-print-controls span,.stage-print-controls small{font-size:14px}.stage-paper-page{box-sizing:border-box;width:210mm;height:297mm;padding:12mm;background:white;margin:0 auto 20px;display:flex;flex-direction:column;box-shadow:0 2px 8px #0002;overflow:hidden}.stage-paper-header,.stage-paper-footer{display:flex;justify-content:space-between;gap:10px;flex-shrink:0;font-size:10pt}.stage-paper-header{border-bottom:1px solid #333;padding-bottom:3mm;height:10mm}.stage-paper-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-paper-header span{white-space:nowrap}.stage-paper-footer{height:6mm;padding-top:2mm;border-top:1px solid #aaa;font-size:8pt}.stage-paper-slots{flex:1;min-height:0;display:grid;grid-template-rows:repeat(var(--layouts-per-page),minmax(0,1fr));gap:4mm;padding:4mm 0}.stage-paper-item{min-height:0;display:flex;flex-direction:column;break-inside:avoid;page-break-inside:avoid;overflow:hidden}.stage-paper-work{display:flex;gap:3mm;align-items:baseline;flex-shrink:0}.stage-paper-work>b{font-size:19pt;font-weight:700}.stage-paper-work h2{font-size:14pt;margin:0;line-height:1.2;overflow-wrap:anywhere}.stage-paper-work p{font-size:10pt;margin:1mm 0 2mm;line-height:1.2}.stage-paper-diagram{flex:1;min-height:0;display:flex;justify-content:center}.stage-paper-plan{height:100%;width:100%;display:block}.stage-paper-page[style*="3"] .stage-paper-work h2{font-size:12pt}.stage-paper-page[style*="3"] .stage-paper-work p{font-size:9pt}#stage-print-count{display:block;font:inherit;padding:10px;width:100%;margin-bottom:16px}
@media(max-width:850px){.stage-print-controls{position:relative;flex-wrap:wrap}.stage-print-paper{width:max-content}.stage-print-actions{justify-content:flex-start}.stage-paper-page{margin-left:0}}
@media print{
 @page{size:A4 portrait;margin:0}
 body.stage-print-open{margin:0!important;padding:0!important;background:white!important;overflow:visible!important}
 body.stage-print-open> :not(#stage-print-preview){display:none!important}
 #stage-print-preview{position:static!important;overflow:visible!important;padding:0!important;background:white!important;display:block!important}
 .stage-print-controls{display:none!important}.stage-print-paper{width:auto!important}
 .stage-paper-page{width:210mm!important;height:297mm!important;margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .stage-paper-page:last-child{break-after:auto;page-break-after:auto}
}
