/* 基础样式 - 保持与原风格类似，同时增加自定义下拉搜索组件样式 */
* {
    box-sizing: border-box;
}

/* 模拟原有列表项样式（保持原有结构不破坏外观） */
.departDept {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.depart_label {
    width: 85px;
    font-size: 15px;
    flex-shrink: 0;
}

/* 自定义搜索选择器容器 - 替代原始select */
.custom-search-select {
    flex: 1;
    position: relative;
    min-width: 180px;
    cursor: pointer;
}

/* 输入框样式 (模仿原生select输入感) */
.search-select-input {
    width: 77%!important;
    /*padding: 8px 32px 8px 12px;*/
    border: none!important;
    /*border-radius: 6px;*/
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.search-select-input:focus {
    /*border-color: #409eff;*/
    /*box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);*/
}

/* 下拉箭头图标 (模拟原生select的箭头) */
.select-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #8c8c8c;
    pointer-events: none;
    transition: transform 0.2s;
}

/* 清空按钮 */
.select-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    color: #bfbfbf;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.2s;
}

.select-clear:hover {
    color: #999;
}

.select-clear:active {
    color: #666;
}

.departDept .arrow {
    display: none!important;
}

/* 下拉选项面板 */
.select-dropdown {
    position: absolute;
    top: 80%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    /*border: 1px solid #e2e2e2;*/
    /*border-radius: 8px;*/
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* 下拉选项列表样式 */
.select-options-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.select-options-list li {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.select-options-list li:hover {
    background-color: #f5f7fa;
}

.select-options-list li.selected {
    background-color: #ecf5ff;
    color: #409eff;
    font-weight: 500;
}

.select-options-list li.disabled,
.no-match-tip {
    color: #bfbfbf;
    cursor: default;
    text-align: center;
    background: #fafafa;
}

.select-options-list li.disabled:hover {
    background-color: #fafafa;
}

/* 高亮匹配的关键词 */
.highlight {
    /*background-color: #ffe58f;*/
    /*color: #d4380d;*/
    font-weight: 500;
    border-radius: 2px;
}

/* 原生select隐藏，但仍保留用于表单提交和值同步 */
.original-select-hidden {
    display: none;
}

/* 无数据提示 */
.no-match-tip {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 滚动条美化 */
.select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .departDept {
        padding: 10px 12px;
    }
    .depart_label {
        width: 70px;
        font-size: 14px;
    }
    .search-select-input {
        font-size: 13px;
        padding: 7px 30px 7px 10px;
    }
}