/* Global top-bar search dropdown (Phase 1) */

.search-wrapper {
    position: relative;
}

.gs-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 400px;
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    z-index: 2000;
    padding: 4px 0;
}

.gs-state {
    padding: 20px 18px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.gs-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    padding: 10px 16px 4px;
}

.gs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}

.gs-item.active {
    background: #ecfdf5;
    border-left-color: #059669;
}

.gs-ico {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475569;
    background: #f1f5f9;
}

.gs-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gs-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-title mark {
    background: #fde68a;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.gs-sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px 9px;
    flex-shrink: 0;
}

.gs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
}

.gs-footer:hover,
.gs-footer.active {
    background: #f8fafc;
}

.gs-footer .gs-enter {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 2px 6px;
    white-space: nowrap;
}
