.ps_flats_table td,.ps_flats_table th{
    text-align: center;
}


.ps_flats_table tbody tr.sold{
    background: #ff003357;
}

.ps_flats_table thead tr th:nth-child(1),.ps_flats_table tbody tr td:nth-child(1){
    max-width: 111px!important;
}


.ps_flats_table tbody tr a{
    border: 1px solid black;
    border-radius: 40px;
    padding: 0px 20px;
    transition: ease-in-out 0.3s;
}

.ps_flats_table tbody tr a:hover{
    color: #fff!important;
    background: #c29f7b!important;
    border-color: #c29f7b!important;

}
.ps_flats_count{
    display: none;
    margin-bottom: 30px;
}
.ps_flats_table thead tr{
    background: #c2a07c;
}

.ps_flats_table tbody tr.reserved{
    background: #ffa5005e;
}

.ps_flats_table tbody tr.active{
    background: #0080006b;
}

.ps_flats_filters{
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 60px 0 40px 0;
}
.ps_filter{
    display: flex;
    gap: 20px;
}

.ps_flats{
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1100px;
    margin: auto;
}


.ps_filter select{
    width: 170px;
    height: 46.78px;
}

.ps_filter select option{
    text-align: center;
}

.meters_slider {
    width: 300px;
}

#kondygnacja,#status{
    align-items: center;
}

.meters_slider span{
    border-radius: 100%!important;

}




.meters_slider span.ui-state-active{
    background: #f6f6f6!important;
}
.meters_slider span:focus{
    border: 1px solid #c5c5c5!important;
    outline: none!important;
}

.meters_slider > div{
    background: #c29f7b;
}

#meters{
    flex-direction: column-reverse;
    gap: 0px!important;
    position: relative;
    top: -5px;
    margin-left: 30px;
}

.meters_labels{
    display: flex;
    justify-content: space-between;
}



@media screen and (max-width: 1000px) and (min-width: 700px){
    .ps_flats_filters{
        display: grid!important;
        grid-template-columns: 1fr 1fr!important;
        margin: 30px 0!important;
    }
    #meters{
        margin-left: 0!important;
        max-width: 300px!important;
    }
    .ps_flats_filters{
        grid-gap: 10px!important;
    }
}
@media (min-width: 650px){
    .mobile{
        display: none!important;
    }
}
@media screen and (max-width: 700px) and (min-width: 300px){
    .ps_flats_filters{
        display: grid!important;
        grid-template-columns: 1fr!important;
        margin: 30px 0!important;
    }
    #meters{
        margin-left: 0!important;
        max-width: 100%!important;
    }
    .ps_filter > select{
        flex: 1;
    }
    .ps_filter > span{
        min-width: 90px!important;
    }
    .meters_slider{
        width: 100% !important;
    }
    .ps_flats_filters{
        grid-gap: 10px!important;
    }
}

@media (max-width: 650px){
    .no_mobile{
        display: none!important;
    }
    .ps_flats_table tbody tr{
        display: flex;
        flex-direction: column;
        border-bottom: 5px solid #c29f7b;
        min-width: calc(100vw - 40px);
    }
    .ps_flats_table tbody tr td{
        display: flex!important;
        justify-content: space-between!important;
    }
    .ps_flats_table tbody tr td span{
        font-weight: bold;
    }
}


#historyModal {
    td {
        font-size: 12px;

        @media (min-width: 600px) {
            font-size: 14px;
        }
    }

    .historyModal__wrapper {
        background:#fff;
        padding:20px;
        border-radius:8px;
        min-width:300px;
        max-width:500px;
        position:relative;
    }
}

#historyModal table {
    width: 100%;
    border-collapse: collapse;
}

#historyModal th,
#historyModal td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#historyModal th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#historyModal tr:nth-child(even) {
    background-color: #fafafa;
}

#historyModal tr:hover {
    background-color: #f1f1f1;
}


#closeModal {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    line-height: normal;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
    -webkit-appearance: none;
    position:absolute;
    top:15px;
    right:15px;
    cursor: pointer;
}
