/*
 * 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;
}

/* 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;
}
