
/* COFEVAR - catálogo pesquisável V4 */
.cfv-material-quick{background:linear-gradient(125deg,#f0f7fa 0%,#fff 80%);border:1px solid #cee0e9;border-radius:16px;padding:18px;margin:0 0 24px;box-shadow:0 8px 24px rgba(7,42,61,.05)}
.cfv-material-quick h3{font-size:clamp(1.12rem,2.1vw,1.35rem);margin:0 0 6px;color:#163950}
.cfv-quick-subtitle{margin:0 0 12px;line-height:1.5;color:#395566}
.cfv-material-quick input[type=search]{width:100%;box-sizing:border-box;border:1px solid #99b4c4;padding:14px 15px;border-radius:10px;background:#fff;color:#092c40;font-size:1rem;min-height:50px}
.cfv-material-quick input:focus-visible,.cfv-match:focus-visible,.cfv-family:focus-visible,.cfv-selected-material button:focus-visible{outline:3px solid #1078ad;outline-offset:2px}
.cfv-material-families{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 9px}
.cfv-family{appearance:none;border-radius:999px;border:1px solid #aec6d5;background:#fff;color:#24516a;padding:8px 12px;font-size:.85rem;min-height:37px;cursor:pointer}
.cfv-family:is(:hover,.is-active){background:#0a5778;color:#fff;border-color:#0a5778}
.cfv-material-results{max-height:355px;overflow:auto;margin-top:8px;display:grid;gap:6px}
.cfv-material-results[hidden],.cfv-selected-material[hidden]{display:none}
.cfv-match{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;background:#fff;border:1px solid #c7dae6;border-radius:9px;padding:11px 12px;color:#16364b;width:100%}
.cfv-match:hover,.cfv-match:focus-visible,.cfv-match[aria-selected="true"]{background:#e6f3fa;border-color:#4791b7}
.cfv-match strong{font-size:.93rem;overflow-wrap:anywhere}.cfv-match span{font-size:.75rem;color:#507086;min-width:90px;text-align:right}
.cfv-quick-note{font-size:.86rem;line-height:1.5;margin:10px 0 0;color:#3c5b6e}
.cfv-material-quick.cfv-chosen{border-color:#548c9c;background:#f0f9fa}
.cfv-selected-material{padding:15px;margin:15px 0 3px;border:1px solid #86b7c8;border-radius:11px;background:#fff}
.cfv-selected-material p{margin:0 0 9px;color:#123c51}
.cfv-selected-material .cfv-fast-grid{display:grid;grid-template-columns:minmax(92px,1fr) minmax(120px,1fr);gap:10px;margin-bottom:12px}
.cfv-selected-material label{font-size:.82rem;color:#395566;display:grid;gap:5px}
.cfv-selected-material input,.cfv-selected-material select{box-sizing:border-box;width:100%;height:43px;border:1px solid #9bb9c8;border-radius:8px;padding:7px;background:#fff;color:#173c51;font-size:1rem}
.cfv-fast-add{width:100%;min-height:46px;background:#0a5778;border:0;border-radius:9px;color:#fff;font-weight:700;cursor:pointer}
.cfv-fast-add:hover{background:#06435f}
.cfv-site-search-link{margin:10px 0;font-size:.92rem}
@media(max-width:650px){.cfv-material-quick{padding:13px;margin-bottom:18px}.cfv-match{display:block}.cfv-match span{display:block;text-align:left;margin-top:4px}.cfv-material-results{max-height:290px}.cfv-material-families{gap:5px}.cfv-family{font-size:.79rem;padding:7px 10px}.cfv-selected-material .cfv-fast-grid{grid-template-columns:1fr 1fr}}

/* V5: WhatsApp direto e associação explícita à referência cadastral */
.cfv-direct-whatsapp{background:#0d6d77;color:#fff;border-radius:9px;min-height:46px}
.cfv-direct-whatsapp:is(:hover,:focus-visible){background:#084955;color:#fff}
.cfv-handoff-note{line-height:1.45;margin:12px 0 0;font-size:.9rem}
.cfv-import-suggestions{margin-top:12px;background:#f2f8fb;border:1px solid #cadbe4;border-radius:10px;padding:12px}
.cfv-import-suggestions p{margin:0 0 8px;font-size:.84rem;color:#35586d}
.cfv-import-choices{display:flex;flex-direction:column;gap:6px}
.cfv-import-match{background:white;color:#164967;border:1px solid #aac9d7;text-align:left;cursor:pointer;border-radius:8px;padding:10px;overflow-wrap:anywhere}
.cfv-import-match[aria-pressed="true"]{background:#d8f0ed;border-color:#0d6d77;font-weight:600}
@media(max-width:550px){.cfv-direct-whatsapp{width:100%;display:block}.cfv-import-match{font-size:.85rem}}
