/* ── CAMPAÑAS · META ADS (solo CEO) ── */
/* Reusa las clases del módulo comercial (com-card, com-kpi, fin-table) y las variables de color del CRM. */
.cmp-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.cmp-top .fin-tabs{margin-bottom:0}
.cmp-fechas{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cmp-kpis{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.cmp-table th,.cmp-table td{white-space:nowrap}
.cmp-table td:first-child{white-space:normal;min-width:220px;max-width:360px}
.cmp-n{text-align:right!important;font-variant-numeric:tabular-nums}
.cmp-click{cursor:pointer}
.cmp-fila-camp td{background:var(--surface2)}
.cmp-fila-conj td:first-child{padding-left:28px}
.cmp-fila-ad td{font-size:12.5px}
.cmp-fila-ad td:first-child{padding-left:50px;color:var(--txt2)}
.cmp-flecha{display:inline-block;width:16px;color:var(--txt3);font-size:11px}
.cmp-meta{margin-top:3px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cmp-est{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:100px;background:var(--surface3);color:var(--txt2)}
.cmp-est-ok{background:var(--green-soft);color:var(--green)}
.cmp-est-rev{background:var(--blue-soft);color:var(--blue)}
.cmp-est-mal{background:var(--red-soft);color:var(--red)}
.cmp-est-off{background:var(--surface3);color:var(--txt3)}
.cmp-pie{margin:4px 2px 18px}
.cmp-citas{max-height:340px;overflow:auto;margin-top:4px}
.cmp-grafico{display:flex;align-items:flex-end;height:170px;gap:0;padding:18px 0 22px}
.cmp-barra{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0 2px}
.cmp-barra-col{width:100%;max-width:36px;background:var(--primary);opacity:.85;border-radius:5px 5px 0 0;transition:opacity .15s}
.cmp-barra:hover .cmp-barra-col{opacity:1}
.cmp-barra-res{font-size:11px;font-weight:800;color:var(--txt);margin-bottom:3px;min-height:14px}
.cmp-barra-dia{position:absolute;bottom:-20px;font-size:10px;color:var(--txt3);white-space:nowrap}
@media (max-width:768px){
  .cmp-top{flex-direction:column;align-items:stretch}
  .cmp-table td:first-child{min-width:180px}
  .cmp-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .cmp-kpis .com-kpi{padding:11px}
  .cmp-kpis .com-kpi-n{font-size:18px}
}
