/* ============================================================
   user_picker.css —— 全站统一人员选择器样式
   与系统 Bootstrap 风格一致（标签 pill、浅色候选下拉）
   ============================================================ */

.user-picker { position: relative; }

.user-picker .up-wrap { position: relative; }

/* 多值：tag 容器 + 输入框 */
.user-picker .up-multi-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    cursor: text;
}
.user-picker .up-multi-box:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
}
.user-picker .up-input {
    border: 0;
    outline: none;
    flex: 1 1 auto;
    min-width: 90px;
    background: transparent;
    padding: 4px 2px;
    font-size: .9rem;
}
.user-picker .up-input:focus { box-shadow: none; }

/* 已选 tag */
.user-picker .up-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    margin: 2px 0;
    background: #e9ecef;
    border-radius: 20px;
    font-size: .875rem;
    white-space: nowrap;
    color: #212529;
}
.user-picker .up-tag-x {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #666;
    margin-left: 2px;
}
.user-picker .up-tag-x:hover { color: #dc3545; }

/* 单值：输入框 + 清除按钮 */
.user-picker .up-single-box { position: relative; }
.user-picker .up-single-box .up-input {
    width: 100%;
    min-height: 38px;
    padding: 6px 32px 6px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    font-size: .9rem;
}
.user-picker .up-single-box .up-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
    outline: none;
}
.user-picker .up-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 2px;
}
.user-picker .up-clear:hover { color: #dc3545; }

/* 候选下拉 */
.user-picker .up-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}
.user-picker .up-item {
    padding: .5rem .75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
}
.user-picker .up-item:last-child { border-bottom: 0; }
.user-picker .up-item:hover,
.user-picker .up-item.active { background: #f8f9fa; }
.user-picker .up-item-name { font-weight: 600; font-size: .9rem; }
.user-picker .up-item-detail {
    font-size: .78rem;
    color: #6c757d;
    margin-top: 1px;
}
.user-picker .up-empty {
    padding: .75rem;
    text-align: center;
    color: #6c757d;
    font-size: .85rem;
}
.user-picker .up-empty.up-error { color: #dc3545; }
