/* Bloco CA: linha 1 = rótulo + sugestões + chips; linha 2 = campo + Mais CAs… */
.chr-ca-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.chr-ca-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 28px;
}

.chr-ca-label-inline {
    flex-shrink: 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    margin-right: 2px;
}

.chr-ca-row-entry .chr-ca-entry,
.chr-ca-row-entry input[name="solicitacao_item_solicitacao_ca_item"] {
    width: 220px !important;
    min-width: 140px;
    max-width: 320px;
    flex: 0 1 auto;
    font-size: 12px;
    color: #666;
    height: 28px;
    padding: 2px 8px;
}

.chr-ca-row-entry .btn {
    flex-shrink: 0;
    white-space: nowrap;
    height: 28px;
    padding: 2px 10px;
    line-height: 1.2;
}

/* Chips escolhidos */
.chr-ca-chips {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    min-height: 0;
}

.chr-ca-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 8px;
    border-radius: 12px;
    background: #2196F3;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    max-width: 140px;
}

.chr-ca-chip-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.chr-ca-chip-x {
    border: 0;
    background: rgba(255,255,255,0.25);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    line-height: 14px;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
}

.chr-ca-chip-x:hover {
    background: rgba(0,0,0,0.2);
}

.chr-ca-chips-hint {
    display: none;
}

/* Sugestões do produto */
.chr-ca-sugestoes {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    min-height: 0;
}

.chr-ca-sugestoes-label {
    display: none;
}

.chr-ca-sugestao {
    border: 1px solid #90CAF9;
    background: #E3F2FD;
    color: #1565C0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.chr-ca-sugestao:hover {
    background: #BBDEFB;
    border-color: #42A5F5;
}

.chr-ca-sugestao.is-added {
    background: #C8E6C9;
    border-color: #66BB6A;
    color: #2E7D32;
}

.chr-ca-sugestao small {
    display: none;
}

.chr-ca-sugestoes-vazio {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
