.custom-headline-with-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #eaeaea;
}

.custom_filter {
    margin-right: 20px; /* Add some margin to separate the h4 from the selects */
}

.custom-sort-by,
.custom-sort-by-status {
    display: flex;
    margin-right: 20px; /* Optional: Add some margin to space out the select elements */
}

.custom-sort-by-status {
    margin-top: 14px;
}

.custom-select2 {
    font-size: 14px; 
    color: #333; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    padding: 5px 10px; 
    min-width: 150px;
    outline: none; /* Remove the default outline */
}

.select2-container--default .select2-selection--single {
    height: 45px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
}


.custom-select-employee {
    font-size: 14px; 
    color: #333; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    padding: 5px 10px; 
    min-width: 250px;
    outline: none; /* Remove the default outline */
}

.select2-container--default .select2-selection--multiple {
    min-height: 60px; /* Increase the height of the multiple selection box */
    max-height: 150px; /* Set a maximum height */
    overflow-y: auto; /* Enable scrolling if the content exceeds the maximum height */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 14px; /* Adjust font size for selected items */
    background-color: #eee; /* Light background for selected items */
    color: #333; 
    border: 1px solid #ddd; 
    border-radius: 4px;
    padding: 8px; /* Increase padding for better spacing */
    margin-right: 5px;
    margin-top: 5px;
    max-width: calc(100% - 30px); /* Ensure selected item doesn't wrap unnecessarily */
    display: flex;
    align-items: center; /* Align text and image vertically */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    margin-left: 10px; /* Space between text and remove button */
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 6px; /* Increase padding around the selected items */
    overflow-y: auto; /* Ensure the selected items can scroll if needed */
}

.select2-container--default .select2-dropdown {
    font-size: 16px; /* Increase the font size in the dropdown */
    max-width: 100%;
}

.select2-dropdown {
    width: auto !important; /* Ensure dropdown auto-sizes to content */
    min-width: 250px; /* Set minimum width to match the select box */
}

.second-chart-date-range, .third-chart-date-range{
    margin-right: 15px;
    margin-top: 14px;
}

.second-chart-date-range input:hover, .third-chart-date-range input:hover {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .custom-headline-with-filters {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start of the flex container */
    }

    .custom_filter {
        border-bottom: 1px solid #eaeaea;
    }

    .custom_filter, .custom-sort-by, .custom-sort-by-status {
        margin-right: 0;
        margin-left: 15px;
        margin-bottom: 10px; /* Add some margin to separate the items vertically */
        width: 35%; /* Ensure items take full width in vertical layout */
    }

    .custom-sort-by, .custom-sort-by-status {
        justify-content: flex-start;
    }

    .second-chart-date-range, .third-chart-date-range{
        margin-left: 15px;
    }
}

/* CSS for the wp-content\plugins\listeo-core\templates\single-partials\single-listing-opening-hours.php */
/* Opening Hours */
/* Unified opening hours and days off table */
.availability-flex-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.opening-hours-wrapper {
    flex: 1 1 60%;
    max-width: 600px;
}

.opening-hours-table {
    max-width: 450px;
    width: 100%;
    border-collapse: collapse;
    background-color: #f5f5f5;
    font-size: 14px;
    table-layout: fixed;
    border: none;
}

.opening-hours-table th,
.opening-hours-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.opening-hours-table thead th {
    background-color: #ddd;
    font-weight: bold;
    color: #333;
}

.time-block {
    margin-bottom: 4px;
}

.time-block.closed {
    color: #d9534f; /* Bootstrap red */
    font-weight: bold;
}

/* Vertical separator between opening and days off */
.vertical-separator {
    width: 2px;
    background-color: #ccc;
    height: auto;
    align-self: stretch;
}

/* Days Off */
.days-off-wrapper {
    flex: 1 1 30%;
    min-width: 250px;
}

.days-off-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #444;
    margin-top: 0;
}

.days-off-wrapper li {
    margin-bottom: 6px;
}

/* Responsive adjustments for availability section */
@media (max-width: 768px) {
    .availability-flex-container {
        flex-direction: column;
        gap: 20px;
    }

    .opening-hours-wrapper,
    .days-off-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .opening-hours-table {
        max-width: 100%;
    }

    .vertical-separator {
        display: none; /* Hide separator on mobile */
    }
}

