﻿

@media print {
    /* Reset and basic settings */
    body
    {
        padding: 0 !important;
        margin: 0 !important;
        background-color: #fff !important;
        font-size: 12pt !important;
    }


    .content-wrapper-full {
        margin: 0 !important;
        padding-top: 0.5rem !important;
    }


/* Game header styling */
    .game-header {
        text-align: center !important;
        font-weight: bold !important;
        font-size: 8pt !important;
        padding-top: 1mm !important;
        border: none;
    }


    .game-container {
        /*margin: 10mm 0 5mm 0 !important;*/
        margin: 3mm 0 2mm 0 !important;
        border: solid 1px #ccc !important;
        padding: 1px;
        border-radius: 5px;
        page-break-inside: avoid; /* Avoid breaking inside this element */
    }


    /* PlayerGameResult styling overrides */
    .game-result {
        width: 100%;
        font-weight: bold;
        padding-left: 60px;
        padding-top: 10px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }


    /* Player row styling */
    .print-player-row {
        margin: 2mm 0 !important;
        page-break-inside: avoid !important;
    }

    /* Player name and ID styling */
    .print-player-name {
        font-weight: bold !important;
        font-size: 10pt !important;
        color: black !important;
    }

    .print-player-id {
        font-size: 10pt !important;
        color: #444 !important;
        margin-bottom: 3px !important;
    }

    /* VS styling in center */
    .print-vs {
        text-align: center !important;
        font-weight: bold !important;
        font-size: 12pt !important;
        padding-top: 20px !important;
        color: #777 !important;
    }

    /* Score styling */
    .print-score {
        font-weight: bold !important;
        font-size: 10pt !important;
        margin-top: 2mm !important;
        color: #000;
    }

    /* Template-specific elements to hide */
    .d-print-none,
    nav,
    footer,
    .game-contact-info,
    #debug-matchlist {
        display: none !important;
    }

    /* Elements to show */
    .d-print-block {
        display: block !important;
    }

    /* Header styling */
    .print-header {
        text-align: center !important;
        margin-bottom: 5mm !important;
        padding-bottom: 2mm !important;
        border-bottom: 1px solid #000 !important;
    }

        .print-header h3 {
            font-size: 12pt !important;
            margin: 2mm 0 !important;
        }

    /* Footer styling */
    .print-footer {
        margin-top: 8mm !important;
        border-top: 1px solid #000 !important;
        padding-top: 3mm !important;
        text-align: center !important;
        font-size: 10pt !important;
    }

}
