/* Valeno Connect • Patch v2.7 • Tags + Lead/Cliente */
.v27-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:9px;
}
.v27-section-head .service-profile-title{margin:0!important}
#v27EditTagsBtn{
  border:1px solid rgba(30,132,220,.35);background:rgba(30,132,220,.09);
  color:var(--accent,#1587e8);border-radius:8px;padding:5px 9px;
  font:inherit;font-size:10px;font-weight:800;cursor:pointer;
}
#v27EditTagsBtn:hover{background:rgba(30,132,220,.16)}
.v27-tags-editor{
  margin-top:10px;padding:10px;border:1px solid rgba(127,127,127,.2);
  border-radius:10px;background:rgba(127,127,127,.055);
}
.v27-tags-editor[hidden]{display:none!important}
.v27-tags-editor input{
  width:100%;box-sizing:border-box;min-height:38px;padding:8px 10px;
  border:1px solid rgba(127,127,127,.28);border-radius:8px;
  background:rgba(255,255,255,.75);color:#26384a;outline:none;
}
.v27-tags-editor input:focus{
  border-color:#2b91ee;box-shadow:0 0 0 3px rgba(43,145,238,.1)
}
.v27-tags-editor>div{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}
.v27-tags-editor button{min-height:32px;border-radius:8px;padding:6px 10px;cursor:pointer;font-weight:800}
#v27SaveTagsBtn{border:0;background:#1889e9;color:#fff}
.v27-tags-editor small{display:block;margin-top:6px;opacity:.65;font-size:9px}

.v27-relationship-section{display:grid;gap:8px}
.v27-relation-current{
  display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;
  font-size:9px;font-weight:900;letter-spacing:.02em
}
.v27-relation-current.client{background:#dff8e9;color:#168146}
.v27-relation-current.lead{background:#edf1f5;color:#697b8d}
.v27-relation-switch{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;
  border:1px solid rgba(127,127,127,.18);background:rgba(127,127,127,.06);
  border-radius:10px;
}
.v27-relation-switch button{
  border:0;background:transparent;color:inherit;border-radius:8px;
  min-height:34px;font-weight:800;cursor:pointer;opacity:.66
}
.v27-relation-switch button.active{
  background:#fff;color:#1f6ba7;opacity:1;
  box-shadow:0 2px 8px rgba(20,50,80,.12)
}
.v27-relation-switch button[data-v27-profile-relation="cliente"].active{
  color:#168146;background:#e7f9ed
}
.v27-relation-help{font-size:9px;line-height:1.35;opacity:.66}

.v27-relation-pill{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid transparent;border-radius:999px;padding:6px 10px;
  font:inherit;font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap
}
.v27-relation-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.v27-relation-pill.client{color:#15814a;background:#e4f8eb;border-color:#bee9ce}
.v27-relation-pill.lead{color:#65798c;background:#eef2f5;border-color:#dce3e9}
.v27-relation-pill:hover{filter:brightness(.98);transform:translateY(-1px)}
.v27-relation-pill:disabled{opacity:.55;cursor:wait;transform:none}
.v27-relationship-cell,.v27-relationship-head{text-align:center!important}
.v27-relationship-filter{min-width:155px}

body[data-color-theme] .v27-tags-editor input{
  background:var(--theme-surface,#fff)!important;
  color:var(--theme-text,#273849)!important;
}
body[data-color-theme] .v27-relation-switch button.active{
  background:var(--theme-surface,#fff)
}
body[data-color-theme] .v27-relation-current.client,
body[data-color-theme] .v27-relation-pill.client{
  color:#187448;background:rgba(70,190,117,.14);border-color:rgba(70,190,117,.28)
}
body[data-color-theme] .v27-relation-current.lead,
body[data-color-theme] .v27-relation-pill.lead{
  color:var(--theme-muted,#7b8792);background:rgba(127,127,127,.09);border-color:rgba(127,127,127,.2)
}

@media(max-width:1050px){
  .v27-relationship-filter{min-width:135px}
}
@media(max-width:720px){
  .v27-relationship-head,.v27-relationship-cell{display:none}
}
