/* Print Showtimes (2026-11-10) - every location (shared-assets/print-showtimes.php).
   Loaded AFTER print-20230331.css, which keeps the old special rules (Morley's blue Grande times, etc.).
   Two equal columns, black centered header, light-grey Starting / Leaving bar, alternating rows. */
:root {
    --ps-ink: #000;
    --ps-head: #000;
    --ps-head-text: #fff;
    --ps-bar: #dcdcdc;
    --ps-row-alt: #e2e2e2;
    --ps-row: #fff;
    --ps-gap: 0.28in;
}

@page { size: letter portrait; margin: 0.45in 0.5in; }

/* Fixed sizes: the page is always one sheet of paper wide (7.6in); a phone scales the whole thing down
   (viewport width=780 in print-showtimes.php) instead of squeezing it, so nothing ever wraps or overlaps. */
html, body, body.randomBg {
    width: 7.6in !important;
    min-width: 7.6in !important;
    max-width: 7.6in !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #fff !important;
    color: var(--ps-ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
@media screen { body { padding: 24px 0 !important; box-sizing: content-box; } }

div { float: none !important; }

.theatretext {
    white-space: nowrap;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; /* (5 quick taps) */
    font-size: 22pt;
    font-weight: 700;
    padding: 0 0 12pt;
    margin: 0;
}

.printShowtimesHolder {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.22in var(--ps-gap);
    align-items: start;
    width: 100%;
    .leavingFilms, .row, .showtimestable, .columns { display: contents; }
    .posterdiv, .reveal-modal, iframe, .view-more { display: none !important; }
    .veeziMovie {
        display: block !important;
        break-inside: avoid;
        page-break-inside: avoid;
        min-width: 0;
    }
}

table.showtimes {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border: 2px solid var(--ps-ink) !important;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 10.5pt;
    margin: 0 !important;
    table-layout: fixed;

    td.movietitle {
        background: var(--ps-head) !important;
        color: var(--ps-head-text) !important;
        font-weight: 700;
        font-size: 12pt;
        text-align: center !important;
        white-space: nowrap;
        overflow: hidden;
        padding: 4pt 6pt !important;
        line-height: 1.25;
        span { white-space: nowrap; }
        .rating { margin: 0 0.7em 0 0.35em; }
    }

    td.moviesubtitle {
        background: var(--ps-bar) !important;
        color: var(--ps-ink) !important;
        font-weight: 700;
        font-size: 11pt;
        text-align: center;
        padding: 2pt 6pt !important;
        line-height: 1.45;
        &.blue { background: darkblue !important; color: #fff !important; } /* Morley: "Grande Auditorium Times in Blue" */
    }

    tr.st td { background: var(--ps-row) !important; }
    tr.st.ps-alt td { background: var(--ps-row-alt) !important; }

    col.ps-dcol { width: 27%; }
    td.dates {
        font-size: 10pt;
        padding: 2.5pt 0 2.5pt 7pt !important;
        white-space: nowrap;
        i { font-style: italic; }
    }
    td.times {
        font-size: 10pt;
        padding: 2.5pt 4pt !important;
        word-spacing: normal;
        white-space: nowrap; /* a day's times always on one line */
        .showtime { margin-right: 0.7em; white-space: nowrap; display: inline-block; }
        a { text-decoration: none !important; cursor: default !important; } /* color: black from the old sheet; Morley's Grande times stay white on blue */
        .aud1 a { padding: 0 2px; }
    }
}
