@import url("variables.css");

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-contenido {
    position: relative;
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: visible; /* 👈 clave */
}

.modal-contenido h3 {
    margin-bottom: 20px;
    text-align: center;
}

.sugerencias {
    border: 1px solid #ccc;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
    position: relative;
    z-index: 10;
}

.sugerencia-item {
    padding: 6px 10px;
    cursor: pointer;
}

.sugerencia-item:hover {
    background: #f0f0f0;
}


/* FORMULARIO */
.form-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* separación entre campos */
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo label {
    font-weight: 600;
    font-size: 14px;
}

/* CAMPOS BASE */
.campo input,
.campo select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--gris-borde);
    font-size: 14px;
    background-color: var(--blanco);
}

/* SELECT */
.campo select {
    cursor: pointer;
}

/* HOVER */
.campo select:hover {
    border-color: var(--azul-principal);
}

/* FOCUS */
.campo select:focus,
.campo input:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 2px rgba(0, 52, 128, 0.15);
}


/* BOTONES */
.acciones {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-primario {
    background: var(--azul-principal);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-primario:hover {
    background: var(--azul-hover);
}

/* BOTÓN CERRAR */
.modal-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--azul-principal);
}

.modal-cerrar:hover {
    color: var(--rojo-principal);
}



#listaColaboradoresGrupal {
    height: 120px;           /* altura fija del contenedor */
    overflow-y: auto;        /* scroll vertical si hay más elementos */
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


/* Contenedor de los colaboradores agregados al vale grupal */
#listaColaboradoresGrupal {
    max-height: 120px;      /* altura fija para scroll */
    overflow-y: auto;       /* scroll vertical si hay muchos badges */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

/* Badge individual de colaborador */
#listaColaboradoresGrupal span {


    font-size: 13px;
}