.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    appearance: none;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out
}


.form-select {
    appearance: none; /* Removes default dropdown arrow */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M17.087 10.35l-4.337 4.336-4.337-4.336c-0.293-0.293-0.768-0.293-1.060 0s-0.293 0.768 0 1.060l4.864 4.864c0.147 0.147 0.341 0.221 0.533 0.219 0.194 0 0.386-0.072 0.533-0.219l4.865-4.864c0.293-0.293 0.293-0.768 0-1.060s-0.768-0.293-1.061 0z'/%3E%3C/svg%3E");
    
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;

    padding-right: 35px; /* Ensures text doesn't overlap arrow */
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 40px; /* Consistent height */
    width: 100%; /* Full width control */
    cursor: pointer; /* Improves UX */
}

#filter-form{
    padding-right: 30px;
}



#countyFilterWrapper{
    padding-bottom: 10px;
}
@media screen and (min-width: 991px) {
    div#entriesPerPageDropdown {
        position: absolute;
        right: 281px;
        top: 4px;
    }
    
    #countyFilterWrapper{
        /* max-width: 250px; */
        position: absolute;;
        z-index: 99;
    }
    div#countyFilterWrapper > * {
        display: inline-block;
        width: auto;
    }

}

/* style to fix the search and pages option */
@media screen and (max-width: 767px) {
    div.dt-container div.dt-layout-cell.dt-full, div.dt-container div.dt-layout-cell.dt-start, div.dt-container div.dt-layout-cell.dt-end {
        text-align: left !important;
    }
}

@media screen and (max-width: 640px) {
    .dt-container .dt-length, .dt-container .dt-search {
        text-align: left !important;
    }
}


/* Apply min-width only on screens wider than 992px */
@media (min-width: 992px) {
    #csvTable #tableHeaderRow th[data-dt-column="8"],
    #csvTable #tableHeaderRow th[data-dt-column="5"] {
        min-width: 150px !important;
    }
    /* Optionally apply min-width to the table data cells (td) */
    #csvTable td:nth-child(8),
    #csvTable td:nth-child(5) {
        min-width: 150px !important;
    }

    #csvTable #tableHeaderRow th[data-dt-column="7"],
    #csvTable td:nth-child(7){
        width: 130px !important;
    }

}



#entriesPerPageDropdown {
    display: flex;
    align-items: center; /* Vertically center the elements */
}

#entriesPerPageDropdown label {
    order: 1;
    text-transform: capitalize; /* Capitalize the first letter of each word */
}


#entriesPerPageDropdown select {
    margin-left: 5px; /* Optional: Adds some space between the select and the label */
    order: 2;
}

/* Make sure the expand icon appears */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dt-control {
    text-align: center;
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dt-control:before {
    content: '+'; /* Force expand icon */
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
}

/* remove the class to make the full width table */
.ms-webpartzone-cell,
.ms-webpart-cell-vertical,
.ms-webpart-chrome-vertical {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

th,td {
    text-align: left !important;
}