/*
 * HoFi Billard
 * Par-stafet Classic print v2.0
 *
 * Designmaster: Hold Classic.
 * Indholdsreference: Par stafet Turnering efterår 2025.
 */

.par-stafet-classic-shell {
    max-width: 940px;
}

.par-stafet-classic-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.par-stafet-classic-page {
    position: relative;

    width: 210mm;
    min-height: 297mm;

    margin: 0 auto 24px;
    padding: 10mm 12mm 8mm;

    box-sizing: border-box;

    background: #fff;
    color: #111;

    font-family: Arial, Helvetica, sans-serif;

    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.par-stafet-classic-page h1 {
    margin: 0 0 9mm;

    text-align: center;

    color: #111;

    font-size: 19pt;
    line-height: 1.05;
    font-weight: 700;
}

.par-stafet-classic-fixtures {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;

    color: #111;
}

.par-stafet-classic-fixtures th,
.par-stafet-classic-fixtures td {
    padding: 0.75mm 1mm;

    border: 0;

    font-size: 10pt;
    line-height: 1.08;

    text-align: left;
    vertical-align: middle;
}

.par-stafet-classic-fixtures th {
    font-weight: 700;
}

.par-stafet-classic-fixtures .psc-match {
    width: 13mm;

    color: #f00;

    text-align: center;
}

.par-stafet-classic-fixtures .psc-day {
    width: 16mm;
}

.par-stafet-classic-fixtures .psc-date {
    width: 23mm;
}

.par-stafet-classic-fixtures .psc-time {
    width: 18mm;
}

.par-stafet-classic-fixtures .psc-table {
    width: 13mm;

    text-align: center;
}

.par-stafet-classic-fixtures .psc-vs {
    width: 12mm;
}

.psc-match-no {
    color: #f00;

    font-weight: 700;
    text-align: center !important;
}

.psc-table-no,
.psc-versus {
    text-align: center !important;
}

.psc-week td {
    padding-top: 1.05mm;
    padding-bottom: .2mm;

    font-weight: 700;
}

.psc-week td:nth-child(3) {
    text-align: center;
}

.psc-team-name {
    white-space: nowrap;
}

.par-stafet-classic-notes {
    margin: 7mm 1mm 0;

    color: #111;

    font-size: 10pt;
    line-height: 1.35;
}

.par-stafet-classic-notes strong {
    display: block;
    margin-bottom: 1.5mm;
}

.par-stafet-classic-notes div {
    margin-left: 14mm;
}

.par-stafet-classic-bottom {
    position: absolute;

    left: 12mm;
    right: 12mm;
    bottom: 8mm;
}

.par-stafet-classic-pairs {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;

    color: #111;
}

.par-stafet-classic-pairs th,
.par-stafet-classic-pairs td {
    padding: .55mm .7mm;

    border: 0;

    font-size: 9.5pt;
    line-height: 1.08;

    text-align: left;
    vertical-align: middle;
}

.par-stafet-classic-pairs th {
    font-weight: 700;
}

.par-stafet-classic-pairs th:nth-child(1) {
    width: 17%;
}

.par-stafet-classic-pairs th:nth-child(2),
.par-stafet-classic-pairs th:nth-child(5) {
    width: 16%;
}

.par-stafet-classic-pairs th:nth-child(3),
.par-stafet-classic-pairs th:nth-child(4),
.par-stafet-classic-pairs th:nth-child(6),
.par-stafet-classic-pairs th:nth-child(7) {
    width: 7%;
}

.par-stafet-classic-pairs th:nth-child(8) {
    width: 8%;
}

.psc-num {
    text-align: right !important;
    white-space: nowrap;
}

.psc-pair-name,
.psc-total {
    font-weight: 700;
}

.par-stafet-classic-reminder {
    margin-top: 6mm;

    color: #f00;

    text-align: center;

    font-size: 15pt;
    line-height: 1.1;
    font-weight: 700;
}

.par-stafet-classic-empty {
    padding: 40px;
    text-align: center;
}


/* ============================================================
   PRINT
   ============================================================ */

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
    }

    .site-header,
    .site-menu,
    .main-nav,
    .site-footer,
    .no-print {
        display: none !important;
    }

    main,
    .container,
    .par-stafet-classic-shell {
        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .par-stafet-classic-page {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;

        margin: 0 !important;
        padding: 10mm 12mm 8mm !important;

        box-shadow: none !important;

        break-after: page;
        page-break-after: always;
    }

    .par-stafet-classic-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .par-stafet-classic-fixtures,
    .par-stafet-classic-pairs {
        background: #fff !important;
    }

    .par-stafet-classic-fixtures th,
    .par-stafet-classic-fixtures td,
    .par-stafet-classic-pairs th,
    .par-stafet-classic-pairs td {
        color: #111 !important;
    }

    .psc-match-no,
    .par-stafet-classic-fixtures .psc-match,
    .par-stafet-classic-reminder {
        color: #f00 !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}


/* v3.0 - fast CSS Grid til spilleroversigten */
.par-stafet-player-grid{
    display:grid!important;
    grid-template-columns:
        40mm 30mm 14mm 14mm 7mm
        30mm 14mm 14mm 23mm!important;
    width:186mm!important;
    color:#111;
    font-family:Arial,Helvetica,sans-serif;
    font-size:9.5pt;
    line-height:1.08;
    align-items:baseline;
}
.par-stafet-player-grid > .psg-head,
.par-stafet-player-grid > .psg-cell{
    box-sizing:border-box;
    min-width:0;
    padding:.55mm .7mm;
}
.par-stafet-player-grid > .psg-head{font-weight:700}
.par-stafet-player-grid > .psg-cell{font-weight:400}
.par-stafet-player-grid > .num{
    text-align:right!important;
    white-space:nowrap;
    padding-right:1.2mm!important;
}
.par-stafet-player-grid > .team{
    font-weight:700;
    white-space:nowrap;
}
.par-stafet-player-grid > .total{font-weight:700}
.par-stafet-player-grid > .psg-gap{
    width:7mm!important;
    min-width:7mm!important;
    padding:0!important;
}
@media print{
    .par-stafet-player-grid{
        display:grid!important;
        grid-template-columns:
            40mm 30mm 14mm 14mm 7mm
            30mm 14mm 14mm 23mm!important;
        width:186mm!important;
    }
}
