/* cashet.searchableCombobox.css */
.cashet-searchable-combobox-menu
{
    max-height: 300px;      /* Affects the height of the dropdown menu if there are many items */
    overflow-y: auto;       /* if menu's items exceed the max-height, automatically add a vertical scrollbar */
    overflow-x: hidden;     /* hides horizontal scrollbar */
}

/* class names in the format "cashet-searchable-combobox-align-" plus the keyword left, right or center affect the alignment of text items in the dropdown menu. See multiLineTransaction::comboAttr() function for an example of how to specify options. The default alignment is left. */
.cashet-searchable-combobox-align-left .ui-menu-item a
{
    text-align: left;
}
.cashet-searchable-combobox-align-right .ui-menu-item a
{
    text-align: right;
}

.cashet-searchable-combobox-menu .ui-menu-item,
.cashet-searchable-combobox-menu .ui-menu-item-wrapper,
.cashet-searchable-combobox-menu .ui-menu-item a
{
    margin: 0;
    border: none;
}

/* From UX spec: Font & dropdown UI color:  #3d3d3d (ACC css primary font color)
 */
.cashet-searchable-combobox-menu .ui-menu-item-wrapper,
.cashet-searchable-combobox-menu .ui-menu-item a
{
    color: var(--colorPrimary) !important;
}

.cashet-searchable-combobox-menu .ui-menu-item-wrapper
{
    font-weight: normal !important;     /* UX: don't change the font weight or line-height for hovering items */
    line-height: normal !important;     /* so that height doesn't increase on highlighted items, causing a jump effect that is distressing to some users */
    padding-top: 2.5px;                 /* UX spec 5px vertical spacing between dropdown items*/
    padding-bottom: 2.5px;
}

/* UX spec: Hover effect color on the dropdown is same as the new Pcard home table dropdown - 
 * just highlight the row. Don’t change the font color or weight for hovering.
 */
.cashet-searchable-combobox-menu .ui-menu-item-wrapper.ui-state-hover,
.cashet-searchable-combobox-menu .ui-menu-item-wrapper.ui-state-focus,
.cashet-searchable-combobox-menu .ui-menu-item-wrapper.ui-state-active
{
    background-color: var(--color-bg-highlight) !important;
    color: var(--colorPrimary) !important;
    font-weight: normal !important;
    line-height: normal !important;
    margin: 0 !important;
    border: none !important;
}

.cashet-searchable-combobox-input
{
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 16px;                       /* UX: match the box shape/height/border used by sibling multiline-row fields (e.g. the Amount field, which uses the .mllInput class) */
    padding: 1px 2px;
    border: 0.8px solid rgb(0, 0, 0);
    border-radius: 0 !important;        /* border-radius: 0 removes the rounded corners on the text box */
}

.mll-Accnt.cashet-searchable-combobox-input,
.mll-account.cashet-searchable-combobox-input,
.mll-Account.cashet-searchable-combobox-input,
.mll-Account_\#.cashet-searchable-combobox-input,
.mll-Account\*\*\*.cashet-searchable-combobox-input,
.mll-Account\#.cashet-searchable-combobox-input,
.mll-ACCOUNT.cashet-searchable-combobox-input,
.mll-account_code.cashet-searchable-combobox-input,
.mll-Accounting.cashet-searchable-combobox-input,
.mll-ACCOUNT_NUMBER.cashet-searchable-combobox-input,
.mll-Accounts.cashet-searchable-combobox-input,
.mll-Account\/Set.cashet-searchable-combobox-input,
.mll-acct.cashet-searchable-combobox-input,
.mll-Acct.cashet-searchable-combobox-input,
.mll-Acct\#.cashet-searchable-combobox-input,
.mll-ACCT.cashet-searchable-combobox-input,
.mll-EXP.cashet-searchable-combobox-input,
.mll-Expend.cashet-searchable-combobox-input,
.mll-EXPEND.cashet-searchable-combobox-input,
.mll-EXPENS.cashet-searchable-combobox-input,
.mll-Expense.cashet-searchable-combobox-input,
.mll-EXPENSE.cashet-searchable-combobox-input,
.mll-EXPN.cashet-searchable-combobox-input,
.mll-Maj.cashet-searchable-combobox-input,
.mll-MAJ.cashet-searchable-combobox-input,
.mll-MAJMN.cashet-searchable-combobox-input,
.mll-MAJ-MN.cashet-searchable-combobox-input,
.mll-MAJMNSB.cashet-searchable-combobox-input,
.mll-MAJN.cashet-searchable-combobox-input,
.mll-MAJR.cashet-searchable-combobox-input,
.mll-MAJ-SB.cashet-searchable-combobox-input
{
    max-width: 250px;
}