@media (max-width: 767px) {

    /* GLOBAL */

    .container-fluid {
        padding-left: 0;
        padding-right: 0
    }

    .modal-dialog {
        margin: 10px auto;
    }
    /* END GLOBAL */

    /* HEADER */
    .logo {
        height: 35px;
        padding-top: 15px;
        padding-right: 15px;
        padding-left: 5px;
    }

    .headerTitle {
        width: 55%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #dropdown_toggle_button {
        margin-right: 5px;
        padding: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar-nav > li > a {
        margin: 5px 20px 0 0;
        padding: 3px 10px !important;
    }
    /* END HEADER */

    /* LANDING PAGE */
    #content_row {
        margin-top: 10px;
        margin-right: 5px;
        margin-left: 5px;
    }

    .jumbotron .h1, .jumbotron h1 {
        font-size: 25px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .btn-start-search {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    @media (max-width: 500px) {
        .jumbotron {
            margin-bottom: 0;
            width: 100%;
            height: calc(100% - 102px);
            background-color: #f8f8f8;
        }
    }
    /* END LANDING PAGE */

    /* BID DETAIL */
    .txt-bid-detail-item-title, .txt-bid-detail-item-value {
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
    }

    .bid-detail-section-title {
        padding-left: 0;
    }

    #modal_bid_detail .panel-default > .panel-heading {
        padding-left: 5px;
    }

    #bidDetailBody .panel-body .row {
        padding-bottom: 15px;
    }

    .txt-last-updated {
        margin-right: 10px;
        margin-left: 15px;
        text-align: left;
        margin-bottom: 10px;
    }

    #modal_bid_detail .modal-dialog {
        width: 96%;
    }

    #modal_bid_detail .modal-title {
        line-height: 2em;
        font-size: .9em;
    }

    .txt-detail-deeplink {
        margin-left: 0;
    }
    /* END BID DETAIL */

    /* SEARCH FORM */
    #form_search {
        margin-top: 40px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .search-bar {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* END SEARCH FORM */

    /* FAQ MODAL */
    #modal_faq .modal-dialog {
        width: 90%;
    }

    .faq-gray {
        margin: 0;
    }

    .faq-white {
        margin: 0;
    }
    /* END FAQ MODAL */

    /* FOOTER */
    footer .pb-copyright {
        font-size: .6em;
        margin-bottom: 2px;
    }

    .pb-copyright-logo {
        height: 20px;
        width: 40px;
        margin-top: -1px;
    }

    footer {
        padding: 0 10px;
    }

    footer .pb-tooltip {
        display: inline;
        color: #0B6FB0;
        font-size: .6em;
    }

    .pb-horizontal-list {
        margin-top: 0;
    }
    /* END FOOTER */

}

/* SEARCH FORM */
@media (max-width: 1200px) {
    #form_search .row.col-lg-7 {
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    #div_search_bar {
        height: auto !important;
    }
}
/* END SEARCH FORM */

/* AGENCIES MULTICHOOSER */
@media (max-width: 1100px) {
    #modal_agencies .modal-dialog {
        width: 70%;
    }
}

@media (max-width: 700px) {
    #modal_agencies .modal-dialog {
        width: 96%;
        height: 100%;
    }
}

@media (max-width: 414px) {
    .ms-container .ms-selectable, .ms-container .ms-selection {
        width: 100%;
    }

    .ms-container {
        background: transparent url('../js/packages/multiselect/img/switch.png') no-repeat 50% 55%;
    }
}

@media (max-height: 568px) and (max-width: 414px) {
    #modal_agencies .modal-body {
        padding-left: 0;
        padding-right: 0;
        height: calc(100vh - 150px);
        overflow-y: scroll;
    }
}
/* END AGENCIES MULTICHOOSER */


/* LANDSCAPE PHONES */

/* iphone 5 */
@media (max-width: 667px) and (orientation: landscape) {
    .ms-container .ms-list {
        height: 125px;
    }

    #modal_agencies .modal-body {
        padding: 5px;
        max-height: calc(100vh - 150px);
        overflow-y: scroll;
    }
}

/* iphone 6 and up */
@media (max-width: 667px) and (orientation: landscape) {
    .ms-container .ms-list {
        height: 160px;
    }
}

@media (max-width: 736px) and (orientation: landscape) {
    #modal_agencies .modal-dialog, #modal_cats .modal-dialog {
        width: 97%;
    }
}

/* iPhone X */
@media (max-width: 812px) and (orientation: landscape) {
    #modal_agencies .modal-body {
        height: calc(100vh - 160px);
        overflow-y: scroll;
    }
}
