.iu-print-sheet, .iu-print-unavailable { display: none; }
.iu-vacation-page .im-form-actions { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.iu-print-action {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--im-line);
    border-radius: 12px;
    color: var(--im-text);
    background: var(--im-surface);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.iu-print-action:enabled:hover { background: var(--im-soft); }
.iu-print-action:disabled { opacity: .5; cursor: default; }

@page mobilio-urlaubsantrag {
    size: A4 portrait;
    margin: 17mm 18mm 18mm;
    @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 9pt Arial, sans-serif; color: #525252; }
}

@media print {
    /* Limit the printable tree to the active request, including its layout ancestors. */
    html:has(.iu-vacation-page) { page: mobilio-urlaubsantrag; }
    :where(body, body *):has(.iu-vacation-page) > :not(.iu-vacation-page, :has(.iu-vacation-page)),
    .iu-vacation-page > :not(.iu-print-sheet, .iu-print-unavailable) {
        display: none !important;
    }
    html:has(.iu-vacation-page), body:has(.iu-vacation-page), body :has(.iu-vacation-page),
    .ip-shared-workspace.ip-service-page:has(.iu-vacation-page),
    .ip-shared-workspace.ip-service-page .ip-service-content:has(.iu-vacation-page),
    .ip-service-page .ip-service-content main.iu-vacation-page {
        display: block !important;
        position: static !important;
        box-sizing: border-box;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        max-width: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: #161616 !important;
        box-shadow: none !important;
        color-scheme: light;
        container-type: normal;
    }
    .iu-print-sheet, .iu-print-unavailable {
        display: block;
        color: #161616;
        background: white;
        font: 10.5pt/1.45 Arial, sans-serif;
        overflow-wrap: anywhere;
    }
    .iu-print-sheet h1, .iu-print-sheet h2, .iu-print-sheet p, .iu-print-sheet dl,
    .iu-print-sheet dt, .iu-print-sheet dd { margin: 0; }
    .iu-paper-head { padding-bottom: 4mm; border-bottom: 1pt solid #222; break-inside: avoid; }
    .iu-paper-company { font-weight: bold; }
    .iu-print-sheet h1 { margin: 2mm 0 1mm; font-size: 25pt; line-height: 1.1; color: #161616; letter-spacing: -.5pt; }
    .iu-print-sheet h2 { margin: 7mm 0 2mm; font-size: 13pt; color: #161616; break-after: avoid; }
    .iu-paper-details, .iu-paper-period { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 8mm; }
    .iu-print-sheet .iu-paper-details { margin-top: 5mm; }
    .iu-paper-details > div { min-width: 0; break-inside: avoid; }
    .iu-print-sheet dt, .iu-paper-period strong { display: block; font-size: 9pt; color: #505050; font-weight: 600; }
    .iu-print-sheet dd, .iu-paper-period p { font-weight: 600; }
    .iu-paper-period { break-inside: avoid; }
    .iu-print-sheet table { width: 100%; margin-top: 4mm; border-collapse: collapse; font: inherit; color: inherit; }
    .iu-print-sheet thead { display: table-header-group; }
    .iu-print-sheet tr { break-inside: avoid; }
    .iu-print-sheet :is(th, td) { padding: 1.5mm 2mm; text-align: left; border-bottom: .5pt solid #bbb; }
    .iu-print-sheet th { border-block: 1pt solid #555; font-size: 9pt; }
    .iu-print-sheet :is(th, td):last-child { text-align: right; }
    .iu-paper-note { white-space: pre-wrap; orphans: 3; widows: 3; }
    .iu-paper-approval { margin-top: 9mm; padding-top: 3mm; border-top: 1pt solid #555; break-inside: avoid; }
    .iu-paper-approval h2 { margin-top: 0; }
    .iu-paper-signatures { display: grid; grid-template-columns: 1fr 1.6fr 2fr; gap: 6mm; padding-top: 16mm; }
    .iu-paper-signatures span { border-top: .7pt solid #333; padding-top: 1.5mm; font-size: 9pt; }
}
