/* F3 UniversalXref */

.f3-uxref-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Search field ─────────────────────────────────────────── */

.f3-uxref-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.f3-uxref-input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #c5d8e8;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.f3-uxref-input:focus {
    border-color: #2b7ab8;
    box-shadow: 0 0 0 3px rgba(43, 122, 184, 0.15);
}

/* ── Spinner ──────────────────────────────────────────────── */

.f3-uxref-spinner {
    position: absolute;
    right: 0.75rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid #c5d8e8;
    border-top-color: #2b7ab8;
    border-radius: 50%;
    display: none;
}

.f3-uxref-spinner.f3-uxref-spinning {
    display: block;
    animation: f3-uxref-spin 0.6s linear infinite;
}

@keyframes f3-uxref-spin {
    to { transform: rotate(360deg); }
}

/* ── Results table ────────────────────────────────────────── */

.f3-uxref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid #d0e4f0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}



.f3-uxref-table thead tr {
    background: #e8f2fa;
    border-bottom: 2px solid #2b7ab8;
}

.f3-uxref-table thead th {
    text-align: left;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a5a8a;
    white-space: nowrap;
}

.f3-uxref-table tbody tr {
    border-bottom: 1px solid #e4eff7;
    transition: background 0.15s;
}

.f3-uxref-table tbody tr:nth-child(even) {
    background: #f4f9fd;
}

.f3-uxref-table tbody tr:last-child {
    border-bottom: none;
}

.f3-uxref-table tbody tr:hover {
    background: #deeef9;
}

.f3-uxref-table td {
    padding: 0.6rem 1rem;
    vertical-align: middle;
    color: #333;
}

.f3-uxref-table td a {
    color: #2b7ab8;
    text-decoration: none;
    font-weight: 500;
}

.f3-uxref-table td a:hover {
    text-decoration: underline;
    color: #1a5a8a;
}

/* ── Match highlight ──────────────────────────────────────── */

.f3-uxref-table mark {
    background: #fff0a0;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* ── Status messages ──────────────────────────────────────── */

.f3-uxref-none,
.f3-uxref-error {
    margin: 0.5rem 0;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.f3-uxref-none {
    color: #4a7a9b;
    background: #edf5fb;
    border: 1px solid #c5d8e8;
}

.f3-uxref-error {
    color: #a00;
    background: #fff0f0;
    border: 1px solid #f5c6c6;
}
