/* MH-02 | Shared Candidate Component */

.mh02-candidate-anchor {
    position: relative;
}

.mh02-candidate-list {
    position: absolute;
    z-index: 52000;

    width: 100%;
    max-height: 320px;
    overflow: auto;

    margin-top: 5px;
    padding: 5px;

    border: 1px solid #cfdde5;
    border-radius: 10px;

    background: #ffffff;
    box-shadow:
        0 14px 34px
        rgba(15, 40, 60, 0.14);
}

.mh02-candidate-list[hidden] {
    display: none !important;
}

.mh02-candidate-list__item {
    display: flex;
    align-items: stretch;

    min-height: 42px;
    padding: 8px 10px;

    border-radius: 7px;

    color: #22384b;

    cursor: pointer;
}

.mh02-candidate-list__item:hover,
.mh02-candidate-list__item.is-active {
    background: #eef7f9;
}

.mh02-candidate-list__content {
    min-width: 0;
    flex: 1;
}

.mh02-candidate-list__primary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 700;
    color: #1f3f50;
}

.mh02-candidate-list__secondary {
    margin-top: 2px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    color: #6b7f8e;
}

.mh02-candidate-list__message {
    padding: 11px 12px;

    border-radius: 7px;

    color: #5d7080;
    font-size: 13px;
    line-height: 1.45;
}

.mh02-candidate-list__message[data-level="empty"] {
    background: #f8fafc;
}

.mh02-candidate-list__message[data-level="warning"] {
    background: #fff7e6;
    color: #8a5a16;
}

.mh02-candidate-list__message[data-level="error"] {
    background: #fff0f0;
    color: #a63f3f;
}
