/* Hide rows filtered out by the client-side smart search. Owned by web/js/my-entity-search.js. */
.search-hidden { display: none !important; }

/* "?" help button auto-injected next to the search input. Lives inside the
   same `.position-relative` wrapper that hosts the search icon, mirroring
   that icon's positioning on the opposite side. */
.my-search-help-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--color-neutral-400, #94a3b8);
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}
.my-search-help-btn:hover,
.my-search-help-btn:focus-visible {
    color: var(--color-primary-600, #2563eb);
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}
[data-theme="dark"] .my-search-help-btn:hover,
[data-theme="dark"] .my-search-help-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

/* The popover surface itself. Bootstrap's default max-width is ~276px;
   our two-column layout needs a bit more room. The z-index sits above
   `.header-search-overlay` (z-index 1075) so the popover renders on top of
   the command-palette modal, not behind its backdrop. */
.popover.my-search-help-popover {
    max-width: 380px;
    z-index: 1080;
}
.popover.my-search-help-popover .popover-body {
    padding: 0.75rem 0.875rem;
}

/* Popover content: vertical stack of `code` + label pairs. */
.my-search-help {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}
.my-search-help__title {
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .my-search-help__title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.my-search-help__row {
    display: grid;
    grid-template-columns: minmax(125px, max-content) 1fr;
    gap: 0.65rem;
    align-items: baseline;
}
.my-search-help__row code {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-primary-700, #1d4ed8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
}
[data-theme="dark"] .my-search-help__row code {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-primary-300, #93c5fd);
}
.my-search-help__row span {
    color: var(--color-neutral-700, #334155);
    line-height: 1.3;
}
[data-theme="dark"] .my-search-help__row span {
    color: var(--color-neutral-300, #cbd5e1);
}
.my-search-help__hint {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 0.78rem;
    color: var(--color-neutral-500, #64748b);
    font-style: italic;
}
[data-theme="dark"] .my-search-help__hint {
    border-top-color: rgba(255, 255, 255, 0.1);
}
