/* venda-creuada.css — pestanyes de Màrqueting i la peça «Venda creuada» */

/* ---------- pestanyes ---------- */
.mk-tabs { margin: 2px 0 16px; }
.mk-pane[hidden] { display: none; }

/* ---------- barra de filtres ---------- */
.vc-barra {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(180px, 1.2fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--ombra);
}
.vc-camp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vc-camp > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.vc-camp select, .vc-camp input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinta);
  outline: none;
}
.vc-camp select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}
.vc-camp select:focus, .vc-camp input:focus { border-color: #1565C0; background-color: #fff; }

/* ---------- resum ---------- */
.vc-resum { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; align-items: center; }
.vc-kpi {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #F3F4F6; border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; color: var(--gris);
}
.vc-kpi b { font-size: 14.5px; color: var(--tinta); }
.vc-nota { margin-left: auto; font-size: 11.5px; color: var(--gris-clar, #9CA3AF); }

/* ---------- llista de clients ---------- */
.vc-llista { display: flex; flex-direction: column; gap: 8px; }
.vc-fila {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--ombra);
  transition: box-shadow .15s, border-color .15s;
}
.vc-fila:hover { border-color: #C7D2E0; box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.vc-av {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; background: #94A3B8;
}
.vc-cos { min-width: 0; }
.vc-nom { font-size: 14.5px; font-weight: 700; color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-meta { font-size: 12px; color: var(--gris); margin: 2px 0 7px; }
.vc-meta b { color: var(--tinta); font-weight: 700; }
.vc-linies { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.vc-etiq { font-size: 10.5px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }

/* una etiqueta per línia, sempre del mateix color */
.vc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: #E5E7EB; color: #374151; }
.vc-chip i { font-style: normal; font-weight: 800; opacity: .7; }
.vc-l-reserves { background: #DCF3E4; color: #17653A; }
.vc-l-serveis_educatius { background: #DBEAFE; color: #1E4FA3; }
.vc-l-take_your_team { background: #FFE9D2; color: #9A4A0B; }
.vc-l-dinamitzacio { background: #EBE0FB; color: #5B2DA8; }
.vc-l-formacio { background: #D6F1F1; color: #146A6A; }
.vc-l-participacio { background: #FCE0EC; color: #A12760; }
/* línies que li falten: només contorn, convida a oferir-les */
.vc-chip.vc-falta { background: transparent; color: #6B7280; border: 1.5px dashed #CBD2DA; padding: 2px 9px; font-weight: 600; }

.vc-contacte { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.vc-bt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  color: #1565C0; background: #EEF4FD; border-radius: 9px; padding: 6px 11px; white-space: nowrap;
  max-width: 230px; overflow: hidden; text-overflow: ellipsis;
}
.vc-bt:hover { background: #DCE9FB; }
.vc-sense { font-size: 11.5px; color: #9CA3AF; font-style: italic; }
.vc-buit { text-align: center; padding: 34px 16px; color: var(--gris); font-size: 13.5px; background: #fff; border: 1px dashed #D1D5DB; border-radius: 14px; }
.vc-mes { margin: 6px auto 0; display: block; border: 1.5px solid #E5E7EB; background: #fff; border-radius: 10px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--tinta); }
.vc-mes:hover { background: #F3F4F6; }

@media (max-width: 860px) {
  .vc-barra { grid-template-columns: 1fr 1fr; }
  .vc-camp-cerca { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vc-barra { grid-template-columns: 1fr; }
  .vc-fila { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
  .vc-av { width: 38px; height: 38px; font-size: 13px; }
  .vc-contacte { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .vc-nota { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  .mk-tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mk-tabs::-webkit-scrollbar { display: none; }
  .mk-tabs .solic-tab { flex: 0 0 auto; text-align: center; padding: 11px 12px; font-size: 12.5px; white-space: nowrap; }
}

/* ---------- renovació: vistes, ofertes, seguiment i modal ---------- */
.vc-vistes { margin: 0 0 12px; }
.vc-tipus { font-size: 10.5px; font-weight: 700; color: #475569; background: #F1F5F9; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
.vc-oferta { display: flex; gap: 10px; align-items: center; margin-top: 9px; padding: 9px 11px; background: #F8FAFC; border: 1px solid #E8EDF3; border-radius: 12px; }
.vc-oferta-t { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.vc-motiu { font-size: 12px; color: var(--gris); margin-top: 3px; }
.vc-chip.vc-oferir { background: #17211D; color: #fff; }
.vc-pt { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; background: #E5E7EB; color: #374151; border: 3px solid #CBD5E1; }
.vc-pt-a { border-color: #22A559; color: #17653A; background: #EAF7EF; }
.vc-pt-b { border-color: #E0A21B; color: #8A5A00; background: #FFF6DD; }
.vc-pt-c { border-color: #CBD5E1; }
.vc-bloqs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.vc-bloq { font-size: 11px; font-weight: 600; color: #8A3B12; background: #FFF1E6; border-radius: 8px; padding: 3px 9px; }
.vc-seg { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vc-seg small { color: var(--gris); font-size: 12px; }
.vc-st { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #E5E7EB; color: #374151; }
.vc-st-env { background: #DBEAFE; color: #1E4FA3; } .vc-st-si { background: #DCF3E4; color: #17653A; }
.vc-st-mig { background: #FFF6DD; color: #8A5A00; } .vc-st-no { background: #F3F4F6; color: #6B7280; }
.vc-seg-bts { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-seg-bts button { border: 1.5px solid #E5E7EB; background: #fff; border-radius: 9px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--tinta); }
.vc-seg-bts button:hover { background: #F3F4F6; }
.vc-seg-bts .vc-prim { background: #17211D; color: #fff; border-color: #17211D; }
.vc-seg-bts .vc-fluix { color: #9CA3AF; border-style: dashed; font-weight: 600; }
button.vc-bt { border: none; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.vc-bt-prim { background: #17211D !important; color: #fff !important; }
.vc-bt-prim:hover { background: #2B3A33 !important; }
.vc-bt-text { cursor: default; background: transparent; color: var(--gris); font-weight: 600; }

.vc-modal[hidden] { display: none; }
.vc-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vc-fons { position: absolute; inset: 0; background: rgba(15, 23, 20, .45); }
.vc-panell { position: relative; width: min(640px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.25); padding: 18px 20px 20px; }
.vc-panell header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vc-panell h3 { margin: 0; font-size: 17px; }
.vc-x { border: none; background: #F3F4F6; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.vc-m-cos { display: flex; flex-direction: column; gap: 10px; }
.vc-m-cos textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #E5E7EB; border-radius: 10px; background: #F9FAFB; padding: 10px 12px; font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.vc-m-av { margin: 0; font-size: 12.5px; background: #F1F5F9; border-radius: 10px; padding: 8px 12px; color: #334155; }
.vc-m-bts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vc-m-peu { margin: 0; font-size: 11.5px; color: var(--gris); }
@media (max-width: 560px) { .vc-oferta { align-items: flex-start; } .vc-panell { padding: 16px; } }

/* Submòduls extra de Màrqueting: forats, propostes, calendari escolar */
.mkx-nota { font-size: 12.5px; color: var(--text-soft, #6b6b6b); margin: 0 0 12px; line-height: 1.45; }
.mkx-buit { padding: 28px 12px; text-align: center; color: var(--text-soft, #6b6b6b); }
.mkx-grup { border: 1px solid var(--border, #e6e2da); border-radius: 12px; background: var(--card, #fff); margin: 0 0 12px; overflow: hidden; }
.mkx-cap { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 11px 14px; background: rgba(0,0,0,.025); border-bottom: 1px solid var(--border, #e6e2da); }
.mkx-cap b { font-size: 14.5px; }
.mkx-cap span { font-size: 12.5px; color: var(--text-soft, #6b6b6b); }
.mkx-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid var(--border, #eee9e0); }
.mkx-grup .mkx-fila:first-of-type { border-top: 0; }
.mkx-info { flex: 1 1 240px; min-width: 0; }
.mkx-info b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.mkx-info small { display: block; font-size: 12px; color: var(--text-soft, #6b6b6b); margin-top: 2px; }
.mkx-dies { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #fdf1e3; color: #8a4b12; white-space: nowrap; }
.mkx-dies.molt { background: #fbe6e4; color: #8d2a22; }
.mkx-pt { font-size: 12px; font-weight: 700; color: #2f6b3f; white-space: nowrap; }
.mkx-seccio { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.mkx-motius { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mkx-motius span { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.05); }
