body {
   /* overflow-y: scroll !important;*/
}

.word-document-container{
    position: relative;
    bottom: 40px !important;
    height: max-content;
    zoom: 1.25;
     background-color: #767171
}

.word-document-sub-container {
    position: relative;
    top: 40px;
    padding-bottom: 80px;
    background-color: #767171
}


.word-document, .title-page-container{
            background-color: #ffffff;
            max-width: 8.5in;
            min-height: 11in;
            margin: 2rem auto;
            padding: 1.75cm;
            box-shadow: 0 0 10px #262626;
            overflow: hidden;
            position: relative;
            border-radius: 4px;
            font-family: "Trebuchet MS";
            font-size: 14px;
        }



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

.title-page header,
.title-page footer {
    display: none;
}

.classification{

    font-size: 10px;
    font-style: italic;
}

.portrait .title_image {
    position: absolute;
    right: -18.4cm;
    width: 406mm !important;
    top: 0cm;
    max-width: 410mm;

}

.landscape .title_image{
    position: absolute;
    right: -2.4cm;
    width: 354mm !important;
    top: 0cm;
    max-width: 313mm;

}

.landscape-page-content{
    height: 15cm;
}

.portrait-page-content{
    height: 22cm;
}

.header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    height: 50px
}

.logo {
    height: 50px;
    width: 292px;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

main {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

.word-document-container footer {
    position: absolute !important;
    bottom: 1in !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
}

.portrait-word-document-container footer {
    width: 83% !important;
     bottom: 0.5in !important;
}

.landscape-word-document-container footer {
    width: 87% !important;
     bottom: 0.7in !important;
}

.doc-name,
.page-number {
    margin: 0;
    padding: 0;
}

.title-page-container .header{
    display: none;
}

.title-page-container{
     padding: 0cm !important;
}

.portrait .document-details{
    position: absolute;
    top: 13cm;
    left:1cm !important

}

.landscape .document-details{
    position: absolute;
    top: 10cm;
    left: 2cm;
}

.grid-landscape{
    height: 15cm;
}


.grid-portrait{
    height: 22cm;
}

.document-title {
    color: var(--tnp_dark_blue0)
}

/* Portrait page layout */
.portrait {
    max-width: 8.5in;
    min-height: 11in;
}

/* Landscape page layout */
.landscape {
    max-width: 11in;
    min-height: 8.5in;
}


.title-date {
        font-style: italic;
    }

    .figure-title {
        font-style: italic;
        font-size: 13px;
    }

.commentary {
    text-align: justify;
    color: rgb(58, 56, 56);
    font-size: 16px;
    resize: none;
    width: 100%;
    overflow: hidden;
}


@media print {
    body {
        background-color: #ffffff;
    }

    .document_controls{
        display: none;
    }

    .title_image {
        display: none;
    }

    .word-document {
        box-shadow: none;
        margin: 0;
    }

    .landscape .figure-title {
        display: none
    }

    .portrait.title-page-container{
        zoom: 0.9;
    }

    .word-document-container{
        position: static;
        background-color: white;
        bottom: 0px !important;
        padding: 0 !important;
    }

    .landscape .graph-figure {
        zoom: 1.15
    }

    .landscape-word-document-container{
        zoom: 1.03;
    }

    .portrait-word-document-container{
        zoom: 1.18;
    }

    .word-document-sub-container {
        position: static;
        padding-bottom: 0px;

    }

    .word-document {
        padding: 0;
    }


    .portrait-word-document-container footer {
        width: 100% !important;
        bottom: 0in !important;
    }

    .landscape-word-document-container footer {
        width: 100% !important;
        bottom: 0 !important;
    }

    .grid-landscape{
        width: 100% !important;
    }


    .landscape{
        left:2cm !important
    }

    .

    .landscape .document-details{
        position: absolute;
        top: 8cm;
        left: 0in !important;
    }

    .portrait .document-details{
        position: absolute;
        left: 0in !important;
    }

    .page:not(:first-child), .page:not(:last-child){
        page-break-before: always;
    }

    .page:last-child {
        page-break-before: avoid;
    }

    .page:first-child {
        page-break-before: avoid;
    }

    .title-page-container .header {
        display: block;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }



    .grid-landscape{
        position: relative;
             height: 19cm;
    }

    .landscape-page-content{
    height: 19cm;
    }
    .grid-portrait{
        position: relative;
             height: 25cm;
    }

    .portrait-page-content{
    height: 25cm;
    }
}













