/* Universal Scrip Autocomplete Dropdown Styling */
.scrip-ac-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.scrip-ac-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #090E17;
    border: 1px solid #1E293B;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.15);
    z-index: 100000;
    max-height: 380px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "JetBrains Mono", monospace;
}

.scrip-ac-dropdown::-webkit-scrollbar {
    width: 5px;
}
.scrip-ac-dropdown::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 3px;
}

.scrip-ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-left 0.15s ease;
}

.scrip-ac-item:last-child {
    border-bottom: none;
}

.scrip-ac-item:hover, .scrip-ac-item.ac-active {
    background: #141E2E;
    border-left: 3px solid #38BDF8;
}

.scrip-ac-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    padding-right: 12px;
}

.scrip-ac-sym-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.scrip-ac-sym {
    font-weight: 800;
    font-size: 13.5px;
    color: #F8FAFC;
    letter-spacing: 0.02em;
}

.scrip-ac-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scrip-ac-tag.fno {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.scrip-ac-tag.eq {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.scrip-ac-tag.mcx {
    background: rgba(236, 72, 153, 0.15);
    color: #F472B6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.scrip-ac-tag.cde {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.scrip-ac-name {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scrip-ac-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.scrip-ac-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scrip-ac-ltp {
    font-size: 13.5px;
    font-weight: 800;
    color: #F8FAFC;
    font-family: 'JetBrains Mono', monospace;
}

.scrip-ac-chg {
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.scrip-ac-chg.pos { color: #10B981; }
.scrip-ac-chg.neg { color: #F43F5E; }

.scrip-ac-ms-row {
    font-size: 9.5px;
    color: #64748B;
    font-family: 'JetBrains Mono', monospace;
}

.scrip-ac-match-highlight {
    color: #38BDF8;
    text-decoration: underline;
    font-weight: 900;
}

.scrip-ac-empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #64748B;
}
