/* Druck: Mo–Mi + Do–Fr in zwei Blöcken, Luftbilder füllen den Rest der Seite */

@page {
    size: A4 landscape;
    margin: 5mm;
}

.planner-print-page {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #102236;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.planner-print-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 287mm;
    min-height: 190mm;
    height: 190mm;
    margin: 0 auto;
    box-sizing: border-box;
}

.print-grids {
    flex: 0 0 auto;
}

.print-grid-block + .print-grid-block {
    margin-top: 2mm;
}

.print-block-label {
    margin: 0 0 0.8mm;
    padding: 0 1mm;
    font-size: 7px;
    font-weight: 800;
    color: #123f72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.planner-print-grid-wrap {
    overflow: hidden;
}

.print-aerial-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 2mm;
    overflow: hidden;
}

.planner-print-page .planner-table.is-print {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #9eb4cc;
}

.planner-print-page .planner-table.is-print thead th.day-group-head,
.planner-print-page .planner-table.is-print thead th.time-col.day-group-head {
    padding: 1px 2px;
    font-size: 7px;
    line-height: 1.1;
    font-weight: 800;
    border-left-width: 2px;
    border-right-width: 2px;
}

.planner-print-page .planner-table.is-print thead th.quarter-head,
.planner-print-page .planner-table.is-print thead th.time-corner {
    padding: 0 1px;
    font-size: 6.5px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.planner-print-page .planner-table.is-print th.time-col,
.planner-print-page .planner-table.is-print td.time-col {
    width: 8mm;
    min-width: 8mm;
    max-width: 8mm;
    position: static !important;
    padding: 0 1px;
    font-size: 6.5px;
    line-height: 1;
    font-weight: 700;
    vertical-align: middle;
    text-align: center;
}

.planner-print-page .planner-table.is-print thead th.time-corner {
    min-width: 8mm;
    width: 8mm;
    min-height: auto;
    padding: 1px;
}

.planner-print-page .planner-table.is-print tbody td.time-col {
    background: #eef4fa !important;
    border-bottom: 1px solid #c5d4e6;
}

.planner-print-page .planner-table.is-print tbody tr {
    height: 3.6mm;
}

.planner-print-page .planner-table.is-print tbody td.day-cell {
    height: 3.6mm;
    padding: 0;
    vertical-align: top;
    line-height: 0;
}

.planner-print-page .planner-table.is-print .slot {
    min-height: 3.6mm;
    height: 3.6mm;
}

.planner-print-page .planner-table.is-print .alloc-chip {
    display: block;
    width: 100%;
    min-height: 3.6mm;
    height: 3.6mm;
    margin: 0;
    padding: 0 1px;
    border-radius: 0;
    font-size: 6px;
    font-weight: 800;
    line-height: 3.6mm;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.planner-print-page .planner-table.is-print .alloc-bundle {
    height: 3.6mm;
    min-height: 3.6mm;
}

.planner-print-page .planner-table.is-print .alloc-bundle .alloc-chip.is-primary,
.planner-print-page .planner-table.is-print .alloc-bundle.has-guests .alloc-chip.is-primary.is-start,
.planner-print-page .planner-table.is-print .alloc-bundle.has-guests .alloc-chip.is-primary.is-continuation {
    height: 3.6mm;
    min-height: 3.6mm;
    font-size: 6px;
    line-height: 3.6mm;
}

.planner-print-page .planner-table.is-print .alloc-chip.alloc-guest-tag {
    display: none;
}

.planner-print-page .planner-table.is-print .weekday-end {
    border-right-width: 2px !important;
}

.planner-print-page .planner-table.is-print .weekday-start {
    border-left-width: 2px !important;
}

.planner-print-page .planner-table.is-print .venue-end {
    border-right-width: 1px !important;
}

.planner-print-page .planner-table.is-print .venue-start {
    border-left-width: 1px !important;
}

.planner-print-page .planner-table.is-print thead th.quarter-head.is-today,
.planner-print-page .planner-table.is-print thead th.day-group-head.is-today {
    box-shadow: none;
}

.planner-print-page .print-aerial-fill .venue-aerial-overview.print-venue-aerial {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    page-break-inside: avoid;
}

.planner-print-page .print-venue-aerial .venue-aerial-strip {
    display: flex;
    align-items: stretch;
    gap: 2mm;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.planner-print-page .print-venue-aerial .venue-aerial-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #9eb4cc;
    border-radius: 3px;
    overflow: hidden;
    background: #f4f8fc;
    min-width: 0;
    min-height: 0;
}

.planner-print-page .print-venue-aerial .venue-aerial-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    background: #e8f1fb;
    padding: 1.5mm;
    box-sizing: border-box;
}

.planner-print-page .print-venue-aerial .venue-aerial-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.planner-print-page .print-venue-aerial figcaption {
    flex: 0 0 auto;
    padding: 0.8mm 1.5mm;
    font-size: 6.5px;
    line-height: 1.2;
    background: #e8f1fb;
    color: #123f72;
}

.planner-print-page .print-venue-aerial .venue-aerial-codes {
    font-weight: 800;
}

.planner-print-page .print-plan-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5mm;
    padding: 0 1mm;
    font-size: 6px;
    color: #6b7c8f;
}

@media screen {
    .planner-print-page {
        padding: 8px;
        background: #e8eef5;
    }

    .planner-print-sheet {
        background: #fff;
        padding: 6px;
        box-shadow: 0 2px 12px rgba(16, 59, 111, 0.12);
        min-height: 720px;
        height: auto;
    }

    .print-aerial-fill {
        min-height: 220px;
    }
}

@media print {
    .planner-print-sheet {
        height: 190mm;
        min-height: 190mm;
    }
}
