.ana_search_wrap { position: relative; }
.ana_drop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50; display: none; overflow: hidden; }
.ana_drop_open { display: block; }
.ana_drop_item { padding: .3rem .65rem; font-size: .84rem; cursor: pointer; border-bottom: 1px solid hsl(var(--border)); }
.ana_drop_item:last-child { border-bottom: none; }
.ana_drop_item:hover { background: hsl(var(--muted)); }

.ana_surf_input  { width: 75px; }
.ana_frais_input { width: 75px; }

.ana_verdict_bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

.ana_obs_list { display: flex; flex-direction: column; gap: .4rem; }
.ana_obs_item { display: flex; align-items: flex-start; gap: .45rem; }
.ana_obs_icon { flex-shrink: 0; margin-top: .1rem; }

@media (max-width: 959px) {
    #ana_form [uk-grid] > * { flex: none; width: 100%; }
    .ana_surf_input, .ana_frais_input { width: 100%; }

    .ana_cmp_table,
    .ana_cmp_table tbody { display: flex; flex-direction: column; gap: .5rem; }
    .ana_cmp_table thead { display: none; }
    .ana_cmp_table tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        border: 1px solid hsl(var(--border));
        border-radius: 6px;
        overflow: hidden;
    }
    .ana_cmp_table td { white-space: normal; padding: .38rem .55rem; }
    .ana_cmp_table td:first-child {
        grid-column: 1 / -1;
        background: hsl(var(--muted) / .35);
        border-bottom: 1px solid hsl(var(--border));
        font-weight: 500;
        font-size: .84rem;
    }
    .ana_cmp_table td:not(:first-child) { display: block; text-align: left; font-size: .82rem; }
    .ana_cmp_table td:nth-child(2)::before,
    .ana_cmp_table td:nth-child(3)::before,
    .ana_cmp_table td:nth-child(4)::before {
        display: block;
        font-size: .6rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: hsl(var(--muted-foreground));
        margin-bottom: .1rem;
        font-family: inherit;
        font-weight: 400;
    }
    .ana_cmp_table td:nth-child(2)::before { content: 'Votre bien'; }
    .ana_cmp_table td:nth-child(3)::before { content: 'Marché'; }
    .ana_cmp_table td:nth-child(4)::before { content: 'Écart'; }
    .uk-overflow-auto:has(.ana_cmp_table) { background: none; }

    .ana_ctx_table,
    .ana_ctx_table tbody { display: block; }
    .ana_ctx_table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid hsl(var(--border)); }
    .ana_ctx_table tr:last-child { border-bottom: none; }
    .ana_ctx_table td { white-space: normal; padding: .35rem .75rem; border: none; font-size: .83rem; }
    .ana_ctx_table td:nth-child(odd) { color: hsl(var(--muted-foreground)); font-size: .78rem; }
    .uk-overflow-auto:has(.ana_ctx_table) { background: none; }
}
