/* File Path: /20/acc6/public_assets/css/acc6-smart-selects.css */

.acc6-smart-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.acc6-smart-native-select {
    position: absolute !important;
    inset: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.acc6-smart-input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    border: 1px solid #b7d7ea;
    border-radius: 14px;
    padding: 0 14px 0 42px;
    background: #fff;
    color: #102033;
    font: inherit;
    font-weight: 850;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.acc6-smart-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .14) !important;
    background: linear-gradient(135deg, #fff, #f0fdfa);
}

.acc6-smart-arrow {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 32px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    color: #075985;
    font-weight: 1000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acc6-smart-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow: auto;
    z-index: 70000;
    border: 1px solid rgba(14, 165, 233, .35);
    border-radius: 16px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    padding: 7px;
}

.acc6-smart-option {
    width: 100%;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #102033;
    text-align: right;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    padding: 8px 11px;
    display: block;
}

.acc6-smart-option:hover,
.acc6-smart-option.is-active {
    background: linear-gradient(135deg, #eff6ff, #e6fffb);
    border-color: rgba(14, 165, 233, .24);
    color: #075985;
}

.acc6-smart-option.is-selected {
    background: linear-gradient(135deg, #0ea5e9, #00796b);
    color: #fff;
}

.acc6-smart-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.acc6-smart-empty {
    padding: 12px;
    text-align: center;
    color: #64748b;
    font-weight: 900;
}

.accounts-table .acc6-smart-options,
.journal-lines-table .acc6-smart-options,
.sales-lines .acc6-smart-options {
    min-width: 260px;
}

@media (max-width: 760px) {
    .acc6-smart-options {
        max-height: 240px;
    }
}
