.filter-grid-complete {
    white-space: normal !important;
    word-wrap: break-word;
    min-width: 100px;
    max-width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    line-height: 1.3;
    height: auto;
    transition: all 0.2s ease;
}

/* For top date filters */
.filter-date-btn {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.sticky-filter {
    position: sticky;
    top: 170px;
    z-index: 2;
}

.filter-scrollable {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.filter-scrollable::-webkit-scrollbar,
.scroll-mobile::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.filter-scrollable::-webkit-scrollbar-track,
.scroll-mobile::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-scrollable::-webkit-scrollbar-thumb,
.scroll-mobile::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}

.filter-scrollable::-webkit-scrollbar-thumb:hover,
.scroll-mobile::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 767.98px) {
    .scroll-mobile {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .filter-top-bar {
        position: static !important;
        z-index: 1 !important;
    }
    .time-column {
        min-width: 75px !important;
        max-width: 80px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .time-column .time-ini {
        font-size: 13px !important;
    }
    .time-column .time-end {
        font-size: 11px !important;
    }
}

label.custom-color-filter {
    color: var(--bg-color) !important;
    border-color: var(--bg-color) !important;
    background-color: transparent !important;
}

label.custom-color-filter:hover,
input[type="radio"]:checked + label.custom-color-filter {
    background-color: var(--bg-color) !important;
    color: var(--txt-color) !important;
}
