/* Canonical layout for single-row composite inputs: search field + adjacent toggle/clear/action button.
   Used by TypeaheadSearchInput, HierarchyTreeTypeaheadInput, and any sibling pattern.
   Host apps MUST link this file from App.razor — see typeahead-composite-input-row.mdc */

.typeahead-search-container {
    position: relative;
    width: 100%;
}

.typeahead-search-input-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    gap: 0;
    width: 100%;
}

.typeahead-search-input-host {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.typeahead-search-input-host .debounced-search-container {
    width: 100%;
}

.typeahead-search-input-host .debounced-search-container > .debounced-search-input-group {
    flex-wrap: nowrap;
    width: 100%;
}

.typeahead-search-input-host .debounced-search-container > .debounced-search-input-group > input.form-control {
    min-width: 0;
}

.typeahead-search-input-host .debounced-search-container > .debounced-search-input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.typeahead-search-input-host .debounced-search-container > .debounced-search-input-group > .btn:last-child,
.typeahead-search-input-host .debounced-search-container > .debounced-search-input-group > .input-group-text:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.typeahead-dropdown-toggle {
    flex: 0 0 auto;
    align-self: end;
    margin-left: -1px;
    min-width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
