/**
 * NOC Finder - [noc_finder] (theme-agnostic; works with or without Tailwind).
 */
.bt-noc-finder {
    font-family: var(--bt-font, inherit);
    color: #111827;
}

.bt-noc-finder__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.bt-noc-finder__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #111827;
}

.bt-noc-finder__lead {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.bt-noc-finder__status {
    font-size: 0.75rem;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin: 0 0 1rem;
}

.bt-noc-finder__status--warn {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.bt-noc-finder__loading,
.bt-noc-finder__error {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 2rem 1rem;
}

.bt-noc-finder__error {
    color: #b91c1c;
}

.bt-noc-finder__unit {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.bt-noc-finder__field {
    position: relative;
}

.bt-noc-finder__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

.bt-noc-finder__input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.bt-noc-finder__input:focus {
    outline: none;
    border-color: var(--bt-primary, #1a56a3);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 86, 163, 0.12);
}

.bt-noc-finder__counter {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.75rem 0 0;
}

.bt-noc-finder__results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bt-noc-finder__result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bt-noc-finder__result:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    .bt-noc-finder__result {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }
}

.bt-noc-finder__code {
    flex-shrink: 0;
    text-align: center;
    min-width: 5rem;
}

.bt-noc-finder__code-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bt-primary, #1a56a3);
    line-height: 1.2;
}

.bt-noc-finder__code-lbl {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.bt-noc-finder__body {
    flex: 1;
    min-width: 0;
}

.bt-noc-finder__occ-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: #111827;
}

.bt-noc-finder__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bt-noc-finder__teer {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.bt-noc-finder__teer--0 { background: #f3e8ff; color: #6b21a8; }
.bt-noc-finder__teer--1 { background: #dbeafe; color: #1e40af; }
.bt-noc-finder__teer--2 { background: #dcfce7; color: #166534; }
.bt-noc-finder__teer--3 { background: #ccfbf1; color: #115e59; }
.bt-noc-finder__teer--4 { background: #fef3c7; color: #92400e; }
.bt-noc-finder__teer--5 { background: #fee2e2; color: #991b1b; }

.bt-noc-finder__cat {
    font-size: 0.75rem;
    color: #9ca3af;
}

.bt-noc-finder__badge-wrap {
    flex-shrink: 0;
}

.bt-noc-finder__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.bt-noc-finder__badge--yes {
    background: #16a34a;
    color: #fff;
}

.bt-noc-finder__badge--no {
    background: #d1d5db;
    color: #374151;
}

.bt-noc-finder__mark {
    background: #fef9c3;
    color: #854d0e;
    border-radius: 2px;
    padding: 0 2px;
}

.bt-noc-finder__more {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    padding: 0.75rem 0;
    margin: 0;
}

.bt-noc-finder__empty {
    text-align: center;
    padding: 3rem 1rem;
}

.bt-noc-finder__empty-title {
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.35rem;
}

.bt-noc-finder__empty-text {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.bt-noc-finder__hint {
    text-align: center;
    padding: 3rem 0;
}

.bt-noc-finder__hint-text {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0 0 1rem;
}

.bt-noc-finder__examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.bt-noc-finder__example {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.bt-noc-finder__example:hover {
    border-color: var(--bt-primary, #1a56a3);
    color: var(--bt-primary, #1a56a3);
}

/* Picker mode (modal in calculators) */
.bt-noc-finder--picker .bt-noc-finder__hint {
    padding: 1.5rem 0;
}

.bt-noc-finder__result--picker {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bt-noc-finder__result--picker:hover,
.bt-noc-finder__result--picker:focus {
    outline: none;
    border-color: var(--bt-primary, #1a56a3);
    box-shadow: 0 0 0 2px rgba(26, 86, 163, 0.15);
}

.bt-noc-finder__select {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--bt-primary, #1a56a3);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.bt-noc-finder__select:hover {
    filter: brightness(1.08);
}

.bt-noc-finder__badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}
