/* Every attachment owns a landscape page, even when its main document is
   portrait or its template/engine retained an old portrait class. */
@page mesLandscapeAttachment {size:A4 landscape;margin:6mm 8mm;}
#drawingsContainer .drawing-page {
 width:297mm;height:210mm;min-height:210mm;box-sizing:border-box;
}
#drawingsContainer .drawing-body {
 position:relative;min-height:0;height:auto;flex:1;
}
#drawingsContainer .drawing-body>.drawing-img,
#drawingsContainer .drawing-body>.drawing-canvas,
#drawingsContainer .drawing-body .drawing-frame {
 position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;
}
@media print {
 #drawingsContainer .drawing-page {
  page:mesLandscapeAttachment!important;
  width:281mm!important;height:197mm!important;min-height:197mm!important;
  padding:0!important;break-before:page;page-break-before:always;
  break-inside:avoid;page-break-inside:avoid;
 }
 #drawingsContainer .drawing-body {min-height:0!important;height:auto!important;}
 #drawingsContainer .drawing-img,#drawingsContainer .drawing-canvas {max-height:100%!important;}
}
