.cmp_toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.cmp_count_lbl {
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--f-mono);
    font-variant-numeric: tabular-nums;
}

.cmp_search_wrap {
    position: relative;
    max-width: 360px;
    flex: 1;
}
.cmp_search_drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.cmp_search_drop.cmp_drop_open { display: block; }
.cmp_drop_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .45rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid hsl(var(--border));
    transition: background .08s;
}
.cmp_drop_item:last-child { border-bottom: none; }
.cmp_drop_item:hover { background: hsl(var(--muted)); }
.cmp_drop_item.cmp_drop_added { opacity: .45; cursor: default; }
.cmp_drop_left  { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cmp_item_name  { font-weight: 500; font-size: .84rem; }
.cmp_item_meta  { font-size: .73rem; color: hsl(var(--muted-foreground)); }

.cmp_city_th {
    padding: .7rem 1rem .85rem;
    min-width: 170px;
    vertical-align: top;
}
.cmp_city_hdr {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmp_remove_bal {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.cmp_city_text {
    padding: 0 .3rem;
    white-space: nowrap;
}
.cmp_city_name {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    color: hsl(var(--foreground));
}
.cmp_city_name:hover { color: hsl(var(--primary)); }
.cmp_city_dept {
    font-size: .78rem;
    color: hsl(var(--muted-foreground));
}
.cmp_remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: hsl(var(--foreground) / .45);
    cursor: pointer;
    padding: 0;
    border-radius: 3px;
    font-size: .9rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background .1s, color .1s;
}
.cmp_remove:hover { background: hsl(var(--border)); color: hsl(var(--foreground)); }

.cmp_section_row td {
    padding: .35rem 1rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--muted));
}
.cmp_row_label {
    min-width: 195px;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 600;
}
.cmp_cell {
    text-align: center;
    font-family: var(--f-mono);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}
.cmp_best  { background: hsl(142 76% 36% / .07); }
.cmp_worst { background: hsl(var(--destructive) / .07); }
.cmp_lock_ico { display: flex; justify-content: center; align-items: center; }

@media (max-width: 700px) {
    .cmp_row_label { min-width: 130px; }
    .cmp_city_th   { min-width: 120px; }
}

@media (max-width: 959px) {
    .cmp_toolbar { flex-wrap: wrap; }
    .cmp_search_wrap { max-width: none; width: 100%; flex-basis: 100%; }
    .cmp_count_lbl { flex: 1; }
}
