/* Company search, shared by every intake version (embed.css, embed-v2.css and
   embed-v3.css). Colours come from v3's tokens where the page has them, with
   neutral fallbacks for v1/v2, which only define a fixed red --primary-color
   (wrong for a panel that isn't an error). */

/* ---- No results ------------------------------------------------------------
   viewCompanySelect.mjs noResultsPanel(): an empty search's message and search
   tips, as a calm card rather than red text. */

.no-results {
    --nr-accent: var(--brand, #475569);
    --nr-ink: var(--ink, #1f2937);
    --nr-muted: var(--slate, #5b6472);
    --nr-line: var(--line, #e5e7eb);

    box-sizing: border-box;
    width: 100%;
    margin: 24px 0 8px;
    padding: 20px 22px;
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: var(--nr-ink);
    /* start, not left: the card is dir="auto", so RTL text aligns right */
    text-align: start;
    animation: no-results-in 0.2s ease-out;
}

.no-results p {
    margin: 0;
}

.no-results__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.no-results__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f1f5f9;
    background: color-mix(in srgb, var(--nr-accent) 10%, #fff);
    color: var(--nr-accent);
}

.no-results__text {
    min-width: 0;
    padding-top: 1px;
}

.no-results__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.no-results__tips {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--nr-line);
}

.no-results__tips-title {
    color: var(--nr-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Letter spacing pulls joined Arabic-script letters apart. */
.no-results:dir(rtl) .no-results__tips-title {
    letter-spacing: 0;
}

.no-results__tip-list {
    counter-reset: no-results-tip;
    display: grid;
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.no-results__tip-list li {
    counter-increment: no-results-tip;
    position: relative;
    margin: 0;
    padding-inline-start: 34px;
    font-size: 14px;
    line-height: 1.5;
}

.no-results__tip-list li::before {
    content: counter(no-results-tip);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f1f5f9;
    background: color-mix(in srgb, var(--nr-accent) 10%, #fff);
    color: var(--nr-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.no-results__tip-title {
    display: block;
    font-weight: 600;
}

.no-results__tip-detail {
    display: block;
    color: var(--nr-muted);
}

@keyframes no-results-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .no-results { animation: none; }
}

@media (max-width: 480px) {
    .no-results { padding: 16px; }
    .no-results__head { gap: 12px; }
}
