﻿@page {
    size: auto;
    margin: 5mm;
}

/* Fixes mozilla minimum margins bug */
@-moz-document url-prefix() {
    @page {
        size: auto;
        margin: 20mm 20mm 20mm 20mm;
    }
}

img {
    max-width: 100%;
    height: auto !important
}

img:first-child,
img.qrcode {
    max-height: 210px;
    max-width: 100%;
}

.qr-code-small {
    float: right;
    width: 50px;
    height: 50px;
}

.qr-code-small span {
    font-size: 7px;
    word-break: break-word;
}

.qr-code-small+img {
    height: auto;
    max-width: calc(100% - 100px) !important;
    margin-left: 50px !important;
}


.qr-code {
    width: 50vw;
}


@media (min-width: 768px) {
    .qr-code {
        width: auto;
    }
}

_:-webkit-full-screen:not(:root:root) {
    max-height: 75px
}

br {
    content: '';
    display: block;
}

/* Safari 9.0+ (non-iOS) */
_:-webkit-full-screen:not(:root:root),
br {
    margin-top: 7px;
}

.list-group-item {
    padding-bottom: 5px;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.page-break {
    margin: 0;
    padding: 0;
    position: relative;
    transform-origin: top center;
}

#add-to-wallet-section {
    border: 0;
}

.add-to-wallet-img-apple {
    min-height: 55px;
    margin: 8px;
}

.add-to-wallet-img-google {
    min-height: 48px;
    margin: 8px;
}

@media print {

    html,
    body {
        height: auto;
        width: auto;
    }

    _:-webkit-full-screen:not(:root:root) {
        max-height: 75px
    }

    br {
        margin-top: 8px;
        content: '';
        display: block;
    }

    /* Safari 9.0+ (non-iOS) */
    _:-webkit-full-screen:not(:root:root),
    br {
        margin-top: 7px;
    }

    .qr-code-small {
        float: right !important;
        width: 50px;
        height: 50px;
    }

    .qr-code-small+img {
        position: relative;
        /*max-height: 50px !important;*/
        height: auto !important;
        max-width: calc(100% - 100px) !important;
        height: auto;
        margin-left: 50px !important;
    }

    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
        float: none;
    }

    .col-sm-12 {
        width: 100%;
    }

    .col-sm-11 {
        width: 91.66666666666666%;
    }

    .col-sm-10 {
        width: 83.33333333333334%;
    }

    .col-sm-9 {
        width: 75%;
    }

    .col-sm-8 {
        width: 66.66666666666666%;
    }

    .col-sm-7 {
        width: 58.333333333333336%;
    }

    .col-sm-6 {
        width: 50%;
        display: inline-block !important;
        width: 49%;
        float: none;
    }

    .col-sm-5 {
        width: 41.66666666666667%;
    }

    .col-sm-4 {
        width: 33.33333333333333%;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-2 {
        width: 16.666666666666664%;
    }

    .col-sm-1 {
        width: 8.333333333333332%;
    }

    .page-break {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .print-page {
        page-break-after: always;
        page-break-inside: avoid;
    }

    /* safari does not page-break properly if a parent has a float and/or has a width */
    .tickets.col-xs-12 {
        float: none !important;
    }

    .qr-code {
        width: 1.25in;
    }
}