/* Filter Section */
.filter-section {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.search-filter {
    width: 100%;
}

.search-filter input,
.filter-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.search-filter input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.clear-filters-btn {
    padding: 10px 16px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background: #fff;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Breadcrumbs */
.breadcrumb-container {
    margin: 10px 0 15px 0;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-title {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.breadcrumb-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.breadcrumb-item.search {
    background: #28a745;
}

.breadcrumb-item.column-filter {
    background: #6f42c1;
}

.breadcrumb-item.summary-filter {
    background: #fd7e14;
}

.breadcrumb-item.range-filter {
    background: #17a2b8;
    padding: 4px 8px;
    border-radius: 12px;
}

.breadcrumb-label {
    margin-right: 6px;
}

.breadcrumb-value {
    margin-right: 6px;
}

.breadcrumb-remove {
    cursor: pointer;
    margin-left: 4px;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.breadcrumb-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.clear-all-btn:hover {
    background: #c82333;
}

/* Multiselect Filters */
.multiselect-filter {
    margin-top: 5px;
    position: relative;
}

.multiselect-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

.multiselect-button:hover {
    background: #0056b3;
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    min-width: 200px;
    width: max-content;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-dropdown.right-align {
    left: auto;
    right: 0;
}

.multiselect-option {
    padding: 6px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    text-align: left;
}

.multiselect-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.multiselect-option:hover {
    background-color: #f8f9fa;
}

.multiselect-option input {
    margin-right: 6px;
}

.multiselect-option:last-child {
    border-bottom: none;
}

/* Range Filter Styles */
.range-filter {
    padding: 12px;
    min-width: 200px;
}

.range-labels {
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.range-labels .range-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.range-labels .range-label-row:last-child {
    margin-bottom: 0;
}

.range-labels .range-label-text {
    text-align: left;
}

.range-labels .range-label-value {
    text-align: right;
    font-weight: 600;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-inputs input[type="range"] {
    width: 100%;
    height: 4px;
    background: #ddd;
    outline: none;
    border-radius: 2px;
    -webkit-appearance: none;
}

.range-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}

.range-inputs input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}
