/* ============================================================================
   PANDY CUSTOM SELECT SYSTEM (DISEÑO PROPIO SIN DROPDOWNS NATIVOS DEL NAVEGADOR)
   ============================================================================ */

.pandy-select-wrap {
    position: relative;
    width: 100%;
    display: block;
    user-select: none;
    font-family: inherit;
    box-sizing: border-box;
}

.pandy-select-wrap.pandy-inline {
    display: inline-block;
    vertical-align: middle;
}

.pandy-select-trigger {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    font-family: inherit;
    box-sizing: border-box;
    text-align: left;
    outline: none;
}

.pandy-select-trigger:hover {
    border-color: #c4b5fd;
    background: #faf8ff;
}

.pandy-select-wrap.open .pandy-select-trigger,
.pandy-select-trigger:focus-visible {
    border-color: #7c4de6;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(124, 77, 230, 0.14);
}

.pandy-select-wrap.pandy-select-invalid .pandy-select-trigger {
    border-color: #ef4444;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15);
}

.pandy-select-wrap.disabled .pandy-select-trigger {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.pandy-select-value-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.pandy-select-chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.pandy-select-wrap.open .pandy-select-chevron {
    transform: rotate(180deg);
    color: #7c4de6;
}

.pandy-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    padding: 6px;
    z-index: 99999;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    animation: pandySelectFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pandy-select-wrap.open-up .pandy-select-menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.pandy-select-wrap.open .pandy-select-menu {
    display: block;
}

@keyframes pandySelectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pandy-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 500;
    transition: background-color 0.12s ease, color 0.12s ease;
    box-sizing: border-box;
}

.pandy-select-option:hover,
.pandy-select-option.highlighted {
    background: #faf8ff;
    color: #6d28d9;
}

.pandy-select-option.selected {
    background: #f5f0ff;
    color: #6d28d9;
    font-weight: 600;
}

.pandy-select-option-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pandy-select-check {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #7c4de6;
}

.pandy-select-menu::-webkit-scrollbar {
    width: 6px;
}

.pandy-select-menu::-webkit-scrollbar-track {
    background: transparent;
}

.pandy-select-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.pandy-select-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
