/* Стили для полей валют */
.currency-field,
input[name="noteType"],
input[name="wantedNoteType"] {
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 0.5px;
    width: 90px !important;
}

/* Контейнер для автодополнения */
.currency-autocomplete-container {
    position: relative;
    display: inline-block;
}

/* Выпадающий список */
.currency-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    width: 100%;
}

/* Опции в выпадающем списке */
.currency-option {
    padding: 6px 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.currency-option:hover {
    background-color: #f0f7ff !important;
}

.currency-option.active {
    background-color: #e8f4ff !important;
    border-left: 3px solid #007bff;
}

/* Скроллбар для выпадающего списка */
.currency-dropdown::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .currency-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 90vw !important;
        max-width: 90vw !important;
        max-height: 60vh !important;
        z-index: 10000 !important;
    }

    .currency-dropdown:before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}