/* Scheduler - Patient search (single box + dropdown results) */

.patient-search {
    position: relative;
    width: 100%;
}

.patient-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d0cccb;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px 10px;
}

.patient-search-box:focus-within {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.12);
}

.patient-search-icon {
    color: #605e5c;
    font-size: 14px;
    flex-shrink: 0;
}

.patient-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #323130;
    background: transparent;
}

.patient-search-clear {
    background: transparent;
    border: none;
    color: #605e5c;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.patient-search-clear:hover {
    background: #f3f2f1;
    color: #323130;
}

.patient-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #edebe9;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 50;
    overflow: hidden;
    display: none;
    max-height: 320px;
}

.patient-search-dropdown.active {
    display: block;
}

.patient-search-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #f3f2f1;
}

.patient-search-item:last-child {
    border-bottom: none;
}

.patient-search-item:hover {
    background: #faf9f8;
}

.patient-search-item.selected {
    background: rgba(15, 108, 189, 0.06);
}

.patient-search-primary {
    font-size: 13px;
    font-weight: 600;
    color: #323130;
}

.patient-search-secondary {
    font-size: 12px;
    color: #605e5c;
}

.patient-search-empty {
    padding: 12px;
    font-size: 12px;
    color: #605e5c;
}

.patient-search-selected {
    margin-top: 8px;
    display: none;
}

.patient-search-selected.active {
    display: flex;
}

.patient-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #edebe9;
    background: #faf9f8;
    font-size: 12px;
    color: #323130;
}

.patient-pill button {
    border: none;
    background: transparent;
    color: #605e5c;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 999px;
}

.patient-pill button:hover {
    background: #f3f2f1;
    color: #323130;
}
