.sfpt-page,
.sfpt-page * {
    box-sizing: border-box;
}

.sfpt-page {
    direction: rtl;
}

.sfpt-sidebar {
    min-width: 0;
}

.sfpt-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dc3545 !important;
    color: #fff !important;
    padding: 5px 11px;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: .68rem;
    font-weight: 700;
}

.sfpt-clear-filter:hover {
    background: #c82333 !important;
    color: #fff !important;
}

.sfpt-range-fields {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.sfpt-range-fields .filter-select {
    flex: 1;
    width: auto !important;
    min-width: 0;
}

.sfpt-range-fields > span {
    flex: 0 0 auto;
    color: #8b979d;
    font-size: .68rem;
}

.sfpt-content {
    min-width: 0;
}

.sfpt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
}

.sfpt-result-count {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #6f7d84;
    font-size: .76rem;
    white-space: nowrap;
}

.sfpt-result-count strong {
    color: #078787;
    font-size: 1rem;
    font-weight: 800;
}

.sfpt-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.sfpt-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #89959b;
    font-size: .64rem;
    white-space: nowrap;
}

.sfpt-page-size select {
    width: 65px;
    height: 38px;
}

.sfpt-sort-select {
    min-width: 150px;
    height: 38px;
}

.sfpt-plan-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.sfpt-plan-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    padding: 14px;
    border: 1px solid #e4ecee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(18, 54, 63, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sfpt-plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 166, 166, .2);
    box-shadow: 0 10px 28px rgba(18, 54, 63, .075);
}

.sfpt-plan-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sfpt-plan-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eafafa;
    color: #078787;
    font-size: .95rem;
}

.sfpt-plan-heading {
    min-width: 0;
    flex: 1;
}

.sfpt-plan-title {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #26363e;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    line-height: 1.55;
    font-weight: 800;
}

.sfpt-plan-type {
    display: inline-block;
    margin-top: 3px;
    color: #89969c;
    font-size: .59rem;
    line-height: 1.5;
}

.sfpt-plan-description {
    display: -webkit-box;
    min-height: 34px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #7d8a91;
    font-size: .63rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sfpt-plan-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0;
    background: #edf1f2;
}

.sfpt-plan-data {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}

.sfpt-data-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 52px;
    padding: 7px;
    border: 1px solid #edf1f2;
    border-radius: 10px;
    background: #fafcfc;
}

.sfpt-data-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f4f5;
    color: #72838a;
    font-size: .58rem;
}

.sfpt-data-item > div {
    min-width: 0;
}

.sfpt-data-item small {
    display: block;
    overflow: hidden;
    color: #929da3;
    font-size: .52rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfpt-data-item strong {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: #405159;
    font-size: .61rem;
    line-height: 1.5;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfpt-data-downpayment {
    border-color: #dceeee;
    background: #f3fbfb;
}

.sfpt-data-downpayment .sfpt-data-icon {
    background: #dff5f5;
    color: #078787;
}

.sfpt-data-downpayment strong {
    color: #087d7d;
}

.sfpt-data-interest {
    border-color: #f0e2d7;
    background: #fff8f2;
}

.sfpt-data-interest .sfpt-data-icon {
    background: #fbe8d8;
    color: #bd6e36;
}

.sfpt-data-interest strong {
    color: #a76335;
}

.sfpt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 30px 20px;
    border: 1px dashed #dfe8ea;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.sfpt-empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border-radius: 14px;
    background: #eafafa;
    color: #078787;
    font-size: 1.05rem;
}

.sfpt-empty h3 {
    margin: 0;
    color: #42535b;
    font-size: .84rem;
    line-height: 1.6;
    font-weight: 800;
}

.sfpt-empty p {
    margin: 4px 0 0;
    color: #98a3a8;
    font-size: .64rem;
    line-height: 1.8;
}

.sfpt-pagination {
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

@media (max-width: 1100px) {
    .sfpt-plan-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .sfpt-plan-data {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .sfpt-data-interest {
        grid-column: 1/-1;
    }
}

@media (max-width: 820px) {
    .sfpt-toolbar {
        align-items: flex-start;
    }

    .sfpt-toolbar-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .sfpt-plan-grid {
        grid-template-columns:1fr;
        gap: 9px;
    }

    .sfpt-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .sfpt-toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .sfpt-sort-select {
        flex: 1;
        min-width: 0;
    }

    .sfpt-plan-data {
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

    .sfpt-data-interest {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .sfpt-result-count {
        font-size: .68rem;
    }

    .sfpt-result-count strong {
        font-size: .9rem;
    }

    .sfpt-toolbar-controls {
        gap: 6px;
    }

    .sfpt-page-size {
        font-size: .58rem;
    }

    .sfpt-page-size select {
        width: 58px;
        height: 35px;
    }

    .sfpt-sort-select {
        height: 35px;
        font-size: .64rem;
    }

    .sfpt-plan-card {
        padding: 11px;
        border-radius: 13px;
    }

    .sfpt-plan-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 11px;
        font-size: .88rem;
    }

    .sfpt-plan-title {
        font-size: .76rem;
    }

    .sfpt-plan-type {
        font-size: .56rem;
    }

    .sfpt-plan-description {
        font-size: .58rem;
    }

    .sfpt-plan-data {
        grid-template-columns:1fr;
        gap: 6px;
    }

    .sfpt-data-interest {
        grid-column: auto;
    }

    .sfpt-data-item {
        min-height: 44px;
    }

    .sfpt-data-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

@media (max-width: 380px) {
    .sfpt-plan-card {
        padding: 10px;
    }

    .sfpt-plan-top {
        gap: 8px;
    }

    .sfpt-plan-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

.sfpt-toolbar .filter-select {
    box-sizing: border-box;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    line-height: 40px !important;
    vertical-align: middle;
}

.sfpt-page-size select.filter-select {
    width: 65px !important;
}

.sfpt-toolbar .sfpt-sort-select {
    min-width: 150px !important;
    width: auto !important;
}

@media (max-width: 560px) {
    .sfpt-toolbar .filter-select {
        height: 38px !important;
        min-height: 38px !important;
        line-height: 38px !important;
        padding: 0 9px !important;
    }

    .sfpt-page-size select.filter-select {
        width: 60px !important;
    }

    .sfpt-toolbar .sfpt-sort-select {
        min-width: 0 !important;
        flex: 1;
    }
}
.sfpl-toolbar-controls .filter-select,
.sfpt-toolbar-controls .filter-select{
    display:block;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
