@media print {
    @page {
        size: A4 landscape;
        margin-top: 5mm;
        margin-right: 5mm;
        margin-bottom: 5mm;
        margin-left: 5mm;
    }
    body { background: #fff; }
    .site-header, .page-shell, .print-page-footer, .toast-message { display: none !important; }
    .print-document { display: block; }
    body.print-sketch-mode .print-document { display: none !important; }
    body.print-sketch-mode .print-sketch-document { display: block !important; }
    .print-page { position: relative; display: block; height: 190mm; break-after: page; overflow: hidden; }
    .print-page:last-child { break-after: auto; }
    .print-document-header { display: flex; align-items: center; gap: 12mm; height: 22mm; padding-bottom: 4mm; border-bottom: .5mm solid #000; }
    .print-document-header img { width: 42mm; height: 15mm; object-fit: contain; }
    .print-document-header h1 { margin: 0; color: #000; font-size: 18pt; }
    .print-document-section { margin: 4mm 0 1.5mm; color: #000; font-size: 9pt; font-weight: 700; letter-spacing: .08em; }
    .print-order-meta { display: flex; gap: 6mm; padding: 2mm 0 3mm; border-bottom: .3mm solid #000; font-size: 8pt; }
    .print-order-meta span { white-space: nowrap; }
    .print-order-notice { margin: 2mm 0; padding: 2mm 3mm; background: #fff7d6 !important; border-left: 1mm solid #d9a900; color: #000; font-size: 7pt; line-height: 1.25; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .print-order-notice p { margin: 0 0 .8mm; }
    .print-order-notice p:last-child { margin-bottom: 0; }
    .print-employee-meta { display: grid; grid-template-columns: 1fr .55fr 1.2fr; gap: 6mm; min-height: 12mm; align-items: end; padding: 2mm 0; font-size: 8pt; }
    .print-employee-meta span { display: flex; align-items: end; gap: 2mm; white-space: nowrap; }
    .print-employee-meta i { display: block; flex: 1; min-width: 12mm; height: 5mm; border-bottom: .2mm solid #555; }
    .print-document-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 8pt; }
    .print-document-table th { padding: 2mm 1mm; color: #000; background: #e8e8e8; border: .2mm solid #000; text-align: left; }
    .print-document-table td { height: 13mm; padding: .6mm; border: .2mm solid #c8d0d5; vertical-align: middle; overflow: hidden; word-break: break-word; }
    .print-document-table td:nth-child(2), .print-document-table td:nth-child(3),
    .print-document-table td:nth-child(4), .print-document-table td:nth-child(6),
    .print-document-table td:nth-child(7), .print-document-table td:nth-child(8),
    .print-document-table td:nth-child(9) { font-size: 11pt; font-weight: 600; }
    .print-document-table td:nth-child(3) { font-size: 10pt; }
    .print-document-table th:nth-child(1), .print-document-table td:nth-child(1) { width: 4%; }
    .print-document-table th:nth-child(2), .print-document-table td:nth-child(2) { width: 6%; }
    .print-document-table th:nth-child(3), .print-document-table td:nth-child(3) { width: 11%; }
    .print-document-table th:nth-child(4), .print-document-table td:nth-child(4) { width: 9%; }
    .print-document-table th:nth-child(5), .print-document-table td:nth-child(5) { width: 12%; }
    .print-document-table th:nth-child(6), .print-document-table td:nth-child(6),
    .print-document-table th:nth-child(7), .print-document-table td:nth-child(7),
    .print-document-table th:nth-child(8), .print-document-table td:nth-child(8),
    .print-document-table th:nth-child(9), .print-document-table td:nth-child(9) { width: 6%; }
    .print-document-table th:nth-child(10), .print-document-table td:nth-child(10) { width: 22%; }
    .print-number { color: #003894; font-size: 14pt; font-weight: 700; text-align: center; }
    .print-sketch-code { display: block; margin-bottom: .3mm; color: #003894; font-size: 6.5pt; line-height: 1; text-align: center; }
    .print-sketch img { display: block; width: 27mm; height: 8mm; margin: auto; object-fit: contain; }
    .print-page footer { position: absolute; right: 0; bottom: 0; left: 0; padding-top: 2mm; border-top: .2mm solid #999; color: #333; font-size: 7pt; text-align: right; }
    .print-sketch-page { height: 190mm; break-after: auto; overflow: hidden; }
    .print-sketch-page > header { display: flex; align-items: center; gap: 12mm; height: 18mm; padding-bottom: 3mm; border-bottom: .4mm solid #000; }
    .print-sketch-page > header img { width: 38mm; height: 13mm; object-fit: contain; }
    .print-sketch-page > header h1 { margin: 0; font-size: 13pt; text-align: center; }
    .print-sketch-profiles, .print-sketch-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
    .print-sketch-profile { height: 28mm; padding: 1mm; border: .2mm solid #c8d0d5; text-align: center; }
    .print-sketch-profile > div { display: flex; height: 22mm; flex-direction: column; align-items: center; justify-content: center; gap: .5mm; }
    .print-sketch-profile img { width: 90%; object-fit: contain; }
    .print-sketch-profile.profile-count-1 img { height: 19mm; }
    .print-sketch-profile.profile-count-2 img { height: 10mm; }
    .print-sketch-profile.profile-count-3 img { height: 6.5mm; }
    .print-sketch-profile strong, .print-sketch-choice strong { display: block; color: #003894; font-size: 6.5pt; }
    .print-sketch-choice { height: 22mm; padding: 1mm; border: .2mm solid #c8d0d5; text-align: center; }
    .print-sketch-choice img { display: block; width: 100%; height: 16mm; object-fit: contain; }
    .print-sketch-page > footer { margin-top: 2mm; border-top: .2mm solid #999; color: #333; font-size: 7pt; text-align: right; }
    .site-header { padding: 0 0 6mm; color: #000; background: #fff; border-bottom: 1mm solid #000; }
    .site-header .eyebrow, .language-switch, .guide, .toolbar, .form-footer, .actions-column, .row-actions, .sketch-control { display: none !important; }
    .brand img { width: 42mm; padding: 0; }
    .site-header h1 { color: #000; font-size: 18pt; }
    .page-shell { width: 100%; max-width: 100%; margin: 0; }
    .panel { margin: 0; padding: 5mm 0 0; box-shadow: none; }
    .section-heading { margin-bottom: 3mm; }
    .section-heading h2 { font-size: 15pt; }
    .required-note, .empty-state { display: none; }
    .form-grid { grid-template-columns: repeat(5, 1fr); gap: 3mm; }
    .field input, .compact-input { padding: 1mm; color: #000; background: #fff; border: 0; border-bottom: .2mm solid #999; border-radius: 0; }
    .table-wrap { overflow: visible; border: .2mm solid #000; }
    .positions-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 7pt; }
    .positions-table th, .positions-table td { max-width: 0; overflow: hidden; word-break: break-word; }
    .positions-table th:nth-child(1), .positions-table td:nth-child(1) { width: 4%; }
    .positions-table th:nth-child(2), .positions-table td:nth-child(2) { width: 6%; }
    .positions-table th:nth-child(3), .positions-table td:nth-child(3) { width: 11%; }
    .positions-table th:nth-child(4), .positions-table td:nth-child(4) { width: 9%; }
    .positions-table th:nth-child(5), .positions-table td:nth-child(5) { width: 12%; }
    .positions-table th:nth-child(6), .positions-table td:nth-child(6),
    .positions-table th:nth-child(7), .positions-table td:nth-child(7),
    .positions-table th:nth-child(8), .positions-table td:nth-child(8),
    .positions-table th:nth-child(9), .positions-table td:nth-child(9) { width: 6%; }
    .positions-table th:nth-child(10), .positions-table td:nth-child(10) { width: 22%; }
    .positions-table th { padding: 2mm 1mm; color: #000; background: #e8e8e8; border-bottom: .2mm solid #000; white-space: normal; }
    .positions-table .print-order-row { display: table-row; background: #fff; }
    .positions-table .print-order-row th { padding: 2mm 1mm 3mm; background: #fff; border-bottom: .4mm solid #000; font-size: 7pt; font-weight: 400; text-align: left; }
    .print-order-row span { display: inline-block; margin-right: 7mm; white-space: nowrap; }
    .print-page-footer { position: fixed; right: 0; bottom: 0; left: 0; display: block; padding-top: 2mm; border-top: .2mm solid #999; color: #333; font-size: 7pt; text-align: right; }
    .print-page-footer::after { content: "Seite " counter(page); }
    .positions-table td { padding: 1mm; }
    .positions-table tr { break-inside: avoid; }
    .print-sketch-image:not([hidden]) { display: block; width: 30mm; height: 13mm; object-fit: contain; }
    .print-sketch-image[hidden] { display: none !important; }
}
