﻿/* Use flex layout on the page to the footer stays at the bottom and the content expands vertically */

#mainPage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#mainContent {
    flex: 1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    min-height: 300px;
}

h2 {
    margin-top: 0;
}

img {
    max-width: 100%;
    max-height: 100%
}


.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .breadcrumb-line .breadcrumb {
        margin-top: 0.5rem;
    }

    .breadcrumb-line #divPrint {
        margin-top: 2px;
    }

@media (max-width: 768px) {
    .breadcrumb-line #divPrint {
        margin-bottom: 1rem;
    }
}

.title-and-sidebar-wrapper {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .title-and-sidebar-wrapper .title-block {
        flex-grow: 2;
        margin-bottom: 1rem;
        max-width: 890px;
    }

.sidebar {
    margin-bottom: 16px;
}

a.NoLink {
    color: #212529;
    text-decoration: none;
}

.gray-box {
    background-color: #e6eaea;
    border-radius: 8px;
    padding: 16px;
    margin-top: 0;
}

    .gray-box p {
        text-wrap: nowrap;
    }

        .gray-box p:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
        }

    .gray-box span {
        padding-right: 8px;
    }

.title-wrapper {
    display: flex;
}

    .title-wrapper > a {
        height: min-content;
        margin-top: 4px;
        margin-right: 10px;
    }

    .title-wrapper div {
        margin: 8px 0 0 10px;
    }

        .title-wrapper div span {
            margin-right: 10px;
        }


.title-and-box {
    display: flex;
    flex-direction: row;
}

    .title-and-box #divChapterDispoLinks {
        background-color: gray;
        border-radius: 8px;
    }

.search-form {
    margin-bottom: 1rem;
}

    .search-form input.search-term {
        width: 270px;
    }

    .search-form .lookup-inputs {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

.search-hints {
    margin-top: 2px;
    margin-left: 0;
    padding: 0px 20px 20px 0px;
}

    .search-hints ul {
        background-color: #e3e7e4;
        border: 1px solid #c7c6c3;
        list-style: none;
        margin-left: 0;
        padding: 0;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
        min-width: 250px;
    }

        .search-hints ul li {
            width: 100%;
        }

            .search-hints ul li a {
                background-color: #e3e7e4;
                color: #012E2A;
                padding: 5px 20px;
                display: inline-block;
                width: 100%;
            }

                .search-hints ul li a:focus,
                .search-hints ul li a:focus-visible,
                .search-hints ul li a:hover,
                .search-hints ul li a:active {
                    color: #012E2A;
                    background-color: #FAD51D;
                    border-color: #FAD51D;
                    text-decoration: underline;
                    text-decoration-color: #012E2A;
                }

.chapter-page table:first-of-type tbody tr td {
    padding-top: 5px;
}

    .chapter-page table:first-of-type tbody tr td:first-child {
        padding-top: 0;
        padding-right: 10px;
    }

        .chapter-page table:first-of-type tbody tr td:first-child a.btn {
            margin-right: 5px;
        }




/* Print screens ----------- */
@media print /*1824/16*/
{
    .hidden-print, .hidden-print * {
        display: none !important;
    }

    /* Don't display header/footer/nav for printing */
    #mobileHeader, .publicSiteFooter, .desktopSideNavParentContainer, div[id$="pnlPrevNext"], #divBreadCrumb, #aPrint {
        display: none !important;
    }

    .contentContainer {
        margin-left: 0em;
        display: block
    }

    body, body * {
        max-width: 100% !important; /* have to set otherwise FF prints blank page and IE only shows one page*/
        -ms-overflow-y: hidden !important; /*have to set for IE only get extra blank pages at the end.*/
        -ms-overflow-x: hidden !important; /*have to set for IE only get extra blank pages at the end.*/
    }

    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
    }

    #contentWrapper div {
        -ms-overflow-y: visible !important; /*have to set for IE so content doesn't get truncated (this happens because of a -0.25 indent and left margin 24 px*/
        -ms-overflow-x: visible !important; /*have to set for IE so content doesn't get truncated (this happens because of a -0.25 indent and left margin 24 px*/
    }

    #mainPage {
        min-height: auto !important; /* An extra blank page was showing due to an explicit min height */
    }

    .ui-btn, #wsl-header, footer {
        display: none;
    }

    a.btn {
        display: none;
    }
}
