/* Companies page specific styles — keep them scoped to avoid overriding global theme/pagination */

.input-group.companies-search .btn,
.input-group.companies-search .btn:focus,
.input-group.companies-search .btn:active {
    box-shadow: none !important;
    border-radius: 0.35rem !important;
    margin: 0;
}
.input-group.companies-search .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group.companies-search .btn-group .btn:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group.companies-search .btn-group .btn {
    border-left: 1px solid rgba(0,0,0,0.06);
}

/* Reduce button sizes specifically in the companies section so they don't appear oversized */
.companies-section .input-group.companies-search {
    align-items: stretch; /* make children match height */
}
.companies-section .input-group.companies-search .form-control {
    padding: .5rem .75rem;
    font-size: .95rem;
    height: auto;
}
.companies-section .input-group.companies-search .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important; /* let flexbox determine height */
    padding: .45rem .75rem !important; /* match input vertical padding */
    font-size: .95rem !important;
    line-height: 1 !important;
    border-radius: .25rem !important;
    box-shadow: none !important;
    background-image: none !important; /* remove gradient if theme adds one */
}

/* Search button solid appearance */
#searchButton {
    background-color: #34495e !important;
    border-color: #34495e !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Clear button outline */
.companies-section .input-group.companies-search #clearSearch,
.companies-section .input-group.companies-search .btn.btn-outline-primary {
    background-color: transparent !important;
    color: #34495e !important;
    border: 1px solid #34495e !important;
    box-shadow: none !important;
}

/* selected button color */
.companies-section .selected-btn,
.companies-section .btn.btn-primary.selected-btn {
    background-color: #34495e !important;
    border-color: #34495e !important;
    color: #fff !important;
}

/* Outline primary color for consistency */
.companies-section .btn.btn-outline-primary {
    background-color: transparent !important;
    border-color: #34495e !important;
    color: #34495e !important;
}

/* Hover for selected */
.companies-section .btn.btn-primary:hover,
.companies-section .btn.btn-primary:focus {
    background-color: #27363f !important; /* slightly darker on hover */
    border-color: #27363f !important;
    color: #fff !important;
}

/* Keep pagination untouched here — global theme will control it */

/* Minor adjustments for small controls */
.companies-section .btn.w-100 {
    padding: .38rem .55rem !important;
    font-size: .9rem !important;
}

/* Make the page number input a bit smaller to match */
.companies-section form.d-inline .form-control {
    padding: .25rem .35rem;
    font-size: .9rem;
    height: auto;
}
