@page { size: A4 portrait; margin: 12mm; }

body, body :is(p, li, dt, dd, th, td, label, a, span, strong, small, h1, h2, h3, h4) {
  color: #000 !important;
}

body :is(p, li, dt, dd, th, td, label) {
  font-size: max(11pt, 1em) !important;
  line-height: 1.55;
  orphans: 2;
  widows: 2;
}

body :is(p, li, dt, dd, th, td, a, span, h1, h2, h3, h4) {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

body :is(main, header, footer, section, article, .page, .group, .details, .acp, .document-space) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

img { max-width: 100%; height: auto; }
table { width: 100%; table-layout: fixed; }
h1, h2, h3, h4 { break-after: avoid; }
body .document-preview { padding: 0; border: 0; }
body .certificate { padding: 14px 0 0; }
body .certificate .acp { padding-bottom: 0; }
body .certificate img { max-height: 115mm; object-fit: contain; }

body #example-title + .example,
body .principle {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

body #example-title + .example { background: #fff3e5 !important; }
body .principle { background: #f7ede9 !important; }
body .principle:has(+ .principle) { background: #fcf8f5 !important; }

body a.consult-button { background: #fff !important; border: 1px solid #705447; }
body :is(legend, footer, .preview-note, .help, .recruit-print .intro p) { color: #000 !important; }
.recruit-print :is(button, .preview-note) { display: none !important; }
.recruit-print.page { padding-top: 16px; padding-bottom: 18px; }
.recruit-print .recruit-introduction { margin-bottom: 24px; }
.recruit-print .field { margin-bottom: 14px; break-inside: avoid; }
.recruit-print + footer { padding: 8px; }
.recruit-print :is(input, select, textarea) { min-height: 24px; padding: 4px 8px; }
.recruit-print textarea { height: 85px; }

body .flare-final-print { display: block !important; }
body:has(.cover-print-art) .original-fv { display: block; }
body:has(.cover-print-art) .line-window,
body:has(.cover-print-art) .information { display: none; }
body .cover-print-art { display: block; width: min(100%, 478px); margin: 1rem auto; }
