/* 云蓝模板：复用后台已验收的自定义下拉风格 */

.sky-custom-select {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
}

.sky-custom-select > select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sky-custom-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.sky-custom-trigger:hover,
.sky-custom-trigger[aria-expanded="true"] {
    border-color: #3b82f6;
}

.sky-custom-trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sky-custom-trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
}

.sky-custom-options {
    position: fixed;
    display: none;
    box-sizing: border-box;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
    z-index: 9999;
}

.sky-custom-options.open {
    display: block;
}

.sky-custom-option {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.sky-custom-option:hover,
.sky-custom-option[aria-selected="true"] {
    background: rgba(37,99,235,.09);
}

.sky-custom-option:disabled {
    opacity: .5;
    cursor: not-allowed;
}
