/* tabslAiSearch - Search Filters */

.tabsl-sf {
    margin-bottom: 15px;
}

.tabsl-sf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 12px;
    line-height: 130%;
}

.tabsl-sf-col {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    white-space: nowrap;
    min-width: 120px;
}

@media (min-width: 768px) {
    .tabsl-sf-col {
        flex: 1 1 0;
    }
}

/* Button (matches multifilter .attrhead style) */
.tabsl-sf-btn {
    display: block;
    width: 90%;
    margin: 10px;
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #E0001A;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.tabsl-sf-btn:hover,
.tabsl-sf-btn.active {
    border-color: #E0001A;
}

.tabsl-sf-btn .fa {
    margin-left: 5px;
    font-size: 11px;
}

.tabsl-sf-badge {
    display: inline-block;
    background: #E0001A;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    text-align: center;
    margin-left: 4px;
    vertical-align: middle;
}

/* Dropdown (matches multifilter .attrbody style) */
.tabsl-sf-dropdown {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    margin-top: -1px;
    min-width: 90%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.tabsl-sf-dd-body {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}

.tabsl-sf-option {
    display: block;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabsl-sf-option:hover {
    background: #f5f5f5;
}

.tabsl-sf-option.selected {
    font-weight: 600;
}

.tabsl-sf-option input[type="checkbox"],
.tabsl-sf-option input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
}

.tabsl-sf-value {
    vertical-align: middle;
}

.tabsl-sf-count {
    color: #999;
    font-size: 11px;
    vertical-align: middle;
}

.tabsl-sf-dd-footer {
    padding: 6px 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

.tabsl-sf-apply {
    background: #E0001A;
    color: #fff;
    border: none;
    padding: 5px 16px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}

.tabsl-sf-apply:hover {
    background: #c00017;
}

/* Active filter tags */
.tabsl-sf-active {
    padding: 8px 10px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tabsl-sf-tag {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 2px;
}

.tabsl-sf-tag b {
    font-weight: 600;
    margin-right: 3px;
}

.tabsl-sf-reset {
    display: inline-block;
    color: #E0001A;
    font-size: 12px;
    text-decoration: none;
    margin-left: 6px;
}

.tabsl-sf-reset:hover {
    text-decoration: underline;
}

/* Mobile: horizontal scroll */
@media (max-width: 767px) {
    .tabsl-sf-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .tabsl-sf-col {
        min-width: 130px;
        flex-shrink: 0;
    }

    .tabsl-sf-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 0;
        max-height: 60vh;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
    }

    .tabsl-sf-dd-body {
        max-height: 50vh;
    }
}
