/*
 * App-spezifisches CSS für das VCÖ-Jury-Tool.
 * Wird vom Kratos-Layout automatisch geladen, sobald die Datei existiert.
 *
 * Deckblatt der Einreichung (calculated field `deckblatt`):
 *  - am Bildschirm ausgeblendet
 *  - der Button "Deckblatt" druckt es allein in einem eigenen Dokument (body.deckblatt-print)
 *  - beim normalen Drucken einer Ansicht steht es oben, alle `.print-hidden`-Felder verschwinden
 */

@media screen {
    body:not(.deckblatt-print) .deckblatt {
        display: none !important;
    }
}

@media print {
    @page {
        margin: 15mm;
    }

    .print-hidden,
    .noprint,
    .d-print-none {
        display: none !important;
    }

    body.deckblatt-print {
        margin: 0;
        background: #fff;
    }

    .deckblatt {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        color: #000;
        background: #fff;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    .deckblatt header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 8px;
        margin-bottom: 12px;
        border-bottom: 2px solid #000;
    }

    .deckblatt #vcoelogo img {
        display: block;
        max-height: 60px;
        width: auto;
    }

    .deckblatt #kat {
        flex: 1;
        padding: 0 12px;
    }

    .deckblatt #pnr {
        text-align: right;
        white-space: nowrap;
    }

    .deckblatt .rahmen {
        padding: 8px 10px;
        margin-bottom: 10px;
        border: 1px solid #000;
        page-break-inside: avoid;
        white-space: pre-line;
    }

    .deckblatt .rahmen dl {
        display: grid;
        grid-template-columns: 12em 1fr;
        gap: 2px 8px;
        margin: 0 0 4px 0;
        white-space: normal;
    }

    .deckblatt .rahmen dt {
        font-weight: bold;
    }

    .deckblatt .rahmen dd {
        margin: 0;
    }

    .deckblatt .h2 {
        margin: 0 0 4px 0;
        font-size: 12pt;
        font-weight: bold;
    }

    .deckblatt p {
        margin: 0;
    }
}
