﻿body {
    width: auto;
    height: auto;
}

.page-header, .page-header-space {
    height: 350px;
}

.page-footer, .page-footer-space {
    bottom: 0;
    position:absolute;
    display:block;
    padding-left: 180px;
    width: 100%;
    height: 1em;
    float: left;
    text-align: left;
    margin: auto;
}

.footer-signature {
    bottom: 40px;
    position: fixed;
    height: auto;
}

.footer-date-printed {
    bottom: 35px;
    position: fixed;
    height: auto;
    display: inline;
    margin: 30px;
    padding-left: 150px;
}

.footer-date {
    height: 20%;
    bottom: 0;
}

.signature-image {
    width: 20% !important;
    height: 20%;
    bottom: 0;
}

.footer-items {
    text-align: center;
    height: 20%;
}

.page-footer-td {
    border: none !important;
}

.page-header {
    display: none;
}

.page-footer-image {
    display: hidden;
}

.table-header {
    color: #000;
    text-align: left !important;
}

.table-header-CE {
    color: #000;
}

.cert-grid {
    display: grid;
    margin: auto;
    text-align: center;
}

form {
    background: whitesmoke;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px, rgb(0 0 0 / 30%) 0px 1px 3px -1px;
    margin: auto;
}

form, input {
    width: 50%;
    max-width: 35rem;
    height: auto;
}

hr {
    border-top: 1px solid lightgrey;
    width: 50%;
    margin: 5px !important;
}


img {
    max-width: 100%;
    height: auto;
    margin: auto;
}

.cert-main-container {
    padding-top: 10px;
    margin: auto;
    display: grid;
    grid-template-rows: 1fr;
    grid-gap: 4rem;
}

.display-table {
    margin: auto;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: center;
}

    .display-table th {
        font-weight: bold;
        border-collapse: collapse;
        text-align: left;
        padding: 5px;
    }

    .display-table td {
        padding: 5px;
        border-collapse: collapse;
        text-align: left;
    }

.total-footer {
    display: grid;
    grid-template-columns: 80% 20%;
    justify-items: right;
}

.total-footer-item {
    display: grid;
    font-weight: bold;
}

.totalCount {
    text-align: center !important;
    /*    border: 0 !important;
    border: none !important;*/
}

.total-CE {
    text-align: left !important;
}

.page-header-grid {
    display: grid;
    grid-template-areas: "img content na"
        "h2 h2 h2";
    grid-template-columns: 30% 40% 30%;
    grid-gap: 10px;
}

.page-header-image {
    display: none;
}

.page-header-content {
    grid-area: content;
    text-align: center;
    font-weight: bold;
    justify-self: center;
    align-self: center;
    font-size: 20px;
}

.header-content {
    text-align: right;
    width: 60%;
}

.addressee {
    text-align: left;
    width: 60%;
}

.page-header-title {
    text-align: center;
    padding-top: 0px;
}

.page-header-title-person {
    display: grid;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
}

.user-name-non-print {
    border: none !important;
}

.page {
    line-height: 2;
    width: calc(100vw - 50px);
    margin: auto;
}

.session-table {
    width: 100%;
    margin: auto;
}

    .session-table tr {
        border-bottom: 2px solid #cecece;
    }


.btn-primary {
    color: #fff;
    background-color: #14AC81 !important;
    border-color: #14AC81 !important;
    position: relative;
}

    .btn-primary:hover {
        background-color: #8dd1c1 !important;
        border-color: #8dd1c1 !important;
    }


.user-name {
    text-align: left;
    width: 60%;
}

tfoot {
    display: table-footer-group;
}

.print-sessions {
    border: none !important;
}

.download-cert {
    border: none !important;
}

.mainLogo {
    width: 70%
}


@media print {

    .header-content {
        text-align: right;
        padding-right: 0px;
        width:100%;
    }

    .addressee {
        text-align: left;
        padding-left: 0px;
        width: 100%;
    }

    .user-name {
        text-align: left;
        padding-left: 0px;
        width: 100%;
    }

    .mainLogo {
        padding-left: 0px;
        width: 100%;
    }

    .non-print-content {
        display: contents;
    }

    /*html {
        zoom: 80% !important;
    }*/

    .btn.btn-primary {
        display: none;
    }

    .print-content {
        display: block;
        /* This may need to change */
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    tbody {
    }

    body {
        -webkit-print-color-adjust: exact;
        -webkit-align-items: center;
    }

    .display-table {
        margin: auto;
        table-layout: fixed;
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        text-align: center;
    }

        .display-table th {
            font-weight: bold;
            border-collapse: collapse;
            text-align: center;
            padding: 5px;
        }

        .display-table td {
            padding: 5px;
            border-collapse: collapse;
            text-align: left;
        }


    .btn-primary {
        display: none;
    }

    .table-header {
        text-align: left !important;

    }

    .table-header-CE {
        
    }

    .page-footer, .page-footer-space {
        width: 100%;
        text-align: left;
        padding-left: 0px;
        height: auto;
    }

    hr {
        border-top: 2px solid black;
        width: 100%;
        margin: 5px !important;
        text-align: center;
    }

    .img-sig {
        width: 50%;
    }

    .footer-name {
        text-align: center;
    }

    img {
        max-width: 100%;
        height: auto;
        margin: auto;
    }

    .mainLogo {
        max-width: 100%;
        height: auto;
        margin: auto;
    }

    h2 {
        display: block;
    }
}
