/**
 * Global Search Select Component Styles
 */
.search-select-box {
    position: relative;
    width: 100%;
}

.search-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-select-trigger:hover {
    border-color: #9ca3af;
}

.search-select-box.is-open .search-select-trigger {
    border-color: #ff5000;
    box-shadow: none;
}

.search-select-trigger .search-select-placeholder {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-select-trigger .search-select-value {
    color: #111827;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-select-trigger .search-select-chevron {
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.search-select-box.is-open .search-select-chevron {
    transform: rotate(180deg);
}

.search-select-dropdown {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: var(--z-floating-dropdown, 150);
    display: none;
    padding: 6px;
    box-sizing: border-box;
}

.search-select-search-wrap {
    position: relative;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.search-select-search-wrap svg {
    position: absolute;
    left: 10px;
    color: #9ca3af;
    pointer-events: none;
}

.search-select-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px 6px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-select-search-input:focus {
    border-color: #ff5000;
}

.search-select-options {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-select-options::-webkit-scrollbar {
    width: 4px;
}

.search-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.search-select-option {
    padding: 8px 10px;
    font-size: 13px;
    color: #374151;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-select-option:hover,
.search-select-option.is-focused {
    background: #fff5ef;
    color: #ff5000;
}

.search-select-option.is-selected {
    background: #fff5ef;
    color: #ff5000;
    font-weight: 500;
}

.search-select-empty {
    padding: 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.search-select-custom-btn {
    width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
    background: #fffaf5;
    border: 1px dashed #ffd8bf;
    border-radius: 3px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-select-custom-btn:hover {
    background: #fff5eb;
    border-color: #ff5000;
}

/* Disabled State */
.search-select-box.is-disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.search-select-box.is-disabled .search-select-trigger {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
}

.search-select-box.is-disabled .search-select-chevron {
    color: #cbd5e1 !important;
}

/* Error / Validation Highlight State */
.search-select-box.has-error .search-select-trigger {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
    box-shadow: none !important;
}

/* Inline Error Message */
.search-select-error {
    font-size: 11.5px;
    color: #ef4444;
    margin-top: 5px;
    line-height: 1.4;
    display: none;
    font-weight: 400;
}

.search-select-box.has-error .search-select-error {
    display: block;
}

