/* ===== MODAL DE EDICIÓN - VERSIÓN ULTRA COMPACTA ===== */
#modal-edicion-stats {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

#modal-edicion-stats .modal-content {
  background-color: #2b2b2b;
  border-radius: 8px;
  border: 1px solid #444;
  max-width: 700px;
  margin: 20px auto;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#modal-edicion-stats h4 {
  color: #ffb74d;
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
  text-align: center;
}

/* CONTENEDOR DE INPUTS - SUPER COMPACTO */
#contenedorInputsModal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px; /* Reduje el gap vertical a solo 8px */
}

#contenedorInputsModal .col-6 {
  width: 100%;
  margin: 0;
  padding: 0;
}

#contenedorInputsModal .form-label {
  display: block;
  color: #bbb;
  font-size: 0.8rem;
  margin-bottom: 3px; /* Reduje el margen inferior */
}

#contenedorInputsModal .form-control {
  width: 100%;
  padding: 6px 8px; /* Inputs más compactos */
  background-color: #333;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.85rem; /* Texto ligeramente más pequeño */
  box-sizing: border-box;
}

/* ELIMINÉ EL SÍMBOLO DE PORCENTAJE COMPLETAMENTE */
#contenedorInputsModal .input-group-text {
  display: none !important;
}

/* BOTONES COMPACTOS */
#modal-edicion-stats .text-end {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#guardarStatsEditados, 
#modal-edicion-stats .btn-secondary {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

#guardarStatsEditados {
  background-color: #ffb74d;
  color: #000;
}

#modal-edicion-stats .btn-secondary {
  background-color: #555;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #contenedorInputsModal {
    grid-template-columns: 1fr;
    gap: 6px; /* Gap aún más pequeño en móviles */
  }
  
  #modal-edicion-stats {
    padding: 5px;
  }
  
  #modal-edicion-stats .modal-content {
    padding: 12px;
  }
  
  #modal-edicion-stats .text-end {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  #guardarStatsEditados,
  #modal-edicion-stats .btn-secondary {
    padding: 5px 10px;
    flex-grow: 1;
  }
}