

/* 多选下拉组件样式 */
.hik-multi-select {
    position: relative;
    width: 100%;
}

.hik-multi-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.hik-multi-wrapper {
    position: relative;
}

.hik-multi-display {
    border-radius: 4px;
    padding: 6px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
    min-height: 40px;
    border: 1px solid #C2C2C2;
}

.hik-multi-select .hik-multi-wrapper .hik-multi-display:hover {
    border-color: #000000 !important;
}

.hik-multi-display.open {
    /*    border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);*/
    border-color: #000000 !important;
}
.hik-multi-select .choose-search {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: url('/Common/Images/solution/icon-down.svg') no-repeat center / cover;
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    cursor: pointer;
}
.hik-multi-placeholder {
    color: #999;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.hik-multi-arrow {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
    color: #666;
}

    .hik-multi-arrow.open {
        transform: rotate(180deg);
    }

/* 选项容器样式 - 禁用原生滚动条 */
.hik-multi-options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: none;
    border-top: none;
    border-radius: 4px;
    max-height: 289px;
    z-index: 1000;
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    overflow: hidden; /* 隐藏原生滚动条 */
    margin-top: 4px;
}

    .hik-multi-options-container.open {
        display: flex; /* 使用flex布局 */
    }

/* 选项列表容器 */
.hik-multi-options {
    flex: 1;
    overflow: hidden; /* 隐藏溢出内容 */
    position: relative;
}

/* 选项列表 */
.hik-multi-options-list {
    position: relative;
    width: 100%;
    transition: transform 0.2s ease-out;
    padding:6px 0;
}

.hik-multi-option {
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

    .hik-multi-option:last-child {
        border-bottom: none;
    }

    .hik-multi-option:hover {
        background: rgba(245, 245, 245, 1);
    }
    .hik-multi-option:has(.hik-multi-checkbox.checked) {
        background: rgba(251, 231, 230, 1);
    }

.hik-multi-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: all 0.2s;
}

    .hik-multi-checkbox.checked {
        border-color: #e74c3c;
        background-color: #e74c3c;
    }

        .hik-multi-checkbox.checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
            background: url(/Common/Images/icon-checked.svg) no-repeat center / cover;
        }

.hik-multi-option label {
    cursor: pointer;
    flex-grow: 1;
    color: rgba(51, 51, 51, 1);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    height: 20px;
    margin-bottom: 0px !important;
}

.hik-multi-display-text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-grow: 1;
}

.hik-display-tag {
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    background: rgba(243, 243, 243, 1);
    color: rgba(51, 51, 51, 1);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: capitalize;
}

/* 自定义滚动条样式 */
.hik-scrollbar {
    background-color: #ffffff;
    position: relative;
    border-radius: 3px;
    margin: 4px 4px 4px 0; /* 滚动条距离右边4px */
    width: 6px;
    position: absolute;
    top: 0;
    right: 4px;
}

.hik-scrollbar-thumb {
    width: 6px;
    border-radius: 3px;
    background: rgba(221, 221, 221, 1);
    position: absolute;
    top: 0;
    left: 2px; /* 使滑块在轨道内居中 */
    cursor: pointer;
    transition: background-color 0.2s;
}

    .hik-scrollbar-thumb:hover {
        background: rgba(187, 187, 187, 1);
    }

/* 隐藏原生滚动条 */
.hik-multi-options-container::-webkit-scrollbar {
    display: none;
}

.hik-multi-options-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}