/* ═══ MÓDULO SPORTMATCH (usa los colores y tipografías del panel) ═══ */
.sm-cargando { display: flex; align-items: center; gap: 12px; color: var(--text1); font-size: 13px; }
.sm-banner {
  background: var(--accent-glow); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: 13px; color: var(--text0); line-height: 1.6;
}
.sm-banner-error { background: var(--red-bg); border-color: rgba(240,89,74,0.25); }
.sm-banner-titulo { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sm-banner a { text-decoration: underline; }
.sm-vacio { padding: 18px 4px; text-align: center; color: var(--text1); font-size: 13px; }

/* Negocios y solicitudes: tarjetas en dos columnas */
.sm-grid-negocios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.sm-negocio .crm-kv b, .sm-grid-negocios .crm-kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.sm-grid-negocios .crm-kv span:first-child { color: var(--text1); white-space: nowrap; }
.sm-plan-campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sm-plan-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text1); }
.sm-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sm-sellos { display: flex; flex-wrap: wrap; gap: 4px; }

/* Barras horizontales */
.sm-barras { display: flex; flex-direction: column; gap: 10px; }
.sm-barra-fila { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.sm-barra-nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text0); }
.sm-barra-pista { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.sm-barra-pista span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.sm-barra-num { text-align: right; font-family: var(--font-mono); color: var(--text1); }

/* Columnas de 30 días */
.sm-columnas { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.sm-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.sm-col span { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.85; }
.sm-col:hover span { opacity: 1; }
.sm-eje { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text2); margin-top: 8px; }

/* Editor de canchas */
.sm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-check { display: flex; gap: 10px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.sm-check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.sm-check span { display: flex; flex-direction: column; font-size: 13px; }
.sm-check small { color: var(--text1); font-size: 11.5px; }
.sm-mensaje { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.6; }

/* Usuarios */
.sm-con-avatar { display: flex; align-items: center; gap: 10px; }
.sm-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent); font-size: 11px; font-weight: 700; font-family: var(--font-mono); }

@media (max-width: 600px) {
  .sm-plan-campos, .sm-checks { grid-template-columns: 1fr; }
  #view-sm-resumen .grid-4, #view-sm-cobros .grid-3 { grid-template-columns: 1fr 1fr; }
  #view-sm-resumen .stat-value, #view-sm-cobros .stat-value { font-size: 22px; }
}

/* Tarifas (% o S/) */
.sm-params { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sm-param { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sm-param-titulo { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; }
.sm-param-titulo small { color: var(--text1); font-size: 11.5px; }
.sm-param-campos { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.sm-param-campos select, .sm-param-campos input { background: var(--bg1); }
@media (max-width: 600px) { .sm-params { grid-template-columns: 1fr; } }

/* Personas: contacto, novedades y bienvenida */
.badge-gray { background: var(--bg3); color: var(--text1); }
.badge-gray::before { background: var(--text2); }
.sm-contacto { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.sm-contacto-fila { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text0); text-decoration: none; white-space: nowrap; }
a.sm-contacto-fila:hover { color: var(--accent); }
.sm-contacto-fila.sm-sin { color: var(--text2); }
.sm-ic { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg3); color: var(--text1); flex-shrink: 0; }
.sm-ic-wa { background: rgba(37, 211, 102, 0.14); color: #25D366; }
.sm-btn-wa { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sm-btn-wa .sm-ic { width: auto; height: auto; background: none; color: inherit; }
.btn-ghost.sm-btn-wa .sm-ic-wa { color: #25D366; }
.sm-enviada { background: none; border: none; padding: 0; color: var(--green); font-size: 12.5px; font-family: var(--font-mono); cursor: pointer; white-space: nowrap; }
.sm-enviada:hover { text-decoration: underline; }
#sm-modal textarea { width: 100%; resize: vertical; }
.sm-con-avatar .td-mono { white-space: nowrap; }
.sm-acciones-fila { display: flex; gap: 6px; justify-content: flex-end; }
.btn.sm-btn-eliminar { color: var(--red); }
.btn.sm-btn-eliminar:hover { background: var(--red-bg); }
.sm-lista-personas { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.sm-fila-persona { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
