﻿.overview-filters {
    grid-area: viewfilters;
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.app.mapview .overview-filters {
    position: absolute;
    /*top: 190px;*/
    top: var(--searchfiltersbottom);
    left: 24px;
    z-index: 100;
}

.app.mapview .search-filters.in ~ .overview-filters {
    display: none;
    top: auto;
    left: auto;
    z-index: auto;
}

@media (min-width: 1024px) {
    .overview-filters {
        align-content: flex-start;
        align-items: flex-start;
        position: relative;
    }

    .app.mapview .overview-filters::-webkit-scrollbar {
        width: 11px;
    }

    .app.mapview .overview-filters {
        background-color: #ffffff;
        padding: 0 24px;
        position: relative;
        top: 0;
        left: 0;
        z-index: auto;
        /* 2020-09-15 */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb-background) var(--scrollbar-background);
    }

    .app.mapview .overview-filters::-webkit-scrollbar-track {
        background: var(--scrollbar-background);
    }

    .app.mapview .overview-filters::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-thumb-background);
        border-radius: 6px;
        border: 3px solid var(--scrollbar-background);
    }

    .app.mapview .search-filters.in ~ .overview-filters {
        display: flex;
    }
}

.overview-filters .overview-filters-toggle {
    padding: 0;
    background-color: #ffffff;
    min-width: 110px;
    height: 40px;
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    color: var(--button-color);
    cursor: pointer;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

@media (min-width: 1024px) {
    .overview-filters .overview-filters-toggle {
        display: none;
    }
}

.overview-filters-toggle svg {
    width: 12px;
    height: 12px;
    margin-left: 5px;
}

.overview-filters-toggle svg path {
    fill: var(--button-color);
}

.overview-filters > div {
    display: none;
    position: absolute;
    background-color: #ffffff;
    top: calc(100% - 10px);
    width: 75vw;
    max-width: 300px;
    padding: 10px;
    border-radius: var(--border-radius);
    /*box-shadow: 0 4px 8px 0 rgba(39, 50, 68, 0.1), 0 0 2px 0 rgba(39, 50, 68, 0.1);*/
    box-shadow: var(--boxshadow-chained);
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    z-index: 10;
}

.app.mapview .overview-filters > div {
    top: 50px;
}

.overview-filters.in > div {
    display: block;
}

@media (min-width: 1024px) {
    .overview-filters > div {
        position: relative;
        top: 0;
        display: block;
        width: 100%;
        max-width: none;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
        max-height: none;
    }

    .app.mapview .overview-filters > div {
        top: 0;
    }
}

.overview-filter {
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    /*padding: 16px 24px;*/
    padding: 0px 24px;
}

@media (min-width: 1024px) {
    .overview-filter {
        margin-bottom: 16px;
        padding: 16px 24px;
    }

    .app.mapview .overview-filter {
        padding: 16px 0;
        margin-bottom: 0;
        border-radius: 0;
        border-bottom: 2px solid var(--border-color-light);
    }
}

.app.mapview.not-floorplan .overview-filter.objectnamesearch-filter,
.app.mapview.not-floorplan .overview-filter.contactsearch-filter {
    display: none;
}

.overview-filter .header {
    display: flex;
    flex-flow: row nowrap;
    height: 40px;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.overview-filter .header span {
    text-transform: uppercase;
    font-size: 12px;
}

.overview-filter .header svg {
    width: 12px;
    height: 12px;
    transform: rotate(90deg);
}

.overview-filter .filter-row {
    height: 40px;
    display: flex;
    flex-flow: row nowrap;
    align-content: center;
    align-items: center;
}

.overview-filter .checkbox-label {
    margin-right: 16px;
}

/* Search by objectname filter */
.objectnamesearch-filter button,
.objectidsearch-filter button {
    border: 1px solid var(--border-color-dark);
    border-radius: 9px;
    /*border: 1px solid var(--button-color);
    border-radius:*/ 
    /*border: 0;*/
    background-color: transparent;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

.objectnamesearch-filter button svg,
.objectidsearch-filter button svg {
    width: 10px;
    height: 10px;
}

.objectnamesearch-filter button svg path,
.objectidsearch-filter button svg path {
    fill: var(--font-dark);
}

/* overview filter buttons */
.overview-filter button:not(.cancel-filter) {
    width: 100%;
    height: 30px;
    background-color: var(--button-color-light);
    padding: 0;
    border: 1px dashed var(--button-color);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    color: var(--button-font-dark);
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.overview-filter button:not(.cancel-filter) span {
    font-size: 16px;
}

.overview-filter button:not(.cancel-filter) svg {
    width: 12px;
    height: 12px;
    margin-left: 5px;
}

.overview-filter button:not(.cancel-filter) svg path {
    fill: var(--button-font-dark);
}

/* text-filter stuff */
.filter-row.textfilter-row input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
}

.filter-row.textfilter-row input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.filter-row.textfilter-row input.has-button {
    width: calc(100% - 40px);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-row.textfilter-row input.has-button ~ button {
    border: 1px solid var(--border-color-light);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 0;
    background-color: #ffffff;
    cursor: pointer;
    margin-left: 0;
}

.filter-row.textfilter-row input.has-button ~ button svg {
    margin-left: 0;
}

.filter-row.textfilter-row input.has-button ~ button svg path {
    fill: var(--font-dark);
}

/* contact search */
.contactsearch-filter .textfilter-row {
    position: relative;
}

.contactsearch-filter .contactname-list {
    /*position: absolute;
    top: 100%;*/
    background-color: #ffffff;
    width: 100%;
    /*max-height: 150px;
    overflow-y: auto;*/
}

@media(min-width: 1024px) {
    .contactsearch-filter .contactname-list {
        position: absolute;
        z-index: 100;
        top: calc(100% + 8px);
        border-radius: var(--border-radius);
        max-height: 150px;
        overflow-y: auto;
        box-shadow: var(--boxshadow-chained);
    }
}

.contactname-list ul {
    width: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    align-items: flex-start;
}

.contactname-list ul li {
    width: 100%;
    height: 40px;
    display: flex;
    align-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
}

.contactsearch-filter input[type="search"],
.contactsearch-filter input[type="text"] {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.contactsearch-filter input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.contactsearch-filter .contactname-placeholder {
    padding-left: 11px;
    padding-right: 10px;
    width: calc(100% - 40px);
    height: 40px;
    font-size: 16px;
    color: #cccccc;
    position: absolute;
    display: flex;
    flex-flow: row nowrap;
    align-content: center;
    align-items: center;
}