﻿.o-input-select-container {
    position: relative;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

    .o-input-select-container:focus {
        outline: none;
    }

/* Main dropdown control */
.o-input-select-button {
    position: relative;
    width: 100%;
    height: 37px;
    padding: 0 36px 0 13px;
    border: 1px solid #dee2e6;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    /* Hover */
    .o-input-select-button:hover {
        border-color: #ced4da;
        background-color: #ffffff !important;
    }

    /* Focus */
    .o-input-select-button:focus {
        outline: none !important;
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.12) !important;
    }

    /* Disabled */
    .o-input-select-button.disabled,
    .o-input-select-button:disabled {
        background-color: #e9ecef !important;
        border-color: #dee2e6;
        color: #6c757d;
        cursor: not-allowed;
        opacity: 1;
    }

/* Placeholder */
.o-input-select-placeholder {
    color: #495057;
    font-weight: 400;
}

/* Selected value */
.o-input-select-value {
    color: #212529;
    font-weight: 400;
}

/* Dropdown arrow */
.o-input-select-arrow {
    position: absolute;
    right: 13px;
    font-size: 10px;
    line-height: 1;
    color: #495057;
    pointer-events: none;
}

/* Click outside layer */
.o-input-select-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

/* Dropdown panel */
.o-input-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    z-index: 1050;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Search section */
.o-input-select-search-container {
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Search wrapper */
.o-input-select-search-wrapper {
    position: relative;
}

/* Search input */
.o-input-select-search {
    width: 100%;
    height: 36px;
    padding: 0 34px 0 32px;
    border: 1px solid #dee2e6;
    border-radius: 0 !important;
    background: #ffffff;
    color: #212529;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    box-shadow: none !important;
}

    /* Search focus */
    .o-input-select-search:focus {
        border-color: #86b7fe;
        outline: none;
        box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.12) !important;
    }

    /* Search placeholder */
    .o-input-select-search::placeholder {
        color: #6c757d;
    }

/* Search icon */
.o-input-select-search-icon {
    position: absolute;
    left: 10px;
    top: 9px;
    color: #6c757d;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

/* Clear button */
.o-input-select-clear {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6c757d;
    font-size: 19px;
    line-height: 24px;
    cursor: pointer;
}

    .o-input-select-clear:hover {
        background: #e9ecef;
        color: #212529;
    }

/* Result count */
.o-input-select-result-count {
    margin-top: 5px;
    font-size: 11px;
    color: #6c757d;
    text-align: right;
}

/* Options area */
.o-input-select-options {
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff;
}

/* Individual option */
.o-input-select-option {
    min-height: 36px;
    padding: 7px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f3f5;
    background: #ffffff;
    color: #212529;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    font-size: inherit;
}

    /* Remove final option border */
    .o-input-select-option:last-child {
        border-bottom: none;
    }

    /* Mouse hover */
    .o-input-select-option:hover {
        background-color: #f8f9fa;
    }

    /* Keyboard highlight */
    .o-input-select-option.highlighted {
        background-color: #e9ecef;
    }

    /* Selected option */
    .o-input-select-option.selected {
        background-color: #f1f5f9;
        font-weight: 500;
    }

        /* Selected + highlighted */
        .o-input-select-option.selected.highlighted {
            background-color: #e2e8f0;
        }

/* Option text */
.o-input-select-option-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Check mark */
.o-input-select-check {
    margin-left: 12px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* No results */
.o-input-select-no-results {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 13px;
}

.o-input-select-no-results-icon {
    margin-bottom: 5px;
    font-size: 18px;
}

/* Footer */
.o-input-select-footer {
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 10px;
}
