/*
 * Portal ui-select final alignment.
 * This file is loaded after angular-ui-select/select2/selectize CSS by the
 * ui.select lazy module, so populated list text stays left-aligned from paint.
 */
html body.ff-app.ff-app.ff-app ui-select,
html body.ff-app.ff-app.ff-app ui-select-match,
html body.ff-app.ff-app.ff-app ui-select-choices,
html body.ff-app.ff-app.ff-app .dx-field-value ui-select,
html body.ff-app.ff-app.ff-app .dx-field-value ui-select-match,
html body.ff-app.ff-app.ff-app .dx-field-value ui-select-choices {
    direction: ltr !important;
    text-align: left !important;
    text-align-last: left !important;
}

html body.ff-app.ff-app.ff-app ui-select,
html body.ff-app.ff-app.ff-app ui-select-match {
    display: block !important;
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
}

html body.ff-app.ff-app.ff-app ui-select *,
html body.ff-app.ff-app.ff-app ui-select-match *,
html body.ff-app.ff-app.ff-app ui-select-choices * {
    direction: ltr !important;
    text-align: left !important;
    text-align-last: left !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap > .ui-select-match,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap > .ui-select-match > .btn,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap > .ui-select-match > .ui-select-toggle,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-search,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-placeholder,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text *,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-choices-row-inner,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-choices-row-inner *,
html body.ff-app.ff-app.ff-app .select2-container .select2-choice,
html body.ff-app.ff-app.ff-app .select2-container .select2-chosen,
html body.ff-app.ff-app.ff-app .selectize-input,
html body.ff-app.ff-app.ff-app .selectize-input input {
    direction: ltr !important;
    text-align: left !important;
    text-align-last: left !important;
}

html body.ff-app.ff-app.ff-app .ui-select-bootstrap > .ui-select-match > .btn,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap > .ui-select-match > .ui-select-toggle {
    align-items: center !important;
    display: flex !important;
    justify-content: flex-start !important;
}

html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-placeholder,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text {
    display: block !important;
    flex: 1 1 auto !important;
    float: none !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-placeholder.ng-hide,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text.ng-hide,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text.ng-hide *,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-search.ng-hide,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match.ng-hide,
html body.ff-app.ff-app.ff-app ui-select-match.ng-hide {
    display: none !important;
}

html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text.pull-left,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-match-text.pull-right,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-placeholder.pull-left,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-placeholder.pull-right {
    float: none !important;
}

html body.ff-app.ff-app.ff-app .ui-select-bootstrap > input.ui-select-search,
html body.ff-app.ff-app.ff-app .ui-select-bootstrap .ui-select-search {
    direction: ltr !important;
    text-align: left !important;
}

/* Portal pages use one persistent text input per ui-select. The normal
   match layer remains only as the mouse-accessible caret/clear overlay, so
   opening and closing the choices cannot leave a blank frame. */
html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable {
    position: relative !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match,
html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match.ng-hide {
    animation: none !important;
    display: block !important;
    inset: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    position: absolute !important;
    transition: none !important;
    visibility: visible !important;
    z-index: 3 !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match > .ui-select-toggle {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match :is(.ui-select-match-text, .ui-select-placeholder) {
    visibility: hidden !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match :is(.caret, a.btn-link, .ui-select-match-close) {
    pointer-events: auto !important;
    visibility: visible !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match a.btn-link {
    color: var(--primary-seed, #337ab7) !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match a.btn-link:hover,
html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > .ui-select-match a.btn-link:focus {
    color: var(--primary-seed, #23527c) !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > input.ui-select-search,
html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > input.ui-select-search.ng-hide {
    animation: none !important;
    cursor: text !important;
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    opacity: 1 !important;
    padding-right: 48px !important;
    position: relative !important;
    transition: none !important;
    visibility: visible !important;
    width: 100% !important;
    z-index: 2 !important;
}

html body.ff-app.ff-app.ff-app .ui-select-container.ff-capture-ui-select-stable > :is(.ui-select-choices, .ui-select-no-choice) {
    z-index: 1001 !important;
}

/* Users/Webusers: keep the open User lookup above the Branch row below it. */
html body.ff-app.ff-app.ff-app .ff-page.ff-users fieldset,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-main-col,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-main-col > .row,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .form-group {
    overflow: visible !important;
}

html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-identity-row {
    position: relative !important;
    z-index: 20 !important;
}

html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field {
    position: relative !important;
    z-index: 25 !important;
}

html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field ui-select,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .ui-select-container {
    position: relative !important;
    z-index: 26 !important;
}

html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .ui-select-container.open,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .ui-select-container.ui-select-open {
    z-index: 1100 !important;
}

html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .ui-select-choices,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .ui-select-dropdown,
html body.ff-app.ff-app.ff-app .ff-page.ff-users .ff-users-select-field .dropdown-menu {
    z-index: 1101 !important;
}
