.searchContainer fieldset.collapsed div.field,
.searchContainer fieldset.collapsed div.formrow,
.searchContainer fieldset.collapsed div.actionpanel,
.searchContainer fieldset.collapsed table,
.searchContainer fieldset.collapsed fieldset {
    position: relative;
    left: 0;
    top: 0;
}

.searchContainer #searchForm {
    display: flex;
    flex-direction: column-reverse;
}

.searchSection .searchField {
    width: 100%;
}

#searchForm input::-webkit-input-placeholder {
    color: #9e9e9e;
}

#searchForm input:-moz-placeholder {
    color: #9e9e9e;
}

#searchForm input::-moz-placeholder {
    color: #9e9e9e;
}

#searchForm input:-ms-input-placeholder {
    color: #9e9e9e;
}

.searchSection .submit.field {
    position: relative;
}

#submitSearch {
    width: 100%;
    height: 37px;
    margin: 0;
}

.searchSection .singlecheckbox.field {
    display: inline-block;
    float: right;
}

.searchSection .singlecheckbox .fieldinput {
    margin-top: 0;
}

.searchSection .singlecheckbox label {
    display: block;
    margin-left: 0;
    text-decoration: underline;
    cursor: pointer;
}

.searchSection .singlecheckbox label:before {
    content: '\f0b0';
    font-family: "icons";
    display: inline-block;
    margin-right: 0.3em;
    color: #000;
}

/* Filter Section */

.filterSection.collapsed > legend,
.filterSection.collapsable > legend {
    display: none;
}

.filterSection.collapsable legend:before,
.filterSection.collapsed legend:before {
    content: none;
}

.filterSection.collapsed > legend:before,
.filterSection.collapsable > legend:before {
    content: '\f0b0';
    font-family: "icons";
    display: inline-block;
    position: absolute;
    left: -19px;
    top: 13px;
    font-size: 1em;
    color: #000;
    text-decoration: none;
    border: none;
}

.filterSection.collapsed {
    border: 1px solid transparent;
}

.filterSection.collapsable {
    margin-bottom: 1em;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

fieldset.filterSection.collapsable legend,
fieldset.filterSection.collapsed legend {
    padding-left: 0;
}

.filterSection fieldset {
    display: block;
}

.filterSection legend {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.9em;
    font-weight: 600;
}

.filterSection > legend {
    font-weight: normal;
}

.typeSection label[for="typeIds"],
.provinceSection label[for="provinceIds"],
.submitSection label[for="resetFilter"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.lengthSection > .field {
    display: inline-block;
    margin-right: .5rem;
}

.lengthSection .field.first label {
    margin-right: 0.3em;
}

.lengthSection .fieldinput {
    display: inline-block;
}

.lengthSection input {
    width: 60px;
}

/* Buttons filter */

.filterSection .submitSection {
    display: none;
}

@media screen and (min-width: 390px) {
    .filterSection fieldset {
        display: inline-block;
        vertical-align: top;
        width: calc(100% / 2 - 1em);
        margin-right: 1.7em;
        margin-bottom: 1em;
    }

    .filterSection fieldset:nth-child(3) {
        margin-right: 0;
    }

    .filterSection fieldset:last-child {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 700px) {
    .searchSection .field.first,
    .searchSection .field.first + .field {
        display: inline-block;
        width: calc(100% / 2 - 60px);
        margin-right: 1em;
    }

    .searchSection .fieldinput .searchField {
        width: 100%;
    }

    .searchSection label,
    .searchSection .fieldinput {
        display: block;
    }

    .searchSection .submit.field {
        display: inline-block;
    }

    .filterSection fieldset {
        width: calc(100% / 3 - 1.5em);
        margin-right: 2em;
    }

    .filterSection fieldset:nth-child(3) {
        margin-right: 2em;
    }

    .filterSection fieldset:nth-child(4) {
        margin-right: 0;
    }

    .submitSection {
        text-align: right;
    }
}
