/*
 * HoFi Billard
 * Hold Classic print v1.0
 *
 * Målet er bevidst at gengive den gamle Hold-turneringsudskrift:
 * - hvid A4
 * - sort tekst
 * - røde kampnumre
 * - ingen bokse eller moderne cards
 * - holdoversigt nederst på hver side
 */

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

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

.hold-classic-page {
    position: relative;

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

    margin: 0 auto 24px;
    padding: 10mm 15mm 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);
}

.hold-classic-page h1 {
    margin: 0 0 12mm;

    text-align: center;

    color: #111;

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

.hold-classic-program {
    width: 100%;
}

.hold-classic-fixtures {
    width: 100%;

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

    color: #111;
}

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

    border: 0;

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

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

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

.hold-classic-fixtures .hc-match {
    width: 14mm;

    color: #f00;

    text-align: center;
}

.hold-classic-fixtures .hc-day {
    width: 18mm;
}

.hold-classic-fixtures .hc-date {
    width: 24mm;
}

.hold-classic-fixtures .hc-time {
    width: 20mm;
}

.hold-classic-fixtures .hc-table {
    width: 15mm;
    text-align: center;
}

.hold-classic-fixtures .hc-vs {
    width: 13mm;
}

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

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

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

.hc-week td {
    padding-top: 1.2mm;
    padding-bottom: .3mm;

    font-weight: 700;
}

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

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

.hold-classic-notes {
    margin: 12mm 1mm 0;

    color: #111;

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

.hold-classic-notes strong {
    display: block;
    margin-bottom: 2mm;
}

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

.hold-classic-bottom {
    position: absolute;

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

.hold-classic-teams {
    width: 100%;

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

    color: #111;
}

.hold-classic-teams th,
.hold-classic-teams td {
    padding: .55mm .7mm;

    border: 0;

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

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

.hold-classic-teams th {
    font-weight: 700;
}

.hold-classic-teams th:nth-child(1) {
    width: 21%;
}

.hold-classic-teams th:nth-child(2),
.hold-classic-teams th:nth-child(4),
.hold-classic-teams th:nth-child(6) {
    width: 15%;
}

.hold-classic-teams th:nth-child(3),
.hold-classic-teams th:nth-child(5),
.hold-classic-teams th:nth-child(7) {
    width: 6.5%;
}

.hc-num {
    text-align: right !important;
}

.hold-classic-reminder {
    margin-top: 7mm;

    color: #f00;

    text-align: center;

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

.hold-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,
    .hold-classic-shell {
        width: auto !important;
        max-width: none !important;

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

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

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

        box-shadow: none !important;

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

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

    .hold-classic-fixtures,
    .hold-classic-teams {
        background: #fff !important;
    }

    .hold-classic-fixtures th,
    .hold-classic-fixtures td,
    .hold-classic-teams th,
    .hold-classic-teams td {
        color: #111 !important;
    }

    .hc-match-no,
    .hold-classic-fixtures .hc-match,
    .hold-classic-reminder {
        color: #f00 !important;

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


/* ============================================================
   v2.0 FAST CSS GRID TIL HOLDOVERSIGT
   Samme godkendte metode som Par, Dobbelt-par og Hold-stafet.
   ============================================================ */

/*
 * Total = præcis 180 mm.
 *
 * Holdnavn   40 mm
 * Spiller 1  30 mm
 * Dist.      14 mm
 * Luft        4 mm
 * Spiller 2  30 mm
 * Dist.      14 mm
 * Luft        4 mm
 * Spiller 3  30 mm
 * Dist.      14 mm
 * ----------------
 *            180 mm
 */
.hold-classic-team-grid{
    display:grid!important;
    grid-template-columns:
        36mm
        24mm 10mm 11mm 4.5mm
        24mm 10mm 11mm 4.5mm
        24mm 10mm 11mm!important;
    width:180mm!important;
    color:#111;
    font-family:Arial,Helvetica,sans-serif;
    font-size:9.5pt;
    line-height:1.12;
    align-items:baseline;
}

.hold-classic-team-grid > .hcg-head,
.hold-classic-team-grid > .hcg-cell{
    box-sizing:border-box;
    min-width:0;
    padding:.55mm .7mm;
}

.hold-classic-team-grid > .hcg-head{
    font-weight:700;
}

.hold-classic-team-grid > .hcg-cell{
    font-weight:400;
}

.hold-classic-team-grid > .num{
    text-align:right!important;
    white-space:nowrap;
    padding-right:1.2mm!important;
}

.hold-classic-team-grid > .team{
    font-weight:700;
    white-space:nowrap;
}

.hold-classic-team-grid > .hcg-gap{
    width:4.5mm!important;
    min-width:4.5mm!important;
    padding:0!important;
}

@media print{
    .hold-classic-team-grid{
        display:grid!important;
        grid-template-columns:
        36mm
        24mm 10mm 11mm 4.5mm
        24mm 10mm 11mm 4.5mm
        24mm 10mm 11mm!important;
        width:180mm!important;
    }
}


/* v2.4 - startsnit + distanceformel */
.hold-classic-distance-formula{
    margin-top:3.2mm;
    text-align:center;
    font-size:7.8pt;
    line-height:1.15;
    color:#222;
}
.hold-classic-distance-formula strong{font-weight:700}
.hold-classic-reminder{margin-top:3.5mm}
