.header .headerSearch {
    margin-right: 80px;
}

.headerLogo img {
    max-width: 100%;
}

@media (max-width: 1024px) {

    .header {
        height: auto;
    }

    .AllCategories .subcats {
        margin-left: 80px;
    }

    .phpld-wbox, .header,  #wrap, .container, .wrap {
        width: auto;
    }

    .headerLogo {
        text-align: center;
        padding-left: 0px;
    }

    #nav {
        width: 100% !important;
        height: 100% !important;
        clear: both;
        padding-left: 0px;
    }
    
    .phpld-wbox .userPanel {
        padding: 0 10px;
    }

}

@media (max-width: 800px) {}

@media (max-width: 768px) {}

@media (max-width: 736px) {

    .topBanner img {
        margin: 0px !important;
        padding: 4px;
        box-sizing: border-box;
    }

    .header .headerSearch {
        width: 500px;
    }

    #search_form #autoquery, #search_form .select2-container {
        width: 310px !important;
    }

    .phpld-wbox .userPanel {
        padding-top: 3px;
    } 

    .AllCategories .subcats {
        margin-left: 60px;
    }

}

@media (max-width: 667px) {

    .header .headerSearch {
        width: 420px;
    }

    #search_form #autoquery, #search_form .select2-container {
        width: 290px !important;
    }
    
   .phpld-col1, .phpld-col2, .phpld-col3 {
    float: none;
    margin: 0 !important;
    width: 100% !important;
    }
    
    .phpld-column   { display: table; }
    .phpld-col2, .phpld-col1  { display: table-footer-group; }
      .phpld-col3 { display: table-header-group; }
    
    .phpld-col3 .phpld-cbox {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }
    
    ul.dynatree-container
    {
        width: auto;
    }

    .phpld-g25 {
        width:33%;
        white-space: nowrap;
    }

    .phpld-g33 {
        width:50% !important;
    }

}

@media (max-width: 568px) {

    .header .headerSearch {
        width: 340px;
    }

    #search_form #autoquery, #search_form .select2-container {
        width: 230px !important;
    }

    .phpld-col3 .phpld-cbox {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }

    .AllCategories .subcats {
        margin-left: 20px;
    }

}

@media (max-width: 480px) {

    .headerLogo, #search_form {
        float: none;
    }

    .phpld-g50 {
        float: none;
        margin: 0 !important;
        width: 100% !important;
    }

    #search_form {
        margin: 0 auto;
        display: block;
    }

    #nav .phpld-wbox .phpld-hlist>ul {
        float: none;
        padding: 0;
        display: block;
    }

    #nav .phpld-wbox .phpld-hlist>ul>li {
        position: relative;
        display: inline-block;
        text-align: center;
        -webkit-flex-basis: 25%;
        margin: 0;
        margin-right: 5px;
    }

    #nav .phpld-wbox .phpld-hlist ul li a {
        text-align: center;
    }

    #submitForm .phpld-equalize>.phpld-label {
        width: auto;
        float: none;
        display: block;
        text-align: left;
    }

    .phpld-columnar {
        margin-top: 0;
    }

    .AllCategories .subcats {
        margin-left: 0px;
    }

    .phpld-g25 {
        width:50%;
        white-space: nowrap;
    }

    .phpld-g33 {
        width:100% !important;
    }
}

@media (max-width: 414px) {

    #nav {
        height: auto;
        overflow: hidden;
    }

    #nav .phpld-wbox .phpld-hlist>ul {
        float: none;
        padding: 0;
        display: block;
    }

    #nav .phpld-wbox .phpld-hlist>ul>li {
        position: relative;
        display: inline-block;
        text-align: center;
        margin: 0;
        margin-right: 5px;
    }

    #nav .phpld-wbox .phpld-hlist ul li a {
        text-align: center;
    }


    .phpld-col3 .phpld-cbox {
        margin-right: 6% !important;
        margin-left: 6% !important;
    }

}

@media (max-width: 375px) {

    #nav .phpld-wbox .phpld-hlist>ul>li {
        margin-right: 2px;
    }

}

@media (max-width: 320px) {

    #search_form {
        width: 300px;
    }

    #search_form .select2-container {
        width: 200px !important;
    }

    #nav .phpld-wbox .phpld-hlist>ul>li {
        margin-right: 4px;
        margin-left: 4px;
    }

    .phpld-col3 .phpld-cbox {
        margin-right: 2% !important;
        margin-left: 2% !important;
    }

    #hierarchy {
        margin-left: 4px !important;
    }

}