.journal-global-search {
    position: relative;
    z-index: 30;
}

.journal-global-search__journal {
    min-width: 0;
}

.global-journal-picker {
    position: relative;
    width: 280px;
    flex: 0 0 280px;
}

.global-journal-picker__trigger {
    display: flex;
    width: 280px;
    height: 32px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 30px;
    text-align: left;
    outline-color: #008868;
}

.global-journal-picker__value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-journal-picker__trigger i {
    width: 0;
    height: 0;
    margin-left: 8px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 6px solid #6b7280;
    flex: 0 0 auto;
}

.global-journal-picker__menu {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    z-index: 100;
    width: 280px;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.global-journal-picker__menu[hidden] {
    display: none;
}

.global-journal-picker__menu button {
    display: block;
    width: 100%;
    border: 0;
    padding: 7px 10px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 18px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.global-journal-picker__menu button:hover,
.global-journal-picker__menu button[aria-selected="true"] {
    background: #e8f5e9;
    color: #00795e;
}

@media (max-width: 639px) {
    .journal-global-search__journal {
        display: block;
        width: 100%;
    }

    .global-journal-picker,
    .global-journal-picker__trigger,
    .global-journal-picker__menu {
        width: 100%;
    }
}
